PrecompileEnum

Variant 71 v393

pallet_admin_utils::pallet::PrecompileEnum

About This Type

Enum type: PrecompileEnum.

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

IndexNameFieldsDocs
0BalanceTransfernone
1Stakingnone
2Subnetnone
3Metagraphnone
4Neuronnone
5UidLookupnone
6Alphanone
7Crowdloannone
8Proxynone
9Leasingnone
10AddressMappingnone
11VotingPowernone

SCALE Encoding

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

Examples

BalanceTransfer
0x00
00 Variant index 0 = BalanceTransfer
Staking
0x01
01 Variant index 1 = Staking
Subnet
0x02
02 Variant index 2 = Subnet

Code Examples

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

const registry = new TypeRegistry();

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

Referenced By (2)

Type Information

Type ID
71
Kind
Variant
Path
pallet_admin_utils::pallet::PrecompileEnum
Runtime
v393