Crate context
Expand description
Optimism-specific constants, types, and helpers.
Modules§
- block
- This module contains
BlockEnv
and it implementsBlock
trait. - cfg
- This module contains
CfgEnv
and implementsCfg
trait for it. - context
- This module contains
Context
struct and implementsContextTr
trait for it. - either
- The enum
Either
with variantsLeft
andRight
is a general purpose sum type with two cases. - evm
- This module contains
Evm
struct. - journal
- This module contains
Journal
struct and implementsJournalTr
trait for it. - journaled_
state - local
- Local context that is filled by execution.
- result
- transaction
- tx
- This module contains
TxEnv
struct and implementsTransaction
trait for it.
Structs§
- Block
Env - 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
- Journal
Inner - Inner journal state that contains journal and state changes.
- Journal
Output - Output of the journal after finalizing.
- Local
Context - 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
Transaction
trait, which is used inside the EVM to execute a transaction.
Enums§
- Create
Scheme - Create scheme
- Journal
Entry - Journal entries that are used to track changes to the state and are used to revert it.
- Transaction
Type - Transaction types of all Ethereum transaction
Traits§
- Block
- Trait for retrieving block information required for execution.
- Cfg
- Context
Setters - Context
Tr - Trait that defines the context of the EVM execution.
- DBError
Marker - Database error marker is needed to implement From conversion for Error type.
- Database
- EVM database interface.
- Journal
Entry Tr - Trait for tracking and reverting state changes in the EVM. Journal entry contains information about state changes that can be reverted.
- Journal
Tr - Trait that contains database and journal of all changes that were made to the state.
- Local
Context 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§
- Transact
To - Transaction destination