Versions in this module Expand all Collapse all v0 v0.0.2 Dec 21, 2022 v0.0.1 Dec 21, 2022 Changes in this version + var AllForksEnabled = &Forks + var GenesisDifficulty = big.NewInt(131072) + var GenesisGasLimit uint64 = 4712388 + func Asset(name string) ([]byte, error) + func AssetDir(name string) ([]string, error) + func AssetInfo(name string) (os.FileInfo, error) + func AssetNames() []string + func MustAsset(name string) []byte + func ResolveNetworkID(id uint) string + func RestoreAsset(dir, name string) error + func RestoreAssets(dir, name string) error + type Chain struct + Bootnodes []string + Genesis *Genesis + Name string + Params *Params + func Import(chain string) (*Chain, error) + func ImportFromFile(filename string) (*Chain, error) + func ImportFromName(chain string) (*Chain, error) + type Fork uint64 + func NewFork(n uint64) *Fork + func (f Fork) Active(block uint64) bool + func (f Fork) Int() *big.Int + func (f Fork) On(block uint64) bool + type Forks struct + Byzantium *Fork + Constantinople *Fork + Detroit *Fork + EIP150 *Fork + EIP155 *Fork + EIP158 *Fork + Homestead *Fork + Istanbul *Fork + Petersburg *Fork + Portland *Fork + Preportland *Fork + func (f *Forks) At(block uint64) ForksInTime + func (f *Forks) IsByzantium(block uint64) bool + func (f *Forks) IsConstantinople(block uint64) bool + func (f *Forks) IsDetroit(block uint64) bool + func (f *Forks) IsEIP150(block uint64) bool + func (f *Forks) IsEIP155(block uint64) bool + func (f *Forks) IsEIP158(block uint64) bool + func (f *Forks) IsHomestead(block uint64) bool + func (f *Forks) IsOnDetroit(block uint64) bool + func (f *Forks) IsOnPortland(block uint64) bool + func (f *Forks) IsOnPreportland(block uint64) bool + func (f *Forks) IsPetersburg(block uint64) bool + func (f *Forks) IsPortland(block uint64) bool + type ForksInTime struct + Byzantium bool + Constantinople bool + Detroit bool + EIP150 bool + EIP155 bool + EIP158 bool + Homestead bool + Istanbul bool + Petersburg bool + Portland bool + Preportland bool + type Genesis struct + Alloc map[types.Address]*GenesisAccount + Coinbase types.Address + Config *Params + Difficulty uint64 + ExtraData []byte + GasLimit uint64 + GasUsed uint64 + Mixhash types.Hash + Nonce [8]byte + Number uint64 + ParentHash types.Hash + StateRoot types.Hash + Timestamp uint64 + func (g *Genesis) GenesisHeader() *types.Header + func (g *Genesis) Hash() types.Hash + func (g *Genesis) MarshalJSON() ([]byte, error) + func (g *Genesis) UnmarshalJSON(data []byte) error + type GenesisAccount struct + Balance *big.Int + Code []byte + Nonce uint64 + PrivateKey []byte + Storage map[types.Hash]types.Hash + func (g *GenesisAccount) MarshalJSON() ([]byte, error) + func (g *GenesisAccount) UnmarshalJSON(data []byte) error + type Params struct + BlackList []string + BlockGasTarget uint64 + ChainID int + DDOSPretection bool + Engine map[string]interface{} + Forks *Forks + func (p *Params) GetEngine() string