Module pre_execution
Available on crate feature
evm only.Expand description
Handles related to the main function of the EVM.
They handle initial setup of the EVM, call loop and the final return of the EVM
Structs§
- PreExecution
Output - Gas decisions made by the pre-execution phase, carried to the execution phase.
Functions§
- apply_
auth_ list - Apply EIP-7702 style auth list and return number gas refund on already created accounts.
- apply_
auth_ list_ eip2780 - Applies an EIP-7702 auth list under EIP-2780, recording the
state-dependent runtime charges on the transaction-level
gasinstead of the pessimistic intrinsic-charge/refund bookkeeping ofapply_auth_list. - apply_
eip7702_ auth_ list - Apply EIP-7702 auth list and return number gas refund on already created accounts.
- calculate_
caller_ fee - Check maximum possible fee and deduct the effective fee.
- load_
accounts - Loads and warms accounts for execution, including precompiles and access list.
- validate_
account_ nonce_ and_ code - Validates caller account nonce and code according to EIP-3607.
- validate_
account_ nonce_ and_ code_ with_ components - Validates caller account nonce and code according to EIP-3607.
- validate_
against_ state_ and_ deduct_ caller - Validates caller state and deducts transaction costs from the caller’s balance.