config

package
v0.0.0-...-696a2ae Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MIT, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NetworkNames = map[uint64]string{
	params.TaikoMainnetNetworkID.Uint64():     "Taiko Mainnet",
	params.HeklaNetworkID.Uint64():            "Taiko Hekla Testnet",
	params.TaikoInternalL2ANetworkID.Uint64(): "Taiko Internal Devnet",
}

NetworkNames are user friendly names to use in the chain spec banner.

Functions

This section is empty.

Types

type ChainConfig

type ChainConfig struct {
	// Ontake switch block (nil = no fork, 0 = already on ontake)
	ProtocolConfigs *bindings.TaikoDataConfig `json:"protocolConfigs"`
}

ChainConfig is the core config which determines the blockchain settings.

func NewChainConfig

func NewChainConfig(protocolConfigs *bindings.TaikoDataConfig) *ChainConfig

NewChainConfig creates a new ChainConfig instance.

func (*ChainConfig) Description

func (c *ChainConfig) Description() string

Description returns a human-readable description of ChainConfig.

func (*ChainConfig) IsOntake

func (c *ChainConfig) IsOntake(num *big.Int) bool

IsOntake returns whether num is either equal to the ontake block or greater.

Jump to

Keyboard shortcuts

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