Documentation ¶
Index ¶
- type Alloc
- type CliqueConfig
- type Genesis
- type GenesisConfig
- type GethClient
- type GethProvider
- func (p *GethProvider) CreateAccount(args []string) (interface{}, error)
- func (p *GethProvider) DeployContract(filename, contractName, instanceName string, member *types.Organization, ...) (*types.ContractDeploymentResult, error)
- func (p *GethProvider) DeployFireFlyContract() (*types.ContractDeploymentResult, error)
- func (p *GethProvider) FirstTimeSetup() error
- func (p *GethProvider) GetBlockchainPluginConfig(stack *types.Stack, m *types.Organization) (blockchainConfig *types.BlockchainConfig)
- func (p *GethProvider) GetConnectorExternalURL(org *types.Organization) string
- func (p *GethProvider) GetConnectorName() string
- func (p *GethProvider) GetConnectorURL(org *types.Organization) string
- func (p *GethProvider) GetContracts(filename string, extraArgs []string) ([]string, error)
- func (p *GethProvider) GetDockerServiceDefinitions() []*docker.ServiceDefinition
- func (p *GethProvider) GetOrgConfig(stack *types.Stack, m *types.Organization) (orgConfig *types.OrgConfig)
- func (p *GethProvider) ParseAccount(account interface{}) interface{}
- func (p *GethProvider) PostStart(firstTimeSetup bool) error
- func (p *GethProvider) PreStart() error
- func (p *GethProvider) Reset() error
- func (p *GethProvider) WriteConfig(options *types.InitOptions) error
- type JSONRPCError
- type JSONRPCRequest
- type JSONRPCResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CliqueConfig ¶ added in v0.0.38
type Genesis ¶ added in v0.0.38
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 ¶ added in v0.0.38
func (*Genesis) WriteGenesisJSON ¶ added in v1.3.0
type GenesisConfig ¶ added in v0.0.38
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 GethClient ¶
type GethClient struct {
// contains filtered or unexported fields
}
func NewGethClient ¶
func NewGethClient(rpcURL string) *GethClient
func (*GethClient) UnlockAccount ¶
func (g *GethClient) UnlockAccount(address string, password string) error
type GethProvider ¶
type GethProvider struct {
// contains filtered or unexported fields
}
func NewGethProvider ¶ added in v1.1.0
func NewGethProvider(ctx context.Context, stack *types.Stack) *GethProvider
func (*GethProvider) CreateAccount ¶ added in v0.0.47
func (p *GethProvider) CreateAccount(args []string) (interface{}, error)
func (*GethProvider) DeployContract ¶ added in v0.0.45
func (p *GethProvider) DeployContract(filename, contractName, instanceName string, member *types.Organization, extraArgs []string) (*types.ContractDeploymentResult, error)
func (*GethProvider) DeployFireFlyContract ¶ added in v0.0.47
func (p *GethProvider) DeployFireFlyContract() (*types.ContractDeploymentResult, error)
func (*GethProvider) FirstTimeSetup ¶
func (p *GethProvider) FirstTimeSetup() error
func (*GethProvider) GetBlockchainPluginConfig ¶ added in v1.1.0
func (p *GethProvider) GetBlockchainPluginConfig(stack *types.Stack, m *types.Organization) (blockchainConfig *types.BlockchainConfig)
func (*GethProvider) GetConnectorExternalURL ¶ added in v1.1.0
func (p *GethProvider) GetConnectorExternalURL(org *types.Organization) string
func (*GethProvider) GetConnectorName ¶ added in v1.1.0
func (p *GethProvider) GetConnectorName() string
func (*GethProvider) GetConnectorURL ¶ added in v1.1.0
func (p *GethProvider) GetConnectorURL(org *types.Organization) string
func (*GethProvider) GetContracts ¶ added in v0.0.45
func (p *GethProvider) GetContracts(filename string, extraArgs []string) ([]string, error)
func (*GethProvider) GetDockerServiceDefinitions ¶
func (p *GethProvider) GetDockerServiceDefinitions() []*docker.ServiceDefinition
func (*GethProvider) GetOrgConfig ¶ added in v1.1.0
func (p *GethProvider) GetOrgConfig(stack *types.Stack, m *types.Organization) (orgConfig *types.OrgConfig)
func (*GethProvider) ParseAccount ¶ added in v0.0.47
func (p *GethProvider) ParseAccount(account interface{}) interface{}
func (*GethProvider) PostStart ¶
func (p *GethProvider) PostStart(firstTimeSetup bool) error
func (*GethProvider) PreStart ¶
func (p *GethProvider) PreStart() error
func (*GethProvider) Reset ¶ added in v0.0.36
func (p *GethProvider) Reset() error
func (*GethProvider) WriteConfig ¶
func (p *GethProvider) WriteConfig(options *types.InitOptions) error
type JSONRPCError ¶ added in v0.0.48
type JSONRPCRequest ¶ added in v0.0.48
type JSONRPCResponse ¶ added in v0.0.48
type JSONRPCResponse struct { JSONRPC string `json:"jsonrpc"` ID int `json:"id"` Error *JSONRPCError `json:"error,omitempty"` Result interface{} `json:"result,omitempty"` }
Click to show internal directories.
Click to hide internal directories.