PerDispatchClass
Composite 10 v393frame_support::dispatch::PerDispatchClass
About This Type
Structured type: PerDispatchClass.
A struct-like type where each field is encoded in declaration order.
Encoding: Fields encoded consecutively in declaration order, no field names or separators.
Fields (3)
SCALE Encoding
- Rule
- 3 fields encoded consecutively in declaration order. No field names or delimiters.
- Size
- sum of field sizes
Examples
Struct with 3 fields = normal: Weight, operational: Weight, mandatory: Weight
0x<field0><field1><field2>field 0 normal: Weightfield 1 operational: Weightfield 2 mandatory: WeightCode Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode PerDispatchClass
const value = registry.createType("PerDispatchClass", {
normal: 0,
operational: 0,
mandatory: 0
});
console.log("Hex:", value.toHex());Type Parameters
T = Weight
Referenced By (2)
Type Information
- Type ID
- 10
- Kind
- Composite
- Path
- frame_support::dispatch::PerDispatchClass
- Runtime
- v393