Skip to main content

TempoHardforks

Trait TempoHardforks 

Source
pub trait TempoHardforks: EthereumHardforks {
Show 13 methods // 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 is_t3_active_at_timestamp(&self, timestamp: u64) -> bool { ... } fn is_t4_active_at_timestamp(&self, timestamp: u64) -> bool { ... } fn is_t5_active_at_timestamp(&self, timestamp: u64) -> bool { ... } fn is_t6_active_at_timestamp(&self, timestamp: u64) -> bool { ... } fn general_gas_limit_at( &self, timestamp: u64, gas_limit: u64, shared_gas_limit: u64, ) -> u64 { ... }
}
Available on crate feature reth only.
Expand description

Trait for querying Tempo-specific hardfork activations.

Required Methods§

Source

fn tempo_fork_activation(&self, fork: TempoHardfork) -> ForkCondition

Retrieves activation condition for a Tempo-specific hardfork.

Provided Methods§

Source

fn tempo_hardfork_at(&self, timestamp: u64) -> TempoHardfork

Retrieves the Tempo hardfork active at a given timestamp.

Source

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

Returns true if T0 is active at the given timestamp.

Source

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

Returns true if T1 is active at the given timestamp.

Source

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

Returns true if T1A is active at the given timestamp.

Source

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

Returns true if T1B is active at the given timestamp.

Source

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

Returns true if T1C is active at the given timestamp.

Source

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

Returns true if T2 is active at the given timestamp.

Source

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

Returns true if T3 is active at the given timestamp.

Source

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

Returns true if T4 is active at the given timestamp.

Source

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

Returns true if T5 is active at the given timestamp.

Source

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

Returns true if T6 is active at the given timestamp.

Source

fn general_gas_limit_at( &self, timestamp: u64, gas_limit: u64, shared_gas_limit: u64, ) -> u64

Returns the general (non-payment) gas limit for the given timestamp and block.

  • T1+: fixed at 30M gas
  • Pre-T1: calculated as (gas_limit - shared_gas_limit) / 2

Implementors§