Documentation ¶
Index ¶
- type Alloc
- type CliqueConfig
- type Genesis
- type GenesisConfig
- type GethClient
- type GethProvider
- func (p *GethProvider) DeploySmartContracts() error
- func (p *GethProvider) FirstTimeSetup() error
- func (p *GethProvider) GetDockerServiceDefinitions() []*docker.ServiceDefinition
- func (p *GethProvider) GetFireflyConfig(m *types.Member) (blockchainConfig *core.BlockchainConfig, orgConfig *core.OrgConfig)
- func (p *GethProvider) PostStart() error
- func (p *GethProvider) PreStart() error
- func (p *GethProvider) Reset() error
- func (p *GethProvider) WriteConfig() error
- type RpcRequest
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 v0.0.38
type GenesisConfig ¶ added in v0.0.38
type GenesisConfig struct { ChainId int `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 ¶
func (*GethProvider) DeploySmartContracts ¶
func (p *GethProvider) DeploySmartContracts() error
func (*GethProvider) FirstTimeSetup ¶
func (p *GethProvider) FirstTimeSetup() error
func (*GethProvider) GetDockerServiceDefinitions ¶
func (p *GethProvider) GetDockerServiceDefinitions() []*docker.ServiceDefinition
func (*GethProvider) GetFireflyConfig ¶
func (p *GethProvider) GetFireflyConfig(m *types.Member) (blockchainConfig *core.BlockchainConfig, orgConfig *core.OrgConfig)
func (*GethProvider) PostStart ¶
func (p *GethProvider) PostStart() 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() error
Click to show internal directories.
Click to hide internal directories.