Module backend
Expand description
Foundry’s main executor backend abstraction and implementation.
Structs§
- Provides the underlying
revm::Database
implementation. - Container type for various Backend related data
- Represents a state snapshot taken during evm execution
- A shareable Block database
- relevant identifying markers in the context of BlockchainDb
- A wrapper around
Backend
that ensures onlyrevm::DatabaseRef
functions are called. - An empty database that always returns default values when queried.
- Represents a fork
- In-memory [
Database
] for Anvil. - A cloneable backend type that shares access to the backend data with all its clones.
- A minimal abstraction of a state at a certain point in time
Enums§
- Variants of a [revm::Database]
- Errors that can happen when working with [
revm::Database
] - Errors that can happen when working with [
revm::Database
] - Represents possible diagnostic cases on revert
- What to do when reverting a state snapshot.
Constants§
bytes32("failed")
, as a storage slot key intoCHEATCODE_ADDRESS
.
Traits§
- An extension trait that allows us to easily extend the
revm::Inspector
capabilities
Functions§
- 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§
- Result alias with
DatabaseError
as error - Type alias for an in-memory database.
- Represents a numeric
ForkId
valid only for the existence of theBackend
.