Expand description
Stuff to do with the runtime’s storage.
Re-exports§
pub use self::transactional::in_storage_layer;
pub use self::transactional::with_storage_layer;
pub use self::transactional::with_transaction;
pub use self::transactional::with_transaction_unchecked;
pub use self::types::StorageEntryMetadataBuilder;
pub use types::Key;
Modules§
- bounded_
btree_ map - Traits, types and structs to support a bounded BTreeMap.
- bounded_
btree_ set - Traits, types and structs to support a bounded
BTreeSet
. - bounded_
vec - Traits, types and structs to support putting a bounded vector into storage, as a raw value, map or a double map.
- child
- Operation on runtime child storages.
- hashed
- Operation on runtime storage using hashed keys.
- migration
- Some utilities for helping access storage with arbitrary key types.
- storage_
noop_ guard - Contains the
crate::StorageNoopGuard
for conveniently asserting that no storage mutation has been made by a whole code block. - transactional
- Provides functionality around the transaction storage.
- types
- Storage types to build abstraction on storage, they implements storage traits such as StorageMap and others.
- unhashed
- Operation on unhashed runtime storage.
- weak_
bounded_ vec - Traits, types and structs to support putting a bounded vector into storage, as a raw value, map or a double map.
Structs§
- Child
Trie Prefix Iterator - Iterate over a prefix of a child trie and decode raw_key and raw_value into
T
. - KeyLen
Of - Utility type for converting a storage map into a
Get<u32>
impl which returns the maximum key size. - KeyPrefix
Iterator - Iterate over a prefix and decode raw_key into
T
. - Prefix
Iterator - Iterate or drain over a prefix and decode raw_key and raw_value into
T
.
Enums§
- Transaction
Outcome - Describes on what should happen with a storage transaction.
Traits§
- Iterable
Storage Double Map - A strongly-typed double map in storage whose secondary keys and values can be iterated over.
- Iterable
Storage Map - A strongly-typed map in storage whose keys and values can be iterated over.
- Iterable
StorageN Map - A strongly-typed map with arbitrary number of keys in storage whose keys and values can be iterated over.
- Prefix
Iterator OnRemoval - Trait for specialising on removal logic of
PrefixIterator
. - Storage
Append - Marker trait that will be implemented for types that support the
storage::append
api. - Storage
Appender - Append iterator to append values to a storage struct.
- Storage
Decode Length - It is expected that the length is at the beginning of the encoded object
and that the length is a
Compact<u32>
. - Storage
Decode NonDedup Length - It is expected that the length is at the beginning of the encoded object and that the length is
a
Compact<u32>
. - Storage
Double Map - An implementation of a map with a two keys.
- Storage
List - A non-continuous container type.
- Storage
Map - A strongly-typed map in storage.
- StorageN
Map - An implementation of a map with an arbitrary number of keys.
- Storage
Prefixed Container - Trait for storage types that store all its value after a unique prefix.
- Storage
Prefixed Map - Trait for maps that store all its value after a unique prefix.
- Storage
Stream Iter - An iterator that streams values directly from storage.
- Storage
TryAppend - Marker trait that is implemented for types that support the
storage::append
api with a limit on the number of element. - Storage
Value - A trait for working with macro-generated storage values under the substrate storage API.
- TryAppend
Double Map - Storage double map that is capable of
StorageTryAppend
. - TryAppend
Map - Storage map that is capable of
StorageTryAppend
. - TryAppendN
Map - Storage N map that is capable of
StorageTryAppend
. - TryAppend
Value - Storage value that is capable of
StorageTryAppend
.
Functions§
- storage_
prefix - Returns the storage prefix for a specific pallet name and storage name.