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
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§

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§

State