PrecompileEnum
Variant 71 v393pallet_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)
| Index | Name | Fields | Docs |
|---|---|---|---|
| 0 | BalanceTransfer | none | |
| 1 | Staking | none | |
| 2 | Subnet | none | |
| 3 | Metagraph | none | |
| 4 | Neuron | none | |
| 5 | UidLookup | none | |
| 6 | Alpha | none | |
| 7 | Crowdloan | none | |
| 8 | Proxy | none | |
| 9 | Leasing | none | |
| 10 | AddressMapping | none | |
| 11 | VotingPower | none |
SCALE Encoding
- Rule
- 1-byte variant index followed by variant-specific field data. 12 possible variants.
- Size
- variable (1+ bytes)
Examples
BalanceTransfer
0x0000 Variant index 0 = BalanceTransferStaking
0x0101 Variant index 1 = StakingSubnet
0x0202 Variant index 2 = SubnetCode 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