# Functions
CodeContainerFromEncoded constructs a code container from the encoded data.
DecodeAccount constructs a new account from the encoded data.
NewAccount constructs a new account.
NewBaseView constructs a new base view.
No description provided by the author
NewCodeContainer constructs a new code container.
NewCollectionProvider constructs a new CollectionProvider.
NewDeltaView constructs a new delta view.
No description provided by the author
NewStateDB constructs a new StateDB.
NewUpdateCommitter constructs a new UpdateCommitter.
# Constants
No description provided by the author
No description provided by the author
AccountsStorageIDKey is the path where we store the collection ID for accounts.
No description provided by the author
CodesStorageIDKey is the path where we store the collection ID for codes.
No description provided by the author
No description provided by the author
# Structs
Account holds the metadata of an address and provides (de)serialization functionality
Note that code and storage slots of an address is not part of this data structure.
BaseView implements a types.BaseView it acts as the base layer of state queries for the stateDB it stores accounts, codes and storage slots.
No description provided by the author
CodeContainer contains codes and keeps track of reference counts.
Collection provides a persistent and compact way of storing key/value pairs each collection has a unique collectionID that can be used to fetch the collection
TODO(ramtin): we might not need any extra hashing on the atree side and optimize this to just use the key given the keys are hashed ?.
CollectionProvider provides access to collections.
DeltaView captures the changes to the state during the execution
for most of the read calls it checks its change logs and if no record is found it would redirect the call to the parent view.
StateDB implements a types.StateDB interface
stateDB interface defined by the Geth doesn't support returning errors when state calls are happening, and requires stateDB to cache the error and return it at a later time (when commit is called).
UpdateCommitter captures operations (delta) through a set of calls (order matters) and constructs a commitment over the state changes.
# Type aliases
No description provided by the author