ethereum

package
v0.0.31 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeployContract

func DeployContract(member *types.Member, contract *types.Contract, name string, args map[string]string) (string, error)

func DeployContracts

func DeployContracts(s *types.Stack, log log.Logger, verbose bool) error

func ExtractContracts

func ExtractContracts(stackName string, containerName string, dirName string, verbose bool) error

func ReadCompiledContract

func ReadCompiledContract(filePath string) (*types.Contract, error)

func RegisterContract

func RegisterContract(member *types.Member, contract *types.Contract, contractAddress string, name string, args map[string]string) error

Types

type Alloc

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

type CliqueConfig

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

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 CreateGenesisJson

func CreateGenesisJson(addresses []string) *Genesis

func (*Genesis) WriteGenesisJson

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

type GenesisConfig

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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