Expand description
Re-exported from reth_chainspec
Modules§
- The
Arbitrary
trait crate.
Macros§
- 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. - 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.- A container for pretty-printing a list of hardforks.
- 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 specification parser.
- 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. - Filter that describes the state of blockchain and can be used to check incoming
ForkId
s for compatibility. CRC32
hash of all previous forks starting from genesis block.- A fork identifier as defined by EIP-2124. Serves as the chain compatibility identifier.
- Represents a transition from one fork to another
- 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. - The name of an Ethereum hardfork.
- The condition at which a fork is activated.
- How to filter forks.
- An Ethereum EIP-155 chain.
- Reason for rejecting provided
ForkId
.
Constants§
- Gas per transaction not creating a contract.
- Chains supported by reth. First value should be used as the default.
Statics§
- Dev testnet specification
- 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.
- Helper methods for Ethereum forks.
- Generic hardfork trait.
- Generic trait over a set of ordered hardforks
Functions§
- Clap value parser for
ChainSpec
s. - 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.