Expand description
§alloy-hardforks
This crate contains definitions for Ethereum hardforks.
Re-exports§
pub use ethereum::holesky;
pub use ethereum::hoodi;
pub use ethereum::mainnet;
pub use ethereum::sepolia;
pub use arbitrum::mainnet as arbitrum_mainnet;
pub use arbitrum::sepolia as arbitrum_sepolia;
Modules§
Macros§
- hardfork
- Macro that defines different variants of a chain specific enum. See
crate::Hardfork
as an example.
Structs§
- EnrFork
IdEntry - Re-exported EIP-2124 forkid types. Represents a forward-compatible ENR entry for including the forkid in a node record via EIP-868. Forward compatibility is achieved via EIP-8.
- Ethereum
Chain Hardforks - A type allowing to configure activation
ForkCondition
s for a given list ofEthereumHardfork
s. - Fork
Filter - Re-exported EIP-2124 forkid types.
Filter that describes the state of blockchain and can be used to check incoming
ForkId
s for compatibility. - Fork
Hash - Re-exported EIP-2124 forkid types.
CRC32
hash of all previous forks starting from genesis block. - ForkId
- Re-exported EIP-2124 forkid types. A fork identifier as defined by EIP-2124. Serves as the chain compatibility identifier.
- Fork
Transition - Re-exported EIP-2124 forkid types. Represents a transition from one fork to another
- Head
- Re-exported EIP-2124 forkid types. Describes the current head block.
Enums§
- Ethereum
Hardfork - The name of an Ethereum hardfork.
- Fork
Condition - The condition at which a fork is activated.
- Fork
Filter Key - Re-exported EIP-2124 forkid types. How to filter forks.
- Validation
Error - Re-exported EIP-2124 forkid types.
Reason for rejecting provided
ForkId
.
Traits§
- Ethereum
Hardforks - Helper methods for Ethereum forks.
- Hardfork
- Generic hardfork trait.