geth

package
v0.0.43 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alloc added in v0.0.38

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

type CliqueConfig added in v0.0.38

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

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 CreateGenesis(addresses []string) *Genesis

func (*Genesis) WriteGenesisJson added in v0.0.38

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

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

type GethProvider struct {
	Log     log.Logger
	Verbose bool
	Stack   *types.Stack
}

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

type RpcRequest

type RpcRequest struct {
	JsonRPC string   `json:"jsonrpc"`
	ID      int      `json:"id"`
	Method  string   `json:"method"`
	Params  []string `json:"params"`
}

Jump to

Keyboard shortcuts

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