PalletViewFunctionMetadata class
Metadata about a pallet's view function (V16)
View functions are read-only queries that can be executed without submitting a transaction. They provide a way to query pallet state with typed inputs and outputs.
Reference: https://github.com/paritytech/frame-metadata/blob/main/frame-metadata/src/v16.rs#L409-L430
Constructors
-
PalletViewFunctionMetadata({required Uint8List id, required String name, required List<
ViewFunctionParamMetadata> inputs, required int output, List<String> docs = const [], required ItemDeprecationInfo deprecationInfo}) -
const
Properties
- deprecationInfo → ItemDeprecationInfo
-
Deprecation information for this view function
final
-
docs
→ List<
String> -
Documentation for this view function
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → Uint8List
-
Unique identifier for this view function (32 bytes)
final
-
inputs
→ List<
ViewFunctionParamMetadata> -
Input parameters for this view function
final
- name → String
-
Name of the view function
final
- output → int
-
Type ID of the return value
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- codec → const $PalletViewFunctionMetadata
- Codec instance for PalletViewFunctionMetadata