Module chainspec

Source
Expand description

Re-exported from reth_chainspec

Modules§

arbitrary
The Arbitrary trait crate.

Macros§

hardfork
Macro that defines different variants of a chain specific enum. See crate::Hardfork as an example.

Structs§

BaseFeeParams
BaseFeeParams contains the config parameters that control block base fee computation
Chain
Either a known NamedChain or a EIP-155 chain ID.
ChainHardforks
Ordered list of a chain hardforks that implement Hardfork.
ChainInfo
Current status of the blockchain’s head.
ChainSpec
An Ethereum chain specification.
ChainSpecBuilder
A helper to build custom chain specs
DepositContract
PoS deposit contract details.
DisplayHardforks
A container for pretty-printing a list of hardforks.
EnrForkIdEntry
Represents a forward-compatible ENR entry for including the forkid in a node record via EIP-868. Forward compatibility is achieved via EIP-8.
EthereumChainSpecParser
Ethereum chain specification parser.
ForkBaseFeeParams
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.
ForkFilter
Filter that describes the state of blockchain and can be used to check incoming ForkIds for compatibility.
ForkHash
CRC32 hash of all previous forks starting from genesis block.
ForkId
A fork identifier as defined by EIP-2124. Serves as the chain compatibility identifier.
ForkTransition
Represents a transition from one fork to another
Head
Describes the current head block.

Enums§

BaseFeeParamsKind
A wrapper around BaseFeeParams that allows for specifying constant or dynamic EIP-1559 parameters based on the active Hardfork.
ChainKind
The kind of chain. Returned by Chain::kind. Prefer using Chain instead.
EthereumHardfork
The name of an Ethereum hardfork.
ForkCondition
The condition at which a fork is activated.
ForkFilterKey
How to filter forks.
NamedChain
An Ethereum EIP-155 chain.
ValidationError
Reason for rejecting provided ForkId.

Constants§

MIN_TRANSACTION_GAS
Gas per transaction not creating a contract.
SUPPORTED_CHAINS
Chains supported by reth. First value should be used as the default.

Statics§

DEV
Dev testnet specification
DEV_HARDFORKS
Dev hardforks
HOLESKY
The Holesky spec
MAINNET
The Ethereum mainnet spec
SEISMIC_DEV
Seismic testnet specification
SEISMIC_MAINNET
Seismic mainnet specification
SEPOLIA
The Sepolia spec

Traits§

ChainSpecProvider
A trait for reading the current chainspec.
EthChainSpec
Trait representing type configuring a chain spec.
EthereumHardforks
Helper methods for Ethereum forks.
Hardfork
Generic hardfork trait.
Hardforks
Generic trait over a set of ordered hardforks

Functions§

chain_value_parser
Clap value parser for ChainSpecs.
once_cell_set
Simple utility to create a thread-safe sync cell with a value set.
test_fork_ids
Verifies ChainSpec configuration against expected data in given cases.