RecycleOrBurnEnum
Variant 312 v393pallet_subtensor::pallet::RecycleOrBurnEnum
About This Type
Enum type: RecycleOrBurnEnum.
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 (2)
| Index | Name | Fields | Docs |
|---|---|---|---|
| 0 | Burn | none | |
| 1 | Recycle | none |
SCALE Encoding
- Rule
- 1-byte variant index followed by variant-specific field data. 2 possible variants.
- Size
- variable (1+ bytes)
Examples
Burn
0x0000 Variant index 0 = BurnRecycle
0x0101 Variant index 1 = RecycleCode Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode RecycleOrBurnEnum — variant "Burn"
const value = registry.createType("RecycleOrBurnEnum", "Burn");
console.log("Hex:", value.toHex());Referenced By (1)
Type Information
- Type ID
- 312
- Kind
- Variant
- Path
- pallet_subtensor::pallet::RecycleOrBurnEnum
- Runtime
- v393