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 a StorageValue (with the value being u32) to keep track of how many items are in a map, without needing to iterate all the values.
  • A wrapper around a StorageNMap and a StorageValue (with the value being u32) 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.
  • Implements QueryKindTrait with Query type being Option<_>.
  • Implements QueryKindTrait with Query type being Result<Value, PalletError>.
  • 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.
  • Implements QueryKindTrait with Query type being Value.

Traits§

Type Aliases§