Module view_functions

Module view_functions 

Source
Expand description

This module contains types and functions for working with View Functions.

Structs§

ViewFunctionInfo
Information about a View Function.
ViewFunctionInput
Information about a specific input value to a View Function.

Enums§

ViewFunctionDecodeError
An error returned trying to decode a View Function responses.
ViewFunctionInfoError
An error returned trying to access View Function type information.
ViewFunctionInputsEncodeError
An error returned trying to encode View Function inputs.

Constants§

RUNTIME_API_NAME
The default name of the Runtime API that you must call to query a View Function, where the arguments to this Runtime API can be encoded using encode_view_function_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.
ViewFunctionEntryInfo
This can be implemented for anything capable of providing information about the available View Functions
ViewFunctionTypeInfo
This is implemented for anything capable of providing information about view functions (primarily metadata V16 and onwards).

Functions§

decode_view_function_response
Decode a View Function response.
decode_view_function_response_with_info
Decode a View Function response.
encode_view_function_inputs
Encode the Runtime API input data necessary to call a View Function.
encode_view_function_inputs_to
Encode to a provided output Vec the Runtime API input data necessary to call a View Function.
encode_view_function_inputs_with_info_to
Encode to a provided output Vec the Runtime API input data necessary to call a View Function.

Type Aliases§

ViewFunctionEntry
An entry denoting a pallet or a View Function name.