geth

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: Apache-2.0 Imports: 21 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, blockPeriod int, chainID int64) *Genesis

func (*Genesis) WriteGenesisJSON added in v1.3.0

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

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 JSONRPCError struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

type JSONRPCRequest added in v0.0.48

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

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"`
}

Jump to

Keyboard shortcuts

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