Module runtime_apis

Module runtime_apis 

Source
Expand description

This module contains types and functions for working with Runtime APIs.

Structs§

RuntimeApiInfo
Information about a Runtime API.
RuntimeApiInput
Information about a specific input value to a Runtime API.

Enums§

RuntimeApiDecodeError
An error returned trying to decode a Runtime API responses.
RuntimeApiInfoError
An error returned trying to access Runtime API type information.
RuntimeApiInputsEncodeError
An error returned trying to encode Runtime API inputs.

Traits§

EncodableValues
Since scale_encode::EncodeAsType is not dyn safe, this trait is used to iterate through and encode a set of values.
IntoEncodableValues
This can be implemented for anything that can be encoded in multiple steps into a set of values via scale_encode::EncodeAsType. The common use case is to encode a tuple of multiple types, step by step, into bytes. As well as tuples up to size 12, Implementations also exist for Vecs and arrays.
RuntimeApiEntryInfo
This can be implemented for anything capable of providing information about the available Runtime Apis
RuntimeApiTypeInfo
This can be implemented for anything capable of providing Runtime API type information. It is implemented for newer versions of frame-metadata (V15 and above).

Functions§

decode_runtime_api_response
Decode a runtime API response.
decode_runtime_api_response_with_info
Decode a runtime API response.
encode_runtime_api_inputs
Encode the inputs to a Runtime API.
encode_runtime_api_inputs_to
Encode the inputs to a Runtime API to a provided output Vec.
encode_runtime_api_inputs_with_info_to
Encode the inputs to a Runtime API to a provided output Vec.
encode_runtime_api_name
Encode the name/ID of a Runtime API used in RPC methods given the trait name and method name.

Type Aliases§

RuntimeApiEntry
An entry denoting a Runtime API trait or method.