pub trait OptimismHardforks: EthereumHardforks {
// Provided methods
fn is_bedrock_active_at_block(&self, block_number: 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 { ... }
}
Expand description
Extends crate::EthereumHardforks
with optimism helper methods.
Provided Methods§
fn is_bedrock_active_at_block(&self, block_number: u64) -> bool
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.
fn is_ecotone_active_at_timestamp(&self, timestamp: u64) -> bool
fn is_ecotone_active_at_timestamp(&self, timestamp: u64) -> bool
Returns true
if Ecotone
is active at given block timestamp.
fn is_fjord_active_at_timestamp(&self, timestamp: u64) -> bool
fn is_fjord_active_at_timestamp(&self, timestamp: u64) -> bool
Returns true
if Ecotone
is active at given block timestamp.
fn is_granite_active_at_timestamp(&self, timestamp: u64) -> bool
fn is_granite_active_at_timestamp(&self, timestamp: u64) -> bool
Returns true
if Granite
is active at given block timestamp.
Object Safety§
This trait is not object safe.