StoredState
Variant 400 v393pallet_grandpa::StoredState
About This Type
Enum type: StoredState.
A tagged union where the first byte selects which variant is active, followed by that variant's data.
Encoding: 1-byte variant index followed by the selected variant's field data.
Variants (4)
SCALE Encoding
- Rule
- 1-byte variant index followed by variant-specific field data. 4 possible variants.
- Size
- variable (1+ bytes)
Examples
Live
0x0000 Variant index 0 = LivePendingPause = PendingPause(scheduled_at, delay)
0x01<field0><field1>01 Variant index 1 = PendingPausefield 0 scheduled_at: u32field 1 delay: u32Paused
0x0202 Variant index 2 = PausedCode Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode StoredState — variant "Live"
const value = registry.createType("StoredState", "Live");
console.log("Hex:", value.toHex());Type Parameters
N = u32
Type Information
- Type ID
- 400
- Kind
- Variant
- Path
- pallet_grandpa::StoredState
- Runtime
- v393