StoredPendingChange

Composite 401 v393

pallet_grandpa::StoredPendingChange

About This Type

Structured type: StoredPendingChange.

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

#NameType
0scheduled_atu32
1delayu32
2next_authoritiesWeakBoundedVec
3forcedOption

SCALE Encoding

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

Examples

Struct with 4 fields = scheduled_at: u32, delay: u32, next_authorities: WeakBoundedVec, forced: Option
0x<field0><field1><field2><field3>
field 0 scheduled_at: u32
field 1 delay: u32
field 2 next_authorities: WeakBoundedVec
field 3 forced: Option

Code Examples

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

const registry = new TypeRegistry();

// Encode StoredPendingChange
const value = registry.createType("StoredPendingChange", {
  scheduled_at: 1000000,
  delay: 1000000,
  next_authorities: 0,
  forced: 0
});
console.log("Hex:", value.toHex());

Type Parameters

N = u32
Limit

Type Information

Type ID
401
Kind
Composite
Path
pallet_grandpa::StoredPendingChange
Runtime
v393