@polkadot/api-augment 8.1.2-2 → 8.1.2-5
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 +15 -6
- package/kusama/errors.d.ts +2 -2
- package/kusama/query.d.ts +2 -2
- package/kusama/tx.d.ts +5 -5
- package/package.json +6 -6
- package/packageInfo.js +1 -1
- package/polkadot/consts.d.ts +15 -6
- package/polkadot/errors.d.ts +2 -2
- package/polkadot/query.d.ts +2 -2
- package/polkadot/tx.d.ts +5 -5
- package/substrate/consts.d.ts +14 -5
- package/substrate/errors.d.ts +14 -0
- package/substrate/events.d.ts +10 -0
- package/substrate/tx.d.ts +11 -1
package/cjs/packageInfo.js
CHANGED
package/kusama/consts.d.ts
CHANGED
|
@@ -183,7 +183,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
183
183
|
**/
|
|
184
184
|
childBountyValueMinimum: u128 & AugmentedConst<ApiType>;
|
|
185
185
|
/**
|
|
186
|
-
* Maximum number of child
|
|
186
|
+
* Maximum number of child bounties that can be added to a parent bounty.
|
|
187
187
|
**/
|
|
188
188
|
maxActiveChildBountyCount: u32 & AugmentedConst<ApiType>;
|
|
189
189
|
/**
|
|
@@ -280,6 +280,16 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
280
280
|
[key: string]: Codec;
|
|
281
281
|
};
|
|
282
282
|
electionProviderMultiPhase: {
|
|
283
|
+
/**
|
|
284
|
+
* The minimum amount of improvement to the solution score that defines a solution as
|
|
285
|
+
* "better" in the Signed phase.
|
|
286
|
+
**/
|
|
287
|
+
betterSignedThreshold: Perbill & AugmentedConst<ApiType>;
|
|
288
|
+
/**
|
|
289
|
+
* The minimum amount of improvement to the solution score that defines a solution as
|
|
290
|
+
* "better" in the Unsigned phase.
|
|
291
|
+
**/
|
|
292
|
+
betterUnsignedThreshold: Perbill & AugmentedConst<ApiType>;
|
|
283
293
|
/**
|
|
284
294
|
* The maximum number of electable targets to put in the snapshot.
|
|
285
295
|
**/
|
|
@@ -327,6 +337,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
327
337
|
* Per-weight deposit for a signed solution.
|
|
328
338
|
**/
|
|
329
339
|
signedDepositWeight: u128 & AugmentedConst<ApiType>;
|
|
340
|
+
/**
|
|
341
|
+
* The maximum amount of unchecked solutions to refund the call fee for.
|
|
342
|
+
**/
|
|
343
|
+
signedMaxRefunds: u32 & AugmentedConst<ApiType>;
|
|
330
344
|
/**
|
|
331
345
|
* Maximum number of signed submissions that can be queued.
|
|
332
346
|
*
|
|
@@ -351,11 +365,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
351
365
|
* Base reward for a signed solution
|
|
352
366
|
**/
|
|
353
367
|
signedRewardBase: u128 & AugmentedConst<ApiType>;
|
|
354
|
-
/**
|
|
355
|
-
* The minimum amount of improvement to the solution score that defines a solution as
|
|
356
|
-
* "better" (in any phase).
|
|
357
|
-
**/
|
|
358
|
-
solutionImprovementThreshold: Perbill & AugmentedConst<ApiType>;
|
|
359
368
|
/**
|
|
360
369
|
* Duration of the unsigned phase.
|
|
361
370
|
**/
|
package/kusama/errors.d.ts
CHANGED
|
@@ -145,7 +145,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
145
145
|
};
|
|
146
146
|
bounties: {
|
|
147
147
|
/**
|
|
148
|
-
* The bounty cannot be closed because it has active child
|
|
148
|
+
* The bounty cannot be closed because it has active child bounties.
|
|
149
149
|
**/
|
|
150
150
|
HasActiveChildBounty: AugmentedError<ApiType>;
|
|
151
151
|
/**
|
|
@@ -204,7 +204,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
204
204
|
**/
|
|
205
205
|
ParentBountyNotActive: AugmentedError<ApiType>;
|
|
206
206
|
/**
|
|
207
|
-
* Number of child
|
|
207
|
+
* Number of child bounties exceeds limit `MaxActiveChildBountyCount`.
|
|
208
208
|
**/
|
|
209
209
|
TooManyChildBounties: AugmentedError<ApiType>;
|
|
210
210
|
/**
|
package/kusama/query.d.ts
CHANGED
|
@@ -255,7 +255,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
255
255
|
};
|
|
256
256
|
childBounties: {
|
|
257
257
|
/**
|
|
258
|
-
* Child
|
|
258
|
+
* Child bounties that have been added.
|
|
259
259
|
**/
|
|
260
260
|
childBounties: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletChildBountiesChildBounty>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
|
261
261
|
/**
|
|
@@ -271,7 +271,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
271
271
|
**/
|
|
272
272
|
childrenCuratorFees: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u128>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
273
273
|
/**
|
|
274
|
-
* Number of child
|
|
274
|
+
* Number of child bounties per parent bounty.
|
|
275
275
|
* Map of parent bounty index to number of child bounties.
|
|
276
276
|
**/
|
|
277
277
|
parentChildBounties: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u32>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
package/kusama/tx.d.ts
CHANGED
|
@@ -479,7 +479,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
479
479
|
* parent bounty to child-bounty account, if parent bounty has enough
|
|
480
480
|
* funds, else the call fails.
|
|
481
481
|
*
|
|
482
|
-
* Upper bound to maximum number of active child
|
|
482
|
+
* Upper bound to maximum number of active child bounties that can be
|
|
483
483
|
* added are managed via runtime trait config
|
|
484
484
|
* [`Config::MaxActiveChildBountyCount`].
|
|
485
485
|
*
|
|
@@ -496,7 +496,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
496
496
|
*
|
|
497
497
|
* The beneficiary will be able to claim the funds after a delay.
|
|
498
498
|
*
|
|
499
|
-
* The dispatch origin for this call must be the
|
|
499
|
+
* The dispatch origin for this call must be the parent curator or
|
|
500
500
|
* curator of this child-bounty.
|
|
501
501
|
*
|
|
502
502
|
* Parent bounty must be in active state, for this child-bounty call to
|
|
@@ -600,12 +600,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
600
600
|
* the curator of the parent bounty, or any signed origin.
|
|
601
601
|
*
|
|
602
602
|
* For the origin other than T::RejectOrigin and the child-bounty
|
|
603
|
-
* curator, parent
|
|
603
|
+
* curator, parent bounty must be in active state, for this call to
|
|
604
604
|
* work. We allow child-bounty curator and T::RejectOrigin to execute
|
|
605
|
-
* this call irrespective of the parent
|
|
605
|
+
* this call irrespective of the parent bounty state.
|
|
606
606
|
*
|
|
607
607
|
* If this function is called by the `RejectOrigin` or the
|
|
608
|
-
* parent
|
|
608
|
+
* parent bounty curator, we assume that the child-bounty curator is
|
|
609
609
|
* malicious or inactive. As a result, child-bounty curator deposit is
|
|
610
610
|
* slashed.
|
|
611
611
|
*
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"./cjs/detectPackage.js"
|
|
21
21
|
],
|
|
22
22
|
"type": "module",
|
|
23
|
-
"version": "8.1.2-
|
|
23
|
+
"version": "8.1.2-5",
|
|
24
24
|
"main": "./cjs/index.js",
|
|
25
25
|
"module": "./index.js",
|
|
26
26
|
"types": "./index.d.ts",
|
|
@@ -171,11 +171,11 @@
|
|
|
171
171
|
},
|
|
172
172
|
"dependencies": {
|
|
173
173
|
"@babel/runtime": "^7.17.9",
|
|
174
|
-
"@polkadot/api-base": "8.1.2-
|
|
175
|
-
"@polkadot/rpc-augment": "8.1.2-
|
|
176
|
-
"@polkadot/types": "8.1.2-
|
|
177
|
-
"@polkadot/types-augment": "8.1.2-
|
|
178
|
-
"@polkadot/types-codec": "8.1.2-
|
|
174
|
+
"@polkadot/api-base": "8.1.2-5",
|
|
175
|
+
"@polkadot/rpc-augment": "8.1.2-5",
|
|
176
|
+
"@polkadot/types": "8.1.2-5",
|
|
177
|
+
"@polkadot/types-augment": "8.1.2-5",
|
|
178
|
+
"@polkadot/types-codec": "8.1.2-5",
|
|
179
179
|
"@polkadot/util": "^9.0.1"
|
|
180
180
|
}
|
|
181
181
|
}
|
package/packageInfo.js
CHANGED
|
@@ -5,5 +5,5 @@ export const packageInfo = {
|
|
|
5
5
|
name: '@polkadot/api-augment',
|
|
6
6
|
path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto',
|
|
7
7
|
type: 'esm',
|
|
8
|
-
version: '8.1.2-
|
|
8
|
+
version: '8.1.2-5'
|
|
9
9
|
};
|
package/polkadot/consts.d.ts
CHANGED
|
@@ -183,7 +183,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
183
183
|
**/
|
|
184
184
|
childBountyValueMinimum: u128 & AugmentedConst<ApiType>;
|
|
185
185
|
/**
|
|
186
|
-
* Maximum number of child
|
|
186
|
+
* Maximum number of child bounties that can be added to a parent bounty.
|
|
187
187
|
**/
|
|
188
188
|
maxActiveChildBountyCount: u32 & AugmentedConst<ApiType>;
|
|
189
189
|
/**
|
|
@@ -280,6 +280,16 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
280
280
|
[key: string]: Codec;
|
|
281
281
|
};
|
|
282
282
|
electionProviderMultiPhase: {
|
|
283
|
+
/**
|
|
284
|
+
* The minimum amount of improvement to the solution score that defines a solution as
|
|
285
|
+
* "better" in the Signed phase.
|
|
286
|
+
**/
|
|
287
|
+
betterSignedThreshold: Perbill & AugmentedConst<ApiType>;
|
|
288
|
+
/**
|
|
289
|
+
* The minimum amount of improvement to the solution score that defines a solution as
|
|
290
|
+
* "better" in the Unsigned phase.
|
|
291
|
+
**/
|
|
292
|
+
betterUnsignedThreshold: Perbill & AugmentedConst<ApiType>;
|
|
283
293
|
/**
|
|
284
294
|
* The maximum number of electable targets to put in the snapshot.
|
|
285
295
|
**/
|
|
@@ -327,6 +337,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
327
337
|
* Per-weight deposit for a signed solution.
|
|
328
338
|
**/
|
|
329
339
|
signedDepositWeight: u128 & AugmentedConst<ApiType>;
|
|
340
|
+
/**
|
|
341
|
+
* The maximum amount of unchecked solutions to refund the call fee for.
|
|
342
|
+
**/
|
|
343
|
+
signedMaxRefunds: u32 & AugmentedConst<ApiType>;
|
|
330
344
|
/**
|
|
331
345
|
* Maximum number of signed submissions that can be queued.
|
|
332
346
|
*
|
|
@@ -351,11 +365,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
351
365
|
* Base reward for a signed solution
|
|
352
366
|
**/
|
|
353
367
|
signedRewardBase: u128 & AugmentedConst<ApiType>;
|
|
354
|
-
/**
|
|
355
|
-
* The minimum amount of improvement to the solution score that defines a solution as
|
|
356
|
-
* "better" (in any phase).
|
|
357
|
-
**/
|
|
358
|
-
solutionImprovementThreshold: Perbill & AugmentedConst<ApiType>;
|
|
359
368
|
/**
|
|
360
369
|
* Duration of the unsigned phase.
|
|
361
370
|
**/
|
package/polkadot/errors.d.ts
CHANGED
|
@@ -145,7 +145,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
145
145
|
};
|
|
146
146
|
bounties: {
|
|
147
147
|
/**
|
|
148
|
-
* The bounty cannot be closed because it has active child
|
|
148
|
+
* The bounty cannot be closed because it has active child bounties.
|
|
149
149
|
**/
|
|
150
150
|
HasActiveChildBounty: AugmentedError<ApiType>;
|
|
151
151
|
/**
|
|
@@ -204,7 +204,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
204
204
|
**/
|
|
205
205
|
ParentBountyNotActive: AugmentedError<ApiType>;
|
|
206
206
|
/**
|
|
207
|
-
* Number of child
|
|
207
|
+
* Number of child bounties exceeds limit `MaxActiveChildBountyCount`.
|
|
208
208
|
**/
|
|
209
209
|
TooManyChildBounties: AugmentedError<ApiType>;
|
|
210
210
|
/**
|
package/polkadot/query.d.ts
CHANGED
|
@@ -255,7 +255,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
255
255
|
};
|
|
256
256
|
childBounties: {
|
|
257
257
|
/**
|
|
258
|
-
* Child
|
|
258
|
+
* Child bounties that have been added.
|
|
259
259
|
**/
|
|
260
260
|
childBounties: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletChildBountiesChildBounty>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
|
261
261
|
/**
|
|
@@ -271,7 +271,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
271
271
|
**/
|
|
272
272
|
childrenCuratorFees: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u128>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
273
273
|
/**
|
|
274
|
-
* Number of child
|
|
274
|
+
* Number of child bounties per parent bounty.
|
|
275
275
|
* Map of parent bounty index to number of child bounties.
|
|
276
276
|
**/
|
|
277
277
|
parentChildBounties: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u32>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
package/polkadot/tx.d.ts
CHANGED
|
@@ -479,7 +479,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
479
479
|
* parent bounty to child-bounty account, if parent bounty has enough
|
|
480
480
|
* funds, else the call fails.
|
|
481
481
|
*
|
|
482
|
-
* Upper bound to maximum number of active child
|
|
482
|
+
* Upper bound to maximum number of active child bounties that can be
|
|
483
483
|
* added are managed via runtime trait config
|
|
484
484
|
* [`Config::MaxActiveChildBountyCount`].
|
|
485
485
|
*
|
|
@@ -496,7 +496,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
496
496
|
*
|
|
497
497
|
* The beneficiary will be able to claim the funds after a delay.
|
|
498
498
|
*
|
|
499
|
-
* The dispatch origin for this call must be the
|
|
499
|
+
* The dispatch origin for this call must be the parent curator or
|
|
500
500
|
* curator of this child-bounty.
|
|
501
501
|
*
|
|
502
502
|
* Parent bounty must be in active state, for this child-bounty call to
|
|
@@ -600,12 +600,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
600
600
|
* the curator of the parent bounty, or any signed origin.
|
|
601
601
|
*
|
|
602
602
|
* For the origin other than T::RejectOrigin and the child-bounty
|
|
603
|
-
* curator, parent
|
|
603
|
+
* curator, parent bounty must be in active state, for this call to
|
|
604
604
|
* work. We allow child-bounty curator and T::RejectOrigin to execute
|
|
605
|
-
* this call irrespective of the parent
|
|
605
|
+
* this call irrespective of the parent bounty state.
|
|
606
606
|
*
|
|
607
607
|
* If this function is called by the `RejectOrigin` or the
|
|
608
|
-
* parent
|
|
608
|
+
* parent bounty curator, we assume that the child-bounty curator is
|
|
609
609
|
* malicious or inactive. As a result, child-bounty curator deposit is
|
|
610
610
|
* slashed.
|
|
611
611
|
*
|
package/substrate/consts.d.ts
CHANGED
|
@@ -341,6 +341,16 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
341
341
|
[key: string]: Codec;
|
|
342
342
|
};
|
|
343
343
|
electionProviderMultiPhase: {
|
|
344
|
+
/**
|
|
345
|
+
* The minimum amount of improvement to the solution score that defines a solution as
|
|
346
|
+
* "better" in the Signed phase.
|
|
347
|
+
**/
|
|
348
|
+
betterSignedThreshold: Perbill & AugmentedConst<ApiType>;
|
|
349
|
+
/**
|
|
350
|
+
* The minimum amount of improvement to the solution score that defines a solution as
|
|
351
|
+
* "better" in the Unsigned phase.
|
|
352
|
+
**/
|
|
353
|
+
betterUnsignedThreshold: Perbill & AugmentedConst<ApiType>;
|
|
344
354
|
/**
|
|
345
355
|
* The maximum number of electable targets to put in the snapshot.
|
|
346
356
|
**/
|
|
@@ -388,6 +398,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
388
398
|
* Per-weight deposit for a signed solution.
|
|
389
399
|
**/
|
|
390
400
|
signedDepositWeight: u128 & AugmentedConst<ApiType>;
|
|
401
|
+
/**
|
|
402
|
+
* The maximum amount of unchecked solutions to refund the call fee for.
|
|
403
|
+
**/
|
|
404
|
+
signedMaxRefunds: u32 & AugmentedConst<ApiType>;
|
|
391
405
|
/**
|
|
392
406
|
* Maximum number of signed submissions that can be queued.
|
|
393
407
|
*
|
|
@@ -412,11 +426,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
412
426
|
* Base reward for a signed solution
|
|
413
427
|
**/
|
|
414
428
|
signedRewardBase: u128 & AugmentedConst<ApiType>;
|
|
415
|
-
/**
|
|
416
|
-
* The minimum amount of improvement to the solution score that defines a solution as
|
|
417
|
-
* "better" (in any phase).
|
|
418
|
-
**/
|
|
419
|
-
solutionImprovementThreshold: Perbill & AugmentedConst<ApiType>;
|
|
420
429
|
/**
|
|
421
430
|
* Duration of the unsigned phase.
|
|
422
431
|
**/
|
package/substrate/errors.d.ts
CHANGED
|
@@ -1202,6 +1202,20 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1202
1202
|
**/
|
|
1203
1203
|
[key: string]: AugmentedError<ApiType>;
|
|
1204
1204
|
};
|
|
1205
|
+
remark: {
|
|
1206
|
+
/**
|
|
1207
|
+
* Attempted to call `store` outside of block execution.
|
|
1208
|
+
**/
|
|
1209
|
+
BadContext: AugmentedError<ApiType>;
|
|
1210
|
+
/**
|
|
1211
|
+
* Attempting to store empty data.
|
|
1212
|
+
**/
|
|
1213
|
+
Empty: AugmentedError<ApiType>;
|
|
1214
|
+
/**
|
|
1215
|
+
* Generic error
|
|
1216
|
+
**/
|
|
1217
|
+
[key: string]: AugmentedError<ApiType>;
|
|
1218
|
+
};
|
|
1205
1219
|
scheduler: {
|
|
1206
1220
|
/**
|
|
1207
1221
|
* Failed to schedule a call
|
package/substrate/events.d.ts
CHANGED
|
@@ -750,6 +750,16 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
750
750
|
**/
|
|
751
751
|
[key: string]: AugmentedEvent<ApiType>;
|
|
752
752
|
};
|
|
753
|
+
remark: {
|
|
754
|
+
/**
|
|
755
|
+
* Stored data off chain.
|
|
756
|
+
**/
|
|
757
|
+
Stored: AugmentedEvent<ApiType, [AccountId32, H256]>;
|
|
758
|
+
/**
|
|
759
|
+
* Generic event
|
|
760
|
+
**/
|
|
761
|
+
[key: string]: AugmentedEvent<ApiType>;
|
|
762
|
+
};
|
|
753
763
|
scheduler: {
|
|
754
764
|
/**
|
|
755
765
|
* The call for the provided hash was not found so the task has been aborted.
|
package/substrate/tx.d.ts
CHANGED
|
@@ -3547,6 +3547,16 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3547
3547
|
**/
|
|
3548
3548
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
3549
3549
|
};
|
|
3550
|
+
remark: {
|
|
3551
|
+
/**
|
|
3552
|
+
* Index and store data off chain.
|
|
3553
|
+
**/
|
|
3554
|
+
store: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
3555
|
+
/**
|
|
3556
|
+
* Generic tx
|
|
3557
|
+
**/
|
|
3558
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
3559
|
+
};
|
|
3550
3560
|
scheduler: {
|
|
3551
3561
|
/**
|
|
3552
3562
|
* Cancel an anonymously scheduled task.
|
|
@@ -5136,7 +5146,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5136
5146
|
**/
|
|
5137
5147
|
renew: AugmentedSubmittable<(block: u32 | AnyNumber | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
|
5138
5148
|
/**
|
|
5139
|
-
* Index and store data
|
|
5149
|
+
* Index and store data off chain. Minimum data size is 1 bytes, maximum is
|
|
5140
5150
|
* `MaxTransactionSize`. Data will be removed after `STORAGE_PERIOD` blocks, unless `renew`
|
|
5141
5151
|
* is called. # <weight>
|
|
5142
5152
|
* - n*log(n) of data size, as all data is pushed to an in-memory trie.
|