Expand description
Some utilities for helping access storage with arbitrary key types.
Structs§
- Storage
Iterator - Utility to iterate through raw items in storage.
- Storage
KeyIterator - Utility to iterate through raw items in storage.
Functions§
- clear_
storage_ prefix - Attempt to remove all values under a storage prefix by the
module
, the map’sitem
name and the keyhash
. - get_
storage_ value - Get a particular value in storage by the
module
, the map’sitem
name and the keyhash
. - have_
storage_ value - Get a particular value in storage by the
module
, the map’sitem
name and the keyhash
. - move_
pallet - Move all storages from a pallet prefix to another pallet prefix.
- move_
prefix - Move all
(key, value)
after some prefix to the another prefix - move_
storage_ from_ pallet - Move a storage from a pallet prefix to another pallet prefix.
- put_
storage_ value - Put a particular value into storage by the
module
, the map’sitem
name and the keyhash
. - remove_
storage_ prefix Deprecated - Remove all items under a storage prefix by the
module
, the map’sitem
name and the keyhash
. - storage_
iter - Construct iterator to iterate over map items in
module
for the map calleditem
. - storage_
iter_ with_ suffix - Construct iterator to iterate over map items in
module
for the map calleditem
. - storage_
key_ iter - Construct iterator to iterate over map items in
module
for the map calleditem
. - storage_
key_ iter_ with_ suffix - Construct iterator to iterate over map items in
module
for the map calleditem
. - take_
storage_ item - Take a particular item in storage by the
module
, the map’sitem
name and the keyhash
. - take_
storage_ value - Take a particular value in storage by the
module
, the map’sitem
name and the keyhash
.