Crate subxt_metadata

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:

  1. Calling Metadata::decode() given some metadata bytes obtained from a node (this uses codec::Decode).
  2. Obtaining frame_metadata::RuntimeMetadataPrefixed, and then using .try_into() to convert it into Metadata.

Structs§

ConstantMetadata
Metadata for a single constant.
CustomMetadata
Metadata of custom types with custom values, basically the same as frame_metadata::v15::CustomMetadata<PortableForm>>.
CustomValueMetadata
Basically the same as frame_metadata::v15::CustomValueMetadata<PortableForm>>, but borrowed.
ExtrinsicMetadata
Metadata for the extrinsic type.
Metadata
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.
MetadataHasher
Obtain a hash representation of our metadata or some part of it. This is obtained by calling crate::Metadata::hasher().
MethodParamMetadata
Metadata for a single input parameter to a runtime API method / pallet view function.
OuterEnumsMetadata
Metadata for the outer enums.
PalletMetadata
Metadata for a specific pallet.
RuntimeApiMetadata
Metadata for the available runtime APIs.
RuntimeApiMethodMetadata
Metadata for a single runtime API method.
StorageEntryMetadata
Metadata for a single storage entry.
StorageMetadata
Metadata for the storage entries in a pallet.
TransactionExtensionMetadata
Metadata for the signed extensions used by extrinsics.
ViewFunctionMetadata
Metadata for the available View Functions. Currently these exist only at the pallet level, but eventually they could exist at the runtime level too.

Enums§

StorageEntryModifier
Is the storage entry optional, or does it have a default value.
StorageEntryType
The type of a storage entry.
StorageHasher
Hasher used by storage maps.
TryFromError
An error emitted if something goes wrong converting frame_metadata types into crate::Metadata.

Constants§

SUPPORTED_METADATA_VERSIONS
The metadata versions that we support converting into crate::Metadata. These are ordest from highest to lowest, so that the metadata we’d want to pick first is first in the array.