@polkadot/api-augment 9.7.1 → 9.8.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 +101 -14
- package/kusama/errors.d.ts +256 -29
- package/kusama/events.d.ts +297 -62
- package/kusama/query.d.ts +120 -28
- package/kusama/runtime.d.ts +2 -2
- package/kusama/tx.d.ts +718 -139
- package/package.json +7 -7
- package/packageInfo.js +1 -1
- package/polkadot/consts.d.ts +22 -13
- package/polkadot/errors.d.ts +33 -29
- package/polkadot/events.d.ts +45 -62
- package/polkadot/query.d.ts +17 -28
- package/polkadot/runtime.d.ts +2 -2
- package/polkadot/tx.d.ts +233 -139
- package/substrate/consts.d.ts +7 -0
- package/substrate/errors.d.ts +11 -3
- package/substrate/events.d.ts +9 -3
- package/substrate/runtime.d.ts +13 -7
- package/substrate/tx.d.ts +6 -4
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"./cjs/detectPackage.js"
|
|
21
21
|
],
|
|
22
22
|
"type": "module",
|
|
23
|
-
"version": "9.
|
|
23
|
+
"version": "9.8.1",
|
|
24
24
|
"main": "./cjs/index.js",
|
|
25
25
|
"module": "./index.js",
|
|
26
26
|
"types": "./index.d.ts",
|
|
@@ -186,11 +186,11 @@
|
|
|
186
186
|
},
|
|
187
187
|
"dependencies": {
|
|
188
188
|
"@babel/runtime": "^7.20.1",
|
|
189
|
-
"@polkadot/api-base": "9.
|
|
190
|
-
"@polkadot/rpc-augment": "9.
|
|
191
|
-
"@polkadot/types": "9.
|
|
192
|
-
"@polkadot/types-augment": "9.
|
|
193
|
-
"@polkadot/types-codec": "9.
|
|
194
|
-
"@polkadot/util": "^10.1.
|
|
189
|
+
"@polkadot/api-base": "9.8.1",
|
|
190
|
+
"@polkadot/rpc-augment": "9.8.1",
|
|
191
|
+
"@polkadot/types": "9.8.1",
|
|
192
|
+
"@polkadot/types-augment": "9.8.1",
|
|
193
|
+
"@polkadot/types-codec": "9.8.1",
|
|
194
|
+
"@polkadot/util": "^10.1.12"
|
|
195
195
|
}
|
|
196
196
|
}
|
package/packageInfo.js
CHANGED
|
@@ -7,5 +7,5 @@ export const packageInfo = {
|
|
|
7
7
|
name: '@polkadot/api-augment',
|
|
8
8
|
path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto',
|
|
9
9
|
type: 'esm',
|
|
10
|
-
version: '9.
|
|
10
|
+
version: '9.8.1'
|
|
11
11
|
};
|
package/polkadot/consts.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import '@polkadot/api-base/types/consts';
|
|
|
2
2
|
import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
|
|
3
3
|
import type { Bytes, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
4
4
|
import type { Codec } from '@polkadot/types-codec/types';
|
|
5
|
-
import type { Perbill, Percent, Permill
|
|
6
|
-
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight } from '@polkadot/types/lookup';
|
|
5
|
+
import type { Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
|
|
6
|
+
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
|
7
7
|
export declare type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
|
|
8
8
|
declare module '@polkadot/api-base/types/consts' {
|
|
9
9
|
interface AugmentedConsts<ApiType extends ApiTypes> {
|
|
@@ -194,6 +194,14 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
194
194
|
* How often (in blocks) new public referenda are launched.
|
|
195
195
|
**/
|
|
196
196
|
launchPeriod: u32 & AugmentedConst<ApiType>;
|
|
197
|
+
/**
|
|
198
|
+
* The maximum number of items which can be blacklisted.
|
|
199
|
+
**/
|
|
200
|
+
maxBlacklisted: u32 & AugmentedConst<ApiType>;
|
|
201
|
+
/**
|
|
202
|
+
* The maximum number of deposits a public proposal may have at any time.
|
|
203
|
+
**/
|
|
204
|
+
maxDeposits: u32 & AugmentedConst<ApiType>;
|
|
197
205
|
/**
|
|
198
206
|
* The maximum number of public proposals that can exist at any time.
|
|
199
207
|
**/
|
|
@@ -209,10 +217,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
209
217
|
* The minimum amount to be used as a deposit for a public referendum proposal.
|
|
210
218
|
**/
|
|
211
219
|
minimumDeposit: u128 & AugmentedConst<ApiType>;
|
|
212
|
-
/**
|
|
213
|
-
* The amount of balance that must be deposited per byte of preimage stored.
|
|
214
|
-
**/
|
|
215
|
-
preimageByteDeposit: u128 & AugmentedConst<ApiType>;
|
|
216
220
|
/**
|
|
217
221
|
* The minimum period of vote locking.
|
|
218
222
|
*
|
|
@@ -250,9 +254,16 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
250
254
|
* take place over multiple blocks.
|
|
251
255
|
**/
|
|
252
256
|
maxElectingVoters: u32 & AugmentedConst<ApiType>;
|
|
257
|
+
/**
|
|
258
|
+
* The maximum number of winners that can be elected by this `ElectionProvider`
|
|
259
|
+
* implementation.
|
|
260
|
+
*
|
|
261
|
+
* Note: This must always be greater or equal to `T::DataProvider::desired_targets()`.
|
|
262
|
+
**/
|
|
263
|
+
maxWinners: u32 & AugmentedConst<ApiType>;
|
|
253
264
|
minerMaxLength: u32 & AugmentedConst<ApiType>;
|
|
254
265
|
minerMaxVotesPerVoter: u32 & AugmentedConst<ApiType>;
|
|
255
|
-
minerMaxWeight:
|
|
266
|
+
minerMaxWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
|
256
267
|
/**
|
|
257
268
|
* The priority of the unsigned transaction submitted in the unsigned-phase
|
|
258
269
|
**/
|
|
@@ -297,7 +308,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
297
308
|
* this pallet), then [`MinerConfig::solution_weight`] is used to compare against
|
|
298
309
|
* this value.
|
|
299
310
|
**/
|
|
300
|
-
signedMaxWeight:
|
|
311
|
+
signedMaxWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
|
301
312
|
/**
|
|
302
313
|
* Duration of the signed phase.
|
|
303
314
|
**/
|
|
@@ -401,7 +412,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
401
412
|
/**
|
|
402
413
|
* The maximum amount of signatories allowed in the multisig.
|
|
403
414
|
**/
|
|
404
|
-
maxSignatories:
|
|
415
|
+
maxSignatories: u32 & AugmentedConst<ApiType>;
|
|
405
416
|
/**
|
|
406
417
|
* Generic const
|
|
407
418
|
**/
|
|
@@ -553,13 +564,11 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
553
564
|
};
|
|
554
565
|
scheduler: {
|
|
555
566
|
/**
|
|
556
|
-
* The maximum weight that may be scheduled per block for any dispatchables
|
|
557
|
-
* priority than `schedule::HARD_DEADLINE`.
|
|
567
|
+
* The maximum weight that may be scheduled per block for any dispatchables.
|
|
558
568
|
**/
|
|
559
|
-
maximumWeight:
|
|
569
|
+
maximumWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
|
560
570
|
/**
|
|
561
571
|
* The maximum number of scheduled calls in the queue for a single block.
|
|
562
|
-
* Not strictly enforced, but used for weight estimation.
|
|
563
572
|
**/
|
|
564
573
|
maxScheduledPerBlock: u32 & AugmentedConst<ApiType>;
|
|
565
574
|
/**
|
package/polkadot/errors.d.ts
CHANGED
|
@@ -398,18 +398,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
398
398
|
* Identity may not veto a proposal twice
|
|
399
399
|
**/
|
|
400
400
|
AlreadyVetoed: AugmentedError<ApiType>;
|
|
401
|
-
/**
|
|
402
|
-
* Preimage already noted
|
|
403
|
-
**/
|
|
404
|
-
DuplicatePreimage: AugmentedError<ApiType>;
|
|
405
401
|
/**
|
|
406
402
|
* Proposal already made
|
|
407
403
|
**/
|
|
408
404
|
DuplicateProposal: AugmentedError<ApiType>;
|
|
409
|
-
/**
|
|
410
|
-
* Imminent
|
|
411
|
-
**/
|
|
412
|
-
Imminent: AugmentedError<ApiType>;
|
|
413
405
|
/**
|
|
414
406
|
* The instant referendum origin is currently disallowed.
|
|
415
407
|
**/
|
|
@@ -446,10 +438,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
446
438
|
* The account is not currently delegating.
|
|
447
439
|
**/
|
|
448
440
|
NotDelegating: AugmentedError<ApiType>;
|
|
449
|
-
/**
|
|
450
|
-
* Not imminent
|
|
451
|
-
**/
|
|
452
|
-
NotImminent: AugmentedError<ApiType>;
|
|
453
441
|
/**
|
|
454
442
|
* Next external proposal not simple majority
|
|
455
443
|
**/
|
|
@@ -458,14 +446,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
458
446
|
* The given account did not vote on the referendum.
|
|
459
447
|
**/
|
|
460
448
|
NotVoter: AugmentedError<ApiType>;
|
|
461
|
-
/**
|
|
462
|
-
* Invalid preimage
|
|
463
|
-
**/
|
|
464
|
-
PreimageInvalid: AugmentedError<ApiType>;
|
|
465
|
-
/**
|
|
466
|
-
* Preimage not found
|
|
467
|
-
**/
|
|
468
|
-
PreimageMissing: AugmentedError<ApiType>;
|
|
469
449
|
/**
|
|
470
450
|
* Proposal still blacklisted
|
|
471
451
|
**/
|
|
@@ -479,13 +459,9 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
479
459
|
**/
|
|
480
460
|
ReferendumInvalid: AugmentedError<ApiType>;
|
|
481
461
|
/**
|
|
482
|
-
*
|
|
483
|
-
**/
|
|
484
|
-
TooEarly: AugmentedError<ApiType>;
|
|
485
|
-
/**
|
|
486
|
-
* Maximum number of proposals reached.
|
|
462
|
+
* Maximum number of items reached.
|
|
487
463
|
**/
|
|
488
|
-
|
|
464
|
+
TooMany: AugmentedError<ApiType>;
|
|
489
465
|
/**
|
|
490
466
|
* Value too low
|
|
491
467
|
**/
|
|
@@ -509,6 +485,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
509
485
|
[key: string]: AugmentedError<ApiType>;
|
|
510
486
|
};
|
|
511
487
|
electionProviderMultiPhase: {
|
|
488
|
+
/**
|
|
489
|
+
* Some bound not met
|
|
490
|
+
**/
|
|
491
|
+
BoundNotMet: AugmentedError<ApiType>;
|
|
512
492
|
/**
|
|
513
493
|
* The call is not allowed at this point.
|
|
514
494
|
**/
|
|
@@ -557,6 +537,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
557
537
|
* The signed submission consumes too much weight
|
|
558
538
|
**/
|
|
559
539
|
SignedTooMuchWeight: AugmentedError<ApiType>;
|
|
540
|
+
/**
|
|
541
|
+
* Submitted solution has too many winners
|
|
542
|
+
**/
|
|
543
|
+
TooManyWinners: AugmentedError<ApiType>;
|
|
560
544
|
/**
|
|
561
545
|
* Generic error
|
|
562
546
|
**/
|
|
@@ -745,6 +729,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
745
729
|
* Judgement given.
|
|
746
730
|
**/
|
|
747
731
|
JudgementGiven: AugmentedError<ApiType>;
|
|
732
|
+
/**
|
|
733
|
+
* Error that occurs when there is an issue paying for judgement.
|
|
734
|
+
**/
|
|
735
|
+
JudgementPaymentFailed: AugmentedError<ApiType>;
|
|
748
736
|
/**
|
|
749
737
|
* No identity found.
|
|
750
738
|
**/
|
|
@@ -916,6 +904,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
916
904
|
* anymore to, for example, collect rewards).
|
|
917
905
|
**/
|
|
918
906
|
FullyUnbonding: AugmentedError<ApiType>;
|
|
907
|
+
/**
|
|
908
|
+
* Pool id provided is not correct/usable.
|
|
909
|
+
**/
|
|
910
|
+
InvalidPoolId: AugmentedError<ApiType>;
|
|
919
911
|
/**
|
|
920
912
|
* Too many members in the pool or system.
|
|
921
913
|
**/
|
|
@@ -965,6 +957,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
965
957
|
* Partial unbonding now allowed permissionlessly.
|
|
966
958
|
**/
|
|
967
959
|
PartialUnbondNotAllowedPermissionlessly: AugmentedError<ApiType>;
|
|
960
|
+
/**
|
|
961
|
+
* Pool id currently in use.
|
|
962
|
+
**/
|
|
963
|
+
PoolIdInUse: AugmentedError<ApiType>;
|
|
968
964
|
/**
|
|
969
965
|
* An account is not a member.
|
|
970
966
|
**/
|
|
@@ -1159,6 +1155,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1159
1155
|
* Para cannot be upgraded to a parachain.
|
|
1160
1156
|
**/
|
|
1161
1157
|
CannotUpgrade: AugmentedError<ApiType>;
|
|
1158
|
+
/**
|
|
1159
|
+
* Parachain cannot currently schedule a code upgrade.
|
|
1160
|
+
**/
|
|
1161
|
+
CannotUpgradeCode: AugmentedError<ApiType>;
|
|
1162
1162
|
/**
|
|
1163
1163
|
* Para is not registered in our system.
|
|
1164
1164
|
**/
|
|
@@ -1329,7 +1329,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1329
1329
|
/**
|
|
1330
1330
|
* Preimage is too large to store on-chain.
|
|
1331
1331
|
**/
|
|
1332
|
-
|
|
1332
|
+
TooBig: AugmentedError<ApiType>;
|
|
1333
1333
|
/**
|
|
1334
1334
|
* Generic error
|
|
1335
1335
|
**/
|
|
@@ -1441,6 +1441,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1441
1441
|
* Failed to schedule a call
|
|
1442
1442
|
**/
|
|
1443
1443
|
FailedToSchedule: AugmentedError<ApiType>;
|
|
1444
|
+
/**
|
|
1445
|
+
* Attempt to use a non-named function on a named task.
|
|
1446
|
+
**/
|
|
1447
|
+
Named: AugmentedError<ApiType>;
|
|
1444
1448
|
/**
|
|
1445
1449
|
* Cannot find the scheduled call.
|
|
1446
1450
|
**/
|
|
@@ -1599,8 +1603,8 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1599
1603
|
**/
|
|
1600
1604
|
TooManyTargets: AugmentedError<ApiType>;
|
|
1601
1605
|
/**
|
|
1602
|
-
* There are too many
|
|
1603
|
-
* settings to keep things safe for the runtime.
|
|
1606
|
+
* There are too many validator candidates in the system. Governance needs to adjust the
|
|
1607
|
+
* staking settings to keep things safe for the runtime.
|
|
1604
1608
|
**/
|
|
1605
1609
|
TooManyValidators: AugmentedError<ApiType>;
|
|
1606
1610
|
/**
|
package/polkadot/events.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
|
|
|
3
3
|
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
4
4
|
import type { ITuple } from '@polkadot/types-codec/types';
|
|
5
5
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
|
6
|
-
import type { AccountId32, H256
|
|
7
|
-
import type { FrameSupportDispatchDispatchInfo,
|
|
6
|
+
import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
|
|
7
|
+
import type { FrameSupportDispatchDispatchInfo, FrameSupportTokensMiscBalanceStatus, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletStakingExposure, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeProxyType, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpWeightsWeightV2Weight, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
|
8
8
|
export declare type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
|
9
9
|
declare module '@polkadot/api-base/types/events' {
|
|
10
10
|
interface AugmentedEvents<ApiType extends ApiTypes> {
|
|
@@ -411,13 +411,6 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
411
411
|
who: AccountId32;
|
|
412
412
|
target: AccountId32;
|
|
413
413
|
}>;
|
|
414
|
-
/**
|
|
415
|
-
* A proposal has been enacted.
|
|
416
|
-
**/
|
|
417
|
-
Executed: AugmentedEvent<ApiType, [refIndex: u32, result: Result<Null, SpRuntimeDispatchError>], {
|
|
418
|
-
refIndex: u32;
|
|
419
|
-
result: Result<Null, SpRuntimeDispatchError>;
|
|
420
|
-
}>;
|
|
421
414
|
/**
|
|
422
415
|
* An external proposal has been tabled.
|
|
423
416
|
**/
|
|
@@ -434,45 +427,6 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
434
427
|
Passed: AugmentedEvent<ApiType, [refIndex: u32], {
|
|
435
428
|
refIndex: u32;
|
|
436
429
|
}>;
|
|
437
|
-
/**
|
|
438
|
-
* A proposal could not be executed because its preimage was invalid.
|
|
439
|
-
**/
|
|
440
|
-
PreimageInvalid: AugmentedEvent<ApiType, [proposalHash: H256, refIndex: u32], {
|
|
441
|
-
proposalHash: H256;
|
|
442
|
-
refIndex: u32;
|
|
443
|
-
}>;
|
|
444
|
-
/**
|
|
445
|
-
* A proposal could not be executed because its preimage was missing.
|
|
446
|
-
**/
|
|
447
|
-
PreimageMissing: AugmentedEvent<ApiType, [proposalHash: H256, refIndex: u32], {
|
|
448
|
-
proposalHash: H256;
|
|
449
|
-
refIndex: u32;
|
|
450
|
-
}>;
|
|
451
|
-
/**
|
|
452
|
-
* A proposal's preimage was noted, and the deposit taken.
|
|
453
|
-
**/
|
|
454
|
-
PreimageNoted: AugmentedEvent<ApiType, [proposalHash: H256, who: AccountId32, deposit: u128], {
|
|
455
|
-
proposalHash: H256;
|
|
456
|
-
who: AccountId32;
|
|
457
|
-
deposit: u128;
|
|
458
|
-
}>;
|
|
459
|
-
/**
|
|
460
|
-
* A registered preimage was removed and the deposit collected by the reaper.
|
|
461
|
-
**/
|
|
462
|
-
PreimageReaped: AugmentedEvent<ApiType, [proposalHash: H256, provider: AccountId32, deposit: u128, reaper: AccountId32], {
|
|
463
|
-
proposalHash: H256;
|
|
464
|
-
provider: AccountId32;
|
|
465
|
-
deposit: u128;
|
|
466
|
-
reaper: AccountId32;
|
|
467
|
-
}>;
|
|
468
|
-
/**
|
|
469
|
-
* A proposal preimage was removed and used (the deposit was returned).
|
|
470
|
-
**/
|
|
471
|
-
PreimageUsed: AugmentedEvent<ApiType, [proposalHash: H256, provider: AccountId32, deposit: u128], {
|
|
472
|
-
proposalHash: H256;
|
|
473
|
-
provider: AccountId32;
|
|
474
|
-
deposit: u128;
|
|
475
|
-
}>;
|
|
476
430
|
/**
|
|
477
431
|
* A proposal got canceled.
|
|
478
432
|
**/
|
|
@@ -503,10 +457,9 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
503
457
|
/**
|
|
504
458
|
* A public proposal has been tabled for referendum vote.
|
|
505
459
|
**/
|
|
506
|
-
Tabled: AugmentedEvent<ApiType, [proposalIndex: u32, deposit: u128
|
|
460
|
+
Tabled: AugmentedEvent<ApiType, [proposalIndex: u32, deposit: u128], {
|
|
507
461
|
proposalIndex: u32;
|
|
508
462
|
deposit: u128;
|
|
509
|
-
depositors: Vec<AccountId32>;
|
|
510
463
|
}>;
|
|
511
464
|
/**
|
|
512
465
|
* An account has cancelled a previous delegation operation.
|
|
@@ -594,12 +547,18 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
594
547
|
};
|
|
595
548
|
fastUnstake: {
|
|
596
549
|
/**
|
|
597
|
-
* A
|
|
550
|
+
* A batch was partially checked for the given eras, but the process did not finish.
|
|
598
551
|
**/
|
|
599
|
-
|
|
600
|
-
stash: AccountId32;
|
|
552
|
+
BatchChecked: AugmentedEvent<ApiType, [eras: Vec<u32>], {
|
|
601
553
|
eras: Vec<u32>;
|
|
602
554
|
}>;
|
|
555
|
+
/**
|
|
556
|
+
* A batch was terminated.
|
|
557
|
+
*
|
|
558
|
+
* This is always follows by a number of `Unstaked` or `Slashed` events, marking the end
|
|
559
|
+
* of the batch. A new batch will be created upon next block.
|
|
560
|
+
**/
|
|
561
|
+
BatchFinished: AugmentedEvent<ApiType, []>;
|
|
603
562
|
/**
|
|
604
563
|
* Some internal error happened while migrating stash. They are removed as head as a
|
|
605
564
|
* consequence.
|
|
@@ -655,6 +614,11 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
655
614
|
* HRMP channel closed. `[by_parachain, channel_id]`
|
|
656
615
|
**/
|
|
657
616
|
ChannelClosed: AugmentedEvent<ApiType, [u32, PolkadotParachainPrimitivesHrmpChannelId]>;
|
|
617
|
+
/**
|
|
618
|
+
* An HRMP channel was opened via Root origin.
|
|
619
|
+
* `[sender, recipient, proposed_max_capacity, proposed_max_message_size]`
|
|
620
|
+
**/
|
|
621
|
+
HrmpChannelForceOpened: AugmentedEvent<ApiType, [u32, u32, u32, u32]>;
|
|
658
622
|
/**
|
|
659
623
|
* Open HRMP channel accepted. `[sender, recipient]`
|
|
660
624
|
**/
|
|
@@ -1201,10 +1165,9 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1201
1165
|
/**
|
|
1202
1166
|
* The call for the provided hash was not found so the task has been aborted.
|
|
1203
1167
|
**/
|
|
1204
|
-
|
|
1168
|
+
CallUnavailable: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>], {
|
|
1205
1169
|
task: ITuple<[u32, u32]>;
|
|
1206
|
-
id: Option<
|
|
1207
|
-
error: FrameSupportScheduleLookupError;
|
|
1170
|
+
id: Option<U8aFixed>;
|
|
1208
1171
|
}>;
|
|
1209
1172
|
/**
|
|
1210
1173
|
* Canceled some task.
|
|
@@ -1216,11 +1179,25 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1216
1179
|
/**
|
|
1217
1180
|
* Dispatched some task.
|
|
1218
1181
|
**/
|
|
1219
|
-
Dispatched: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<
|
|
1182
|
+
Dispatched: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>, result: Result<Null, SpRuntimeDispatchError>], {
|
|
1220
1183
|
task: ITuple<[u32, u32]>;
|
|
1221
|
-
id: Option<
|
|
1184
|
+
id: Option<U8aFixed>;
|
|
1222
1185
|
result: Result<Null, SpRuntimeDispatchError>;
|
|
1223
1186
|
}>;
|
|
1187
|
+
/**
|
|
1188
|
+
* The given task was unable to be renewed since the agenda is full at that block.
|
|
1189
|
+
**/
|
|
1190
|
+
PeriodicFailed: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>], {
|
|
1191
|
+
task: ITuple<[u32, u32]>;
|
|
1192
|
+
id: Option<U8aFixed>;
|
|
1193
|
+
}>;
|
|
1194
|
+
/**
|
|
1195
|
+
* The given task can never be executed since it is overweight.
|
|
1196
|
+
**/
|
|
1197
|
+
PermanentlyOverweight: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>], {
|
|
1198
|
+
task: ITuple<[u32, u32]>;
|
|
1199
|
+
id: Option<U8aFixed>;
|
|
1200
|
+
}>;
|
|
1224
1201
|
/**
|
|
1225
1202
|
* Scheduled some task.
|
|
1226
1203
|
**/
|
|
@@ -1633,14 +1610,14 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1633
1610
|
*
|
|
1634
1611
|
* \[ para, id, overweight_index, required \]
|
|
1635
1612
|
**/
|
|
1636
|
-
OverweightEnqueued: AugmentedEvent<ApiType, [u32, U8aFixed, u64,
|
|
1613
|
+
OverweightEnqueued: AugmentedEvent<ApiType, [u32, U8aFixed, u64, SpWeightsWeightV2Weight]>;
|
|
1637
1614
|
/**
|
|
1638
1615
|
* Upward message from the overweight queue was executed with the given actual weight
|
|
1639
1616
|
* used.
|
|
1640
1617
|
*
|
|
1641
1618
|
* \[ overweight_index, used \]
|
|
1642
1619
|
**/
|
|
1643
|
-
OverweightServiced: AugmentedEvent<ApiType, [u64,
|
|
1620
|
+
OverweightServiced: AugmentedEvent<ApiType, [u64, SpWeightsWeightV2Weight]>;
|
|
1644
1621
|
/**
|
|
1645
1622
|
* Upward message is unsupported version of XCM.
|
|
1646
1623
|
* \[ id \]
|
|
@@ -1655,7 +1632,7 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1655
1632
|
* The weight limit for handling upward messages was reached.
|
|
1656
1633
|
* \[ id, remaining, required \]
|
|
1657
1634
|
**/
|
|
1658
|
-
WeightExhausted: AugmentedEvent<ApiType, [U8aFixed,
|
|
1635
|
+
WeightExhausted: AugmentedEvent<ApiType, [U8aFixed, SpWeightsWeightV2Weight, SpWeightsWeightV2Weight]>;
|
|
1659
1636
|
/**
|
|
1660
1637
|
* Generic event
|
|
1661
1638
|
**/
|
|
@@ -1741,6 +1718,12 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1741
1718
|
[key: string]: AugmentedEvent<ApiType>;
|
|
1742
1719
|
};
|
|
1743
1720
|
xcmPallet: {
|
|
1721
|
+
/**
|
|
1722
|
+
* Some assets have been claimed from an asset trap
|
|
1723
|
+
*
|
|
1724
|
+
* \[ hash, origin, assets \]
|
|
1725
|
+
**/
|
|
1726
|
+
AssetsClaimed: AugmentedEvent<ApiType, [H256, XcmV1MultiLocation, XcmVersionedMultiAssets]>;
|
|
1744
1727
|
/**
|
|
1745
1728
|
* Some assets have been placed in an asset trap.
|
|
1746
1729
|
*
|
|
@@ -1802,7 +1785,7 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1802
1785
|
*
|
|
1803
1786
|
* \[ id, pallet index, call index, actual weight, max budgeted weight \]
|
|
1804
1787
|
**/
|
|
1805
|
-
NotifyOverweight: AugmentedEvent<ApiType, [u64, u8, u8,
|
|
1788
|
+
NotifyOverweight: AugmentedEvent<ApiType, [u64, u8, u8, SpWeightsWeightV2Weight, SpWeightsWeightV2Weight]>;
|
|
1806
1789
|
/**
|
|
1807
1790
|
* A given location which had a version change subscription was dropped owing to an error
|
|
1808
1791
|
* migrating the location to our new XCM format.
|
package/polkadot/query.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import '@polkadot/api-base/types/storage';
|
|
2
2
|
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
|
|
3
3
|
import type { Data } from '@polkadot/types';
|
|
4
|
-
import type {
|
|
4
|
+
import type { Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u32, u64 } from '@polkadot/types-codec';
|
|
5
5
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
|
6
6
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
|
7
7
|
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
|
8
|
-
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes,
|
|
8
|
+
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerScheduled, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, PolkadotRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
|
9
9
|
import type { Observable } from '@polkadot/types/types';
|
|
10
10
|
export declare type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
|
11
11
|
export declare type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
|
|
@@ -394,20 +394,15 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
394
394
|
* - `LastTabledWasExternal` is `false`; or
|
|
395
395
|
* - `PublicProps` is empty.
|
|
396
396
|
**/
|
|
397
|
-
nextExternal: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[
|
|
398
|
-
/**
|
|
399
|
-
* Map of hashes to the proposal preimage, along with who registered it and their deposit.
|
|
400
|
-
* The block number is the block at which it was deposited.
|
|
401
|
-
**/
|
|
402
|
-
preimages: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletDemocracyPreimageStatus>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
397
|
+
nextExternal: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[FrameSupportPreimagesBounded, PalletDemocracyVoteThreshold]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
403
398
|
/**
|
|
404
399
|
* The number of (public) proposals that have been made so far.
|
|
405
400
|
**/
|
|
406
401
|
publicPropCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
407
402
|
/**
|
|
408
|
-
* The public proposals. Unsorted. The second item is the proposal
|
|
403
|
+
* The public proposals. Unsorted. The second item is the proposal.
|
|
409
404
|
**/
|
|
410
|
-
publicProps: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32,
|
|
405
|
+
publicProps: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, FrameSupportPreimagesBounded, AccountId32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
411
406
|
/**
|
|
412
407
|
* The next free referendum index, aka the number of referenda started so far.
|
|
413
408
|
**/
|
|
@@ -418,12 +413,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
418
413
|
* TWOX-NOTE: SAFE as indexes are not under an attacker’s control.
|
|
419
414
|
**/
|
|
420
415
|
referendumInfoOf: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletDemocracyReferendumInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
421
|
-
/**
|
|
422
|
-
* Storage version of the pallet.
|
|
423
|
-
*
|
|
424
|
-
* New networks start with last version.
|
|
425
|
-
**/
|
|
426
|
-
storageVersion: AugmentedQuery<ApiType, () => Observable<Option<PalletDemocracyReleases>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
427
416
|
/**
|
|
428
417
|
* All votes for a particular voter. We store the balance for the number of votes that we
|
|
429
418
|
* have recorded. The second item is the total amount of delegations, that will be added.
|
|
@@ -488,14 +477,14 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
488
477
|
**/
|
|
489
478
|
round: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
490
479
|
/**
|
|
491
|
-
* A sorted, bounded
|
|
492
|
-
* `SignedSubmissions`.
|
|
480
|
+
* A sorted, bounded vector of `(score, block_number, index)`, where each `index` points to a
|
|
481
|
+
* value in `SignedSubmissions`.
|
|
493
482
|
*
|
|
494
483
|
* We never need to process more than a single signed submission at a time. Signed submissions
|
|
495
484
|
* can be quite large, so we're willing to pay the cost of multiple database accesses to access
|
|
496
485
|
* them one at a time instead of reading and decoding all of them at once.
|
|
497
486
|
**/
|
|
498
|
-
signedSubmissionIndices: AugmentedQuery<ApiType, () => Observable<
|
|
487
|
+
signedSubmissionIndices: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[SpNposElectionsElectionScore, u32, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
499
488
|
/**
|
|
500
489
|
* The next index to be assigned to an incoming signed submission.
|
|
501
490
|
*
|
|
@@ -796,7 +785,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
796
785
|
[key: string]: QueryableStorageEntry<ApiType>;
|
|
797
786
|
};
|
|
798
787
|
multisig: {
|
|
799
|
-
calls: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Option<ITuple<[WrapperKeepOpaque<Call>, AccountId32, u128]>>>, [U8aFixed]> & QueryableStorageEntry<ApiType, [U8aFixed]>;
|
|
800
788
|
/**
|
|
801
789
|
* The set of open multisig operations.
|
|
802
790
|
**/
|
|
@@ -1266,10 +1254,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1266
1254
|
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1267
1255
|
};
|
|
1268
1256
|
preimage: {
|
|
1269
|
-
|
|
1270
|
-
* The preimages stored by this pallet.
|
|
1271
|
-
**/
|
|
1272
|
-
preimageFor: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Bytes>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
1257
|
+
preimageFor: AugmentedQuery<ApiType, (arg: ITuple<[H256, u32]> | [H256 | string | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<Option<Bytes>>, [ITuple<[H256, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[H256, u32]>]>;
|
|
1273
1258
|
/**
|
|
1274
1259
|
* The request status of a given hash.
|
|
1275
1260
|
**/
|
|
@@ -1319,11 +1304,15 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1319
1304
|
/**
|
|
1320
1305
|
* Items to be executed, indexed by the block number that they should be executed on.
|
|
1321
1306
|
**/
|
|
1322
|
-
agenda: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<Option<
|
|
1307
|
+
agenda: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<Option<PalletSchedulerScheduled>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1308
|
+
incompleteSince: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1323
1309
|
/**
|
|
1324
|
-
* Lookup from
|
|
1310
|
+
* Lookup from a name to the block number and index of the task.
|
|
1311
|
+
*
|
|
1312
|
+
* For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4
|
|
1313
|
+
* identities.
|
|
1325
1314
|
**/
|
|
1326
|
-
lookup: AugmentedQuery<ApiType, (arg:
|
|
1315
|
+
lookup: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Option<ITuple<[u32, u32]>>>, [U8aFixed]> & QueryableStorageEntry<ApiType, [U8aFixed]>;
|
|
1327
1316
|
/**
|
|
1328
1317
|
* Generic query
|
|
1329
1318
|
**/
|
|
@@ -1609,7 +1598,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1609
1598
|
**/
|
|
1610
1599
|
unappliedSlashes: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<PalletStakingUnappliedSlash>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1611
1600
|
/**
|
|
1612
|
-
* The ideal number of
|
|
1601
|
+
* The ideal number of active validators.
|
|
1613
1602
|
**/
|
|
1614
1603
|
validatorCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1615
1604
|
/**
|
package/polkadot/runtime.d.ts
CHANGED
|
@@ -383,7 +383,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
383
383
|
**/
|
|
384
384
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
385
385
|
};
|
|
386
|
-
/** 0x37c8bb1350a9a2a8/
|
|
386
|
+
/** 0x37c8bb1350a9a2a8/2 */
|
|
387
387
|
transactionPaymentApi: {
|
|
388
388
|
/**
|
|
389
389
|
* The transaction fee details
|
|
@@ -398,7 +398,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
398
398
|
**/
|
|
399
399
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
400
400
|
};
|
|
401
|
-
/** 0xf3ff14d5ab527059/
|
|
401
|
+
/** 0xf3ff14d5ab527059/2 */
|
|
402
402
|
transactionPaymentCallApi: {
|
|
403
403
|
/**
|
|
404
404
|
* The call fee details
|