pub trait TempoHardforks: EthereumHardforks {
// Required method
fn tempo_fork_activation(&self, fork: TempoHardfork) -> ForkCondition;
// Provided methods
fn tempo_hardfork_at(&self, timestamp: u64) -> TempoHardfork { ... }
fn is_t0_active_at_timestamp(&self, timestamp: u64) -> bool { ... }
fn is_t1_active_at_timestamp(&self, timestamp: u64) -> bool { ... }
fn is_t1a_active_at_timestamp(&self, timestamp: u64) -> bool { ... }
fn is_t1b_active_at_timestamp(&self, timestamp: u64) -> bool { ... }
fn is_t1c_active_at_timestamp(&self, timestamp: u64) -> bool { ... }
fn is_t2_active_at_timestamp(&self, timestamp: u64) -> bool { ... }
fn general_gas_limit_at(
&self,
timestamp: u64,
gas_limit: u64,
shared_gas_limit: u64,
) -> u64 { ... }
}Expand description
Trait for querying Tempo-specific hardfork activations.
Required Methods§
Sourcefn tempo_fork_activation(&self, fork: TempoHardfork) -> ForkCondition
fn tempo_fork_activation(&self, fork: TempoHardfork) -> ForkCondition
Retrieves activation condition for a Tempo-specific hardfork.
Provided Methods§
Sourcefn tempo_hardfork_at(&self, timestamp: u64) -> TempoHardfork
fn tempo_hardfork_at(&self, timestamp: u64) -> TempoHardfork
Retrieves the Tempo hardfork active at a given timestamp.
Sourcefn is_t0_active_at_timestamp(&self, timestamp: u64) -> bool
fn is_t0_active_at_timestamp(&self, timestamp: u64) -> bool
Returns true if T0 is active at the given timestamp.
Sourcefn is_t1_active_at_timestamp(&self, timestamp: u64) -> bool
fn is_t1_active_at_timestamp(&self, timestamp: u64) -> bool
Returns true if T1 is active at the given timestamp.
Sourcefn is_t1a_active_at_timestamp(&self, timestamp: u64) -> bool
fn is_t1a_active_at_timestamp(&self, timestamp: u64) -> bool
Returns true if T1A is active at the given timestamp.
Sourcefn is_t1b_active_at_timestamp(&self, timestamp: u64) -> bool
fn is_t1b_active_at_timestamp(&self, timestamp: u64) -> bool
Returns true if T1B is active at the given timestamp.
Sourcefn is_t1c_active_at_timestamp(&self, timestamp: u64) -> bool
fn is_t1c_active_at_timestamp(&self, timestamp: u64) -> bool
Returns true if T1C is active at the given timestamp.
Sourcefn is_t2_active_at_timestamp(&self, timestamp: u64) -> bool
fn is_t2_active_at_timestamp(&self, timestamp: u64) -> bool
Returns true if T2 is active at the given timestamp.