Schedule

Composite 551 v393

pallet_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)

#NameType
0limitsLimits
1instruction_weightsInstructionWeights

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: Limits
field 1 instruction_weights: InstructionWeights

Code 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