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§
Sourcefn spec_id_by_timestamp(&self, timestamp: u64) -> SpecId
fn spec_id_by_timestamp(&self, timestamp: u64) -> SpecId
Maps a timestamp to the appropriate SpecId.
Sourcefn spec_id_by_arbos_version(&self, arbos_version: u64) -> SpecId
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.
impl ArbitrumChainSpec for ChainSpec
Blanket implementation for reth’s ChainSpec.