Expand description
The spec of an Ethereum network
Modules§
- Re-export for convenience The
Arbitrary
trait crate.
Macros§
- Re-export for convenience Macro that defines different variants of a chain specific enum. See
crate::Hardfork
as an example.
Structs§
- BaseFeeParams contains the config parameters that control block base fee computation
- Either a known
NamedChain
or a EIP-155 chain ID. - Re-export for convenience Ordered list of a chain hardforks that implement
Hardfork
. - Current status of the blockchain’s head.
- An Ethereum chain specification.
- A helper to build custom chain specs
PoS
deposit contract details.- Re-export for convenience A container for pretty-printing a list of hardforks.
- Re-export for convenience Represents a forward-compatible ENR entry for including the forkid in a node record via EIP-868. Forward compatibility is achieved via EIP-8.
- A type alias to a vector of tuples of Hardfork and
BaseFeeParams
, sorted by Hardfork activation order. This is used to specify dynamic EIP-1559 parameters for chains like Optimism. - Re-export for convenience Filter that describes the state of blockchain and can be used to check incoming
ForkId
s for compatibility. - Re-export for convenience
CRC32
hash of all previous forks starting from genesis block. - Re-export for convenience A fork identifier as defined by EIP-2124. Serves as the chain compatibility identifier.
- Re-export for convenience Represents a transition from one fork to another
- Re-export for convenience Describes the current head block.
Enums§
- A wrapper around
BaseFeeParams
that allows for specifying constant or dynamic EIP-1559 parameters based on the active Hardfork. - The kind of chain. Returned by
Chain::kind
. Prefer usingChain
instead. - Re-export for convenience The name of an Ethereum hardfork.
- Re-export for convenience The condition at which a fork is activated.
- Re-export for convenience How to filter forks.
- An Ethereum EIP-155 chain.
- Re-export for convenience Reason for rejecting provided
ForkId
.
Constants§
- Gas per transaction not creating a contract.
Statics§
- Dev testnet specification
- Re-export for convenience Dev hardforks
- The Holesky spec
- The Ethereum mainnet spec
- The Sepolia spec
Traits§
- A trait for reading the current chainspec.
- Trait representing type configuring a chain spec.
- Re-export for convenience Helper methods for Ethereum forks.
- Re-export for convenience Generic hardfork trait.
- Re-export for convenience Generic trait over a set of ordered hardforks
Functions§
- Simple utility to create a thread-safe sync cell with a value set.
- test_
fork_ ids test-utils
VerifiesChainSpec
configuration against expected data in given cases.