Module db
Expand description
Database implementations.
Modules§
- components
- Database that is split on State and BlockHash traits.
- emptydb
- in_
memory_ db - states
Structs§
- Account
Revert - Assumption is that Revert can return full state from any future state to any past state.
- BenchmarkDB
- Custom benchmarking DB that only has account info for the zero address.
- Bundle
Account - Account information focused on creating of database changesets and Reverts.
- Bundle
State - Bundle state contain only values that got changed
- CacheDB
- A Database implementation that stores all state changes in memory.
- Cache
State - Cache state contains both modified and original values.
- Database
Components - DbAccount
- EmptyDB
Typed - An empty database that always returns default values when queried.
- Plain
Account - State
- State of blockchain.
- State
Builder - Allows building of State and initializing it with different options.
- Transition
Account - Account Created when EVM state is merged to cache state. And it is sent to Block state.
- Transition
State - Wrap
Database Ref - Wraps a
DatabaseRef
to provide aDatabase
implementation.
Enums§
- Account
State - Account
Status - AccountStatus represents the various states an account can be in after being loaded from the database.
- Database
Component Error - Original
Values Known - Option for
BundleState
when converting it to the plain state. - Revert
ToSlot - So storage can have multiple types:
Traits§
- Block
Hash - Block
Hash Ref - Database
- EVM database interface.
- Database
Commit - EVM database commit interface.
- Database
Ref - EVM database interface.
- State
Ref
Type Aliases§
- DBBox
- Database boxed with a lifetime and Send.
- EmptyDB
- An empty database that always returns default values when queried.
- InMemoryDB
- A Database implementation that stores all state changes in memory.
- StateDB
Box - More constrained version of State that uses Boxed database with a lifetime.
- Storage
With Original Values - This storage represent values that are before block changed.