Expand description
Storage types to build abstraction on storage, they implements storage traits such as StorageMap and others.
Structs§
- Counted
Storage Map - A wrapper around a
StorageMap
and aStorageValue
(with the value beingu32
) to keep track of how many items are in a map, without needing to iterate all the values. - Counted
StorageN Map - A wrapper around a
StorageNMap
and aStorageValue
(with the value beingu32
) to keep track of how many items are in a map, without needing to iterate all the values. - Key
- A type used exclusively by storage maps as their key type.
- Option
Query - Implements
QueryKindTrait
withQuery
type beingOption<_>
. - Result
Query - Implements
QueryKindTrait
withQuery
type beingResult<Value, PalletError>
. - Storage
Double Map - A type representing a double map in storage. This structure associates a pair of keys with a value of a specified type stored on-chain.
- Storage
Map - A type representing a map in storage. A storage map is a mapping of keys to values of a given type stored on-chain.
- StorageN
Map - A type representing an NMap in storage. This structure associates an arbitrary number of keys with a value of a specified type stored on-chain.
- Storage
Value - A type representing a value in storage. A storage value is a single value of a given type stored on-chain.
- Value
Query - Implements
QueryKindTrait
withQuery
type beingValue
.
Traits§
- Counted
Storage MapInstance - The requirement for an instance of
CountedStorageMap
. - Counted
StorageN MapInstance - The requirement for an instance of
CountedStorageNMap
. - Encode
Like Tuple - Marker trait to indicate that each element in the tuple encodes like the corresponding element in another tuple.
- HasKey
Prefix - Trait indicating whether a KeyGenerator has the prefix P.
- HasReversible
KeyPrefix - Trait indicating whether a ReversibleKeyGenerator has the prefix P.
- KeyGenerator
- A trait that contains the current key as an associated type.
- KeyGenerator
MaxEncoded Len - The maximum length used by the key in storage.
- Query
Kind Trait - Trait implementing how the storage optional value is converted into the queried type.
- Reversible
KeyGenerator - A trait that indicates the hashers for the keys generated are all reversible.
- Storage
Entry Metadata Builder - Build the metadata of a storage.
- Tuple
ToEncoded Iter - Trait to indicate that a tuple can be converted into an iterator of a vector of encoded bytes.
Type Aliases§
- Counter
- The numeric counter type.