DepositKind
Variant 67 v393pallet_subtensor_proxy::DepositKind
About This Type
Enum type: DepositKind.
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 | Proxies | none | |
| 1 | Announcements | none |
SCALE Encoding
- Rule
- 1-byte variant index followed by variant-specific field data. 2 possible variants.
- Size
- variable (1+ bytes)
Examples
Proxies
0x0000 Variant index 0 = ProxiesAnnouncements
0x0101 Variant index 1 = AnnouncementsCode Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode DepositKind — variant "Proxies"
const value = registry.createType("DepositKind", "Proxies");
console.log("Hex:", value.toHex());Referenced By (1)
Type Information
- Type ID
- 67
- Kind
- Variant
- Path
- pallet_subtensor_proxy::DepositKind
- Runtime
- v393