PerDispatchClass
Composite 115 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: u32, operational: u32, mandatory: u32
0x<field0><field1><field2>field 0 normal: u32field 1 operational: u32field 2 mandatory: u32Code Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode PerDispatchClass
const value = registry.createType("PerDispatchClass", {
normal: 1000000,
operational: 1000000,
mandatory: 1000000
});
console.log("Hex:", value.toHex());Type Parameters
T = u32
Referenced By (2)
Type Information
- Type ID
- 115
- Kind
- Composite
- Path
- frame_support::dispatch::PerDispatchClass
- Runtime
- v393