Hyperparameter

Variant 435 v393

pallet_subtensor::utils::rate_limiting::Hyperparameter

About This Type

Enum type: Hyperparameter.

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

IndexNameFieldsDocs
0Unknownnone
1ServingRateLimitnone
2MaxDifficultynone
3AdjustmentAlphanone
4MaxWeightLimitnone
5ImmunityPeriodnone
6MinAllowedWeightsnone
7Kappanone
8Rhonone
9ActivityCutoffnone
10PowRegistrationAllowednone
11MinBurnnone
12MaxBurnnone
13BondsMovingAveragenone
14BondsPenaltynone
15CommitRevealEnablednone
16LiquidAlphaEnablednone
17AlphaValuesnone
18WeightCommitIntervalnone
19TransferEnablednone
20AlphaSigmoidSteepnessnone
21Yuma3Enablednone
22BondsResetEnablednone
23ImmuneNeuronLimitnone
24RecycleOrBurnnone
25MaxAllowedUidsnone

SCALE Encoding

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

Examples

Unknown
0x00
00 Variant index 0 = Unknown
ServingRateLimit
0x01
01 Variant index 1 = ServingRateLimit
MaxDifficulty
0x02
02 Variant index 2 = MaxDifficulty

Code Examples

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

const registry = new TypeRegistry();

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

Referenced By (1)

Type Information

Type ID
435
Kind
Variant
Path
pallet_subtensor::utils::rate_limiting::Hyperparameter
Runtime
v393