Crate fuel_core_storage
source ·Expand description
The crate fuel-core-storage contains storage types, primitives, tables used by fuel-core.
This crate doesn’t contain the actual implementation of the storage. It works around the
Database and is used by services to provide a default implementation. Primitives
defined here are used by services but are flexible enough to customize the
logic when the Database is known.
Modules
- Iterators returned by the storage.
- The module contains definition of storage tables used by default implementation of fuel services.
- The primitives to work with storage in transactional mode.
Macros
- Creates
StorageError::NotFounderror with file and line information inside.
Structs
- The FuelVM storage double key.
- The FuelVM storage double key.
- The wrapper around the storage that supports methods from
StorageInspectandStorageMutate. - The wrapper around the storage that supports only methods from
StorageInspect.
Enums
- Error occurring during interaction with storage
Traits
- Storage operations for contract assets.
- When this trait is implemented, the underlying interpreter is guaranteed to have full functionality
- The helper trait to work with storage errors.
- Mappable type with
KeyandValue. - Returns the merkle root for the
StorageTypeper merkleKey. The type should implement theStorageMutatefor theStorageType. Per one storage, it is possible to have several merkle trees under differentKey. - Helper trait for
StorageMutateto provide user-friendly API to retrieve storage as mutable reference. - Helper trait for
StorageInspectto provide user-friendly API to retrieve storage as reference. - Base read storage trait for Fuel infrastructure.
- Base storage trait for Fuel infrastructure.
- Base storage trait for Fuel infrastructure.
- Base storage trait for Fuel infrastructure.
- Base storage trait for Fuel infrastructure.
Type Definitions
- Merkle root alias type
- The storage result alias.