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§
- Information about a storage entry.
- Details about a storage key.
- Information about a single key within a storage entry.
- The decoded representation of a storage key.
- Information about the value contained within a storage key part hash.
Enums§
- Hasher used by storage maps
- An error returned trying to access storage type information.
- An error returned trying to decode storage bytes.
- An error returned trying to decode storage bytes.
Traits§
- 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 a storage key, returning information about it.
- Decode a storage key in a modern runtime, returning information about it.
- Decode a storage key in a historic (pre-V14-metadata) runtime, returning information about it.
- Decode a storage value.
- Decode a storage value in a modern (V14-metadata-or-later) runtime.
- Decode a storage value in a historic (pre-V14-metadata) runtime. This is basically just an alias for
decode_storage_value
.