@polkadot/api-augment 10.8.1 → 10.10.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.
- package/cjs/packageInfo.js +1 -1
- package/kusama/consts.d.ts +82 -34
- package/kusama/errors.d.ts +150 -26
- package/kusama/events.d.ts +66 -19
- package/kusama/query.d.ts +206 -87
- package/kusama/runtime.d.ts +36 -4
- package/kusama/tx.d.ts +192 -53
- package/package.json +8 -8
- package/packageInfo.js +1 -1
- package/polkadot/consts.d.ts +15 -198
- package/polkadot/errors.d.ts +37 -340
- package/polkadot/events.d.ts +24 -376
- package/polkadot/query.d.ts +63 -272
- package/polkadot/runtime.d.ts +20 -3
- package/polkadot/tx.d.ts +62 -441
- package/substrate/consts.d.ts +118 -34
- package/substrate/errors.d.ts +303 -8
- package/substrate/events.d.ts +379 -25
- package/substrate/query.d.ts +160 -44
- package/substrate/runtime.d.ts +21 -1
- package/substrate/tx.d.ts +252 -29
package/cjs/packageInfo.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.packageInfo = void 0;
|
|
4
|
-
exports.packageInfo = { name: '@polkadot/api-augment', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '10.
|
|
4
|
+
exports.packageInfo = { name: '@polkadot/api-augment', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '10.10.1' };
|
package/kusama/consts.d.ts
CHANGED
|
@@ -44,6 +44,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
44
44
|
* Max number of authorities allowed
|
|
45
45
|
**/
|
|
46
46
|
maxAuthorities: u32 & AugmentedConst<ApiType>;
|
|
47
|
+
/**
|
|
48
|
+
* The maximum number of nominators for each validator.
|
|
49
|
+
**/
|
|
50
|
+
maxNominators: u32 & AugmentedConst<ApiType>;
|
|
47
51
|
/**
|
|
48
52
|
* Generic const
|
|
49
53
|
**/
|
|
@@ -83,6 +87,29 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
83
87
|
**/
|
|
84
88
|
[key: string]: Codec;
|
|
85
89
|
};
|
|
90
|
+
beefy: {
|
|
91
|
+
/**
|
|
92
|
+
* The maximum number of authorities that can be added.
|
|
93
|
+
**/
|
|
94
|
+
maxAuthorities: u32 & AugmentedConst<ApiType>;
|
|
95
|
+
/**
|
|
96
|
+
* The maximum number of nominators for each validator.
|
|
97
|
+
**/
|
|
98
|
+
maxNominators: u32 & AugmentedConst<ApiType>;
|
|
99
|
+
/**
|
|
100
|
+
* The maximum number of entries to keep in the set id to session index mapping.
|
|
101
|
+
*
|
|
102
|
+
* Since the `SetIdSession` map is only used for validating equivocations this
|
|
103
|
+
* value should relate to the bonding duration of whatever staking system is
|
|
104
|
+
* being used (if any). If equivocation handling is not enabled then this value
|
|
105
|
+
* can be zero.
|
|
106
|
+
**/
|
|
107
|
+
maxSetIdSessionEntries: u64 & AugmentedConst<ApiType>;
|
|
108
|
+
/**
|
|
109
|
+
* Generic const
|
|
110
|
+
**/
|
|
111
|
+
[key: string]: Codec;
|
|
112
|
+
};
|
|
86
113
|
bounties: {
|
|
87
114
|
/**
|
|
88
115
|
* The amount held on deposit for placing a bounty proposal.
|
|
@@ -173,12 +200,13 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
173
200
|
};
|
|
174
201
|
crowdloan: {
|
|
175
202
|
/**
|
|
176
|
-
* The minimum amount that may be contributed into a crowdloan. Should almost certainly be
|
|
177
|
-
* least `ExistentialDeposit`.
|
|
203
|
+
* The minimum amount that may be contributed into a crowdloan. Should almost certainly be
|
|
204
|
+
* at least `ExistentialDeposit`.
|
|
178
205
|
**/
|
|
179
206
|
minContribution: u128 & AugmentedConst<ApiType>;
|
|
180
207
|
/**
|
|
181
|
-
* `PalletId` for the crowdloan pallet. An appropriate value could be
|
|
208
|
+
* `PalletId` for the crowdloan pallet. An appropriate value could be
|
|
209
|
+
* `PalletId(*b"py/cfund")`
|
|
182
210
|
**/
|
|
183
211
|
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
|
184
212
|
/**
|
|
@@ -201,16 +229,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
201
229
|
* "better" in the Unsigned phase.
|
|
202
230
|
**/
|
|
203
231
|
betterUnsignedThreshold: Perbill & AugmentedConst<ApiType>;
|
|
204
|
-
/**
|
|
205
|
-
* The maximum number of electable targets to put in the snapshot.
|
|
206
|
-
**/
|
|
207
|
-
maxElectableTargets: u16 & AugmentedConst<ApiType>;
|
|
208
|
-
/**
|
|
209
|
-
* The maximum number of electing voters to put in the snapshot. At the moment, snapshots
|
|
210
|
-
* are only over a single block, but once multi-block elections are introduced they will
|
|
211
|
-
* take place over multiple blocks.
|
|
212
|
-
**/
|
|
213
|
-
maxElectingVoters: u32 & AugmentedConst<ApiType>;
|
|
214
232
|
/**
|
|
215
233
|
* The maximum number of winners that can be elected by this `ElectionProvider`
|
|
216
234
|
* implementation.
|
|
@@ -329,6 +347,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
329
347
|
* Max Authorities in use
|
|
330
348
|
**/
|
|
331
349
|
maxAuthorities: u32 & AugmentedConst<ApiType>;
|
|
350
|
+
/**
|
|
351
|
+
* The maximum number of nominators for each validator.
|
|
352
|
+
**/
|
|
353
|
+
maxNominators: u32 & AugmentedConst<ApiType>;
|
|
332
354
|
/**
|
|
333
355
|
* The maximum number of entries to keep in the set id to session index mapping.
|
|
334
356
|
*
|
|
@@ -700,7 +722,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
700
722
|
**/
|
|
701
723
|
dataDepositPerByte: u128 & AugmentedConst<ApiType>;
|
|
702
724
|
/**
|
|
703
|
-
* The deposit to be paid to run a
|
|
725
|
+
* The deposit to be paid to run a on-demand parachain.
|
|
704
726
|
* This should include the cost for storing the genesis head and validation code.
|
|
705
727
|
**/
|
|
706
728
|
paraDeposit: u128 & AugmentedConst<ApiType>;
|
|
@@ -742,27 +764,31 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
742
764
|
[key: string]: Codec;
|
|
743
765
|
};
|
|
744
766
|
society: {
|
|
745
|
-
/**
|
|
746
|
-
* The minimum amount of a deposit required for a bid to be made.
|
|
747
|
-
**/
|
|
748
|
-
candidateDeposit: u128 & AugmentedConst<ApiType>;
|
|
749
767
|
/**
|
|
750
768
|
* The number of blocks between membership challenges.
|
|
751
769
|
**/
|
|
752
770
|
challengePeriod: u32 & AugmentedConst<ApiType>;
|
|
753
771
|
/**
|
|
754
|
-
* The
|
|
772
|
+
* The number of blocks on which new candidates can claim their membership and be the
|
|
773
|
+
* named head.
|
|
774
|
+
**/
|
|
775
|
+
claimPeriod: u32 & AugmentedConst<ApiType>;
|
|
776
|
+
/**
|
|
777
|
+
* The maximum number of strikes before a member gets funds slashed.
|
|
755
778
|
**/
|
|
756
|
-
|
|
779
|
+
graceStrikes: u32 & AugmentedConst<ApiType>;
|
|
780
|
+
/**
|
|
781
|
+
* The maximum number of bids at once.
|
|
782
|
+
**/
|
|
783
|
+
maxBids: u32 & AugmentedConst<ApiType>;
|
|
757
784
|
/**
|
|
758
785
|
* The maximum duration of the payout lock.
|
|
759
786
|
**/
|
|
760
787
|
maxLockDuration: u32 & AugmentedConst<ApiType>;
|
|
761
788
|
/**
|
|
762
|
-
* The number of
|
|
763
|
-
* skeptic) before they become suspended.
|
|
789
|
+
* The maximum number of payouts a member may have waiting unclaimed.
|
|
764
790
|
**/
|
|
765
|
-
|
|
791
|
+
maxPayouts: u32 & AugmentedConst<ApiType>;
|
|
766
792
|
/**
|
|
767
793
|
* The societies's pallet id
|
|
768
794
|
**/
|
|
@@ -772,14 +798,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
772
798
|
**/
|
|
773
799
|
periodSpend: u128 & AugmentedConst<ApiType>;
|
|
774
800
|
/**
|
|
775
|
-
* The number of blocks
|
|
776
|
-
|
|
777
|
-
rotationPeriod: u32 & AugmentedConst<ApiType>;
|
|
778
|
-
/**
|
|
779
|
-
* The amount of the unpaid reward that gets deducted in the case that either a skeptic
|
|
780
|
-
* doesn't vote or someone votes in the wrong way.
|
|
801
|
+
* The number of blocks on which new candidates should be voted on. Together with
|
|
802
|
+
* `ClaimPeriod`, this sums to the number of blocks between candidate intake periods.
|
|
781
803
|
**/
|
|
782
|
-
|
|
804
|
+
votingPeriod: u32 & AugmentedConst<ApiType>;
|
|
783
805
|
/**
|
|
784
806
|
* Generic const
|
|
785
807
|
**/
|
|
@@ -813,10 +835,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
813
835
|
* The test `reducing_history_depth_abrupt` shows this effect.
|
|
814
836
|
**/
|
|
815
837
|
historyDepth: u32 & AugmentedConst<ApiType>;
|
|
816
|
-
/**
|
|
817
|
-
* Maximum number of nominations per nominator.
|
|
818
|
-
**/
|
|
819
|
-
maxNominations: u32 & AugmentedConst<ApiType>;
|
|
820
838
|
/**
|
|
821
839
|
* The maximum number of nominators rewarded for each validator.
|
|
822
840
|
*
|
|
@@ -853,6 +871,36 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
853
871
|
**/
|
|
854
872
|
[key: string]: Codec;
|
|
855
873
|
};
|
|
874
|
+
stateTrieMigration: {
|
|
875
|
+
/**
|
|
876
|
+
* Maximal number of bytes that a key can have.
|
|
877
|
+
*
|
|
878
|
+
* FRAME itself does not limit the key length.
|
|
879
|
+
* The concrete value must therefore depend on your storage usage.
|
|
880
|
+
* A [`frame_support::storage::StorageNMap`] for example can have an arbitrary number of
|
|
881
|
+
* keys which are then hashed and concatenated, resulting in arbitrarily long keys.
|
|
882
|
+
*
|
|
883
|
+
* Use the *state migration RPC* to retrieve the length of the longest key in your
|
|
884
|
+
* storage: <https://github.com/paritytech/substrate/issues/11642>
|
|
885
|
+
*
|
|
886
|
+
* The migration will halt with a `Halted` event if this value is too small.
|
|
887
|
+
* Since there is no real penalty from over-estimating, it is advised to use a large
|
|
888
|
+
* value. The default is 512 byte.
|
|
889
|
+
*
|
|
890
|
+
* Some key lengths for reference:
|
|
891
|
+
* - [`frame_support::storage::StorageValue`]: 32 byte
|
|
892
|
+
* - [`frame_support::storage::StorageMap`]: 64 byte
|
|
893
|
+
* - [`frame_support::storage::StorageDoubleMap`]: 96 byte
|
|
894
|
+
*
|
|
895
|
+
* For more info see
|
|
896
|
+
* <https://www.shawntabrizi.com/substrate/querying-substrate-storage-via-rpc/>
|
|
897
|
+
**/
|
|
898
|
+
maxKeyLen: u32 & AugmentedConst<ApiType>;
|
|
899
|
+
/**
|
|
900
|
+
* Generic const
|
|
901
|
+
**/
|
|
902
|
+
[key: string]: Codec;
|
|
903
|
+
};
|
|
856
904
|
system: {
|
|
857
905
|
/**
|
|
858
906
|
* Maximum number of block number to block hash mappings to keep (oldest pruned first).
|
package/kusama/errors.d.ts
CHANGED
|
@@ -105,6 +105,24 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
105
105
|
**/
|
|
106
106
|
[key: string]: AugmentedError<ApiType>;
|
|
107
107
|
};
|
|
108
|
+
beefy: {
|
|
109
|
+
/**
|
|
110
|
+
* A given equivocation report is valid but already previously reported.
|
|
111
|
+
**/
|
|
112
|
+
DuplicateOffenceReport: AugmentedError<ApiType>;
|
|
113
|
+
/**
|
|
114
|
+
* An equivocation proof provided as part of an equivocation report is invalid.
|
|
115
|
+
**/
|
|
116
|
+
InvalidEquivocationProof: AugmentedError<ApiType>;
|
|
117
|
+
/**
|
|
118
|
+
* A key ownership proof provided as part of an equivocation report is invalid.
|
|
119
|
+
**/
|
|
120
|
+
InvalidKeyOwnershipProof: AugmentedError<ApiType>;
|
|
121
|
+
/**
|
|
122
|
+
* Generic error
|
|
123
|
+
**/
|
|
124
|
+
[key: string]: AugmentedError<ApiType>;
|
|
125
|
+
};
|
|
108
126
|
bounties: {
|
|
109
127
|
/**
|
|
110
128
|
* The bounty cannot be closed because it has active child bounties.
|
|
@@ -184,8 +202,8 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
184
202
|
**/
|
|
185
203
|
InvalidStatement: AugmentedError<ApiType>;
|
|
186
204
|
/**
|
|
187
|
-
* There's not enough in the pot to pay out some unvested amount. Generally implies a
|
|
188
|
-
* error.
|
|
205
|
+
* There's not enough in the pot to pay out some unvested amount. Generally implies a
|
|
206
|
+
* logic error.
|
|
189
207
|
**/
|
|
190
208
|
PotUnderflow: AugmentedError<ApiType>;
|
|
191
209
|
/**
|
|
@@ -352,7 +370,8 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
352
370
|
**/
|
|
353
371
|
NotParachain: AugmentedError<ApiType>;
|
|
354
372
|
/**
|
|
355
|
-
* The crowdloan is not ready to dissolve. Potentially still has a slot or in retirement
|
|
373
|
+
* The crowdloan is not ready to dissolve. Potentially still has a slot or in retirement
|
|
374
|
+
* period.
|
|
356
375
|
**/
|
|
357
376
|
NotReadyToDissolve: AugmentedError<ApiType>;
|
|
358
377
|
/**
|
|
@@ -824,6 +843,12 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
824
843
|
* The message is queued for future execution.
|
|
825
844
|
**/
|
|
826
845
|
Queued: AugmentedError<ApiType>;
|
|
846
|
+
/**
|
|
847
|
+
* The queue is paused and no message can be executed from it.
|
|
848
|
+
*
|
|
849
|
+
* This can change at any time and may resolve in the future by re-trying.
|
|
850
|
+
**/
|
|
851
|
+
QueuePaused: AugmentedError<ApiType>;
|
|
827
852
|
/**
|
|
828
853
|
* This message is temporarily unprocessable.
|
|
829
854
|
*
|
|
@@ -1037,6 +1062,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1037
1062
|
* Not enough blocks have surpassed since the last commission update.
|
|
1038
1063
|
**/
|
|
1039
1064
|
CommissionChangeThrottled: AugmentedError<ApiType>;
|
|
1065
|
+
/**
|
|
1066
|
+
* The supplied commission exceeds global maximum commission.
|
|
1067
|
+
**/
|
|
1068
|
+
CommissionExceedsGlobalMaximum: AugmentedError<ApiType>;
|
|
1040
1069
|
/**
|
|
1041
1070
|
* The supplied commission exceeds the max allowed commission.
|
|
1042
1071
|
**/
|
|
@@ -1160,14 +1189,15 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1160
1189
|
* invalid dispute.
|
|
1161
1190
|
**/
|
|
1162
1191
|
BitfieldReferencesFreedCore: AugmentedError<ApiType>;
|
|
1163
|
-
/**
|
|
1164
|
-
* Candidate not in parent context.
|
|
1165
|
-
**/
|
|
1166
|
-
CandidateNotInParentContext: AugmentedError<ApiType>;
|
|
1167
1192
|
/**
|
|
1168
1193
|
* Candidate scheduled despite pending candidate already existing for the para.
|
|
1169
1194
|
**/
|
|
1170
1195
|
CandidateScheduledBeforeParaFree: AugmentedError<ApiType>;
|
|
1196
|
+
/**
|
|
1197
|
+
* The candidate's relay-parent was not allowed. Either it was
|
|
1198
|
+
* not recent enough or it didn't advance based on the last parachain block.
|
|
1199
|
+
**/
|
|
1200
|
+
DisallowedRelayParent: AugmentedError<ApiType>;
|
|
1171
1201
|
/**
|
|
1172
1202
|
* Head data exceeds the configured maximum.
|
|
1173
1203
|
**/
|
|
@@ -1184,6 +1214,11 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1184
1214
|
* Insufficient (non-majority) backing.
|
|
1185
1215
|
**/
|
|
1186
1216
|
InsufficientBacking: AugmentedError<ApiType>;
|
|
1217
|
+
/**
|
|
1218
|
+
* Failed to compute group index for the core: either it's out of bounds
|
|
1219
|
+
* or the relay parent doesn't belong to the current session.
|
|
1220
|
+
**/
|
|
1221
|
+
InvalidAssignment: AugmentedError<ApiType>;
|
|
1187
1222
|
/**
|
|
1188
1223
|
* Invalid (bad signature, unknown validator, etc.) backing.
|
|
1189
1224
|
**/
|
|
@@ -1217,8 +1252,8 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1217
1252
|
**/
|
|
1218
1253
|
NotCollatorSigned: AugmentedError<ApiType>;
|
|
1219
1254
|
/**
|
|
1220
|
-
* The `para_head` hash in the candidate descriptor doesn't match the hash of the actual
|
|
1221
|
-
* commitments.
|
|
1255
|
+
* The `para_head` hash in the candidate descriptor doesn't match the hash of the actual
|
|
1256
|
+
* para head in the commitments.
|
|
1222
1257
|
**/
|
|
1223
1258
|
ParaHeadMismatch: AugmentedError<ApiType>;
|
|
1224
1259
|
/**
|
|
@@ -1261,10 +1296,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1261
1296
|
* Availability bitfield has unexpected size.
|
|
1262
1297
|
**/
|
|
1263
1298
|
WrongBitfieldSize: AugmentedError<ApiType>;
|
|
1264
|
-
/**
|
|
1265
|
-
* Candidate included with the wrong collator.
|
|
1266
|
-
**/
|
|
1267
|
-
WrongCollator: AugmentedError<ApiType>;
|
|
1268
1299
|
/**
|
|
1269
1300
|
* Generic error
|
|
1270
1301
|
**/
|
|
@@ -1303,7 +1334,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1303
1334
|
};
|
|
1304
1335
|
paras: {
|
|
1305
1336
|
/**
|
|
1306
|
-
* Para cannot be downgraded to
|
|
1337
|
+
* Para cannot be downgraded to an on-demand parachain.
|
|
1307
1338
|
**/
|
|
1308
1339
|
CannotDowngrade: AugmentedError<ApiType>;
|
|
1309
1340
|
/**
|
|
@@ -1315,7 +1346,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1315
1346
|
**/
|
|
1316
1347
|
CannotOnboard: AugmentedError<ApiType>;
|
|
1317
1348
|
/**
|
|
1318
|
-
* Para cannot be upgraded to a parachain.
|
|
1349
|
+
* Para cannot be upgraded to a lease holding parachain.
|
|
1319
1350
|
**/
|
|
1320
1351
|
CannotUpgrade: AugmentedError<ApiType>;
|
|
1321
1352
|
/**
|
|
@@ -1634,16 +1665,16 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1634
1665
|
**/
|
|
1635
1666
|
CannotDeregister: AugmentedError<ApiType>;
|
|
1636
1667
|
/**
|
|
1637
|
-
* Cannot schedule downgrade of parachain to
|
|
1668
|
+
* Cannot schedule downgrade of lease holding parachain to on-demand parachain
|
|
1638
1669
|
**/
|
|
1639
1670
|
CannotDowngrade: AugmentedError<ApiType>;
|
|
1640
1671
|
/**
|
|
1641
|
-
* Cannot perform a parachain slot / lifecycle swap. Check that the state of both paras
|
|
1642
|
-
* correct for the swap to work.
|
|
1672
|
+
* Cannot perform a parachain slot / lifecycle swap. Check that the state of both paras
|
|
1673
|
+
* are correct for the swap to work.
|
|
1643
1674
|
**/
|
|
1644
1675
|
CannotSwap: AugmentedError<ApiType>;
|
|
1645
1676
|
/**
|
|
1646
|
-
* Cannot schedule upgrade of
|
|
1677
|
+
* Cannot schedule upgrade of on-demand parachain to lease holding parachain
|
|
1647
1678
|
**/
|
|
1648
1679
|
CannotUpgrade: AugmentedError<ApiType>;
|
|
1649
1680
|
/**
|
|
@@ -1667,7 +1698,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1667
1698
|
**/
|
|
1668
1699
|
NotParachain: AugmentedError<ApiType>;
|
|
1669
1700
|
/**
|
|
1670
|
-
* Para is not a Parathread.
|
|
1701
|
+
* Para is not a Parathread (on-demand parachain).
|
|
1671
1702
|
**/
|
|
1672
1703
|
NotParathread: AugmentedError<ApiType>;
|
|
1673
1704
|
/**
|
|
@@ -1679,7 +1710,8 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1679
1710
|
**/
|
|
1680
1711
|
NotReserved: AugmentedError<ApiType>;
|
|
1681
1712
|
/**
|
|
1682
|
-
* Para is locked from manipulation by the manager. Must use parachain or relay chain
|
|
1713
|
+
* Para is locked from manipulation by the manager. Must use parachain or relay chain
|
|
1714
|
+
* governance.
|
|
1683
1715
|
**/
|
|
1684
1716
|
ParaLocked: AugmentedError<ApiType>;
|
|
1685
1717
|
/**
|
|
@@ -1762,6 +1794,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1762
1794
|
* User is already a candidate.
|
|
1763
1795
|
**/
|
|
1764
1796
|
AlreadyCandidate: AugmentedError<ApiType>;
|
|
1797
|
+
/**
|
|
1798
|
+
* The member is already elevated to this rank.
|
|
1799
|
+
**/
|
|
1800
|
+
AlreadyElevated: AugmentedError<ApiType>;
|
|
1765
1801
|
/**
|
|
1766
1802
|
* Society already founded.
|
|
1767
1803
|
**/
|
|
@@ -1770,14 +1806,22 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1770
1806
|
* User is already a member.
|
|
1771
1807
|
**/
|
|
1772
1808
|
AlreadyMember: AugmentedError<ApiType>;
|
|
1809
|
+
/**
|
|
1810
|
+
* The skeptic has already been punished for this offence.
|
|
1811
|
+
**/
|
|
1812
|
+
AlreadyPunished: AugmentedError<ApiType>;
|
|
1773
1813
|
/**
|
|
1774
1814
|
* Member is already vouching or banned from vouching again.
|
|
1775
1815
|
**/
|
|
1776
1816
|
AlreadyVouching: AugmentedError<ApiType>;
|
|
1777
1817
|
/**
|
|
1778
|
-
*
|
|
1818
|
+
* The candidacy cannot be dropped as the candidate was clearly approved.
|
|
1779
1819
|
**/
|
|
1780
|
-
|
|
1820
|
+
Approved: AugmentedError<ApiType>;
|
|
1821
|
+
/**
|
|
1822
|
+
* The skeptic need not vote on candidates from expired rounds.
|
|
1823
|
+
**/
|
|
1824
|
+
Expired: AugmentedError<ApiType>;
|
|
1781
1825
|
/**
|
|
1782
1826
|
* Cannot remove the founder.
|
|
1783
1827
|
**/
|
|
@@ -1786,6 +1830,14 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1786
1830
|
* Cannot remove the head of the chain.
|
|
1787
1831
|
**/
|
|
1788
1832
|
Head: AugmentedError<ApiType>;
|
|
1833
|
+
/**
|
|
1834
|
+
* The candidacy cannot be concluded as the voting is still in progress.
|
|
1835
|
+
**/
|
|
1836
|
+
InProgress: AugmentedError<ApiType>;
|
|
1837
|
+
/**
|
|
1838
|
+
* Funds are insufficient to pay off society debts.
|
|
1839
|
+
**/
|
|
1840
|
+
InsufficientFunds: AugmentedError<ApiType>;
|
|
1789
1841
|
/**
|
|
1790
1842
|
* Not enough in pot to accept candidate.
|
|
1791
1843
|
**/
|
|
@@ -1794,10 +1846,22 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1794
1846
|
* Too many members in the society.
|
|
1795
1847
|
**/
|
|
1796
1848
|
MaxMembers: AugmentedError<ApiType>;
|
|
1849
|
+
/**
|
|
1850
|
+
* There is no defender currently.
|
|
1851
|
+
**/
|
|
1852
|
+
NoDefender: AugmentedError<ApiType>;
|
|
1797
1853
|
/**
|
|
1798
1854
|
* Nothing to payout.
|
|
1799
1855
|
**/
|
|
1800
1856
|
NoPayout: AugmentedError<ApiType>;
|
|
1857
|
+
/**
|
|
1858
|
+
* The membership cannot be claimed as the candidate was not clearly approved.
|
|
1859
|
+
**/
|
|
1860
|
+
NotApproved: AugmentedError<ApiType>;
|
|
1861
|
+
/**
|
|
1862
|
+
* User is not a bidder.
|
|
1863
|
+
**/
|
|
1864
|
+
NotBidder: AugmentedError<ApiType>;
|
|
1801
1865
|
/**
|
|
1802
1866
|
* User is not a candidate.
|
|
1803
1867
|
**/
|
|
@@ -1806,6 +1870,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1806
1870
|
* The caller is not the founder.
|
|
1807
1871
|
**/
|
|
1808
1872
|
NotFounder: AugmentedError<ApiType>;
|
|
1873
|
+
/**
|
|
1874
|
+
* Group doesn't exist.
|
|
1875
|
+
**/
|
|
1876
|
+
NotGroup: AugmentedError<ApiType>;
|
|
1809
1877
|
/**
|
|
1810
1878
|
* The caller is not the head.
|
|
1811
1879
|
**/
|
|
@@ -1814,6 +1882,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1814
1882
|
* User is not a member.
|
|
1815
1883
|
**/
|
|
1816
1884
|
NotMember: AugmentedError<ApiType>;
|
|
1885
|
+
/**
|
|
1886
|
+
* The candidate cannot be kicked as the candidate was not clearly rejected.
|
|
1887
|
+
**/
|
|
1888
|
+
NotRejected: AugmentedError<ApiType>;
|
|
1817
1889
|
/**
|
|
1818
1890
|
* User is not suspended.
|
|
1819
1891
|
**/
|
|
@@ -1821,11 +1893,27 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1821
1893
|
/**
|
|
1822
1894
|
* Member is not vouching.
|
|
1823
1895
|
**/
|
|
1824
|
-
|
|
1896
|
+
NotVouchingOnBidder: AugmentedError<ApiType>;
|
|
1897
|
+
/**
|
|
1898
|
+
* The candidate/defender has no stale votes to remove.
|
|
1899
|
+
**/
|
|
1900
|
+
NoVotes: AugmentedError<ApiType>;
|
|
1901
|
+
/**
|
|
1902
|
+
* The candidacy cannot be bestowed as the candidate was clearly rejected.
|
|
1903
|
+
**/
|
|
1904
|
+
Rejected: AugmentedError<ApiType>;
|
|
1825
1905
|
/**
|
|
1826
1906
|
* User is suspended.
|
|
1827
1907
|
**/
|
|
1828
1908
|
Suspended: AugmentedError<ApiType>;
|
|
1909
|
+
/**
|
|
1910
|
+
* The candidacy cannot be pruned until a full additional intake period has passed.
|
|
1911
|
+
**/
|
|
1912
|
+
TooEarly: AugmentedError<ApiType>;
|
|
1913
|
+
/**
|
|
1914
|
+
* The skeptic already voted.
|
|
1915
|
+
**/
|
|
1916
|
+
Voted: AugmentedError<ApiType>;
|
|
1829
1917
|
/**
|
|
1830
1918
|
* Generic error
|
|
1831
1919
|
**/
|
|
@@ -1941,6 +2029,42 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1941
2029
|
**/
|
|
1942
2030
|
[key: string]: AugmentedError<ApiType>;
|
|
1943
2031
|
};
|
|
2032
|
+
stateTrieMigration: {
|
|
2033
|
+
/**
|
|
2034
|
+
* Bad child root provided.
|
|
2035
|
+
**/
|
|
2036
|
+
BadChildRoot: AugmentedError<ApiType>;
|
|
2037
|
+
/**
|
|
2038
|
+
* Bad witness data provided.
|
|
2039
|
+
**/
|
|
2040
|
+
BadWitness: AugmentedError<ApiType>;
|
|
2041
|
+
/**
|
|
2042
|
+
* A key was longer than the configured maximum.
|
|
2043
|
+
*
|
|
2044
|
+
* This means that the migration halted at the current [`Progress`] and
|
|
2045
|
+
* can be resumed with a larger [`crate::Config::MaxKeyLen`] value.
|
|
2046
|
+
* Retrying with the same [`crate::Config::MaxKeyLen`] value will not work.
|
|
2047
|
+
* The value should only be increased to avoid a storage migration for the currently
|
|
2048
|
+
* stored [`crate::Progress::LastKey`].
|
|
2049
|
+
**/
|
|
2050
|
+
KeyTooLong: AugmentedError<ApiType>;
|
|
2051
|
+
/**
|
|
2052
|
+
* Max signed limits not respected.
|
|
2053
|
+
**/
|
|
2054
|
+
MaxSignedLimits: AugmentedError<ApiType>;
|
|
2055
|
+
/**
|
|
2056
|
+
* submitter does not have enough funds.
|
|
2057
|
+
**/
|
|
2058
|
+
NotEnoughFunds: AugmentedError<ApiType>;
|
|
2059
|
+
/**
|
|
2060
|
+
* Signed migration is not allowed because the maximum limit is not set yet.
|
|
2061
|
+
**/
|
|
2062
|
+
SignedMigrationNotAllowed: AugmentedError<ApiType>;
|
|
2063
|
+
/**
|
|
2064
|
+
* Generic error
|
|
2065
|
+
**/
|
|
2066
|
+
[key: string]: AugmentedError<ApiType>;
|
|
2067
|
+
};
|
|
1944
2068
|
system: {
|
|
1945
2069
|
/**
|
|
1946
2070
|
* The origin filter prevent the call to be dispatched.
|
|
@@ -2138,8 +2262,8 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
2138
2262
|
**/
|
|
2139
2263
|
NoSubscription: AugmentedError<ApiType>;
|
|
2140
2264
|
/**
|
|
2141
|
-
* There was some other issue (i.e. not to do with routing) in sending the message.
|
|
2142
|
-
* a lack of space for buffering the message.
|
|
2265
|
+
* There was some other issue (i.e. not to do with routing) in sending the message.
|
|
2266
|
+
* Perhaps a lack of space for buffering the message.
|
|
2143
2267
|
**/
|
|
2144
2268
|
SendFailure: AugmentedError<ApiType>;
|
|
2145
2269
|
/**
|