StoredPendingChange
Composite 401 v393pallet_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)
| # | Name | Type |
|---|---|---|
| 0 | scheduled_at | u32 |
| 1 | delay | u32 |
| 2 | next_authorities | WeakBoundedVec |
| 3 | forced | Option |
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: u32field 1 delay: u32field 2 next_authorities: WeakBoundedVecfield 3 forced: OptionCode 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