InstructionWeights

Composite 553 v393

pallet_contracts::schedule::InstructionWeights

About This Type

Structured type: InstructionWeights.

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 (1)

#NameType
0baseu32

SCALE Encoding

Rule
1 field encoded consecutively in declaration order. No field names or delimiters.
Size
sum of field sizes

Examples

Struct with 1 field = base: u32
0x<field0>
field 0 base: u32

Code Examples

import { TypeRegistry } from "@polkadot/types";

const registry = new TypeRegistry();

// Encode InstructionWeights
const value = registry.createType("InstructionWeights", {
  base: 1000000
});
console.log("Hex:", value.toHex());

Type Parameters

T

Referenced By (1)

Type Information

Type ID
553
Kind
Composite
Path
pallet_contracts::schedule::InstructionWeights
Runtime
v393