reth_optimism_forks

Trait OptimismHardforks

Source
pub trait OptimismHardforks: EthereumHardforks {
    // Provided methods
    fn is_bedrock_active_at_block(&self, block_number: u64) -> bool { ... }
    fn is_canyon_active_at_timestamp(&self, timestamp: u64) -> bool { ... }
    fn is_ecotone_active_at_timestamp(&self, timestamp: u64) -> bool { ... }
    fn is_fjord_active_at_timestamp(&self, timestamp: u64) -> bool { ... }
    fn is_granite_active_at_timestamp(&self, timestamp: u64) -> bool { ... }
    fn is_holocene_active_at_timestamp(&self, timestamp: u64) -> bool { ... }
    fn is_regolith_active_at_timestamp(&self, timestamp: u64) -> bool { ... }
}
Expand description

Extends [EthereumHardforks] with optimism helper methods.

Provided Methods§

Source

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

Convenience method to check if OptimismHardfork::Bedrock is active at a given block number.

Source

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

Returns true if Canyon is active at given block timestamp.

Source

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

Returns true if Ecotone is active at given block timestamp.

Source

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

Returns true if Fjord is active at given block timestamp.

Source

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

Returns true if Granite is active at given block timestamp.

Source

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

Returns true if Holocene is active at given block timestamp.

Source

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

Returns true if Regolith is active at given block timestamp.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§