Grandpa::Event
Variant 32 v393pallet_grandpa::pallet::Event
The `Event` enum of this pallet
About This Type
Event enum for the Event pallet.
Contains all possible events emitted by the Event pallet. Each variant represents a different event type with its own data fields.
Variants (3)
| Index | Name | Fields | Docs |
|---|---|---|---|
| 0 | NewAuthorities | authority_set: Vec<(Public, u64)> | New authority set has been applied. |
| 1 | Paused | none | Current authority set has been paused. |
| 2 | Resumed | none | Current authority set has been resumed. |
SCALE Encoding
- Rule
- 1-byte variant index followed by variant-specific field data. 3 possible variants.
- Size
- variable (1+ bytes)
Examples
NewAuthorities = NewAuthorities(authority_set)
0x00<field0>00 Variant index 0 = NewAuthoritiesfield 0 authority_set: Vec<(Public, u64)>Paused
0x0101 Variant index 1 = PausedResumed
0x0202 Variant index 2 = ResumedCode Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode Grandpa::Event — variant "NewAuthorities"
const value = registry.createType("Grandpa::Event", { NewAuthorities: { authority_set: 0 } });
console.log("Hex:", value.toHex());Referenced By (23)
#21 RuntimeEvent via System#21 RuntimeEvent via Grandpa#21 RuntimeEvent via Balances#21 RuntimeEvent via TransactionPayment#21 RuntimeEvent via SubtensorModule#21 RuntimeEvent via Utility#21 RuntimeEvent via Sudo#21 RuntimeEvent via Multisig#21 RuntimeEvent via Preimage#21 RuntimeEvent via Scheduler#21 RuntimeEvent via Proxy#21 RuntimeEvent via Registry#21 RuntimeEvent via Commitments#21 RuntimeEvent via AdminUtils#21 RuntimeEvent via SafeMode#21 RuntimeEvent via Ethereum#21 RuntimeEvent via EVM#21 RuntimeEvent via BaseFee#21 RuntimeEvent via Drand#21 RuntimeEvent via Crowdloan
and 3 more...
Also See
Type Information
- Type ID
- 32
- Kind
- Variant
- Path
- pallet_grandpa::pallet::Event
- Runtime
- v393