@polkadot/api-augment 16.4.8 → 16.5.1

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.
Files changed (37) hide show
  1. package/assetHubKusama/consts.d.ts +598 -4
  2. package/assetHubKusama/errors.d.ts +1278 -49
  3. package/assetHubKusama/events.d.ts +1691 -127
  4. package/assetHubKusama/query.d.ts +1175 -26
  5. package/assetHubKusama/runtime.d.ts +211 -8
  6. package/assetHubKusama/tx.d.ts +6095 -2628
  7. package/cjs/assetHubKusama/consts.d.ts +598 -4
  8. package/cjs/assetHubKusama/errors.d.ts +1278 -49
  9. package/cjs/assetHubKusama/events.d.ts +1691 -127
  10. package/cjs/assetHubKusama/query.d.ts +1175 -26
  11. package/cjs/assetHubKusama/runtime.d.ts +211 -8
  12. package/cjs/assetHubKusama/tx.d.ts +6095 -2628
  13. package/cjs/kusama/consts.d.ts +46 -104
  14. package/cjs/kusama/errors.d.ts +113 -121
  15. package/cjs/kusama/events.d.ts +258 -228
  16. package/cjs/kusama/query.d.ts +211 -104
  17. package/cjs/kusama/tx.d.ts +451 -236
  18. package/cjs/packageInfo.js +1 -1
  19. package/cjs/polkadot/consts.d.ts +40 -2
  20. package/cjs/polkadot/errors.d.ts +113 -0
  21. package/cjs/polkadot/events.d.ts +247 -1
  22. package/cjs/polkadot/query.d.ts +218 -4
  23. package/cjs/polkadot/runtime.d.ts +15 -1
  24. package/cjs/polkadot/tx.d.ts +399 -12
  25. package/kusama/consts.d.ts +46 -104
  26. package/kusama/errors.d.ts +113 -121
  27. package/kusama/events.d.ts +258 -228
  28. package/kusama/query.d.ts +211 -104
  29. package/kusama/tx.d.ts +451 -236
  30. package/package.json +7 -7
  31. package/packageInfo.js +1 -1
  32. package/polkadot/consts.d.ts +40 -2
  33. package/polkadot/errors.d.ts +113 -0
  34. package/polkadot/events.d.ts +247 -1
  35. package/polkadot/query.d.ts +218 -4
  36. package/polkadot/runtime.d.ts +15 -1
  37. package/polkadot/tx.d.ts +399 -12
@@ -3,6 +3,138 @@ import type { ApiTypes, AugmentedError } from '@polkadot/api-base/types';
3
3
  export type __AugmentedError<ApiType extends ApiTypes> = AugmentedError<ApiType>;
4
4
  declare module '@polkadot/api-base/types/errors' {
5
5
  interface AugmentedErrors<ApiType extends ApiTypes> {
6
+ ahMigrator: {
7
+ /**
8
+ * The XCM version is invalid.
9
+ **/
10
+ BadXcmVersion: AugmentedError<ApiType>;
11
+ /**
12
+ * The DMP queue priority is already set to the same value.
13
+ **/
14
+ DmpQueuePriorityAlreadySet: AugmentedError<ApiType>;
15
+ /**
16
+ * Failed to bound a call.
17
+ **/
18
+ FailedToBoundCall: AugmentedError<ApiType>;
19
+ /**
20
+ * Vector did not fit into its compile-time bound.
21
+ **/
22
+ FailedToBoundVector: AugmentedError<ApiType>;
23
+ /**
24
+ * Checking account overflow or underflow.
25
+ **/
26
+ FailedToCalculateCheckingAccount: AugmentedError<ApiType>;
27
+ /**
28
+ * Failed to convert RC call to AH call.
29
+ **/
30
+ FailedToConvertCall: AugmentedError<ApiType>;
31
+ /**
32
+ * Failed to convert RC type to AH type.
33
+ **/
34
+ FailedToConvertType: AugmentedError<ApiType>;
35
+ /**
36
+ * Failed to integrate a vesting schedule.
37
+ **/
38
+ FailedToIntegrateVestingSchedule: AugmentedError<ApiType>;
39
+ /**
40
+ * Failed to process an account data from RC.
41
+ **/
42
+ FailedToProcessAccount: AugmentedError<ApiType>;
43
+ /**
44
+ * Failed to unreserve deposit.
45
+ **/
46
+ FailedToUnreserveDeposit: AugmentedError<ApiType>;
47
+ /**
48
+ * Some item could not be inserted because it already exists.
49
+ **/
50
+ InsertConflict: AugmentedError<ApiType>;
51
+ /**
52
+ * The origin is invalid.
53
+ **/
54
+ InvalidOrigin: AugmentedError<ApiType>;
55
+ /**
56
+ * Invalid parameter.
57
+ **/
58
+ InvalidParameter: AugmentedError<ApiType>;
59
+ /**
60
+ * Preimage chunk missing.
61
+ **/
62
+ PreimageChunkMissing: AugmentedError<ApiType>;
63
+ /**
64
+ * Preimage missing.
65
+ **/
66
+ PreimageMissing: AugmentedError<ApiType>;
67
+ /**
68
+ * Failed to fetch preimage.
69
+ **/
70
+ PreimageNotFound: AugmentedError<ApiType>;
71
+ /**
72
+ * Preimage status invalid.
73
+ **/
74
+ PreimageStatusInvalid: AugmentedError<ApiType>;
75
+ /**
76
+ * Preimage too big.
77
+ **/
78
+ PreimageTooBig: AugmentedError<ApiType>;
79
+ /**
80
+ * Failed to send XCM message.
81
+ **/
82
+ XcmError: AugmentedError<ApiType>;
83
+ /**
84
+ * Generic error
85
+ **/
86
+ [key: string]: AugmentedError<ApiType>;
87
+ };
88
+ ahOps: {
89
+ /**
90
+ * Not all contributions are withdrawn.
91
+ **/
92
+ ContributionsRemaining: AugmentedError<ApiType>;
93
+ /**
94
+ * Failed to withdraw crowdloan contribution.
95
+ **/
96
+ FailedToWithdrawCrowdloanContribution: AugmentedError<ApiType>;
97
+ /**
98
+ * Internal error, please bug report.
99
+ **/
100
+ InternalError: AugmentedError<ApiType>;
101
+ /**
102
+ * The Asset Hub migration is not completed.
103
+ **/
104
+ MigrationNotCompleted: AugmentedError<ApiType>;
105
+ /**
106
+ * Either no crowdloan contribution or already withdrawn.
107
+ **/
108
+ NoCrowdloanContribution: AugmentedError<ApiType>;
109
+ /**
110
+ * Either no crowdloan reserve or already unreserved.
111
+ **/
112
+ NoCrowdloanReserve: AugmentedError<ApiType>;
113
+ /**
114
+ * Either no lease deposit or already unreserved.
115
+ **/
116
+ NoLeaseReserve: AugmentedError<ApiType>;
117
+ /**
118
+ * Account cannot be migrated since it is not a sovereign parachain account.
119
+ **/
120
+ NotSovereign: AugmentedError<ApiType>;
121
+ /**
122
+ * Block number is not yet reached.
123
+ **/
124
+ NotYet: AugmentedError<ApiType>;
125
+ /**
126
+ * The account is not a derived account.
127
+ **/
128
+ WrongDerivedTranslation: AugmentedError<ApiType>;
129
+ /**
130
+ * The balance is zero.
131
+ **/
132
+ ZeroBalance: AugmentedError<ApiType>;
133
+ /**
134
+ * Generic error
135
+ **/
136
+ [key: string]: AugmentedError<ApiType>;
137
+ };
6
138
  assetConversion: {
7
139
  /**
8
140
  * Provided amount should be greater than or equal to the existential deposit/asset's
@@ -104,6 +236,24 @@ declare module '@polkadot/api-base/types/errors' {
104
236
  **/
105
237
  [key: string]: AugmentedError<ApiType>;
106
238
  };
239
+ assetRate: {
240
+ /**
241
+ * The given asset ID already has an assigned conversion rate and cannot be re-created.
242
+ **/
243
+ AlreadyExists: AugmentedError<ApiType>;
244
+ /**
245
+ * Overflow ocurred when calculating the inverse rate.
246
+ **/
247
+ Overflow: AugmentedError<ApiType>;
248
+ /**
249
+ * The given asset ID is unknown.
250
+ **/
251
+ UnknownAssetKind: AugmentedError<ApiType>;
252
+ /**
253
+ * Generic error
254
+ **/
255
+ [key: string]: AugmentedError<ApiType>;
256
+ };
107
257
  assets: {
108
258
  /**
109
259
  * The asset-account already exists.
@@ -259,6 +409,110 @@ declare module '@polkadot/api-base/types/errors' {
259
409
  **/
260
410
  [key: string]: AugmentedError<ApiType>;
261
411
  };
412
+ bounties: {
413
+ /**
414
+ * The bounty cannot be closed because it has active child bounties.
415
+ **/
416
+ HasActiveChildBounty: AugmentedError<ApiType>;
417
+ /**
418
+ * Proposer's balance is too low.
419
+ **/
420
+ InsufficientProposersBalance: AugmentedError<ApiType>;
421
+ /**
422
+ * Invalid bounty fee.
423
+ **/
424
+ InvalidFee: AugmentedError<ApiType>;
425
+ /**
426
+ * No proposal or bounty at that index.
427
+ **/
428
+ InvalidIndex: AugmentedError<ApiType>;
429
+ /**
430
+ * Invalid bounty value.
431
+ **/
432
+ InvalidValue: AugmentedError<ApiType>;
433
+ /**
434
+ * User is not the proposer of the bounty.
435
+ **/
436
+ NotProposer: AugmentedError<ApiType>;
437
+ /**
438
+ * A bounty payout is pending.
439
+ * To cancel the bounty, you must unassign and slash the curator.
440
+ **/
441
+ PendingPayout: AugmentedError<ApiType>;
442
+ /**
443
+ * The bounties cannot be claimed/closed because it's still in the countdown period.
444
+ **/
445
+ Premature: AugmentedError<ApiType>;
446
+ /**
447
+ * The reason given is just too big.
448
+ **/
449
+ ReasonTooBig: AugmentedError<ApiType>;
450
+ /**
451
+ * Require bounty curator.
452
+ **/
453
+ RequireCurator: AugmentedError<ApiType>;
454
+ /**
455
+ * Too many approvals are already queued.
456
+ **/
457
+ TooManyQueued: AugmentedError<ApiType>;
458
+ /**
459
+ * The bounty status is unexpected.
460
+ **/
461
+ UnexpectedStatus: AugmentedError<ApiType>;
462
+ /**
463
+ * Generic error
464
+ **/
465
+ [key: string]: AugmentedError<ApiType>;
466
+ };
467
+ childBounties: {
468
+ /**
469
+ * The bounty balance is not enough to add new child-bounty.
470
+ **/
471
+ InsufficientBountyBalance: AugmentedError<ApiType>;
472
+ /**
473
+ * The parent bounty is not in active state.
474
+ **/
475
+ ParentBountyNotActive: AugmentedError<ApiType>;
476
+ /**
477
+ * Number of child bounties exceeds limit `MaxActiveChildBountyCount`.
478
+ **/
479
+ TooManyChildBounties: AugmentedError<ApiType>;
480
+ /**
481
+ * Generic error
482
+ **/
483
+ [key: string]: AugmentedError<ApiType>;
484
+ };
485
+ claims: {
486
+ /**
487
+ * Invalid Ethereum signature.
488
+ **/
489
+ InvalidEthereumSignature: AugmentedError<ApiType>;
490
+ /**
491
+ * A needed statement was not included.
492
+ **/
493
+ InvalidStatement: AugmentedError<ApiType>;
494
+ /**
495
+ * There's not enough in the pot to pay out some unvested amount. Generally implies a
496
+ * logic error.
497
+ **/
498
+ PotUnderflow: AugmentedError<ApiType>;
499
+ /**
500
+ * Account ID sending transaction has no claim.
501
+ **/
502
+ SenderHasNoClaim: AugmentedError<ApiType>;
503
+ /**
504
+ * Ethereum address has no claim.
505
+ **/
506
+ SignerHasNoClaim: AugmentedError<ApiType>;
507
+ /**
508
+ * The account already has a vested balance.
509
+ **/
510
+ VestedBalanceExists: AugmentedError<ApiType>;
511
+ /**
512
+ * Generic error
513
+ **/
514
+ [key: string]: AugmentedError<ApiType>;
515
+ };
262
516
  collatorSelection: {
263
517
  /**
264
518
  * Account is already a candidate.
@@ -333,6 +587,119 @@ declare module '@polkadot/api-base/types/errors' {
333
587
  **/
334
588
  [key: string]: AugmentedError<ApiType>;
335
589
  };
590
+ convictionVoting: {
591
+ /**
592
+ * The account is already delegating.
593
+ **/
594
+ AlreadyDelegating: AugmentedError<ApiType>;
595
+ /**
596
+ * The account currently has votes attached to it and the operation cannot succeed until
597
+ * these are removed through `remove_vote`.
598
+ **/
599
+ AlreadyVoting: AugmentedError<ApiType>;
600
+ /**
601
+ * The class ID supplied is invalid.
602
+ **/
603
+ BadClass: AugmentedError<ApiType>;
604
+ /**
605
+ * The class must be supplied since it is not easily determinable from the state.
606
+ **/
607
+ ClassNeeded: AugmentedError<ApiType>;
608
+ /**
609
+ * Too high a balance was provided that the account cannot afford.
610
+ **/
611
+ InsufficientFunds: AugmentedError<ApiType>;
612
+ /**
613
+ * Maximum number of votes reached.
614
+ **/
615
+ MaxVotesReached: AugmentedError<ApiType>;
616
+ /**
617
+ * Delegation to oneself makes no sense.
618
+ **/
619
+ Nonsense: AugmentedError<ApiType>;
620
+ /**
621
+ * The actor has no permission to conduct the action.
622
+ **/
623
+ NoPermission: AugmentedError<ApiType>;
624
+ /**
625
+ * The actor has no permission to conduct the action right now but will do in the future.
626
+ **/
627
+ NoPermissionYet: AugmentedError<ApiType>;
628
+ /**
629
+ * The account is not currently delegating.
630
+ **/
631
+ NotDelegating: AugmentedError<ApiType>;
632
+ /**
633
+ * Poll is not ongoing.
634
+ **/
635
+ NotOngoing: AugmentedError<ApiType>;
636
+ /**
637
+ * The given account did not vote on the poll.
638
+ **/
639
+ NotVoter: AugmentedError<ApiType>;
640
+ /**
641
+ * Generic error
642
+ **/
643
+ [key: string]: AugmentedError<ApiType>;
644
+ };
645
+ delegatedStaking: {
646
+ /**
647
+ * An existing staker cannot perform this action.
648
+ **/
649
+ AlreadyStaking: AugmentedError<ApiType>;
650
+ /**
651
+ * Some corruption in internal state.
652
+ **/
653
+ BadState: AugmentedError<ApiType>;
654
+ /**
655
+ * Delegation conditions are not met.
656
+ *
657
+ * Possible issues are
658
+ * 1) Cannot delegate to self,
659
+ * 2) Cannot delegate to multiple delegates.
660
+ **/
661
+ InvalidDelegation: AugmentedError<ApiType>;
662
+ /**
663
+ * Reward Destination cannot be same as `Agent` account.
664
+ **/
665
+ InvalidRewardDestination: AugmentedError<ApiType>;
666
+ /**
667
+ * Not an existing `Agent` account.
668
+ **/
669
+ NotAgent: AugmentedError<ApiType>;
670
+ /**
671
+ * The account cannot perform this operation.
672
+ **/
673
+ NotAllowed: AugmentedError<ApiType>;
674
+ /**
675
+ * Not a Delegator account.
676
+ **/
677
+ NotDelegator: AugmentedError<ApiType>;
678
+ /**
679
+ * The account does not have enough funds to perform the operation.
680
+ **/
681
+ NotEnoughFunds: AugmentedError<ApiType>;
682
+ /**
683
+ * `Agent` has no pending slash to be applied.
684
+ **/
685
+ NothingToSlash: AugmentedError<ApiType>;
686
+ /**
687
+ * Operation not supported by this pallet.
688
+ **/
689
+ NotSupported: AugmentedError<ApiType>;
690
+ /**
691
+ * Unapplied pending slash restricts operation on `Agent`.
692
+ **/
693
+ UnappliedSlash: AugmentedError<ApiType>;
694
+ /**
695
+ * Failed to withdraw amount from Core Staking.
696
+ **/
697
+ WithdrawFailed: AugmentedError<ApiType>;
698
+ /**
699
+ * Generic error
700
+ **/
701
+ [key: string]: AugmentedError<ApiType>;
702
+ };
336
703
  foreignAssets: {
337
704
  /**
338
705
  * The asset-account already exists.
@@ -434,6 +801,32 @@ declare module '@polkadot/api-base/types/errors' {
434
801
  **/
435
802
  [key: string]: AugmentedError<ApiType>;
436
803
  };
804
+ indices: {
805
+ /**
806
+ * The index was not available.
807
+ **/
808
+ InUse: AugmentedError<ApiType>;
809
+ /**
810
+ * The index was not already assigned.
811
+ **/
812
+ NotAssigned: AugmentedError<ApiType>;
813
+ /**
814
+ * The index is assigned to another account.
815
+ **/
816
+ NotOwner: AugmentedError<ApiType>;
817
+ /**
818
+ * The source and destination accounts are identical.
819
+ **/
820
+ NotTransfer: AugmentedError<ApiType>;
821
+ /**
822
+ * The index is permanent and may not be freed/changed.
823
+ **/
824
+ Permanent: AugmentedError<ApiType>;
825
+ /**
826
+ * Generic error
827
+ **/
828
+ [key: string]: AugmentedError<ApiType>;
829
+ };
437
830
  messageQueue: {
438
831
  /**
439
832
  * The message was already processed and cannot be processed again.
@@ -482,62 +875,132 @@ declare module '@polkadot/api-base/types/errors' {
482
875
  **/
483
876
  [key: string]: AugmentedError<ApiType>;
484
877
  };
485
- multisig: {
878
+ multiBlockElection: {
486
879
  /**
487
- * Call is already approved by this signatory.
880
+ * Triggering the `Fallback` failed.
488
881
  **/
489
- AlreadyApproved: AugmentedError<ApiType>;
882
+ Fallback: AugmentedError<ApiType>;
490
883
  /**
491
- * The data to be stored is already stored.
884
+ * Snapshot was unavailable.
492
885
  **/
493
- AlreadyStored: AugmentedError<ApiType>;
886
+ Snapshot: AugmentedError<ApiType>;
494
887
  /**
495
- * The maximum weight information provided was too low.
888
+ * Unexpected phase
496
889
  **/
497
- MaxWeightTooLow: AugmentedError<ApiType>;
890
+ UnexpectedPhase: AugmentedError<ApiType>;
498
891
  /**
499
- * Threshold must be 2 or greater.
892
+ * Generic error
500
893
  **/
501
- MinimumThreshold: AugmentedError<ApiType>;
894
+ [key: string]: AugmentedError<ApiType>;
895
+ };
896
+ multiBlockElectionSigned: {
502
897
  /**
503
- * Call doesn't need any (more) approvals.
898
+ * The page index is out of bounds.
504
899
  **/
505
- NoApprovalsNeeded: AugmentedError<ApiType>;
900
+ BadPageIndex: AugmentedError<ApiType>;
506
901
  /**
507
- * Multisig operation not found in storage.
902
+ * Bad witness data provided.
508
903
  **/
509
- NotFound: AugmentedError<ApiType>;
904
+ BadWitnessData: AugmentedError<ApiType>;
510
905
  /**
511
- * No timepoint was given, yet the multisig operation is already underway.
906
+ * The submission is a duplicate.
512
907
  **/
513
- NoTimepoint: AugmentedError<ApiType>;
908
+ Duplicate: AugmentedError<ApiType>;
514
909
  /**
515
- * Only the account that originally created the multisig is able to cancel it or update
516
- * its deposits.
910
+ * No submission found.
517
911
  **/
518
- NotOwner: AugmentedError<ApiType>;
912
+ NoSubmission: AugmentedError<ApiType>;
519
913
  /**
520
- * The sender was contained in the other signatories; it shouldn't be.
914
+ * The account is not registered.
521
915
  **/
522
- SenderInSignatories: AugmentedError<ApiType>;
916
+ NotRegistered: AugmentedError<ApiType>;
523
917
  /**
524
- * The signatories were provided out of order; they should be ordered.
918
+ * The phase is not signed.
525
919
  **/
526
- SignatoriesOutOfOrder: AugmentedError<ApiType>;
920
+ PhaseNotSigned: AugmentedError<ApiType>;
527
921
  /**
528
- * There are too few signatories in the list.
922
+ * The queue is full.
529
923
  **/
530
- TooFewSignatories: AugmentedError<ApiType>;
924
+ QueueFull: AugmentedError<ApiType>;
531
925
  /**
532
- * There are too many signatories in the list.
926
+ * Round is not yet over.
533
927
  **/
534
- TooManySignatories: AugmentedError<ApiType>;
928
+ RoundNotOver: AugmentedError<ApiType>;
535
929
  /**
536
- * A timepoint was given, yet no multisig operation is underway.
930
+ * Too many invulnerable accounts are provided,
537
931
  **/
538
- UnexpectedTimepoint: AugmentedError<ApiType>;
932
+ TooManyInvulnerables: AugmentedError<ApiType>;
539
933
  /**
540
- * A different timepoint was given to the multisig operation that is underway.
934
+ * Generic error
935
+ **/
936
+ [key: string]: AugmentedError<ApiType>;
937
+ };
938
+ multiBlockMigrations: {
939
+ /**
940
+ * The operation cannot complete since some MBMs are ongoing.
941
+ **/
942
+ Ongoing: AugmentedError<ApiType>;
943
+ /**
944
+ * Generic error
945
+ **/
946
+ [key: string]: AugmentedError<ApiType>;
947
+ };
948
+ multisig: {
949
+ /**
950
+ * Call is already approved by this signatory.
951
+ **/
952
+ AlreadyApproved: AugmentedError<ApiType>;
953
+ /**
954
+ * The data to be stored is already stored.
955
+ **/
956
+ AlreadyStored: AugmentedError<ApiType>;
957
+ /**
958
+ * The maximum weight information provided was too low.
959
+ **/
960
+ MaxWeightTooLow: AugmentedError<ApiType>;
961
+ /**
962
+ * Threshold must be 2 or greater.
963
+ **/
964
+ MinimumThreshold: AugmentedError<ApiType>;
965
+ /**
966
+ * Call doesn't need any (more) approvals.
967
+ **/
968
+ NoApprovalsNeeded: AugmentedError<ApiType>;
969
+ /**
970
+ * Multisig operation not found in storage.
971
+ **/
972
+ NotFound: AugmentedError<ApiType>;
973
+ /**
974
+ * No timepoint was given, yet the multisig operation is already underway.
975
+ **/
976
+ NoTimepoint: AugmentedError<ApiType>;
977
+ /**
978
+ * Only the account that originally created the multisig is able to cancel it or update
979
+ * its deposits.
980
+ **/
981
+ NotOwner: AugmentedError<ApiType>;
982
+ /**
983
+ * The sender was contained in the other signatories; it shouldn't be.
984
+ **/
985
+ SenderInSignatories: AugmentedError<ApiType>;
986
+ /**
987
+ * The signatories were provided out of order; they should be ordered.
988
+ **/
989
+ SignatoriesOutOfOrder: AugmentedError<ApiType>;
990
+ /**
991
+ * There are too few signatories in the list.
992
+ **/
993
+ TooFewSignatories: AugmentedError<ApiType>;
994
+ /**
995
+ * There are too many signatories in the list.
996
+ **/
997
+ TooManySignatories: AugmentedError<ApiType>;
998
+ /**
999
+ * A timepoint was given, yet no multisig operation is underway.
1000
+ **/
1001
+ UnexpectedTimepoint: AugmentedError<ApiType>;
1002
+ /**
1003
+ * A different timepoint was given to the multisig operation that is underway.
541
1004
  **/
542
1005
  WrongTimepoint: AugmentedError<ApiType>;
543
1006
  /**
@@ -753,6 +1216,173 @@ declare module '@polkadot/api-base/types/errors' {
753
1216
  **/
754
1217
  [key: string]: AugmentedError<ApiType>;
755
1218
  };
1219
+ nominationPools: {
1220
+ /**
1221
+ * An account is already delegating in another pool. An account may only belong to one
1222
+ * pool at a time.
1223
+ **/
1224
+ AccountBelongsToOtherPool: AugmentedError<ApiType>;
1225
+ /**
1226
+ * The pool or member delegation has already migrated to delegate stake.
1227
+ **/
1228
+ AlreadyMigrated: AugmentedError<ApiType>;
1229
+ /**
1230
+ * Bonding extra is restricted to the exact pending reward amount.
1231
+ **/
1232
+ BondExtraRestricted: AugmentedError<ApiType>;
1233
+ /**
1234
+ * The pools state cannot be changed.
1235
+ **/
1236
+ CanNotChangeState: AugmentedError<ApiType>;
1237
+ /**
1238
+ * None of the funds can be withdrawn yet because the bonding duration has not passed.
1239
+ **/
1240
+ CannotWithdrawAny: AugmentedError<ApiType>;
1241
+ /**
1242
+ * The submitted changes to commission change rate are not allowed.
1243
+ **/
1244
+ CommissionChangeRateNotAllowed: AugmentedError<ApiType>;
1245
+ /**
1246
+ * Not enough blocks have surpassed since the last commission update.
1247
+ **/
1248
+ CommissionChangeThrottled: AugmentedError<ApiType>;
1249
+ /**
1250
+ * The supplied commission exceeds global maximum commission.
1251
+ **/
1252
+ CommissionExceedsGlobalMaximum: AugmentedError<ApiType>;
1253
+ /**
1254
+ * The supplied commission exceeds the max allowed commission.
1255
+ **/
1256
+ CommissionExceedsMaximum: AugmentedError<ApiType>;
1257
+ /**
1258
+ * Some error occurred that should never happen. This should be reported to the
1259
+ * maintainers.
1260
+ **/
1261
+ Defensive: AugmentedError<ApiType>;
1262
+ /**
1263
+ * The caller does not have adequate permissions.
1264
+ **/
1265
+ DoesNotHavePermission: AugmentedError<ApiType>;
1266
+ /**
1267
+ * The member is fully unbonded (and thus cannot access the bonded and reward pool
1268
+ * anymore to, for example, collect rewards).
1269
+ **/
1270
+ FullyUnbonding: AugmentedError<ApiType>;
1271
+ /**
1272
+ * Pool id provided is not correct/usable.
1273
+ **/
1274
+ InvalidPoolId: AugmentedError<ApiType>;
1275
+ /**
1276
+ * The pool's max commission cannot be set higher than the existing value.
1277
+ **/
1278
+ MaxCommissionRestricted: AugmentedError<ApiType>;
1279
+ /**
1280
+ * Too many members in the pool or system.
1281
+ **/
1282
+ MaxPoolMembers: AugmentedError<ApiType>;
1283
+ /**
1284
+ * The system is maxed out on pools.
1285
+ **/
1286
+ MaxPools: AugmentedError<ApiType>;
1287
+ /**
1288
+ * The member cannot unbond further chunks due to reaching the limit.
1289
+ **/
1290
+ MaxUnbondingLimit: AugmentedError<ApiType>;
1291
+ /**
1292
+ * Metadata exceeds [`Config::MaxMetadataLen`]
1293
+ **/
1294
+ MetadataExceedsMaxLen: AugmentedError<ApiType>;
1295
+ /**
1296
+ * The amount does not meet the minimum bond to either join or create a pool.
1297
+ *
1298
+ * The depositor can never unbond to a value less than `Pallet::depositor_min_bond`. The
1299
+ * caller does not have nominating permissions for the pool. Members can never unbond to a
1300
+ * value below `MinJoinBond`.
1301
+ **/
1302
+ MinimumBondNotMet: AugmentedError<ApiType>;
1303
+ /**
1304
+ * No commission current has been set.
1305
+ **/
1306
+ NoCommissionCurrentSet: AugmentedError<ApiType>;
1307
+ /**
1308
+ * There is no pending commission to claim.
1309
+ **/
1310
+ NoPendingCommission: AugmentedError<ApiType>;
1311
+ /**
1312
+ * A pool must be in [`PoolState::Destroying`] in order for the depositor to unbond or for
1313
+ * other members to be permissionlessly unbonded.
1314
+ **/
1315
+ NotDestroying: AugmentedError<ApiType>;
1316
+ /**
1317
+ * No imbalance in the ED deposit for the pool.
1318
+ **/
1319
+ NothingToAdjust: AugmentedError<ApiType>;
1320
+ /**
1321
+ * No slash pending that can be applied to the member.
1322
+ **/
1323
+ NothingToSlash: AugmentedError<ApiType>;
1324
+ /**
1325
+ * Either a) the caller cannot make a valid kick or b) the pool is not destroying.
1326
+ **/
1327
+ NotKickerOrDestroying: AugmentedError<ApiType>;
1328
+ /**
1329
+ * The pool or member delegation has not migrated yet to delegate stake.
1330
+ **/
1331
+ NotMigrated: AugmentedError<ApiType>;
1332
+ /**
1333
+ * The caller does not have nominating permissions for the pool.
1334
+ **/
1335
+ NotNominator: AugmentedError<ApiType>;
1336
+ /**
1337
+ * The pool is not open to join
1338
+ **/
1339
+ NotOpen: AugmentedError<ApiType>;
1340
+ /**
1341
+ * This call is not allowed in the current state of the pallet.
1342
+ **/
1343
+ NotSupported: AugmentedError<ApiType>;
1344
+ /**
1345
+ * The transaction could not be executed due to overflow risk for the pool.
1346
+ **/
1347
+ OverflowRisk: AugmentedError<ApiType>;
1348
+ /**
1349
+ * Partial unbonding now allowed permissionlessly.
1350
+ **/
1351
+ PartialUnbondNotAllowedPermissionlessly: AugmentedError<ApiType>;
1352
+ /**
1353
+ * Pool id currently in use.
1354
+ **/
1355
+ PoolIdInUse: AugmentedError<ApiType>;
1356
+ /**
1357
+ * An account is not a member.
1358
+ **/
1359
+ PoolMemberNotFound: AugmentedError<ApiType>;
1360
+ /**
1361
+ * A (bonded) pool id does not exist.
1362
+ **/
1363
+ PoolNotFound: AugmentedError<ApiType>;
1364
+ /**
1365
+ * Account is restricted from participation in pools. This may happen if the account is
1366
+ * staking in another way already.
1367
+ **/
1368
+ Restricted: AugmentedError<ApiType>;
1369
+ /**
1370
+ * A reward pool does not exist. In all cases this is a system logic error.
1371
+ **/
1372
+ RewardPoolNotFound: AugmentedError<ApiType>;
1373
+ /**
1374
+ * The slash amount is too low to be applied.
1375
+ **/
1376
+ SlashTooLow: AugmentedError<ApiType>;
1377
+ /**
1378
+ * A sub pool does not exist.
1379
+ **/
1380
+ SubPoolsNotFound: AugmentedError<ApiType>;
1381
+ /**
1382
+ * Generic error
1383
+ **/
1384
+ [key: string]: AugmentedError<ApiType>;
1385
+ };
756
1386
  parachainSystem: {
757
1387
  /**
758
1388
  * The inherent which supplies the host configuration did not run this block.
@@ -854,6 +1484,11 @@ declare module '@polkadot/api-base/types/errors' {
854
1484
  * Local XCM execution incomplete.
855
1485
  **/
856
1486
  LocalExecutionIncomplete: AugmentedError<ApiType>;
1487
+ /**
1488
+ * Local XCM execution incomplete with the actual XCM error and the index of the
1489
+ * instruction that caused the error.
1490
+ **/
1491
+ LocalExecutionIncompleteWithError: AugmentedError<ApiType>;
857
1492
  /**
858
1493
  * A remote lock with the corresponding data could not be found.
859
1494
  **/
@@ -1002,6 +1637,44 @@ declare module '@polkadot/api-base/types/errors' {
1002
1637
  **/
1003
1638
  [key: string]: AugmentedError<ApiType>;
1004
1639
  };
1640
+ preimage: {
1641
+ /**
1642
+ * Preimage has already been noted on-chain.
1643
+ **/
1644
+ AlreadyNoted: AugmentedError<ApiType>;
1645
+ /**
1646
+ * The user is not authorized to perform this action.
1647
+ **/
1648
+ NotAuthorized: AugmentedError<ApiType>;
1649
+ /**
1650
+ * The preimage cannot be removed since it has not yet been noted.
1651
+ **/
1652
+ NotNoted: AugmentedError<ApiType>;
1653
+ /**
1654
+ * The preimage request cannot be removed since no outstanding requests exist.
1655
+ **/
1656
+ NotRequested: AugmentedError<ApiType>;
1657
+ /**
1658
+ * A preimage may not be removed when there are outstanding requests.
1659
+ **/
1660
+ Requested: AugmentedError<ApiType>;
1661
+ /**
1662
+ * Preimage is too large to store on-chain.
1663
+ **/
1664
+ TooBig: AugmentedError<ApiType>;
1665
+ /**
1666
+ * Too few hashes were requested to be upgraded (i.e. zero).
1667
+ **/
1668
+ TooFew: AugmentedError<ApiType>;
1669
+ /**
1670
+ * More than `MAX_HASH_UPGRADE_BULK_COUNT` hashes were requested to be upgraded at once.
1671
+ **/
1672
+ TooMany: AugmentedError<ApiType>;
1673
+ /**
1674
+ * Generic error
1675
+ **/
1676
+ [key: string]: AugmentedError<ApiType>;
1677
+ };
1005
1678
  proxy: {
1006
1679
  /**
1007
1680
  * Account is already a proxy.
@@ -1040,6 +1713,138 @@ declare module '@polkadot/api-base/types/errors' {
1040
1713
  **/
1041
1714
  [key: string]: AugmentedError<ApiType>;
1042
1715
  };
1716
+ recovery: {
1717
+ /**
1718
+ * This account is already set up for recovery
1719
+ **/
1720
+ AlreadyProxy: AugmentedError<ApiType>;
1721
+ /**
1722
+ * This account is already set up for recovery
1723
+ **/
1724
+ AlreadyRecoverable: AugmentedError<ApiType>;
1725
+ /**
1726
+ * A recovery process has already started for this account
1727
+ **/
1728
+ AlreadyStarted: AugmentedError<ApiType>;
1729
+ /**
1730
+ * This user has already vouched for this recovery
1731
+ **/
1732
+ AlreadyVouched: AugmentedError<ApiType>;
1733
+ /**
1734
+ * Some internal state is broken.
1735
+ **/
1736
+ BadState: AugmentedError<ApiType>;
1737
+ /**
1738
+ * The friend must wait until the delay period to vouch for this recovery
1739
+ **/
1740
+ DelayPeriod: AugmentedError<ApiType>;
1741
+ /**
1742
+ * Friends list must be less than max friends
1743
+ **/
1744
+ MaxFriends: AugmentedError<ApiType>;
1745
+ /**
1746
+ * User is not allowed to make a call on behalf of this account
1747
+ **/
1748
+ NotAllowed: AugmentedError<ApiType>;
1749
+ /**
1750
+ * Friends list must be greater than zero and threshold
1751
+ **/
1752
+ NotEnoughFriends: AugmentedError<ApiType>;
1753
+ /**
1754
+ * This account is not a friend who can vouch
1755
+ **/
1756
+ NotFriend: AugmentedError<ApiType>;
1757
+ /**
1758
+ * This account is not set up for recovery
1759
+ **/
1760
+ NotRecoverable: AugmentedError<ApiType>;
1761
+ /**
1762
+ * Friends list must be sorted and free of duplicates
1763
+ **/
1764
+ NotSorted: AugmentedError<ApiType>;
1765
+ /**
1766
+ * A recovery process has not started for this rescuer
1767
+ **/
1768
+ NotStarted: AugmentedError<ApiType>;
1769
+ /**
1770
+ * There are still active recovery attempts that need to be closed
1771
+ **/
1772
+ StillActive: AugmentedError<ApiType>;
1773
+ /**
1774
+ * The threshold for recovering this account has not been met
1775
+ **/
1776
+ Threshold: AugmentedError<ApiType>;
1777
+ /**
1778
+ * Threshold must be greater than zero
1779
+ **/
1780
+ ZeroThreshold: AugmentedError<ApiType>;
1781
+ /**
1782
+ * Generic error
1783
+ **/
1784
+ [key: string]: AugmentedError<ApiType>;
1785
+ };
1786
+ referenda: {
1787
+ /**
1788
+ * The referendum index provided is invalid in this context.
1789
+ **/
1790
+ BadReferendum: AugmentedError<ApiType>;
1791
+ /**
1792
+ * The referendum status is invalid for this operation.
1793
+ **/
1794
+ BadStatus: AugmentedError<ApiType>;
1795
+ /**
1796
+ * The track identifier given was invalid.
1797
+ **/
1798
+ BadTrack: AugmentedError<ApiType>;
1799
+ /**
1800
+ * There are already a full complement of referenda in progress for this track.
1801
+ **/
1802
+ Full: AugmentedError<ApiType>;
1803
+ /**
1804
+ * Referendum's decision deposit is already paid.
1805
+ **/
1806
+ HasDeposit: AugmentedError<ApiType>;
1807
+ /**
1808
+ * The deposit cannot be refunded since none was made.
1809
+ **/
1810
+ NoDeposit: AugmentedError<ApiType>;
1811
+ /**
1812
+ * The deposit refunder is not the depositor.
1813
+ **/
1814
+ NoPermission: AugmentedError<ApiType>;
1815
+ /**
1816
+ * There was nothing to do in the advancement.
1817
+ **/
1818
+ NothingToDo: AugmentedError<ApiType>;
1819
+ /**
1820
+ * Referendum is not ongoing.
1821
+ **/
1822
+ NotOngoing: AugmentedError<ApiType>;
1823
+ /**
1824
+ * No track exists for the proposal origin.
1825
+ **/
1826
+ NoTrack: AugmentedError<ApiType>;
1827
+ /**
1828
+ * The preimage does not exist.
1829
+ **/
1830
+ PreimageNotExist: AugmentedError<ApiType>;
1831
+ /**
1832
+ * The preimage is stored with a different length than the one provided.
1833
+ **/
1834
+ PreimageStoredWithDifferentLength: AugmentedError<ApiType>;
1835
+ /**
1836
+ * The queue of the track is empty.
1837
+ **/
1838
+ QueueEmpty: AugmentedError<ApiType>;
1839
+ /**
1840
+ * Any deposit cannot be refunded until after the decision is over.
1841
+ **/
1842
+ Unfinished: AugmentedError<ApiType>;
1843
+ /**
1844
+ * Generic error
1845
+ **/
1846
+ [key: string]: AugmentedError<ApiType>;
1847
+ };
1043
1848
  remoteProxyRelayChain: {
1044
1849
  /**
1045
1850
  * The local account id could not converted to the remote account id.
@@ -1097,6 +1902,10 @@ declare module '@polkadot/api-base/types/errors' {
1097
1902
  * The code blob supplied is larger than [`limits::code::BLOB_BYTES`].
1098
1903
  **/
1099
1904
  BlobTooLarge: AugmentedError<ApiType>;
1905
+ /**
1906
+ * The calldata exceeds [`limits::CALLDATA_BYTES`].
1907
+ **/
1908
+ CallDataTooLarge: AugmentedError<ApiType>;
1100
1909
  /**
1101
1910
  * Can not add a delegate dependency to the code hash of the contract itself.
1102
1911
  **/
@@ -1135,10 +1944,6 @@ declare module '@polkadot/api-base/types/errors' {
1135
1944
  * Contract trapped during execution.
1136
1945
  **/
1137
1946
  ContractTrapped: AugmentedError<ApiType>;
1138
- /**
1139
- * Failed to convert an EVM balance to a native balance.
1140
- **/
1141
- DecimalPrecisionLoss: AugmentedError<ApiType>;
1142
1947
  /**
1143
1948
  * Input passed to a contract API function failed to decode as expected type.
1144
1949
  **/
@@ -1201,12 +2006,6 @@ declare module '@polkadot/api-base/types/errors' {
1201
2006
  * The contract has reached its maximum number of delegate dependencies.
1202
2007
  **/
1203
2008
  MaxDelegateDependenciesReached: AugmentedError<ApiType>;
1204
- /**
1205
- * The chain does not provide a chain extension. Calling the chain extension results
1206
- * in this error. Note that this usually shouldn't happen as deploying such contracts
1207
- * is rejected.
1208
- **/
1209
- NoChainExtension: AugmentedError<ApiType>;
1210
2009
  /**
1211
2010
  * A buffer outside of sandbox memory was passed to a contract API function.
1212
2011
  **/
@@ -1219,10 +2018,6 @@ declare module '@polkadot/api-base/types/errors' {
1219
2018
  * Can not add more data to transient storage.
1220
2019
  **/
1221
2020
  OutOfTransientStorage: AugmentedError<ApiType>;
1222
- /**
1223
- * Precompile Error
1224
- **/
1225
- PrecompileFailure: AugmentedError<ApiType>;
1226
2021
  /**
1227
2022
  * A contract called into the runtime which then called back into this pallet.
1228
2023
  **/
@@ -1235,13 +2030,16 @@ declare module '@polkadot/api-base/types/errors' {
1235
2030
  * The refcount of a code either over or underflowed.
1236
2031
  **/
1237
2032
  RefcountOverOrUnderflow: AugmentedError<ApiType>;
2033
+ /**
2034
+ * The return data exceeds [`limits::CALLDATA_BYTES`].
2035
+ **/
2036
+ ReturnDataTooLarge: AugmentedError<ApiType>;
1238
2037
  /**
1239
2038
  * A contract attempted to invoke a state modifying API while being in read-only mode.
1240
2039
  **/
1241
2040
  StateChangeDenied: AugmentedError<ApiType>;
1242
2041
  /**
1243
- * The static memory consumption of the blob will be larger than
1244
- * [`limits::code::STATIC_MEMORY_BYTES`].
2042
+ * The contract declares too much memory (ro + rw + stack).
1245
2043
  **/
1246
2044
  StaticMemoryTooLarge: AugmentedError<ApiType>;
1247
2045
  /**
@@ -1273,17 +2071,39 @@ declare module '@polkadot/api-base/types/errors' {
1273
2071
  **/
1274
2072
  TransferFailed: AugmentedError<ApiType>;
1275
2073
  /**
1276
- * Unsupported precompile address
2074
+ * Unsupported precompile address.
1277
2075
  **/
1278
2076
  UnsupportedPrecompileAddress: AugmentedError<ApiType>;
1279
2077
  /**
1280
- * The size defined in `T::MaxValueSize` was exceeded.
2078
+ * Event body or storage item exceeds [`limits::PAYLOAD_BYTES`].
1281
2079
  **/
1282
2080
  ValueTooLarge: AugmentedError<ApiType>;
1283
2081
  /**
1284
- * Failed to decode the XCM program.
2082
+ * Generic error
2083
+ **/
2084
+ [key: string]: AugmentedError<ApiType>;
2085
+ };
2086
+ scheduler: {
2087
+ /**
2088
+ * Failed to schedule a call
1285
2089
  **/
1286
- XCMDecodeFailed: AugmentedError<ApiType>;
2090
+ FailedToSchedule: AugmentedError<ApiType>;
2091
+ /**
2092
+ * Attempt to use a non-named function on a named task.
2093
+ **/
2094
+ Named: AugmentedError<ApiType>;
2095
+ /**
2096
+ * Cannot find the scheduled call.
2097
+ **/
2098
+ NotFound: AugmentedError<ApiType>;
2099
+ /**
2100
+ * Reschedule failed because it does not change scheduled time.
2101
+ **/
2102
+ RescheduleNoChange: AugmentedError<ApiType>;
2103
+ /**
2104
+ * Given target block number is in the past.
2105
+ **/
2106
+ TargetBlockNumberInPast: AugmentedError<ApiType>;
1287
2107
  /**
1288
2108
  * Generic error
1289
2109
  **/
@@ -1315,6 +2135,300 @@ declare module '@polkadot/api-base/types/errors' {
1315
2135
  **/
1316
2136
  [key: string]: AugmentedError<ApiType>;
1317
2137
  };
2138
+ society: {
2139
+ /**
2140
+ * User has already made a bid.
2141
+ **/
2142
+ AlreadyBid: AugmentedError<ApiType>;
2143
+ /**
2144
+ * User is already a candidate.
2145
+ **/
2146
+ AlreadyCandidate: AugmentedError<ApiType>;
2147
+ /**
2148
+ * The member is already elevated to this rank.
2149
+ **/
2150
+ AlreadyElevated: AugmentedError<ApiType>;
2151
+ /**
2152
+ * Society already founded.
2153
+ **/
2154
+ AlreadyFounded: AugmentedError<ApiType>;
2155
+ /**
2156
+ * User is already a member.
2157
+ **/
2158
+ AlreadyMember: AugmentedError<ApiType>;
2159
+ /**
2160
+ * The skeptic has already been punished for this offence.
2161
+ **/
2162
+ AlreadyPunished: AugmentedError<ApiType>;
2163
+ /**
2164
+ * Member is already vouching or banned from vouching again.
2165
+ **/
2166
+ AlreadyVouching: AugmentedError<ApiType>;
2167
+ /**
2168
+ * The candidacy cannot be dropped as the candidate was clearly approved.
2169
+ **/
2170
+ Approved: AugmentedError<ApiType>;
2171
+ /**
2172
+ * The skeptic need not vote on candidates from expired rounds.
2173
+ **/
2174
+ Expired: AugmentedError<ApiType>;
2175
+ /**
2176
+ * Cannot remove the founder.
2177
+ **/
2178
+ Founder: AugmentedError<ApiType>;
2179
+ /**
2180
+ * Cannot remove the head of the chain.
2181
+ **/
2182
+ Head: AugmentedError<ApiType>;
2183
+ /**
2184
+ * The candidacy cannot be concluded as the voting is still in progress.
2185
+ **/
2186
+ InProgress: AugmentedError<ApiType>;
2187
+ /**
2188
+ * Funds are insufficient to pay off society debts.
2189
+ **/
2190
+ InsufficientFunds: AugmentedError<ApiType>;
2191
+ /**
2192
+ * Not enough in pot to accept candidate.
2193
+ **/
2194
+ InsufficientPot: AugmentedError<ApiType>;
2195
+ /**
2196
+ * Too many members in the society.
2197
+ **/
2198
+ MaxMembers: AugmentedError<ApiType>;
2199
+ /**
2200
+ * There is no defender currently.
2201
+ **/
2202
+ NoDefender: AugmentedError<ApiType>;
2203
+ /**
2204
+ * There is no deposit associated with a bid.
2205
+ **/
2206
+ NoDeposit: AugmentedError<ApiType>;
2207
+ /**
2208
+ * Nothing to payout.
2209
+ **/
2210
+ NoPayout: AugmentedError<ApiType>;
2211
+ /**
2212
+ * The membership cannot be claimed as the candidate was not clearly approved.
2213
+ **/
2214
+ NotApproved: AugmentedError<ApiType>;
2215
+ /**
2216
+ * User is not a bidder.
2217
+ **/
2218
+ NotBidder: AugmentedError<ApiType>;
2219
+ /**
2220
+ * User is not a candidate.
2221
+ **/
2222
+ NotCandidate: AugmentedError<ApiType>;
2223
+ /**
2224
+ * The caller is not the founder.
2225
+ **/
2226
+ NotFounder: AugmentedError<ApiType>;
2227
+ /**
2228
+ * Group doesn't exist.
2229
+ **/
2230
+ NotGroup: AugmentedError<ApiType>;
2231
+ /**
2232
+ * The caller is not the head.
2233
+ **/
2234
+ NotHead: AugmentedError<ApiType>;
2235
+ /**
2236
+ * User is not a member.
2237
+ **/
2238
+ NotMember: AugmentedError<ApiType>;
2239
+ /**
2240
+ * The candidate cannot be kicked as the candidate was not clearly rejected.
2241
+ **/
2242
+ NotRejected: AugmentedError<ApiType>;
2243
+ /**
2244
+ * User is not suspended.
2245
+ **/
2246
+ NotSuspended: AugmentedError<ApiType>;
2247
+ /**
2248
+ * Member is not vouching.
2249
+ **/
2250
+ NotVouchingOnBidder: AugmentedError<ApiType>;
2251
+ /**
2252
+ * The candidate/defender has no stale votes to remove.
2253
+ **/
2254
+ NoVotes: AugmentedError<ApiType>;
2255
+ /**
2256
+ * The candidacy cannot be bestowed as the candidate was clearly rejected.
2257
+ **/
2258
+ Rejected: AugmentedError<ApiType>;
2259
+ /**
2260
+ * User is suspended.
2261
+ **/
2262
+ Suspended: AugmentedError<ApiType>;
2263
+ /**
2264
+ * The candidacy cannot be pruned until a full additional intake period has passed.
2265
+ **/
2266
+ TooEarly: AugmentedError<ApiType>;
2267
+ /**
2268
+ * The skeptic already voted.
2269
+ **/
2270
+ Voted: AugmentedError<ApiType>;
2271
+ /**
2272
+ * Generic error
2273
+ **/
2274
+ [key: string]: AugmentedError<ApiType>;
2275
+ };
2276
+ staking: {
2277
+ /**
2278
+ * Stash is already bonded.
2279
+ **/
2280
+ AlreadyBonded: AugmentedError<ApiType>;
2281
+ /**
2282
+ * Rewards for this era have already been claimed for this validator.
2283
+ **/
2284
+ AlreadyClaimed: AugmentedError<ApiType>;
2285
+ /**
2286
+ * The stake of this account is already migrated to `Fungible` holds.
2287
+ **/
2288
+ AlreadyMigrated: AugmentedError<ApiType>;
2289
+ /**
2290
+ * Controller is already paired.
2291
+ **/
2292
+ AlreadyPaired: AugmentedError<ApiType>;
2293
+ /**
2294
+ * Internal state has become somehow corrupted and the operation cannot continue.
2295
+ **/
2296
+ BadState: AugmentedError<ApiType>;
2297
+ /**
2298
+ * A nomination target was supplied that was blocked or otherwise not a validator.
2299
+ **/
2300
+ BadTarget: AugmentedError<ApiType>;
2301
+ /**
2302
+ * Some bound is not met.
2303
+ **/
2304
+ BoundNotMet: AugmentedError<ApiType>;
2305
+ /**
2306
+ * The slash has been cancelled and cannot be applied.
2307
+ **/
2308
+ CancelledSlash: AugmentedError<ApiType>;
2309
+ /**
2310
+ * The user has enough bond and thus cannot be chilled forcefully by an external person.
2311
+ **/
2312
+ CannotChillOther: AugmentedError<ApiType>;
2313
+ /**
2314
+ * Stash could not be reaped as other pallet might depend on it.
2315
+ **/
2316
+ CannotReapStash: AugmentedError<ApiType>;
2317
+ /**
2318
+ * Cannot reset a ledger.
2319
+ **/
2320
+ CannotRestoreLedger: AugmentedError<ApiType>;
2321
+ /**
2322
+ * Commission is too low. Must be at least `MinCommission`.
2323
+ **/
2324
+ CommissionTooLow: AugmentedError<ApiType>;
2325
+ /**
2326
+ * Used when attempting to use deprecated controller account logic.
2327
+ **/
2328
+ ControllerDeprecated: AugmentedError<ApiType>;
2329
+ /**
2330
+ * Duplicate index.
2331
+ **/
2332
+ DuplicateIndex: AugmentedError<ApiType>;
2333
+ /**
2334
+ * Targets cannot be empty.
2335
+ **/
2336
+ EmptyTargets: AugmentedError<ApiType>;
2337
+ /**
2338
+ * The era is not eligible for pruning.
2339
+ **/
2340
+ EraNotPrunable: AugmentedError<ApiType>;
2341
+ /**
2342
+ * Era not yet started.
2343
+ **/
2344
+ EraNotStarted: AugmentedError<ApiType>;
2345
+ /**
2346
+ * Attempting to target a stash that still has funds.
2347
+ **/
2348
+ FundedTarget: AugmentedError<ApiType>;
2349
+ /**
2350
+ * Incorrect previous history depth input provided.
2351
+ **/
2352
+ IncorrectHistoryDepth: AugmentedError<ApiType>;
2353
+ /**
2354
+ * Cannot bond, nominate or validate with value less than the minimum defined by
2355
+ * governance (see `MinValidatorBond` and `MinNominatorBond`). If unbonding is the
2356
+ * intention, `chill` first to remove one's role as validator/nominator.
2357
+ **/
2358
+ InsufficientBond: AugmentedError<ApiType>;
2359
+ /**
2360
+ * Invalid era to reward.
2361
+ **/
2362
+ InvalidEraToReward: AugmentedError<ApiType>;
2363
+ /**
2364
+ * Invalid number of nominations.
2365
+ **/
2366
+ InvalidNumberOfNominations: AugmentedError<ApiType>;
2367
+ /**
2368
+ * No nominators exist on this page.
2369
+ **/
2370
+ InvalidPage: AugmentedError<ApiType>;
2371
+ /**
2372
+ * Slash record not found.
2373
+ **/
2374
+ InvalidSlashRecord: AugmentedError<ApiType>;
2375
+ /**
2376
+ * Can not schedule more unlock chunks.
2377
+ **/
2378
+ NoMoreChunks: AugmentedError<ApiType>;
2379
+ /**
2380
+ * Not a controller account.
2381
+ **/
2382
+ NotController: AugmentedError<ApiType>;
2383
+ /**
2384
+ * Not enough funds available to withdraw.
2385
+ **/
2386
+ NotEnoughFunds: AugmentedError<ApiType>;
2387
+ /**
2388
+ * Not a stash account.
2389
+ **/
2390
+ NotStash: AugmentedError<ApiType>;
2391
+ /**
2392
+ * Can not rebond without unlocking chunks.
2393
+ **/
2394
+ NoUnlockChunk: AugmentedError<ApiType>;
2395
+ /**
2396
+ * Account is restricted from participation in staking. This may happen if the account is
2397
+ * staking in another way already, such as via pool.
2398
+ **/
2399
+ Restricted: AugmentedError<ApiType>;
2400
+ /**
2401
+ * Provided reward destination is not allowed.
2402
+ **/
2403
+ RewardDestinationRestricted: AugmentedError<ApiType>;
2404
+ /**
2405
+ * There are too many nominators in the system. Governance needs to adjust the staking
2406
+ * settings to keep things safe for the runtime.
2407
+ **/
2408
+ TooManyNominators: AugmentedError<ApiType>;
2409
+ /**
2410
+ * Too many nomination targets supplied.
2411
+ **/
2412
+ TooManyTargets: AugmentedError<ApiType>;
2413
+ /**
2414
+ * There are too many validator candidates in the system. Governance needs to adjust the
2415
+ * staking settings to keep things safe for the runtime.
2416
+ **/
2417
+ TooManyValidators: AugmentedError<ApiType>;
2418
+ /**
2419
+ * Unapplied slashes in the recently concluded era is blocking this operation.
2420
+ * See `Call::apply_slash` to apply them.
2421
+ **/
2422
+ UnappliedSlashesInPreviousEra: AugmentedError<ApiType>;
2423
+ /**
2424
+ * Operation not allowed for virtual stakers.
2425
+ **/
2426
+ VirtualStakerNotAllowed: AugmentedError<ApiType>;
2427
+ /**
2428
+ * Generic error
2429
+ **/
2430
+ [key: string]: AugmentedError<ApiType>;
2431
+ };
1318
2432
  stateTrieMigration: {
1319
2433
  /**
1320
2434
  * Bad child root provided.
@@ -1356,6 +2470,10 @@ declare module '@polkadot/api-base/types/errors' {
1356
2470
  * The origin filter prevent the call to be dispatched.
1357
2471
  **/
1358
2472
  CallFiltered: AugmentedError<ApiType>;
2473
+ /**
2474
+ * The specified [`Task`] failed during execution.
2475
+ **/
2476
+ FailedTask: AugmentedError<ApiType>;
1359
2477
  /**
1360
2478
  * Failed to extract the runtime version from the new runtime.
1361
2479
  *
@@ -1367,6 +2485,10 @@ declare module '@polkadot/api-base/types/errors' {
1367
2485
  * and the new runtime.
1368
2486
  **/
1369
2487
  InvalidSpecName: AugmentedError<ApiType>;
2488
+ /**
2489
+ * The specified [`Task`] is not valid.
2490
+ **/
2491
+ InvalidTask: AugmentedError<ApiType>;
1370
2492
  /**
1371
2493
  * A multi-block migration is ongoing and prevents the current code from being replaced.
1372
2494
  **/
@@ -1397,11 +2519,66 @@ declare module '@polkadot/api-base/types/errors' {
1397
2519
  **/
1398
2520
  [key: string]: AugmentedError<ApiType>;
1399
2521
  };
2522
+ treasury: {
2523
+ /**
2524
+ * The payment has already been attempted.
2525
+ **/
2526
+ AlreadyAttempted: AugmentedError<ApiType>;
2527
+ /**
2528
+ * The spend is not yet eligible for payout.
2529
+ **/
2530
+ EarlyPayout: AugmentedError<ApiType>;
2531
+ /**
2532
+ * The balance of the asset kind is not convertible to the balance of the native asset.
2533
+ **/
2534
+ FailedToConvertBalance: AugmentedError<ApiType>;
2535
+ /**
2536
+ * The payment has neither failed nor succeeded yet.
2537
+ **/
2538
+ Inconclusive: AugmentedError<ApiType>;
2539
+ /**
2540
+ * The spend origin is valid but the amount it is allowed to spend is lower than the
2541
+ * amount to be spent.
2542
+ **/
2543
+ InsufficientPermission: AugmentedError<ApiType>;
2544
+ /**
2545
+ * No proposal, bounty or spend at that index.
2546
+ **/
2547
+ InvalidIndex: AugmentedError<ApiType>;
2548
+ /**
2549
+ * The payout was not yet attempted/claimed.
2550
+ **/
2551
+ NotAttempted: AugmentedError<ApiType>;
2552
+ /**
2553
+ * There was some issue with the mechanism of payment.
2554
+ **/
2555
+ PayoutError: AugmentedError<ApiType>;
2556
+ /**
2557
+ * Proposal has not been approved.
2558
+ **/
2559
+ ProposalNotApproved: AugmentedError<ApiType>;
2560
+ /**
2561
+ * The spend has expired and cannot be claimed.
2562
+ **/
2563
+ SpendExpired: AugmentedError<ApiType>;
2564
+ /**
2565
+ * Too many approvals in the queue.
2566
+ **/
2567
+ TooManyApprovals: AugmentedError<ApiType>;
2568
+ /**
2569
+ * Generic error
2570
+ **/
2571
+ [key: string]: AugmentedError<ApiType>;
2572
+ };
1400
2573
  uniques: {
1401
2574
  /**
1402
2575
  * The item ID has already been used for an item.
1403
2576
  **/
1404
2577
  AlreadyExists: AugmentedError<ApiType>;
2578
+ /**
2579
+ * An attribute is not found.
2580
+ **/
2581
+ AttributeNotFound: AugmentedError<ApiType>;
1405
2582
  /**
1406
2583
  * Invalid witness data given.
1407
2584
  **/
@@ -1438,6 +2615,10 @@ declare module '@polkadot/api-base/types/errors' {
1438
2615
  * There is no delegate approved.
1439
2616
  **/
1440
2617
  NoDelegate: AugmentedError<ApiType>;
2618
+ /**
2619
+ * No metadata is found.
2620
+ **/
2621
+ NoMetadata: AugmentedError<ApiType>;
1441
2622
  /**
1442
2623
  * The signing account has no permission to do the operation.
1443
2624
  **/
@@ -1462,10 +2643,18 @@ declare module '@polkadot/api-base/types/errors' {
1462
2643
  * The given item ID is unknown.
1463
2644
  **/
1464
2645
  UnknownItem: AugmentedError<ApiType>;
2646
+ /**
2647
+ * Wrong attribute key/value bytes supplied.
2648
+ **/
2649
+ WrongAttribute: AugmentedError<ApiType>;
1465
2650
  /**
1466
2651
  * The delegate turned out to be different to what was expected.
1467
2652
  **/
1468
2653
  WrongDelegate: AugmentedError<ApiType>;
2654
+ /**
2655
+ * Wrong metadata key/value bytes supplied.
2656
+ **/
2657
+ WrongMetadata: AugmentedError<ApiType>;
1469
2658
  /**
1470
2659
  * The owner turned out to be different to what was expected.
1471
2660
  **/
@@ -1512,6 +2701,46 @@ declare module '@polkadot/api-base/types/errors' {
1512
2701
  **/
1513
2702
  [key: string]: AugmentedError<ApiType>;
1514
2703
  };
2704
+ voterList: {
2705
+ /**
2706
+ * A error in the list interface implementation.
2707
+ **/
2708
+ List: AugmentedError<ApiType>;
2709
+ /**
2710
+ * Could not update a node, because the pallet is locked.
2711
+ **/
2712
+ Locked: AugmentedError<ApiType>;
2713
+ /**
2714
+ * Generic error
2715
+ **/
2716
+ [key: string]: AugmentedError<ApiType>;
2717
+ };
2718
+ whitelist: {
2719
+ /**
2720
+ * The call was already whitelisted; No-Op.
2721
+ **/
2722
+ CallAlreadyWhitelisted: AugmentedError<ApiType>;
2723
+ /**
2724
+ * The call was not whitelisted.
2725
+ **/
2726
+ CallIsNotWhitelisted: AugmentedError<ApiType>;
2727
+ /**
2728
+ * The weight of the decoded call was higher than the witness.
2729
+ **/
2730
+ InvalidCallWeightWitness: AugmentedError<ApiType>;
2731
+ /**
2732
+ * The preimage of the call hash could not be loaded.
2733
+ **/
2734
+ UnavailablePreImage: AugmentedError<ApiType>;
2735
+ /**
2736
+ * The call could not be decoded.
2737
+ **/
2738
+ UndecodableCall: AugmentedError<ApiType>;
2739
+ /**
2740
+ * Generic error
2741
+ **/
2742
+ [key: string]: AugmentedError<ApiType>;
2743
+ };
1515
2744
  xcmpQueue: {
1516
2745
  /**
1517
2746
  * The execution is already resumed.