Crate primitives
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.
- 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
metrics
- Executor metrics.
- noop
- A no operation block executor implementation.
- state_
changes - State changes that are not related to transactions.
- system_
calls - System contract call functions.
- test_
utils test-utils
- test helpers for mocking executor Helpers for testing.
- tx
- Abstraction of an executable transaction.
Structs§
- EthEvm
- Ethereum EVM implementation.
- EthEvm
Factory - Factory producing
EthEvm
. - EvmEnv
- Container type that holds both the configuration and block environment for EVM execution.
- Next
Block EnvAttributes - Represents additional attributes required to configure the next block.
This is used to configure the next block’s environment
ConfigureEvm::next_evm_env
and contains fields that can’t be derived from the parent header alone (attributes that are determined by the CL.)
Traits§
- Configure
Evm - A complete configuration of EVM for Reth.
- Database
- Helper trait to bound [
revm::Database::Error
] with 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.
- From
Recovered Tx - Helper user-facing trait to allow implementing
IntoTxEnv
on instances ofRecovered
. - Inspector
For - Helper trait to bound [
Inspector
] for 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.
- Transaction
Env - Abstraction over transaction environment.
Type Aliases§
- EvmContext
For - Helper to access
EvmFactory::Context
for a givenConfigureEvm
. - EvmEnv
For - Type alias for
EvmEnv
for a givenConfigureEvm
. - EvmError
For - Helper to access
EvmFactory::Error
for a givenConfigureEvm
. - EvmFactory
For - Helper to access
EvmFactory
for a givenConfigureEvm
. - EvmFor
- Helper to access
EvmFactory::Evm
for a givenConfigureEvm
. - Execution
CtxFor - Helper to access
BlockExecutorFactory::ExecutionCtx
for a givenConfigureEvm
. - Halt
Reason For - Helper to access
EvmFactory::HaltReason
for a givenConfigureEvm
. - SpecFor
- Helper to access
EvmFactory::Spec
for a givenConfigureEvm
. - TxEnv
For - Helper to access
EvmFactory::Tx
for a givenConfigureEvm
.