Expand description
EVM hardfork definitions for Foundry.
Provides FoundryHardfork, a unified enum over Ethereum, Optimism, and Tempo hardforks
with FromStr/Serialize/Deserialize support for CLI and config usage.
Enums§
- Ethereum
Hardfork - The name of an Ethereum hardfork.
- Foundry
Hardfork - OpHardfork
- The name of an optimism hardfork.
- Tempo
Hardfork - Tempo-specific hardforks for network upgrades.
Traits§
- From
EvmVersion - Trait for converting an [
EvmVersion] into a network-specific spec type.
Functions§
- ethereum_
hardfork_ from_ block_ tag - Convert a
BlockNumberOrTaginto anEthereumHardfork. - evm_
spec_ id - Returns the spec id derived from [
EvmVersion] for a given spec type. - spec_
id_ from_ ethereum_ hardfork - Map an
EthereumHardforkenum into its correspondingSpecId. - spec_
id_ from_ optimism_ hardfork - Map an
OptimismHardforkenum into its correspondingOpSpecId.