Trait reth_ethereum_forks::EthereumHardforks

source ·
pub trait EthereumHardforks: Hardforks {
    // Provided methods
    fn is_shanghai_active_at_timestamp(&self, timestamp: u64) -> bool { ... }
    fn is_cancun_active_at_timestamp(&self, timestamp: u64) -> bool { ... }
    fn is_prague_active_at_timestamp(&self, timestamp: u64) -> bool { ... }
    fn is_byzantium_active_at_block(&self, block_number: u64) -> bool { ... }
    fn is_spurious_dragon_active_at_block(&self, block_number: u64) -> bool { ... }
    fn is_homestead_active_at_block(&self, block_number: u64) -> bool { ... }
    fn is_paris_active_at_block(&self, block_number: u64) -> Option<bool> { ... }
}
Expand description

Helper methods for Ethereum forks.

Provided Methods§

source

fn is_shanghai_active_at_timestamp(&self, timestamp: u64) -> bool

Convenience method to check if EthereumHardfork::Shanghai is active at a given timestamp.

source

fn is_cancun_active_at_timestamp(&self, timestamp: u64) -> bool

Convenience method to check if EthereumHardfork::Cancun is active at a given timestamp.

source

fn is_prague_active_at_timestamp(&self, timestamp: u64) -> bool

Convenience method to check if EthereumHardfork::Prague is active at a given timestamp.

source

fn is_byzantium_active_at_block(&self, block_number: u64) -> bool

Convenience method to check if EthereumHardfork::Byzantium is active at a given block number.

source

fn is_spurious_dragon_active_at_block(&self, block_number: u64) -> bool

Convenience method to check if EthereumHardfork::SpuriousDragon is active at a given block number.

source

fn is_homestead_active_at_block(&self, block_number: u64) -> bool

Convenience method to check if EthereumHardfork::Homestead is active at a given block number.

source

fn is_paris_active_at_block(&self, block_number: u64) -> Option<bool>

The Paris hardfork (merge) is activated via block number. If we have knowledge of the block, this function will return true if the block number is greater than or equal to the Paris (merge) block.

Object Safety§

This trait is not object safe.

Implementors§