Expand description
[revm] related types Helper types for working with [revm]
StructsΒ§
- Anvil
CacheDB - A wrapper around [
CacheDB] that executes transactions atspec. - Empty
AsAbsent πDb - A read-only view of a database that reports empty accounts as absent.
- Legacy
Blob Excess GasAnd Price - Legacy blob excess gas and price structure from before v1.3.
- Legacy
Block Env - Legacy block environment from before v1.3.
- Monad
Block Replay Profile monad - Execution inputs needed to replay a locally stored Monad block faithfully.
- Serializable
Account Record - Serializable
Block - Serializable
Historical States - Serializable
State - Serializable
Transaction - StateDb
- Represents a state at certain point
EnumsΒ§
- Serializable
Transaction Type - Defines a backwards-compatible enum for transactions. This is essential for maintaining compatibility with state dumps created before the changes introduced in PR #8411.
- String
OrU64 - Legacy string or u64 type from before v1.3.
ConstantsΒ§
- BLOCKHASH_
HISTORY π - Number of preceding block hashes available to the EVMβs
BLOCKHASHopcode.
TraitsΒ§
- Db
- This bundles all required revm traits
- Maybe
Forked Database - Helper trait to reset the DB if itβs forked
- Maybe
Full Database - 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_numberthat handles both v1.2 and v1.3+ formats. - deserialize_
block_ πenv_ compat - Custom deserializer for
BlockEnvthat handles both v1.2 and v1.3+ formats. - deserialize_
btree π