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§
Sourcefn 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.
Sourcefn is_canyon_active_at_timestamp(&self, timestamp: u64) -> bool
fn is_canyon_active_at_timestamp(&self, timestamp: u64) -> bool
Returns true
if Canyon
is active at given block timestamp.
Sourcefn 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.
Sourcefn is_fjord_active_at_timestamp(&self, timestamp: u64) -> bool
fn is_fjord_active_at_timestamp(&self, timestamp: u64) -> bool
Returns true
if Fjord
is active at given block timestamp.
Sourcefn 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.
Sourcefn is_holocene_active_at_timestamp(&self, timestamp: u64) -> bool
fn is_holocene_active_at_timestamp(&self, timestamp: u64) -> bool
Returns true
if Holocene
is active at given block
timestamp.
Sourcefn is_regolith_active_at_timestamp(&self, timestamp: u64) -> bool
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.