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<Value=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<Value=u32> to keep track of how many items are in a map, without needing to iterate over all of the values.
  • A type used exclusively by storage maps as their key type.
  • Implement QueryKindTrait with query being Option<Value>
  • Implement QueryKindTrait with query being Result<Value, PalletError>
  • A type that allow to store values for (key1, key2) couple. Similar to StorageMap but allow to iterate and remove value associated to first key.
  • A type that allow to store value for given key. Allowing to insert/remove/iterate on values.
  • A type that allow to store values for an arbitrary number of keys in the form of (Key<Hasher1, key1>, Key<Hasher2, key2>, ..., Key<HasherN, keyN>).
  • A type that allow to store a value.
  • Implement QueryKindTrait with query being Value

Traits