revm_optimism::spec

Trait OptimismSpec

Source
pub trait OptimismSpec:
    Spec
    + Sized
    + 'static {
    const OPTIMISM_SPEC_ID: OptimismSpecId;

    // Provided method
    fn optimism_enabled(spec_id: OptimismSpecId) -> bool { ... }
}

Required Associated Constants§

Source

const OPTIMISM_SPEC_ID: OptimismSpecId

The specification ID for optimism.

Provided Methods§

Source

fn optimism_enabled(spec_id: OptimismSpecId) -> bool

Returns whether the provided OptimismSpec is enabled by this spec.

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.

Implementors§

Source§

impl OptimismSpec for BedrockSpec

Source§

const OPTIMISM_SPEC_ID: OptimismSpecId = OptimismSpecId::BEDROCK

Source§

impl OptimismSpec for BerlinSpec

Source§

const OPTIMISM_SPEC_ID: OptimismSpecId = OptimismSpecId::BERLIN

Source§

impl OptimismSpec for ByzantiumSpec

Source§

const OPTIMISM_SPEC_ID: OptimismSpecId = OptimismSpecId::BYZANTIUM

Source§

impl OptimismSpec for CancunSpec

Source§

const OPTIMISM_SPEC_ID: OptimismSpecId = OptimismSpecId::CANCUN

Source§

impl OptimismSpec for CanyonSpec

Source§

const OPTIMISM_SPEC_ID: OptimismSpecId = OptimismSpecId::CANYON

Source§

impl OptimismSpec for EcotoneSpec

Source§

const OPTIMISM_SPEC_ID: OptimismSpecId = OptimismSpecId::ECOTONE

Source§

impl OptimismSpec for FjordSpec

Source§

const OPTIMISM_SPEC_ID: OptimismSpecId = OptimismSpecId::FJORD

Source§

impl OptimismSpec for FrontierSpec

Source§

const OPTIMISM_SPEC_ID: OptimismSpecId = OptimismSpecId::FRONTIER

Source§

impl OptimismSpec for GraniteSpec

Source§

const OPTIMISM_SPEC_ID: OptimismSpecId = OptimismSpecId::GRANITE

Source§

impl OptimismSpec for HomesteadSpec

Source§

const OPTIMISM_SPEC_ID: OptimismSpecId = OptimismSpecId::HOMESTEAD

Source§

impl OptimismSpec for IstanbulSpec

Source§

const OPTIMISM_SPEC_ID: OptimismSpecId = OptimismSpecId::ISTANBUL

Source§

impl OptimismSpec for LatestSpec

Source§

const OPTIMISM_SPEC_ID: OptimismSpecId = OptimismSpecId::LATEST

Source§

impl OptimismSpec for LondonSpec

Source§

const OPTIMISM_SPEC_ID: OptimismSpecId = OptimismSpecId::LONDON

Source§

impl OptimismSpec for MergeSpec

Source§

const OPTIMISM_SPEC_ID: OptimismSpecId = OptimismSpecId::MERGE

Source§

impl OptimismSpec for PetersburgSpec

Source§

const OPTIMISM_SPEC_ID: OptimismSpecId = OptimismSpecId::PETERSBURG

Source§

impl OptimismSpec for PragueEofSpec

Source§

const OPTIMISM_SPEC_ID: OptimismSpecId = OptimismSpecId::PRAGUE_EOF

Source§

impl OptimismSpec for PragueSpec

Source§

const OPTIMISM_SPEC_ID: OptimismSpecId = OptimismSpecId::PRAGUE

Source§

impl OptimismSpec for RegolithSpec

Source§

const OPTIMISM_SPEC_ID: OptimismSpecId = OptimismSpecId::REGOLITH

Source§

impl OptimismSpec for ShanghaiSpec

Source§

const OPTIMISM_SPEC_ID: OptimismSpecId = OptimismSpecId::SHANGHAI

Source§

impl OptimismSpec for SpuriousDragonSpec

Source§

const OPTIMISM_SPEC_ID: OptimismSpecId = OptimismSpecId::SPURIOUS_DRAGON

Source§

impl OptimismSpec for TangerineSpec

Source§

const OPTIMISM_SPEC_ID: OptimismSpecId = OptimismSpecId::TANGERINE