Documentation
¶
Index ¶
- func NewChainConfigAdapter(config *params.ChainConfig) iface.ChainConfig
- type ChainConfigAdapter
- func (c *ChainConfigAdapter) AllowedFeeRecipients() bool
- func (c *ChainConfigAdapter) AsGeth() interface{}
- func (c *ChainConfigAdapter) GenesisRules(blockNum *big.Int, timestamp uint64) iface.GenesisRules
- func (c *ChainConfigAdapter) GetChainID() *big.Int
- func (c *ChainConfigAdapter) IsBerlin(num *big.Int) bool
- func (c *ChainConfigAdapter) IsByzantium(num *big.Int) bool
- func (c *ChainConfigAdapter) IsCancun(time uint64) bool
- func (c *ChainConfigAdapter) IsConstantinople(num *big.Int) bool
- func (c *ChainConfigAdapter) IsEIP150(num *big.Int) bool
- func (c *ChainConfigAdapter) IsEIP155(num *big.Int) bool
- func (c *ChainConfigAdapter) IsEIP158(num *big.Int) bool
- func (c *ChainConfigAdapter) IsGenesis(time uint64) bool
- func (c *ChainConfigAdapter) IsHomestead(num *big.Int) bool
- func (c *ChainConfigAdapter) IsIstanbul(num *big.Int) bool
- func (c *ChainConfigAdapter) IsLondon(num *big.Int) bool
- func (c *ChainConfigAdapter) IsPetersburg(num *big.Int) bool
- func (c *ChainConfigAdapter) IsShanghai(num *big.Int, time uint64) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewChainConfigAdapter ¶
func NewChainConfigAdapter(config *params.ChainConfig) iface.ChainConfig
NewChainConfigAdapter creates a new adapter
Types ¶
type ChainConfigAdapter ¶
type ChainConfigAdapter struct {
*params.ChainConfig
}
ChainConfigAdapter wraps params.ChainConfig to implement iface.ChainConfig
func (*ChainConfigAdapter) AllowedFeeRecipients ¶
func (c *ChainConfigAdapter) AllowedFeeRecipients() bool
AllowedFeeRecipients returns whether fee recipients are allowed
func (*ChainConfigAdapter) AsGeth ¶
func (c *ChainConfigAdapter) AsGeth() interface{}
AsGeth returns the underlying geth ChainConfig for compatibility
func (*ChainConfigAdapter) GenesisRules ¶
func (c *ChainConfigAdapter) GenesisRules(blockNum *big.Int, timestamp uint64) iface.GenesisRules
GenesisRules returns the Genesis modified rules to support Genesis network upgrades
func (*ChainConfigAdapter) GetChainID ¶
func (c *ChainConfigAdapter) GetChainID() *big.Int
GetChainID returns the chain ID
func (*ChainConfigAdapter) IsBerlin ¶
func (c *ChainConfigAdapter) IsBerlin(num *big.Int) bool
IsBerlin returns whether num is either equal to the Berlin fork block or greater.
func (*ChainConfigAdapter) IsByzantium ¶
func (c *ChainConfigAdapter) IsByzantium(num *big.Int) bool
IsByzantium returns whether num is either equal to the Byzantium fork block or greater.
func (*ChainConfigAdapter) IsCancun ¶
func (c *ChainConfigAdapter) IsCancun(time uint64) bool
IsCancun returns whether time is either equal to the Cancun fork time or greater.
func (*ChainConfigAdapter) IsConstantinople ¶
func (c *ChainConfigAdapter) IsConstantinople(num *big.Int) bool
IsConstantinople returns whether num is either equal to the Constantinople fork block or greater.
func (*ChainConfigAdapter) IsEIP150 ¶
func (c *ChainConfigAdapter) IsEIP150(num *big.Int) bool
IsEIP150 returns whether num is either equal to the EIP150 fork block or greater.
func (*ChainConfigAdapter) IsEIP155 ¶
func (c *ChainConfigAdapter) IsEIP155(num *big.Int) bool
IsEIP155 returns whether num is either equal to the EIP155 fork block or greater.
func (*ChainConfigAdapter) IsEIP158 ¶
func (c *ChainConfigAdapter) IsEIP158(num *big.Int) bool
IsEIP158 returns whether num is either equal to the EIP158 fork block or greater.
func (*ChainConfigAdapter) IsGenesis ¶
func (c *ChainConfigAdapter) IsGenesis(time uint64) bool
IsGenesis returns whether all network upgrades are active at genesis.
func (*ChainConfigAdapter) IsHomestead ¶
func (c *ChainConfigAdapter) IsHomestead(num *big.Int) bool
IsHomestead returns whether num is either equal to the homestead block or greater.
func (*ChainConfigAdapter) IsIstanbul ¶
func (c *ChainConfigAdapter) IsIstanbul(num *big.Int) bool
IsIstanbul returns whether num is either equal to the Istanbul fork block or greater.
func (*ChainConfigAdapter) IsLondon ¶
func (c *ChainConfigAdapter) IsLondon(num *big.Int) bool
IsLondon returns whether num is either equal to the London fork block or greater.
func (*ChainConfigAdapter) IsPetersburg ¶
func (c *ChainConfigAdapter) IsPetersburg(num *big.Int) bool
IsPetersburg returns whether num is either equal to the Petersburg fork block or greater.
func (*ChainConfigAdapter) IsShanghai ¶
func (c *ChainConfigAdapter) IsShanghai(num *big.Int, time uint64) bool
IsShanghai returns whether time is either equal to the Shanghai fork time or greater.