@polkadot/api-augment 10.1.4 → 10.2.2

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.
@@ -61,35 +61,43 @@ declare module '@polkadot/api-base/types/errors' {
61
61
  };
62
62
  balances: {
63
63
  /**
64
- * Beneficiary account must pre-exist
64
+ * Beneficiary account must pre-exist.
65
65
  **/
66
66
  DeadAccount: AugmentedError<ApiType>;
67
67
  /**
68
- * Value too low to create account due to existential deposit
68
+ * Value too low to create account due to existential deposit.
69
69
  **/
70
70
  ExistentialDeposit: AugmentedError<ApiType>;
71
71
  /**
72
- * A vesting schedule already exists for this account
72
+ * A vesting schedule already exists for this account.
73
73
  **/
74
74
  ExistingVestingSchedule: AugmentedError<ApiType>;
75
+ /**
76
+ * Transfer/payment would kill account.
77
+ **/
78
+ Expendability: AugmentedError<ApiType>;
75
79
  /**
76
80
  * Balance too low to send value.
77
81
  **/
78
82
  InsufficientBalance: AugmentedError<ApiType>;
79
83
  /**
80
- * Transfer/payment would kill account
84
+ * Account liquidity restrictions prevent withdrawal.
81
85
  **/
82
- KeepAlive: AugmentedError<ApiType>;
86
+ LiquidityRestrictions: AugmentedError<ApiType>;
83
87
  /**
84
- * Account liquidity restrictions prevent withdrawal
88
+ * Number of freezes exceed `MaxFreezes`.
85
89
  **/
86
- LiquidityRestrictions: AugmentedError<ApiType>;
90
+ TooManyFreezes: AugmentedError<ApiType>;
87
91
  /**
88
- * Number of named reserves exceed MaxReserves
92
+ * Number of holds exceed `MaxHolds`.
93
+ **/
94
+ TooManyHolds: AugmentedError<ApiType>;
95
+ /**
96
+ * Number of named reserves exceed `MaxReserves`.
89
97
  **/
90
98
  TooManyReserves: AugmentedError<ApiType>;
91
99
  /**
92
- * Vesting balance too high to send value
100
+ * Vesting balance too high to send value.
93
101
  **/
94
102
  VestingBalance: AugmentedError<ApiType>;
95
103
  /**
@@ -262,52 +270,6 @@ declare module '@polkadot/api-base/types/errors' {
262
270
  **/
263
271
  [key: string]: AugmentedError<ApiType>;
264
272
  };
265
- council: {
266
- /**
267
- * Members are already initialized!
268
- **/
269
- AlreadyInitialized: AugmentedError<ApiType>;
270
- /**
271
- * Duplicate proposals not allowed
272
- **/
273
- DuplicateProposal: AugmentedError<ApiType>;
274
- /**
275
- * Duplicate vote ignored
276
- **/
277
- DuplicateVote: AugmentedError<ApiType>;
278
- /**
279
- * Account is not a member
280
- **/
281
- NotMember: AugmentedError<ApiType>;
282
- /**
283
- * Proposal must exist
284
- **/
285
- ProposalMissing: AugmentedError<ApiType>;
286
- /**
287
- * The close call was made too early, before the end of the voting.
288
- **/
289
- TooEarly: AugmentedError<ApiType>;
290
- /**
291
- * There can only be a maximum of `MaxProposals` active proposals.
292
- **/
293
- TooManyProposals: AugmentedError<ApiType>;
294
- /**
295
- * Mismatched index
296
- **/
297
- WrongIndex: AugmentedError<ApiType>;
298
- /**
299
- * The given length bound for the proposal was too low.
300
- **/
301
- WrongProposalLength: AugmentedError<ApiType>;
302
- /**
303
- * The given weight bound for the proposal was too low.
304
- **/
305
- WrongProposalWeight: AugmentedError<ApiType>;
306
- /**
307
- * Generic error
308
- **/
309
- [key: string]: AugmentedError<ApiType>;
310
- };
311
273
  crowdloan: {
312
274
  /**
313
275
  * The fund is already in `NewRaise`
@@ -406,109 +368,6 @@ declare module '@polkadot/api-base/types/errors' {
406
368
  **/
407
369
  [key: string]: AugmentedError<ApiType>;
408
370
  };
409
- democracy: {
410
- /**
411
- * Cannot cancel the same proposal twice
412
- **/
413
- AlreadyCanceled: AugmentedError<ApiType>;
414
- /**
415
- * The account is already delegating.
416
- **/
417
- AlreadyDelegating: AugmentedError<ApiType>;
418
- /**
419
- * Identity may not veto a proposal twice
420
- **/
421
- AlreadyVetoed: AugmentedError<ApiType>;
422
- /**
423
- * Proposal already made
424
- **/
425
- DuplicateProposal: AugmentedError<ApiType>;
426
- /**
427
- * The instant referendum origin is currently disallowed.
428
- **/
429
- InstantNotAllowed: AugmentedError<ApiType>;
430
- /**
431
- * Too high a balance was provided that the account cannot afford.
432
- **/
433
- InsufficientFunds: AugmentedError<ApiType>;
434
- /**
435
- * Invalid hash
436
- **/
437
- InvalidHash: AugmentedError<ApiType>;
438
- /**
439
- * Maximum number of votes reached.
440
- **/
441
- MaxVotesReached: AugmentedError<ApiType>;
442
- /**
443
- * No proposals waiting
444
- **/
445
- NoneWaiting: AugmentedError<ApiType>;
446
- /**
447
- * Delegation to oneself makes no sense.
448
- **/
449
- Nonsense: AugmentedError<ApiType>;
450
- /**
451
- * The actor has no permission to conduct the action.
452
- **/
453
- NoPermission: AugmentedError<ApiType>;
454
- /**
455
- * No external proposal
456
- **/
457
- NoProposal: AugmentedError<ApiType>;
458
- /**
459
- * The account is not currently delegating.
460
- **/
461
- NotDelegating: AugmentedError<ApiType>;
462
- /**
463
- * Next external proposal not simple majority
464
- **/
465
- NotSimpleMajority: AugmentedError<ApiType>;
466
- /**
467
- * The given account did not vote on the referendum.
468
- **/
469
- NotVoter: AugmentedError<ApiType>;
470
- /**
471
- * The preimage does not exist.
472
- **/
473
- PreimageNotExist: AugmentedError<ApiType>;
474
- /**
475
- * Proposal still blacklisted
476
- **/
477
- ProposalBlacklisted: AugmentedError<ApiType>;
478
- /**
479
- * Proposal does not exist
480
- **/
481
- ProposalMissing: AugmentedError<ApiType>;
482
- /**
483
- * Vote given for invalid referendum
484
- **/
485
- ReferendumInvalid: AugmentedError<ApiType>;
486
- /**
487
- * Maximum number of items reached.
488
- **/
489
- TooMany: AugmentedError<ApiType>;
490
- /**
491
- * Value too low
492
- **/
493
- ValueLow: AugmentedError<ApiType>;
494
- /**
495
- * The account currently has votes attached to it and the operation cannot succeed until
496
- * these are removed, either through `unvote` or `reap_vote`.
497
- **/
498
- VotesExist: AugmentedError<ApiType>;
499
- /**
500
- * Voting period too low
501
- **/
502
- VotingPeriodLow: AugmentedError<ApiType>;
503
- /**
504
- * Invalid upper bound.
505
- **/
506
- WrongUpperBound: AugmentedError<ApiType>;
507
- /**
508
- * Generic error
509
- **/
510
- [key: string]: AugmentedError<ApiType>;
511
- };
512
371
  electionProviderMultiPhase: {
513
372
  /**
514
373
  * Some bound not met
@@ -1047,6 +906,9 @@ declare module '@polkadot/api-base/types/errors' {
1047
906
  * The portion supplied is beyond the value of the receipt.
1048
907
  **/
1049
908
  PortionTooBig: AugmentedError<ApiType>;
909
+ Release1: AugmentedError<ApiType>;
910
+ Release2: AugmentedError<ApiType>;
911
+ Tah: AugmentedError<ApiType>;
1050
912
  /**
1051
913
  * The thaw throttle has been reached for this period.
1052
914
  **/
@@ -1070,35 +932,43 @@ declare module '@polkadot/api-base/types/errors' {
1070
932
  };
1071
933
  nisCounterpartBalances: {
1072
934
  /**
1073
- * Beneficiary account must pre-exist
935
+ * Beneficiary account must pre-exist.
1074
936
  **/
1075
937
  DeadAccount: AugmentedError<ApiType>;
1076
938
  /**
1077
- * Value too low to create account due to existential deposit
939
+ * Value too low to create account due to existential deposit.
1078
940
  **/
1079
941
  ExistentialDeposit: AugmentedError<ApiType>;
1080
942
  /**
1081
- * A vesting schedule already exists for this account
943
+ * A vesting schedule already exists for this account.
1082
944
  **/
1083
945
  ExistingVestingSchedule: AugmentedError<ApiType>;
946
+ /**
947
+ * Transfer/payment would kill account.
948
+ **/
949
+ Expendability: AugmentedError<ApiType>;
1084
950
  /**
1085
951
  * Balance too low to send value.
1086
952
  **/
1087
953
  InsufficientBalance: AugmentedError<ApiType>;
1088
954
  /**
1089
- * Transfer/payment would kill account
955
+ * Account liquidity restrictions prevent withdrawal.
1090
956
  **/
1091
- KeepAlive: AugmentedError<ApiType>;
957
+ LiquidityRestrictions: AugmentedError<ApiType>;
1092
958
  /**
1093
- * Account liquidity restrictions prevent withdrawal
959
+ * Number of freezes exceed `MaxFreezes`.
1094
960
  **/
1095
- LiquidityRestrictions: AugmentedError<ApiType>;
961
+ TooManyFreezes: AugmentedError<ApiType>;
1096
962
  /**
1097
- * Number of named reserves exceed MaxReserves
963
+ * Number of holds exceed `MaxHolds`.
964
+ **/
965
+ TooManyHolds: AugmentedError<ApiType>;
966
+ /**
967
+ * Number of named reserves exceed `MaxReserves`.
1098
968
  **/
1099
969
  TooManyReserves: AugmentedError<ApiType>;
1100
970
  /**
1101
- * Vesting balance too high to send value
971
+ * Vesting balance too high to send value.
1102
972
  **/
1103
973
  VestingBalance: AugmentedError<ApiType>;
1104
974
  /**
@@ -1124,6 +994,18 @@ declare module '@polkadot/api-base/types/errors' {
1124
994
  * None of the funds can be withdrawn yet because the bonding duration has not passed.
1125
995
  **/
1126
996
  CannotWithdrawAny: AugmentedError<ApiType>;
997
+ /**
998
+ * The submitted changes to commission change rate are not allowed.
999
+ **/
1000
+ CommissionChangeRateNotAllowed: AugmentedError<ApiType>;
1001
+ /**
1002
+ * Not enough blocks have surpassed since the last commission update.
1003
+ **/
1004
+ CommissionChangeThrottled: AugmentedError<ApiType>;
1005
+ /**
1006
+ * The supplied commission exceeds the max allowed commission.
1007
+ **/
1008
+ CommissionExceedsMaximum: AugmentedError<ApiType>;
1127
1009
  /**
1128
1010
  * Some error occurred that should never happen. This should be reported to the
1129
1011
  * maintainers.
@@ -1142,6 +1024,10 @@ declare module '@polkadot/api-base/types/errors' {
1142
1024
  * Pool id provided is not correct/usable.
1143
1025
  **/
1144
1026
  InvalidPoolId: AugmentedError<ApiType>;
1027
+ /**
1028
+ * The pool's max commission cannot be set higher than the existing value.
1029
+ **/
1030
+ MaxCommissionRestricted: AugmentedError<ApiType>;
1145
1031
  /**
1146
1032
  * Too many members in the pool or system.
1147
1033
  **/
@@ -1166,6 +1052,14 @@ declare module '@polkadot/api-base/types/errors' {
1166
1052
  * permissions for the pool. Members can never unbond to a value below `MinJoinBond`.
1167
1053
  **/
1168
1054
  MinimumBondNotMet: AugmentedError<ApiType>;
1055
+ /**
1056
+ * No commission current has been set.
1057
+ **/
1058
+ NoCommissionCurrentSet: AugmentedError<ApiType>;
1059
+ /**
1060
+ * There is no pending commission to claim.
1061
+ **/
1062
+ NoPendingCommission: AugmentedError<ApiType>;
1169
1063
  /**
1170
1064
  * A pool must be in [`PoolState::Destroying`] in order for the depositor to unbond or for
1171
1065
  * other members to be permissionlessly unbonded.
@@ -1473,75 +1367,32 @@ declare module '@polkadot/api-base/types/errors' {
1473
1367
  **/
1474
1368
  [key: string]: AugmentedError<ApiType>;
1475
1369
  };
1476
- phragmenElection: {
1477
- /**
1478
- * Duplicated candidate submission.
1479
- **/
1480
- DuplicatedCandidate: AugmentedError<ApiType>;
1481
- /**
1482
- * Candidate does not have enough funds.
1483
- **/
1484
- InsufficientCandidateFunds: AugmentedError<ApiType>;
1485
- /**
1486
- * The renouncing origin presented a wrong `Renouncing` parameter.
1487
- **/
1488
- InvalidRenouncing: AugmentedError<ApiType>;
1489
- /**
1490
- * Prediction regarding replacement after member removal is wrong.
1491
- **/
1492
- InvalidReplacement: AugmentedError<ApiType>;
1370
+ parasSlashing: {
1493
1371
  /**
1494
- * The provided count of number of votes is incorrect.
1372
+ * The given slashing report is valid but already previously reported.
1495
1373
  **/
1496
- InvalidVoteCount: AugmentedError<ApiType>;
1374
+ DuplicateSlashingReport: AugmentedError<ApiType>;
1497
1375
  /**
1498
- * The provided count of number of candidates is incorrect.
1376
+ * The candidate hash is invalid.
1499
1377
  **/
1500
- InvalidWitnessData: AugmentedError<ApiType>;
1378
+ InvalidCandidateHash: AugmentedError<ApiType>;
1501
1379
  /**
1502
- * Cannot vote with stake less than minimum balance.
1380
+ * The key ownership proof is invalid.
1503
1381
  **/
1504
- LowBalance: AugmentedError<ApiType>;
1505
- /**
1506
- * Cannot vote more than maximum allowed.
1507
- **/
1508
- MaximumVotesExceeded: AugmentedError<ApiType>;
1509
- /**
1510
- * Member cannot re-submit candidacy.
1511
- **/
1512
- MemberSubmit: AugmentedError<ApiType>;
1513
- /**
1514
- * Must be a voter.
1515
- **/
1516
- MustBeVoter: AugmentedError<ApiType>;
1517
- /**
1518
- * Not a member.
1519
- **/
1520
- NotMember: AugmentedError<ApiType>;
1521
- /**
1522
- * Must vote for at least one candidate.
1523
- **/
1524
- NoVotes: AugmentedError<ApiType>;
1525
- /**
1526
- * Runner cannot re-submit candidacy.
1527
- **/
1528
- RunnerUpSubmit: AugmentedError<ApiType>;
1529
- /**
1530
- * Too many candidates have been created.
1531
- **/
1532
- TooManyCandidates: AugmentedError<ApiType>;
1382
+ InvalidKeyOwnershipProof: AugmentedError<ApiType>;
1533
1383
  /**
1534
- * Cannot vote more than candidates.
1384
+ * The session index is too old or invalid.
1535
1385
  **/
1536
- TooManyVotes: AugmentedError<ApiType>;
1386
+ InvalidSessionIndex: AugmentedError<ApiType>;
1537
1387
  /**
1538
- * Voter can not pay voting bond.
1388
+ * There is no pending slash for the given validator index and time
1389
+ * slot.
1539
1390
  **/
1540
- UnableToPayBond: AugmentedError<ApiType>;
1391
+ InvalidValidatorIndex: AugmentedError<ApiType>;
1541
1392
  /**
1542
- * Cannot vote when no candidates or members exist.
1393
+ * The validator index does not match the validator id.
1543
1394
  **/
1544
- UnableToVote: AugmentedError<ApiType>;
1395
+ ValidatorIndexIdMismatch: AugmentedError<ApiType>;
1545
1396
  /**
1546
1397
  * Generic error
1547
1398
  **/
@@ -2094,100 +1945,6 @@ declare module '@polkadot/api-base/types/errors' {
2094
1945
  **/
2095
1946
  [key: string]: AugmentedError<ApiType>;
2096
1947
  };
2097
- technicalCommittee: {
2098
- /**
2099
- * Members are already initialized!
2100
- **/
2101
- AlreadyInitialized: AugmentedError<ApiType>;
2102
- /**
2103
- * Duplicate proposals not allowed
2104
- **/
2105
- DuplicateProposal: AugmentedError<ApiType>;
2106
- /**
2107
- * Duplicate vote ignored
2108
- **/
2109
- DuplicateVote: AugmentedError<ApiType>;
2110
- /**
2111
- * Account is not a member
2112
- **/
2113
- NotMember: AugmentedError<ApiType>;
2114
- /**
2115
- * Proposal must exist
2116
- **/
2117
- ProposalMissing: AugmentedError<ApiType>;
2118
- /**
2119
- * The close call was made too early, before the end of the voting.
2120
- **/
2121
- TooEarly: AugmentedError<ApiType>;
2122
- /**
2123
- * There can only be a maximum of `MaxProposals` active proposals.
2124
- **/
2125
- TooManyProposals: AugmentedError<ApiType>;
2126
- /**
2127
- * Mismatched index
2128
- **/
2129
- WrongIndex: AugmentedError<ApiType>;
2130
- /**
2131
- * The given length bound for the proposal was too low.
2132
- **/
2133
- WrongProposalLength: AugmentedError<ApiType>;
2134
- /**
2135
- * The given weight bound for the proposal was too low.
2136
- **/
2137
- WrongProposalWeight: AugmentedError<ApiType>;
2138
- /**
2139
- * Generic error
2140
- **/
2141
- [key: string]: AugmentedError<ApiType>;
2142
- };
2143
- technicalMembership: {
2144
- /**
2145
- * Already a member.
2146
- **/
2147
- AlreadyMember: AugmentedError<ApiType>;
2148
- /**
2149
- * Not a member.
2150
- **/
2151
- NotMember: AugmentedError<ApiType>;
2152
- /**
2153
- * Too many members.
2154
- **/
2155
- TooManyMembers: AugmentedError<ApiType>;
2156
- /**
2157
- * Generic error
2158
- **/
2159
- [key: string]: AugmentedError<ApiType>;
2160
- };
2161
- tips: {
2162
- /**
2163
- * The tip was already found/started.
2164
- **/
2165
- AlreadyKnown: AugmentedError<ApiType>;
2166
- /**
2167
- * The account attempting to retract the tip is not the finder of the tip.
2168
- **/
2169
- NotFinder: AugmentedError<ApiType>;
2170
- /**
2171
- * The tip cannot be claimed/closed because it's still in the countdown period.
2172
- **/
2173
- Premature: AugmentedError<ApiType>;
2174
- /**
2175
- * The reason given is just too big.
2176
- **/
2177
- ReasonTooBig: AugmentedError<ApiType>;
2178
- /**
2179
- * The tip cannot be claimed/closed because there are not enough tippers yet.
2180
- **/
2181
- StillOpen: AugmentedError<ApiType>;
2182
- /**
2183
- * The tip hash is unknown.
2184
- **/
2185
- UnknownTip: AugmentedError<ApiType>;
2186
- /**
2187
- * Generic error
2188
- **/
2189
- [key: string]: AugmentedError<ApiType>;
2190
- };
2191
1948
  treasury: {
2192
1949
  /**
2193
1950
  * The spend origin is valid but the amount it is allowed to spend is lower than the