Crate context

Expand description

Optimism-specific constants, types, and helpers.

Modules§

block
This module contains BlockEnv and it implements Block trait.
cfg
This module contains CfgEnv and implements Cfg trait for it.
context
This module contains Context struct and implements ContextTr trait for it.
either
The enum Either with variants Left and Right is a general purpose sum type with two cases.
evm
This module contains Evm struct.
journal
This module contains Journal struct and implements JournalTr trait for it.
journaled_state
local
Local context that is filled by execution.
result
transaction
tx
This module contains TxEnv struct and implements Transaction trait 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 Transaction trait, 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.
JournalEntryTr
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.
LocalContextTr
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