Crate subxt_metadata
source ·Expand description
A representation of the metadata provided by a substrate based node. This representation is optimized to be used by Subxt and related crates, and is independent of the different versions of metadata that can be provided from a node.
Typically, this will be constructed by either:
- Calling
Metadata::decode()
given some metadata bytes obtained from a node (this usescodec::Decode
). - Obtaining
frame_metadata::RuntimeMetadataPrefixed
, and then using.try_into()
to convert it intoMetadata
.
Structs§
- Metadata for a single constant.
- Metadata of custom types with custom values, basically the same as
frame_metadata::v15::CustomMetadata<PortableForm>>
. - Basically the same as
frame_metadata::v15::CustomValueMetadata<PortableForm>>
, but borrowed. - Metadata for the extrinsic type.
- Node metadata. This can be constructed by providing some compatible
frame_metadata
which is then decoded into this. We aim to preserve all of the existing information in the incoming metadata while optimizing the format a little for Subxt’s use cases. - Obtain a hash representation of our metadata or some part of it. This is obtained by calling
crate::Metadata::hasher()
. - Metadata for the outer enums.
- Metadata for a specific pallet.
- Metadata for the available runtime APIs.
- Metadata for a single runtime API method.
- Metadata for a single input parameter to a runtime API method.
- Metadata for the signed extensions used by extrinsics.
- Metadata for a single storage entry.
- Metadata for the storage entries in a pallet.
Enums§
- Is the storage entry optional, or does it have a default value.
- The type of a storage entry.
- Hasher used by storage maps.
- An error emitted if something goes wrong converting
frame_metadata
types intocrate::Metadata
.