@polkadot/api-augment 9.11.3 → 9.12.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/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, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
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>;
@@ -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
- thaw: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, portion: Option<u128> | null | Uint8Array | u128 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Option<u128>]>;
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
- } | string | Uint8Array, maxWeight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedXcm, u64]>;
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
- V0: any;
6375
+ V2: any;
6358
6376
  } | {
6359
- V1: any;
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
- V0: any;
6388
+ V2: any;
6371
6389
  } | {
6372
- V1: any;
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: XcmV1MultiLocation | {
6400
+ forceXcmVersion: AugmentedSubmittable<(location: XcmV3MultiLocation | {
6383
6401
  parents?: any;
6384
6402
  interior?: any;
6385
- } | string | Uint8Array, xcmVersion: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmV1MultiLocation, u32]>;
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
- V0: any;
6425
+ V2: any;
6408
6426
  } | {
6409
- V1: any;
6427
+ V3: any;
6410
6428
  } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | {
6411
- V0: any;
6429
+ V2: any;
6412
6430
  } | {
6413
- V1: any;
6431
+ V3: any;
6414
6432
  } | string | Uint8Array, assets: XcmVersionedMultiAssets | {
6415
- V0: any;
6433
+ V2: any;
6416
6434
  } | {
6417
- V1: any;
6418
- } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV2WeightLimit | {
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, XcmV2WeightLimit]>;
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
- V0: any;
6461
+ V2: any;
6444
6462
  } | {
6445
- V1: any;
6463
+ V3: any;
6446
6464
  } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | {
6447
- V0: any;
6465
+ V2: any;
6448
6466
  } | {
6449
- V1: any;
6467
+ V3: any;
6450
6468
  } | string | Uint8Array, assets: XcmVersionedMultiAssets | {
6451
- V0: any;
6469
+ V2: any;
6452
6470
  } | {
6453
- V1: any;
6454
- } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV2WeightLimit | {
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, XcmV2WeightLimit]>;
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
- V0: any;
6496
+ V2: any;
6479
6497
  } | {
6480
- V1: any;
6498
+ V3: any;
6481
6499
  } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | {
6482
- V0: any;
6500
+ V2: any;
6483
6501
  } | {
6484
- V1: any;
6502
+ V3: any;
6485
6503
  } | string | Uint8Array, assets: XcmVersionedMultiAssets | {
6486
- V0: any;
6504
+ V2: any;
6487
6505
  } | {
6488
- V1: any;
6506
+ V3: any;
6489
6507
  } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32]>;
6490
6508
  send: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | {
6491
- V0: any;
6509
+ V2: any;
6492
6510
  } | {
6493
- V1: any;
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
- V0: any;
6535
+ V2: any;
6520
6536
  } | {
6521
- V1: any;
6537
+ V3: any;
6522
6538
  } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | {
6523
- V0: any;
6539
+ V2: any;
6524
6540
  } | {
6525
- V1: any;
6541
+ V3: any;
6526
6542
  } | string | Uint8Array, assets: XcmVersionedMultiAssets | {
6527
- V0: any;
6543
+ V2: any;
6528
6544
  } | {
6529
- V1: any;
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.11.3",
23
+ "version": "9.12.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.7",
189
- "@polkadot/api-base": "9.11.3",
190
- "@polkadot/rpc-augment": "9.11.3",
191
- "@polkadot/types": "9.11.3",
192
- "@polkadot/types-augment": "9.11.3",
193
- "@polkadot/types-codec": "9.11.3",
188
+ "@babel/runtime": "^7.20.13",
189
+ "@polkadot/api-base": "9.12.1",
190
+ "@polkadot/rpc-augment": "9.12.1",
191
+ "@polkadot/types": "9.12.1",
192
+ "@polkadot/types-augment": "9.12.1",
193
+ "@polkadot/types-codec": "9.12.1",
194
194
  "@polkadot/util": "^10.2.6"
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.11.3'
10
+ version: '9.12.1'
11
11
  };
@@ -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.
@@ -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, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
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
- * If the solution is signed, this means that it hasn't yet been processed. If the
529
- * solution is unsigned, this means that it has also been processed.
530
- *
531
- * The `bool` is `true` when a previous solution was ejected to make room for this one.
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
  **/
@@ -1267,6 +1265,12 @@ declare module '@polkadot/api-base/types/events' {
1267
1265
  validatorPayout: u128;
1268
1266
  remainder: u128;
1269
1267
  }>;
1268
+ /**
1269
+ * A new force era mode was set.
1270
+ **/
1271
+ ForceEra: AugmentedEvent<ApiType, [mode: PalletStakingForcing], {
1272
+ mode: PalletStakingForcing;
1273
+ }>;
1270
1274
  /**
1271
1275
  * A nominator has been kicked from a validator.
1272
1276
  **/
@@ -1605,7 +1609,7 @@ declare module '@polkadot/api-base/types/events' {
1605
1609
  * Upward message executed with the given outcome.
1606
1610
  * \[ id, outcome \]
1607
1611
  **/
1608
- ExecutedUpward: AugmentedEvent<ApiType, [U8aFixed, XcmV2TraitsOutcome]>;
1612
+ ExecutedUpward: AugmentedEvent<ApiType, [U8aFixed, XcmV3TraitsOutcome]>;
1609
1613
  /**
1610
1614
  * Upward message is invalid XCM.
1611
1615
  * \[ id \]
@@ -1732,19 +1736,45 @@ declare module '@polkadot/api-base/types/events' {
1732
1736
  *
1733
1737
  * \[ hash, origin, assets \]
1734
1738
  **/
1735
- AssetsClaimed: AugmentedEvent<ApiType, [H256, XcmV1MultiLocation, XcmVersionedMultiAssets]>;
1739
+ AssetsClaimed: AugmentedEvent<ApiType, [H256, XcmV3MultiLocation, XcmVersionedMultiAssets]>;
1736
1740
  /**
1737
1741
  * Some assets have been placed in an asset trap.
1738
1742
  *
1739
1743
  * \[ hash, origin, assets \]
1740
1744
  **/
1741
- AssetsTrapped: AugmentedEvent<ApiType, [H256, XcmV1MultiLocation, XcmVersionedMultiAssets]>;
1745
+ AssetsTrapped: AugmentedEvent<ApiType, [H256, XcmV3MultiLocation, XcmVersionedMultiAssets]>;
1742
1746
  /**
1743
1747
  * Execution of an XCM message was attempted.
1744
1748
  *
1745
1749
  * \[ outcome \]
1746
1750
  **/
1747
- Attempted: AugmentedEvent<ApiType, [XcmV2TraitsOutcome]>;
1751
+ Attempted: AugmentedEvent<ApiType, [XcmV3TraitsOutcome]>;
1752
+ /**
1753
+ * Fees were paid from a location for an operation (often for using `SendXcm`).
1754
+ *
1755
+ * \[ paying location, fees \]
1756
+ **/
1757
+ FeesPaid: AugmentedEvent<ApiType, [XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>;
1758
+ /**
1759
+ * Expected query response has been received but the querier location of the response does
1760
+ * not match the expected. The query remains registered for a later, valid, response to
1761
+ * be received and acted upon.
1762
+ *
1763
+ * \[ origin location, id, expected querier, maybe actual querier \]
1764
+ **/
1765
+ InvalidQuerier: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64, XcmV3MultiLocation, Option<XcmV3MultiLocation>]>;
1766
+ /**
1767
+ * Expected query response has been received but the expected querier location placed in
1768
+ * storage by this runtime previously cannot be decoded. The query remains registered.
1769
+ *
1770
+ * This is unexpected (since a location placed in storage in a previously executing
1771
+ * runtime should be readable prior to query timeout) and dangerous since the possibly
1772
+ * valid response will be dropped. Manual governance intervention is probably going to be
1773
+ * needed.
1774
+ *
1775
+ * \[ origin location, id \]
1776
+ **/
1777
+ InvalidQuerierVersion: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64]>;
1748
1778
  /**
1749
1779
  * Expected query response has been received but the origin location of the response does
1750
1780
  * not match that expected. The query remains registered for a later, valid, response to
@@ -1752,7 +1782,7 @@ declare module '@polkadot/api-base/types/events' {
1752
1782
  *
1753
1783
  * \[ origin location, id, expected location \]
1754
1784
  **/
1755
- InvalidResponder: AugmentedEvent<ApiType, [XcmV1MultiLocation, u64, Option<XcmV1MultiLocation>]>;
1785
+ InvalidResponder: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64, Option<XcmV3MultiLocation>]>;
1756
1786
  /**
1757
1787
  * Expected query response has been received but the expected origin location placed in
1758
1788
  * storage by this runtime previously cannot be decoded. The query remains registered.
@@ -1764,7 +1794,7 @@ declare module '@polkadot/api-base/types/events' {
1764
1794
  *
1765
1795
  * \[ origin location, id \]
1766
1796
  **/
1767
- InvalidResponderVersion: AugmentedEvent<ApiType, [XcmV1MultiLocation, u64]>;
1797
+ InvalidResponderVersion: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64]>;
1768
1798
  /**
1769
1799
  * Query response has been received and query is removed. The registered notification has
1770
1800
  * been dispatched and executed successfully.
@@ -1808,14 +1838,14 @@ declare module '@polkadot/api-base/types/events' {
1808
1838
  *
1809
1839
  * \[ location, query ID, error \]
1810
1840
  **/
1811
- NotifyTargetSendFail: AugmentedEvent<ApiType, [XcmV1MultiLocation, u64, XcmV2TraitsError]>;
1841
+ NotifyTargetSendFail: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64, XcmV3TraitsError]>;
1812
1842
  /**
1813
1843
  * Query response has been received and is ready for taking with `take_response`. There is
1814
1844
  * no registered notification call.
1815
1845
  *
1816
1846
  * \[ id, response \]
1817
1847
  **/
1818
- ResponseReady: AugmentedEvent<ApiType, [u64, XcmV2Response]>;
1848
+ ResponseReady: AugmentedEvent<ApiType, [u64, XcmV3Response]>;
1819
1849
  /**
1820
1850
  * Received query response has been read and removed.
1821
1851
  *
@@ -1827,14 +1857,14 @@ declare module '@polkadot/api-base/types/events' {
1827
1857
  *
1828
1858
  * \[ origin, destination, message \]
1829
1859
  **/
1830
- Sent: AugmentedEvent<ApiType, [XcmV1MultiLocation, XcmV1MultiLocation, XcmV2Xcm]>;
1860
+ Sent: AugmentedEvent<ApiType, [XcmV3MultiLocation, XcmV3MultiLocation, XcmV3Xcm]>;
1831
1861
  /**
1832
1862
  * The supported version of a location has been changed. This might be through an
1833
1863
  * automatic notification or a manual intervention.
1834
1864
  *
1835
1865
  * \[ location, XCM version \]
1836
1866
  **/
1837
- SupportedVersionChanged: AugmentedEvent<ApiType, [XcmV1MultiLocation, u32]>;
1867
+ SupportedVersionChanged: AugmentedEvent<ApiType, [XcmV3MultiLocation, u32]>;
1838
1868
  /**
1839
1869
  * Query response received which does not match a registered query. This may be because a
1840
1870
  * matching query was never registered, it may be because it is a duplicate response, or
@@ -1842,13 +1872,34 @@ declare module '@polkadot/api-base/types/events' {
1842
1872
  *
1843
1873
  * \[ origin location, id \]
1844
1874
  **/
1845
- UnexpectedResponse: AugmentedEvent<ApiType, [XcmV1MultiLocation, u64]>;
1875
+ UnexpectedResponse: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64]>;
1846
1876
  /**
1847
1877
  * An XCM version change notification message has been attempted to be sent.
1848
1878
  *
1849
- * \[ destination, result \]
1879
+ * The cost of sending it (borne by the chain) is included.
1880
+ *
1881
+ * \[ destination, result, cost \]
1882
+ **/
1883
+ VersionChangeNotified: AugmentedEvent<ApiType, [XcmV3MultiLocation, u32, XcmV3MultiassetMultiAssets]>;
1884
+ /**
1885
+ * We have requested that a remote chain sends us XCM version change notifications.
1886
+ *
1887
+ * \[ destination location, cost \]
1888
+ **/
1889
+ VersionNotifyRequested: AugmentedEvent<ApiType, [XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>;
1890
+ /**
1891
+ * A remote has requested XCM version change notification from us and we have honored it.
1892
+ * A version information message is sent to them and its cost is included.
1893
+ *
1894
+ * \[ destination location, cost \]
1895
+ **/
1896
+ VersionNotifyStarted: AugmentedEvent<ApiType, [XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>;
1897
+ /**
1898
+ * We have requested that a remote chain stops sending us XCM version change notifications.
1899
+ *
1900
+ * \[ destination location, cost \]
1850
1901
  **/
1851
- VersionChangeNotified: AugmentedEvent<ApiType, [XcmV1MultiLocation, u32]>;
1902
+ VersionNotifyUnrequested: AugmentedEvent<ApiType, [XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>;
1852
1903
  /**
1853
1904
  * Generic event
1854
1905
  **/