pub type OpContext<DB> = Context<BlockEnv, OpTransaction<TxEnv>, CfgEnv<OpSpecId>, DB, Journal<DB>, L1BlockInfo>;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: BlockEnvBlock information.
tx: OpTransaction<TxEnv>Transaction information.
cfg: CfgEnv<OpSpecId>Configurations.
journaled_state: Journal<DB>EVM State with journaling support and database.
chain: L1BlockInfoInner context.
local: LocalContextLocal context that is filled by execution.
error: Result<(), ContextError<<DB as Database>::Error>>Error that happened during execution.