Expand description
In-memory Backend In-memory blockchain backend.
ModulesΒ§
- cache
- fork_db
- in_
memory_ db - The in memory DB
- inspector
- Anvil specific [
revm::Inspector] implementation - optimism
optimism - Optimism-specific transact helpers for the in-memory backend.
- state
- Support for generating the state root for memdb storage
- storage
- In-memory blockchain storage
StructsΒ§
- Backend
- Gives access to the [revm::Database]
- Prepared
Call π - Simulation
Handler π - Ethereum handler that skips blob fee cap validation for non-validating calls with a zero cap.
- Simulation
Precompile πOverrides - Typed
Call πOverrides
EnumsΒ§
- Block
Request - A block request, which includes the Pool Transactions if itβs Pending
- Call
TxEnv π
ConstantsΒ§
- HOLESKY_
DEPOSIT_ πCONTRACT_ ADDRESS - MIN_
CREATE_ GAS - MIN_
TRANSACTION_ GAS - SEPOLIA_
DEPOSIT_ πCONTRACT_ ADDRESS - SIMULATE_
GAS_ πCAP - Maximum cumulative gas available to one
eth_simulateV1request. - TEMPO_
RPC_ πSIMULATION_ CONTEXT - Fixed transaction context for direct Tempo RPC simulations.
TraitsΒ§
- Backend
Inspector optimism - Marker trait that abstracts over the per-network inspector trait bounds
required by the in-memory backend. The OP bound is only included when the
optimismfeature is enabled. - Database
Ref - Helper trait that combines revm::DatabaseRef with Debug. This is needed because alloy-evm requires Debug on Database implementations. With trait upcasting now stable, we can now upcast from this trait to revm::DatabaseRef.
- Into
Instruction Result - Converts a halt reason into an [
InstructionResult].
FunctionsΒ§
- apply_
tempo_ πenvelope_ identity - call_
config_ πfrom_ tracer_ config - commit_
cache π - Commits a fully executed candidate cache to the live database.
- get_
pool_ πtransactions_ nonce - Get max nonce from transaction pool by address.
- is_
arbitrum - mock_
tempo_ πsignature - preserve_
deleted_ πstorage - previously_
deleted_ πaccounts - prove_
storage - Prove a storage keyβs existence or nonexistence in the accountβs storage trie.
- rehash π
- Replaces the cached hash of a [
Signed] transaction, preserving the inner tx and signature. - sanitize_
simulation_ πblocks - simulate_
rpc_ πerror - simulate_
transaction_ πerror - tempo_
db_ πerr - Converts a Tempo error into an anvil [
DatabaseError]. - tempo_
nonce π - transaction_
build - Creates a
AnyRpcTransactionas itβs expected for theethRPC api from storage data - unpack_
execution_ πresult - Unpacks an [
ExecutionResult] into its exit reason, gas used, output, and logs.
Type AliasesΒ§
- OpCall
Deposit πInfo optimism - Side-channel container for OP-specific deposit info produced by
Backend::build_call_envand consumed by the OP transact path. - State