@dedot/chaintypes 0.110.0 → 0.112.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.
@@ -0,0 +1,2013 @@
1
+ // Generated by dedot cli
2
+
3
+ import type { GenericChainErrors, GenericPalletError, RpcVersion } from 'dedot/types';
4
+
5
+ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<Rv> {
6
+ /**
7
+ * Pallet `System`'s errors
8
+ **/
9
+ system: {
10
+ /**
11
+ * The name of specification does not match between the current runtime
12
+ * and the new runtime.
13
+ **/
14
+ InvalidSpecName: GenericPalletError<Rv>;
15
+
16
+ /**
17
+ * The specification version is not allowed to decrease between the current runtime
18
+ * and the new runtime.
19
+ **/
20
+ SpecVersionNeedsToIncrease: GenericPalletError<Rv>;
21
+
22
+ /**
23
+ * Failed to extract the runtime version from the new runtime.
24
+ *
25
+ * Either calling `Core_version` or decoding `RuntimeVersion` failed.
26
+ **/
27
+ FailedToExtractRuntimeVersion: GenericPalletError<Rv>;
28
+
29
+ /**
30
+ * Suicide called when the account has non-default composite data.
31
+ **/
32
+ NonDefaultComposite: GenericPalletError<Rv>;
33
+
34
+ /**
35
+ * There is a non-zero reference count preventing the account from being purged.
36
+ **/
37
+ NonZeroRefCount: GenericPalletError<Rv>;
38
+
39
+ /**
40
+ * The origin filter prevent the call to be dispatched.
41
+ **/
42
+ CallFiltered: GenericPalletError<Rv>;
43
+
44
+ /**
45
+ * A multi-block migration is ongoing and prevents the current code from being replaced.
46
+ **/
47
+ MultiBlockMigrationsOngoing: GenericPalletError<Rv>;
48
+
49
+ /**
50
+ * No upgrade authorized.
51
+ **/
52
+ NothingAuthorized: GenericPalletError<Rv>;
53
+
54
+ /**
55
+ * The submitted code is not authorized.
56
+ **/
57
+ Unauthorized: GenericPalletError<Rv>;
58
+
59
+ /**
60
+ * Generic pallet error
61
+ **/
62
+ [error: string]: GenericPalletError<Rv>;
63
+ };
64
+ /**
65
+ * Pallet `Babe`'s errors
66
+ **/
67
+ babe: {
68
+ /**
69
+ * An equivocation proof provided as part of an equivocation report is invalid.
70
+ **/
71
+ InvalidEquivocationProof: GenericPalletError<Rv>;
72
+
73
+ /**
74
+ * A key ownership proof provided as part of an equivocation report is invalid.
75
+ **/
76
+ InvalidKeyOwnershipProof: GenericPalletError<Rv>;
77
+
78
+ /**
79
+ * A given equivocation report is valid but already previously reported.
80
+ **/
81
+ DuplicateOffenceReport: GenericPalletError<Rv>;
82
+
83
+ /**
84
+ * Submitted configuration is invalid.
85
+ **/
86
+ InvalidConfiguration: GenericPalletError<Rv>;
87
+
88
+ /**
89
+ * Generic pallet error
90
+ **/
91
+ [error: string]: GenericPalletError<Rv>;
92
+ };
93
+ /**
94
+ * Pallet `Grandpa`'s errors
95
+ **/
96
+ grandpa: {
97
+ /**
98
+ * Attempt to signal GRANDPA pause when the authority set isn't live
99
+ * (either paused or already pending pause).
100
+ **/
101
+ PauseFailed: GenericPalletError<Rv>;
102
+
103
+ /**
104
+ * Attempt to signal GRANDPA resume when the authority set isn't paused
105
+ * (either live or already pending resume).
106
+ **/
107
+ ResumeFailed: GenericPalletError<Rv>;
108
+
109
+ /**
110
+ * Attempt to signal GRANDPA change with one already pending.
111
+ **/
112
+ ChangePending: GenericPalletError<Rv>;
113
+
114
+ /**
115
+ * Cannot signal forced change so soon after last.
116
+ **/
117
+ TooSoon: GenericPalletError<Rv>;
118
+
119
+ /**
120
+ * A key ownership proof provided as part of an equivocation report is invalid.
121
+ **/
122
+ InvalidKeyOwnershipProof: GenericPalletError<Rv>;
123
+
124
+ /**
125
+ * An equivocation proof provided as part of an equivocation report is invalid.
126
+ **/
127
+ InvalidEquivocationProof: GenericPalletError<Rv>;
128
+
129
+ /**
130
+ * A given equivocation report is valid but already previously reported.
131
+ **/
132
+ DuplicateOffenceReport: GenericPalletError<Rv>;
133
+
134
+ /**
135
+ * Generic pallet error
136
+ **/
137
+ [error: string]: GenericPalletError<Rv>;
138
+ };
139
+ /**
140
+ * Pallet `Balances`'s errors
141
+ **/
142
+ balances: {
143
+ /**
144
+ * Vesting balance too high to send value.
145
+ **/
146
+ VestingBalance: GenericPalletError<Rv>;
147
+
148
+ /**
149
+ * Account liquidity restrictions prevent withdrawal.
150
+ **/
151
+ LiquidityRestrictions: GenericPalletError<Rv>;
152
+
153
+ /**
154
+ * Balance too low to send value.
155
+ **/
156
+ InsufficientBalance: GenericPalletError<Rv>;
157
+
158
+ /**
159
+ * Value too low to create account due to existential deposit.
160
+ **/
161
+ ExistentialDeposit: GenericPalletError<Rv>;
162
+
163
+ /**
164
+ * Transfer/payment would kill account.
165
+ **/
166
+ Expendability: GenericPalletError<Rv>;
167
+
168
+ /**
169
+ * A vesting schedule already exists for this account.
170
+ **/
171
+ ExistingVestingSchedule: GenericPalletError<Rv>;
172
+
173
+ /**
174
+ * Beneficiary account must pre-exist.
175
+ **/
176
+ DeadAccount: GenericPalletError<Rv>;
177
+
178
+ /**
179
+ * Number of named reserves exceed `MaxReserves`.
180
+ **/
181
+ TooManyReserves: GenericPalletError<Rv>;
182
+
183
+ /**
184
+ * Number of holds exceed `VariantCountOf<T::RuntimeHoldReason>`.
185
+ **/
186
+ TooManyHolds: GenericPalletError<Rv>;
187
+
188
+ /**
189
+ * Number of freezes exceed `MaxFreezes`.
190
+ **/
191
+ TooManyFreezes: GenericPalletError<Rv>;
192
+
193
+ /**
194
+ * The issuance cannot be modified since it is already deactivated.
195
+ **/
196
+ IssuanceDeactivated: GenericPalletError<Rv>;
197
+
198
+ /**
199
+ * The delta cannot be zero.
200
+ **/
201
+ DeltaZero: GenericPalletError<Rv>;
202
+
203
+ /**
204
+ * Generic pallet error
205
+ **/
206
+ [error: string]: GenericPalletError<Rv>;
207
+ };
208
+ /**
209
+ * Pallet `Session`'s errors
210
+ **/
211
+ session: {
212
+ /**
213
+ * Invalid ownership proof.
214
+ **/
215
+ InvalidProof: GenericPalletError<Rv>;
216
+
217
+ /**
218
+ * No associated validator ID for account.
219
+ **/
220
+ NoAssociatedValidatorId: GenericPalletError<Rv>;
221
+
222
+ /**
223
+ * Registered duplicate key.
224
+ **/
225
+ DuplicatedKey: GenericPalletError<Rv>;
226
+
227
+ /**
228
+ * No keys are associated with this account.
229
+ **/
230
+ NoKeys: GenericPalletError<Rv>;
231
+
232
+ /**
233
+ * Key setting account is not live, so it's impossible to associate keys.
234
+ **/
235
+ NoAccount: GenericPalletError<Rv>;
236
+
237
+ /**
238
+ * Generic pallet error
239
+ **/
240
+ [error: string]: GenericPalletError<Rv>;
241
+ };
242
+ /**
243
+ * Pallet `Utility`'s errors
244
+ **/
245
+ utility: {
246
+ /**
247
+ * Too many calls batched.
248
+ **/
249
+ TooManyCalls: GenericPalletError<Rv>;
250
+
251
+ /**
252
+ * Generic pallet error
253
+ **/
254
+ [error: string]: GenericPalletError<Rv>;
255
+ };
256
+ /**
257
+ * Pallet `Vesting`'s errors
258
+ **/
259
+ vesting: {
260
+ /**
261
+ * The account given is not vesting.
262
+ **/
263
+ NotVesting: GenericPalletError<Rv>;
264
+
265
+ /**
266
+ * The account already has `MaxVestingSchedules` count of schedules and thus
267
+ * cannot add another one. Consider merging existing schedules in order to add another.
268
+ **/
269
+ AtMaxVestingSchedules: GenericPalletError<Rv>;
270
+
271
+ /**
272
+ * Amount being transferred is too low to create a vesting schedule.
273
+ **/
274
+ AmountLow: GenericPalletError<Rv>;
275
+
276
+ /**
277
+ * An index was out of bounds of the vesting schedules.
278
+ **/
279
+ ScheduleIndexOutOfBounds: GenericPalletError<Rv>;
280
+
281
+ /**
282
+ * Failed to create a new schedule because some parameter was invalid.
283
+ **/
284
+ InvalidScheduleParams: GenericPalletError<Rv>;
285
+
286
+ /**
287
+ * Generic pallet error
288
+ **/
289
+ [error: string]: GenericPalletError<Rv>;
290
+ };
291
+ /**
292
+ * Pallet `BagsList`'s errors
293
+ **/
294
+ bagsList: {
295
+ /**
296
+ * A error in the list interface implementation.
297
+ **/
298
+ List: GenericPalletError<Rv>;
299
+
300
+ /**
301
+ * Generic pallet error
302
+ **/
303
+ [error: string]: GenericPalletError<Rv>;
304
+ };
305
+ /**
306
+ * Pallet `ImOnline`'s errors
307
+ **/
308
+ imOnline: {
309
+ /**
310
+ * Non existent public key.
311
+ **/
312
+ InvalidKey: GenericPalletError<Rv>;
313
+
314
+ /**
315
+ * Duplicated heartbeat.
316
+ **/
317
+ DuplicatedHeartbeat: GenericPalletError<Rv>;
318
+
319
+ /**
320
+ * Generic pallet error
321
+ **/
322
+ [error: string]: GenericPalletError<Rv>;
323
+ };
324
+ /**
325
+ * Pallet `Staking`'s errors
326
+ **/
327
+ staking: {
328
+ /**
329
+ * Not a controller account.
330
+ **/
331
+ NotController: GenericPalletError<Rv>;
332
+
333
+ /**
334
+ * Not a stash account.
335
+ **/
336
+ NotStash: GenericPalletError<Rv>;
337
+
338
+ /**
339
+ * Stash is already bonded.
340
+ **/
341
+ AlreadyBonded: GenericPalletError<Rv>;
342
+
343
+ /**
344
+ * Controller is already paired.
345
+ **/
346
+ AlreadyPaired: GenericPalletError<Rv>;
347
+
348
+ /**
349
+ * Targets cannot be empty.
350
+ **/
351
+ EmptyTargets: GenericPalletError<Rv>;
352
+
353
+ /**
354
+ * Duplicate index.
355
+ **/
356
+ DuplicateIndex: GenericPalletError<Rv>;
357
+
358
+ /**
359
+ * Slash record index out of bounds.
360
+ **/
361
+ InvalidSlashIndex: GenericPalletError<Rv>;
362
+
363
+ /**
364
+ * Cannot have a validator or nominator role, with value less than the minimum defined by
365
+ * governance (see `MinValidatorBond` and `MinNominatorBond`). If unbonding is the
366
+ * intention, `chill` first to remove one's role as validator/nominator.
367
+ **/
368
+ InsufficientBond: GenericPalletError<Rv>;
369
+
370
+ /**
371
+ * Can not schedule more unlock chunks.
372
+ **/
373
+ NoMoreChunks: GenericPalletError<Rv>;
374
+
375
+ /**
376
+ * Can not rebond without unlocking chunks.
377
+ **/
378
+ NoUnlockChunk: GenericPalletError<Rv>;
379
+
380
+ /**
381
+ * Attempting to target a stash that still has funds.
382
+ **/
383
+ FundedTarget: GenericPalletError<Rv>;
384
+
385
+ /**
386
+ * Invalid era to reward.
387
+ **/
388
+ InvalidEraToReward: GenericPalletError<Rv>;
389
+
390
+ /**
391
+ * Invalid number of nominations.
392
+ **/
393
+ InvalidNumberOfNominations: GenericPalletError<Rv>;
394
+
395
+ /**
396
+ * Items are not sorted and unique.
397
+ **/
398
+ NotSortedAndUnique: GenericPalletError<Rv>;
399
+
400
+ /**
401
+ * Rewards for this era have already been claimed for this validator.
402
+ **/
403
+ AlreadyClaimed: GenericPalletError<Rv>;
404
+
405
+ /**
406
+ * No nominators exist on this page.
407
+ **/
408
+ InvalidPage: GenericPalletError<Rv>;
409
+
410
+ /**
411
+ * Incorrect previous history depth input provided.
412
+ **/
413
+ IncorrectHistoryDepth: GenericPalletError<Rv>;
414
+
415
+ /**
416
+ * Incorrect number of slashing spans provided.
417
+ **/
418
+ IncorrectSlashingSpans: GenericPalletError<Rv>;
419
+
420
+ /**
421
+ * Internal state has become somehow corrupted and the operation cannot continue.
422
+ **/
423
+ BadState: GenericPalletError<Rv>;
424
+
425
+ /**
426
+ * Too many nomination targets supplied.
427
+ **/
428
+ TooManyTargets: GenericPalletError<Rv>;
429
+
430
+ /**
431
+ * A nomination target was supplied that was blocked or otherwise not a validator.
432
+ **/
433
+ BadTarget: GenericPalletError<Rv>;
434
+
435
+ /**
436
+ * The user has enough bond and thus cannot be chilled forcefully by an external person.
437
+ **/
438
+ CannotChillOther: GenericPalletError<Rv>;
439
+
440
+ /**
441
+ * There are too many nominators in the system. Governance needs to adjust the staking
442
+ * settings to keep things safe for the runtime.
443
+ **/
444
+ TooManyNominators: GenericPalletError<Rv>;
445
+
446
+ /**
447
+ * There are too many validator candidates in the system. Governance needs to adjust the
448
+ * staking settings to keep things safe for the runtime.
449
+ **/
450
+ TooManyValidators: GenericPalletError<Rv>;
451
+
452
+ /**
453
+ * Commission is too low. Must be at least `MinCommission`.
454
+ **/
455
+ CommissionTooLow: GenericPalletError<Rv>;
456
+
457
+ /**
458
+ * Some bound is not met.
459
+ **/
460
+ BoundNotMet: GenericPalletError<Rv>;
461
+
462
+ /**
463
+ * Used when attempting to use deprecated controller account logic.
464
+ **/
465
+ ControllerDeprecated: GenericPalletError<Rv>;
466
+
467
+ /**
468
+ * Cannot reset a ledger.
469
+ **/
470
+ CannotRestoreLedger: GenericPalletError<Rv>;
471
+
472
+ /**
473
+ * Provided reward destination is not allowed.
474
+ **/
475
+ RewardDestinationRestricted: GenericPalletError<Rv>;
476
+
477
+ /**
478
+ * Not enough funds available to withdraw.
479
+ **/
480
+ NotEnoughFunds: GenericPalletError<Rv>;
481
+
482
+ /**
483
+ * Operation not allowed for virtual stakers.
484
+ **/
485
+ VirtualStakerNotAllowed: GenericPalletError<Rv>;
486
+
487
+ /**
488
+ * Generic pallet error
489
+ **/
490
+ [error: string]: GenericPalletError<Rv>;
491
+ };
492
+ /**
493
+ * Pallet `Treasury`'s errors
494
+ **/
495
+ treasury: {
496
+ /**
497
+ * No proposal, bounty or spend at that index.
498
+ **/
499
+ InvalidIndex: GenericPalletError<Rv>;
500
+
501
+ /**
502
+ * Too many approvals in the queue.
503
+ **/
504
+ TooManyApprovals: GenericPalletError<Rv>;
505
+
506
+ /**
507
+ * The spend origin is valid but the amount it is allowed to spend is lower than the
508
+ * amount to be spent.
509
+ **/
510
+ InsufficientPermission: GenericPalletError<Rv>;
511
+
512
+ /**
513
+ * Proposal has not been approved.
514
+ **/
515
+ ProposalNotApproved: GenericPalletError<Rv>;
516
+
517
+ /**
518
+ * The balance of the asset kind is not convertible to the balance of the native asset.
519
+ **/
520
+ FailedToConvertBalance: GenericPalletError<Rv>;
521
+
522
+ /**
523
+ * The spend has expired and cannot be claimed.
524
+ **/
525
+ SpendExpired: GenericPalletError<Rv>;
526
+
527
+ /**
528
+ * The spend is not yet eligible for payout.
529
+ **/
530
+ EarlyPayout: GenericPalletError<Rv>;
531
+
532
+ /**
533
+ * The payment has already been attempted.
534
+ **/
535
+ AlreadyAttempted: GenericPalletError<Rv>;
536
+
537
+ /**
538
+ * There was some issue with the mechanism of payment.
539
+ **/
540
+ PayoutError: GenericPalletError<Rv>;
541
+
542
+ /**
543
+ * The payout was not yet attempted/claimed.
544
+ **/
545
+ NotAttempted: GenericPalletError<Rv>;
546
+
547
+ /**
548
+ * The payment has neither failed nor succeeded yet.
549
+ **/
550
+ Inconclusive: GenericPalletError<Rv>;
551
+
552
+ /**
553
+ * Generic pallet error
554
+ **/
555
+ [error: string]: GenericPalletError<Rv>;
556
+ };
557
+ /**
558
+ * Pallet `ConvictionVoting`'s errors
559
+ **/
560
+ convictionVoting: {
561
+ /**
562
+ * Poll is not ongoing.
563
+ **/
564
+ NotOngoing: GenericPalletError<Rv>;
565
+
566
+ /**
567
+ * The given account did not vote on the poll.
568
+ **/
569
+ NotVoter: GenericPalletError<Rv>;
570
+
571
+ /**
572
+ * The actor has no permission to conduct the action.
573
+ **/
574
+ NoPermission: GenericPalletError<Rv>;
575
+
576
+ /**
577
+ * The actor has no permission to conduct the action right now but will do in the future.
578
+ **/
579
+ NoPermissionYet: GenericPalletError<Rv>;
580
+
581
+ /**
582
+ * The account is already delegating.
583
+ **/
584
+ AlreadyDelegating: GenericPalletError<Rv>;
585
+
586
+ /**
587
+ * The account currently has votes attached to it and the operation cannot succeed until
588
+ * these are removed through `remove_vote`.
589
+ **/
590
+ AlreadyVoting: GenericPalletError<Rv>;
591
+
592
+ /**
593
+ * Too high a balance was provided that the account cannot afford.
594
+ **/
595
+ InsufficientFunds: GenericPalletError<Rv>;
596
+
597
+ /**
598
+ * The account is not currently delegating.
599
+ **/
600
+ NotDelegating: GenericPalletError<Rv>;
601
+
602
+ /**
603
+ * Delegation to oneself makes no sense.
604
+ **/
605
+ Nonsense: GenericPalletError<Rv>;
606
+
607
+ /**
608
+ * Maximum number of votes reached.
609
+ **/
610
+ MaxVotesReached: GenericPalletError<Rv>;
611
+
612
+ /**
613
+ * The class must be supplied since it is not easily determinable from the state.
614
+ **/
615
+ ClassNeeded: GenericPalletError<Rv>;
616
+
617
+ /**
618
+ * The class ID supplied is invalid.
619
+ **/
620
+ BadClass: GenericPalletError<Rv>;
621
+
622
+ /**
623
+ * Generic pallet error
624
+ **/
625
+ [error: string]: GenericPalletError<Rv>;
626
+ };
627
+ /**
628
+ * Pallet `Referenda`'s errors
629
+ **/
630
+ referenda: {
631
+ /**
632
+ * Referendum is not ongoing.
633
+ **/
634
+ NotOngoing: GenericPalletError<Rv>;
635
+
636
+ /**
637
+ * Referendum's decision deposit is already paid.
638
+ **/
639
+ HasDeposit: GenericPalletError<Rv>;
640
+
641
+ /**
642
+ * The track identifier given was invalid.
643
+ **/
644
+ BadTrack: GenericPalletError<Rv>;
645
+
646
+ /**
647
+ * There are already a full complement of referenda in progress for this track.
648
+ **/
649
+ Full: GenericPalletError<Rv>;
650
+
651
+ /**
652
+ * The queue of the track is empty.
653
+ **/
654
+ QueueEmpty: GenericPalletError<Rv>;
655
+
656
+ /**
657
+ * The referendum index provided is invalid in this context.
658
+ **/
659
+ BadReferendum: GenericPalletError<Rv>;
660
+
661
+ /**
662
+ * There was nothing to do in the advancement.
663
+ **/
664
+ NothingToDo: GenericPalletError<Rv>;
665
+
666
+ /**
667
+ * No track exists for the proposal origin.
668
+ **/
669
+ NoTrack: GenericPalletError<Rv>;
670
+
671
+ /**
672
+ * Any deposit cannot be refunded until after the decision is over.
673
+ **/
674
+ Unfinished: GenericPalletError<Rv>;
675
+
676
+ /**
677
+ * The deposit refunder is not the depositor.
678
+ **/
679
+ NoPermission: GenericPalletError<Rv>;
680
+
681
+ /**
682
+ * The deposit cannot be refunded since none was made.
683
+ **/
684
+ NoDeposit: GenericPalletError<Rv>;
685
+
686
+ /**
687
+ * The referendum status is invalid for this operation.
688
+ **/
689
+ BadStatus: GenericPalletError<Rv>;
690
+
691
+ /**
692
+ * The preimage does not exist.
693
+ **/
694
+ PreimageNotExist: GenericPalletError<Rv>;
695
+
696
+ /**
697
+ * The preimage is stored with a different length than the one provided.
698
+ **/
699
+ PreimageStoredWithDifferentLength: GenericPalletError<Rv>;
700
+
701
+ /**
702
+ * Generic pallet error
703
+ **/
704
+ [error: string]: GenericPalletError<Rv>;
705
+ };
706
+ /**
707
+ * Pallet `FellowshipCollective`'s errors
708
+ **/
709
+ fellowshipCollective: {
710
+ /**
711
+ * Account is already a member.
712
+ **/
713
+ AlreadyMember: GenericPalletError<Rv>;
714
+
715
+ /**
716
+ * Account is not a member.
717
+ **/
718
+ NotMember: GenericPalletError<Rv>;
719
+
720
+ /**
721
+ * The given poll index is unknown or has closed.
722
+ **/
723
+ NotPolling: GenericPalletError<Rv>;
724
+
725
+ /**
726
+ * The given poll is still ongoing.
727
+ **/
728
+ Ongoing: GenericPalletError<Rv>;
729
+
730
+ /**
731
+ * There are no further records to be removed.
732
+ **/
733
+ NoneRemaining: GenericPalletError<Rv>;
734
+
735
+ /**
736
+ * Unexpected error in state.
737
+ **/
738
+ Corruption: GenericPalletError<Rv>;
739
+
740
+ /**
741
+ * The member's rank is too low to vote.
742
+ **/
743
+ RankTooLow: GenericPalletError<Rv>;
744
+
745
+ /**
746
+ * The information provided is incorrect.
747
+ **/
748
+ InvalidWitness: GenericPalletError<Rv>;
749
+
750
+ /**
751
+ * The origin is not sufficiently privileged to do the operation.
752
+ **/
753
+ NoPermission: GenericPalletError<Rv>;
754
+
755
+ /**
756
+ * The new member to exchange is the same as the old member
757
+ **/
758
+ SameMember: GenericPalletError<Rv>;
759
+
760
+ /**
761
+ * The max member count for the rank has been reached.
762
+ **/
763
+ TooManyMembers: GenericPalletError<Rv>;
764
+
765
+ /**
766
+ * Generic pallet error
767
+ **/
768
+ [error: string]: GenericPalletError<Rv>;
769
+ };
770
+ /**
771
+ * Pallet `FellowshipReferenda`'s errors
772
+ **/
773
+ fellowshipReferenda: {
774
+ /**
775
+ * Referendum is not ongoing.
776
+ **/
777
+ NotOngoing: GenericPalletError<Rv>;
778
+
779
+ /**
780
+ * Referendum's decision deposit is already paid.
781
+ **/
782
+ HasDeposit: GenericPalletError<Rv>;
783
+
784
+ /**
785
+ * The track identifier given was invalid.
786
+ **/
787
+ BadTrack: GenericPalletError<Rv>;
788
+
789
+ /**
790
+ * There are already a full complement of referenda in progress for this track.
791
+ **/
792
+ Full: GenericPalletError<Rv>;
793
+
794
+ /**
795
+ * The queue of the track is empty.
796
+ **/
797
+ QueueEmpty: GenericPalletError<Rv>;
798
+
799
+ /**
800
+ * The referendum index provided is invalid in this context.
801
+ **/
802
+ BadReferendum: GenericPalletError<Rv>;
803
+
804
+ /**
805
+ * There was nothing to do in the advancement.
806
+ **/
807
+ NothingToDo: GenericPalletError<Rv>;
808
+
809
+ /**
810
+ * No track exists for the proposal origin.
811
+ **/
812
+ NoTrack: GenericPalletError<Rv>;
813
+
814
+ /**
815
+ * Any deposit cannot be refunded until after the decision is over.
816
+ **/
817
+ Unfinished: GenericPalletError<Rv>;
818
+
819
+ /**
820
+ * The deposit refunder is not the depositor.
821
+ **/
822
+ NoPermission: GenericPalletError<Rv>;
823
+
824
+ /**
825
+ * The deposit cannot be refunded since none was made.
826
+ **/
827
+ NoDeposit: GenericPalletError<Rv>;
828
+
829
+ /**
830
+ * The referendum status is invalid for this operation.
831
+ **/
832
+ BadStatus: GenericPalletError<Rv>;
833
+
834
+ /**
835
+ * The preimage does not exist.
836
+ **/
837
+ PreimageNotExist: GenericPalletError<Rv>;
838
+
839
+ /**
840
+ * The preimage is stored with a different length than the one provided.
841
+ **/
842
+ PreimageStoredWithDifferentLength: GenericPalletError<Rv>;
843
+
844
+ /**
845
+ * Generic pallet error
846
+ **/
847
+ [error: string]: GenericPalletError<Rv>;
848
+ };
849
+ /**
850
+ * Pallet `Whitelist`'s errors
851
+ **/
852
+ whitelist: {
853
+ /**
854
+ * The preimage of the call hash could not be loaded.
855
+ **/
856
+ UnavailablePreImage: GenericPalletError<Rv>;
857
+
858
+ /**
859
+ * The call could not be decoded.
860
+ **/
861
+ UndecodableCall: GenericPalletError<Rv>;
862
+
863
+ /**
864
+ * The weight of the decoded call was higher than the witness.
865
+ **/
866
+ InvalidCallWeightWitness: GenericPalletError<Rv>;
867
+
868
+ /**
869
+ * The call was not whitelisted.
870
+ **/
871
+ CallIsNotWhitelisted: GenericPalletError<Rv>;
872
+
873
+ /**
874
+ * The call was already whitelisted; No-Op.
875
+ **/
876
+ CallAlreadyWhitelisted: GenericPalletError<Rv>;
877
+
878
+ /**
879
+ * Generic pallet error
880
+ **/
881
+ [error: string]: GenericPalletError<Rv>;
882
+ };
883
+ /**
884
+ * Pallet `Scheduler`'s errors
885
+ **/
886
+ scheduler: {
887
+ /**
888
+ * Failed to schedule a call
889
+ **/
890
+ FailedToSchedule: GenericPalletError<Rv>;
891
+
892
+ /**
893
+ * Cannot find the scheduled call.
894
+ **/
895
+ NotFound: GenericPalletError<Rv>;
896
+
897
+ /**
898
+ * Given target block number is in the past.
899
+ **/
900
+ TargetBlockNumberInPast: GenericPalletError<Rv>;
901
+
902
+ /**
903
+ * Reschedule failed because it does not change scheduled time.
904
+ **/
905
+ RescheduleNoChange: GenericPalletError<Rv>;
906
+
907
+ /**
908
+ * Attempt to use a non-named function on a named task.
909
+ **/
910
+ Named: GenericPalletError<Rv>;
911
+
912
+ /**
913
+ * Generic pallet error
914
+ **/
915
+ [error: string]: GenericPalletError<Rv>;
916
+ };
917
+ /**
918
+ * Pallet `Preimage`'s errors
919
+ **/
920
+ preimage: {
921
+ /**
922
+ * Preimage is too large to store on-chain.
923
+ **/
924
+ TooBig: GenericPalletError<Rv>;
925
+
926
+ /**
927
+ * Preimage has already been noted on-chain.
928
+ **/
929
+ AlreadyNoted: GenericPalletError<Rv>;
930
+
931
+ /**
932
+ * The user is not authorized to perform this action.
933
+ **/
934
+ NotAuthorized: GenericPalletError<Rv>;
935
+
936
+ /**
937
+ * The preimage cannot be removed since it has not yet been noted.
938
+ **/
939
+ NotNoted: GenericPalletError<Rv>;
940
+
941
+ /**
942
+ * A preimage may not be removed when there are outstanding requests.
943
+ **/
944
+ Requested: GenericPalletError<Rv>;
945
+
946
+ /**
947
+ * The preimage request cannot be removed since no outstanding requests exist.
948
+ **/
949
+ NotRequested: GenericPalletError<Rv>;
950
+
951
+ /**
952
+ * More than `MAX_HASH_UPGRADE_BULK_COUNT` hashes were requested to be upgraded at once.
953
+ **/
954
+ TooMany: GenericPalletError<Rv>;
955
+
956
+ /**
957
+ * Too few hashes were requested to be upgraded (i.e. zero).
958
+ **/
959
+ TooFew: GenericPalletError<Rv>;
960
+
961
+ /**
962
+ * Generic pallet error
963
+ **/
964
+ [error: string]: GenericPalletError<Rv>;
965
+ };
966
+ /**
967
+ * Pallet `Identity`'s errors
968
+ **/
969
+ identity: {
970
+ /**
971
+ * Too many subs-accounts.
972
+ **/
973
+ TooManySubAccounts: GenericPalletError<Rv>;
974
+
975
+ /**
976
+ * Account isn't found.
977
+ **/
978
+ NotFound: GenericPalletError<Rv>;
979
+
980
+ /**
981
+ * Account isn't named.
982
+ **/
983
+ NotNamed: GenericPalletError<Rv>;
984
+
985
+ /**
986
+ * Empty index.
987
+ **/
988
+ EmptyIndex: GenericPalletError<Rv>;
989
+
990
+ /**
991
+ * Fee is changed.
992
+ **/
993
+ FeeChanged: GenericPalletError<Rv>;
994
+
995
+ /**
996
+ * No identity found.
997
+ **/
998
+ NoIdentity: GenericPalletError<Rv>;
999
+
1000
+ /**
1001
+ * Sticky judgement.
1002
+ **/
1003
+ StickyJudgement: GenericPalletError<Rv>;
1004
+
1005
+ /**
1006
+ * Judgement given.
1007
+ **/
1008
+ JudgementGiven: GenericPalletError<Rv>;
1009
+
1010
+ /**
1011
+ * Invalid judgement.
1012
+ **/
1013
+ InvalidJudgement: GenericPalletError<Rv>;
1014
+
1015
+ /**
1016
+ * The index is invalid.
1017
+ **/
1018
+ InvalidIndex: GenericPalletError<Rv>;
1019
+
1020
+ /**
1021
+ * The target is invalid.
1022
+ **/
1023
+ InvalidTarget: GenericPalletError<Rv>;
1024
+
1025
+ /**
1026
+ * Maximum amount of registrars reached. Cannot add any more.
1027
+ **/
1028
+ TooManyRegistrars: GenericPalletError<Rv>;
1029
+
1030
+ /**
1031
+ * Account ID is already named.
1032
+ **/
1033
+ AlreadyClaimed: GenericPalletError<Rv>;
1034
+
1035
+ /**
1036
+ * Sender is not a sub-account.
1037
+ **/
1038
+ NotSub: GenericPalletError<Rv>;
1039
+
1040
+ /**
1041
+ * Sub-account isn't owned by sender.
1042
+ **/
1043
+ NotOwned: GenericPalletError<Rv>;
1044
+
1045
+ /**
1046
+ * The provided judgement was for a different identity.
1047
+ **/
1048
+ JudgementForDifferentIdentity: GenericPalletError<Rv>;
1049
+
1050
+ /**
1051
+ * Error that occurs when there is an issue paying for judgement.
1052
+ **/
1053
+ JudgementPaymentFailed: GenericPalletError<Rv>;
1054
+
1055
+ /**
1056
+ * The provided suffix is too long.
1057
+ **/
1058
+ InvalidSuffix: GenericPalletError<Rv>;
1059
+
1060
+ /**
1061
+ * The sender does not have permission to issue a username.
1062
+ **/
1063
+ NotUsernameAuthority: GenericPalletError<Rv>;
1064
+
1065
+ /**
1066
+ * The authority cannot allocate any more usernames.
1067
+ **/
1068
+ NoAllocation: GenericPalletError<Rv>;
1069
+
1070
+ /**
1071
+ * The signature on a username was not valid.
1072
+ **/
1073
+ InvalidSignature: GenericPalletError<Rv>;
1074
+
1075
+ /**
1076
+ * Setting this username requires a signature, but none was provided.
1077
+ **/
1078
+ RequiresSignature: GenericPalletError<Rv>;
1079
+
1080
+ /**
1081
+ * The username does not meet the requirements.
1082
+ **/
1083
+ InvalidUsername: GenericPalletError<Rv>;
1084
+
1085
+ /**
1086
+ * The username is already taken.
1087
+ **/
1088
+ UsernameTaken: GenericPalletError<Rv>;
1089
+
1090
+ /**
1091
+ * The requested username does not exist.
1092
+ **/
1093
+ NoUsername: GenericPalletError<Rv>;
1094
+
1095
+ /**
1096
+ * The username cannot be forcefully removed because it can still be accepted.
1097
+ **/
1098
+ NotExpired: GenericPalletError<Rv>;
1099
+
1100
+ /**
1101
+ * Generic pallet error
1102
+ **/
1103
+ [error: string]: GenericPalletError<Rv>;
1104
+ };
1105
+ /**
1106
+ * Pallet `Proxy`'s errors
1107
+ **/
1108
+ proxy: {
1109
+ /**
1110
+ * There are too many proxies registered or too many announcements pending.
1111
+ **/
1112
+ TooMany: GenericPalletError<Rv>;
1113
+
1114
+ /**
1115
+ * Proxy registration not found.
1116
+ **/
1117
+ NotFound: GenericPalletError<Rv>;
1118
+
1119
+ /**
1120
+ * Sender is not a proxy of the account to be proxied.
1121
+ **/
1122
+ NotProxy: GenericPalletError<Rv>;
1123
+
1124
+ /**
1125
+ * A call which is incompatible with the proxy type's filter was attempted.
1126
+ **/
1127
+ Unproxyable: GenericPalletError<Rv>;
1128
+
1129
+ /**
1130
+ * Account is already a proxy.
1131
+ **/
1132
+ Duplicate: GenericPalletError<Rv>;
1133
+
1134
+ /**
1135
+ * Call may not be made by proxy because it may escalate its privileges.
1136
+ **/
1137
+ NoPermission: GenericPalletError<Rv>;
1138
+
1139
+ /**
1140
+ * Announcement, if made at all, was made too recently.
1141
+ **/
1142
+ Unannounced: GenericPalletError<Rv>;
1143
+
1144
+ /**
1145
+ * Cannot add self as proxy.
1146
+ **/
1147
+ NoSelfProxy: GenericPalletError<Rv>;
1148
+
1149
+ /**
1150
+ * Generic pallet error
1151
+ **/
1152
+ [error: string]: GenericPalletError<Rv>;
1153
+ };
1154
+ /**
1155
+ * Pallet `Multisig`'s errors
1156
+ **/
1157
+ multisig: {
1158
+ /**
1159
+ * Threshold must be 2 or greater.
1160
+ **/
1161
+ MinimumThreshold: GenericPalletError<Rv>;
1162
+
1163
+ /**
1164
+ * Call is already approved by this signatory.
1165
+ **/
1166
+ AlreadyApproved: GenericPalletError<Rv>;
1167
+
1168
+ /**
1169
+ * Call doesn't need any (more) approvals.
1170
+ **/
1171
+ NoApprovalsNeeded: GenericPalletError<Rv>;
1172
+
1173
+ /**
1174
+ * There are too few signatories in the list.
1175
+ **/
1176
+ TooFewSignatories: GenericPalletError<Rv>;
1177
+
1178
+ /**
1179
+ * There are too many signatories in the list.
1180
+ **/
1181
+ TooManySignatories: GenericPalletError<Rv>;
1182
+
1183
+ /**
1184
+ * The signatories were provided out of order; they should be ordered.
1185
+ **/
1186
+ SignatoriesOutOfOrder: GenericPalletError<Rv>;
1187
+
1188
+ /**
1189
+ * The sender was contained in the other signatories; it shouldn't be.
1190
+ **/
1191
+ SenderInSignatories: GenericPalletError<Rv>;
1192
+
1193
+ /**
1194
+ * Multisig operation not found when attempting to cancel.
1195
+ **/
1196
+ NotFound: GenericPalletError<Rv>;
1197
+
1198
+ /**
1199
+ * Only the account that originally created the multisig is able to cancel it.
1200
+ **/
1201
+ NotOwner: GenericPalletError<Rv>;
1202
+
1203
+ /**
1204
+ * No timepoint was given, yet the multisig operation is already underway.
1205
+ **/
1206
+ NoTimepoint: GenericPalletError<Rv>;
1207
+
1208
+ /**
1209
+ * A different timepoint was given to the multisig operation that is underway.
1210
+ **/
1211
+ WrongTimepoint: GenericPalletError<Rv>;
1212
+
1213
+ /**
1214
+ * A timepoint was given, yet no multisig operation is underway.
1215
+ **/
1216
+ UnexpectedTimepoint: GenericPalletError<Rv>;
1217
+
1218
+ /**
1219
+ * The maximum weight information provided was too low.
1220
+ **/
1221
+ MaxWeightTooLow: GenericPalletError<Rv>;
1222
+
1223
+ /**
1224
+ * The data to be stored is already stored.
1225
+ **/
1226
+ AlreadyStored: GenericPalletError<Rv>;
1227
+
1228
+ /**
1229
+ * Generic pallet error
1230
+ **/
1231
+ [error: string]: GenericPalletError<Rv>;
1232
+ };
1233
+ /**
1234
+ * Pallet `ElectionProviderMultiPhase`'s errors
1235
+ **/
1236
+ electionProviderMultiPhase: {
1237
+ /**
1238
+ * Submission was too early.
1239
+ **/
1240
+ PreDispatchEarlySubmission: GenericPalletError<Rv>;
1241
+
1242
+ /**
1243
+ * Wrong number of winners presented.
1244
+ **/
1245
+ PreDispatchWrongWinnerCount: GenericPalletError<Rv>;
1246
+
1247
+ /**
1248
+ * Submission was too weak, score-wise.
1249
+ **/
1250
+ PreDispatchWeakSubmission: GenericPalletError<Rv>;
1251
+
1252
+ /**
1253
+ * The queue was full, and the solution was not better than any of the existing ones.
1254
+ **/
1255
+ SignedQueueFull: GenericPalletError<Rv>;
1256
+
1257
+ /**
1258
+ * The origin failed to pay the deposit.
1259
+ **/
1260
+ SignedCannotPayDeposit: GenericPalletError<Rv>;
1261
+
1262
+ /**
1263
+ * Witness data to dispatchable is invalid.
1264
+ **/
1265
+ SignedInvalidWitness: GenericPalletError<Rv>;
1266
+
1267
+ /**
1268
+ * The signed submission consumes too much weight
1269
+ **/
1270
+ SignedTooMuchWeight: GenericPalletError<Rv>;
1271
+
1272
+ /**
1273
+ * OCW submitted solution for wrong round
1274
+ **/
1275
+ OcwCallWrongEra: GenericPalletError<Rv>;
1276
+
1277
+ /**
1278
+ * Snapshot metadata should exist but didn't.
1279
+ **/
1280
+ MissingSnapshotMetadata: GenericPalletError<Rv>;
1281
+
1282
+ /**
1283
+ * `Self::insert_submission` returned an invalid index.
1284
+ **/
1285
+ InvalidSubmissionIndex: GenericPalletError<Rv>;
1286
+
1287
+ /**
1288
+ * The call is not allowed at this point.
1289
+ **/
1290
+ CallNotAllowed: GenericPalletError<Rv>;
1291
+
1292
+ /**
1293
+ * The fallback failed
1294
+ **/
1295
+ FallbackFailed: GenericPalletError<Rv>;
1296
+
1297
+ /**
1298
+ * Some bound not met
1299
+ **/
1300
+ BoundNotMet: GenericPalletError<Rv>;
1301
+
1302
+ /**
1303
+ * Submitted solution has too many winners
1304
+ **/
1305
+ TooManyWinners: GenericPalletError<Rv>;
1306
+
1307
+ /**
1308
+ * Submission was prepared for a different round.
1309
+ **/
1310
+ PreDispatchDifferentRound: GenericPalletError<Rv>;
1311
+
1312
+ /**
1313
+ * Generic pallet error
1314
+ **/
1315
+ [error: string]: GenericPalletError<Rv>;
1316
+ };
1317
+ /**
1318
+ * Pallet `Bounties`'s errors
1319
+ **/
1320
+ bounties: {
1321
+ /**
1322
+ * Proposer's balance is too low.
1323
+ **/
1324
+ InsufficientProposersBalance: GenericPalletError<Rv>;
1325
+
1326
+ /**
1327
+ * No proposal or bounty at that index.
1328
+ **/
1329
+ InvalidIndex: GenericPalletError<Rv>;
1330
+
1331
+ /**
1332
+ * The reason given is just too big.
1333
+ **/
1334
+ ReasonTooBig: GenericPalletError<Rv>;
1335
+
1336
+ /**
1337
+ * The bounty status is unexpected.
1338
+ **/
1339
+ UnexpectedStatus: GenericPalletError<Rv>;
1340
+
1341
+ /**
1342
+ * Require bounty curator.
1343
+ **/
1344
+ RequireCurator: GenericPalletError<Rv>;
1345
+
1346
+ /**
1347
+ * Invalid bounty value.
1348
+ **/
1349
+ InvalidValue: GenericPalletError<Rv>;
1350
+
1351
+ /**
1352
+ * Invalid bounty fee.
1353
+ **/
1354
+ InvalidFee: GenericPalletError<Rv>;
1355
+
1356
+ /**
1357
+ * A bounty payout is pending.
1358
+ * To cancel the bounty, you must unassign and slash the curator.
1359
+ **/
1360
+ PendingPayout: GenericPalletError<Rv>;
1361
+
1362
+ /**
1363
+ * The bounties cannot be claimed/closed because it's still in the countdown period.
1364
+ **/
1365
+ Premature: GenericPalletError<Rv>;
1366
+
1367
+ /**
1368
+ * The bounty cannot be closed because it has active child bounties.
1369
+ **/
1370
+ HasActiveChildBounty: GenericPalletError<Rv>;
1371
+
1372
+ /**
1373
+ * Too many approvals are already queued.
1374
+ **/
1375
+ TooManyQueued: GenericPalletError<Rv>;
1376
+
1377
+ /**
1378
+ * Generic pallet error
1379
+ **/
1380
+ [error: string]: GenericPalletError<Rv>;
1381
+ };
1382
+ /**
1383
+ * Pallet `ChildBounties`'s errors
1384
+ **/
1385
+ childBounties: {
1386
+ /**
1387
+ * The parent bounty is not in active state.
1388
+ **/
1389
+ ParentBountyNotActive: GenericPalletError<Rv>;
1390
+
1391
+ /**
1392
+ * The bounty balance is not enough to add new child-bounty.
1393
+ **/
1394
+ InsufficientBountyBalance: GenericPalletError<Rv>;
1395
+
1396
+ /**
1397
+ * Number of child bounties exceeds limit `MaxActiveChildBountyCount`.
1398
+ **/
1399
+ TooManyChildBounties: GenericPalletError<Rv>;
1400
+
1401
+ /**
1402
+ * Generic pallet error
1403
+ **/
1404
+ [error: string]: GenericPalletError<Rv>;
1405
+ };
1406
+ /**
1407
+ * Pallet `NominationPools`'s errors
1408
+ **/
1409
+ nominationPools: {
1410
+ /**
1411
+ * A (bonded) pool id does not exist.
1412
+ **/
1413
+ PoolNotFound: GenericPalletError<Rv>;
1414
+
1415
+ /**
1416
+ * An account is not a member.
1417
+ **/
1418
+ PoolMemberNotFound: GenericPalletError<Rv>;
1419
+
1420
+ /**
1421
+ * A reward pool does not exist. In all cases this is a system logic error.
1422
+ **/
1423
+ RewardPoolNotFound: GenericPalletError<Rv>;
1424
+
1425
+ /**
1426
+ * A sub pool does not exist.
1427
+ **/
1428
+ SubPoolsNotFound: GenericPalletError<Rv>;
1429
+
1430
+ /**
1431
+ * An account is already delegating in another pool. An account may only belong to one
1432
+ * pool at a time.
1433
+ **/
1434
+ AccountBelongsToOtherPool: GenericPalletError<Rv>;
1435
+
1436
+ /**
1437
+ * The member is fully unbonded (and thus cannot access the bonded and reward pool
1438
+ * anymore to, for example, collect rewards).
1439
+ **/
1440
+ FullyUnbonding: GenericPalletError<Rv>;
1441
+
1442
+ /**
1443
+ * The member cannot unbond further chunks due to reaching the limit.
1444
+ **/
1445
+ MaxUnbondingLimit: GenericPalletError<Rv>;
1446
+
1447
+ /**
1448
+ * None of the funds can be withdrawn yet because the bonding duration has not passed.
1449
+ **/
1450
+ CannotWithdrawAny: GenericPalletError<Rv>;
1451
+
1452
+ /**
1453
+ * The amount does not meet the minimum bond to either join or create a pool.
1454
+ *
1455
+ * The depositor can never unbond to a value less than `Pallet::depositor_min_bond`. The
1456
+ * caller does not have nominating permissions for the pool. Members can never unbond to a
1457
+ * value below `MinJoinBond`.
1458
+ **/
1459
+ MinimumBondNotMet: GenericPalletError<Rv>;
1460
+
1461
+ /**
1462
+ * The transaction could not be executed due to overflow risk for the pool.
1463
+ **/
1464
+ OverflowRisk: GenericPalletError<Rv>;
1465
+
1466
+ /**
1467
+ * A pool must be in [`PoolState::Destroying`] in order for the depositor to unbond or for
1468
+ * other members to be permissionlessly unbonded.
1469
+ **/
1470
+ NotDestroying: GenericPalletError<Rv>;
1471
+
1472
+ /**
1473
+ * The caller does not have nominating permissions for the pool.
1474
+ **/
1475
+ NotNominator: GenericPalletError<Rv>;
1476
+
1477
+ /**
1478
+ * Either a) the caller cannot make a valid kick or b) the pool is not destroying.
1479
+ **/
1480
+ NotKickerOrDestroying: GenericPalletError<Rv>;
1481
+
1482
+ /**
1483
+ * The pool is not open to join
1484
+ **/
1485
+ NotOpen: GenericPalletError<Rv>;
1486
+
1487
+ /**
1488
+ * The system is maxed out on pools.
1489
+ **/
1490
+ MaxPools: GenericPalletError<Rv>;
1491
+
1492
+ /**
1493
+ * Too many members in the pool or system.
1494
+ **/
1495
+ MaxPoolMembers: GenericPalletError<Rv>;
1496
+
1497
+ /**
1498
+ * The pools state cannot be changed.
1499
+ **/
1500
+ CanNotChangeState: GenericPalletError<Rv>;
1501
+
1502
+ /**
1503
+ * The caller does not have adequate permissions.
1504
+ **/
1505
+ DoesNotHavePermission: GenericPalletError<Rv>;
1506
+
1507
+ /**
1508
+ * Metadata exceeds [`Config::MaxMetadataLen`]
1509
+ **/
1510
+ MetadataExceedsMaxLen: GenericPalletError<Rv>;
1511
+
1512
+ /**
1513
+ * Some error occurred that should never happen. This should be reported to the
1514
+ * maintainers.
1515
+ **/
1516
+ Defensive: GenericPalletError<Rv>;
1517
+
1518
+ /**
1519
+ * Partial unbonding now allowed permissionlessly.
1520
+ **/
1521
+ PartialUnbondNotAllowedPermissionlessly: GenericPalletError<Rv>;
1522
+
1523
+ /**
1524
+ * The pool's max commission cannot be set higher than the existing value.
1525
+ **/
1526
+ MaxCommissionRestricted: GenericPalletError<Rv>;
1527
+
1528
+ /**
1529
+ * The supplied commission exceeds the max allowed commission.
1530
+ **/
1531
+ CommissionExceedsMaximum: GenericPalletError<Rv>;
1532
+
1533
+ /**
1534
+ * The supplied commission exceeds global maximum commission.
1535
+ **/
1536
+ CommissionExceedsGlobalMaximum: GenericPalletError<Rv>;
1537
+
1538
+ /**
1539
+ * Not enough blocks have surpassed since the last commission update.
1540
+ **/
1541
+ CommissionChangeThrottled: GenericPalletError<Rv>;
1542
+
1543
+ /**
1544
+ * The submitted changes to commission change rate are not allowed.
1545
+ **/
1546
+ CommissionChangeRateNotAllowed: GenericPalletError<Rv>;
1547
+
1548
+ /**
1549
+ * There is no pending commission to claim.
1550
+ **/
1551
+ NoPendingCommission: GenericPalletError<Rv>;
1552
+
1553
+ /**
1554
+ * No commission current has been set.
1555
+ **/
1556
+ NoCommissionCurrentSet: GenericPalletError<Rv>;
1557
+
1558
+ /**
1559
+ * Pool id currently in use.
1560
+ **/
1561
+ PoolIdInUse: GenericPalletError<Rv>;
1562
+
1563
+ /**
1564
+ * Pool id provided is not correct/usable.
1565
+ **/
1566
+ InvalidPoolId: GenericPalletError<Rv>;
1567
+
1568
+ /**
1569
+ * Bonding extra is restricted to the exact pending reward amount.
1570
+ **/
1571
+ BondExtraRestricted: GenericPalletError<Rv>;
1572
+
1573
+ /**
1574
+ * No imbalance in the ED deposit for the pool.
1575
+ **/
1576
+ NothingToAdjust: GenericPalletError<Rv>;
1577
+
1578
+ /**
1579
+ * No slash pending that can be applied to the member.
1580
+ **/
1581
+ NothingToSlash: GenericPalletError<Rv>;
1582
+
1583
+ /**
1584
+ * The pool or member delegation has already migrated to delegate stake.
1585
+ **/
1586
+ AlreadyMigrated: GenericPalletError<Rv>;
1587
+
1588
+ /**
1589
+ * The pool or member delegation has not migrated yet to delegate stake.
1590
+ **/
1591
+ NotMigrated: GenericPalletError<Rv>;
1592
+
1593
+ /**
1594
+ * This call is not allowed in the current state of the pallet.
1595
+ **/
1596
+ NotSupported: GenericPalletError<Rv>;
1597
+
1598
+ /**
1599
+ * Generic pallet error
1600
+ **/
1601
+ [error: string]: GenericPalletError<Rv>;
1602
+ };
1603
+ /**
1604
+ * Pallet `GearProgram`'s errors
1605
+ **/
1606
+ gearProgram: {
1607
+ DuplicateItem: GenericPalletError<Rv>;
1608
+ ProgramNotFound: GenericPalletError<Rv>;
1609
+ NotActiveProgram: GenericPalletError<Rv>;
1610
+ CannotFindDataForPage: GenericPalletError<Rv>;
1611
+ ProgramCodeNotFound: GenericPalletError<Rv>;
1612
+
1613
+ /**
1614
+ * Generic pallet error
1615
+ **/
1616
+ [error: string]: GenericPalletError<Rv>;
1617
+ };
1618
+ /**
1619
+ * Pallet `GearMessenger`'s errors
1620
+ **/
1621
+ gearMessenger: {
1622
+ /**
1623
+ * Occurs when given key already exists in queue.
1624
+ **/
1625
+ QueueDuplicateKey: GenericPalletError<Rv>;
1626
+
1627
+ /**
1628
+ * Occurs when queue's element wasn't found in storage.
1629
+ **/
1630
+ QueueElementNotFound: GenericPalletError<Rv>;
1631
+
1632
+ /**
1633
+ * Occurs when queue's head should contain value,
1634
+ * but it's empty for some reason.
1635
+ **/
1636
+ QueueHeadShouldBeSet: GenericPalletError<Rv>;
1637
+
1638
+ /**
1639
+ * Occurs when queue's head should be empty,
1640
+ * but it contains value for some reason.
1641
+ **/
1642
+ QueueHeadShouldNotBeSet: GenericPalletError<Rv>;
1643
+
1644
+ /**
1645
+ * Occurs when queue's tail element contains link
1646
+ * to the next element.
1647
+ **/
1648
+ QueueTailHasNextKey: GenericPalletError<Rv>;
1649
+
1650
+ /**
1651
+ * Occurs when while searching queue's pre-tail,
1652
+ * element wasn't found.
1653
+ **/
1654
+ QueueTailParentNotFound: GenericPalletError<Rv>;
1655
+
1656
+ /**
1657
+ * Occurs when queue's tail should contain value,
1658
+ * but it's empty for some reason.
1659
+ **/
1660
+ QueueTailShouldBeSet: GenericPalletError<Rv>;
1661
+
1662
+ /**
1663
+ * Occurs when queue's tail should be empty,
1664
+ * but it contains value for some reason.
1665
+ **/
1666
+ QueueTailShouldNotBeSet: GenericPalletError<Rv>;
1667
+
1668
+ /**
1669
+ * Occurs when given value already exists in mailbox.
1670
+ **/
1671
+ MailboxDuplicateKey: GenericPalletError<Rv>;
1672
+
1673
+ /**
1674
+ * Occurs when mailbox's element wasn't found in storage.
1675
+ **/
1676
+ MailboxElementNotFound: GenericPalletError<Rv>;
1677
+
1678
+ /**
1679
+ * Occurs when given value already exists in waitlist.
1680
+ **/
1681
+ WaitlistDuplicateKey: GenericPalletError<Rv>;
1682
+
1683
+ /**
1684
+ * Occurs when waitlist's element wasn't found in storage.
1685
+ **/
1686
+ WaitlistElementNotFound: GenericPalletError<Rv>;
1687
+
1688
+ /**
1689
+ * Generic pallet error
1690
+ **/
1691
+ [error: string]: GenericPalletError<Rv>;
1692
+ };
1693
+ /**
1694
+ * Pallet `GearScheduler`'s errors
1695
+ **/
1696
+ gearScheduler: {
1697
+ /**
1698
+ * Occurs when given task already exists in task pool.
1699
+ **/
1700
+ DuplicateTask: GenericPalletError<Rv>;
1701
+
1702
+ /**
1703
+ * Occurs when task wasn't found in storage.
1704
+ **/
1705
+ TaskNotFound: GenericPalletError<Rv>;
1706
+
1707
+ /**
1708
+ * Generic pallet error
1709
+ **/
1710
+ [error: string]: GenericPalletError<Rv>;
1711
+ };
1712
+ /**
1713
+ * Pallet `GearGas`'s errors
1714
+ **/
1715
+ gearGas: {
1716
+ Forbidden: GenericPalletError<Rv>;
1717
+ NodeAlreadyExists: GenericPalletError<Rv>;
1718
+ InsufficientBalance: GenericPalletError<Rv>;
1719
+ NodeNotFound: GenericPalletError<Rv>;
1720
+ NodeWasConsumed: GenericPalletError<Rv>;
1721
+
1722
+ /**
1723
+ * Errors stating that gas tree has been invalidated
1724
+ **/
1725
+ ParentIsLost: GenericPalletError<Rv>;
1726
+ ParentHasNoChildren: GenericPalletError<Rv>;
1727
+
1728
+ /**
1729
+ * Output of `Tree::consume` procedure that wasn't expected.
1730
+ *
1731
+ * Outputs of consumption procedure are determined. The error is returned
1732
+ * when unexpected one occurred. That signals, that algorithm works wrong
1733
+ * and expected invariants are not correct.
1734
+ **/
1735
+ UnexpectedConsumeOutput: GenericPalletError<Rv>;
1736
+
1737
+ /**
1738
+ * Node type that can't occur if algorithm work well
1739
+ **/
1740
+ UnexpectedNodeType: GenericPalletError<Rv>;
1741
+
1742
+ /**
1743
+ * Value must have been caught, but was missed or blocked (for more info see `ValueNode::catch_value`).
1744
+ **/
1745
+ ValueIsNotCaught: GenericPalletError<Rv>;
1746
+
1747
+ /**
1748
+ * Value must have been caught or moved upstream, but was blocked (for more info see `ValueNode::catch_value`).
1749
+ **/
1750
+ ValueIsBlocked: GenericPalletError<Rv>;
1751
+
1752
+ /**
1753
+ * Value must have been blocked, but was either moved or caught (for more info see `ValueNode::catch_value`).
1754
+ **/
1755
+ ValueIsNotBlocked: GenericPalletError<Rv>;
1756
+
1757
+ /**
1758
+ * `GasTree::consume` called on node, which has some balance locked.
1759
+ **/
1760
+ ConsumedWithLock: GenericPalletError<Rv>;
1761
+
1762
+ /**
1763
+ * `GasTree::consume` called on node, which has some system reservation.
1764
+ **/
1765
+ ConsumedWithSystemReservation: GenericPalletError<Rv>;
1766
+
1767
+ /**
1768
+ * `GasTree::create` called with some value amount leading to
1769
+ * the total value overflow.
1770
+ **/
1771
+ TotalValueIsOverflowed: GenericPalletError<Rv>;
1772
+
1773
+ /**
1774
+ * Either `GasTree::consume` or `GasTree::spent` called on a node creating
1775
+ * negative imbalance which leads to the total value drop below 0.
1776
+ **/
1777
+ TotalValueIsUnderflowed: GenericPalletError<Rv>;
1778
+
1779
+ /**
1780
+ * Generic pallet error
1781
+ **/
1782
+ [error: string]: GenericPalletError<Rv>;
1783
+ };
1784
+ /**
1785
+ * Pallet `Gear`'s errors
1786
+ **/
1787
+ gear: {
1788
+ /**
1789
+ * Message wasn't found in the mailbox.
1790
+ **/
1791
+ MessageNotFound: GenericPalletError<Rv>;
1792
+
1793
+ /**
1794
+ * Not enough balance to execute an action.
1795
+ *
1796
+ * Usually occurs when the gas_limit specified is such that the origin account can't afford the message.
1797
+ **/
1798
+ InsufficientBalance: GenericPalletError<Rv>;
1799
+
1800
+ /**
1801
+ * Gas limit too high.
1802
+ *
1803
+ * Occurs when an extrinsic's declared `gas_limit` is greater than a block's maximum gas limit.
1804
+ **/
1805
+ GasLimitTooHigh: GenericPalletError<Rv>;
1806
+
1807
+ /**
1808
+ * Program already exists.
1809
+ *
1810
+ * Occurs if a program with some specific program id already exists in program storage.
1811
+ **/
1812
+ ProgramAlreadyExists: GenericPalletError<Rv>;
1813
+
1814
+ /**
1815
+ * Program is terminated.
1816
+ *
1817
+ * Program init failed, so such message destination is no longer unavailable.
1818
+ **/
1819
+ InactiveProgram: GenericPalletError<Rv>;
1820
+
1821
+ /**
1822
+ * Message gas tree is not found.
1823
+ *
1824
+ * When a message claimed from the mailbox has a corrupted or non-extant gas tree associated.
1825
+ **/
1826
+ NoMessageTree: GenericPalletError<Rv>;
1827
+
1828
+ /**
1829
+ * Code already exists.
1830
+ *
1831
+ * Occurs when trying to save to storage a program code that has been saved there.
1832
+ **/
1833
+ CodeAlreadyExists: GenericPalletError<Rv>;
1834
+
1835
+ /**
1836
+ * Code does not exist.
1837
+ *
1838
+ * Occurs when trying to get a program code from storage, that doesn't exist.
1839
+ **/
1840
+ CodeDoesntExist: GenericPalletError<Rv>;
1841
+
1842
+ /**
1843
+ * The code supplied to `upload_code` or `upload_program` exceeds the limit specified in the
1844
+ * current schedule.
1845
+ **/
1846
+ CodeTooLarge: GenericPalletError<Rv>;
1847
+
1848
+ /**
1849
+ * Failed to create a program.
1850
+ **/
1851
+ ProgramConstructionFailed: GenericPalletError<Rv>;
1852
+
1853
+ /**
1854
+ * Message queue processing is disabled.
1855
+ **/
1856
+ MessageQueueProcessingDisabled: GenericPalletError<Rv>;
1857
+
1858
+ /**
1859
+ * Block count doesn't cover MinimalResumePeriod.
1860
+ **/
1861
+ ResumePeriodLessThanMinimal: GenericPalletError<Rv>;
1862
+
1863
+ /**
1864
+ * Program with the specified id is not found.
1865
+ **/
1866
+ ProgramNotFound: GenericPalletError<Rv>;
1867
+
1868
+ /**
1869
+ * Gear::run() already included in current block.
1870
+ **/
1871
+ GearRunAlreadyInBlock: GenericPalletError<Rv>;
1872
+
1873
+ /**
1874
+ * The program rent logic is disabled.
1875
+ **/
1876
+ ProgramRentDisabled: GenericPalletError<Rv>;
1877
+
1878
+ /**
1879
+ * Program is active.
1880
+ **/
1881
+ ActiveProgram: GenericPalletError<Rv>;
1882
+
1883
+ /**
1884
+ * Generic pallet error
1885
+ **/
1886
+ [error: string]: GenericPalletError<Rv>;
1887
+ };
1888
+ /**
1889
+ * Pallet `StakingRewards`'s errors
1890
+ **/
1891
+ stakingRewards: {
1892
+ /**
1893
+ * Pool not replenished due to error.
1894
+ **/
1895
+ FailureToRefillPool: GenericPalletError<Rv>;
1896
+
1897
+ /**
1898
+ * Failure to withdraw funds from the rewards pool.
1899
+ **/
1900
+ FailureToWithdrawFromPool: GenericPalletError<Rv>;
1901
+
1902
+ /**
1903
+ * Generic pallet error
1904
+ **/
1905
+ [error: string]: GenericPalletError<Rv>;
1906
+ };
1907
+ /**
1908
+ * Pallet `GearVoucher`'s errors
1909
+ **/
1910
+ gearVoucher: {
1911
+ /**
1912
+ * The origin is not eligible to execute call.
1913
+ **/
1914
+ BadOrigin: GenericPalletError<Rv>;
1915
+
1916
+ /**
1917
+ * Error trying transfer balance to/from voucher account.
1918
+ **/
1919
+ BalanceTransfer: GenericPalletError<Rv>;
1920
+
1921
+ /**
1922
+ * Destination program is not in whitelisted set for voucher.
1923
+ **/
1924
+ InappropriateDestination: GenericPalletError<Rv>;
1925
+
1926
+ /**
1927
+ * Voucher with given identifier doesn't exist for given spender id.
1928
+ **/
1929
+ InexistentVoucher: GenericPalletError<Rv>;
1930
+
1931
+ /**
1932
+ * Voucher still valid and couldn't be revoked.
1933
+ **/
1934
+ IrrevocableYet: GenericPalletError<Rv>;
1935
+
1936
+ /**
1937
+ * Try to whitelist more programs than allowed.
1938
+ **/
1939
+ MaxProgramsLimitExceeded: GenericPalletError<Rv>;
1940
+
1941
+ /**
1942
+ * Failed to query destination of the prepaid call.
1943
+ **/
1944
+ UnknownDestination: GenericPalletError<Rv>;
1945
+
1946
+ /**
1947
+ * Voucher has expired and couldn't be used.
1948
+ **/
1949
+ VoucherExpired: GenericPalletError<Rv>;
1950
+
1951
+ /**
1952
+ * Voucher issue/prolongation duration out of [min; max] constants.
1953
+ **/
1954
+ DurationOutOfBounds: GenericPalletError<Rv>;
1955
+
1956
+ /**
1957
+ * Voucher update function tries to cut voucher ability of code upload.
1958
+ **/
1959
+ CodeUploadingEnabled: GenericPalletError<Rv>;
1960
+
1961
+ /**
1962
+ * Voucher is disabled for code uploading, but requested.
1963
+ **/
1964
+ CodeUploadingDisabled: GenericPalletError<Rv>;
1965
+
1966
+ /**
1967
+ * Generic pallet error
1968
+ **/
1969
+ [error: string]: GenericPalletError<Rv>;
1970
+ };
1971
+ /**
1972
+ * Pallet `GearBank`'s errors
1973
+ **/
1974
+ gearBank: {
1975
+ /**
1976
+ * Insufficient user balance.
1977
+ **/
1978
+ InsufficientBalance: GenericPalletError<Rv>;
1979
+
1980
+ /**
1981
+ * Insufficient user's bank account gas balance.
1982
+ **/
1983
+ InsufficientGasBalance: GenericPalletError<Rv>;
1984
+
1985
+ /**
1986
+ * Insufficient user's bank account gas balance.
1987
+ **/
1988
+ InsufficientValueBalance: GenericPalletError<Rv>;
1989
+
1990
+ /**
1991
+ * Insufficient bank account balance.
1992
+ * **Must be unreachable in Gear main protocol.**
1993
+ **/
1994
+ InsufficientBankBalance: GenericPalletError<Rv>;
1995
+
1996
+ /**
1997
+ * Deposit of funds that will not keep bank account alive.
1998
+ * **Must be unreachable in Gear main protocol.**
1999
+ **/
2000
+ InsufficientDeposit: GenericPalletError<Rv>;
2001
+
2002
+ /**
2003
+ * Overflow during funds transfer.
2004
+ * **Must be unreachable in Gear main protocol.**
2005
+ **/
2006
+ Overflow: GenericPalletError<Rv>;
2007
+
2008
+ /**
2009
+ * Generic pallet error
2010
+ **/
2011
+ [error: string]: GenericPalletError<Rv>;
2012
+ };
2013
+ }