ArbitrumChainSpec

Trait ArbitrumChainSpec 

Source
pub trait ArbitrumChainSpec {
    // Required methods
    fn chain_id(&self) -> u64;
    fn spec_id_by_timestamp(&self, timestamp: u64) -> SpecId;
    fn spec_id_by_arbos_version(&self, arbos_version: u64) -> SpecId;
}
Expand description

Trait for Arbitrum chain specifications.

Provides the chain ID and version-gated spec ID mapping needed by the EVM configuration layer.

Required Methods§

Source

fn chain_id(&self) -> u64

Returns the chain ID.

Source

fn spec_id_by_timestamp(&self, timestamp: u64) -> SpecId

Maps a timestamp to the appropriate SpecId.

Source

fn spec_id_by_arbos_version(&self, arbos_version: u64) -> SpecId

Maps an ArbOS version to the appropriate SpecId.

Implementations on Foreign Types§

Source§

impl ArbitrumChainSpec for ChainSpec

Blanket implementation for reth’s ChainSpec.

Source§

fn chain_id(&self) -> u64

Source§

fn spec_id_by_timestamp(&self, timestamp: u64) -> SpecId

Source§

fn spec_id_by_arbos_version(&self, arbos_version: u64) -> SpecId

Implementors§