@dedot/chaintypes 0.90.0 → 0.92.0

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.
@@ -44,7 +44,9 @@ import type {
44
44
  PalletNftsPriceWithDirection,
45
45
  PalletNftsPreSignedMint,
46
46
  PalletNftsPreSignedAttributes,
47
- StagingXcmV3MultilocationMultiLocation,
47
+ PalletStateTrieMigrationMigrationLimits,
48
+ PalletStateTrieMigrationMigrationTask,
49
+ PalletStateTrieMigrationProgress,
48
50
  } from './types.js';
49
51
 
50
52
  export type ChainSubmittableExtrinsic<
@@ -355,63 +357,6 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
355
357
  >
356
358
  >;
357
359
 
358
- /**
359
- * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied
360
- * later.
361
- *
362
- * The `check_version` parameter sets a boolean flag for whether or not the runtime's spec
363
- * version and name should be verified on upgrade. Since the authorization only has a hash,
364
- * it cannot actually perform the verification.
365
- *
366
- * This call requires Root origin.
367
- *
368
- * @param {H256} codeHash
369
- * @param {boolean} checkVersion
370
- **/
371
- authorizeUpgrade: GenericTxCall<
372
- Rv,
373
- (
374
- codeHash: H256,
375
- checkVersion: boolean,
376
- ) => ChainSubmittableExtrinsic<
377
- Rv,
378
- {
379
- pallet: 'ParachainSystem';
380
- palletCall: {
381
- name: 'AuthorizeUpgrade';
382
- params: { codeHash: H256; checkVersion: boolean };
383
- };
384
- }
385
- >
386
- >;
387
-
388
- /**
389
- * Provide the preimage (runtime binary) `code` for an upgrade that has been authorized.
390
- *
391
- * If the authorization required a version check, this call will ensure the spec name
392
- * remains unchanged and that the spec version has increased.
393
- *
394
- * Note that this function will not apply the new `code`, but only attempt to schedule the
395
- * upgrade with the Relay Chain.
396
- *
397
- * All origins are allowed.
398
- *
399
- * @param {BytesLike} code
400
- **/
401
- enactAuthorizedUpgrade: GenericTxCall<
402
- Rv,
403
- (code: BytesLike) => ChainSubmittableExtrinsic<
404
- Rv,
405
- {
406
- pallet: 'ParachainSystem';
407
- palletCall: {
408
- name: 'EnactAuthorizedUpgrade';
409
- params: { code: BytesLike };
410
- };
411
- }
412
- >
413
- >;
414
-
415
360
  /**
416
361
  * Generic pallet tx call
417
362
  **/
@@ -2959,8 +2904,6 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
2959
2904
  * - `id`: The identifier of the asset to be destroyed. This must identify an existing
2960
2905
  * asset.
2961
2906
  *
2962
- * The asset class must be frozen before calling `start_destroy`.
2963
- *
2964
2907
  * @param {number} id
2965
2908
  **/
2966
2909
  startDestroy: GenericTxCall<
@@ -4015,6 +3958,46 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
4015
3958
  >
4016
3959
  >;
4017
3960
 
3961
+ /**
3962
+ * Transfer the entire transferable balance from the caller asset account.
3963
+ *
3964
+ * NOTE: This function only attempts to transfer _transferable_ balances. This means that
3965
+ * any held, frozen, or minimum balance (when `keep_alive` is `true`), will not be
3966
+ * transferred by this function. To ensure that this function results in a killed account,
3967
+ * you might need to prepare the account by removing any reference counters, storage
3968
+ * deposits, etc...
3969
+ *
3970
+ * The dispatch origin of this call must be Signed.
3971
+ *
3972
+ * - `id`: The identifier of the asset for the account holding a deposit.
3973
+ * - `dest`: The recipient of the transfer.
3974
+ * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
3975
+ * of the funds the asset account has, causing the sender asset account to be killed
3976
+ * (false), or transfer everything except at least the minimum balance, which will
3977
+ * guarantee to keep the sender asset account alive (true).
3978
+ *
3979
+ * @param {number} id
3980
+ * @param {MultiAddressLike} dest
3981
+ * @param {boolean} keepAlive
3982
+ **/
3983
+ transferAll: GenericTxCall<
3984
+ Rv,
3985
+ (
3986
+ id: number,
3987
+ dest: MultiAddressLike,
3988
+ keepAlive: boolean,
3989
+ ) => ChainSubmittableExtrinsic<
3990
+ Rv,
3991
+ {
3992
+ pallet: 'Assets';
3993
+ palletCall: {
3994
+ name: 'TransferAll';
3995
+ params: { id: number; dest: MultiAddressLike; keepAlive: boolean };
3996
+ };
3997
+ }
3998
+ >
3999
+ >;
4000
+
4018
4001
  /**
4019
4002
  * Generic pallet tx call
4020
4003
  **/
@@ -6503,14 +6486,14 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
6503
6486
  *
6504
6487
  * Weight: `O(1)`
6505
6488
  *
6506
- * @param {StagingXcmV3MultilocationMultiLocation} id
6489
+ * @param {StagingXcmV4Location} id
6507
6490
  * @param {MultiAddressLike} admin
6508
6491
  * @param {bigint} minBalance
6509
6492
  **/
6510
6493
  create: GenericTxCall<
6511
6494
  Rv,
6512
6495
  (
6513
- id: StagingXcmV3MultilocationMultiLocation,
6496
+ id: StagingXcmV4Location,
6514
6497
  admin: MultiAddressLike,
6515
6498
  minBalance: bigint,
6516
6499
  ) => ChainSubmittableExtrinsic<
@@ -6519,7 +6502,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
6519
6502
  pallet: 'ForeignAssets';
6520
6503
  palletCall: {
6521
6504
  name: 'Create';
6522
- params: { id: StagingXcmV3MultilocationMultiLocation; admin: MultiAddressLike; minBalance: bigint };
6505
+ params: { id: StagingXcmV4Location; admin: MultiAddressLike; minBalance: bigint };
6523
6506
  };
6524
6507
  }
6525
6508
  >
@@ -6546,7 +6529,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
6546
6529
  *
6547
6530
  * Weight: `O(1)`
6548
6531
  *
6549
- * @param {StagingXcmV3MultilocationMultiLocation} id
6532
+ * @param {StagingXcmV4Location} id
6550
6533
  * @param {MultiAddressLike} owner
6551
6534
  * @param {boolean} isSufficient
6552
6535
  * @param {bigint} minBalance
@@ -6554,7 +6537,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
6554
6537
  forceCreate: GenericTxCall<
6555
6538
  Rv,
6556
6539
  (
6557
- id: StagingXcmV3MultilocationMultiLocation,
6540
+ id: StagingXcmV4Location,
6558
6541
  owner: MultiAddressLike,
6559
6542
  isSufficient: boolean,
6560
6543
  minBalance: bigint,
@@ -6564,12 +6547,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
6564
6547
  pallet: 'ForeignAssets';
6565
6548
  palletCall: {
6566
6549
  name: 'ForceCreate';
6567
- params: {
6568
- id: StagingXcmV3MultilocationMultiLocation;
6569
- owner: MultiAddressLike;
6570
- isSufficient: boolean;
6571
- minBalance: bigint;
6572
- };
6550
+ params: { id: StagingXcmV4Location; owner: MultiAddressLike; isSufficient: boolean; minBalance: bigint };
6573
6551
  };
6574
6552
  }
6575
6553
  >
@@ -6586,19 +6564,17 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
6586
6564
  * - `id`: The identifier of the asset to be destroyed. This must identify an existing
6587
6565
  * asset.
6588
6566
  *
6589
- * The asset class must be frozen before calling `start_destroy`.
6590
- *
6591
- * @param {StagingXcmV3MultilocationMultiLocation} id
6567
+ * @param {StagingXcmV4Location} id
6592
6568
  **/
6593
6569
  startDestroy: GenericTxCall<
6594
6570
  Rv,
6595
- (id: StagingXcmV3MultilocationMultiLocation) => ChainSubmittableExtrinsic<
6571
+ (id: StagingXcmV4Location) => ChainSubmittableExtrinsic<
6596
6572
  Rv,
6597
6573
  {
6598
6574
  pallet: 'ForeignAssets';
6599
6575
  palletCall: {
6600
6576
  name: 'StartDestroy';
6601
- params: { id: StagingXcmV3MultilocationMultiLocation };
6577
+ params: { id: StagingXcmV4Location };
6602
6578
  };
6603
6579
  }
6604
6580
  >
@@ -6618,17 +6594,17 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
6618
6594
  *
6619
6595
  * Each call emits the `Event::DestroyedAccounts` event.
6620
6596
  *
6621
- * @param {StagingXcmV3MultilocationMultiLocation} id
6597
+ * @param {StagingXcmV4Location} id
6622
6598
  **/
6623
6599
  destroyAccounts: GenericTxCall<
6624
6600
  Rv,
6625
- (id: StagingXcmV3MultilocationMultiLocation) => ChainSubmittableExtrinsic<
6601
+ (id: StagingXcmV4Location) => ChainSubmittableExtrinsic<
6626
6602
  Rv,
6627
6603
  {
6628
6604
  pallet: 'ForeignAssets';
6629
6605
  palletCall: {
6630
6606
  name: 'DestroyAccounts';
6631
- params: { id: StagingXcmV3MultilocationMultiLocation };
6607
+ params: { id: StagingXcmV4Location };
6632
6608
  };
6633
6609
  }
6634
6610
  >
@@ -6648,17 +6624,17 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
6648
6624
  *
6649
6625
  * Each call emits the `Event::DestroyedApprovals` event.
6650
6626
  *
6651
- * @param {StagingXcmV3MultilocationMultiLocation} id
6627
+ * @param {StagingXcmV4Location} id
6652
6628
  **/
6653
6629
  destroyApprovals: GenericTxCall<
6654
6630
  Rv,
6655
- (id: StagingXcmV3MultilocationMultiLocation) => ChainSubmittableExtrinsic<
6631
+ (id: StagingXcmV4Location) => ChainSubmittableExtrinsic<
6656
6632
  Rv,
6657
6633
  {
6658
6634
  pallet: 'ForeignAssets';
6659
6635
  palletCall: {
6660
6636
  name: 'DestroyApprovals';
6661
- params: { id: StagingXcmV3MultilocationMultiLocation };
6637
+ params: { id: StagingXcmV4Location };
6662
6638
  };
6663
6639
  }
6664
6640
  >
@@ -6676,17 +6652,17 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
6676
6652
  *
6677
6653
  * Each successful call emits the `Event::Destroyed` event.
6678
6654
  *
6679
- * @param {StagingXcmV3MultilocationMultiLocation} id
6655
+ * @param {StagingXcmV4Location} id
6680
6656
  **/
6681
6657
  finishDestroy: GenericTxCall<
6682
6658
  Rv,
6683
- (id: StagingXcmV3MultilocationMultiLocation) => ChainSubmittableExtrinsic<
6659
+ (id: StagingXcmV4Location) => ChainSubmittableExtrinsic<
6684
6660
  Rv,
6685
6661
  {
6686
6662
  pallet: 'ForeignAssets';
6687
6663
  palletCall: {
6688
6664
  name: 'FinishDestroy';
6689
- params: { id: StagingXcmV3MultilocationMultiLocation };
6665
+ params: { id: StagingXcmV4Location };
6690
6666
  };
6691
6667
  }
6692
6668
  >
@@ -6706,14 +6682,14 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
6706
6682
  * Weight: `O(1)`
6707
6683
  * Modes: Pre-existing balance of `beneficiary`; Account pre-existence of `beneficiary`.
6708
6684
  *
6709
- * @param {StagingXcmV3MultilocationMultiLocation} id
6685
+ * @param {StagingXcmV4Location} id
6710
6686
  * @param {MultiAddressLike} beneficiary
6711
6687
  * @param {bigint} amount
6712
6688
  **/
6713
6689
  mint: GenericTxCall<
6714
6690
  Rv,
6715
6691
  (
6716
- id: StagingXcmV3MultilocationMultiLocation,
6692
+ id: StagingXcmV4Location,
6717
6693
  beneficiary: MultiAddressLike,
6718
6694
  amount: bigint,
6719
6695
  ) => ChainSubmittableExtrinsic<
@@ -6722,7 +6698,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
6722
6698
  pallet: 'ForeignAssets';
6723
6699
  palletCall: {
6724
6700
  name: 'Mint';
6725
- params: { id: StagingXcmV3MultilocationMultiLocation; beneficiary: MultiAddressLike; amount: bigint };
6701
+ params: { id: StagingXcmV4Location; beneficiary: MultiAddressLike; amount: bigint };
6726
6702
  };
6727
6703
  }
6728
6704
  >
@@ -6745,14 +6721,14 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
6745
6721
  * Weight: `O(1)`
6746
6722
  * Modes: Post-existence of `who`; Pre & post Zombie-status of `who`.
6747
6723
  *
6748
- * @param {StagingXcmV3MultilocationMultiLocation} id
6724
+ * @param {StagingXcmV4Location} id
6749
6725
  * @param {MultiAddressLike} who
6750
6726
  * @param {bigint} amount
6751
6727
  **/
6752
6728
  burn: GenericTxCall<
6753
6729
  Rv,
6754
6730
  (
6755
- id: StagingXcmV3MultilocationMultiLocation,
6731
+ id: StagingXcmV4Location,
6756
6732
  who: MultiAddressLike,
6757
6733
  amount: bigint,
6758
6734
  ) => ChainSubmittableExtrinsic<
@@ -6761,7 +6737,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
6761
6737
  pallet: 'ForeignAssets';
6762
6738
  palletCall: {
6763
6739
  name: 'Burn';
6764
- params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike; amount: bigint };
6740
+ params: { id: StagingXcmV4Location; who: MultiAddressLike; amount: bigint };
6765
6741
  };
6766
6742
  }
6767
6743
  >
@@ -6787,14 +6763,14 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
6787
6763
  * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of
6788
6764
  * `target`.
6789
6765
  *
6790
- * @param {StagingXcmV3MultilocationMultiLocation} id
6766
+ * @param {StagingXcmV4Location} id
6791
6767
  * @param {MultiAddressLike} target
6792
6768
  * @param {bigint} amount
6793
6769
  **/
6794
6770
  transfer: GenericTxCall<
6795
6771
  Rv,
6796
6772
  (
6797
- id: StagingXcmV3MultilocationMultiLocation,
6773
+ id: StagingXcmV4Location,
6798
6774
  target: MultiAddressLike,
6799
6775
  amount: bigint,
6800
6776
  ) => ChainSubmittableExtrinsic<
@@ -6803,7 +6779,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
6803
6779
  pallet: 'ForeignAssets';
6804
6780
  palletCall: {
6805
6781
  name: 'Transfer';
6806
- params: { id: StagingXcmV3MultilocationMultiLocation; target: MultiAddressLike; amount: bigint };
6782
+ params: { id: StagingXcmV4Location; target: MultiAddressLike; amount: bigint };
6807
6783
  };
6808
6784
  }
6809
6785
  >
@@ -6829,14 +6805,14 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
6829
6805
  * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of
6830
6806
  * `target`.
6831
6807
  *
6832
- * @param {StagingXcmV3MultilocationMultiLocation} id
6808
+ * @param {StagingXcmV4Location} id
6833
6809
  * @param {MultiAddressLike} target
6834
6810
  * @param {bigint} amount
6835
6811
  **/
6836
6812
  transferKeepAlive: GenericTxCall<
6837
6813
  Rv,
6838
6814
  (
6839
- id: StagingXcmV3MultilocationMultiLocation,
6815
+ id: StagingXcmV4Location,
6840
6816
  target: MultiAddressLike,
6841
6817
  amount: bigint,
6842
6818
  ) => ChainSubmittableExtrinsic<
@@ -6845,7 +6821,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
6845
6821
  pallet: 'ForeignAssets';
6846
6822
  palletCall: {
6847
6823
  name: 'TransferKeepAlive';
6848
- params: { id: StagingXcmV3MultilocationMultiLocation; target: MultiAddressLike; amount: bigint };
6824
+ params: { id: StagingXcmV4Location; target: MultiAddressLike; amount: bigint };
6849
6825
  };
6850
6826
  }
6851
6827
  >
@@ -6872,7 +6848,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
6872
6848
  * Modes: Pre-existence of `dest`; Post-existence of `source`; Account pre-existence of
6873
6849
  * `dest`.
6874
6850
  *
6875
- * @param {StagingXcmV3MultilocationMultiLocation} id
6851
+ * @param {StagingXcmV4Location} id
6876
6852
  * @param {MultiAddressLike} source
6877
6853
  * @param {MultiAddressLike} dest
6878
6854
  * @param {bigint} amount
@@ -6880,7 +6856,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
6880
6856
  forceTransfer: GenericTxCall<
6881
6857
  Rv,
6882
6858
  (
6883
- id: StagingXcmV3MultilocationMultiLocation,
6859
+ id: StagingXcmV4Location,
6884
6860
  source: MultiAddressLike,
6885
6861
  dest: MultiAddressLike,
6886
6862
  amount: bigint,
@@ -6890,12 +6866,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
6890
6866
  pallet: 'ForeignAssets';
6891
6867
  palletCall: {
6892
6868
  name: 'ForceTransfer';
6893
- params: {
6894
- id: StagingXcmV3MultilocationMultiLocation;
6895
- source: MultiAddressLike;
6896
- dest: MultiAddressLike;
6897
- amount: bigint;
6898
- };
6869
+ params: { id: StagingXcmV4Location; source: MultiAddressLike; dest: MultiAddressLike; amount: bigint };
6899
6870
  };
6900
6871
  }
6901
6872
  >
@@ -6915,13 +6886,13 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
6915
6886
  *
6916
6887
  * Weight: `O(1)`
6917
6888
  *
6918
- * @param {StagingXcmV3MultilocationMultiLocation} id
6889
+ * @param {StagingXcmV4Location} id
6919
6890
  * @param {MultiAddressLike} who
6920
6891
  **/
6921
6892
  freeze: GenericTxCall<
6922
6893
  Rv,
6923
6894
  (
6924
- id: StagingXcmV3MultilocationMultiLocation,
6895
+ id: StagingXcmV4Location,
6925
6896
  who: MultiAddressLike,
6926
6897
  ) => ChainSubmittableExtrinsic<
6927
6898
  Rv,
@@ -6929,7 +6900,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
6929
6900
  pallet: 'ForeignAssets';
6930
6901
  palletCall: {
6931
6902
  name: 'Freeze';
6932
- params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike };
6903
+ params: { id: StagingXcmV4Location; who: MultiAddressLike };
6933
6904
  };
6934
6905
  }
6935
6906
  >
@@ -6947,13 +6918,13 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
6947
6918
  *
6948
6919
  * Weight: `O(1)`
6949
6920
  *
6950
- * @param {StagingXcmV3MultilocationMultiLocation} id
6921
+ * @param {StagingXcmV4Location} id
6951
6922
  * @param {MultiAddressLike} who
6952
6923
  **/
6953
6924
  thaw: GenericTxCall<
6954
6925
  Rv,
6955
6926
  (
6956
- id: StagingXcmV3MultilocationMultiLocation,
6927
+ id: StagingXcmV4Location,
6957
6928
  who: MultiAddressLike,
6958
6929
  ) => ChainSubmittableExtrinsic<
6959
6930
  Rv,
@@ -6961,7 +6932,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
6961
6932
  pallet: 'ForeignAssets';
6962
6933
  palletCall: {
6963
6934
  name: 'Thaw';
6964
- params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike };
6935
+ params: { id: StagingXcmV4Location; who: MultiAddressLike };
6965
6936
  };
6966
6937
  }
6967
6938
  >
@@ -6978,17 +6949,17 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
6978
6949
  *
6979
6950
  * Weight: `O(1)`
6980
6951
  *
6981
- * @param {StagingXcmV3MultilocationMultiLocation} id
6952
+ * @param {StagingXcmV4Location} id
6982
6953
  **/
6983
6954
  freezeAsset: GenericTxCall<
6984
6955
  Rv,
6985
- (id: StagingXcmV3MultilocationMultiLocation) => ChainSubmittableExtrinsic<
6956
+ (id: StagingXcmV4Location) => ChainSubmittableExtrinsic<
6986
6957
  Rv,
6987
6958
  {
6988
6959
  pallet: 'ForeignAssets';
6989
6960
  palletCall: {
6990
6961
  name: 'FreezeAsset';
6991
- params: { id: StagingXcmV3MultilocationMultiLocation };
6962
+ params: { id: StagingXcmV4Location };
6992
6963
  };
6993
6964
  }
6994
6965
  >
@@ -7005,17 +6976,17 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7005
6976
  *
7006
6977
  * Weight: `O(1)`
7007
6978
  *
7008
- * @param {StagingXcmV3MultilocationMultiLocation} id
6979
+ * @param {StagingXcmV4Location} id
7009
6980
  **/
7010
6981
  thawAsset: GenericTxCall<
7011
6982
  Rv,
7012
- (id: StagingXcmV3MultilocationMultiLocation) => ChainSubmittableExtrinsic<
6983
+ (id: StagingXcmV4Location) => ChainSubmittableExtrinsic<
7013
6984
  Rv,
7014
6985
  {
7015
6986
  pallet: 'ForeignAssets';
7016
6987
  palletCall: {
7017
6988
  name: 'ThawAsset';
7018
- params: { id: StagingXcmV3MultilocationMultiLocation };
6989
+ params: { id: StagingXcmV4Location };
7019
6990
  };
7020
6991
  }
7021
6992
  >
@@ -7033,13 +7004,13 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7033
7004
  *
7034
7005
  * Weight: `O(1)`
7035
7006
  *
7036
- * @param {StagingXcmV3MultilocationMultiLocation} id
7007
+ * @param {StagingXcmV4Location} id
7037
7008
  * @param {MultiAddressLike} owner
7038
7009
  **/
7039
7010
  transferOwnership: GenericTxCall<
7040
7011
  Rv,
7041
7012
  (
7042
- id: StagingXcmV3MultilocationMultiLocation,
7013
+ id: StagingXcmV4Location,
7043
7014
  owner: MultiAddressLike,
7044
7015
  ) => ChainSubmittableExtrinsic<
7045
7016
  Rv,
@@ -7047,7 +7018,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7047
7018
  pallet: 'ForeignAssets';
7048
7019
  palletCall: {
7049
7020
  name: 'TransferOwnership';
7050
- params: { id: StagingXcmV3MultilocationMultiLocation; owner: MultiAddressLike };
7021
+ params: { id: StagingXcmV4Location; owner: MultiAddressLike };
7051
7022
  };
7052
7023
  }
7053
7024
  >
@@ -7067,7 +7038,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7067
7038
  *
7068
7039
  * Weight: `O(1)`
7069
7040
  *
7070
- * @param {StagingXcmV3MultilocationMultiLocation} id
7041
+ * @param {StagingXcmV4Location} id
7071
7042
  * @param {MultiAddressLike} issuer
7072
7043
  * @param {MultiAddressLike} admin
7073
7044
  * @param {MultiAddressLike} freezer
@@ -7075,7 +7046,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7075
7046
  setTeam: GenericTxCall<
7076
7047
  Rv,
7077
7048
  (
7078
- id: StagingXcmV3MultilocationMultiLocation,
7049
+ id: StagingXcmV4Location,
7079
7050
  issuer: MultiAddressLike,
7080
7051
  admin: MultiAddressLike,
7081
7052
  freezer: MultiAddressLike,
@@ -7086,7 +7057,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7086
7057
  palletCall: {
7087
7058
  name: 'SetTeam';
7088
7059
  params: {
7089
- id: StagingXcmV3MultilocationMultiLocation;
7060
+ id: StagingXcmV4Location;
7090
7061
  issuer: MultiAddressLike;
7091
7062
  admin: MultiAddressLike;
7092
7063
  freezer: MultiAddressLike;
@@ -7114,7 +7085,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7114
7085
  *
7115
7086
  * Weight: `O(1)`
7116
7087
  *
7117
- * @param {StagingXcmV3MultilocationMultiLocation} id
7088
+ * @param {StagingXcmV4Location} id
7118
7089
  * @param {BytesLike} name
7119
7090
  * @param {BytesLike} symbol
7120
7091
  * @param {number} decimals
@@ -7122,7 +7093,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7122
7093
  setMetadata: GenericTxCall<
7123
7094
  Rv,
7124
7095
  (
7125
- id: StagingXcmV3MultilocationMultiLocation,
7096
+ id: StagingXcmV4Location,
7126
7097
  name: BytesLike,
7127
7098
  symbol: BytesLike,
7128
7099
  decimals: number,
@@ -7132,12 +7103,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7132
7103
  pallet: 'ForeignAssets';
7133
7104
  palletCall: {
7134
7105
  name: 'SetMetadata';
7135
- params: {
7136
- id: StagingXcmV3MultilocationMultiLocation;
7137
- name: BytesLike;
7138
- symbol: BytesLike;
7139
- decimals: number;
7140
- };
7106
+ params: { id: StagingXcmV4Location; name: BytesLike; symbol: BytesLike; decimals: number };
7141
7107
  };
7142
7108
  }
7143
7109
  >
@@ -7156,17 +7122,17 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7156
7122
  *
7157
7123
  * Weight: `O(1)`
7158
7124
  *
7159
- * @param {StagingXcmV3MultilocationMultiLocation} id
7125
+ * @param {StagingXcmV4Location} id
7160
7126
  **/
7161
7127
  clearMetadata: GenericTxCall<
7162
7128
  Rv,
7163
- (id: StagingXcmV3MultilocationMultiLocation) => ChainSubmittableExtrinsic<
7129
+ (id: StagingXcmV4Location) => ChainSubmittableExtrinsic<
7164
7130
  Rv,
7165
7131
  {
7166
7132
  pallet: 'ForeignAssets';
7167
7133
  palletCall: {
7168
7134
  name: 'ClearMetadata';
7169
- params: { id: StagingXcmV3MultilocationMultiLocation };
7135
+ params: { id: StagingXcmV4Location };
7170
7136
  };
7171
7137
  }
7172
7138
  >
@@ -7188,7 +7154,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7188
7154
  *
7189
7155
  * Weight: `O(N + S)` where N and S are the length of the name and symbol respectively.
7190
7156
  *
7191
- * @param {StagingXcmV3MultilocationMultiLocation} id
7157
+ * @param {StagingXcmV4Location} id
7192
7158
  * @param {BytesLike} name
7193
7159
  * @param {BytesLike} symbol
7194
7160
  * @param {number} decimals
@@ -7197,7 +7163,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7197
7163
  forceSetMetadata: GenericTxCall<
7198
7164
  Rv,
7199
7165
  (
7200
- id: StagingXcmV3MultilocationMultiLocation,
7166
+ id: StagingXcmV4Location,
7201
7167
  name: BytesLike,
7202
7168
  symbol: BytesLike,
7203
7169
  decimals: number,
@@ -7209,7 +7175,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7209
7175
  palletCall: {
7210
7176
  name: 'ForceSetMetadata';
7211
7177
  params: {
7212
- id: StagingXcmV3MultilocationMultiLocation;
7178
+ id: StagingXcmV4Location;
7213
7179
  name: BytesLike;
7214
7180
  symbol: BytesLike;
7215
7181
  decimals: number;
@@ -7233,17 +7199,17 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7233
7199
  *
7234
7200
  * Weight: `O(1)`
7235
7201
  *
7236
- * @param {StagingXcmV3MultilocationMultiLocation} id
7202
+ * @param {StagingXcmV4Location} id
7237
7203
  **/
7238
7204
  forceClearMetadata: GenericTxCall<
7239
7205
  Rv,
7240
- (id: StagingXcmV3MultilocationMultiLocation) => ChainSubmittableExtrinsic<
7206
+ (id: StagingXcmV4Location) => ChainSubmittableExtrinsic<
7241
7207
  Rv,
7242
7208
  {
7243
7209
  pallet: 'ForeignAssets';
7244
7210
  palletCall: {
7245
7211
  name: 'ForceClearMetadata';
7246
- params: { id: StagingXcmV3MultilocationMultiLocation };
7212
+ params: { id: StagingXcmV4Location };
7247
7213
  };
7248
7214
  }
7249
7215
  >
@@ -7273,7 +7239,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7273
7239
  *
7274
7240
  * Weight: `O(1)`
7275
7241
  *
7276
- * @param {StagingXcmV3MultilocationMultiLocation} id
7242
+ * @param {StagingXcmV4Location} id
7277
7243
  * @param {MultiAddressLike} owner
7278
7244
  * @param {MultiAddressLike} issuer
7279
7245
  * @param {MultiAddressLike} admin
@@ -7285,7 +7251,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7285
7251
  forceAssetStatus: GenericTxCall<
7286
7252
  Rv,
7287
7253
  (
7288
- id: StagingXcmV3MultilocationMultiLocation,
7254
+ id: StagingXcmV4Location,
7289
7255
  owner: MultiAddressLike,
7290
7256
  issuer: MultiAddressLike,
7291
7257
  admin: MultiAddressLike,
@@ -7300,7 +7266,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7300
7266
  palletCall: {
7301
7267
  name: 'ForceAssetStatus';
7302
7268
  params: {
7303
- id: StagingXcmV3MultilocationMultiLocation;
7269
+ id: StagingXcmV4Location;
7304
7270
  owner: MultiAddressLike;
7305
7271
  issuer: MultiAddressLike;
7306
7272
  admin: MultiAddressLike;
@@ -7336,14 +7302,14 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7336
7302
  *
7337
7303
  * Weight: `O(1)`
7338
7304
  *
7339
- * @param {StagingXcmV3MultilocationMultiLocation} id
7305
+ * @param {StagingXcmV4Location} id
7340
7306
  * @param {MultiAddressLike} delegate
7341
7307
  * @param {bigint} amount
7342
7308
  **/
7343
7309
  approveTransfer: GenericTxCall<
7344
7310
  Rv,
7345
7311
  (
7346
- id: StagingXcmV3MultilocationMultiLocation,
7312
+ id: StagingXcmV4Location,
7347
7313
  delegate: MultiAddressLike,
7348
7314
  amount: bigint,
7349
7315
  ) => ChainSubmittableExtrinsic<
@@ -7352,7 +7318,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7352
7318
  pallet: 'ForeignAssets';
7353
7319
  palletCall: {
7354
7320
  name: 'ApproveTransfer';
7355
- params: { id: StagingXcmV3MultilocationMultiLocation; delegate: MultiAddressLike; amount: bigint };
7321
+ params: { id: StagingXcmV4Location; delegate: MultiAddressLike; amount: bigint };
7356
7322
  };
7357
7323
  }
7358
7324
  >
@@ -7373,13 +7339,13 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7373
7339
  *
7374
7340
  * Weight: `O(1)`
7375
7341
  *
7376
- * @param {StagingXcmV3MultilocationMultiLocation} id
7342
+ * @param {StagingXcmV4Location} id
7377
7343
  * @param {MultiAddressLike} delegate
7378
7344
  **/
7379
7345
  cancelApproval: GenericTxCall<
7380
7346
  Rv,
7381
7347
  (
7382
- id: StagingXcmV3MultilocationMultiLocation,
7348
+ id: StagingXcmV4Location,
7383
7349
  delegate: MultiAddressLike,
7384
7350
  ) => ChainSubmittableExtrinsic<
7385
7351
  Rv,
@@ -7387,7 +7353,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7387
7353
  pallet: 'ForeignAssets';
7388
7354
  palletCall: {
7389
7355
  name: 'CancelApproval';
7390
- params: { id: StagingXcmV3MultilocationMultiLocation; delegate: MultiAddressLike };
7356
+ params: { id: StagingXcmV4Location; delegate: MultiAddressLike };
7391
7357
  };
7392
7358
  }
7393
7359
  >
@@ -7408,14 +7374,14 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7408
7374
  *
7409
7375
  * Weight: `O(1)`
7410
7376
  *
7411
- * @param {StagingXcmV3MultilocationMultiLocation} id
7377
+ * @param {StagingXcmV4Location} id
7412
7378
  * @param {MultiAddressLike} owner
7413
7379
  * @param {MultiAddressLike} delegate
7414
7380
  **/
7415
7381
  forceCancelApproval: GenericTxCall<
7416
7382
  Rv,
7417
7383
  (
7418
- id: StagingXcmV3MultilocationMultiLocation,
7384
+ id: StagingXcmV4Location,
7419
7385
  owner: MultiAddressLike,
7420
7386
  delegate: MultiAddressLike,
7421
7387
  ) => ChainSubmittableExtrinsic<
@@ -7424,7 +7390,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7424
7390
  pallet: 'ForeignAssets';
7425
7391
  palletCall: {
7426
7392
  name: 'ForceCancelApproval';
7427
- params: { id: StagingXcmV3MultilocationMultiLocation; owner: MultiAddressLike; delegate: MultiAddressLike };
7393
+ params: { id: StagingXcmV4Location; owner: MultiAddressLike; delegate: MultiAddressLike };
7428
7394
  };
7429
7395
  }
7430
7396
  >
@@ -7450,7 +7416,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7450
7416
  *
7451
7417
  * Weight: `O(1)`
7452
7418
  *
7453
- * @param {StagingXcmV3MultilocationMultiLocation} id
7419
+ * @param {StagingXcmV4Location} id
7454
7420
  * @param {MultiAddressLike} owner
7455
7421
  * @param {MultiAddressLike} destination
7456
7422
  * @param {bigint} amount
@@ -7458,7 +7424,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7458
7424
  transferApproved: GenericTxCall<
7459
7425
  Rv,
7460
7426
  (
7461
- id: StagingXcmV3MultilocationMultiLocation,
7427
+ id: StagingXcmV4Location,
7462
7428
  owner: MultiAddressLike,
7463
7429
  destination: MultiAddressLike,
7464
7430
  amount: bigint,
@@ -7469,7 +7435,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7469
7435
  palletCall: {
7470
7436
  name: 'TransferApproved';
7471
7437
  params: {
7472
- id: StagingXcmV3MultilocationMultiLocation;
7438
+ id: StagingXcmV4Location;
7473
7439
  owner: MultiAddressLike;
7474
7440
  destination: MultiAddressLike;
7475
7441
  amount: bigint;
@@ -7490,17 +7456,17 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7490
7456
  *
7491
7457
  * Emits `Touched` event when successful.
7492
7458
  *
7493
- * @param {StagingXcmV3MultilocationMultiLocation} id
7459
+ * @param {StagingXcmV4Location} id
7494
7460
  **/
7495
7461
  touch: GenericTxCall<
7496
7462
  Rv,
7497
- (id: StagingXcmV3MultilocationMultiLocation) => ChainSubmittableExtrinsic<
7463
+ (id: StagingXcmV4Location) => ChainSubmittableExtrinsic<
7498
7464
  Rv,
7499
7465
  {
7500
7466
  pallet: 'ForeignAssets';
7501
7467
  palletCall: {
7502
7468
  name: 'Touch';
7503
- params: { id: StagingXcmV3MultilocationMultiLocation };
7469
+ params: { id: StagingXcmV4Location };
7504
7470
  };
7505
7471
  }
7506
7472
  >
@@ -7518,13 +7484,13 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7518
7484
  *
7519
7485
  * Emits `Refunded` event when successful.
7520
7486
  *
7521
- * @param {StagingXcmV3MultilocationMultiLocation} id
7487
+ * @param {StagingXcmV4Location} id
7522
7488
  * @param {boolean} allowBurn
7523
7489
  **/
7524
7490
  refund: GenericTxCall<
7525
7491
  Rv,
7526
7492
  (
7527
- id: StagingXcmV3MultilocationMultiLocation,
7493
+ id: StagingXcmV4Location,
7528
7494
  allowBurn: boolean,
7529
7495
  ) => ChainSubmittableExtrinsic<
7530
7496
  Rv,
@@ -7532,7 +7498,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7532
7498
  pallet: 'ForeignAssets';
7533
7499
  palletCall: {
7534
7500
  name: 'Refund';
7535
- params: { id: StagingXcmV3MultilocationMultiLocation; allowBurn: boolean };
7501
+ params: { id: StagingXcmV4Location; allowBurn: boolean };
7536
7502
  };
7537
7503
  }
7538
7504
  >
@@ -7552,13 +7518,13 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7552
7518
  *
7553
7519
  * Emits `AssetMinBalanceChanged` event when successful.
7554
7520
  *
7555
- * @param {StagingXcmV3MultilocationMultiLocation} id
7521
+ * @param {StagingXcmV4Location} id
7556
7522
  * @param {bigint} minBalance
7557
7523
  **/
7558
7524
  setMinBalance: GenericTxCall<
7559
7525
  Rv,
7560
7526
  (
7561
- id: StagingXcmV3MultilocationMultiLocation,
7527
+ id: StagingXcmV4Location,
7562
7528
  minBalance: bigint,
7563
7529
  ) => ChainSubmittableExtrinsic<
7564
7530
  Rv,
@@ -7566,7 +7532,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7566
7532
  pallet: 'ForeignAssets';
7567
7533
  palletCall: {
7568
7534
  name: 'SetMinBalance';
7569
- params: { id: StagingXcmV3MultilocationMultiLocation; minBalance: bigint };
7535
+ params: { id: StagingXcmV4Location; minBalance: bigint };
7570
7536
  };
7571
7537
  }
7572
7538
  >
@@ -7584,13 +7550,13 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7584
7550
  *
7585
7551
  * Emits `Touched` event when successful.
7586
7552
  *
7587
- * @param {StagingXcmV3MultilocationMultiLocation} id
7553
+ * @param {StagingXcmV4Location} id
7588
7554
  * @param {MultiAddressLike} who
7589
7555
  **/
7590
7556
  touchOther: GenericTxCall<
7591
7557
  Rv,
7592
7558
  (
7593
- id: StagingXcmV3MultilocationMultiLocation,
7559
+ id: StagingXcmV4Location,
7594
7560
  who: MultiAddressLike,
7595
7561
  ) => ChainSubmittableExtrinsic<
7596
7562
  Rv,
@@ -7598,7 +7564,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7598
7564
  pallet: 'ForeignAssets';
7599
7565
  palletCall: {
7600
7566
  name: 'TouchOther';
7601
- params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike };
7567
+ params: { id: StagingXcmV4Location; who: MultiAddressLike };
7602
7568
  };
7603
7569
  }
7604
7570
  >
@@ -7616,13 +7582,13 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7616
7582
  *
7617
7583
  * Emits `Refunded` event when successful.
7618
7584
  *
7619
- * @param {StagingXcmV3MultilocationMultiLocation} id
7585
+ * @param {StagingXcmV4Location} id
7620
7586
  * @param {MultiAddressLike} who
7621
7587
  **/
7622
7588
  refundOther: GenericTxCall<
7623
7589
  Rv,
7624
7590
  (
7625
- id: StagingXcmV3MultilocationMultiLocation,
7591
+ id: StagingXcmV4Location,
7626
7592
  who: MultiAddressLike,
7627
7593
  ) => ChainSubmittableExtrinsic<
7628
7594
  Rv,
@@ -7630,7 +7596,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7630
7596
  pallet: 'ForeignAssets';
7631
7597
  palletCall: {
7632
7598
  name: 'RefundOther';
7633
- params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike };
7599
+ params: { id: StagingXcmV4Location; who: MultiAddressLike };
7634
7600
  };
7635
7601
  }
7636
7602
  >
@@ -7648,13 +7614,13 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7648
7614
  *
7649
7615
  * Weight: `O(1)`
7650
7616
  *
7651
- * @param {StagingXcmV3MultilocationMultiLocation} id
7617
+ * @param {StagingXcmV4Location} id
7652
7618
  * @param {MultiAddressLike} who
7653
7619
  **/
7654
7620
  block: GenericTxCall<
7655
7621
  Rv,
7656
7622
  (
7657
- id: StagingXcmV3MultilocationMultiLocation,
7623
+ id: StagingXcmV4Location,
7658
7624
  who: MultiAddressLike,
7659
7625
  ) => ChainSubmittableExtrinsic<
7660
7626
  Rv,
@@ -7662,7 +7628,47 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7662
7628
  pallet: 'ForeignAssets';
7663
7629
  palletCall: {
7664
7630
  name: 'Block';
7665
- params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike };
7631
+ params: { id: StagingXcmV4Location; who: MultiAddressLike };
7632
+ };
7633
+ }
7634
+ >
7635
+ >;
7636
+
7637
+ /**
7638
+ * Transfer the entire transferable balance from the caller asset account.
7639
+ *
7640
+ * NOTE: This function only attempts to transfer _transferable_ balances. This means that
7641
+ * any held, frozen, or minimum balance (when `keep_alive` is `true`), will not be
7642
+ * transferred by this function. To ensure that this function results in a killed account,
7643
+ * you might need to prepare the account by removing any reference counters, storage
7644
+ * deposits, etc...
7645
+ *
7646
+ * The dispatch origin of this call must be Signed.
7647
+ *
7648
+ * - `id`: The identifier of the asset for the account holding a deposit.
7649
+ * - `dest`: The recipient of the transfer.
7650
+ * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
7651
+ * of the funds the asset account has, causing the sender asset account to be killed
7652
+ * (false), or transfer everything except at least the minimum balance, which will
7653
+ * guarantee to keep the sender asset account alive (true).
7654
+ *
7655
+ * @param {StagingXcmV4Location} id
7656
+ * @param {MultiAddressLike} dest
7657
+ * @param {boolean} keepAlive
7658
+ **/
7659
+ transferAll: GenericTxCall<
7660
+ Rv,
7661
+ (
7662
+ id: StagingXcmV4Location,
7663
+ dest: MultiAddressLike,
7664
+ keepAlive: boolean,
7665
+ ) => ChainSubmittableExtrinsic<
7666
+ Rv,
7667
+ {
7668
+ pallet: 'ForeignAssets';
7669
+ palletCall: {
7670
+ name: 'TransferAll';
7671
+ params: { id: StagingXcmV4Location; dest: MultiAddressLike; keepAlive: boolean };
7666
7672
  };
7667
7673
  }
7668
7674
  >
@@ -7776,8 +7782,6 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7776
7782
  * - `id`: The identifier of the asset to be destroyed. This must identify an existing
7777
7783
  * asset.
7778
7784
  *
7779
- * The asset class must be frozen before calling `start_destroy`.
7780
- *
7781
7785
  * @param {number} id
7782
7786
  **/
7783
7787
  startDestroy: GenericTxCall<
@@ -8832,6 +8836,46 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
8832
8836
  >
8833
8837
  >;
8834
8838
 
8839
+ /**
8840
+ * Transfer the entire transferable balance from the caller asset account.
8841
+ *
8842
+ * NOTE: This function only attempts to transfer _transferable_ balances. This means that
8843
+ * any held, frozen, or minimum balance (when `keep_alive` is `true`), will not be
8844
+ * transferred by this function. To ensure that this function results in a killed account,
8845
+ * you might need to prepare the account by removing any reference counters, storage
8846
+ * deposits, etc...
8847
+ *
8848
+ * The dispatch origin of this call must be Signed.
8849
+ *
8850
+ * - `id`: The identifier of the asset for the account holding a deposit.
8851
+ * - `dest`: The recipient of the transfer.
8852
+ * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
8853
+ * of the funds the asset account has, causing the sender asset account to be killed
8854
+ * (false), or transfer everything except at least the minimum balance, which will
8855
+ * guarantee to keep the sender asset account alive (true).
8856
+ *
8857
+ * @param {number} id
8858
+ * @param {MultiAddressLike} dest
8859
+ * @param {boolean} keepAlive
8860
+ **/
8861
+ transferAll: GenericTxCall<
8862
+ Rv,
8863
+ (
8864
+ id: number,
8865
+ dest: MultiAddressLike,
8866
+ keepAlive: boolean,
8867
+ ) => ChainSubmittableExtrinsic<
8868
+ Rv,
8869
+ {
8870
+ pallet: 'PoolAssets';
8871
+ palletCall: {
8872
+ name: 'TransferAll';
8873
+ params: { id: number; dest: MultiAddressLike; keepAlive: boolean };
8874
+ };
8875
+ }
8876
+ >
8877
+ >;
8878
+
8835
8879
  /**
8836
8880
  * Generic pallet tx call
8837
8881
  **/
@@ -8847,21 +8891,21 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
8847
8891
  *
8848
8892
  * Once a pool is created, someone may [`Pallet::add_liquidity`] to it.
8849
8893
  *
8850
- * @param {StagingXcmV3MultilocationMultiLocation} asset1
8851
- * @param {StagingXcmV3MultilocationMultiLocation} asset2
8894
+ * @param {StagingXcmV4Location} asset1
8895
+ * @param {StagingXcmV4Location} asset2
8852
8896
  **/
8853
8897
  createPool: GenericTxCall<
8854
8898
  Rv,
8855
8899
  (
8856
- asset1: StagingXcmV3MultilocationMultiLocation,
8857
- asset2: StagingXcmV3MultilocationMultiLocation,
8900
+ asset1: StagingXcmV4Location,
8901
+ asset2: StagingXcmV4Location,
8858
8902
  ) => ChainSubmittableExtrinsic<
8859
8903
  Rv,
8860
8904
  {
8861
8905
  pallet: 'AssetConversion';
8862
8906
  palletCall: {
8863
8907
  name: 'CreatePool';
8864
- params: { asset1: StagingXcmV3MultilocationMultiLocation; asset2: StagingXcmV3MultilocationMultiLocation };
8908
+ params: { asset1: StagingXcmV4Location; asset2: StagingXcmV4Location };
8865
8909
  };
8866
8910
  }
8867
8911
  >
@@ -8881,10 +8925,10 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
8881
8925
  * calls to render the liquidity withdrawable and rectify the exchange rate.
8882
8926
  *
8883
8927
  * Once liquidity is added, someone may successfully call
8884
- * [`Pallet::swap_exact_tokens_for_tokens`] successfully.
8928
+ * [`Pallet::swap_exact_tokens_for_tokens`].
8885
8929
  *
8886
- * @param {StagingXcmV3MultilocationMultiLocation} asset1
8887
- * @param {StagingXcmV3MultilocationMultiLocation} asset2
8930
+ * @param {StagingXcmV4Location} asset1
8931
+ * @param {StagingXcmV4Location} asset2
8888
8932
  * @param {bigint} amount1Desired
8889
8933
  * @param {bigint} amount2Desired
8890
8934
  * @param {bigint} amount1Min
@@ -8894,8 +8938,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
8894
8938
  addLiquidity: GenericTxCall<
8895
8939
  Rv,
8896
8940
  (
8897
- asset1: StagingXcmV3MultilocationMultiLocation,
8898
- asset2: StagingXcmV3MultilocationMultiLocation,
8941
+ asset1: StagingXcmV4Location,
8942
+ asset2: StagingXcmV4Location,
8899
8943
  amount1Desired: bigint,
8900
8944
  amount2Desired: bigint,
8901
8945
  amount1Min: bigint,
@@ -8908,8 +8952,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
8908
8952
  palletCall: {
8909
8953
  name: 'AddLiquidity';
8910
8954
  params: {
8911
- asset1: StagingXcmV3MultilocationMultiLocation;
8912
- asset2: StagingXcmV3MultilocationMultiLocation;
8955
+ asset1: StagingXcmV4Location;
8956
+ asset2: StagingXcmV4Location;
8913
8957
  amount1Desired: bigint;
8914
8958
  amount2Desired: bigint;
8915
8959
  amount1Min: bigint;
@@ -8926,8 +8970,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
8926
8970
  * burned in the process. With the usage of `amount1_min_receive`/`amount2_min_receive`
8927
8971
  * it's possible to control the min amount of returned tokens you're happy with.
8928
8972
  *
8929
- * @param {StagingXcmV3MultilocationMultiLocation} asset1
8930
- * @param {StagingXcmV3MultilocationMultiLocation} asset2
8973
+ * @param {StagingXcmV4Location} asset1
8974
+ * @param {StagingXcmV4Location} asset2
8931
8975
  * @param {bigint} lpTokenBurn
8932
8976
  * @param {bigint} amount1MinReceive
8933
8977
  * @param {bigint} amount2MinReceive
@@ -8936,8 +8980,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
8936
8980
  removeLiquidity: GenericTxCall<
8937
8981
  Rv,
8938
8982
  (
8939
- asset1: StagingXcmV3MultilocationMultiLocation,
8940
- asset2: StagingXcmV3MultilocationMultiLocation,
8983
+ asset1: StagingXcmV4Location,
8984
+ asset2: StagingXcmV4Location,
8941
8985
  lpTokenBurn: bigint,
8942
8986
  amount1MinReceive: bigint,
8943
8987
  amount2MinReceive: bigint,
@@ -8949,8 +8993,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
8949
8993
  palletCall: {
8950
8994
  name: 'RemoveLiquidity';
8951
8995
  params: {
8952
- asset1: StagingXcmV3MultilocationMultiLocation;
8953
- asset2: StagingXcmV3MultilocationMultiLocation;
8996
+ asset1: StagingXcmV4Location;
8997
+ asset2: StagingXcmV4Location;
8954
8998
  lpTokenBurn: bigint;
8955
8999
  amount1MinReceive: bigint;
8956
9000
  amount2MinReceive: bigint;
@@ -8969,7 +9013,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
8969
9013
  * [`AssetConversionApi::quote_price_exact_tokens_for_tokens`] runtime call can be called
8970
9014
  * for a quote.
8971
9015
  *
8972
- * @param {Array<StagingXcmV3MultilocationMultiLocation>} path
9016
+ * @param {Array<StagingXcmV4Location>} path
8973
9017
  * @param {bigint} amountIn
8974
9018
  * @param {bigint} amountOutMin
8975
9019
  * @param {AccountId32Like} sendTo
@@ -8978,7 +9022,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
8978
9022
  swapExactTokensForTokens: GenericTxCall<
8979
9023
  Rv,
8980
9024
  (
8981
- path: Array<StagingXcmV3MultilocationMultiLocation>,
9025
+ path: Array<StagingXcmV4Location>,
8982
9026
  amountIn: bigint,
8983
9027
  amountOutMin: bigint,
8984
9028
  sendTo: AccountId32Like,
@@ -8990,7 +9034,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
8990
9034
  palletCall: {
8991
9035
  name: 'SwapExactTokensForTokens';
8992
9036
  params: {
8993
- path: Array<StagingXcmV3MultilocationMultiLocation>;
9037
+ path: Array<StagingXcmV4Location>;
8994
9038
  amountIn: bigint;
8995
9039
  amountOutMin: bigint;
8996
9040
  sendTo: AccountId32Like;
@@ -9009,7 +9053,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
9009
9053
  * [`AssetConversionApi::quote_price_tokens_for_exact_tokens`] runtime call can be called
9010
9054
  * for a quote.
9011
9055
  *
9012
- * @param {Array<StagingXcmV3MultilocationMultiLocation>} path
9056
+ * @param {Array<StagingXcmV4Location>} path
9013
9057
  * @param {bigint} amountOut
9014
9058
  * @param {bigint} amountInMax
9015
9059
  * @param {AccountId32Like} sendTo
@@ -9018,7 +9062,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
9018
9062
  swapTokensForExactTokens: GenericTxCall<
9019
9063
  Rv,
9020
9064
  (
9021
- path: Array<StagingXcmV3MultilocationMultiLocation>,
9065
+ path: Array<StagingXcmV4Location>,
9022
9066
  amountOut: bigint,
9023
9067
  amountInMax: bigint,
9024
9068
  sendTo: AccountId32Like,
@@ -9030,7 +9074,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
9030
9074
  palletCall: {
9031
9075
  name: 'SwapTokensForExactTokens';
9032
9076
  params: {
9033
- path: Array<StagingXcmV3MultilocationMultiLocation>;
9077
+ path: Array<StagingXcmV4Location>;
9034
9078
  amountOut: bigint;
9035
9079
  amountInMax: bigint;
9036
9080
  sendTo: AccountId32Like;
@@ -9054,21 +9098,206 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
9054
9098
  *
9055
9099
  * Emits `Touched` event when successful.
9056
9100
  *
9057
- * @param {StagingXcmV3MultilocationMultiLocation} asset1
9058
- * @param {StagingXcmV3MultilocationMultiLocation} asset2
9101
+ * @param {StagingXcmV4Location} asset1
9102
+ * @param {StagingXcmV4Location} asset2
9059
9103
  **/
9060
9104
  touch: GenericTxCall<
9061
9105
  Rv,
9062
9106
  (
9063
- asset1: StagingXcmV3MultilocationMultiLocation,
9064
- asset2: StagingXcmV3MultilocationMultiLocation,
9107
+ asset1: StagingXcmV4Location,
9108
+ asset2: StagingXcmV4Location,
9065
9109
  ) => ChainSubmittableExtrinsic<
9066
9110
  Rv,
9067
9111
  {
9068
9112
  pallet: 'AssetConversion';
9069
9113
  palletCall: {
9070
9114
  name: 'Touch';
9071
- params: { asset1: StagingXcmV3MultilocationMultiLocation; asset2: StagingXcmV3MultilocationMultiLocation };
9115
+ params: { asset1: StagingXcmV4Location; asset2: StagingXcmV4Location };
9116
+ };
9117
+ }
9118
+ >
9119
+ >;
9120
+
9121
+ /**
9122
+ * Generic pallet tx call
9123
+ **/
9124
+ [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
9125
+ };
9126
+ /**
9127
+ * Pallet `StateTrieMigration`'s transaction calls
9128
+ **/
9129
+ stateTrieMigration: {
9130
+ /**
9131
+ * Control the automatic migration.
9132
+ *
9133
+ * The dispatch origin of this call must be [`Config::ControlOrigin`].
9134
+ *
9135
+ * @param {PalletStateTrieMigrationMigrationLimits | undefined} maybeConfig
9136
+ **/
9137
+ controlAutoMigration: GenericTxCall<
9138
+ Rv,
9139
+ (maybeConfig: PalletStateTrieMigrationMigrationLimits | undefined) => ChainSubmittableExtrinsic<
9140
+ Rv,
9141
+ {
9142
+ pallet: 'StateTrieMigration';
9143
+ palletCall: {
9144
+ name: 'ControlAutoMigration';
9145
+ params: { maybeConfig: PalletStateTrieMigrationMigrationLimits | undefined };
9146
+ };
9147
+ }
9148
+ >
9149
+ >;
9150
+
9151
+ /**
9152
+ * Continue the migration for the given `limits`.
9153
+ *
9154
+ * The dispatch origin of this call can be any signed account.
9155
+ *
9156
+ * This transaction has NO MONETARY INCENTIVES. calling it will not reward anyone. Albeit,
9157
+ * Upon successful execution, the transaction fee is returned.
9158
+ *
9159
+ * The (potentially over-estimated) of the byte length of all the data read must be
9160
+ * provided for up-front fee-payment and weighing. In essence, the caller is guaranteeing
9161
+ * that executing the current `MigrationTask` with the given `limits` will not exceed
9162
+ * `real_size_upper` bytes of read data.
9163
+ *
9164
+ * The `witness_task` is merely a helper to prevent the caller from being slashed or
9165
+ * generally trigger a migration that they do not intend. This parameter is just a message
9166
+ * from caller, saying that they believed `witness_task` was the last state of the
9167
+ * migration, and they only wish for their transaction to do anything, if this assumption
9168
+ * holds. In case `witness_task` does not match, the transaction fails.
9169
+ *
9170
+ * Based on the documentation of [`MigrationTask::migrate_until_exhaustion`], the
9171
+ * recommended way of doing this is to pass a `limit` that only bounds `count`, as the
9172
+ * `size` limit can always be overwritten.
9173
+ *
9174
+ * @param {PalletStateTrieMigrationMigrationLimits} limits
9175
+ * @param {number} realSizeUpper
9176
+ * @param {PalletStateTrieMigrationMigrationTask} witnessTask
9177
+ **/
9178
+ continueMigrate: GenericTxCall<
9179
+ Rv,
9180
+ (
9181
+ limits: PalletStateTrieMigrationMigrationLimits,
9182
+ realSizeUpper: number,
9183
+ witnessTask: PalletStateTrieMigrationMigrationTask,
9184
+ ) => ChainSubmittableExtrinsic<
9185
+ Rv,
9186
+ {
9187
+ pallet: 'StateTrieMigration';
9188
+ palletCall: {
9189
+ name: 'ContinueMigrate';
9190
+ params: {
9191
+ limits: PalletStateTrieMigrationMigrationLimits;
9192
+ realSizeUpper: number;
9193
+ witnessTask: PalletStateTrieMigrationMigrationTask;
9194
+ };
9195
+ };
9196
+ }
9197
+ >
9198
+ >;
9199
+
9200
+ /**
9201
+ * Migrate the list of top keys by iterating each of them one by one.
9202
+ *
9203
+ * This does not affect the global migration process tracker ([`MigrationProcess`]), and
9204
+ * should only be used in case any keys are leftover due to a bug.
9205
+ *
9206
+ * @param {Array<BytesLike>} keys
9207
+ * @param {number} witnessSize
9208
+ **/
9209
+ migrateCustomTop: GenericTxCall<
9210
+ Rv,
9211
+ (
9212
+ keys: Array<BytesLike>,
9213
+ witnessSize: number,
9214
+ ) => ChainSubmittableExtrinsic<
9215
+ Rv,
9216
+ {
9217
+ pallet: 'StateTrieMigration';
9218
+ palletCall: {
9219
+ name: 'MigrateCustomTop';
9220
+ params: { keys: Array<BytesLike>; witnessSize: number };
9221
+ };
9222
+ }
9223
+ >
9224
+ >;
9225
+
9226
+ /**
9227
+ * Migrate the list of child keys by iterating each of them one by one.
9228
+ *
9229
+ * All of the given child keys must be present under one `child_root`.
9230
+ *
9231
+ * This does not affect the global migration process tracker ([`MigrationProcess`]), and
9232
+ * should only be used in case any keys are leftover due to a bug.
9233
+ *
9234
+ * @param {BytesLike} root
9235
+ * @param {Array<BytesLike>} childKeys
9236
+ * @param {number} totalSize
9237
+ **/
9238
+ migrateCustomChild: GenericTxCall<
9239
+ Rv,
9240
+ (
9241
+ root: BytesLike,
9242
+ childKeys: Array<BytesLike>,
9243
+ totalSize: number,
9244
+ ) => ChainSubmittableExtrinsic<
9245
+ Rv,
9246
+ {
9247
+ pallet: 'StateTrieMigration';
9248
+ palletCall: {
9249
+ name: 'MigrateCustomChild';
9250
+ params: { root: BytesLike; childKeys: Array<BytesLike>; totalSize: number };
9251
+ };
9252
+ }
9253
+ >
9254
+ >;
9255
+
9256
+ /**
9257
+ * Set the maximum limit of the signed migration.
9258
+ *
9259
+ * @param {PalletStateTrieMigrationMigrationLimits} limits
9260
+ **/
9261
+ setSignedMaxLimits: GenericTxCall<
9262
+ Rv,
9263
+ (limits: PalletStateTrieMigrationMigrationLimits) => ChainSubmittableExtrinsic<
9264
+ Rv,
9265
+ {
9266
+ pallet: 'StateTrieMigration';
9267
+ palletCall: {
9268
+ name: 'SetSignedMaxLimits';
9269
+ params: { limits: PalletStateTrieMigrationMigrationLimits };
9270
+ };
9271
+ }
9272
+ >
9273
+ >;
9274
+
9275
+ /**
9276
+ * Forcefully set the progress the running migration.
9277
+ *
9278
+ * This is only useful in one case: the next key to migrate is too big to be migrated with
9279
+ * a signed account, in a parachain context, and we simply want to skip it. A reasonable
9280
+ * example of this would be `:code:`, which is both very expensive to migrate, and commonly
9281
+ * used, so probably it is already migrated.
9282
+ *
9283
+ * In case you mess things up, you can also, in principle, use this to reset the migration
9284
+ * process.
9285
+ *
9286
+ * @param {PalletStateTrieMigrationProgress} progressTop
9287
+ * @param {PalletStateTrieMigrationProgress} progressChild
9288
+ **/
9289
+ forceSetProgress: GenericTxCall<
9290
+ Rv,
9291
+ (
9292
+ progressTop: PalletStateTrieMigrationProgress,
9293
+ progressChild: PalletStateTrieMigrationProgress,
9294
+ ) => ChainSubmittableExtrinsic<
9295
+ Rv,
9296
+ {
9297
+ pallet: 'StateTrieMigration';
9298
+ palletCall: {
9299
+ name: 'ForceSetProgress';
9300
+ params: { progressTop: PalletStateTrieMigrationProgress; progressChild: PalletStateTrieMigrationProgress };
9072
9301
  };
9073
9302
  }
9074
9303
  >