@dedot/chaintypes 0.175.0 → 0.177.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -46,6 +46,16 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
46
46
  **/
47
47
  MultiBlockMigrationsOngoing: GenericPalletError<Rv>;
48
48
 
49
+ /**
50
+ * The specified [`Task`] is not valid.
51
+ **/
52
+ InvalidTask: GenericPalletError<Rv>;
53
+
54
+ /**
55
+ * The specified [`Task`] failed during execution.
56
+ **/
57
+ FailedTask: GenericPalletError<Rv>;
58
+
49
59
  /**
50
60
  * No upgrade authorized.
51
61
  **/
@@ -101,6 +111,89 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
101
111
  **/
102
112
  [error: string]: GenericPalletError<Rv>;
103
113
  };
114
+ /**
115
+ * Pallet `Preimage`'s errors
116
+ **/
117
+ preimage: {
118
+ /**
119
+ * Preimage is too large to store on-chain.
120
+ **/
121
+ TooBig: GenericPalletError<Rv>;
122
+
123
+ /**
124
+ * Preimage has already been noted on-chain.
125
+ **/
126
+ AlreadyNoted: GenericPalletError<Rv>;
127
+
128
+ /**
129
+ * The user is not authorized to perform this action.
130
+ **/
131
+ NotAuthorized: GenericPalletError<Rv>;
132
+
133
+ /**
134
+ * The preimage cannot be removed since it has not yet been noted.
135
+ **/
136
+ NotNoted: GenericPalletError<Rv>;
137
+
138
+ /**
139
+ * A preimage may not be removed when there are outstanding requests.
140
+ **/
141
+ Requested: GenericPalletError<Rv>;
142
+
143
+ /**
144
+ * The preimage request cannot be removed since no outstanding requests exist.
145
+ **/
146
+ NotRequested: GenericPalletError<Rv>;
147
+
148
+ /**
149
+ * More than `MAX_HASH_UPGRADE_BULK_COUNT` hashes were requested to be upgraded at once.
150
+ **/
151
+ TooMany: GenericPalletError<Rv>;
152
+
153
+ /**
154
+ * Too few hashes were requested to be upgraded (i.e. zero).
155
+ **/
156
+ TooFew: GenericPalletError<Rv>;
157
+
158
+ /**
159
+ * Generic pallet error
160
+ **/
161
+ [error: string]: GenericPalletError<Rv>;
162
+ };
163
+ /**
164
+ * Pallet `Scheduler`'s errors
165
+ **/
166
+ scheduler: {
167
+ /**
168
+ * Failed to schedule a call
169
+ **/
170
+ FailedToSchedule: GenericPalletError<Rv>;
171
+
172
+ /**
173
+ * Cannot find the scheduled call.
174
+ **/
175
+ NotFound: GenericPalletError<Rv>;
176
+
177
+ /**
178
+ * Given target block number is in the past.
179
+ **/
180
+ TargetBlockNumberInPast: GenericPalletError<Rv>;
181
+
182
+ /**
183
+ * Reschedule failed because it does not change scheduled time.
184
+ **/
185
+ RescheduleNoChange: GenericPalletError<Rv>;
186
+
187
+ /**
188
+ * Attempt to use a non-named function on a named task.
189
+ **/
190
+ Named: GenericPalletError<Rv>;
191
+
192
+ /**
193
+ * Generic pallet error
194
+ **/
195
+ [error: string]: GenericPalletError<Rv>;
196
+ };
104
197
  /**
105
198
  * Pallet `Balances`'s errors
106
199
  **/
@@ -205,6 +298,46 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
205
298
  **/
206
299
  [error: string]: GenericPalletError<Rv>;
207
300
  };
301
+ /**
302
+ * Pallet `Claims`'s errors
303
+ **/
304
+ claims: {
305
+ /**
306
+ * Invalid Ethereum signature.
307
+ **/
308
+ InvalidEthereumSignature: GenericPalletError<Rv>;
309
+
310
+ /**
311
+ * Ethereum address has no claim.
312
+ **/
313
+ SignerHasNoClaim: GenericPalletError<Rv>;
314
+
315
+ /**
316
+ * Account ID sending transaction has no claim.
317
+ **/
318
+ SenderHasNoClaim: GenericPalletError<Rv>;
319
+
320
+ /**
321
+ * There's not enough in the pot to pay out some unvested amount. Generally implies a
322
+ * logic error.
323
+ **/
324
+ PotUnderflow: GenericPalletError<Rv>;
325
+
326
+ /**
327
+ * A needed statement was not included.
328
+ **/
329
+ InvalidStatement: GenericPalletError<Rv>;
330
+
331
+ /**
332
+ * The account already has a vested balance.
333
+ **/
334
+ VestedBalanceExists: GenericPalletError<Rv>;
335
+
336
+ /**
337
+ * Generic pallet error
338
+ **/
339
+ [error: string]: GenericPalletError<Rv>;
340
+ };
208
341
  /**
209
342
  * Pallet `CollatorSelection`'s errors
210
343
  **/
@@ -800,6 +933,40 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
800
933
  **/
801
934
  [error: string]: GenericPalletError<Rv>;
802
935
  };
936
+ /**
937
+ * Pallet `Indices`'s errors
938
+ **/
939
+ indices: {
940
+ /**
941
+ * The index was not already assigned.
942
+ **/
943
+ NotAssigned: GenericPalletError<Rv>;
944
+
945
+ /**
946
+ * The index is assigned to another account.
947
+ **/
948
+ NotOwner: GenericPalletError<Rv>;
949
+
950
+ /**
951
+ * The index was not available.
952
+ **/
953
+ InUse: GenericPalletError<Rv>;
954
+
955
+ /**
956
+ * The source and destination accounts are identical.
957
+ **/
958
+ NotTransfer: GenericPalletError<Rv>;
959
+
960
+ /**
961
+ * The index is permanent and may not be freed/changed.
962
+ **/
963
+ Permanent: GenericPalletError<Rv>;
964
+
965
+ /**
966
+ * Generic pallet error
967
+ **/
968
+ [error: string]: GenericPalletError<Rv>;
969
+ };
803
970
  /**
804
971
  * Pallet `Assets`'s errors
805
972
  **/
@@ -1662,44 +1829,1151 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1662
1829
  [error: string]: GenericPalletError<Rv>;
1663
1830
  };
1664
1831
  /**
1665
- * Pallet `StateTrieMigration`'s errors
1832
+ * Pallet `Treasury`'s errors
1666
1833
  **/
1667
- stateTrieMigration: {
1834
+ treasury: {
1668
1835
  /**
1669
- * Max signed limits not respected.
1836
+ * No proposal, bounty or spend at that index.
1670
1837
  **/
1671
- MaxSignedLimits: GenericPalletError<Rv>;
1838
+ InvalidIndex: GenericPalletError<Rv>;
1672
1839
 
1673
1840
  /**
1674
- * A key was longer than the configured maximum.
1675
- *
1676
- * This means that the migration halted at the current [`Progress`] and
1677
- * can be resumed with a larger [`crate::Config::MaxKeyLen`] value.
1678
- * Retrying with the same [`crate::Config::MaxKeyLen`] value will not work.
1679
- * The value should only be increased to avoid a storage migration for the currently
1680
- * stored [`crate::Progress::LastKey`].
1841
+ * Too many approvals in the queue.
1681
1842
  **/
1682
- KeyTooLong: GenericPalletError<Rv>;
1843
+ TooManyApprovals: GenericPalletError<Rv>;
1683
1844
 
1684
1845
  /**
1685
- * submitter does not have enough funds.
1846
+ * The spend origin is valid but the amount it is allowed to spend is lower than the
1847
+ * amount to be spent.
1686
1848
  **/
1687
- NotEnoughFunds: GenericPalletError<Rv>;
1849
+ InsufficientPermission: GenericPalletError<Rv>;
1688
1850
 
1689
1851
  /**
1690
- * Bad witness data provided.
1852
+ * Proposal has not been approved.
1691
1853
  **/
1692
- BadWitness: GenericPalletError<Rv>;
1854
+ ProposalNotApproved: GenericPalletError<Rv>;
1693
1855
 
1694
1856
  /**
1695
- * Signed migration is not allowed because the maximum limit is not set yet.
1857
+ * The balance of the asset kind is not convertible to the balance of the native asset.
1696
1858
  **/
1697
- SignedMigrationNotAllowed: GenericPalletError<Rv>;
1859
+ FailedToConvertBalance: GenericPalletError<Rv>;
1698
1860
 
1699
1861
  /**
1700
- * Bad child root provided.
1862
+ * The spend has expired and cannot be claimed.
1701
1863
  **/
1702
- BadChildRoot: GenericPalletError<Rv>;
1864
+ SpendExpired: GenericPalletError<Rv>;
1865
+
1866
+ /**
1867
+ * The spend is not yet eligible for payout.
1868
+ **/
1869
+ EarlyPayout: GenericPalletError<Rv>;
1870
+
1871
+ /**
1872
+ * The payment has already been attempted.
1873
+ **/
1874
+ AlreadyAttempted: GenericPalletError<Rv>;
1875
+
1876
+ /**
1877
+ * There was some issue with the mechanism of payment.
1878
+ **/
1879
+ PayoutError: GenericPalletError<Rv>;
1880
+
1881
+ /**
1882
+ * The payout was not yet attempted/claimed.
1883
+ **/
1884
+ NotAttempted: GenericPalletError<Rv>;
1885
+
1886
+ /**
1887
+ * The payment has neither failed nor succeeded yet.
1888
+ **/
1889
+ Inconclusive: GenericPalletError<Rv>;
1890
+
1891
+ /**
1892
+ * Generic pallet error
1893
+ **/
1894
+ [error: string]: GenericPalletError<Rv>;
1895
+ };
1896
+ /**
1897
+ * Pallet `ConvictionVoting`'s errors
1898
+ **/
1899
+ convictionVoting: {
1900
+ /**
1901
+ * Poll is not ongoing.
1902
+ **/
1903
+ NotOngoing: GenericPalletError<Rv>;
1904
+
1905
+ /**
1906
+ * The given account did not vote on the poll.
1907
+ **/
1908
+ NotVoter: GenericPalletError<Rv>;
1909
+
1910
+ /**
1911
+ * The actor has no permission to conduct the action.
1912
+ **/
1913
+ NoPermission: GenericPalletError<Rv>;
1914
+
1915
+ /**
1916
+ * The actor has no permission to conduct the action right now but will do in the future.
1917
+ **/
1918
+ NoPermissionYet: GenericPalletError<Rv>;
1919
+
1920
+ /**
1921
+ * The account is already delegating.
1922
+ **/
1923
+ AlreadyDelegating: GenericPalletError<Rv>;
1924
+
1925
+ /**
1926
+ * The account currently has votes attached to it and the operation cannot succeed until
1927
+ * these are removed through `remove_vote`.
1928
+ **/
1929
+ AlreadyVoting: GenericPalletError<Rv>;
1930
+
1931
+ /**
1932
+ * Too high a balance was provided that the account cannot afford.
1933
+ **/
1934
+ InsufficientFunds: GenericPalletError<Rv>;
1935
+
1936
+ /**
1937
+ * The account is not currently delegating.
1938
+ **/
1939
+ NotDelegating: GenericPalletError<Rv>;
1940
+
1941
+ /**
1942
+ * Delegation to oneself makes no sense.
1943
+ **/
1944
+ Nonsense: GenericPalletError<Rv>;
1945
+
1946
+ /**
1947
+ * Maximum number of votes reached.
1948
+ **/
1949
+ MaxVotesReached: GenericPalletError<Rv>;
1950
+
1951
+ /**
1952
+ * The class must be supplied since it is not easily determinable from the state.
1953
+ **/
1954
+ ClassNeeded: GenericPalletError<Rv>;
1955
+
1956
+ /**
1957
+ * The class ID supplied is invalid.
1958
+ **/
1959
+ BadClass: GenericPalletError<Rv>;
1960
+
1961
+ /**
1962
+ * Generic pallet error
1963
+ **/
1964
+ [error: string]: GenericPalletError<Rv>;
1965
+ };
1966
+ /**
1967
+ * Pallet `Referenda`'s errors
1968
+ **/
1969
+ referenda: {
1970
+ /**
1971
+ * Referendum is not ongoing.
1972
+ **/
1973
+ NotOngoing: GenericPalletError<Rv>;
1974
+
1975
+ /**
1976
+ * Referendum's decision deposit is already paid.
1977
+ **/
1978
+ HasDeposit: GenericPalletError<Rv>;
1979
+
1980
+ /**
1981
+ * The track identifier given was invalid.
1982
+ **/
1983
+ BadTrack: GenericPalletError<Rv>;
1984
+
1985
+ /**
1986
+ * There are already a full complement of referenda in progress for this track.
1987
+ **/
1988
+ Full: GenericPalletError<Rv>;
1989
+
1990
+ /**
1991
+ * The queue of the track is empty.
1992
+ **/
1993
+ QueueEmpty: GenericPalletError<Rv>;
1994
+
1995
+ /**
1996
+ * The referendum index provided is invalid in this context.
1997
+ **/
1998
+ BadReferendum: GenericPalletError<Rv>;
1999
+
2000
+ /**
2001
+ * There was nothing to do in the advancement.
2002
+ **/
2003
+ NothingToDo: GenericPalletError<Rv>;
2004
+
2005
+ /**
2006
+ * No track exists for the proposal origin.
2007
+ **/
2008
+ NoTrack: GenericPalletError<Rv>;
2009
+
2010
+ /**
2011
+ * Any deposit cannot be refunded until after the decision is over.
2012
+ **/
2013
+ Unfinished: GenericPalletError<Rv>;
2014
+
2015
+ /**
2016
+ * The deposit refunder is not the depositor.
2017
+ **/
2018
+ NoPermission: GenericPalletError<Rv>;
2019
+
2020
+ /**
2021
+ * The deposit cannot be refunded since none was made.
2022
+ **/
2023
+ NoDeposit: GenericPalletError<Rv>;
2024
+
2025
+ /**
2026
+ * The referendum status is invalid for this operation.
2027
+ **/
2028
+ BadStatus: GenericPalletError<Rv>;
2029
+
2030
+ /**
2031
+ * The preimage does not exist.
2032
+ **/
2033
+ PreimageNotExist: GenericPalletError<Rv>;
2034
+
2035
+ /**
2036
+ * The preimage is stored with a different length than the one provided.
2037
+ **/
2038
+ PreimageStoredWithDifferentLength: GenericPalletError<Rv>;
2039
+
2040
+ /**
2041
+ * Generic pallet error
2042
+ **/
2043
+ [error: string]: GenericPalletError<Rv>;
2044
+ };
2045
+ /**
2046
+ * Pallet `Whitelist`'s errors
2047
+ **/
2048
+ whitelist: {
2049
+ /**
2050
+ * The preimage of the call hash could not be loaded.
2051
+ **/
2052
+ UnavailablePreImage: GenericPalletError<Rv>;
2053
+
2054
+ /**
2055
+ * The call could not be decoded.
2056
+ **/
2057
+ UndecodableCall: GenericPalletError<Rv>;
2058
+
2059
+ /**
2060
+ * The weight of the decoded call was higher than the witness.
2061
+ **/
2062
+ InvalidCallWeightWitness: GenericPalletError<Rv>;
2063
+
2064
+ /**
2065
+ * The call was not whitelisted.
2066
+ **/
2067
+ CallIsNotWhitelisted: GenericPalletError<Rv>;
2068
+
2069
+ /**
2070
+ * The call was already whitelisted; No-Op.
2071
+ **/
2072
+ CallAlreadyWhitelisted: GenericPalletError<Rv>;
2073
+
2074
+ /**
2075
+ * Generic pallet error
2076
+ **/
2077
+ [error: string]: GenericPalletError<Rv>;
2078
+ };
2079
+ /**
2080
+ * Pallet `Bounties`'s errors
2081
+ **/
2082
+ bounties: {
2083
+ /**
2084
+ * Proposer's balance is too low.
2085
+ **/
2086
+ InsufficientProposersBalance: GenericPalletError<Rv>;
2087
+
2088
+ /**
2089
+ * No proposal or bounty at that index.
2090
+ **/
2091
+ InvalidIndex: GenericPalletError<Rv>;
2092
+
2093
+ /**
2094
+ * The reason given is just too big.
2095
+ **/
2096
+ ReasonTooBig: GenericPalletError<Rv>;
2097
+
2098
+ /**
2099
+ * The bounty status is unexpected.
2100
+ **/
2101
+ UnexpectedStatus: GenericPalletError<Rv>;
2102
+
2103
+ /**
2104
+ * Require bounty curator.
2105
+ **/
2106
+ RequireCurator: GenericPalletError<Rv>;
2107
+
2108
+ /**
2109
+ * Invalid bounty value.
2110
+ **/
2111
+ InvalidValue: GenericPalletError<Rv>;
2112
+
2113
+ /**
2114
+ * Invalid bounty fee.
2115
+ **/
2116
+ InvalidFee: GenericPalletError<Rv>;
2117
+
2118
+ /**
2119
+ * A bounty payout is pending.
2120
+ * To cancel the bounty, you must unassign and slash the curator.
2121
+ **/
2122
+ PendingPayout: GenericPalletError<Rv>;
2123
+
2124
+ /**
2125
+ * The bounties cannot be claimed/closed because it's still in the countdown period.
2126
+ **/
2127
+ Premature: GenericPalletError<Rv>;
2128
+
2129
+ /**
2130
+ * The bounty cannot be closed because it has active child bounties.
2131
+ **/
2132
+ HasActiveChildBounty: GenericPalletError<Rv>;
2133
+
2134
+ /**
2135
+ * Too many approvals are already queued.
2136
+ **/
2137
+ TooManyQueued: GenericPalletError<Rv>;
2138
+
2139
+ /**
2140
+ * User is not the proposer of the bounty.
2141
+ **/
2142
+ NotProposer: GenericPalletError<Rv>;
2143
+
2144
+ /**
2145
+ * Generic pallet error
2146
+ **/
2147
+ [error: string]: GenericPalletError<Rv>;
2148
+ };
2149
+ /**
2150
+ * Pallet `ChildBounties`'s errors
2151
+ **/
2152
+ childBounties: {
2153
+ /**
2154
+ * The parent bounty is not in active state.
2155
+ **/
2156
+ ParentBountyNotActive: GenericPalletError<Rv>;
2157
+
2158
+ /**
2159
+ * The bounty balance is not enough to add new child-bounty.
2160
+ **/
2161
+ InsufficientBountyBalance: GenericPalletError<Rv>;
2162
+
2163
+ /**
2164
+ * Number of child bounties exceeds limit `MaxActiveChildBountyCount`.
2165
+ **/
2166
+ TooManyChildBounties: GenericPalletError<Rv>;
2167
+
2168
+ /**
2169
+ * Generic pallet error
2170
+ **/
2171
+ [error: string]: GenericPalletError<Rv>;
2172
+ };
2173
+ /**
2174
+ * Pallet `AssetRate`'s errors
2175
+ **/
2176
+ assetRate: {
2177
+ /**
2178
+ * The given asset ID is unknown.
2179
+ **/
2180
+ UnknownAssetKind: GenericPalletError<Rv>;
2181
+
2182
+ /**
2183
+ * The given asset ID already has an assigned conversion rate and cannot be re-created.
2184
+ **/
2185
+ AlreadyExists: GenericPalletError<Rv>;
2186
+
2187
+ /**
2188
+ * Overflow ocurred when calculating the inverse rate.
2189
+ **/
2190
+ Overflow: GenericPalletError<Rv>;
2191
+
2192
+ /**
2193
+ * Generic pallet error
2194
+ **/
2195
+ [error: string]: GenericPalletError<Rv>;
2196
+ };
2197
+ /**
2198
+ * Pallet `StateTrieMigration`'s errors
2199
+ **/
2200
+ stateTrieMigration: {
2201
+ /**
2202
+ * Max signed limits not respected.
2203
+ **/
2204
+ MaxSignedLimits: GenericPalletError<Rv>;
2205
+
2206
+ /**
2207
+ * A key was longer than the configured maximum.
2208
+ *
2209
+ * This means that the migration halted at the current [`Progress`] and
2210
+ * can be resumed with a larger [`crate::Config::MaxKeyLen`] value.
2211
+ * Retrying with the same [`crate::Config::MaxKeyLen`] value will not work.
2212
+ * The value should only be increased to avoid a storage migration for the currently
2213
+ * stored [`crate::Progress::LastKey`].
2214
+ **/
2215
+ KeyTooLong: GenericPalletError<Rv>;
2216
+
2217
+ /**
2218
+ * submitter does not have enough funds.
2219
+ **/
2220
+ NotEnoughFunds: GenericPalletError<Rv>;
2221
+
2222
+ /**
2223
+ * Bad witness data provided.
2224
+ **/
2225
+ BadWitness: GenericPalletError<Rv>;
2226
+
2227
+ /**
2228
+ * Signed migration is not allowed because the maximum limit is not set yet.
2229
+ **/
2230
+ SignedMigrationNotAllowed: GenericPalletError<Rv>;
2231
+
2232
+ /**
2233
+ * Bad child root provided.
2234
+ **/
2235
+ BadChildRoot: GenericPalletError<Rv>;
2236
+
2237
+ /**
2238
+ * Generic pallet error
2239
+ **/
2240
+ [error: string]: GenericPalletError<Rv>;
2241
+ };
2242
+ /**
2243
+ * Pallet `NominationPools`'s errors
2244
+ **/
2245
+ nominationPools: {
2246
+ /**
2247
+ * A (bonded) pool id does not exist.
2248
+ **/
2249
+ PoolNotFound: GenericPalletError<Rv>;
2250
+
2251
+ /**
2252
+ * An account is not a member.
2253
+ **/
2254
+ PoolMemberNotFound: GenericPalletError<Rv>;
2255
+
2256
+ /**
2257
+ * A reward pool does not exist. In all cases this is a system logic error.
2258
+ **/
2259
+ RewardPoolNotFound: GenericPalletError<Rv>;
2260
+
2261
+ /**
2262
+ * A sub pool does not exist.
2263
+ **/
2264
+ SubPoolsNotFound: GenericPalletError<Rv>;
2265
+
2266
+ /**
2267
+ * An account is already delegating in another pool. An account may only belong to one
2268
+ * pool at a time.
2269
+ **/
2270
+ AccountBelongsToOtherPool: GenericPalletError<Rv>;
2271
+
2272
+ /**
2273
+ * The member is fully unbonded (and thus cannot access the bonded and reward pool
2274
+ * anymore to, for example, collect rewards).
2275
+ **/
2276
+ FullyUnbonding: GenericPalletError<Rv>;
2277
+
2278
+ /**
2279
+ * The member cannot unbond further chunks due to reaching the limit.
2280
+ **/
2281
+ MaxUnbondingLimit: GenericPalletError<Rv>;
2282
+
2283
+ /**
2284
+ * None of the funds can be withdrawn yet because the bonding duration has not passed.
2285
+ **/
2286
+ CannotWithdrawAny: GenericPalletError<Rv>;
2287
+
2288
+ /**
2289
+ * The amount does not meet the minimum bond to either join or create a pool.
2290
+ *
2291
+ * The depositor can never unbond to a value less than `Pallet::depositor_min_bond`. The
2292
+ * caller does not have nominating permissions for the pool. Members can never unbond to a
2293
+ * value below `MinJoinBond`.
2294
+ **/
2295
+ MinimumBondNotMet: GenericPalletError<Rv>;
2296
+
2297
+ /**
2298
+ * The transaction could not be executed due to overflow risk for the pool.
2299
+ **/
2300
+ OverflowRisk: GenericPalletError<Rv>;
2301
+
2302
+ /**
2303
+ * A pool must be in [`PoolState::Destroying`] in order for the depositor to unbond or for
2304
+ * other members to be permissionlessly unbonded.
2305
+ **/
2306
+ NotDestroying: GenericPalletError<Rv>;
2307
+
2308
+ /**
2309
+ * The caller does not have nominating permissions for the pool.
2310
+ **/
2311
+ NotNominator: GenericPalletError<Rv>;
2312
+
2313
+ /**
2314
+ * Either a) the caller cannot make a valid kick or b) the pool is not destroying.
2315
+ **/
2316
+ NotKickerOrDestroying: GenericPalletError<Rv>;
2317
+
2318
+ /**
2319
+ * The pool is not open to join
2320
+ **/
2321
+ NotOpen: GenericPalletError<Rv>;
2322
+
2323
+ /**
2324
+ * The system is maxed out on pools.
2325
+ **/
2326
+ MaxPools: GenericPalletError<Rv>;
2327
+
2328
+ /**
2329
+ * Too many members in the pool or system.
2330
+ **/
2331
+ MaxPoolMembers: GenericPalletError<Rv>;
2332
+
2333
+ /**
2334
+ * The pools state cannot be changed.
2335
+ **/
2336
+ CanNotChangeState: GenericPalletError<Rv>;
2337
+
2338
+ /**
2339
+ * The caller does not have adequate permissions.
2340
+ **/
2341
+ DoesNotHavePermission: GenericPalletError<Rv>;
2342
+
2343
+ /**
2344
+ * Metadata exceeds [`Config::MaxMetadataLen`]
2345
+ **/
2346
+ MetadataExceedsMaxLen: GenericPalletError<Rv>;
2347
+
2348
+ /**
2349
+ * Some error occurred that should never happen. This should be reported to the
2350
+ * maintainers.
2351
+ **/
2352
+ Defensive: GenericPalletError<Rv>;
2353
+
2354
+ /**
2355
+ * Partial unbonding now allowed permissionlessly.
2356
+ **/
2357
+ PartialUnbondNotAllowedPermissionlessly: GenericPalletError<Rv>;
2358
+
2359
+ /**
2360
+ * The pool's max commission cannot be set higher than the existing value.
2361
+ **/
2362
+ MaxCommissionRestricted: GenericPalletError<Rv>;
2363
+
2364
+ /**
2365
+ * The supplied commission exceeds the max allowed commission.
2366
+ **/
2367
+ CommissionExceedsMaximum: GenericPalletError<Rv>;
2368
+
2369
+ /**
2370
+ * The supplied commission exceeds global maximum commission.
2371
+ **/
2372
+ CommissionExceedsGlobalMaximum: GenericPalletError<Rv>;
2373
+
2374
+ /**
2375
+ * Not enough blocks have surpassed since the last commission update.
2376
+ **/
2377
+ CommissionChangeThrottled: GenericPalletError<Rv>;
2378
+
2379
+ /**
2380
+ * The submitted changes to commission change rate are not allowed.
2381
+ **/
2382
+ CommissionChangeRateNotAllowed: GenericPalletError<Rv>;
2383
+
2384
+ /**
2385
+ * There is no pending commission to claim.
2386
+ **/
2387
+ NoPendingCommission: GenericPalletError<Rv>;
2388
+
2389
+ /**
2390
+ * No commission current has been set.
2391
+ **/
2392
+ NoCommissionCurrentSet: GenericPalletError<Rv>;
2393
+
2394
+ /**
2395
+ * Pool id currently in use.
2396
+ **/
2397
+ PoolIdInUse: GenericPalletError<Rv>;
2398
+
2399
+ /**
2400
+ * Pool id provided is not correct/usable.
2401
+ **/
2402
+ InvalidPoolId: GenericPalletError<Rv>;
2403
+
2404
+ /**
2405
+ * Bonding extra is restricted to the exact pending reward amount.
2406
+ **/
2407
+ BondExtraRestricted: GenericPalletError<Rv>;
2408
+
2409
+ /**
2410
+ * No imbalance in the ED deposit for the pool.
2411
+ **/
2412
+ NothingToAdjust: GenericPalletError<Rv>;
2413
+
2414
+ /**
2415
+ * No slash pending that can be applied to the member.
2416
+ **/
2417
+ NothingToSlash: GenericPalletError<Rv>;
2418
+
2419
+ /**
2420
+ * The slash amount is too low to be applied.
2421
+ **/
2422
+ SlashTooLow: GenericPalletError<Rv>;
2423
+
2424
+ /**
2425
+ * The pool or member delegation has already migrated to delegate stake.
2426
+ **/
2427
+ AlreadyMigrated: GenericPalletError<Rv>;
2428
+
2429
+ /**
2430
+ * The pool or member delegation has not migrated yet to delegate stake.
2431
+ **/
2432
+ NotMigrated: GenericPalletError<Rv>;
2433
+
2434
+ /**
2435
+ * This call is not allowed in the current state of the pallet.
2436
+ **/
2437
+ NotSupported: GenericPalletError<Rv>;
2438
+
2439
+ /**
2440
+ * Account is restricted from participation in pools. This may happen if the account is
2441
+ * staking in another way already.
2442
+ **/
2443
+ Restricted: GenericPalletError<Rv>;
2444
+
2445
+ /**
2446
+ * Generic pallet error
2447
+ **/
2448
+ [error: string]: GenericPalletError<Rv>;
2449
+ };
2450
+ /**
2451
+ * Pallet `VoterList`'s errors
2452
+ **/
2453
+ voterList: {
2454
+ /**
2455
+ * A error in the list interface implementation.
2456
+ **/
2457
+ List: GenericPalletError<Rv>;
2458
+
2459
+ /**
2460
+ * Could not update a node, because the pallet is locked.
2461
+ **/
2462
+ Locked: GenericPalletError<Rv>;
2463
+
2464
+ /**
2465
+ * Generic pallet error
2466
+ **/
2467
+ [error: string]: GenericPalletError<Rv>;
2468
+ };
2469
+ /**
2470
+ * Pallet `DelegatedStaking`'s errors
2471
+ **/
2472
+ delegatedStaking: {
2473
+ /**
2474
+ * The account cannot perform this operation.
2475
+ **/
2476
+ NotAllowed: GenericPalletError<Rv>;
2477
+
2478
+ /**
2479
+ * An existing staker cannot perform this action.
2480
+ **/
2481
+ AlreadyStaking: GenericPalletError<Rv>;
2482
+
2483
+ /**
2484
+ * Reward Destination cannot be same as `Agent` account.
2485
+ **/
2486
+ InvalidRewardDestination: GenericPalletError<Rv>;
2487
+
2488
+ /**
2489
+ * Delegation conditions are not met.
2490
+ *
2491
+ * Possible issues are
2492
+ * 1) Cannot delegate to self,
2493
+ * 2) Cannot delegate to multiple delegates.
2494
+ **/
2495
+ InvalidDelegation: GenericPalletError<Rv>;
2496
+
2497
+ /**
2498
+ * The account does not have enough funds to perform the operation.
2499
+ **/
2500
+ NotEnoughFunds: GenericPalletError<Rv>;
2501
+
2502
+ /**
2503
+ * Not an existing `Agent` account.
2504
+ **/
2505
+ NotAgent: GenericPalletError<Rv>;
2506
+
2507
+ /**
2508
+ * Not a Delegator account.
2509
+ **/
2510
+ NotDelegator: GenericPalletError<Rv>;
2511
+
2512
+ /**
2513
+ * Some corruption in internal state.
2514
+ **/
2515
+ BadState: GenericPalletError<Rv>;
2516
+
2517
+ /**
2518
+ * Unapplied pending slash restricts operation on `Agent`.
2519
+ **/
2520
+ UnappliedSlash: GenericPalletError<Rv>;
2521
+
2522
+ /**
2523
+ * `Agent` has no pending slash to be applied.
2524
+ **/
2525
+ NothingToSlash: GenericPalletError<Rv>;
2526
+
2527
+ /**
2528
+ * Failed to withdraw amount from Core Staking.
2529
+ **/
2530
+ WithdrawFailed: GenericPalletError<Rv>;
2531
+
2532
+ /**
2533
+ * Operation not supported by this pallet.
2534
+ **/
2535
+ NotSupported: GenericPalletError<Rv>;
2536
+
2537
+ /**
2538
+ * Generic pallet error
2539
+ **/
2540
+ [error: string]: GenericPalletError<Rv>;
2541
+ };
2542
+ /**
2543
+ * Pallet `MultiBlockElection`'s errors
2544
+ **/
2545
+ multiBlockElection: {
2546
+ /**
2547
+ * Triggering the `Fallback` failed.
2548
+ **/
2549
+ Fallback: GenericPalletError<Rv>;
2550
+
2551
+ /**
2552
+ * Unexpected phase
2553
+ **/
2554
+ UnexpectedPhase: GenericPalletError<Rv>;
2555
+
2556
+ /**
2557
+ * Snapshot was unavailable.
2558
+ **/
2559
+ Snapshot: GenericPalletError<Rv>;
2560
+
2561
+ /**
2562
+ * Generic pallet error
2563
+ **/
2564
+ [error: string]: GenericPalletError<Rv>;
2565
+ };
2566
+ /**
2567
+ * Pallet `MultiBlockElectionSigned`'s errors
2568
+ **/
2569
+ multiBlockElectionSigned: {
2570
+ /**
2571
+ * The phase is not signed.
2572
+ **/
2573
+ PhaseNotSigned: GenericPalletError<Rv>;
2574
+
2575
+ /**
2576
+ * The submission is a duplicate.
2577
+ **/
2578
+ Duplicate: GenericPalletError<Rv>;
2579
+
2580
+ /**
2581
+ * The queue is full.
2582
+ **/
2583
+ QueueFull: GenericPalletError<Rv>;
2584
+
2585
+ /**
2586
+ * The page index is out of bounds.
2587
+ **/
2588
+ BadPageIndex: GenericPalletError<Rv>;
2589
+
2590
+ /**
2591
+ * The account is not registered.
2592
+ **/
2593
+ NotRegistered: GenericPalletError<Rv>;
2594
+
2595
+ /**
2596
+ * No submission found.
2597
+ **/
2598
+ NoSubmission: GenericPalletError<Rv>;
2599
+
2600
+ /**
2601
+ * Round is not yet over.
2602
+ **/
2603
+ RoundNotOver: GenericPalletError<Rv>;
2604
+
2605
+ /**
2606
+ * Bad witness data provided.
2607
+ **/
2608
+ BadWitnessData: GenericPalletError<Rv>;
2609
+
2610
+ /**
2611
+ * Too many invulnerable accounts are provided,
2612
+ **/
2613
+ TooManyInvulnerables: GenericPalletError<Rv>;
2614
+
2615
+ /**
2616
+ * Generic pallet error
2617
+ **/
2618
+ [error: string]: GenericPalletError<Rv>;
2619
+ };
2620
+ /**
2621
+ * Pallet `Staking`'s errors
2622
+ **/
2623
+ staking: {
2624
+ /**
2625
+ * Not a controller account.
2626
+ **/
2627
+ NotController: GenericPalletError<Rv>;
2628
+
2629
+ /**
2630
+ * Not a stash account.
2631
+ **/
2632
+ NotStash: GenericPalletError<Rv>;
2633
+
2634
+ /**
2635
+ * Stash is already bonded.
2636
+ **/
2637
+ AlreadyBonded: GenericPalletError<Rv>;
2638
+
2639
+ /**
2640
+ * Controller is already paired.
2641
+ **/
2642
+ AlreadyPaired: GenericPalletError<Rv>;
2643
+
2644
+ /**
2645
+ * Targets cannot be empty.
2646
+ **/
2647
+ EmptyTargets: GenericPalletError<Rv>;
2648
+
2649
+ /**
2650
+ * Duplicate index.
2651
+ **/
2652
+ DuplicateIndex: GenericPalletError<Rv>;
2653
+
2654
+ /**
2655
+ * Slash record not found.
2656
+ **/
2657
+ InvalidSlashRecord: GenericPalletError<Rv>;
2658
+
2659
+ /**
2660
+ * Cannot bond, nominate or validate with value less than the minimum defined by
2661
+ * governance (see `MinValidatorBond` and `MinNominatorBond`). If unbonding is the
2662
+ * intention, `chill` first to remove one's role as validator/nominator.
2663
+ **/
2664
+ InsufficientBond: GenericPalletError<Rv>;
2665
+
2666
+ /**
2667
+ * Can not schedule more unlock chunks.
2668
+ **/
2669
+ NoMoreChunks: GenericPalletError<Rv>;
2670
+
2671
+ /**
2672
+ * Can not rebond without unlocking chunks.
2673
+ **/
2674
+ NoUnlockChunk: GenericPalletError<Rv>;
2675
+
2676
+ /**
2677
+ * Attempting to target a stash that still has funds.
2678
+ **/
2679
+ FundedTarget: GenericPalletError<Rv>;
2680
+
2681
+ /**
2682
+ * Invalid era to reward.
2683
+ **/
2684
+ InvalidEraToReward: GenericPalletError<Rv>;
2685
+
2686
+ /**
2687
+ * Invalid number of nominations.
2688
+ **/
2689
+ InvalidNumberOfNominations: GenericPalletError<Rv>;
2690
+
2691
+ /**
2692
+ * Rewards for this era have already been claimed for this validator.
2693
+ **/
2694
+ AlreadyClaimed: GenericPalletError<Rv>;
2695
+
2696
+ /**
2697
+ * No nominators exist on this page.
2698
+ **/
2699
+ InvalidPage: GenericPalletError<Rv>;
2700
+
2701
+ /**
2702
+ * Incorrect previous history depth input provided.
2703
+ **/
2704
+ IncorrectHistoryDepth: GenericPalletError<Rv>;
2705
+
2706
+ /**
2707
+ * Internal state has become somehow corrupted and the operation cannot continue.
2708
+ **/
2709
+ BadState: GenericPalletError<Rv>;
2710
+
2711
+ /**
2712
+ * Too many nomination targets supplied.
2713
+ **/
2714
+ TooManyTargets: GenericPalletError<Rv>;
2715
+
2716
+ /**
2717
+ * A nomination target was supplied that was blocked or otherwise not a validator.
2718
+ **/
2719
+ BadTarget: GenericPalletError<Rv>;
2720
+
2721
+ /**
2722
+ * The user has enough bond and thus cannot be chilled forcefully by an external person.
2723
+ **/
2724
+ CannotChillOther: GenericPalletError<Rv>;
2725
+
2726
+ /**
2727
+ * There are too many nominators in the system. Governance needs to adjust the staking
2728
+ * settings to keep things safe for the runtime.
2729
+ **/
2730
+ TooManyNominators: GenericPalletError<Rv>;
2731
+
2732
+ /**
2733
+ * There are too many validator candidates in the system. Governance needs to adjust the
2734
+ * staking settings to keep things safe for the runtime.
2735
+ **/
2736
+ TooManyValidators: GenericPalletError<Rv>;
2737
+
2738
+ /**
2739
+ * Commission is too low. Must be at least `MinCommission`.
2740
+ **/
2741
+ CommissionTooLow: GenericPalletError<Rv>;
2742
+
2743
+ /**
2744
+ * Some bound is not met.
2745
+ **/
2746
+ BoundNotMet: GenericPalletError<Rv>;
2747
+
2748
+ /**
2749
+ * Used when attempting to use deprecated controller account logic.
2750
+ **/
2751
+ ControllerDeprecated: GenericPalletError<Rv>;
2752
+
2753
+ /**
2754
+ * Cannot reset a ledger.
2755
+ **/
2756
+ CannotRestoreLedger: GenericPalletError<Rv>;
2757
+
2758
+ /**
2759
+ * Provided reward destination is not allowed.
2760
+ **/
2761
+ RewardDestinationRestricted: GenericPalletError<Rv>;
2762
+
2763
+ /**
2764
+ * Not enough funds available to withdraw.
2765
+ **/
2766
+ NotEnoughFunds: GenericPalletError<Rv>;
2767
+
2768
+ /**
2769
+ * Operation not allowed for virtual stakers.
2770
+ **/
2771
+ VirtualStakerNotAllowed: GenericPalletError<Rv>;
2772
+
2773
+ /**
2774
+ * Stash could not be reaped as other pallet might depend on it.
2775
+ **/
2776
+ CannotReapStash: GenericPalletError<Rv>;
2777
+
2778
+ /**
2779
+ * The stake of this account is already migrated to `Fungible` holds.
2780
+ **/
2781
+ AlreadyMigrated: GenericPalletError<Rv>;
2782
+
2783
+ /**
2784
+ * Era not yet started.
2785
+ **/
2786
+ EraNotStarted: GenericPalletError<Rv>;
2787
+
2788
+ /**
2789
+ * Account is restricted from participation in staking. This may happen if the account is
2790
+ * staking in another way already, such as via pool.
2791
+ **/
2792
+ Restricted: GenericPalletError<Rv>;
2793
+
2794
+ /**
2795
+ * Unapplied slashes in the recently concluded era is blocking this operation.
2796
+ * See `Call::apply_slash` to apply them.
2797
+ **/
2798
+ UnappliedSlashesInPreviousEra: GenericPalletError<Rv>;
2799
+
2800
+ /**
2801
+ * The era is not eligible for pruning.
2802
+ **/
2803
+ EraNotPrunable: GenericPalletError<Rv>;
2804
+
2805
+ /**
2806
+ * The slash has been cancelled and cannot be applied.
2807
+ **/
2808
+ CancelledSlash: GenericPalletError<Rv>;
2809
+
2810
+ /**
2811
+ * Generic pallet error
2812
+ **/
2813
+ [error: string]: GenericPalletError<Rv>;
2814
+ };
2815
+ /**
2816
+ * Pallet `AhOps`'s errors
2817
+ **/
2818
+ ahOps: {
2819
+ /**
2820
+ * Either no lease deposit or already unreserved.
2821
+ **/
2822
+ NoLeaseReserve: GenericPalletError<Rv>;
2823
+
2824
+ /**
2825
+ * Either no crowdloan contribution or already withdrawn.
2826
+ **/
2827
+ NoCrowdloanContribution: GenericPalletError<Rv>;
2828
+
2829
+ /**
2830
+ * Either no crowdloan reserve or already unreserved.
2831
+ **/
2832
+ NoCrowdloanReserve: GenericPalletError<Rv>;
2833
+
2834
+ /**
2835
+ * Failed to withdraw crowdloan contribution.
2836
+ **/
2837
+ FailedToWithdrawCrowdloanContribution: GenericPalletError<Rv>;
2838
+
2839
+ /**
2840
+ * Block number is not yet reached.
2841
+ **/
2842
+ NotYet: GenericPalletError<Rv>;
2843
+
2844
+ /**
2845
+ * Not all contributions are withdrawn.
2846
+ **/
2847
+ ContributionsRemaining: GenericPalletError<Rv>;
2848
+
2849
+ /**
2850
+ * The account is not a derived account.
2851
+ **/
2852
+ WrongDerivedTranslation: GenericPalletError<Rv>;
2853
+
2854
+ /**
2855
+ * Account cannot be migrated since it is not a sovereign parachain account.
2856
+ **/
2857
+ NotSovereign: GenericPalletError<Rv>;
2858
+
2859
+ /**
2860
+ * Internal error, please bug report.
2861
+ **/
2862
+ InternalError: GenericPalletError<Rv>;
2863
+
2864
+ /**
2865
+ * The Asset Hub migration is not completed.
2866
+ **/
2867
+ MigrationNotCompleted: GenericPalletError<Rv>;
2868
+
2869
+ /**
2870
+ * The balance is zero.
2871
+ **/
2872
+ ZeroBalance: GenericPalletError<Rv>;
2873
+
2874
+ /**
2875
+ * Generic pallet error
2876
+ **/
2877
+ [error: string]: GenericPalletError<Rv>;
2878
+ };
2879
+ /**
2880
+ * Pallet `AhMigrator`'s errors
2881
+ **/
2882
+ ahMigrator: {
2883
+ /**
2884
+ * Failed to unreserve deposit.
2885
+ **/
2886
+ FailedToUnreserveDeposit: GenericPalletError<Rv>;
2887
+
2888
+ /**
2889
+ * Failed to process an account data from RC.
2890
+ **/
2891
+ FailedToProcessAccount: GenericPalletError<Rv>;
2892
+
2893
+ /**
2894
+ * Some item could not be inserted because it already exists.
2895
+ **/
2896
+ InsertConflict: GenericPalletError<Rv>;
2897
+
2898
+ /**
2899
+ * Failed to convert RC type to AH type.
2900
+ **/
2901
+ FailedToConvertType: GenericPalletError<Rv>;
2902
+
2903
+ /**
2904
+ * Failed to fetch preimage.
2905
+ **/
2906
+ PreimageNotFound: GenericPalletError<Rv>;
2907
+
2908
+ /**
2909
+ * Failed to convert RC call to AH call.
2910
+ **/
2911
+ FailedToConvertCall: GenericPalletError<Rv>;
2912
+
2913
+ /**
2914
+ * Failed to bound a call.
2915
+ **/
2916
+ FailedToBoundCall: GenericPalletError<Rv>;
2917
+
2918
+ /**
2919
+ * Failed to send XCM message.
2920
+ **/
2921
+ XcmError: GenericPalletError<Rv>;
2922
+
2923
+ /**
2924
+ * Failed to integrate a vesting schedule.
2925
+ **/
2926
+ FailedToIntegrateVestingSchedule: GenericPalletError<Rv>;
2927
+
2928
+ /**
2929
+ * Checking account overflow or underflow.
2930
+ **/
2931
+ FailedToCalculateCheckingAccount: GenericPalletError<Rv>;
2932
+
2933
+ /**
2934
+ * Vector did not fit into its compile-time bound.
2935
+ **/
2936
+ FailedToBoundVector: GenericPalletError<Rv>;
2937
+
2938
+ /**
2939
+ * The DMP queue priority is already set to the same value.
2940
+ **/
2941
+ DmpQueuePriorityAlreadySet: GenericPalletError<Rv>;
2942
+
2943
+ /**
2944
+ * Invalid parameter.
2945
+ **/
2946
+ InvalidParameter: GenericPalletError<Rv>;
2947
+
2948
+ /**
2949
+ * Preimage missing.
2950
+ **/
2951
+ PreimageMissing: GenericPalletError<Rv>;
2952
+
2953
+ /**
2954
+ * Preimage too big.
2955
+ **/
2956
+ PreimageTooBig: GenericPalletError<Rv>;
2957
+
2958
+ /**
2959
+ * Preimage chunk missing.
2960
+ **/
2961
+ PreimageChunkMissing: GenericPalletError<Rv>;
2962
+
2963
+ /**
2964
+ * Preimage status invalid.
2965
+ **/
2966
+ PreimageStatusInvalid: GenericPalletError<Rv>;
2967
+
2968
+ /**
2969
+ * The XCM version is invalid.
2970
+ **/
2971
+ BadXcmVersion: GenericPalletError<Rv>;
2972
+
2973
+ /**
2974
+ * The origin is invalid.
2975
+ **/
2976
+ InvalidOrigin: GenericPalletError<Rv>;
1703
2977
 
1704
2978
  /**
1705
2979
  * Generic pallet error