Module frame_support::storage::types
source · Expand description
Storage types to build abstraction on storage, they implements storage traits such as StorageMap and others.
Structs§
- 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. - 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. - A type used exclusively by storage maps as their key type.
- 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.
- A type representing a map in storage. A storage map is a mapping of keys to values of a given type stored on-chain.
- 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.
- A type representing a value in storage. A storage value is a single value of a given type stored on-chain.
Traits§
- The requirement for an instance of
CountedStorageMap
. - The requirement for an instance of
CountedStorageNMap
. - Marker trait to indicate that each element in the tuple encodes like the corresponding element in another tuple.
- Trait indicating whether a KeyGenerator has the prefix P.
- Trait indicating whether a ReversibleKeyGenerator has the prefix P.
- A trait that contains the current key as an associated type.
- The maximum length used by the key in storage.
- Trait implementing how the storage optional value is converted into the queried type.
- A trait that indicates the hashers for the keys generated are all reversible.
- Build the metadata of a storage.
- Trait to indicate that a tuple can be converted into an iterator of a vector of encoded bytes.
Type Aliases§
- The numeric counter type.