Available on crate feature 
evm only.Expand description
Traits for configuring an EVM specifics.
§Revm features
This crate does not enforce specific revm features such as blst or c-kzg, which are
critical for revm’s evm internals, it is the responsibility of the implementer to ensure the
proper features are selected.
Modules§
- block
 - Block execution abstraction.
 - call
 - Utilities for dealing with eth_call and adjacent RPC endpoints.
 - either
 - Helper type that represents one of two possible executor types
 - env
 - Configuration types for EVM environment.
 - error
 - Abstraction over EVM errors.
 - eth
 - Ethereum EVM implementation.
 - evm
 - Abstraction over EVM.
 - execute
 - EVM environment configuration. Traits for execution.
 - metrics
 - Executor metrics.
 - noop
 - Helpers for testing.
 - op
 - Optimism EVM implementation.
 - op_revm
 - Optimism-specific constants, types, and helpers.
 - overrides
 - RPC utilities for working with EVM.
 - precompiles
 - Helpers for dealing with Precompiles.
 - revm
 - Revm is a Rust EVM implementation.
 - state_
changes  - State changes that are not related to transactions.
 - system_
calls  - System contract call functions.
 - test_
utils  - test helpers for mocking executor Helpers for testing.
 - tracing
 - Helpers for tracing.
 - traits
 - EVM traits.
 - tx
 - Transaction abstractions for EVM execution.
 
Structs§
- Erased
Error  - Erased error type.
 - EthEvm
 - Ethereum EVM implementation.
 - EthEvm
Factory  - Factory producing 
EthEvm. - EvmEnv
 - Container type that holds both the configuration and block environment for EVM execution.
 - EvmInternals
 - Helper type exposing hooks into EVM and access to evm internal settings.
 - Next
Block EnvAttributes  - Represents additional attributes required to configure the next block.
 
Enums§
- EvmInternals
Error  - Errors returned by 
EvmInternals. 
Traits§
- Configure
Engine Evm  ConfigureEvmextension providing methods for executing payloads.- Configure
Evm  - A complete configuration of EVM for Reth.
 - Database
 - Helper trait to bound 
revm::Database::Errorwith common requirements. - Evm
 - An instance of an ethereum virtual machine.
 - EvmError
 - Abstraction over errors that can occur during EVM execution.
 - EvmFactory
 - A type responsible for creating instances of an ethereum virtual machine given a certain input.
 - Executable
TxIterator  - Iterator over executable transactions.
 - From
Recovered Tx  - Helper trait for building a transaction environment from a recovered transaction.
 - From
TxWith Encoded  - Helper trait for building a transaction environment from a transaction with its encoded form.
 - Inspector
For  - Helper trait to bound 
Inspectorfor aConfigureEvm. - Into
TxEnv  - Trait marking types that can be converted into a transaction environment.
 - Invalid
TxError  - Abstraction over transaction validation error.
 - OnState
Hook  - A hook that is called after each state change.
 - Recovered
Tx  - Helper trait to abstract over different 
Recovered<T>implementations. - ToTxEnv
 - A helper trait to allow implementing 
IntoTxEnvfor types that build transaction environment by cloning data. - Transaction
Env  - Abstraction over transaction environment.
 
Functions§
- spec
 - Map the latest active hardfork at the given header to a 
SpecId. - spec_
by_ timestamp_ and_ block_ number  - Map the latest active hardfork at the given timestamp or block number to a 
SpecId. 
Type Aliases§
- Block
EnvFor  - Helper to access 
EvmFactory::BlockEnvfor a givenConfigureEvm. - EvmContext
For  - Helper to access 
EvmFactory::Contextfor a givenConfigureEvm. - EvmEnv
For  - Type alias for 
EvmEnvfor a givenConfigureEvm. - EvmError
For  - Helper to access 
EvmFactory::Errorfor a givenConfigureEvm. - EvmFactory
For  - Helper to access 
EvmFactoryfor a givenConfigureEvm. - EvmFor
 - Helper to access 
EvmFactory::Evmfor a givenConfigureEvm. - Execution
CtxFor  - Helper to access 
BlockExecutorFactory::ExecutionCtxfor a givenConfigureEvm. - Halt
Reason For  - Helper to access 
EvmFactory::HaltReasonfor a givenConfigureEvm. - SpecFor
 - Helper to access 
EvmFactory::Specfor a givenConfigureEvm. - TxEnv
For  - Helper to access 
EvmFactory::Txfor a givenConfigureEvm.