PalletConstantMetadata class

Metadata about a pallet constant

Constants are compile-time values configured in the runtime. They cannot be changed without a runtime upgrade.

Constructors

PalletConstantMetadata({required String name, required int type, required List<int> value, List<String> docs = const []})
const

Properties

docs List<String>
Documentation for this constant
final
hashCode int
The hash code for this object.
no setterinherited
name String
Name of the constant
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type int
Type ID of the constant
final
value List<int>
Value of the constant (SCALE encoded)
final

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 $PalletConstantMetadata
Codec instance for PalletConstantMetadata