PalletMetadataV16 class
Metadata about a single pallet (module) in MetadataV16
V16 significantly extends V15 with:
- Deprecation information for the pallet itself
- V16-specific calls/events/errors with EnumDeprecationInfo
- Associated types from Config traits
- View functions (read-only queries)
Reference: https://github.com/paritytech/frame-metadata/blob/main/frame-metadata/src/v16.rs#L211-L252
- Inheritance
-
- Object
- PalletMetadata
- PalletMetadataV16
Constructors
-
PalletMetadataV16({required String name, PalletStorageMetadataV16? storageV16, PalletCallMetadataV16? callsV16, PalletEventMetadataV16? eventV16, required List<
PalletConstantMetadataV16> constantsV16, PalletErrorMetadataV16? errorV16, required List<PalletAssociatedTypeMetadata> associatedTypes, required List<PalletViewFunctionMetadata> viewFunctions, required int index, List<String> docs = const <String>[], required ItemDeprecationInfo deprecationInfo})
Properties
-
associatedTypes
→ List<
PalletAssociatedTypeMetadata> -
Associated types from Config trait (NEW in V16)
final
- calls → PalletCallMetadata?
-
Optional calls (dispatchable functions) metadata
finalinherited
- callsV16 → PalletCallMetadataV16?
-
Optional calls metadata (V16 version with EnumDeprecationInfo)
final
-
constants
→ List<
PalletConstantMetadata> -
List of constants defined in this pallet
finalinherited
-
constantsV16
→ List<
PalletConstantMetadataV16> -
List of constants with V16 deprecation info
final
- deprecationInfo → ItemDeprecationInfo
-
Deprecation information for this pallet (NEW in V16)
final
-
docs
→ List<
String> -
Documentation for this pallet
final
- error → PalletErrorMetadata?
-
Optional error metadata
finalinherited
- errorV16 → PalletErrorMetadataV16?
-
Optional error metadata (V16 version with EnumDeprecationInfo)
final
- event → PalletEventMetadata?
-
Optional events metadata
finalinherited
- eventV16 → PalletEventMetadataV16?
-
Optional events metadata (V16 version with EnumDeprecationInfo)
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
Unique index of this pallet in the runtime
finalinherited
- name → String
-
Name of the pallet
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- storage → PalletStorageMetadata?
-
Optional storage metadata for this pallet
finalinherited
- storageV16 → PalletStorageMetadataV16?
-
Optional storage metadata for this pallet (V16 version with deprecation)
final
-
viewFunctions
→ List<
PalletViewFunctionMetadata> -
View functions for read-only queries (NEW in V16)
final
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 $PalletMetadataV16
- Codec instance for PalletMetadataV16