Expand description
EVM execution context.
Re-exports§
- pub use block::BlockEnv;
- pub use cfg::CfgEnv;
- pub use evm::Evm;
- pub use local::LocalContext;
- pub use tx::TxEnv;
- pub use context::*;
- pub use journal::*;
Modules§
- block
- This module contains BlockEnvand it implementsBlocktrait.
- cfg
- This module contains CfgEnvand implementsCfgtrait for it.
- context
- This module contains Contextstruct and implementsContextTrtrait for it.
- either
- The enum Eitherwith variantsLeftandRightis a general purpose sum type with two cases.
- evm
- This module contains Evmstruct.
- host
- Host interface for external blockchain state access.
- journal
- This module contains Journalstruct and implementsJournalTrtrait for it.
- journaled_state 
- Journaled state trait JournalTrand related types.
- local
- Local context that is filled by execution.
- result
- Result of the EVM execution. Containing both execution result, state and errors.
- transaction
- Transaction trait Transactionand associated types.
- tx
- This module contains TxEnvstruct and implementsTransactiontrait for it.
Structs§
- DummyHost 
- Dummy host that implements Hosttrait and returns all default values.
- FrameStack 
- Non-empty, item-pooling Vec.
- FrameToken 
- Used to guarantee that a frame is initialized before use.
- OutFrame
- A potentially initialized frame. Used when initializing a new frame in the main loop.
Enums§
- ContextError 
- Inner Context error used for Interpreter to set error without returning it from instruction
- CreateScheme 
- Create scheme
- TransactionType 
- Transaction types of all Ethereum transactions
Traits§
- Block
- Trait for retrieving block information required for execution.
- Cfg
- Configuration for the EVM.
- ContextSetters 
- Trait for setting the transaction and block in the context.
- ContextTr 
- Trait that defines the context of the EVM execution.
- DBErrorMarker 
- Database error marker is needed to implement From conversion for Error type.
- Database
- EVM database interface.
- Host
- Host trait with all methods that are needed by the Interpreter.
- JournalTr 
- Trait that contains database and journal of all changes that were made to the state.
- LocalContext Tr 
- Local context used for caching initcode from Initcode transactions.
- Transaction
- Main Transaction trait that abstracts and specifies all transaction currently supported by Ethereum
Type Aliases§
- TransactTo 
- Transaction destination