DerivedContext

Type Alias DerivedContext 

Source
pub type DerivedContext<DB> = EdbContext<CacheDB<Arc<CacheDB<DB>>>>;
Expand description

Type alias for the derived context with Arc-wrapped CacheDB. This context is used for those derived EVM instances at each snapshot.

Aliased Type§

pub struct DerivedContext<DB> {
    pub block: BlockEnv,
    pub tx: TxEnv,
    pub cfg: CfgEnv,
    pub journaled_state: Journal<CacheDB<CacheDB<Arc<CacheDB<DB>>>>>,
    pub chain: (),
    pub local: LocalContext,
    pub error: Result<(), ContextError<<CacheDB<CacheDB<Arc<CacheDB<DB>>>> as Database>::Error>>,
}

Fields§

§block: BlockEnv

Block information.

§tx: TxEnv

Transaction information.

§cfg: CfgEnv

Configurations.

§journaled_state: Journal<CacheDB<CacheDB<Arc<CacheDB<DB>>>>>

EVM State with journaling support and database.

§chain: ()

Inner context.

§local: LocalContext

Local context that is filled by execution.

§error: Result<(), ContextError<<CacheDB<CacheDB<Arc<CacheDB<DB>>>> as Database>::Error>>

Error that happened during execution.