quorum

package
v1.3.2-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DockerEntrypoint = "docker-entrypoint.sh"
View Source
var ExposedBlockchainPortMultiplier = 10
View Source
var QuorumPort = "8545"

Functions

func CopyQuorumEntrypointToVolume

func CopyQuorumEntrypointToVolume(ctx context.Context, quorumEntrypointDirectory, volumeName string) error

func CreateQuorumEntrypoint

func CreateQuorumEntrypoint(ctx context.Context, outputDirectory, consensus, stackName string, memberIndex, chainID, blockPeriodInSeconds int, privateTransactionManager fftypes.FFEnum) error

Types

type Alloc

type Alloc struct {
	Balance string `json:"balance"`
}

type CliqueConfig

type CliqueConfig struct {
	Period int `json:"period"`
	Epoch  int `json:"epoch"`
}

type Genesis

type Genesis struct {
	Config     *GenesisConfig    `json:"config"`
	Nonce      string            `json:"nonce"`
	Timestamp  string            `json:"timestamp"`
	ExtraData  string            `json:"extraData"`
	GasLimit   string            `json:"gasLimit"`
	Difficulty string            `json:"difficulty"`
	MixHash    string            `json:"mixHash"`
	Coinbase   string            `json:"coinbase"`
	Alloc      map[string]*Alloc `json:"alloc"`
	Number     string            `json:"number"`
	GasUsed    string            `json:"gasUsed"`
	ParentHash string            `json:"parentHash"`
}

func CreateGenesis

func CreateGenesis(addresses []string, blockPeriod int, chainID int64) *Genesis

func (*Genesis) WriteGenesisJSON

func (g *Genesis) WriteGenesisJSON(filename string) error

type GenesisConfig

type GenesisConfig struct {
	ChainID             int64         `json:"chainId"`
	HomesteadBlock      int           `json:"homesteadBlock"`
	Eip150Block         int           `json:"eip150Block"`
	Eip150Hash          string        `json:"eip150Hash"`
	Eip155Block         int           `json:"eip155Block"`
	Eip158Block         int           `json:"eip158Block"`
	ByzantiumBlock      int           `json:"byzantiumBlock"`
	ConstantinopleBlock int           `json:"constantinopleBlock"`
	PetersburgBlock     int           `json:"petersburgBlock"`
	IstanbulBlock       int           `json:"istanbulBlock"`
	Clique              *CliqueConfig `json:"clique"`
}

type JSONRPCError

type JSONRPCError struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

type JSONRPCRequest

type JSONRPCRequest struct {
	JSONRPC string        `json:"jsonrpc"`
	ID      int           `json:"id"`
	Method  string        `json:"method"`
	Params  []interface{} `json:"params"`
}

type JSONRPCResponse

type JSONRPCResponse struct {
	JSONRPC string        `json:"jsonrpc"`
	ID      int           `json:"id"`
	Error   *JSONRPCError `json:"error,omitempty"`
	Result  interface{}   `json:"result,omitempty"`
}

type QuorumClient

type QuorumClient struct {
	// contains filtered or unexported fields
}

func NewQuorumClient

func NewQuorumClient(rpcURL string) *QuorumClient

func (*QuorumClient) UnlockAccount

func (g *QuorumClient) UnlockAccount(address string, password string) error

type QuorumProvider

type QuorumProvider struct {
	// contains filtered or unexported fields
}

func NewQuorumProvider

func NewQuorumProvider(ctx context.Context, stack *types.Stack) *QuorumProvider

func (*QuorumProvider) CreateAccount

func (p *QuorumProvider) CreateAccount(args []string) (interface{}, error)

func (*QuorumProvider) DeployContract

func (p *QuorumProvider) DeployContract(filename, contractName, instanceName string, member *types.Organization, extraArgs []string) (*types.ContractDeploymentResult, error)

func (*QuorumProvider) DeployFireFlyContract

func (p *QuorumProvider) DeployFireFlyContract() (*types.ContractDeploymentResult, error)

func (*QuorumProvider) FirstTimeSetup

func (p *QuorumProvider) FirstTimeSetup() error

func (*QuorumProvider) GetBlockchainPluginConfig

func (p *QuorumProvider) GetBlockchainPluginConfig(stack *types.Stack, m *types.Organization) (blockchainConfig *types.BlockchainConfig)

func (*QuorumProvider) GetConnectorExternalURL

func (p *QuorumProvider) GetConnectorExternalURL(org *types.Organization) string

func (*QuorumProvider) GetConnectorName

func (p *QuorumProvider) GetConnectorName() string

func (*QuorumProvider) GetConnectorURL

func (p *QuorumProvider) GetConnectorURL(org *types.Organization) string

func (*QuorumProvider) GetContracts

func (p *QuorumProvider) GetContracts(filename string, extraArgs []string) ([]string, error)

func (*QuorumProvider) GetDockerServiceDefinitions

func (p *QuorumProvider) GetDockerServiceDefinitions() []*docker.ServiceDefinition

func (*QuorumProvider) GetOrgConfig

func (p *QuorumProvider) GetOrgConfig(stack *types.Stack, m *types.Organization) (orgConfig *types.OrgConfig)

func (*QuorumProvider) ParseAccount

func (p *QuorumProvider) ParseAccount(account interface{}) interface{}

func (*QuorumProvider) PostStart

func (p *QuorumProvider) PostStart(firstTimeSetup bool) error

func (*QuorumProvider) PreStart

func (p *QuorumProvider) PreStart() error

func (*QuorumProvider) Reset

func (p *QuorumProvider) Reset() error

func (*QuorumProvider) WriteConfig

func (p *QuorumProvider) WriteConfig(options *types.InitOptions) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL