Expand description
Block execution changes with the reverts needed to persist and unwind them.
Ported from the revm-database crate of revm (https://github.com/bluealloy/revm),
Copyright (c) 2021-2026 draganrakita, licensed under the MIT License (see LICENSES/MIT.txt).
The code is kept close to upstream, so upstream style is allowed below.
Structs§
- Account
Revert - Assumption is that Revert can return full state from any future state to any past state.
- Bundle
Account - Account information focused on creating of database changesets and Reverts.
- Bundle
Builder - This builder is used to help to facilitate the initialization of
BundleStatestruct - Bundle
State - Bundle state contain only values that got changed
- Plain
Account - Plain account of StateDatabase.
- Plain
State Reverts - Plain state reverts are used to easily store reverts into database.
- Plain
Storage Changeset - Plain storage changeset.
- Plain
Storage Revert - Plain Storage Revert.
- Reverts
- Contains reverts of multiple account in multiple transitions (Transitions as a block).
- State
Changeset accounts/storages/contractsfor inclusion into database.- Storage
Slot - This type keeps track of the current value of a storage slot.
- Transition
Account - Account Created when EVM state is merged to cache state. And it is sent to Block state.
- Transition
State - State of accounts in transition between transaction executions.
Enums§
- Account
Info Revert - Depending on previous state of account info this will tell us what to do on revert.
- Account
Status - AccountStatus represents the various states an account can be in after being loaded from the database.
- Bundle
Retention - Bundle retention policy for applying substate to the bundle.
- Original
Values Known - Option for
BundleStatewhen converting it to the plain state. - Revert
ToSlot - So storage can have multiple types:
Type Aliases§
- Plain
Storage - Simple plain storage that does not have previous value. This is used for loading from database, cache and for bundle state.
- Storage
Revert - Storage reverts
- Storage
With Original Values - This storage represent values that are before block changed.