Type Alias OpContext
pub type OpContext<DB> = Context<BlockEnv, OpTransaction<TxEnv>, CfgEnv<OpSpecId>, DB, Journal<DB>, L1BlockInfo>;
Available on crate feature
evm
only.Expand description
Type alias for the default context type of the OpEvm.
Aliased Type§
pub struct OpContext<DB> {
pub block: BlockEnv,
pub tx: OpTransaction<TxEnv>,
pub cfg: CfgEnv<OpSpecId>,
pub journaled_state: Journal<DB>,
pub chain: L1BlockInfo,
pub local: LocalContext,
pub error: Result<(), ContextError<<DB as Database>::Error>>,
}
Fields§
§block: BlockEnv
Block information.
tx: OpTransaction<TxEnv>
Transaction information.
cfg: CfgEnv<OpSpecId>
Configurations.
journaled_state: Journal<DB>
EVM State with journaling support and database.
chain: L1BlockInfo
Inner context.
local: LocalContext
Local context that is filled by execution.
error: Result<(), ContextError<<DB as Database>::Error>>
Error that happened during execution.
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.