@polkadot/api-augment 9.11.3 → 9.13.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 +4 -0
- package/kusama/errors.d.ts +50 -14
- package/kusama/events.d.ts +86 -33
- package/kusama/query.d.ts +34 -8
- package/kusama/runtime.d.ts +25 -3
- package/kusama/tx.d.ts +65 -49
- package/package.json +8 -8
- package/packageInfo.js +1 -1
- package/polkadot/errors.d.ts +28 -0
- package/polkadot/events.d.ts +86 -33
- package/polkadot/query.d.ts +34 -8
- package/polkadot/runtime.d.ts +25 -3
- package/polkadot/tx.d.ts +46 -47
- package/substrate/consts.d.ts +8 -0
- package/substrate/errors.d.ts +22 -14
- package/substrate/events.d.ts +13 -4
- package/substrate/query.d.ts +32 -0
- package/substrate/runtime.d.ts +25 -3
- package/substrate/tx.d.ts +28 -3
package/kusama/tx.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ import type { Data } from '@polkadot/types';
|
|
|
4
4
|
import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
5
5
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
|
6
6
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
|
7
|
-
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
|
8
|
-
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeSessionKeys, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight,
|
|
7
|
+
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
|
8
|
+
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeSessionKeys, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
|
9
9
|
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
|
10
10
|
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
|
11
11
|
export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
|
|
@@ -1763,7 +1763,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1763
1763
|
*
|
|
1764
1764
|
* Dispatch origin must be signed by the [`Config::ControlOrigin`].
|
|
1765
1765
|
**/
|
|
1766
|
-
control: AugmentedSubmittable<(
|
|
1766
|
+
control: AugmentedSubmittable<(erasToCheck: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
1767
1767
|
/**
|
|
1768
1768
|
* Deregister oneself from the fast-unstake.
|
|
1769
1769
|
*
|
|
@@ -2888,6 +2888,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2888
2888
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
2889
2889
|
};
|
|
2890
2890
|
nis: {
|
|
2891
|
+
/**
|
|
2892
|
+
* Make a private receipt communal and create fungible counterparts for its owner.
|
|
2893
|
+
**/
|
|
2894
|
+
communify: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
2891
2895
|
/**
|
|
2892
2896
|
* Ensure we have sufficient funding for all potential payouts.
|
|
2893
2897
|
*
|
|
@@ -2908,6 +2912,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2908
2912
|
* - `Queues[duration].len()` (just take max).
|
|
2909
2913
|
**/
|
|
2910
2914
|
placeBid: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, duration: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, u32]>;
|
|
2915
|
+
/**
|
|
2916
|
+
* Make a communal receipt private and burn fungible counterparts from its owner.
|
|
2917
|
+
**/
|
|
2918
|
+
privatize: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
2911
2919
|
/**
|
|
2912
2920
|
* Retract a previously placed bid.
|
|
2913
2921
|
*
|
|
@@ -2918,6 +2926,15 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2918
2926
|
* - `duration`: The duration of the previous bid.
|
|
2919
2927
|
**/
|
|
2920
2928
|
retractBid: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, duration: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, u32]>;
|
|
2929
|
+
/**
|
|
2930
|
+
* Reduce or remove an outstanding receipt, placing the according proportion of funds into
|
|
2931
|
+
* the account of the owner.
|
|
2932
|
+
*
|
|
2933
|
+
* - `origin`: Must be Signed and the account must be the owner of the fungible counterpart
|
|
2934
|
+
* for receipt `index`.
|
|
2935
|
+
* - `index`: The index of the receipt.
|
|
2936
|
+
**/
|
|
2937
|
+
thawCommunal: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
2921
2938
|
/**
|
|
2922
2939
|
* Reduce or remove an outstanding receipt, placing the according proportion of funds into
|
|
2923
2940
|
* the account of the owner.
|
|
@@ -2928,7 +2945,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2928
2945
|
* - `portion`: If `Some`, then only the given portion of the receipt should be thawed. If
|
|
2929
2946
|
* `None`, then all of it should be.
|
|
2930
2947
|
**/
|
|
2931
|
-
|
|
2948
|
+
thawPrivate: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, maybeProportion: Option<Perquintill> | null | Uint8Array | Perquintill | AnyNumber) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Option<Perquintill>]>;
|
|
2932
2949
|
/**
|
|
2933
2950
|
* Generic tx
|
|
2934
2951
|
**/
|
|
@@ -6333,12 +6350,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6333
6350
|
* to completion; only that *some* of it was executed.
|
|
6334
6351
|
**/
|
|
6335
6352
|
execute: AugmentedSubmittable<(message: XcmVersionedXcm | {
|
|
6336
|
-
V0: any;
|
|
6337
|
-
} | {
|
|
6338
|
-
V1: any;
|
|
6339
|
-
} | {
|
|
6340
6353
|
V2: any;
|
|
6341
|
-
} |
|
|
6354
|
+
} | {
|
|
6355
|
+
V3: any;
|
|
6356
|
+
} | string | Uint8Array, maxWeight: SpWeightsWeightV2Weight | {
|
|
6357
|
+
refTime?: any;
|
|
6358
|
+
proofSize?: any;
|
|
6359
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedXcm, SpWeightsWeightV2Weight]>;
|
|
6342
6360
|
/**
|
|
6343
6361
|
* Set a safe XCM version (the version that XCM should be encoded with if the most recent
|
|
6344
6362
|
* version a destination can accept is unknown).
|
|
@@ -6354,9 +6372,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6354
6372
|
* - `location`: The location to which we should subscribe for XCM version notifications.
|
|
6355
6373
|
**/
|
|
6356
6374
|
forceSubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedMultiLocation | {
|
|
6357
|
-
|
|
6375
|
+
V2: any;
|
|
6358
6376
|
} | {
|
|
6359
|
-
|
|
6377
|
+
V3: any;
|
|
6360
6378
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation]>;
|
|
6361
6379
|
/**
|
|
6362
6380
|
* Require that a particular destination should no longer notify us regarding any XCM
|
|
@@ -6367,9 +6385,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6367
6385
|
* notifications which we no longer desire.
|
|
6368
6386
|
**/
|
|
6369
6387
|
forceUnsubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedMultiLocation | {
|
|
6370
|
-
|
|
6388
|
+
V2: any;
|
|
6371
6389
|
} | {
|
|
6372
|
-
|
|
6390
|
+
V3: any;
|
|
6373
6391
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation]>;
|
|
6374
6392
|
/**
|
|
6375
6393
|
* Extoll that a particular destination can be communicated with through a particular
|
|
@@ -6379,10 +6397,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6379
6397
|
* - `location`: The destination that is being described.
|
|
6380
6398
|
* - `xcm_version`: The latest version of XCM that `location` supports.
|
|
6381
6399
|
**/
|
|
6382
|
-
forceXcmVersion: AugmentedSubmittable<(location:
|
|
6400
|
+
forceXcmVersion: AugmentedSubmittable<(location: XcmV3MultiLocation | {
|
|
6383
6401
|
parents?: any;
|
|
6384
6402
|
interior?: any;
|
|
6385
|
-
} | string | Uint8Array, xcmVersion: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
6403
|
+
} | string | Uint8Array, xcmVersion: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmV3MultiLocation, u32]>;
|
|
6386
6404
|
/**
|
|
6387
6405
|
* Transfer some assets from the local chain to the sovereign account of a destination
|
|
6388
6406
|
* chain and forward a notification XCM.
|
|
@@ -6404,22 +6422,22 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6404
6422
|
* - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
|
|
6405
6423
|
**/
|
|
6406
6424
|
limitedReserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | {
|
|
6407
|
-
|
|
6425
|
+
V2: any;
|
|
6408
6426
|
} | {
|
|
6409
|
-
|
|
6427
|
+
V3: any;
|
|
6410
6428
|
} | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | {
|
|
6411
|
-
|
|
6429
|
+
V2: any;
|
|
6412
6430
|
} | {
|
|
6413
|
-
|
|
6431
|
+
V3: any;
|
|
6414
6432
|
} | string | Uint8Array, assets: XcmVersionedMultiAssets | {
|
|
6415
|
-
|
|
6433
|
+
V2: any;
|
|
6416
6434
|
} | {
|
|
6417
|
-
|
|
6418
|
-
} | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit:
|
|
6435
|
+
V3: any;
|
|
6436
|
+
} | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | {
|
|
6419
6437
|
Unlimited: any;
|
|
6420
6438
|
} | {
|
|
6421
6439
|
Limited: any;
|
|
6422
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32,
|
|
6440
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32, XcmV3WeightLimit]>;
|
|
6423
6441
|
/**
|
|
6424
6442
|
* Teleport some assets from the local chain to some destination chain.
|
|
6425
6443
|
*
|
|
@@ -6440,22 +6458,22 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6440
6458
|
* - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
|
|
6441
6459
|
**/
|
|
6442
6460
|
limitedTeleportAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | {
|
|
6443
|
-
|
|
6461
|
+
V2: any;
|
|
6444
6462
|
} | {
|
|
6445
|
-
|
|
6463
|
+
V3: any;
|
|
6446
6464
|
} | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | {
|
|
6447
|
-
|
|
6465
|
+
V2: any;
|
|
6448
6466
|
} | {
|
|
6449
|
-
|
|
6467
|
+
V3: any;
|
|
6450
6468
|
} | string | Uint8Array, assets: XcmVersionedMultiAssets | {
|
|
6451
|
-
|
|
6469
|
+
V2: any;
|
|
6452
6470
|
} | {
|
|
6453
|
-
|
|
6454
|
-
} | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit:
|
|
6471
|
+
V3: any;
|
|
6472
|
+
} | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | {
|
|
6455
6473
|
Unlimited: any;
|
|
6456
6474
|
} | {
|
|
6457
6475
|
Limited: any;
|
|
6458
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32,
|
|
6476
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32, XcmV3WeightLimit]>;
|
|
6459
6477
|
/**
|
|
6460
6478
|
* Transfer some assets from the local chain to the sovereign account of a destination
|
|
6461
6479
|
* chain and forward a notification XCM.
|
|
@@ -6475,28 +6493,26 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6475
6493
|
* fees.
|
|
6476
6494
|
**/
|
|
6477
6495
|
reserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | {
|
|
6478
|
-
|
|
6496
|
+
V2: any;
|
|
6479
6497
|
} | {
|
|
6480
|
-
|
|
6498
|
+
V3: any;
|
|
6481
6499
|
} | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | {
|
|
6482
|
-
|
|
6500
|
+
V2: any;
|
|
6483
6501
|
} | {
|
|
6484
|
-
|
|
6502
|
+
V3: any;
|
|
6485
6503
|
} | string | Uint8Array, assets: XcmVersionedMultiAssets | {
|
|
6486
|
-
|
|
6504
|
+
V2: any;
|
|
6487
6505
|
} | {
|
|
6488
|
-
|
|
6506
|
+
V3: any;
|
|
6489
6507
|
} | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32]>;
|
|
6490
6508
|
send: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | {
|
|
6491
|
-
|
|
6509
|
+
V2: any;
|
|
6492
6510
|
} | {
|
|
6493
|
-
|
|
6511
|
+
V3: any;
|
|
6494
6512
|
} | string | Uint8Array, message: XcmVersionedXcm | {
|
|
6495
|
-
V0: any;
|
|
6496
|
-
} | {
|
|
6497
|
-
V1: any;
|
|
6498
|
-
} | {
|
|
6499
6513
|
V2: any;
|
|
6514
|
+
} | {
|
|
6515
|
+
V3: any;
|
|
6500
6516
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedXcm]>;
|
|
6501
6517
|
/**
|
|
6502
6518
|
* Teleport some assets from the local chain to some destination chain.
|
|
@@ -6516,17 +6532,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6516
6532
|
* fees.
|
|
6517
6533
|
**/
|
|
6518
6534
|
teleportAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | {
|
|
6519
|
-
|
|
6535
|
+
V2: any;
|
|
6520
6536
|
} | {
|
|
6521
|
-
|
|
6537
|
+
V3: any;
|
|
6522
6538
|
} | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | {
|
|
6523
|
-
|
|
6539
|
+
V2: any;
|
|
6524
6540
|
} | {
|
|
6525
|
-
|
|
6541
|
+
V3: any;
|
|
6526
6542
|
} | string | Uint8Array, assets: XcmVersionedMultiAssets | {
|
|
6527
|
-
|
|
6543
|
+
V2: any;
|
|
6528
6544
|
} | {
|
|
6529
|
-
|
|
6545
|
+
V3: any;
|
|
6530
6546
|
} | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32]>;
|
|
6531
6547
|
/**
|
|
6532
6548
|
* Generic tx
|
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.13.1",
|
|
24
24
|
"main": "./cjs/index.js",
|
|
25
25
|
"module": "./index.js",
|
|
26
26
|
"types": "./index.d.ts",
|
|
@@ -185,12 +185,12 @@
|
|
|
185
185
|
}
|
|
186
186
|
},
|
|
187
187
|
"dependencies": {
|
|
188
|
-
"@babel/runtime": "^7.20.
|
|
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.
|
|
188
|
+
"@babel/runtime": "^7.20.13",
|
|
189
|
+
"@polkadot/api-base": "9.13.1",
|
|
190
|
+
"@polkadot/rpc-augment": "9.13.1",
|
|
191
|
+
"@polkadot/types": "9.13.1",
|
|
192
|
+
"@polkadot/types-augment": "9.13.1",
|
|
193
|
+
"@polkadot/types-codec": "9.13.1",
|
|
194
|
+
"@polkadot/util": "^10.3.1"
|
|
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.13.1'
|
|
11
11
|
};
|
package/polkadot/errors.d.ts
CHANGED
|
@@ -1829,6 +1829,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1829
1829
|
[key: string]: AugmentedError<ApiType>;
|
|
1830
1830
|
};
|
|
1831
1831
|
xcmPallet: {
|
|
1832
|
+
/**
|
|
1833
|
+
* The given account is not an identifiable sovereign account for any location.
|
|
1834
|
+
**/
|
|
1835
|
+
AccountNotSovereign: AugmentedError<ApiType>;
|
|
1832
1836
|
/**
|
|
1833
1837
|
* The location is invalid since it already has a subscription from us.
|
|
1834
1838
|
**/
|
|
@@ -1854,14 +1858,34 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1854
1858
|
* The assets to be sent are empty.
|
|
1855
1859
|
**/
|
|
1856
1860
|
Empty: AugmentedError<ApiType>;
|
|
1861
|
+
/**
|
|
1862
|
+
* The operation required fees to be paid which the initiator could not meet.
|
|
1863
|
+
**/
|
|
1864
|
+
FeesNotMet: AugmentedError<ApiType>;
|
|
1857
1865
|
/**
|
|
1858
1866
|
* The message execution fails the filter.
|
|
1859
1867
|
**/
|
|
1860
1868
|
Filtered: AugmentedError<ApiType>;
|
|
1869
|
+
/**
|
|
1870
|
+
* The unlock operation cannot succeed because there are still users of the lock.
|
|
1871
|
+
**/
|
|
1872
|
+
InUse: AugmentedError<ApiType>;
|
|
1873
|
+
/**
|
|
1874
|
+
* Invalid asset for the operation.
|
|
1875
|
+
**/
|
|
1876
|
+
InvalidAsset: AugmentedError<ApiType>;
|
|
1861
1877
|
/**
|
|
1862
1878
|
* Origin is invalid for sending.
|
|
1863
1879
|
**/
|
|
1864
1880
|
InvalidOrigin: AugmentedError<ApiType>;
|
|
1881
|
+
/**
|
|
1882
|
+
* A remote lock with the corresponding data could not be found.
|
|
1883
|
+
**/
|
|
1884
|
+
LockNotFound: AugmentedError<ApiType>;
|
|
1885
|
+
/**
|
|
1886
|
+
* The owner does not own (all) of the asset that they wish to do the operation on.
|
|
1887
|
+
**/
|
|
1888
|
+
LowBalance: AugmentedError<ApiType>;
|
|
1865
1889
|
/**
|
|
1866
1890
|
* The referenced subscription could not be found.
|
|
1867
1891
|
**/
|
|
@@ -1875,6 +1899,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1875
1899
|
* Too many assets have been attempted for transfer.
|
|
1876
1900
|
**/
|
|
1877
1901
|
TooManyAssets: AugmentedError<ApiType>;
|
|
1902
|
+
/**
|
|
1903
|
+
* The asset owner has too many locks on the asset.
|
|
1904
|
+
**/
|
|
1905
|
+
TooManyLocks: AugmentedError<ApiType>;
|
|
1878
1906
|
/**
|
|
1879
1907
|
* The desired destination was unreachable, generally because there is a no way of routing
|
|
1880
1908
|
* to it.
|
package/polkadot/events.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32,
|
|
|
4
4
|
import type { ITuple } from '@polkadot/types-codec/types';
|
|
5
5
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
|
6
6
|
import type { AccountId32, H256, Perbill } 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,
|
|
7
|
+
import type { FrameSupportDispatchDispatchInfo, FrameSupportTokensMiscBalanceStatus, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeProxyType, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3MultiassetMultiAssets, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
|
8
8
|
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
|
9
9
|
declare module '@polkadot/api-base/types/events' {
|
|
10
10
|
interface AugmentedEvents<ApiType extends ApiTypes> {
|
|
@@ -502,6 +502,14 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
502
502
|
compute: PalletElectionProviderMultiPhaseElectionCompute;
|
|
503
503
|
score: SpNposElectionsElectionScore;
|
|
504
504
|
}>;
|
|
505
|
+
/**
|
|
506
|
+
* There was a phase transition in a given round.
|
|
507
|
+
**/
|
|
508
|
+
PhaseTransitioned: AugmentedEvent<ApiType, [from: PalletElectionProviderMultiPhasePhase, to: PalletElectionProviderMultiPhasePhase, round: u32], {
|
|
509
|
+
from: PalletElectionProviderMultiPhasePhase;
|
|
510
|
+
to: PalletElectionProviderMultiPhasePhase;
|
|
511
|
+
round: u32;
|
|
512
|
+
}>;
|
|
505
513
|
/**
|
|
506
514
|
* An account has been rewarded for their signed submission being finalized.
|
|
507
515
|
**/
|
|
@@ -509,12 +517,6 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
509
517
|
account: AccountId32;
|
|
510
518
|
value: u128;
|
|
511
519
|
}>;
|
|
512
|
-
/**
|
|
513
|
-
* The signed phase of the given round has started.
|
|
514
|
-
**/
|
|
515
|
-
SignedPhaseStarted: AugmentedEvent<ApiType, [round: u32], {
|
|
516
|
-
round: u32;
|
|
517
|
-
}>;
|
|
518
520
|
/**
|
|
519
521
|
* An account has been slashed for submitting an invalid signed submission.
|
|
520
522
|
**/
|
|
@@ -525,21 +527,17 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
525
527
|
/**
|
|
526
528
|
* A solution was stored with the given compute.
|
|
527
529
|
*
|
|
528
|
-
*
|
|
529
|
-
* solution
|
|
530
|
-
*
|
|
531
|
-
* The `bool` is `true` when a previous solution was ejected to make
|
|
530
|
+
* The `origin` indicates the origin of the solution. If `origin` is `Some(AccountId)`,
|
|
531
|
+
* the stored solution was submited in the signed phase by a miner with the `AccountId`.
|
|
532
|
+
* Otherwise, the solution was stored either during the unsigned phase or by
|
|
533
|
+
* `T::ForceOrigin`. The `bool` is `true` when a previous solution was ejected to make
|
|
534
|
+
* room for this one.
|
|
532
535
|
**/
|
|
533
|
-
SolutionStored: AugmentedEvent<ApiType, [compute: PalletElectionProviderMultiPhaseElectionCompute, prevEjected: bool], {
|
|
536
|
+
SolutionStored: AugmentedEvent<ApiType, [compute: PalletElectionProviderMultiPhaseElectionCompute, origin: Option<AccountId32>, prevEjected: bool], {
|
|
534
537
|
compute: PalletElectionProviderMultiPhaseElectionCompute;
|
|
538
|
+
origin: Option<AccountId32>;
|
|
535
539
|
prevEjected: bool;
|
|
536
540
|
}>;
|
|
537
|
-
/**
|
|
538
|
-
* The unsigned phase of the given round has started.
|
|
539
|
-
**/
|
|
540
|
-
UnsignedPhaseStarted: AugmentedEvent<ApiType, [round: u32], {
|
|
541
|
-
round: u32;
|
|
542
|
-
}>;
|
|
543
541
|
/**
|
|
544
542
|
* Generic event
|
|
545
543
|
**/
|
|
@@ -553,12 +551,14 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
553
551
|
eras: Vec<u32>;
|
|
554
552
|
}>;
|
|
555
553
|
/**
|
|
556
|
-
* A batch was terminated.
|
|
554
|
+
* A batch of a given size was terminated.
|
|
557
555
|
*
|
|
558
556
|
* This is always follows by a number of `Unstaked` or `Slashed` events, marking the end
|
|
559
557
|
* of the batch. A new batch will be created upon next block.
|
|
560
558
|
**/
|
|
561
|
-
BatchFinished: AugmentedEvent<ApiType, []
|
|
559
|
+
BatchFinished: AugmentedEvent<ApiType, [size_: u32], {
|
|
560
|
+
size_: u32;
|
|
561
|
+
}>;
|
|
562
562
|
/**
|
|
563
563
|
* An internal error happened. Operations will be paused now.
|
|
564
564
|
**/
|
|
@@ -1267,6 +1267,12 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1267
1267
|
validatorPayout: u128;
|
|
1268
1268
|
remainder: u128;
|
|
1269
1269
|
}>;
|
|
1270
|
+
/**
|
|
1271
|
+
* A new force era mode was set.
|
|
1272
|
+
**/
|
|
1273
|
+
ForceEra: AugmentedEvent<ApiType, [mode: PalletStakingForcing], {
|
|
1274
|
+
mode: PalletStakingForcing;
|
|
1275
|
+
}>;
|
|
1270
1276
|
/**
|
|
1271
1277
|
* A nominator has been kicked from a validator.
|
|
1272
1278
|
**/
|
|
@@ -1605,7 +1611,7 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1605
1611
|
* Upward message executed with the given outcome.
|
|
1606
1612
|
* \[ id, outcome \]
|
|
1607
1613
|
**/
|
|
1608
|
-
ExecutedUpward: AugmentedEvent<ApiType, [U8aFixed,
|
|
1614
|
+
ExecutedUpward: AugmentedEvent<ApiType, [U8aFixed, XcmV3TraitsOutcome]>;
|
|
1609
1615
|
/**
|
|
1610
1616
|
* Upward message is invalid XCM.
|
|
1611
1617
|
* \[ id \]
|
|
@@ -1732,19 +1738,45 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1732
1738
|
*
|
|
1733
1739
|
* \[ hash, origin, assets \]
|
|
1734
1740
|
**/
|
|
1735
|
-
AssetsClaimed: AugmentedEvent<ApiType, [H256,
|
|
1741
|
+
AssetsClaimed: AugmentedEvent<ApiType, [H256, XcmV3MultiLocation, XcmVersionedMultiAssets]>;
|
|
1736
1742
|
/**
|
|
1737
1743
|
* Some assets have been placed in an asset trap.
|
|
1738
1744
|
*
|
|
1739
1745
|
* \[ hash, origin, assets \]
|
|
1740
1746
|
**/
|
|
1741
|
-
AssetsTrapped: AugmentedEvent<ApiType, [H256,
|
|
1747
|
+
AssetsTrapped: AugmentedEvent<ApiType, [H256, XcmV3MultiLocation, XcmVersionedMultiAssets]>;
|
|
1742
1748
|
/**
|
|
1743
1749
|
* Execution of an XCM message was attempted.
|
|
1744
1750
|
*
|
|
1745
1751
|
* \[ outcome \]
|
|
1746
1752
|
**/
|
|
1747
|
-
Attempted: AugmentedEvent<ApiType, [
|
|
1753
|
+
Attempted: AugmentedEvent<ApiType, [XcmV3TraitsOutcome]>;
|
|
1754
|
+
/**
|
|
1755
|
+
* Fees were paid from a location for an operation (often for using `SendXcm`).
|
|
1756
|
+
*
|
|
1757
|
+
* \[ paying location, fees \]
|
|
1758
|
+
**/
|
|
1759
|
+
FeesPaid: AugmentedEvent<ApiType, [XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>;
|
|
1760
|
+
/**
|
|
1761
|
+
* Expected query response has been received but the querier location of the response does
|
|
1762
|
+
* not match the expected. The query remains registered for a later, valid, response to
|
|
1763
|
+
* be received and acted upon.
|
|
1764
|
+
*
|
|
1765
|
+
* \[ origin location, id, expected querier, maybe actual querier \]
|
|
1766
|
+
**/
|
|
1767
|
+
InvalidQuerier: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64, XcmV3MultiLocation, Option<XcmV3MultiLocation>]>;
|
|
1768
|
+
/**
|
|
1769
|
+
* Expected query response has been received but the expected querier location placed in
|
|
1770
|
+
* storage by this runtime previously cannot be decoded. The query remains registered.
|
|
1771
|
+
*
|
|
1772
|
+
* This is unexpected (since a location placed in storage in a previously executing
|
|
1773
|
+
* runtime should be readable prior to query timeout) and dangerous since the possibly
|
|
1774
|
+
* valid response will be dropped. Manual governance intervention is probably going to be
|
|
1775
|
+
* needed.
|
|
1776
|
+
*
|
|
1777
|
+
* \[ origin location, id \]
|
|
1778
|
+
**/
|
|
1779
|
+
InvalidQuerierVersion: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64]>;
|
|
1748
1780
|
/**
|
|
1749
1781
|
* Expected query response has been received but the origin location of the response does
|
|
1750
1782
|
* not match that expected. The query remains registered for a later, valid, response to
|
|
@@ -1752,7 +1784,7 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1752
1784
|
*
|
|
1753
1785
|
* \[ origin location, id, expected location \]
|
|
1754
1786
|
**/
|
|
1755
|
-
InvalidResponder: AugmentedEvent<ApiType, [
|
|
1787
|
+
InvalidResponder: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64, Option<XcmV3MultiLocation>]>;
|
|
1756
1788
|
/**
|
|
1757
1789
|
* Expected query response has been received but the expected origin location placed in
|
|
1758
1790
|
* storage by this runtime previously cannot be decoded. The query remains registered.
|
|
@@ -1764,7 +1796,7 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1764
1796
|
*
|
|
1765
1797
|
* \[ origin location, id \]
|
|
1766
1798
|
**/
|
|
1767
|
-
InvalidResponderVersion: AugmentedEvent<ApiType, [
|
|
1799
|
+
InvalidResponderVersion: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64]>;
|
|
1768
1800
|
/**
|
|
1769
1801
|
* Query response has been received and query is removed. The registered notification has
|
|
1770
1802
|
* been dispatched and executed successfully.
|
|
@@ -1808,14 +1840,14 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1808
1840
|
*
|
|
1809
1841
|
* \[ location, query ID, error \]
|
|
1810
1842
|
**/
|
|
1811
|
-
NotifyTargetSendFail: AugmentedEvent<ApiType, [
|
|
1843
|
+
NotifyTargetSendFail: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64, XcmV3TraitsError]>;
|
|
1812
1844
|
/**
|
|
1813
1845
|
* Query response has been received and is ready for taking with `take_response`. There is
|
|
1814
1846
|
* no registered notification call.
|
|
1815
1847
|
*
|
|
1816
1848
|
* \[ id, response \]
|
|
1817
1849
|
**/
|
|
1818
|
-
ResponseReady: AugmentedEvent<ApiType, [u64,
|
|
1850
|
+
ResponseReady: AugmentedEvent<ApiType, [u64, XcmV3Response]>;
|
|
1819
1851
|
/**
|
|
1820
1852
|
* Received query response has been read and removed.
|
|
1821
1853
|
*
|
|
@@ -1827,14 +1859,14 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1827
1859
|
*
|
|
1828
1860
|
* \[ origin, destination, message \]
|
|
1829
1861
|
**/
|
|
1830
|
-
Sent: AugmentedEvent<ApiType, [
|
|
1862
|
+
Sent: AugmentedEvent<ApiType, [XcmV3MultiLocation, XcmV3MultiLocation, XcmV3Xcm]>;
|
|
1831
1863
|
/**
|
|
1832
1864
|
* The supported version of a location has been changed. This might be through an
|
|
1833
1865
|
* automatic notification or a manual intervention.
|
|
1834
1866
|
*
|
|
1835
1867
|
* \[ location, XCM version \]
|
|
1836
1868
|
**/
|
|
1837
|
-
SupportedVersionChanged: AugmentedEvent<ApiType, [
|
|
1869
|
+
SupportedVersionChanged: AugmentedEvent<ApiType, [XcmV3MultiLocation, u32]>;
|
|
1838
1870
|
/**
|
|
1839
1871
|
* Query response received which does not match a registered query. This may be because a
|
|
1840
1872
|
* matching query was never registered, it may be because it is a duplicate response, or
|
|
@@ -1842,13 +1874,34 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1842
1874
|
*
|
|
1843
1875
|
* \[ origin location, id \]
|
|
1844
1876
|
**/
|
|
1845
|
-
UnexpectedResponse: AugmentedEvent<ApiType, [
|
|
1877
|
+
UnexpectedResponse: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64]>;
|
|
1846
1878
|
/**
|
|
1847
1879
|
* An XCM version change notification message has been attempted to be sent.
|
|
1848
1880
|
*
|
|
1849
|
-
*
|
|
1881
|
+
* The cost of sending it (borne by the chain) is included.
|
|
1882
|
+
*
|
|
1883
|
+
* \[ destination, result, cost \]
|
|
1884
|
+
**/
|
|
1885
|
+
VersionChangeNotified: AugmentedEvent<ApiType, [XcmV3MultiLocation, u32, XcmV3MultiassetMultiAssets]>;
|
|
1886
|
+
/**
|
|
1887
|
+
* We have requested that a remote chain sends us XCM version change notifications.
|
|
1888
|
+
*
|
|
1889
|
+
* \[ destination location, cost \]
|
|
1890
|
+
**/
|
|
1891
|
+
VersionNotifyRequested: AugmentedEvent<ApiType, [XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>;
|
|
1892
|
+
/**
|
|
1893
|
+
* A remote has requested XCM version change notification from us and we have honored it.
|
|
1894
|
+
* A version information message is sent to them and its cost is included.
|
|
1895
|
+
*
|
|
1896
|
+
* \[ destination location, cost \]
|
|
1897
|
+
**/
|
|
1898
|
+
VersionNotifyStarted: AugmentedEvent<ApiType, [XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>;
|
|
1899
|
+
/**
|
|
1900
|
+
* We have requested that a remote chain stops sending us XCM version change notifications.
|
|
1901
|
+
*
|
|
1902
|
+
* \[ destination location, cost \]
|
|
1850
1903
|
**/
|
|
1851
|
-
|
|
1904
|
+
VersionNotifyUnrequested: AugmentedEvent<ApiType, [XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>;
|
|
1852
1905
|
/**
|
|
1853
1906
|
* Generic event
|
|
1854
1907
|
**/
|