Expand description
Foundry’s main executor backend abstraction and implementation.
Structs§
- Backend
- Provides the underlying
revm::Databaseimplementation. - Backend
Inner - Container type for various Backend related data
- Backend
State Snapshot - Represents a state snapshot taken during evm execution
- Blockchain
Db - A shareable Block database
- Blockchain
DbMeta - relevant identifying markers in the context of BlockchainDb
- CowBackend
- A wrapper around
Backendthat ensures onlyrevm::DatabaseReffunctions are called. - EmptyDB
Wrapper - An empty database that always returns default values when queried.
- Fork
- Represents a fork
- Fork
Block - A block number and hash that identify the exact root of a fork.
- MemDb
- In-memory [
Database] for Anvil. - Shared
Backend - A cloneable backend type that shares access to the backend data with all its clones.
- State
Snapshot - A minimal abstraction of a state at a certain point in time
Enums§
- Backend
Database Snapshot - Variants of a [revm::Database]
- Backend
Error - Errors that can happen when working with [
revm::Database] - Context
Update monad - Transaction-context update required after a fork operation.
- Database
Error - Errors that can happen when working with [
revm::Database] - Fork
Account Field - Account field changed by an out-of-band fork RPC mutation.
- Revert
Diagnostic - Represents possible diagnostic cases on revert
- Revert
State Snapshot Action - What to do when reverting a state snapshot.
Constants§
- GLOBAL_
FAIL_ SLOT bytes32("failed"), as a storage slot key intoCHEATCODE_ADDRESS.
Traits§
- Database
Ext - An extension trait that allows us to easily extend the
revm::Inspectorcapabilities - Fork
Block Env - Marker trait for block environment types that can be used with the forking backend.
Functions§
- update_
state - Helper method which updates data in the state with the data from the database. Does not change state for persistent accounts (for roll fork to transaction and transact).
Type Aliases§
- Backend
Result - Context
Update For monad - Transaction-context update required after a fork operation, for a given
FoundryEvmFactory. - Database
Result - Result alias with
DatabaseErroras error - Foundry
EvmIn MemoryDB - Type alias for an in-memory database.
- Journaled
State - Local
Fork Id - Represents a numeric
ForkIdvalid only for the existence of theBackend.