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 - monad π
monad - Monad-specific execution and context helpers for the in-memory backend.
- 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]
- Envelope
Execution π - Fork
Cache πNamespace - Identifies one endpointβs persisted cache files across all blocks of a source chain.
- Fork
Cache πSource - Identifies the endpoint that supplied the most recently committed fork.
- GasEstimate
Call πOptions - Prepared
Call π - Simulation
Handler π - Ethereum handler that skips blob fee cap validation for non-validating calls with a zero cap.
- Simulation
Precompile πOverrides - Staged
Fork πCache Lease - Keeps a staged fork from persisting remote state unless it is committed.
- Staged
Fork πCache Lease Inner - Staged
Fork πDbUser - Couples an asynchronous staged-database user to its rollback lease.
- Staged
Fork πReset - Fully prepared fork replacement awaiting an atomic backend commit.
- Staged
Memory πReset - Fully prepared in-memory replacement awaiting an atomic backend commit.
- State
Snapshot π - Typed
Call πOverrides
EnumsΒ§
- Block
Request - A block request, which includes the Pool Transactions if itβs Pending
- Call
TxEnv π - Envelope
Execution πKind - Monad
Execution πContext monad
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 monadandoptimism - 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 - arbitrum_
replay_ πblock_ number - build_
rpc_ πtransaction - call_
config_ πfrom_ tracer_ config - commit_
cache π - Commits a fully executed candidate cache to the live database.
- foundry_
header π - Wraps an Ethereum-shaped header in the selected networkβs consensus header.
- genesis_
header π - Creates an Ethereum-shaped genesis header from the EVM environment.
- get_
pool_ πtransactions_ nonce - Get max nonce from transaction pool by address.
- is_
arbitrum - mock_
tempo_ πsignature - monad_
execution_ πcontext_ at monad - next_
monad_ πcontext monad - noop_
before_ πtransaction - noop_
on_ πexecution_ error - 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Β§
- Monad
Replay πContext monad - OpCall
Deposit πInfo optimism - Side-channel container for OP-specific deposit info produced by
Backend::build_call_env_with_baseand consumed by the OP transact path. - State