Skip to main content

ExecutionSpec

Trait ExecutionSpec 

Source
pub trait ExecutionSpec: FromEvmVersion {
    // Required methods
    fn evm_version_name(&self) -> String;
    fn from_foundry_hardfork(hardfork: FoundryHardfork) -> Option<Self>;

    // Provided method
    fn from_network_hardfork(_: &str) -> Option<Self> { ... }
}
Expand description

Trait for parsing and displaying a network-specific execution spec.

Required Methods§

Provided Methods§

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.

Implementations on Foreign Types§

Source§

impl ExecutionSpec for OpSpecId

Available on crate feature optimism only.
Source§

impl ExecutionSpec for SpecId

Implementors§