Documentation ¶
Index ¶
- Variables
- func CopyQuorumEntrypointToVolume(ctx context.Context, quorumEntrypointDirectory, volumeName string) error
- func CreateQuorumEntrypoint(ctx context.Context, outputDirectory, consensus, stackName string, ...) error
- type Alloc
- type CliqueConfig
- type Genesis
- type GenesisConfig
- type JSONRPCError
- type JSONRPCRequest
- type JSONRPCResponse
- type QuorumClient
- type QuorumProvider
- func (p *QuorumProvider) CreateAccount(args []string) (interface{}, error)
- func (p *QuorumProvider) DeployContract(filename, contractName, instanceName string, member *types.Organization, ...) (*types.ContractDeploymentResult, error)
- func (p *QuorumProvider) DeployFireFlyContract() (*types.ContractDeploymentResult, error)
- func (p *QuorumProvider) FirstTimeSetup() error
- func (p *QuorumProvider) GetBlockchainPluginConfig(stack *types.Stack, m *types.Organization) (blockchainConfig *types.BlockchainConfig)
- func (p *QuorumProvider) GetConnectorExternalURL(org *types.Organization) string
- func (p *QuorumProvider) GetConnectorName() string
- func (p *QuorumProvider) GetConnectorURL(org *types.Organization) string
- func (p *QuorumProvider) GetContracts(filename string, extraArgs []string) ([]string, error)
- func (p *QuorumProvider) GetDockerServiceDefinitions() []*docker.ServiceDefinition
- func (p *QuorumProvider) GetOrgConfig(stack *types.Stack, m *types.Organization) (orgConfig *types.OrgConfig)
- func (p *QuorumProvider) ParseAccount(account interface{}) interface{}
- func (p *QuorumProvider) PostStart(firstTimeSetup bool) error
- func (p *QuorumProvider) PreStart() error
- func (p *QuorumProvider) Reset() error
- func (p *QuorumProvider) WriteConfig(options *types.InitOptions) error
Constants ¶
This section is empty.
Variables ¶
View Source
var DockerEntrypoint = "docker-entrypoint.sh"
View Source
var ExposedBlockchainPortMultiplier = 10
View Source
var QuorumPort = "8545"
Functions ¶
Types ¶
type CliqueConfig ¶
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 (*Genesis) WriteGenesisJSON ¶
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 JSONRPCRequest ¶
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
Click to show internal directories.
Click to hide internal directories.