Crate context
Expand description
Optimism-specific constants, types, and helpers.
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.
- journal
- This module contains Journalstruct and implementsJournalTrtrait for it.
- journaled_state 
- local
- Local context that is filled by execution.
- result
- transaction
- tx
- This module contains TxEnvstruct and implementsTransactiontrait for it.
Structs§
- BlockEnv 
- The block environment
- CfgEnv
- EVM configuration
- Context
- EVM context contains data that EVM needs for execution.
- Evm
- Main EVM structure that contains all data needed for execution.
- Journal
- A journal of state changes internal to the EVM
- JournalInner 
- Inner journal state that contains journal and state changes.
- JournalOutput 
- Output of the journal after finalizing.
- LocalContext 
- Local context that is filled by execution.
- TxEnv
- The Transaction Environment is a struct that contains all fields that can be found in all Ethereum transaction,
including EIP-4844, EIP-7702, EIP-7873, etc.  It implements the Transactiontrait, which is used inside the EVM to execute a transaction.
Enums§
- CreateScheme 
- Create scheme
- JournalEntry 
- Journal entries that are used to track changes to the state and are used to revert it.
- TransactionType 
- Transaction types of all Ethereum transaction
Traits§
- Block
- Trait for retrieving block information required for execution.
- Cfg
- ContextSetters 
- 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.
- JournalEntry Tr 
- Trait for tracking and reverting state changes in the EVM. Journal entry contains information about state changes that can be reverted.
- 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