@@ -6,121 +6,121 @@ use frame_support::pallet_macros::pallet_section;
66mod errors {
77 #[ pallet:: error]
88 pub enum Error < T > {
9- /// the network does not exist.
9+ /// The subnet does not exist.
1010 SubNetworkDoesNotExist ,
11- /// the root network does not exist.
11+ /// The root network does not exist.
1212 RootNetworkDoesNotExist ,
13- /// the user tries to serve an axon which is not of type 4 (IPv4) or 6 (IPv6).
13+ /// The user tries to serve an axon which is not of type 4 (IPv4) or 6 (IPv6).
1414 InvalidIpType ,
15- /// an invalid IP address is passed to the serve function.
15+ /// An invalid IP address is passed to the serve function.
1616 InvalidIpAddress ,
17- /// an invalid port is passed to the serve function.
17+ /// An invalid port is passed to the serve function.
1818 InvalidPort ,
19- /// the hot key not registered in subnet
19+ /// The hot key not registered in subnet
2020 HotKeyNotRegisteredInSubNet ,
21- /// the hot key not exists
21+ /// The hot key not exists
2222 HotKeyAccountNotExists ,
23- /// the hot key not registered in any subnet.
23+ /// The hot key is not registered in any subnet.
2424 HotKeyNotRegisteredInNetwork ,
2525 /// stake, unstake or subscribe request is made by a coldkey which is not associated with the hotkey account.
2626 NonAssociatedColdKey ,
27- /// the hot key is not a delegate and the signer is not the owner of the hot key.
27+ /// The hot key is not a delegate and the signer is not the owner of the hot key.
2828 HotKeyNotDelegateAndSignerNotOwnHotKey ,
29- /// stake to withdraw amount is zero
29+ /// Stake to withdraw amount is zero
3030 StakeToWithdrawIsZero ,
31- /// the caller requests removing more stake than there exists in the staking account. See: fn remove_stake.
31+ /// The caller is requesting removing more stake than there exists in the staking account. See: fn "[ remove_stake]" .
3232 NotEnoughStakeToWithdraw ,
33- /// the caller requests to set weights but has less than WeightsMinStake
33+ /// The caller is requesting to set weights but the caller has less than minimum stake required to set weights (less than WeightsMinStake).
3434 NotEnoughStakeToSetWeights ,
35- /// the caller requests adding more stake than there exists in the cold key account. See: fn add_stake
35+ /// The caller is requesting adding more stake than there exists in the cold key account. See: fn "[ add_stake()]"
3636 NotEnoughBalanceToStake ,
37- /// the caller tries to add stake, but for some reason the requested amount could not be withdrawn from the coldkey account.
37+ /// The caller is trying to add stake, but for some reason the requested amount could not be withdrawn from the coldkey account.
3838 BalanceWithdrawalError ,
39- /// successfully deducted balance for withdraw is zero
40- ZeroBalanceWithdrawn ,
41- /// the caller attempts to set non-self weights without being a permitted validator.
39+ /// Unsuccessfully withdraw, balance could be zero (can not make account exist) after withdrawal.
40+ ZeroBalanceAfterWithdrawn ,
41+ /// The caller is attempting to set non-self weights without being a permitted validator.
4242 NeuronNoValidatorPermit ,
43- /// the caller attempts to set the weight keys and values but these vectors have different size.
43+ /// The caller is attempting to set the weight keys and values but these vectors have different size.
4444 WeightVecNotEqualSize ,
45- /// the caller attempts to set weights with duplicate uids in the weight matrix.
45+ /// The caller is attempting to set weights with duplicate uids in the weight matrix.
4646 DuplicateUids ,
47- /// the caller attempts to set weight to at least one uid that does not exist in the metagraph.
47+ /// The caller is attempting to set weight to at least one uid that does not exist in the metagraph.
4848 UidVecContainInvalidOne ,
49- /// the dispatch attempts to set weights on chain with fewer elements than are allowed.
49+ /// The dispatch is attempting to set weights on chain with fewer elements than are allowed.
5050 WeightVecLengthIsLow ,
51- /// registrations this block exceeds allowed number.
51+ /// Number of registrations in this block exceeds the allowed number (i.e., exceeds the subnet hyperparameter "max_regs_per_block") .
5252 TooManyRegistrationsThisBlock ,
53- /// the caller requests registering a neuron which already exists in the active set.
53+ /// The caller is requesting registering a neuron which already exists in the active set.
5454 HotKeyAlreadyRegisteredInSubNet ,
55- /// the new hot key is the same as old one
55+ /// The new hot key is the same as old one
5656 NewHotKeyIsSameWithOld ,
57- /// the supplied pow hash block is in the future or negative.
57+ /// The supplied PoW hash block is in the future or negative.
5858 InvalidWorkBlock ,
59- /// the supplied pow hash block does not meet the network difficulty.
59+ /// The supplied PoW hash block does not meet the network difficulty.
6060 InvalidDifficulty ,
61- /// the supplied pow hash seal does not match the supplied work.
61+ /// The supplied PoW hash seal does not match the supplied work.
6262 InvalidSeal ,
63- /// the dispatch attempts to set weights on chain with where any normalized weight is more than MaxWeightLimit .
63+ /// The dispatch is attempting to set weights on chain with weight value exceeding the MaxWeightLimit (max_weight_limit subnet hyperparameter) .
6464 MaxWeightExceeded ,
65- /// the hotkey attempts to become delegate when they are already.
65+ /// The hotkey is attempting to become a delegate when the hotkey is already a delegate .
6666 HotKeyAlreadyDelegate ,
67- /// the hotkey attempts to set weights twice within net_tempo/2 blocks.
67+ /// The hotkey is attempting to set weights twice within the duration of net_tempo/2 blocks.
6868 SettingWeightsTooFast ,
69- /// a validator attempts to set weights from a validator with incorrect code base key .
70- IncorrectNetworkVersionKey ,
71- /// an axon or prometheus serving exceeds the rate limit for a registered neuron.
69+ /// A validator is attempting to set weights from a validator with incorrect weight version .
70+ IncorrectWeightVersionKey ,
71+ /// An axon or prometheus serving exceeds the rate limit for a registered neuron.
7272 ServingRateLimitExceeded ,
73- /// the caller attempts to set weights with more uids than allowed.
73+ /// The caller is attempting to set weights with more UIDs than allowed.
7474 UidsLengthExceedUidsInSubNet ,
75- /// a transactor exceeds the rate limit for add network tx .
75+ /// A transactor exceeded the rate limit for add network transaction .
7676 NetworkTxRateLimitExceeded ,
77- /// a transactor exceeds the rate limit for delegate tx .
77+ /// A transactor exceeded the rate limit for delegate transaction .
7878 DelegateTxRateLimitExceeded ,
79- /// a transactor exceeds the rate limit for set or swap hot key.
79+ /// A transactor exceeded the rate limit for set or swapping hot key.
8080 HotKeySetTxRateLimitExceeded ,
81- /// a transactor exceeds the rate limit for stakes.
81+ /// A transactor exceeded the rate limit for stakes.
8282 StakeRateLimitExceeded ,
83- /// a transactor exceeds the rate limit for unstakes .
83+ /// A transactor exceeded the rate limit for unstaking .
8484 UnstakeRateLimitExceeded ,
85- /// registration is disabled
85+ /// Registration is disabled.
8686 SubNetRegistrationDisabled ,
87- /// registration attempt exceeds allowed in interval
87+ /// The number of registration attempts exceeded the allowed number in the interval.
8888 TooManyRegistrationsThisInterval ,
89- /// the hotkey passed is not the origin, but it should be
89+ /// The hotkey is required to be the origin.
9090 TransactorAccountShouldBeHotKey ,
91- /// a hotkey attempts to do something only senate members can do
91+ /// A hotkey is attempting to do something only senate members can do.
9292 NotSenateMember ,
93- /// the faucet is disabled
93+ /// Faucet is disabled.
9494 FaucetDisabled ,
95- /// not subnet owner
95+ /// Not a subnet owner.
9696 NotSubnetOwner ,
97- /// operation not permitted on root subnet
97+ /// Operation is not permitted on root subnet.
9898 RegistrationNotPermittedOnRootSubnet ,
99- /// a hotkey attempts to join the root subnet with too little stake
99+ /// A hotkey with too little stake is attempting to join the root subnet.
100100 StakeTooLowForRoot ,
101- /// all subnets are in the immunity period
101+ /// All subnets are in the immunity period.
102102 AllNetworksInImmunity ,
103- /// not enough balance to pay swap hot key
103+ /// Not enough balance to pay swapping hot key.
104104 NotEnoughBalanceToPaySwapHotKey ,
105- /// Set root network weights not match net uid
105+ /// Netuid does not match for setting root network weights.
106106 NotRootSubnet ,
107- /// can't set weights for root network
107+ /// Can not set weights for the root network.
108108 CanNotSetRootNetworkWeights ,
109- /// no neuron id is available
109+ /// No neuron ID is available.
110110 NoNeuronIdAvailable ,
111- /// Thrown a stake would be below the minimum threshold for nominator validations
111+ /// Stake amount below the minimum threshold for nominator validations.
112112 NomStakeBelowMinimumThreshold ,
113- /// delegate take is too low
113+ /// Delegate take is too low.
114114 DelegateTakeTooLow ,
115- /// delegate take is too high
115+ /// Delegate take is too high.
116116 DelegateTakeTooHigh ,
117- /// Not allowed to commit weights
117+ /// Not allowed to commit weights.
118118 WeightsCommitNotAllowed ,
119- /// No commit found for provided hotkey+netuid when attempting to reveal weights
119+ /// No commit found for provided hotkey+netuid combination when attempting to reveal weights.
120120 NoWeightsCommitFound ,
121- /// Not the correct block/range to reveal weights
121+ /// Not the correct block/range to reveal weights.
122122 InvalidRevealCommitHashNotMatchTempo ,
123- /// Committed hash does not equal the hashed reveal data
123+ /// Committed hash does not equal the hashed reveal data.
124124 InvalidRevealCommitHashNotMatch ,
125125 }
126126}
0 commit comments