pub type StateCacheDb = CacheDB<Db<StateProviderDatabase<EvmStateProviderAdapter<Box<dyn StateProvider + Send>>>>>;Expand description
Helper alias type for cached state access.
Aliased Type§
pub struct StateCacheDb {
pub cache: Cache,
pub db: Db<StateProviderDatabase<EvmStateProviderAdapter<Box<dyn StateProvider + Send>>>>,
pub bal_context: BalContext,
/* private fields */
}Fields§
§cache: CacheThe cache that stores all local state.
db: Db<StateProviderDatabase<EvmStateProviderAdapter<Box<dyn StateProvider + Send>>>>Wrapped backing database.
bal_context: BalContextOptional EIP-7928 Block Access List read/build state. Default is empty (no BAL attached and no builder), in which case reads go straight to the cache/database.
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 240 bytes