ProxyType

Variant 66 v393

subtensor_runtime_common::ProxyType

About This Type

Enum type: ProxyType.

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 (18)

IndexNameFieldsDocs
0Anynone
1Ownernone
2NonCriticalnone
3NonTransfernone
4Senatenone
5NonFungiblenone
6Triumviratenone
7Governancenone
8Stakingnone
9Registrationnone
10Transfernone
11SmallTransfernone
12RootWeightsnone
13ChildKeysnone
14SudoUncheckedSetCodenone
15SwapHotkeynone
16SubnetLeaseBeneficiarynone
17RootClaimnone

SCALE Encoding

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

Examples

Any
0x00
00 Variant index 0 = Any
Owner
0x01
01 Variant index 1 = Owner
NonCritical
0x02
02 Variant index 2 = NonCritical

Code Examples

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

const registry = new TypeRegistry();

// Encode ProxyType — variant "Any"
const value = registry.createType("ProxyType", "Any");
console.log("Hex:", value.toHex());

Referenced By (10)

Type Information

Type ID
66
Kind
Variant
Path
subtensor_runtime_common::ProxyType
Runtime
v393