ProxyType
Variant 66 v393subtensor_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)
| Index | Name | Fields | Docs |
|---|---|---|---|
| 0 | Any | none | |
| 1 | Owner | none | |
| 2 | NonCritical | none | |
| 3 | NonTransfer | none | |
| 4 | Senate | none | |
| 5 | NonFungible | none | |
| 6 | Triumvirate | none | |
| 7 | Governance | none | |
| 8 | Staking | none | |
| 9 | Registration | none | |
| 10 | Transfer | none | |
| 11 | SmallTransfer | none | |
| 12 | RootWeights | none | |
| 13 | ChildKeys | none | |
| 14 | SudoUncheckedSetCode | none | |
| 15 | SwapHotkey | none | |
| 16 | SubnetLeaseBeneficiary | none | |
| 17 | RootClaim | none |
SCALE Encoding
- Rule
- 1-byte variant index followed by variant-specific field data. 18 possible variants.
- Size
- variable (1+ bytes)
Examples
Any
0x0000 Variant index 0 = AnyOwner
0x0101 Variant index 1 = OwnerNonCritical
0x0202 Variant index 2 = NonCriticalCode 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)
#65 Proxy::Event via PureCreated.proxy_type#65 Proxy::Event via PureKilled.proxy_type#65 Proxy::Event via ProxyAdded.proxy_type#65 Proxy::Event via ProxyRemoved.proxy_type#169 Proxy::Call via add_proxy.proxy_type#169 Proxy::Call via remove_proxy.proxy_type#169 Proxy::Call via create_pure.proxy_type#169 Proxy::Call via kill_pure.proxy_type#170 Option via Some#492 ProxyDefinition via proxy_type
Type Information
- Type ID
- 66
- Kind
- Variant
- Path
- subtensor_runtime_common::ProxyType
- Runtime
- v393