Crate handler
Expand description
EVM execution handling.
Modules§
- api
- EVM execution API traits and implementations.
- evm
- Core EVM traits for execution and frame management.
- execution
- EVM execution logic and utilities.
- handler
- Handler implementation for orchestrating EVM execution.
- instructions
- EVM instruction set implementations and tables.
- post_
execution - Post-execution operations including gas refunds and state finalization.
- pre_
execution - Handles related to the main function of the EVM.
- system_
call - System call implementations for special EVM operations. System call logic for external state transitions required by certain EIPs (notably EIP-2935 and EIP-4788).
- validation
- Transaction and environment validation utilities.
Structs§
- Call
Frame - Call Frame
- Create
Frame - Create Frame
- EthFrame
- Frame implementation for Ethereum.
- EthPrecompiles
- The
PrecompileProvider
for ethereum precompiles. - Mainnet
Handler - Mainnet handler that implements the default
Handler
trait for the Evm.
Enums§
- Frame
Data - Frame Data
- Frame
Result - Frame Result
- Item
OrResult - Represents either an item or a result.
Constants§
- SYSTEM_
ADDRESS - The system address used for system calls.
Traits§
- EvmTr
- A trait that integrates context, instruction set, and precompiles to create an EVM struct.
- EvmTr
Error - Trait for errors that can occur during EVM execution.
- Execute
Commit Evm - Extension of the
ExecuteEvm
trait that adds a method that commits the state after execution. - Execute
Evm - Execute EVM transactions. Main trait for transaction execution.
- FrameTr
- Trait for defining a frame type used in EVM execution.
- Handler
- The main implementation of Ethereum Mainnet transaction execution.
- Main
Builder - Trait for building mainnet EVM instances from contexts.
- Main
Context - Trait used to initialize Context with default mainnet types.
- Precompile
Provider - Provider for precompiled contracts in the EVM.
- System
Call Commit Evm - Extension of the
SystemCallEvm
trait that adds a method that commits the state after execution. - System
Call Evm - API for executing the system calls. System calls dont deduct the caller or reward the beneficiary. They are used before and after block execution to insert or obtain blockchain state.
- System
Call Tx - Creates the system transaction with default values and set data and tx call target to system contract address that is going to be called.
Functions§
- return_
create - Handles the result of a CREATE operation, including validation and state updates.
Type Aliases§
- Context
TrDb Error - Type alias for database errors from a context.
- Frame
Init OrResult - Type alias for frame initialization or result.
- Mainnet
Context - Type alias for a mainnet context with standard Ethereum environment types.
- Mainnet
Evm - Type alias for a mainnet EVM instance with standard Ethereum components.