Expand description
Helper functions and types to assist with decoding.
type_registry_from_metadata
is expected to be used when decoding things from historic runtimes, adding the ability to decode some types from information in the metadata.decode_with_error_tracing
is likedecode_with_visitor
, but will use a tracing visitor (if theerror-tracing
feature is enabled) to provide more information in the event that decoding fails.list_storage_entries
returns an iterator over all of the storage entries available in some metadata.
Re-exports§
pub use scale_decode;
Structs§
- Decode
Error Trace - A tracing decode error.
- Storage
Entry - Details about a single storage entry.
Functions§
- decode_
with_ error_ tracing - Decode some bytes given a type ID and type resolver, and a visitor which decides the output value.
- decode_
with_ visitor - An alias to
scale_decode::visitor::decode_with_visitor
. This can be used to decode the byte ranges given back from functions likecrate::extrinsics::decode_extrinsic_current
orcrate::storage::decode_storage_key_current
. - list_
storage_ entries - Returns an iterator listing the available storage entries in some metadata.
- list_
storage_ entries_ any - Returns an iterator listing the available storage entries in some metadata.
- type_
registry_ from_ metadata frame_metadata::RuntimeMetadata
contains information about runtime calls and events. This function adds this information into ascale_info_legacy::TypeRegistry
which can then be referenced by other types. The main types you’ll be able to reference from this set are:- type_
registry_ from_ metadata_ any - This is like
type_registry_from_metadata
, except it can be handed the outerframe_metadata::RuntimeMetadata
enum and will extract types from it where appropriate (handing back no types for deprecated or modern metadata).