Schedule
Composite 551 v393pallet_contracts::schedule::Schedule
About This Type
Structured type: Schedule.
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 (2)
| # | Name | Type |
|---|---|---|
| 0 | limits | Limits |
| 1 | instruction_weights | InstructionWeights |
SCALE Encoding
- Rule
- 2 fields encoded consecutively in declaration order. No field names or delimiters.
- Size
- sum of field sizes
Examples
Struct with 2 fields = limits: Limits, instruction_weights: InstructionWeights
0x<field0><field1>field 0 limits: Limitsfield 1 instruction_weights: InstructionWeightsCode Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode Schedule
const value = registry.createType("Schedule", {
limits: 0,
instruction_weights: 0
});
console.log("Hex:", value.toHex());Type Parameters
T
Type Information
- Type ID
- 551
- Kind
- Composite
- Path
- pallet_contracts::schedule::Schedule
- Runtime
- v393