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§

either
Database implementations for either::Either type.
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§

ArcUpgradeError
Error type for implementation of TryDatabaseCommit on Arc.
EmptyDBTyped
An empty database that always returns default values when queried
WrapDatabaseRef
Wraps a DatabaseRef to provide a Database implementation.

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.
TEST_BALANCE
Common test balance used for benchmark addresses

Traits§

DBErrorMarker
Database error marker is needed to implement From conversion for Error type.
Database
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