@@ -22,33 +22,42 @@ mod errors {
22
22
HotKeyAccountNotExists ,
23
23
/// The hotkey is not registered in any subnet.
24
24
HotKeyNotRegisteredInNetwork ,
25
- /// Request to stake, unstake or subscribe is made by a coldkey that is not associated with the hotkey account.
25
+ /// Request to stake, unstake or subscribe is made by a coldkey that is not associated with
26
+ /// the hotkey account.
26
27
NonAssociatedColdKey ,
27
28
/// The hotkey is not a delegate and the signer is not the owner of the hotkey.
28
29
HotKeyNotDelegateAndSignerNotOwnHotKey ,
29
30
/// Stake amount to withdraw is zero.
30
31
StakeToWithdrawIsZero ,
31
- /// The caller is requesting removing more stake than there exists in the staking account. See: "[remove_stake()]".
32
+ /// The caller is requesting removing more stake than there exists in the staking account.
33
+ /// See: "[remove_stake()]".
32
34
NotEnoughStakeToWithdraw ,
33
- /// The caller is requesting to set weights but the caller has less than minimum stake required to set weights (less than WeightsMinStake).
35
+ /// The caller is requesting to set weights but the caller has less than minimum stake
36
+ /// required to set weights (less than WeightsMinStake).
34
37
NotEnoughStakeToSetWeights ,
35
- /// The caller is requesting adding more stake than there exists in the coldkey account. See: "[add_stake()]"
38
+ /// The caller is requesting adding more stake than there exists in the coldkey account.
39
+ /// See: "[add_stake()]"
36
40
NotEnoughBalanceToStake ,
37
- /// The caller is trying to add stake, but for some reason the requested amount could not be withdrawn from the coldkey account.
41
+ /// The caller is trying to add stake, but for some reason the requested amount could not be
42
+ /// withdrawn from the coldkey account.
38
43
BalanceWithdrawalError ,
39
- /// Unsuccessfully withdraw, balance could be zero (can not make account exist) after withdrawal.
44
+ /// Unsuccessfully withdraw, balance could be zero (can not make account exist) after
45
+ /// withdrawal.
40
46
ZeroBalanceAfterWithdrawn ,
41
47
/// The caller is attempting to set non-self weights without being a permitted validator.
42
48
NeuronNoValidatorPermit ,
43
- /// The caller is attempting to set the weight keys and values but these vectors have different size.
49
+ /// The caller is attempting to set the weight keys and values but these vectors have
50
+ /// different size.
44
51
WeightVecNotEqualSize ,
45
52
/// The caller is attempting to set weights with duplicate UIDs in the weight matrix.
46
53
DuplicateUids ,
47
- /// The caller is attempting to set weight to at least one UID that does not exist in the metagraph.
54
+ /// The caller is attempting to set weight to at least one UID that does not exist in the
55
+ /// metagraph.
48
56
UidVecContainInvalidOne ,
49
57
/// The dispatch is attempting to set weights on chain with fewer elements than are allowed.
50
58
WeightVecLengthIsLow ,
51
- /// Number of registrations in this block exceeds the allowed number (i.e., exceeds the subnet hyperparameter "max_regs_per_block").
59
+ /// Number of registrations in this block exceeds the allowed number (i.e., exceeds the
60
+ /// subnet hyperparameter "max_regs_per_block").
52
61
TooManyRegistrationsThisBlock ,
53
62
/// The caller is requesting registering a neuron which already exists in the active set.
54
63
HotKeyAlreadyRegisteredInSubNet ,
@@ -60,7 +69,8 @@ mod errors {
60
69
InvalidDifficulty ,
61
70
/// The supplied PoW hash seal does not match the supplied work.
62
71
InvalidSeal ,
63
- /// The dispatch is attempting to set weights on chain with weight value exceeding the MaxWeightLimit (max_weight_limit subnet hyperparameter).
72
+ /// The dispatch is attempting to set weights on chain with weight value exceeding the
73
+ /// MaxWeightLimit (max_weight_limit subnet hyperparameter).
64
74
MaxWeightExceeded ,
65
75
/// The hotkey is attempting to become a delegate when the hotkey is already a delegate.
66
76
HotKeyAlreadyDelegate ,
@@ -114,7 +124,8 @@ mod errors {
114
124
DelegateTakeTooLow ,
115
125
/// Delegate take is too high.
116
126
DelegateTakeTooHigh ,
117
- /// No commit found for the provided hotkey+netuid combination when attempting to reveal the weights.
127
+ /// No commit found for the provided hotkey+netuid combination when attempting to reveal the
128
+ /// weights.
118
129
NoWeightsCommitFound ,
119
130
/// Committed hash does not equal the hashed reveal data.
120
131
InvalidRevealCommitHashNotMatch ,
@@ -132,28 +143,10 @@ mod errors {
132
143
AlphaLowOutOfRange ,
133
144
/// The coldkey has already been swapped
134
145
ColdKeyAlreadyAssociated ,
135
- /// The coldkey swap transaction rate limit exceeded
136
- ColdKeySwapTxRateLimitExceeded ,
137
- /// The new coldkey is the same as the old coldkey
138
- NewColdKeyIsSameWithOld ,
139
- /// The coldkey does not exist
140
- NotExistColdkey ,
141
146
/// The coldkey balance is not enough to pay for the swap
142
147
NotEnoughBalanceToPaySwapColdKey ,
143
- /// No balance to transfer
144
- NoBalanceToTransfer ,
145
- /// Same coldkey
146
- SameColdkey ,
147
148
/// The coldkey is in arbitration
148
149
ColdkeyIsInArbitration ,
149
- /// The new coldkey is already registered for the drain
150
- DuplicateColdkey ,
151
- /// Error thrown on a coldkey swap.
152
- ColdkeySwapError ,
153
- /// Insufficient Balance to Schedule coldkey swap
154
- InsufficientBalanceToPerformColdkeySwap ,
155
- /// The maximum number of coldkey destinations has been reached
156
- MaxColdkeyDestinationsReached ,
157
150
/// Attempting to set an invalid child for a hotkey on a network.
158
151
InvalidChild ,
159
152
/// Duplicate child when setting children.
@@ -164,16 +157,12 @@ mod errors {
164
157
TooManyChildren ,
165
158
/// Default transaction rate limit exceeded.
166
159
TxRateLimitExceeded ,
167
- /// Swap coldkey only callable by root.
168
- SwapColdkeyOnlyCallableByRoot ,
169
160
/// Swap already scheduled.
170
161
SwapAlreadyScheduled ,
171
162
/// failed to swap coldkey
172
163
FailedToSchedule ,
173
164
/// New coldkey is hotkey
174
165
NewColdKeyIsHotkey ,
175
- /// New coldkey is in arbitration
176
- NewColdkeyIsInArbitration ,
177
166
/// Childkey take is invalid.
178
167
InvalidChildkeyTake ,
179
168
/// Childkey take rate limit exceeded.
0 commit comments