Skip to main content

Module db

Module db 

Source
Expand description

revm related types Helper types for working with revm

Structs§

AnvilCacheDB
A wrapper around [CacheDB].
LegacyBlobExcessGasAndPrice
Legacy blob excess gas and price structure from before v1.3.
LegacyBlockEnv
Legacy block environment from before v1.3.
SerializableAccountRecord
SerializableBlock
SerializableHistoricalStates
SerializableState
SerializableTransaction
StateDb
Represents a state at certain point

Enums§

SerializableTransactionType
Defines a backwards-compatible enum for transactions. This is essential for maintaining compatibility with state dumps created before the changes introduced in PR #8411.
StringOrU64
Legacy string or u64 type from before v1.3.

Constants§

BLOCKHASH_HISTORY 🔒
Number of preceding block hashes available to the EVM’s BLOCKHASH opcode.

Traits§

Db
This bundles all required revm traits
MaybeForkedDatabase
Helper trait to reset the DB if it’s forked
MaybeFullDatabase
Helper trait get access to the full state data of the database

Functions§

cache_block_hash 🔒
Inserts a block hash, discards entries outside the EVM-visible cache, and returns its head.
deserialize_best_block_number_compat 🔒
Custom deserializer for best_block_number that handles both v1.2 and v1.3+ formats.
deserialize_block_env_compat 🔒
Custom deserializer for BlockEnv that handles both v1.2 and v1.3+ formats.
deserialize_btree 🔒