Proxy::Event

Variant 65 v393

pallet_subtensor_proxy::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 (8)

IndexNameFieldsDocs
0ProxyExecuted
result: Result
A proxy was executed correctly, with the given.
1PureCreated
pure: AccountId
proxy_type: ProxyType
disambiguation_index: u16
A pure account has been created by new proxy with given disambiguation index and proxy type.
2PureKilled
pure: AccountId
spawner: AccountId
proxy_type: ProxyType
disambiguation_index: u16
A pure proxy was killed by its spawner.
3Announced
real: AccountId
proxy: AccountId
call_hash: H256
An announcement was placed to make a call in the future.
4ProxyAdded
delegator: AccountId
delegatee: AccountId
proxy_type: ProxyType
delay: u32
A proxy was added.
5ProxyRemoved
delegator: AccountId
delegatee: AccountId
proxy_type: ProxyType
delay: u32
A proxy was removed.
6DepositPoked
old_deposit: u64
new_deposit: u64
A deposit stored for proxies or announcements was poked / updated.
7RealPaysFeeSet
real: AccountId
delegate: AccountId
pays_fee: bool
The real-pays-fee setting was updated for a proxy relationship.

SCALE Encoding

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

Examples

ProxyExecuted = ProxyExecuted(result)
0x00<field0>
00 Variant index 0 = ProxyExecuted
field 0 result: Result
PureCreated = PureCreated(pure, who, proxy_type, disambiguation_index)
0x01<field0><field1><field2><field3>
01 Variant index 1 = PureCreated
field 0 pure: AccountId
field 1 who: AccountId
field 2 proxy_type: ProxyType
field 3 disambiguation_index: u16
PureKilled = PureKilled(pure, spawner, proxy_type, disambiguation_index)
0x02<field0><field1><field2><field3>
02 Variant index 2 = PureKilled
field 0 pure: AccountId
field 1 spawner: AccountId
field 2 proxy_type: ProxyType
field 3 disambiguation_index: u16

Code Examples

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

const registry = new TypeRegistry();

// Encode Proxy::Event — variant "ProxyExecuted"
const value = registry.createType("Proxy::Event", { ProxyExecuted: { result: 0 } });
console.log("Hex:", value.toHex());

Type Parameters

T

Referenced By (23)

and 3 more...

Also See

Type Information

Type ID
65
Kind
Variant
Path
pallet_subtensor_proxy::pallet::Event
Runtime
v393