Crate database_interface
Expand description
Database interface.
Modules§
- either
- Database implementations for
either::Eithertype. - empty_
db - Empty database implementation.
- try_
commit - Try database commit interface.
Structs§
- ArcUpgrade
Error - Error type for implementation of
TryDatabaseCommitonArc. - EmptyDB
Typed - An empty database that always returns default values when queried
- Wrap
Database Ref - Wraps a
DatabaseRefto provide aDatabaseimplementation.
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..eein it. Used for testing. - FFADDRESS
- Address with all
0xff..ffin it. Used for testing. - TEST_
BALANCE - Common test balance used for benchmark addresses
Traits§
- DBError
Marker - Database error marker is needed to implement From conversion for Error type.
- Database
- EVM database interface.
- Database
Commit - EVM database commit interface.
- Database
Ref - EVM database interface.
- TryDatabase
Commit - EVM database commit interface that can fail.
Type Aliases§
- EmptyDB
- An empty database that always returns default values when queried