Hyperparameter
Variant 435 v393pallet_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)
| Index | Name | Fields | Docs |
|---|---|---|---|
| 0 | Unknown | none | |
| 1 | ServingRateLimit | none | |
| 2 | MaxDifficulty | none | |
| 3 | AdjustmentAlpha | none | |
| 4 | MaxWeightLimit | none | |
| 5 | ImmunityPeriod | none | |
| 6 | MinAllowedWeights | none | |
| 7 | Kappa | none | |
| 8 | Rho | none | |
| 9 | ActivityCutoff | none | |
| 10 | PowRegistrationAllowed | none | |
| 11 | MinBurn | none | |
| 12 | MaxBurn | none | |
| 13 | BondsMovingAverage | none | |
| 14 | BondsPenalty | none | |
| 15 | CommitRevealEnabled | none | |
| 16 | LiquidAlphaEnabled | none | |
| 17 | AlphaValues | none | |
| 18 | WeightCommitInterval | none | |
| 19 | TransferEnabled | none | |
| 20 | AlphaSigmoidSteepness | none | |
| 21 | Yuma3Enabled | none | |
| 22 | BondsResetEnabled | none | |
| 23 | ImmuneNeuronLimit | none | |
| 24 | RecycleOrBurn | none | |
| 25 | MaxAllowedUids | none |
SCALE Encoding
- Rule
- 1-byte variant index followed by variant-specific field data. 26 possible variants.
- Size
- variable (1+ bytes)
Examples
Unknown
0x0000 Variant index 0 = UnknownServingRateLimit
0x0101 Variant index 1 = ServingRateLimitMaxDifficulty
0x0202 Variant index 2 = MaxDifficultyCode 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