SubtensorModule::Error
Variant 465 v393pallet_subtensor::pallet::Error
The `Error` enum of this pallet.
About This Type
Error enum for the Error pallet.
Contains all error types that the Error pallet can return when a call fails.
Variants (135)
| Index | Name | Fields | Docs |
|---|---|---|---|
| 0 | RootNetworkDoesNotExist | none | The root network does not exist. |
| 1 | InvalidIpType | none | The user is trying to serve an axon which is not of type 4 (IPv4) or 6 (IPv6). |
| 2 | InvalidIpAddress | none | An invalid IP address is passed to the serve function. |
| 3 | InvalidPort | none | An invalid port is passed to the serve function. |
| 4 | HotKeyNotRegisteredInSubNet | none | The hotkey is not registered in subnet |
| 5 | HotKeyAccountNotExists | none | The hotkey does not exists |
| 6 | HotKeyNotRegisteredInNetwork | none | The hotkey is not registered in any subnet. |
| 7 | NonAssociatedColdKey | none | Request to stake, unstake or subscribe is made by a coldkey that is not associated with the hotkey account. |
| 8 | NotEnoughStake | none | DEPRECATED: Stake amount to withdraw is zero. The caller does not have enought stake to perform this action. |
| 9 | NotEnoughStakeToWithdraw | none | The caller is requesting removing more stake than there exists in the staking account. See: "[remove_stake()]". |
| 10 | NotEnoughStakeToSetWeights | none | The caller is requesting to set weights but the caller has less than minimum stake required to set weights (less than WeightsMinStake). |
| 11 | NotEnoughStakeToSetChildkeys | none | The parent hotkey doesn't have enough own stake to set childkeys. |
| 12 | NotEnoughBalanceToStake | none | The caller is requesting adding more stake than there exists in the coldkey account. See: "[add_stake()]" |
| 13 | BalanceWithdrawalError | none | The caller is trying to add stake, but for some reason the requested amount could not be withdrawn from the coldkey account. |
| 14 | ZeroBalanceAfterWithdrawn | none | Unsuccessfully withdraw, balance could be zero (can not make account exist) after withdrawal. |
| 15 | NeuronNoValidatorPermit | none | The caller is attempting to set non-self weights without being a permitted validator. |
| 16 | WeightVecNotEqualSize | none | The caller is attempting to set the weight keys and values but these vectors have different size. |
| 17 | DuplicateUids | none | The caller is attempting to set weights with duplicate UIDs in the weight matrix. |
| 18 | UidVecContainInvalidOne | none | The caller is attempting to set weight to at least one UID that does not exist in the metagraph. |
| 19 | WeightVecLengthIsLow | none | The dispatch is attempting to set weights on chain with fewer elements than are allowed. |
| 20 | TooManyRegistrationsThisBlock | none | Number of registrations in this block exceeds the allowed number (i.e., exceeds the subnet hyperparameter "max_regs_per_block"). |
| 21 | HotKeyAlreadyRegisteredInSubNet | none | The caller is requesting registering a neuron which already exists in the active set. |
| 22 | NewHotKeyIsSameWithOld | none | The new hotkey is the same as old one |
| 23 | InvalidWorkBlock | none | The supplied PoW hash block is in the future or negative. |
| 24 | InvalidDifficulty | none | The supplied PoW hash block does not meet the network difficulty. |
| 25 | InvalidSeal | none | The supplied PoW hash seal does not match the supplied work. |
| 26 | MaxWeightExceeded | none | The dispatch is attempting to set weights on chain with weight value exceeding the configured max weight limit (currently `u16::MAX`). |
| 27 | HotKeyAlreadyDelegate | none | The hotkey is attempting to become a delegate when the hotkey is already a delegate. |
| 28 | SettingWeightsTooFast | none | A transactor exceeded the rate limit for setting weights. |
| 29 | IncorrectWeightVersionKey | none | A validator is attempting to set weights from a validator with incorrect weight version. |
| 30 | ServingRateLimitExceeded | none | An axon or prometheus serving exceeded the rate limit for a registered neuron. |
| 31 | UidsLengthExceedUidsInSubNet | none | The caller is attempting to set weights with more UIDs than allowed. |
| 32 | NetworkTxRateLimitExceeded | none | A transactor exceeded the rate limit for add network transaction. |
| 33 | DelegateTxRateLimitExceeded | none | A transactor exceeded the rate limit for delegate transaction. |
| 34 | HotKeySetTxRateLimitExceeded | none | A transactor exceeded the rate limit for setting or swapping hotkey. |
| 35 | StakingRateLimitExceeded | none | A transactor exceeded the rate limit for staking. |
| 36 | SubNetRegistrationDisabled | none | Registration is disabled. |
| 37 | TooManyRegistrationsThisInterval | none | The number of registration attempts exceeded the allowed number in the interval. |
| 38 | TransactorAccountShouldBeHotKey | none | The hotkey is required to be the origin. |
| 39 | FaucetDisabled | none | Faucet is disabled. |
| 40 | NotSubnetOwner | none | Not a subnet owner. |
| 41 | RegistrationNotPermittedOnRootSubnet | none | Operation is not permitted on the root subnet. |
| 42 | StakeTooLowForRoot | none | A hotkey with too little stake is attempting to join the root subnet. |
| 43 | AllNetworksInImmunity | none | All subnets are in the immunity period. |
| 44 | NotEnoughBalanceToPaySwapHotKey | none | Not enough balance to pay swapping hotkey. |
| 45 | NotRootSubnet | none | Netuid does not match for setting root network weights. |
| 46 | CanNotSetRootNetworkWeights | none | Can not set weights for the root network. |
| 47 | NoNeuronIdAvailable | none | No neuron ID is available. |
| 48 | DelegateTakeTooLow | none | Delegate take is too low. |
| 49 | DelegateTakeTooHigh | none | Delegate take is too high. |
| 50 | NoWeightsCommitFound | none | No commit found for the provided hotkey+netuid combination when attempting to reveal the weights. |
| 51 | InvalidRevealCommitHashNotMatch | none | Committed hash does not equal the hashed reveal data. |
| 52 | CommitRevealEnabled | none | Attempting to call set_weights when commit/reveal is enabled |
| 53 | CommitRevealDisabled | none | Attemtping to commit/reveal weights when disabled. |
| 54 | LiquidAlphaDisabled | none | Attempting to set alpha high/low while disabled |
| 55 | AlphaHighTooLow | none | Alpha high is too low: alpha_high > 0.8 |
| 56 | AlphaLowOutOfRange | none | Alpha low is out of range: alpha_low > 0 && alpha_low < 0.8 |
| 57 | ColdKeyAlreadyAssociated | none | The coldkey has already been swapped |
| 58 | NotEnoughBalanceToPaySwapColdKey | none | The coldkey balance is not enough to pay for the swap |
| 59 | InvalidChild | none | Attempting to set an invalid child for a hotkey on a network. |
| 60 | DuplicateChild | none | Duplicate child when setting children. |
| 61 | ProportionOverflow | none | Proportion overflow when setting children. |
| 62 | TooManyChildren | none | Too many children MAX 5. |
| 63 | TxRateLimitExceeded | none | Default transaction rate limit exceeded. |
| 64 | ColdkeySwapAnnouncementNotFound | none | Coldkey swap announcement not found |
| 65 | ColdkeySwapTooEarly | none | Coldkey swap too early. |
| 66 | ColdkeySwapReannouncedTooEarly | none | Coldkey swap reannounced too early. |
| 67 | AnnouncedColdkeyHashDoesNotMatch | none | The announced coldkey hash does not match the new coldkey hash. |
| 68 | ColdkeySwapAlreadyDisputed | none | Coldkey swap already disputed |
| 69 | NewColdKeyIsHotkey | none | New coldkey is hotkey |
| 70 | InvalidChildkeyTake | none | Childkey take is invalid. |
| 71 | TxChildkeyTakeRateLimitExceeded | none | Childkey take rate limit exceeded. |
| 72 | InvalidIdentity | none | Invalid identity. |
| 73 | MechanismDoesNotExist | none | Subnet mechanism does not exist. |
| 74 | CannotUnstakeLock | none | Trying to unstake your lock amount. |
| 75 | SubnetNotExists | none | Trying to perform action on non-existent subnet. |
| 76 | TooManyUnrevealedCommits | none | Maximum commit limit reached |
| 77 | ExpiredWeightCommit | none | Attempted to reveal weights that are expired. |
| 78 | RevealTooEarly | none | Attempted to reveal weights too early. |
| 79 | InputLengthsUnequal | none | Attempted to batch reveal weights with mismatched vector input lenghts. |
| 80 | CommittingWeightsTooFast | none | A transactor exceeded the rate limit for setting weights. |
| 81 | AmountTooLow | none | Stake amount is too low. |
| 82 | InsufficientLiquidity | none | Not enough liquidity. |
| 83 | SlippageTooHigh | none | Slippage is too high for the transaction. |
| 84 | TransferDisallowed | none | Subnet disallows transfer. |
| 85 | ActivityCutoffTooLow | none | Activity cutoff is being set too low. |
| 86 | CallDisabled | none | Call is disabled |
| 87 | FirstEmissionBlockNumberAlreadySet | none | FirstEmissionBlockNumber is already set. |
| 88 | NeedWaitingMoreBlocksToStarCall | none | need wait for more blocks to accept the start call extrinsic. |
| 89 | NotEnoughAlphaOutToRecycle | none | Not enough AlphaOut on the subnet to recycle |
| 90 | CannotBurnOrRecycleOnRootSubnet | none | Cannot burn or recycle TAO from root subnet |
| 91 | UnableToRecoverPublicKey | none | Public key cannot be recovered. |
| 92 | InvalidRecoveredPublicKey | none | Recovered public key is invalid. |
| 93 | SubtokenDisabled | none | SubToken disabled now |
| 94 | HotKeySwapOnSubnetIntervalNotPassed | none | Too frequent hotkey swap on subnet |
| 95 | ZeroMaxStakeAmount | none | Zero max stake amount |
| 96 | SameNetuid | none | Invalid netuid duplication |
| 97 | InsufficientBalance | none | The caller does not have enough balance for the operation. |
| 98 | StakingOperationRateLimitExceeded | none | Too frequent staking operations |
| 99 | InvalidLeaseBeneficiary | none | Invalid lease beneficiary to register the leased network. |
| 100 | LeaseCannotEndInThePast | none | Lease cannot end in the past. |
| 101 | LeaseNetuidNotFound | none | Couldn't find the lease netuid. |
| 102 | LeaseDoesNotExist | none | Lease does not exist. |
| 103 | LeaseHasNoEndBlock | none | Lease has no end block. |
| 104 | LeaseHasNotEnded | none | Lease has not ended. |
| 105 | Overflow | none | An overflow occurred. |
| 106 | BeneficiaryDoesNotOwnHotkey | none | Beneficiary does not own hotkey. |
| 107 | ExpectedBeneficiaryOrigin | none | Expected beneficiary origin. |
| 108 | AdminActionProhibitedDuringWeightsWindow | none | Admin operation is prohibited during the protected weights window |
| 109 | SymbolDoesNotExist | none | Symbol does not exist. |
| 110 | SymbolAlreadyInUse | none | Symbol already in use. |
| 111 | IncorrectCommitRevealVersion | none | Incorrect commit-reveal version. |
| 112 | RevealPeriodTooLarge | none | Reveal period is too large. |
| 113 | RevealPeriodTooSmall | none | Reveal period is too small. |
| 114 | InvalidValue | none | Generic error for out-of-range parameter value |
| 115 | SubnetLimitReached | none | Subnet limit reached & there is no eligible subnet to prune |
| 116 | CannotAffordLockCost | none | Insufficient funds to meet the subnet lock cost |
| 117 | EvmKeyAssociateRateLimitExceeded | none | exceeded the rate limit for associating an EVM key. |
| 118 | SameAutoStakeHotkeyAlreadySet | none | Same auto stake hotkey already set |
| 119 | UidMapCouldNotBeCleared | none | The UID map for the subnet could not be cleared |
| 120 | TrimmingWouldExceedMaxImmunePercentage | none | Trimming would exceed the max immune neurons percentage |
| 121 | ChildParentInconsistency | none | Violating the rules of Childkey-Parentkey consistency |
| 122 | InvalidNumRootClaim | none | Invalid number of root claims |
| 123 | InvalidRootClaimThreshold | none | Invalid value of root claim threshold |
| 124 | InvalidSubnetNumber | none | Exceeded subnet limit number or zero. |
| 125 | TooManyUIDsPerMechanism | none | The maximum allowed UIDs times mechanism count should not exceed 256. |
| 126 | VotingPowerTrackingNotEnabled | none | Voting power tracking is not enabled for this subnet. |
| 127 | InvalidVotingPowerEmaAlpha | none | Invalid voting power EMA alpha value (must be <= 10^18). |
| 128 | PrecisionLoss | none | Unintended precision loss when unstaking alpha |
| 129 | Deprecated | none | Deprecated call. |
| 130 | AddStakeBurnRateLimitExceeded | none | "Add stake and burn" exceeded the operation rate limit |
| 131 | ColdkeySwapAnnounced | none | A coldkey swap has been announced for this account. |
| 132 | ColdkeySwapDisputed | none | A coldkey swap for this account is under dispute. |
| 133 | ColdkeySwapClearTooEarly | none | Coldkey swap clear too early. |
| 134 | DisabledTemporarily | none | Disabled temporarily. |
SCALE Encoding
- Rule
- 1-byte variant index followed by variant-specific field data. 135 possible variants.
- Size
- variable (1+ bytes)
Examples
RootNetworkDoesNotExist
0x0000 Variant index 0 = RootNetworkDoesNotExistInvalidIpType
0x0101 Variant index 1 = InvalidIpTypeInvalidIpAddress
0x0202 Variant index 2 = InvalidIpAddressCode Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode SubtensorModule::Error — variant "RootNetworkDoesNotExist"
const value = registry.createType("SubtensorModule::Error", "RootNetworkDoesNotExist");
console.log("Hex:", value.toHex());Type Parameters
T
Referenced By (21)
#726 RuntimeError via System#726 RuntimeError via Grandpa#726 RuntimeError via Balances#726 RuntimeError via SubtensorModule#726 RuntimeError via Utility#726 RuntimeError via Sudo#726 RuntimeError via Multisig#726 RuntimeError via Preimage#726 RuntimeError via Scheduler#726 RuntimeError via Proxy#726 RuntimeError via Registry#726 RuntimeError via Commitments#726 RuntimeError via AdminUtils#726 RuntimeError via SafeMode#726 RuntimeError via Ethereum#726 RuntimeError via EVM#726 RuntimeError via Drand#726 RuntimeError via Crowdloan#726 RuntimeError via Swap#726 RuntimeError via Contracts
and 1 more...
Also See
Type Information
- Type ID
- 465
- Kind
- Variant
- Path
- pallet_subtensor::pallet::Error
- Runtime
- v393