Crate revm_database

Source
Expand description

Database implementations.

Re-exports§

pub use states::AccountRevert;
pub use states::AccountStatus;
pub use states::BundleAccount;
pub use states::BundleState;
pub use states::CacheState;
pub use states::DBBox;
pub use states::OriginalValuesKnown;
pub use states::PlainAccount;
pub use states::RevertToSlot;
pub use states::State;
pub use states::StateBuilder;
pub use states::StateDBBox;
pub use states::StorageWithOriginalValues;
pub use states::TransitionAccount;
pub use states::TransitionState;
pub use in_memory_db::*;

Modules§

async_db
Async database interface.
empty_db
Empty database implementation.
in_memory_db
In-memory database implementations.
states
State management and tracking. State management and tracking for the EVM.
try_commit
Try database commit interface.

Structs§

AlloyDB
An alloy-powered REVM Database.
ArcUpgradeError
Error type for implementation of TryDatabaseCommit on Arc.
DBTransportError
Error type for transport-related database operations.
EmptyDBTyped
An empty database that always returns default values when queried
WrapDatabaseAsync
Wraps a DatabaseAsync or DatabaseAsyncRef to provide a Database implementation.
WrapDatabaseRef
Wraps a DatabaseRef to provide a Database implementation.

Enums§

BlockId
A Block Identifier. https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1898.md

Constants§

BENCH_CALLER
BENCH_CALLER address
BENCH_CALLER_BALANCE
BENCH_CALLER_BALANCE balance
BENCH_TARGET
BENCH_TARGET address
BENCH_TARGET_BALANCE
BENCH_TARGET_BALANCE balance
EEADDRESS
Address with all 0xee..ee in it. Used for testing.
FFADDRESS
Address with all 0xff..ff in it. Used for testing.

Traits§

DBErrorMarker
Database error marker is needed to implement From conversion for Error type.
Database
EVM database interface.
DatabaseAsync
The async EVM database interface
DatabaseCommit
EVM database commit interface.
DatabaseRef
EVM database interface.
TryDatabaseCommit
EVM database commit interface that can fail.

Type Aliases§

EmptyDB
An empty database that always returns default values when queried