referrerpolicy=no-referrer-when-downgrade

Module migration

Module migration 

Source
Expand description

Some utilities for helping access storage with arbitrary key types.

Functions§

clear_storage_prefix
Attempt to remove all values under a storage prefix by the module, the map’s item name and the key hash.
get_storage_value
Get a particular value in storage by the module, the map’s item name and the key hash.
have_storage_value
Get a particular value in storage by the module, the map’s item name and the key hash.
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’s item name and the key hash.
remove_storage_prefixDeprecated
Remove all items under a storage prefix by the module, the map’s item name and the key hash.
storage_iter
Construct iterator to iterate over map items in module for the map called item.
storage_iter_with_suffix
Construct iterator to iterate over map items in module for the map called item.
storage_key_iter
Construct iterator to iterate over map items in module for the map called item.
storage_key_iter_with_suffix
Construct iterator to iterate over map items in module for the map called item.
take_storage_item
Take a particular item in storage by the module, the map’s item name and the key hash.
take_storage_value
Take a particular value in storage by the module, the map’s item name and the key hash.