@dedot/chaintypes 0.96.0 → 0.98.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.
@@ -115,6 +115,103 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
115
115
  **/
116
116
  [error: string]: GenericPalletError<Rv>;
117
117
  };
118
+ /**
119
+ * Pallet `Preimage`'s errors
120
+ **/
121
+ preimage: {
122
+ /**
123
+ * Preimage is too large to store on-chain.
124
+ **/
125
+ TooBig: GenericPalletError<Rv>;
126
+
127
+ /**
128
+ * Preimage has already been noted on-chain.
129
+ **/
130
+ AlreadyNoted: GenericPalletError<Rv>;
131
+
132
+ /**
133
+ * The user is not authorized to perform this action.
134
+ **/
135
+ NotAuthorized: GenericPalletError<Rv>;
136
+
137
+ /**
138
+ * The preimage cannot be removed since it has not yet been noted.
139
+ **/
140
+ NotNoted: GenericPalletError<Rv>;
141
+
142
+ /**
143
+ * A preimage may not be removed when there are outstanding requests.
144
+ **/
145
+ Requested: GenericPalletError<Rv>;
146
+
147
+ /**
148
+ * The preimage request cannot be removed since no outstanding requests exist.
149
+ **/
150
+ NotRequested: GenericPalletError<Rv>;
151
+
152
+ /**
153
+ * More than `MAX_HASH_UPGRADE_BULK_COUNT` hashes were requested to be upgraded at once.
154
+ **/
155
+ TooMany: GenericPalletError<Rv>;
156
+
157
+ /**
158
+ * Too few hashes were requested to be upgraded (i.e. zero).
159
+ **/
160
+ TooFew: GenericPalletError<Rv>;
161
+
162
+ /**
163
+ * Generic pallet error
164
+ **/
165
+ [error: string]: GenericPalletError<Rv>;
166
+ };
167
+ /**
168
+ * Pallet `Scheduler`'s errors
169
+ **/
170
+ scheduler: {
171
+ /**
172
+ * Failed to schedule a call
173
+ **/
174
+ FailedToSchedule: GenericPalletError<Rv>;
175
+
176
+ /**
177
+ * Cannot find the scheduled call.
178
+ **/
179
+ NotFound: GenericPalletError<Rv>;
180
+
181
+ /**
182
+ * Given target block number is in the past.
183
+ **/
184
+ TargetBlockNumberInPast: GenericPalletError<Rv>;
185
+
186
+ /**
187
+ * Reschedule failed because it does not change scheduled time.
188
+ **/
189
+ RescheduleNoChange: GenericPalletError<Rv>;
190
+
191
+ /**
192
+ * Attempt to use a non-named function on a named task.
193
+ **/
194
+ Named: GenericPalletError<Rv>;
195
+
196
+ /**
197
+ * Generic pallet error
198
+ **/
199
+ [error: string]: GenericPalletError<Rv>;
200
+ };
201
+ /**
202
+ * Pallet `Sudo`'s errors
203
+ **/
204
+ sudo: {
205
+ /**
206
+ * Sender must be the Sudo account.
207
+ **/
208
+ RequireSudo: GenericPalletError<Rv>;
209
+
210
+ /**
211
+ * Generic pallet error
212
+ **/
213
+ [error: string]: GenericPalletError<Rv>;
214
+ };
118
215
  /**
119
216
  * Pallet `Balances`'s errors
120
217
  **/
@@ -184,6 +281,41 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
184
281
  **/
185
282
  [error: string]: GenericPalletError<Rv>;
186
283
  };
284
+ /**
285
+ * Pallet `Vesting`'s errors
286
+ **/
287
+ vesting: {
288
+ /**
289
+ * The account given is not vesting.
290
+ **/
291
+ NotVesting: GenericPalletError<Rv>;
292
+
293
+ /**
294
+ * The account already has `MaxVestingSchedules` count of schedules and thus
295
+ * cannot add another one. Consider merging existing schedules in order to add another.
296
+ **/
297
+ AtMaxVestingSchedules: GenericPalletError<Rv>;
298
+
299
+ /**
300
+ * Amount being transferred is too low to create a vesting schedule.
301
+ **/
302
+ AmountLow: GenericPalletError<Rv>;
303
+
304
+ /**
305
+ * An index was out of bounds of the vesting schedules.
306
+ **/
307
+ ScheduleIndexOutOfBounds: GenericPalletError<Rv>;
308
+
309
+ /**
310
+ * Failed to create a new schedule because some parameter was invalid.
311
+ **/
312
+ InvalidScheduleParams: GenericPalletError<Rv>;
313
+
314
+ /**
315
+ * Generic pallet error
316
+ **/
317
+ [error: string]: GenericPalletError<Rv>;
318
+ };
187
319
  /**
188
320
  * Pallet `CollatorSelection`'s errors
189
321
  **/
@@ -741,6 +873,40 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
741
873
  **/
742
874
  [error: string]: GenericPalletError<Rv>;
743
875
  };
876
+ /**
877
+ * Pallet `Indices`'s errors
878
+ **/
879
+ indices: {
880
+ /**
881
+ * The index was not already assigned.
882
+ **/
883
+ NotAssigned: GenericPalletError<Rv>;
884
+
885
+ /**
886
+ * The index is assigned to another account.
887
+ **/
888
+ NotOwner: GenericPalletError<Rv>;
889
+
890
+ /**
891
+ * The index was not available.
892
+ **/
893
+ InUse: GenericPalletError<Rv>;
894
+
895
+ /**
896
+ * The source and destination accounts are identical.
897
+ **/
898
+ NotTransfer: GenericPalletError<Rv>;
899
+
900
+ /**
901
+ * The index is permanent and may not be freed/changed.
902
+ **/
903
+ Permanent: GenericPalletError<Rv>;
904
+
905
+ /**
906
+ * Generic pallet error
907
+ **/
908
+ [error: string]: GenericPalletError<Rv>;
909
+ };
744
910
  /**
745
911
  * Pallet `Assets`'s errors
746
912
  **/
@@ -2032,28 +2198,1012 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
2032
2198
  [error: string]: GenericPalletError<Rv>;
2033
2199
  };
2034
2200
  /**
2035
- * Pallet `AssetConversionMigration`'s errors
2201
+ * Pallet `Staking`'s errors
2036
2202
  **/
2037
- assetConversionMigration: {
2203
+ staking: {
2038
2204
  /**
2039
- * Provided asset pair is not supported for pool.
2205
+ * Not a controller account.
2040
2206
  **/
2041
- InvalidAssetPair: GenericPalletError<Rv>;
2207
+ NotController: GenericPalletError<Rv>;
2042
2208
 
2043
2209
  /**
2044
- * The pool doesn't exist.
2210
+ * Not a stash account.
2211
+ **/
2212
+ NotStash: GenericPalletError<Rv>;
2213
+
2214
+ /**
2215
+ * Stash is already bonded.
2216
+ **/
2217
+ AlreadyBonded: GenericPalletError<Rv>;
2218
+
2219
+ /**
2220
+ * Controller is already paired.
2221
+ **/
2222
+ AlreadyPaired: GenericPalletError<Rv>;
2223
+
2224
+ /**
2225
+ * Targets cannot be empty.
2226
+ **/
2227
+ EmptyTargets: GenericPalletError<Rv>;
2228
+
2229
+ /**
2230
+ * Duplicate index.
2231
+ **/
2232
+ DuplicateIndex: GenericPalletError<Rv>;
2233
+
2234
+ /**
2235
+ * Slash record not found.
2236
+ **/
2237
+ InvalidSlashRecord: GenericPalletError<Rv>;
2238
+
2239
+ /**
2240
+ * Cannot have a validator or nominator role, with value less than the minimum defined by
2241
+ * governance (see `MinValidatorBond` and `MinNominatorBond`). If unbonding is the
2242
+ * intention, `chill` first to remove one's role as validator/nominator.
2243
+ **/
2244
+ InsufficientBond: GenericPalletError<Rv>;
2245
+
2246
+ /**
2247
+ * Can not schedule more unlock chunks.
2248
+ **/
2249
+ NoMoreChunks: GenericPalletError<Rv>;
2250
+
2251
+ /**
2252
+ * Can not rebond without unlocking chunks.
2253
+ **/
2254
+ NoUnlockChunk: GenericPalletError<Rv>;
2255
+
2256
+ /**
2257
+ * Attempting to target a stash that still has funds.
2258
+ **/
2259
+ FundedTarget: GenericPalletError<Rv>;
2260
+
2261
+ /**
2262
+ * Invalid era to reward.
2263
+ **/
2264
+ InvalidEraToReward: GenericPalletError<Rv>;
2265
+
2266
+ /**
2267
+ * Invalid number of nominations.
2268
+ **/
2269
+ InvalidNumberOfNominations: GenericPalletError<Rv>;
2270
+
2271
+ /**
2272
+ * Rewards for this era have already been claimed for this validator.
2273
+ **/
2274
+ AlreadyClaimed: GenericPalletError<Rv>;
2275
+
2276
+ /**
2277
+ * No nominators exist on this page.
2278
+ **/
2279
+ InvalidPage: GenericPalletError<Rv>;
2280
+
2281
+ /**
2282
+ * Incorrect previous history depth input provided.
2283
+ **/
2284
+ IncorrectHistoryDepth: GenericPalletError<Rv>;
2285
+
2286
+ /**
2287
+ * Internal state has become somehow corrupted and the operation cannot continue.
2288
+ **/
2289
+ BadState: GenericPalletError<Rv>;
2290
+
2291
+ /**
2292
+ * Too many nomination targets supplied.
2293
+ **/
2294
+ TooManyTargets: GenericPalletError<Rv>;
2295
+
2296
+ /**
2297
+ * A nomination target was supplied that was blocked or otherwise not a validator.
2298
+ **/
2299
+ BadTarget: GenericPalletError<Rv>;
2300
+
2301
+ /**
2302
+ * The user has enough bond and thus cannot be chilled forcefully by an external person.
2303
+ **/
2304
+ CannotChillOther: GenericPalletError<Rv>;
2305
+
2306
+ /**
2307
+ * There are too many nominators in the system. Governance needs to adjust the staking
2308
+ * settings to keep things safe for the runtime.
2309
+ **/
2310
+ TooManyNominators: GenericPalletError<Rv>;
2311
+
2312
+ /**
2313
+ * There are too many validator candidates in the system. Governance needs to adjust the
2314
+ * staking settings to keep things safe for the runtime.
2315
+ **/
2316
+ TooManyValidators: GenericPalletError<Rv>;
2317
+
2318
+ /**
2319
+ * Commission is too low. Must be at least `MinCommission`.
2320
+ **/
2321
+ CommissionTooLow: GenericPalletError<Rv>;
2322
+
2323
+ /**
2324
+ * Some bound is not met.
2325
+ **/
2326
+ BoundNotMet: GenericPalletError<Rv>;
2327
+
2328
+ /**
2329
+ * Used when attempting to use deprecated controller account logic.
2330
+ **/
2331
+ ControllerDeprecated: GenericPalletError<Rv>;
2332
+
2333
+ /**
2334
+ * Cannot reset a ledger.
2335
+ **/
2336
+ CannotRestoreLedger: GenericPalletError<Rv>;
2337
+
2338
+ /**
2339
+ * Provided reward destination is not allowed.
2340
+ **/
2341
+ RewardDestinationRestricted: GenericPalletError<Rv>;
2342
+
2343
+ /**
2344
+ * Not enough funds available to withdraw.
2345
+ **/
2346
+ NotEnoughFunds: GenericPalletError<Rv>;
2347
+
2348
+ /**
2349
+ * Operation not allowed for virtual stakers.
2350
+ **/
2351
+ VirtualStakerNotAllowed: GenericPalletError<Rv>;
2352
+
2353
+ /**
2354
+ * Stash could not be reaped as other pallet might depend on it.
2355
+ **/
2356
+ CannotReapStash: GenericPalletError<Rv>;
2357
+
2358
+ /**
2359
+ * The stake of this account is already migrated to `Fungible` holds.
2360
+ **/
2361
+ AlreadyMigrated: GenericPalletError<Rv>;
2362
+
2363
+ /**
2364
+ * Era not yet started.
2365
+ **/
2366
+ EraNotStarted: GenericPalletError<Rv>;
2367
+
2368
+ /**
2369
+ * Account is restricted from participation in staking. This may happen if the account is
2370
+ * staking in another way already, such as via pool.
2371
+ **/
2372
+ Restricted: GenericPalletError<Rv>;
2373
+
2374
+ /**
2375
+ * Generic pallet error
2376
+ **/
2377
+ [error: string]: GenericPalletError<Rv>;
2378
+ };
2379
+ /**
2380
+ * Pallet `NominationPools`'s errors
2381
+ **/
2382
+ nominationPools: {
2383
+ /**
2384
+ * A (bonded) pool id does not exist.
2045
2385
  **/
2046
2386
  PoolNotFound: GenericPalletError<Rv>;
2047
2387
 
2048
2388
  /**
2049
- * Pool's balance cannot be zero.
2389
+ * An account is not a member.
2050
2390
  **/
2051
- ZeroBalance: GenericPalletError<Rv>;
2391
+ PoolMemberNotFound: GenericPalletError<Rv>;
2052
2392
 
2053
2393
  /**
2054
- * Indicates a partial transfer of balance to the new account during a migration.
2394
+ * A reward pool does not exist. In all cases this is a system logic error.
2055
2395
  **/
2056
- PartialTransfer: GenericPalletError<Rv>;
2396
+ RewardPoolNotFound: GenericPalletError<Rv>;
2397
+
2398
+ /**
2399
+ * A sub pool does not exist.
2400
+ **/
2401
+ SubPoolsNotFound: GenericPalletError<Rv>;
2402
+
2403
+ /**
2404
+ * An account is already delegating in another pool. An account may only belong to one
2405
+ * pool at a time.
2406
+ **/
2407
+ AccountBelongsToOtherPool: GenericPalletError<Rv>;
2408
+
2409
+ /**
2410
+ * The member is fully unbonded (and thus cannot access the bonded and reward pool
2411
+ * anymore to, for example, collect rewards).
2412
+ **/
2413
+ FullyUnbonding: GenericPalletError<Rv>;
2414
+
2415
+ /**
2416
+ * The member cannot unbond further chunks due to reaching the limit.
2417
+ **/
2418
+ MaxUnbondingLimit: GenericPalletError<Rv>;
2419
+
2420
+ /**
2421
+ * None of the funds can be withdrawn yet because the bonding duration has not passed.
2422
+ **/
2423
+ CannotWithdrawAny: GenericPalletError<Rv>;
2424
+
2425
+ /**
2426
+ * The amount does not meet the minimum bond to either join or create a pool.
2427
+ *
2428
+ * The depositor can never unbond to a value less than `Pallet::depositor_min_bond`. The
2429
+ * caller does not have nominating permissions for the pool. Members can never unbond to a
2430
+ * value below `MinJoinBond`.
2431
+ **/
2432
+ MinimumBondNotMet: GenericPalletError<Rv>;
2433
+
2434
+ /**
2435
+ * The transaction could not be executed due to overflow risk for the pool.
2436
+ **/
2437
+ OverflowRisk: GenericPalletError<Rv>;
2438
+
2439
+ /**
2440
+ * A pool must be in [`PoolState::Destroying`] in order for the depositor to unbond or for
2441
+ * other members to be permissionlessly unbonded.
2442
+ **/
2443
+ NotDestroying: GenericPalletError<Rv>;
2444
+
2445
+ /**
2446
+ * The caller does not have nominating permissions for the pool.
2447
+ **/
2448
+ NotNominator: GenericPalletError<Rv>;
2449
+
2450
+ /**
2451
+ * Either a) the caller cannot make a valid kick or b) the pool is not destroying.
2452
+ **/
2453
+ NotKickerOrDestroying: GenericPalletError<Rv>;
2454
+
2455
+ /**
2456
+ * The pool is not open to join
2457
+ **/
2458
+ NotOpen: GenericPalletError<Rv>;
2459
+
2460
+ /**
2461
+ * The system is maxed out on pools.
2462
+ **/
2463
+ MaxPools: GenericPalletError<Rv>;
2464
+
2465
+ /**
2466
+ * Too many members in the pool or system.
2467
+ **/
2468
+ MaxPoolMembers: GenericPalletError<Rv>;
2469
+
2470
+ /**
2471
+ * The pools state cannot be changed.
2472
+ **/
2473
+ CanNotChangeState: GenericPalletError<Rv>;
2474
+
2475
+ /**
2476
+ * The caller does not have adequate permissions.
2477
+ **/
2478
+ DoesNotHavePermission: GenericPalletError<Rv>;
2479
+
2480
+ /**
2481
+ * Metadata exceeds [`Config::MaxMetadataLen`]
2482
+ **/
2483
+ MetadataExceedsMaxLen: GenericPalletError<Rv>;
2484
+
2485
+ /**
2486
+ * Some error occurred that should never happen. This should be reported to the
2487
+ * maintainers.
2488
+ **/
2489
+ Defensive: GenericPalletError<Rv>;
2490
+
2491
+ /**
2492
+ * Partial unbonding now allowed permissionlessly.
2493
+ **/
2494
+ PartialUnbondNotAllowedPermissionlessly: GenericPalletError<Rv>;
2495
+
2496
+ /**
2497
+ * The pool's max commission cannot be set higher than the existing value.
2498
+ **/
2499
+ MaxCommissionRestricted: GenericPalletError<Rv>;
2500
+
2501
+ /**
2502
+ * The supplied commission exceeds the max allowed commission.
2503
+ **/
2504
+ CommissionExceedsMaximum: GenericPalletError<Rv>;
2505
+
2506
+ /**
2507
+ * The supplied commission exceeds global maximum commission.
2508
+ **/
2509
+ CommissionExceedsGlobalMaximum: GenericPalletError<Rv>;
2510
+
2511
+ /**
2512
+ * Not enough blocks have surpassed since the last commission update.
2513
+ **/
2514
+ CommissionChangeThrottled: GenericPalletError<Rv>;
2515
+
2516
+ /**
2517
+ * The submitted changes to commission change rate are not allowed.
2518
+ **/
2519
+ CommissionChangeRateNotAllowed: GenericPalletError<Rv>;
2520
+
2521
+ /**
2522
+ * There is no pending commission to claim.
2523
+ **/
2524
+ NoPendingCommission: GenericPalletError<Rv>;
2525
+
2526
+ /**
2527
+ * No commission current has been set.
2528
+ **/
2529
+ NoCommissionCurrentSet: GenericPalletError<Rv>;
2530
+
2531
+ /**
2532
+ * Pool id currently in use.
2533
+ **/
2534
+ PoolIdInUse: GenericPalletError<Rv>;
2535
+
2536
+ /**
2537
+ * Pool id provided is not correct/usable.
2538
+ **/
2539
+ InvalidPoolId: GenericPalletError<Rv>;
2540
+
2541
+ /**
2542
+ * Bonding extra is restricted to the exact pending reward amount.
2543
+ **/
2544
+ BondExtraRestricted: GenericPalletError<Rv>;
2545
+
2546
+ /**
2547
+ * No imbalance in the ED deposit for the pool.
2548
+ **/
2549
+ NothingToAdjust: GenericPalletError<Rv>;
2550
+
2551
+ /**
2552
+ * No slash pending that can be applied to the member.
2553
+ **/
2554
+ NothingToSlash: GenericPalletError<Rv>;
2555
+
2556
+ /**
2557
+ * The slash amount is too low to be applied.
2558
+ **/
2559
+ SlashTooLow: GenericPalletError<Rv>;
2560
+
2561
+ /**
2562
+ * The pool or member delegation has already migrated to delegate stake.
2563
+ **/
2564
+ AlreadyMigrated: GenericPalletError<Rv>;
2565
+
2566
+ /**
2567
+ * The pool or member delegation has not migrated yet to delegate stake.
2568
+ **/
2569
+ NotMigrated: GenericPalletError<Rv>;
2570
+
2571
+ /**
2572
+ * This call is not allowed in the current state of the pallet.
2573
+ **/
2574
+ NotSupported: GenericPalletError<Rv>;
2575
+
2576
+ /**
2577
+ * Account is restricted from participation in pools. This may happen if the account is
2578
+ * staking in another way already.
2579
+ **/
2580
+ Restricted: GenericPalletError<Rv>;
2581
+
2582
+ /**
2583
+ * Generic pallet error
2584
+ **/
2585
+ [error: string]: GenericPalletError<Rv>;
2586
+ };
2587
+ /**
2588
+ * Pallet `FastUnstake`'s errors
2589
+ **/
2590
+ fastUnstake: {
2591
+ /**
2592
+ * The provided Controller account was not found.
2593
+ *
2594
+ * This means that the given account is not bonded.
2595
+ **/
2596
+ NotController: GenericPalletError<Rv>;
2597
+
2598
+ /**
2599
+ * The bonded account has already been queued.
2600
+ **/
2601
+ AlreadyQueued: GenericPalletError<Rv>;
2602
+
2603
+ /**
2604
+ * The bonded account has active unlocking chunks.
2605
+ **/
2606
+ NotFullyBonded: GenericPalletError<Rv>;
2607
+
2608
+ /**
2609
+ * The provided un-staker is not in the `Queue`.
2610
+ **/
2611
+ NotQueued: GenericPalletError<Rv>;
2612
+
2613
+ /**
2614
+ * The provided un-staker is already in Head, and cannot deregister.
2615
+ **/
2616
+ AlreadyHead: GenericPalletError<Rv>;
2617
+
2618
+ /**
2619
+ * The call is not allowed at this point because the pallet is not active.
2620
+ **/
2621
+ CallNotAllowed: GenericPalletError<Rv>;
2622
+
2623
+ /**
2624
+ * Generic pallet error
2625
+ **/
2626
+ [error: string]: GenericPalletError<Rv>;
2627
+ };
2628
+ /**
2629
+ * Pallet `VoterList`'s errors
2630
+ **/
2631
+ voterList: {
2632
+ /**
2633
+ * A error in the list interface implementation.
2634
+ **/
2635
+ List: GenericPalletError<Rv>;
2636
+
2637
+ /**
2638
+ * Could not update a node, because the pallet is locked.
2639
+ **/
2640
+ Locked: GenericPalletError<Rv>;
2641
+
2642
+ /**
2643
+ * Generic pallet error
2644
+ **/
2645
+ [error: string]: GenericPalletError<Rv>;
2646
+ };
2647
+ /**
2648
+ * Pallet `DelegatedStaking`'s errors
2649
+ **/
2650
+ delegatedStaking: {
2651
+ /**
2652
+ * The account cannot perform this operation.
2653
+ **/
2654
+ NotAllowed: GenericPalletError<Rv>;
2655
+
2656
+ /**
2657
+ * An existing staker cannot perform this action.
2658
+ **/
2659
+ AlreadyStaking: GenericPalletError<Rv>;
2660
+
2661
+ /**
2662
+ * Reward Destination cannot be same as `Agent` account.
2663
+ **/
2664
+ InvalidRewardDestination: GenericPalletError<Rv>;
2665
+
2666
+ /**
2667
+ * Delegation conditions are not met.
2668
+ *
2669
+ * Possible issues are
2670
+ * 1) Cannot delegate to self,
2671
+ * 2) Cannot delegate to multiple delegates.
2672
+ **/
2673
+ InvalidDelegation: GenericPalletError<Rv>;
2674
+
2675
+ /**
2676
+ * The account does not have enough funds to perform the operation.
2677
+ **/
2678
+ NotEnoughFunds: GenericPalletError<Rv>;
2679
+
2680
+ /**
2681
+ * Not an existing `Agent` account.
2682
+ **/
2683
+ NotAgent: GenericPalletError<Rv>;
2684
+
2685
+ /**
2686
+ * Not a Delegator account.
2687
+ **/
2688
+ NotDelegator: GenericPalletError<Rv>;
2689
+
2690
+ /**
2691
+ * Some corruption in internal state.
2692
+ **/
2693
+ BadState: GenericPalletError<Rv>;
2694
+
2695
+ /**
2696
+ * Unapplied pending slash restricts operation on `Agent`.
2697
+ **/
2698
+ UnappliedSlash: GenericPalletError<Rv>;
2699
+
2700
+ /**
2701
+ * `Agent` has no pending slash to be applied.
2702
+ **/
2703
+ NothingToSlash: GenericPalletError<Rv>;
2704
+
2705
+ /**
2706
+ * Failed to withdraw amount from Core Staking.
2707
+ **/
2708
+ WithdrawFailed: GenericPalletError<Rv>;
2709
+
2710
+ /**
2711
+ * Operation not supported by this pallet.
2712
+ **/
2713
+ NotSupported: GenericPalletError<Rv>;
2714
+
2715
+ /**
2716
+ * Generic pallet error
2717
+ **/
2718
+ [error: string]: GenericPalletError<Rv>;
2719
+ };
2720
+ /**
2721
+ * Pallet `StakingNextRcClient`'s errors
2722
+ **/
2723
+ stakingNextRcClient: {
2724
+ /**
2725
+ * The session report was not valid, due to a bad end index.
2726
+ **/
2727
+ SessionIndexNotValid: GenericPalletError<Rv>;
2728
+
2729
+ /**
2730
+ * Generic pallet error
2731
+ **/
2732
+ [error: string]: GenericPalletError<Rv>;
2733
+ };
2734
+ /**
2735
+ * Pallet `MultiBlock`'s errors
2736
+ **/
2737
+ multiBlock: {
2738
+ /**
2739
+ * Triggering the `Fallback` failed.
2740
+ **/
2741
+ Fallback: GenericPalletError<Rv>;
2742
+
2743
+ /**
2744
+ * Unexpected phase
2745
+ **/
2746
+ UnexpectedPhase: GenericPalletError<Rv>;
2747
+
2748
+ /**
2749
+ * Snapshot was unavailable.
2750
+ **/
2751
+ Snapshot: GenericPalletError<Rv>;
2752
+
2753
+ /**
2754
+ * Generic pallet error
2755
+ **/
2756
+ [error: string]: GenericPalletError<Rv>;
2757
+ };
2758
+ /**
2759
+ * Pallet `MultiBlockSigned`'s errors
2760
+ **/
2761
+ multiBlockSigned: {
2762
+ /**
2763
+ * The phase is not signed.
2764
+ **/
2765
+ PhaseNotSigned: GenericPalletError<Rv>;
2766
+
2767
+ /**
2768
+ * The submission is a duplicate.
2769
+ **/
2770
+ Duplicate: GenericPalletError<Rv>;
2771
+
2772
+ /**
2773
+ * The queue is full.
2774
+ **/
2775
+ QueueFull: GenericPalletError<Rv>;
2776
+
2777
+ /**
2778
+ * The page index is out of bounds.
2779
+ **/
2780
+ BadPageIndex: GenericPalletError<Rv>;
2781
+
2782
+ /**
2783
+ * The account is not registered.
2784
+ **/
2785
+ NotRegistered: GenericPalletError<Rv>;
2786
+
2787
+ /**
2788
+ * No submission found.
2789
+ **/
2790
+ NoSubmission: GenericPalletError<Rv>;
2791
+
2792
+ /**
2793
+ * Round is not yet over.
2794
+ **/
2795
+ RoundNotOver: GenericPalletError<Rv>;
2796
+
2797
+ /**
2798
+ * Bad witness data provided.
2799
+ **/
2800
+ BadWitnessData: GenericPalletError<Rv>;
2801
+
2802
+ /**
2803
+ * Generic pallet error
2804
+ **/
2805
+ [error: string]: GenericPalletError<Rv>;
2806
+ };
2807
+ /**
2808
+ * Pallet `ConvictionVoting`'s errors
2809
+ **/
2810
+ convictionVoting: {
2811
+ /**
2812
+ * Poll is not ongoing.
2813
+ **/
2814
+ NotOngoing: GenericPalletError<Rv>;
2815
+
2816
+ /**
2817
+ * The given account did not vote on the poll.
2818
+ **/
2819
+ NotVoter: GenericPalletError<Rv>;
2820
+
2821
+ /**
2822
+ * The actor has no permission to conduct the action.
2823
+ **/
2824
+ NoPermission: GenericPalletError<Rv>;
2825
+
2826
+ /**
2827
+ * The actor has no permission to conduct the action right now but will do in the future.
2828
+ **/
2829
+ NoPermissionYet: GenericPalletError<Rv>;
2830
+
2831
+ /**
2832
+ * The account is already delegating.
2833
+ **/
2834
+ AlreadyDelegating: GenericPalletError<Rv>;
2835
+
2836
+ /**
2837
+ * The account currently has votes attached to it and the operation cannot succeed until
2838
+ * these are removed through `remove_vote`.
2839
+ **/
2840
+ AlreadyVoting: GenericPalletError<Rv>;
2841
+
2842
+ /**
2843
+ * Too high a balance was provided that the account cannot afford.
2844
+ **/
2845
+ InsufficientFunds: GenericPalletError<Rv>;
2846
+
2847
+ /**
2848
+ * The account is not currently delegating.
2849
+ **/
2850
+ NotDelegating: GenericPalletError<Rv>;
2851
+
2852
+ /**
2853
+ * Delegation to oneself makes no sense.
2854
+ **/
2855
+ Nonsense: GenericPalletError<Rv>;
2856
+
2857
+ /**
2858
+ * Maximum number of votes reached.
2859
+ **/
2860
+ MaxVotesReached: GenericPalletError<Rv>;
2861
+
2862
+ /**
2863
+ * The class must be supplied since it is not easily determinable from the state.
2864
+ **/
2865
+ ClassNeeded: GenericPalletError<Rv>;
2866
+
2867
+ /**
2868
+ * The class ID supplied is invalid.
2869
+ **/
2870
+ BadClass: GenericPalletError<Rv>;
2871
+
2872
+ /**
2873
+ * Generic pallet error
2874
+ **/
2875
+ [error: string]: GenericPalletError<Rv>;
2876
+ };
2877
+ /**
2878
+ * Pallet `Referenda`'s errors
2879
+ **/
2880
+ referenda: {
2881
+ /**
2882
+ * Referendum is not ongoing.
2883
+ **/
2884
+ NotOngoing: GenericPalletError<Rv>;
2885
+
2886
+ /**
2887
+ * Referendum's decision deposit is already paid.
2888
+ **/
2889
+ HasDeposit: GenericPalletError<Rv>;
2890
+
2891
+ /**
2892
+ * The track identifier given was invalid.
2893
+ **/
2894
+ BadTrack: GenericPalletError<Rv>;
2895
+
2896
+ /**
2897
+ * There are already a full complement of referenda in progress for this track.
2898
+ **/
2899
+ Full: GenericPalletError<Rv>;
2900
+
2901
+ /**
2902
+ * The queue of the track is empty.
2903
+ **/
2904
+ QueueEmpty: GenericPalletError<Rv>;
2905
+
2906
+ /**
2907
+ * The referendum index provided is invalid in this context.
2908
+ **/
2909
+ BadReferendum: GenericPalletError<Rv>;
2910
+
2911
+ /**
2912
+ * There was nothing to do in the advancement.
2913
+ **/
2914
+ NothingToDo: GenericPalletError<Rv>;
2915
+
2916
+ /**
2917
+ * No track exists for the proposal origin.
2918
+ **/
2919
+ NoTrack: GenericPalletError<Rv>;
2920
+
2921
+ /**
2922
+ * Any deposit cannot be refunded until after the decision is over.
2923
+ **/
2924
+ Unfinished: GenericPalletError<Rv>;
2925
+
2926
+ /**
2927
+ * The deposit refunder is not the depositor.
2928
+ **/
2929
+ NoPermission: GenericPalletError<Rv>;
2930
+
2931
+ /**
2932
+ * The deposit cannot be refunded since none was made.
2933
+ **/
2934
+ NoDeposit: GenericPalletError<Rv>;
2935
+
2936
+ /**
2937
+ * The referendum status is invalid for this operation.
2938
+ **/
2939
+ BadStatus: GenericPalletError<Rv>;
2940
+
2941
+ /**
2942
+ * The preimage does not exist.
2943
+ **/
2944
+ PreimageNotExist: GenericPalletError<Rv>;
2945
+
2946
+ /**
2947
+ * The preimage is stored with a different length than the one provided.
2948
+ **/
2949
+ PreimageStoredWithDifferentLength: GenericPalletError<Rv>;
2950
+
2951
+ /**
2952
+ * Generic pallet error
2953
+ **/
2954
+ [error: string]: GenericPalletError<Rv>;
2955
+ };
2956
+ /**
2957
+ * Pallet `Whitelist`'s errors
2958
+ **/
2959
+ whitelist: {
2960
+ /**
2961
+ * The preimage of the call hash could not be loaded.
2962
+ **/
2963
+ UnavailablePreImage: GenericPalletError<Rv>;
2964
+
2965
+ /**
2966
+ * The call could not be decoded.
2967
+ **/
2968
+ UndecodableCall: GenericPalletError<Rv>;
2969
+
2970
+ /**
2971
+ * The weight of the decoded call was higher than the witness.
2972
+ **/
2973
+ InvalidCallWeightWitness: GenericPalletError<Rv>;
2974
+
2975
+ /**
2976
+ * The call was not whitelisted.
2977
+ **/
2978
+ CallIsNotWhitelisted: GenericPalletError<Rv>;
2979
+
2980
+ /**
2981
+ * The call was already whitelisted; No-Op.
2982
+ **/
2983
+ CallAlreadyWhitelisted: GenericPalletError<Rv>;
2984
+
2985
+ /**
2986
+ * Generic pallet error
2987
+ **/
2988
+ [error: string]: GenericPalletError<Rv>;
2989
+ };
2990
+ /**
2991
+ * Pallet `Treasury`'s errors
2992
+ **/
2993
+ treasury: {
2994
+ /**
2995
+ * No proposal, bounty or spend at that index.
2996
+ **/
2997
+ InvalidIndex: GenericPalletError<Rv>;
2998
+
2999
+ /**
3000
+ * Too many approvals in the queue.
3001
+ **/
3002
+ TooManyApprovals: GenericPalletError<Rv>;
3003
+
3004
+ /**
3005
+ * The spend origin is valid but the amount it is allowed to spend is lower than the
3006
+ * amount to be spent.
3007
+ **/
3008
+ InsufficientPermission: GenericPalletError<Rv>;
3009
+
3010
+ /**
3011
+ * Proposal has not been approved.
3012
+ **/
3013
+ ProposalNotApproved: GenericPalletError<Rv>;
3014
+
3015
+ /**
3016
+ * The balance of the asset kind is not convertible to the balance of the native asset.
3017
+ **/
3018
+ FailedToConvertBalance: GenericPalletError<Rv>;
3019
+
3020
+ /**
3021
+ * The spend has expired and cannot be claimed.
3022
+ **/
3023
+ SpendExpired: GenericPalletError<Rv>;
3024
+
3025
+ /**
3026
+ * The spend is not yet eligible for payout.
3027
+ **/
3028
+ EarlyPayout: GenericPalletError<Rv>;
3029
+
3030
+ /**
3031
+ * The payment has already been attempted.
3032
+ **/
3033
+ AlreadyAttempted: GenericPalletError<Rv>;
3034
+
3035
+ /**
3036
+ * There was some issue with the mechanism of payment.
3037
+ **/
3038
+ PayoutError: GenericPalletError<Rv>;
3039
+
3040
+ /**
3041
+ * The payout was not yet attempted/claimed.
3042
+ **/
3043
+ NotAttempted: GenericPalletError<Rv>;
3044
+
3045
+ /**
3046
+ * The payment has neither failed nor succeeded yet.
3047
+ **/
3048
+ Inconclusive: GenericPalletError<Rv>;
3049
+
3050
+ /**
3051
+ * Generic pallet error
3052
+ **/
3053
+ [error: string]: GenericPalletError<Rv>;
3054
+ };
3055
+ /**
3056
+ * Pallet `AssetRate`'s errors
3057
+ **/
3058
+ assetRate: {
3059
+ /**
3060
+ * The given asset ID is unknown.
3061
+ **/
3062
+ UnknownAssetKind: GenericPalletError<Rv>;
3063
+
3064
+ /**
3065
+ * The given asset ID already has an assigned conversion rate and cannot be re-created.
3066
+ **/
3067
+ AlreadyExists: GenericPalletError<Rv>;
3068
+
3069
+ /**
3070
+ * Overflow ocurred when calculating the inverse rate.
3071
+ **/
3072
+ Overflow: GenericPalletError<Rv>;
3073
+
3074
+ /**
3075
+ * Generic pallet error
3076
+ **/
3077
+ [error: string]: GenericPalletError<Rv>;
3078
+ };
3079
+ /**
3080
+ * Pallet `AssetConversionMigration`'s errors
3081
+ **/
3082
+ assetConversionMigration: {
3083
+ /**
3084
+ * Provided asset pair is not supported for pool.
3085
+ **/
3086
+ InvalidAssetPair: GenericPalletError<Rv>;
3087
+
3088
+ /**
3089
+ * The pool doesn't exist.
3090
+ **/
3091
+ PoolNotFound: GenericPalletError<Rv>;
3092
+
3093
+ /**
3094
+ * Pool's balance cannot be zero.
3095
+ **/
3096
+ ZeroBalance: GenericPalletError<Rv>;
3097
+
3098
+ /**
3099
+ * Indicates a partial transfer of balance to the new account during a migration.
3100
+ **/
3101
+ PartialTransfer: GenericPalletError<Rv>;
3102
+
3103
+ /**
3104
+ * Generic pallet error
3105
+ **/
3106
+ [error: string]: GenericPalletError<Rv>;
3107
+ };
3108
+ /**
3109
+ * Pallet `AhOps`'s errors
3110
+ **/
3111
+ ahOps: {
3112
+ /**
3113
+ * Either no lease deposit or already unreserved.
3114
+ **/
3115
+ NoLeaseReserve: GenericPalletError<Rv>;
3116
+
3117
+ /**
3118
+ * Either no crowdloan contribution or already withdrawn.
3119
+ **/
3120
+ NoCrowdloanContribution: GenericPalletError<Rv>;
3121
+
3122
+ /**
3123
+ * Either no crowdloan reserve or already unreserved.
3124
+ **/
3125
+ NoCrowdloanReserve: GenericPalletError<Rv>;
3126
+
3127
+ /**
3128
+ * Failed to withdraw crowdloan contribution.
3129
+ **/
3130
+ FailedToWithdrawCrowdloanContribution: GenericPalletError<Rv>;
3131
+
3132
+ /**
3133
+ * Block number is not yet reached.
3134
+ **/
3135
+ NotYet: GenericPalletError<Rv>;
3136
+
3137
+ /**
3138
+ * Not all contributions are withdrawn.
3139
+ **/
3140
+ ContributionsRemaining: GenericPalletError<Rv>;
3141
+
3142
+ /**
3143
+ * Generic pallet error
3144
+ **/
3145
+ [error: string]: GenericPalletError<Rv>;
3146
+ };
3147
+ /**
3148
+ * Pallet `AhMigrator`'s errors
3149
+ **/
3150
+ ahMigrator: {
3151
+ /**
3152
+ * The error that should to be replaced by something meaningful.
3153
+ **/
3154
+ Todo: GenericPalletError<Rv>;
3155
+ FailedToUnreserveDeposit: GenericPalletError<Rv>;
3156
+
3157
+ /**
3158
+ * Failed to process an account data from RC.
3159
+ **/
3160
+ FailedToProcessAccount: GenericPalletError<Rv>;
3161
+
3162
+ /**
3163
+ * Some item could not be inserted because it already exists.
3164
+ **/
3165
+ InsertConflict: GenericPalletError<Rv>;
3166
+
3167
+ /**
3168
+ * Failed to convert RC type to AH type.
3169
+ **/
3170
+ FailedToConvertType: GenericPalletError<Rv>;
3171
+
3172
+ /**
3173
+ * Failed to fetch preimage.
3174
+ **/
3175
+ PreimageNotFound: GenericPalletError<Rv>;
3176
+
3177
+ /**
3178
+ * Failed to convert RC call to AH call.
3179
+ **/
3180
+ FailedToConvertCall: GenericPalletError<Rv>;
3181
+
3182
+ /**
3183
+ * Failed to bound a call.
3184
+ **/
3185
+ FailedToBoundCall: GenericPalletError<Rv>;
3186
+
3187
+ /**
3188
+ * Failed to send XCM message.
3189
+ **/
3190
+ XcmError: GenericPalletError<Rv>;
3191
+
3192
+ /**
3193
+ * Failed to integrate a vesting schedule.
3194
+ **/
3195
+ FailedToIntegrateVestingSchedule: GenericPalletError<Rv>;
3196
+
3197
+ /**
3198
+ * Checking account overflow or underflow.
3199
+ **/
3200
+ FailedToCalculateCheckingAccount: GenericPalletError<Rv>;
3201
+
3202
+ /**
3203
+ * Vector did not fit into its compile-time bound.
3204
+ **/
3205
+ FailedToBoundVector: GenericPalletError<Rv>;
3206
+ Unreachable: GenericPalletError<Rv>;
2057
3207
 
2058
3208
  /**
2059
3209
  * Generic pallet error