Skip to main content

Module cache

Module cache 

Source

Re-exports§

pub use overlay::EvmOverlay;
pub use slot_observations::SlotObservationTracker;
pub use snapshot::EvmSnapshot;

Modules§

IERC20
Module containing a contract’s types and functions.
overlay
slot_observations
Storage-slot change-frequency tracking and freshness heuristics.
snapshot
Immutable, shareable EVM state snapshots.

Structs§

AnyNetworkType
Re-export AnyNetwork for callers that need to construct providers. Types for a catch-all network.
CacheConfig
Configuration for disk-based caching of EVM state.
CallSimulationResult
EvmCache
EVM cache with lazy-loading RPC backend.
EvmCacheBuilder
Fluent builder for EvmCache.
EvmSession
A session for executing multiple EVM operations without committing to the underlying DB.
ImmutableDataCache
Cache for immutable on-chain data that doesn’t change between blocks.
TxConfig
Per-call transaction-environment overrides for a simulation.

Enums§

CacheSpeedMode
Runtime tuning profile for cache-side batch storage fetches.
MissingTargetBehavior
Behavior when overriding code at a target account that is not known to the cache/backend.
SharedMemoryCapacity
How much EVM shared memory (per-context working memory) to pre-allocate for simulations.
SimStatus
Outcome of a balance-delta-tracking simulation.

Functions§

cache_speed_mode
Return the current process-global cache batch-fetch speed profile.
load_binary_state
Load binary EVM state and populate the BlockchainDb.
parse_evm_spec
Parse an EVM hardfork spec name (e.g. from TOML config) into a revm SpecId.
save_binary_state
Save the current BlockchainDb state to a binary file.
set_cache_speed_mode
Set the process-global cache batch-fetch speed profile.

Type Aliases§

ForkCacheDB
The database type used by the EVM cache. CacheDB wraps SharedBackend which lazily fetches data from RPC on-demand.
RpcCallFn
Callback for making direct RPC eth_call requests, bypassing revm simulation. Used when batch-querying many contracts where revm’s lazy storage fetching would be prohibitively slow (e.g. querying 500+ gauge contracts).
StorageBatchFetchFn
Callback for batch-fetching storage slots directly from RPC, bypassing SharedBackend.