Skip to main content

Module mem

Module mem 

Source
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
optimismoptimism
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]

Enums§

BlockRequest
A block request, which includes the Pool Transactions if it’s Pending

Constants§

MIN_CREATE_GAS
MIN_TRANSACTION_GAS

Traits§

BackendInspectoroptimism
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 optimism feature is enabled.
DatabaseRef
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.
IntoInstructionResult
Converts a halt reason into an [InstructionResult].

Functions§

get_pool_transactions_nonce 🔒
Get max nonce from transaction pool by address.
is_arbitrum
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.
transaction_build
Creates a AnyRpcTransaction as it’s expected for the eth RPC api from storage data
unpack_execution_result 🔒
Unpacks an [ExecutionResult] into its exit reason, gas used, output, and logs.

Type Aliases§

OpCallDepositInfo 🔒 optimism
Side-channel container for OP-specific deposit info produced by Backend::build_call_env and consumed by the OP transact path.
State