Expand description
This module contains functions for decoding storage keys and values.
- See
decode_storage_key
anddecode_storage_value
to decode storage keys or values from modern or historic runtimes. - See
decode_storage_key_current
anddecode_storage_value_current
to decode modern storage keys and values. - See
decode_storage_key_legacy
anddecode_storage_value_legacy
to decode historic storage keys and values (with examples).
Structs§
- Storage
Info - Information about a storage entry.
- Storage
Key - Details about a storage key.
- Storage
KeyInfo - Information about a single key within a storage entry.
- Storage
KeyPart - The decoded representation of a storage key.
- Storage
KeyPart Value - Information about the value contained within a storage key part hash.
Enums§
- Storage
Hasher - Hasher used by storage maps
- Storage
Info Error - An error returned trying to access storage type information.
- Storage
KeyDecode Error - An error returned trying to decode storage bytes.
- Storage
Value Decode Error - An error returned trying to decode storage bytes.
Traits§
- Storage
Type Info - This is implemented for all metadatas exposed from
frame_metadata
and is responsible for extracting the type IDs and related info needed to decode storage entries.
Functions§
- decode_
storage_ key - Decode a storage key, returning information about it.
- decode_
storage_ key_ current - Decode a storage key in a modern runtime, returning information about it.
- decode_
storage_ key_ legacy - Decode a storage key in a historic (pre-V14-metadata) runtime, returning information about it.
- decode_
storage_ value - Decode a storage value.
- decode_
storage_ value_ current - Decode a storage value in a modern (V14-metadata-or-later) runtime.
- decode_
storage_ value_ legacy - Decode a storage value in a historic (pre-V14-metadata) runtime. This is basically
just an alias for
decode_storage_value
.