Registry::Event

Variant 68 v393

pallet_registry::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 (2)

IndexNameFieldsDocs
0IdentitySetEmitted when a user registers an identity
1IdentityDissolvedEmitted when a user dissolves an identity

SCALE Encoding

Rule
1-byte variant index followed by variant-specific field data. 2 possible variants.
Size
variable (1+ bytes)

Examples

IdentitySet = IdentitySet(who)
0x00<field0>
00 Variant index 0 = IdentitySet
field 0 who: AccountId
IdentityDissolved = IdentityDissolved(who)
0x01<field0>
01 Variant index 1 = IdentityDissolved
field 0 who: AccountId

Code Examples

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

const registry = new TypeRegistry();

// Encode Registry::Event — variant "IdentitySet"
const value = registry.createType("Registry::Event", { IdentitySet: { who: "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY" } });
console.log("Hex:", value.toHex());

Type Parameters

T

Referenced By (23)

and 3 more...

Also See

Type Information

Type ID
68
Kind
Variant
Path
pallet_registry::pallet::Event
Runtime
v393