PalletConstantMetadataV16 class
Pallet constant metadata for V16, including deprecation information.
V16 extends the base PalletConstantMetadata with ItemDeprecationInfo to allow runtime developers to mark constants as deprecated while maintaining backward compatibility. Constants are compile-time values configured in the runtime that cannot be changed without a runtime upgrade.
Reference: https://github.com/paritytech/frame-metadata/blob/main/frame-metadata/src/v16.rs#L343-L362
- Inheritance
-
- Object
- PalletConstantMetadata
- PalletConstantMetadataV16
Constructors
-
PalletConstantMetadataV16({required String name, required int type, required List<
int> value, required List<String> docs, required ItemDeprecationInfo deprecationInfo}) -
const
Properties
- deprecationInfo → ItemDeprecationInfo
-
Deprecation information for this constant.
final
-
docs
→ List<
String> -
Documentation for this constant
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
Name of the constant
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → int
-
Type ID of the constant
finalinherited
-
value
→ List<
int> -
Value of the constant (SCALE encoded)
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- codec → const $PalletConstantMetadataV16
- Codec instance for PalletConstantMetadataV16