@paraspell/sdk-core 11.6.1 → 11.7.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.
package/dist/index.mjs CHANGED
@@ -727,6 +727,11 @@ var assertAddressIsString = function assertAddressIsString(address) {
727
727
  throw new InvalidParameterError('Location address is not supported for this transfer type.');
728
728
  }
729
729
  };
730
+ var assertSenderAddress = function assertSenderAddress(address) {
731
+ if (!address) {
732
+ throw new InvalidParameterError('Sender address parameter is required for this transfer.');
733
+ }
734
+ };
730
735
  var assertHasLocation = function assertHasLocation(asset) {
731
736
  if (!asset.location) {
732
737
  throw new InvalidCurrencyError("Asset ".concat(JSON.stringify(asset, replaceBigInt), " is missing location"));
@@ -824,7 +829,7 @@ var sortAssets = function sortAssets(assets) {
824
829
  var isConfig = function isConfig(value) {
825
830
  return _typeof(value) === 'object' && value !== null && !Array.isArray(value) && (
826
831
  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
827
- Object.keys(value).length < 3 || 'apiOverrides' in value || 'development' in value || 'abstractDecimals' in value);
832
+ Object.keys(value).length < 3 || 'apiOverrides' in value || 'development' in value || 'abstractDecimals' in value || 'xcmFormatCheck' in value);
828
833
  };
829
834
 
830
835
  /**
@@ -3553,12 +3558,7 @@ var handleExecuteTransfer = /*#__PURE__*/function () {
3553
3558
  while (1) switch (_context.n) {
3554
3559
  case 0:
3555
3560
  api = options.api, senderAddress = options.senderAddress, paraIdTo = options.paraIdTo, assetInfo = options.assetInfo, currency = options.currency, feeCurrency = options.feeCurrency, address = options.address, feeAssetInfo = options.feeAssetInfo, version = options.version;
3556
- if (senderAddress) {
3557
- _context.n = 1;
3558
- break;
3559
- }
3560
- throw new InvalidParameterError('Please provide senderAddress');
3561
- case 1:
3561
+ assertSenderAddress(senderAddress);
3562
3562
  assertAddressIsString(address);
3563
3563
  checkAmount = function checkAmount(fee) {
3564
3564
  if (assetInfo.amount <= fee) {
@@ -3589,7 +3589,7 @@ var handleExecuteTransfer = /*#__PURE__*/function () {
3589
3589
  reserveFee: MIN_FEE
3590
3590
  }
3591
3591
  })), MAX_WEIGHT);
3592
- _context.n = 2;
3592
+ _context.n = 1;
3593
3593
  return dryRunInternal({
3594
3594
  api: api,
3595
3595
  tx: api.callTxMethod(call),
@@ -3601,14 +3601,14 @@ var handleExecuteTransfer = /*#__PURE__*/function () {
3601
3601
  feeAsset: feeCurrency,
3602
3602
  useRootOrigin: true
3603
3603
  });
3604
- case 2:
3604
+ case 1:
3605
3605
  dryRunResult = _context.v;
3606
3606
  if (dryRunResult.origin.success) {
3607
- _context.n = 3;
3607
+ _context.n = 2;
3608
3608
  break;
3609
3609
  }
3610
3610
  throw new DryRunFailedError(dryRunResult.failureReason);
3611
- case 3:
3611
+ case 2:
3612
3612
  originFeeEstimate = dryRunResult.origin.fee;
3613
3613
  originFee = padFeeBy(originFeeEstimate, FEE_PADDING_PERCENTAGE$2);
3614
3614
  reserveFeeEstimate = getReserveFeeFromHops(dryRunResult.hops);
@@ -3620,9 +3620,9 @@ var handleExecuteTransfer = /*#__PURE__*/function () {
3620
3620
  reserveFee: reserveFee
3621
3621
  }
3622
3622
  }));
3623
- _context.n = 4;
3623
+ _context.n = 3;
3624
3624
  return api.getXcmWeight(xcm);
3625
- case 4:
3625
+ case 3:
3626
3626
  weight = _context.v;
3627
3627
  return _context.a(2, createExecuteCall(chain, xcm, weight));
3628
3628
  }
@@ -3660,7 +3660,7 @@ var getReverseTxFee = /*#__PURE__*/function () {
3660
3660
  _context.n = 1;
3661
3661
  return Builder(api).from(destination).to(origin).address(toAddress).senderAddress(fromAddress).currency(_objectSpread2(_objectSpread2({}, currencyInput), {}, {
3662
3662
  amount: currency.amount
3663
- })).build();
3663
+ }))['buildInternal']();
3664
3664
  case 1:
3665
3665
  tx = _context.v;
3666
3666
  _context.n = 2;
@@ -4153,7 +4153,7 @@ var getOriginFeeDetailsInternal = /*#__PURE__*/function () {
4153
4153
  return api.init(origin);
4154
4154
  case 1:
4155
4155
  _context.n = 2;
4156
- return Builder(api).from(origin).to(destination).currency(currency).address(accountDestination).senderAddress(account).ahAddress(ahAddress).build();
4156
+ return Builder(api).from(origin).to(destination).currency(currency).address(accountDestination).senderAddress(account).ahAddress(ahAddress)['buildInternal']();
4157
4157
  case 2:
4158
4158
  tx = _context.v;
4159
4159
  _context.n = 3;
@@ -4695,9 +4695,7 @@ var createCustomXcmOnDest = function createCustomXcmOnDest(_ref, origin, message
4695
4695
  throw new InvalidCurrencyError("Asset ".concat(JSON.stringify(asset, replaceBigInt), " is not a foreign asset"));
4696
4696
  }
4697
4697
  assertHasLocation(asset);
4698
- if (!senderAddress) {
4699
- throw new InvalidParameterError("Please provide senderAddress");
4700
- }
4698
+ assertSenderAddress(senderAddress);
4701
4699
  if (isChainEvm(origin) && !ahAddress) {
4702
4700
  throw new InvalidParameterError("Please provide ahAddress");
4703
4701
  }
@@ -4967,18 +4965,13 @@ var transferMoonbeamToEth = /*#__PURE__*/function () {
4967
4965
  }
4968
4966
  });
4969
4967
  senderAddress = (_signer$account = signer.account) === null || _signer$account === void 0 ? void 0 : _signer$account.address;
4970
- if (senderAddress) {
4971
- _context.n = 8;
4972
- break;
4973
- }
4974
- throw new InvalidParameterError('Unable to get sender address');
4968
+ assertSenderAddress(senderAddress);
4969
+ _context.n = 8;
4970
+ return api.init(from, TX_CLIENT_TIMEOUT_MS);
4975
4971
  case 8:
4976
4972
  _context.n = 9;
4977
- return api.init(from, TX_CLIENT_TIMEOUT_MS);
4978
- case 9:
4979
- _context.n = 10;
4980
4973
  return generateMessageId(api, senderAddress, getParaId(from), ethAsset.assetId, address, amount);
4981
- case 10:
4974
+ case 9:
4982
4975
  messageId = _context.v;
4983
4976
  customXcm = createCustomXcmOnDest({
4984
4977
  api: api,
@@ -4990,17 +4983,17 @@ var transferMoonbeamToEth = /*#__PURE__*/function () {
4990
4983
  }),
4991
4984
  version: Version.V4
4992
4985
  }, from, messageId);
4993
- _context.n = 11;
4986
+ _context.n = 10;
4994
4987
  return api.objectToHex(customXcm, 'XcmVersionedXcm');
4995
- case 11:
4988
+ case 10:
4996
4989
  customXcmOnDest = _context.v;
4997
- _context.n = 12;
4990
+ _context.n = 11;
4998
4991
  return api.createApiForChain('AssetHubPolkadot');
4999
- case 12:
4992
+ case 11:
5000
4993
  assetHubApi = _context.v;
5001
- _context.n = 13;
4994
+ _context.n = 12;
5002
4995
  return getParaEthTransferFees(assetHubApi);
5003
- case 13:
4996
+ case 12:
5004
4997
  _yield$getParaEthTran = _context.v;
5005
4998
  _yield$getParaEthTran2 = _slicedToArray(_yield$getParaEthTran, 2);
5006
4999
  bridgeFee = _yield$getParaEthTran2[0];
@@ -5015,7 +5008,7 @@ var transferMoonbeamToEth = /*#__PURE__*/function () {
5015
5008
  throw new InvalidParameterError('Input must be a valid number');
5016
5009
  }() : "0x".concat((num >>> 0).toString(16).padStart(8, '0'));
5017
5010
  }; // Execute the custom XCM message with the precompile
5018
- _context.n = 14;
5011
+ _context.n = 13;
5019
5012
  return createTx('transferAssetsUsingTypeAndThenAddress', [
5020
5013
  // This represents (1,X1(Parachain(1000)))
5021
5014
  [1, ['0x00' + numberToHex32(getParaId('AssetHubPolkadot')).slice(2)]],
@@ -5027,7 +5020,7 @@ var transferMoonbeamToEth = /*#__PURE__*/function () {
5027
5020
  0,
5028
5021
  // The TransferType corresponding to fee asset
5029
5022
  2, customXcmOnDest]);
5030
- case 14:
5023
+ case 13:
5031
5024
  tx = _context.v;
5032
5025
  return _context.a(2, tx);
5033
5026
  }
@@ -5766,13 +5759,8 @@ var handleToAhTeleport = /*#__PURE__*/function () {
5766
5759
  }
5767
5760
  throw new InvalidParameterError('Location address is not supported for this scenario');
5768
5761
  case 2:
5769
- if (senderAddress) {
5770
- _context.n = 3;
5771
- break;
5772
- }
5773
- throw new InvalidParameterError("Please provide senderAddress");
5774
- case 3:
5775
- _context.n = 4;
5762
+ assertSenderAddress(senderAddress);
5763
+ _context.n = 3;
5776
5764
  return dryRunInternal({
5777
5765
  api: api,
5778
5766
  tx: defaultTx,
@@ -5782,19 +5770,19 @@ var handleToAhTeleport = /*#__PURE__*/function () {
5782
5770
  address: address,
5783
5771
  currency: currency
5784
5772
  });
5785
- case 4:
5773
+ case 3:
5786
5774
  dryRunResult = _context.v;
5787
5775
  if (!((_dryRunResult$destina = dryRunResult.destination) !== null && _dryRunResult$destina !== void 0 && _dryRunResult$destina.success)) {
5788
- _context.n = 5;
5776
+ _context.n = 4;
5789
5777
  break;
5790
5778
  }
5791
5779
  return _context.a(2, defaultTx);
5792
- case 5:
5780
+ case 4:
5793
5781
  // If the default tx dry run failed, we need to create execute transaction
5794
5782
  dummyTx = createExecuteExchangeXcm(input, origin, MAX_WEIGHT,
5795
5783
  // Enter dummy fee values just to get the dry run to pass
5796
5784
  asset.amount, asset.amount / 2n);
5797
- _context.n = 6;
5785
+ _context.n = 5;
5798
5786
  return getXcmFee({
5799
5787
  api: api,
5800
5788
  tx: dummyTx,
@@ -5805,7 +5793,7 @@ var handleToAhTeleport = /*#__PURE__*/function () {
5805
5793
  currency: currency,
5806
5794
  disableFallback: false
5807
5795
  });
5808
- case 6:
5796
+ case 5:
5809
5797
  feeResult = _context.v;
5810
5798
  originExecutionFee = padFeeBy(feeResult.origin.fee, 20); // Pad by 20%
5811
5799
  destinationExecutionFee = padFeeBy(
@@ -6397,20 +6385,15 @@ var Parachain = /*#__PURE__*/function () {
6397
6385
  case 2:
6398
6386
  assertHasLocation(asset);
6399
6387
  assertAddressIsString(address);
6400
- if (!(senderAddress === undefined)) {
6401
- _context3.n = 3;
6402
- break;
6403
- }
6404
- throw new InvalidParameterError('Sender address is required for transfers to Ethereum');
6405
- case 3:
6388
+ assertSenderAddress(senderAddress);
6406
6389
  ethAsset = createAsset(version, asset.amount, asset.location);
6407
- _context3.n = 4;
6390
+ _context3.n = 3;
6408
6391
  return api.createApiForChain('AssetHubPolkadot');
6409
- case 4:
6392
+ case 3:
6410
6393
  ahApi = _context3.v;
6411
- _context3.n = 5;
6394
+ _context3.n = 4;
6412
6395
  return getParaEthTransferFees(ahApi);
6413
- case 5:
6396
+ case 4:
6414
6397
  _yield$getParaEthTran = _context3.v;
6415
6398
  _yield$getParaEthTran2 = _slicedToArray(_yield$getParaEthTran, 2);
6416
6399
  bridgeFee = _yield$getParaEthTran2[0];
@@ -6419,13 +6402,13 @@ var Parachain = /*#__PURE__*/function () {
6419
6402
  fee = useOnlyDepositInstruction ? PARA_TO_PARA_FEE_DOT : bridgeFee + executionFee;
6420
6403
  ethAssetInfo = findAssetInfoByLoc(getOtherAssets('Ethereum'), asset.location);
6421
6404
  if (ethAssetInfo) {
6422
- _context3.n = 6;
6405
+ _context3.n = 5;
6423
6406
  break;
6424
6407
  }
6425
6408
  throw new InvalidCurrencyError("Could not obtain Ethereum asset address for ".concat(JSON.stringify(asset, replaceBigInt)));
6426
- case 6:
6409
+ case 5:
6427
6410
  if (!useOnlyDepositInstruction) {
6428
- _context3.n = 7;
6411
+ _context3.n = 6;
6429
6412
  break;
6430
6413
  }
6431
6414
  customXcmOnDest = addXcmVersionHeader([{
@@ -6442,16 +6425,16 @@ var Parachain = /*#__PURE__*/function () {
6442
6425
  })
6443
6426
  }
6444
6427
  }], version);
6445
- _context3.n = 9;
6428
+ _context3.n = 8;
6446
6429
  break;
6447
- case 7:
6430
+ case 6:
6448
6431
  assertHasId(ethAssetInfo);
6449
- _context3.n = 8;
6432
+ _context3.n = 7;
6450
6433
  return generateMessageId(api, senderAddress, getParaId(this.chain), ethAssetInfo.assetId, address, asset.amount);
6451
- case 8:
6434
+ case 7:
6452
6435
  messageId = _context3.v;
6453
6436
  customXcmOnDest = createCustomXcmOnDest(input, this.chain, messageId);
6454
- case 9:
6437
+ case 8:
6455
6438
  call = {
6456
6439
  module: 'PolkadotXcm',
6457
6440
  method: 'transfer_assets_using_type_and_then',
@@ -6864,23 +6847,18 @@ var AssetHubPolkadot = /*#__PURE__*/function (_Parachain) {
6864
6847
  }
6865
6848
  throw new BridgeHaltedError();
6866
6849
  case 2:
6867
- if (!(senderAddress === undefined)) {
6868
- _context.n = 3;
6869
- break;
6870
- }
6871
- throw new InvalidParameterError('Sender address is required for transfers to Ethereum');
6872
- case 3:
6850
+ assertSenderAddress(senderAddress);
6873
6851
  if (!isTLocation(address)) {
6874
- _context.n = 4;
6852
+ _context.n = 3;
6875
6853
  break;
6876
6854
  }
6877
6855
  throw new InvalidParameterError('Location address is not supported for Ethereum transfers');
6878
- case 4:
6856
+ case 3:
6879
6857
  assertIsForeign(asset);
6880
6858
  assertHasLocation(asset);
6881
- _context.n = 5;
6859
+ _context.n = 4;
6882
6860
  return generateMessageId(api, senderAddress, getParaId(this.chain), JSON.stringify(asset.location), address, asset.amount);
6883
- case 5:
6861
+ case 4:
6884
6862
  messageId = _context.v;
6885
6863
  location = asset.symbol === this.getNativeAssetSymbol() ? DOT_LOCATION : asset.location;
6886
6864
  call = {
@@ -8826,43 +8804,38 @@ var createTypeAndThenTransfer = /*#__PURE__*/function () {
8826
8804
  api = options.api, asset = options.assetInfo, senderAddress = options.senderAddress, address = options.address, destination = options.destination;
8827
8805
  assertHasLocation(asset);
8828
8806
  assertAddressIsString(address);
8829
- if (senderAddress) {
8830
- _context.n = 1;
8831
- break;
8832
- }
8833
- throw new InvalidCurrencyError("Sender address is required for Mythos transfer");
8834
- case 1:
8807
+ assertSenderAddress(senderAddress);
8835
8808
  if (!(!isForeignAsset(asset) || !asset.assetId)) {
8836
- _context.n = 2;
8809
+ _context.n = 1;
8837
8810
  break;
8838
8811
  }
8839
8812
  throw new InvalidCurrencyError("Asset ".concat(JSON.stringify(asset, replaceBigInt), " is not a foreign asset"));
8840
- case 2:
8841
- _context.n = 3;
8813
+ case 1:
8814
+ _context.n = 2;
8842
8815
  return generateMessageId(api, senderAddress, getParaId(chain), asset.assetId, address, asset.amount);
8843
- case 3:
8816
+ case 2:
8844
8817
  messageId = _context.v;
8845
8818
  ahApi = api.clone();
8846
- _context.n = 4;
8819
+ _context.n = 3;
8847
8820
  return ahApi.init('AssetHubPolkadot');
8848
- case 4:
8849
- _context.n = 5;
8821
+ case 3:
8822
+ _context.n = 4;
8850
8823
  return getParaEthTransferFees(ahApi);
8851
- case 5:
8824
+ case 4:
8852
8825
  _yield$getParaEthTran = _context.v;
8853
8826
  _yield$getParaEthTran2 = _slicedToArray(_yield$getParaEthTran, 2);
8854
8827
  bridgeFee = _yield$getParaEthTran2[0];
8855
8828
  ahExecutionFee = _yield$getParaEthTran2[1];
8856
- _context.n = 6;
8829
+ _context.n = 5;
8857
8830
  return ahApi.quoteAhPrice(DOT_LOCATION, getNativeAssets(chain)[0].location, bridgeFee + ahExecutionFee);
8858
- case 6:
8831
+ case 5:
8859
8832
  feeConverted = _context.v;
8860
8833
  if (feeConverted) {
8861
- _context.n = 7;
8834
+ _context.n = 6;
8862
8835
  break;
8863
8836
  }
8864
8837
  throw new InvalidParameterError("Pool DOT -> ".concat(asset.symbol, " not found."));
8865
- case 7:
8838
+ case 6:
8866
8839
  nativeMythAmount = padFeeBy(feeConverted, 10);
8867
8840
  return _context.a(2, {
8868
8841
  module: 'PolkadotXcm',
@@ -11666,7 +11639,7 @@ var getMinTransferableAmountInternal = /*#__PURE__*/function () {
11666
11639
  _t = dryRunInternal;
11667
11640
  _t2 = api;
11668
11641
  _context.n = 4;
11669
- return modifiedBuilder.build();
11642
+ return modifiedBuilder['buildInternal']();
11670
11643
  case 4:
11671
11644
  _t3 = _context.v;
11672
11645
  _t4 = chain;
@@ -11853,7 +11826,7 @@ var buildTypeAndThenCall = function buildTypeAndThenCall(_ref, isDotAsset, custo
11853
11826
  };
11854
11827
 
11855
11828
  var FEE_PADDING_PERCENTAGE = 20;
11856
- var FEE_PADDING_HYDRATION = 150;
11829
+ var FEE_PADDING_HYDRATION = 500;
11857
11830
  var computeInstructionFee = /*#__PURE__*/function () {
11858
11831
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(_ref, version, xcm) {
11859
11832
  var chain, api, _t;
@@ -12652,45 +12625,116 @@ var GeneralBuilder = /*#__PURE__*/function () {
12652
12625
  return _buildBatch.apply(this, arguments);
12653
12626
  }
12654
12627
  return buildBatch;
12655
- }()
12628
+ }())
12629
+ }, {
12630
+ key: "buildInternal",
12631
+ value: function buildInternal() {
12632
+ return this.buildCommon(true);
12633
+ }
12656
12634
  /**
12657
12635
  * Builds and returns the transfer extrinsic.
12658
12636
  *
12659
12637
  * @returns A Promise that resolves to the transfer extrinsic.
12660
12638
  */
12661
- )
12662
12639
  }, {
12663
12640
  key: "build",
12664
12641
  value: (function () {
12665
12642
  var _build = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
12666
- var _this$_options, from, to;
12667
12643
  return _regenerator().w(function (_context2) {
12668
12644
  while (1) switch (_context2.n) {
12669
12645
  case 0:
12646
+ return _context2.a(2, this.buildCommon());
12647
+ }
12648
+ }, _callee2, this);
12649
+ }));
12650
+ function build() {
12651
+ return _build.apply(this, arguments);
12652
+ }
12653
+ return build;
12654
+ }())
12655
+ }, {
12656
+ key: "buildCommon",
12657
+ value: function () {
12658
+ var _buildCommon = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
12659
+ var isCalledInternally,
12660
+ _this$_options,
12661
+ from,
12662
+ to,
12663
+ tx,
12664
+ _args3 = arguments;
12665
+ return _regenerator().w(function (_context3) {
12666
+ while (1) switch (_context3.n) {
12667
+ case 0:
12668
+ isCalledInternally = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : false;
12670
12669
  if (this.batchManager.isEmpty()) {
12671
- _context2.n = 1;
12670
+ _context3.n = 1;
12672
12671
  break;
12673
12672
  }
12674
12673
  throw new InvalidParameterError('Transaction manager contains batched items. Use buildBatch() to process them.');
12675
12674
  case 1:
12676
12675
  _this$_options = this._options, from = _this$_options.from, to = _this$_options.to;
12677
12676
  if (!(!isTLocation(to) && isRelayChain(from) && isRelayChain(to) && from !== to)) {
12678
- _context2.n = 2;
12677
+ _context3.n = 2;
12679
12678
  break;
12680
12679
  }
12681
12680
  throw new InvalidParameterError('Transfers between relay chains are not yet supported.');
12682
12681
  case 2:
12683
- return _context2.a(2, send(_objectSpread2({
12682
+ _context3.n = 3;
12683
+ return send(_objectSpread2({
12684
12684
  api: this.api
12685
- }, this._options)));
12685
+ }, this._options));
12686
+ case 3:
12687
+ tx = _context3.v;
12688
+ _context3.n = 4;
12689
+ return this.maybePerformXcmFormatCheck(tx, this._options, isCalledInternally);
12690
+ case 4:
12691
+ return _context3.a(2, tx);
12686
12692
  }
12687
- }, _callee2, this);
12693
+ }, _callee3, this);
12688
12694
  }));
12689
- function build() {
12690
- return _build.apply(this, arguments);
12695
+ function buildCommon() {
12696
+ return _buildCommon.apply(this, arguments);
12691
12697
  }
12692
- return build;
12693
- }())
12698
+ return buildCommon;
12699
+ }()
12700
+ }, {
12701
+ key: "maybePerformXcmFormatCheck",
12702
+ value: function () {
12703
+ var _maybePerformXcmFormatCheck = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(tx, options, isCalledInternally) {
12704
+ var senderAddress, config, dryRunResult;
12705
+ return _regenerator().w(function (_context4) {
12706
+ while (1) switch (_context4.n) {
12707
+ case 0:
12708
+ senderAddress = options.senderAddress;
12709
+ config = this.api.getConfig();
12710
+ if (!(isConfig(config) && config.xcmFormatCheck && !isCalledInternally)) {
12711
+ _context4.n = 2;
12712
+ break;
12713
+ }
12714
+ assertSenderAddress(senderAddress);
12715
+ _context4.n = 1;
12716
+ return buildDryRun(this.api, tx, _objectSpread2(_objectSpread2({}, options), {}, {
12717
+ senderAddress: senderAddress
12718
+ }), {
12719
+ sentAssetMintMode: 'bypass'
12720
+ });
12721
+ case 1:
12722
+ dryRunResult = _context4.v;
12723
+ if (!dryRunResult.failureReason) {
12724
+ _context4.n = 2;
12725
+ break;
12726
+ }
12727
+ throw new DryRunFailedError(dryRunResult.failureReason, dryRunResult.failureChain);
12728
+ case 2:
12729
+ return _context4.a(2);
12730
+ }
12731
+ }, _callee4, this);
12732
+ }));
12733
+ function maybePerformXcmFormatCheck(_x2, _x3, _x4) {
12734
+ return _maybePerformXcmFormatCheck.apply(this, arguments);
12735
+ }
12736
+ return maybePerformXcmFormatCheck;
12737
+ }()
12694
12738
  }, {
12695
12739
  key: "computeOverridenAmount",
12696
12740
  value: function computeOverridenAmount() {
@@ -12714,23 +12758,23 @@ var GeneralBuilder = /*#__PURE__*/function () {
12714
12758
  var modifiedBuilder = this.currency(_objectSpread2(_objectSpread2({}, currency), {}, {
12715
12759
  amount: this.computeOverridenAmount()
12716
12760
  }));
12717
- return modifiedBuilder.build();
12761
+ return modifiedBuilder.buildInternal();
12718
12762
  }
12719
12763
  }, {
12720
12764
  key: "dryRun",
12721
12765
  value: function () {
12722
- var _dryRun = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
12766
+ var _dryRun = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5() {
12723
12767
  var tx;
12724
- return _regenerator().w(function (_context3) {
12725
- while (1) switch (_context3.n) {
12768
+ return _regenerator().w(function (_context5) {
12769
+ while (1) switch (_context5.n) {
12726
12770
  case 0:
12727
- _context3.n = 1;
12728
- return this.build();
12771
+ _context5.n = 1;
12772
+ return this.buildInternal();
12729
12773
  case 1:
12730
- tx = _context3.v;
12731
- return _context3.a(2, buildDryRun(this.api, tx, this._options));
12774
+ tx = _context5.v;
12775
+ return _context5.a(2, buildDryRun(this.api, tx, this._options));
12732
12776
  }
12733
- }, _callee3, this);
12777
+ }, _callee5, this);
12734
12778
  }));
12735
12779
  function dryRun() {
12736
12780
  return _dryRun.apply(this, arguments);
@@ -12740,23 +12784,23 @@ var GeneralBuilder = /*#__PURE__*/function () {
12740
12784
  }, {
12741
12785
  key: "dryRunPreview",
12742
12786
  value: function () {
12743
- var _dryRunPreview = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(options) {
12787
+ var _dryRunPreview = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6(options) {
12744
12788
  var tx;
12745
- return _regenerator().w(function (_context4) {
12746
- while (1) switch (_context4.n) {
12789
+ return _regenerator().w(function (_context6) {
12790
+ while (1) switch (_context6.n) {
12747
12791
  case 0:
12748
- _context4.n = 1;
12749
- return this.build();
12792
+ _context6.n = 1;
12793
+ return this.buildInternal();
12750
12794
  case 1:
12751
- tx = _context4.v;
12752
- return _context4.a(2, buildDryRun(this.api, tx, this._options, {
12795
+ tx = _context6.v;
12796
+ return _context6.a(2, buildDryRun(this.api, tx, this._options, {
12753
12797
  sentAssetMintMode: 'preview',
12754
12798
  mintFeeAssets: options === null || options === void 0 ? void 0 : options.mintFeeAssets
12755
12799
  }));
12756
12800
  }
12757
- }, _callee4, this);
12801
+ }, _callee6, this);
12758
12802
  }));
12759
- function dryRunPreview(_x2) {
12803
+ function dryRunPreview(_x5) {
12760
12804
  return _dryRunPreview.apply(this, arguments);
12761
12805
  }
12762
12806
  return dryRunPreview;
@@ -12769,22 +12813,22 @@ var GeneralBuilder = /*#__PURE__*/function () {
12769
12813
  }, {
12770
12814
  key: "getXcmFee",
12771
12815
  value: (function () {
12772
- var _getXcmFee2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5(options) {
12816
+ var _getXcmFee2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7(options) {
12773
12817
  var _options$disableFallb;
12774
12818
  var _this$_options3, from, to, address, senderAddress, feeAsset, currency, tx, disableFallback;
12775
- return _regenerator().w(function (_context5) {
12776
- while (1) switch (_context5.p = _context5.n) {
12819
+ return _regenerator().w(function (_context7) {
12820
+ while (1) switch (_context7.p = _context7.n) {
12777
12821
  case 0:
12778
12822
  _this$_options3 = this._options, from = _this$_options3.from, to = _this$_options3.to, address = _this$_options3.address, senderAddress = _this$_options3.senderAddress, feeAsset = _this$_options3.feeAsset, currency = _this$_options3.currency;
12779
12823
  assertToIsString(to);
12780
12824
  assertAddressIsString(address);
12781
- _context5.n = 1;
12825
+ _context7.n = 1;
12782
12826
  return this.overrideTxAmount();
12783
12827
  case 1:
12784
- tx = _context5.v;
12828
+ tx = _context7.v;
12785
12829
  disableFallback = (_options$disableFallb = options === null || options === void 0 ? void 0 : options.disableFallback) !== null && _options$disableFallb !== void 0 ? _options$disableFallb : false;
12786
- _context5.p = 2;
12787
- _context5.n = 3;
12830
+ _context7.p = 2;
12831
+ _context7.n = 3;
12788
12832
  return getXcmFee({
12789
12833
  api: this.api,
12790
12834
  tx: tx,
@@ -12797,19 +12841,19 @@ var GeneralBuilder = /*#__PURE__*/function () {
12797
12841
  disableFallback: disableFallback
12798
12842
  });
12799
12843
  case 3:
12800
- return _context5.a(2, _context5.v);
12844
+ return _context7.a(2, _context7.v);
12801
12845
  case 4:
12802
- _context5.p = 4;
12803
- _context5.n = 5;
12846
+ _context7.p = 4;
12847
+ _context7.n = 5;
12804
12848
  return this.api.disconnect();
12805
12849
  case 5:
12806
- return _context5.f(4);
12850
+ return _context7.f(4);
12807
12851
  case 6:
12808
- return _context5.a(2);
12852
+ return _context7.a(2);
12809
12853
  }
12810
- }, _callee5, this, [[2,, 4, 6]]);
12854
+ }, _callee7, this, [[2,, 4, 6]]);
12811
12855
  }));
12812
- function getXcmFee$1(_x3) {
12856
+ function getXcmFee$1(_x6) {
12813
12857
  return _getXcmFee2.apply(this, arguments);
12814
12858
  }
12815
12859
  return getXcmFee$1;
@@ -12823,7 +12867,7 @@ var GeneralBuilder = /*#__PURE__*/function () {
12823
12867
  }, {
12824
12868
  key: "getOriginXcmFee",
12825
12869
  value: (function () {
12826
- var _getOriginXcmFee2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6() {
12870
+ var _getOriginXcmFee2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee8() {
12827
12871
  var _ref,
12828
12872
  disableFallback,
12829
12873
  _this$_options4,
@@ -12833,21 +12877,21 @@ var GeneralBuilder = /*#__PURE__*/function () {
12833
12877
  currency,
12834
12878
  feeAsset,
12835
12879
  tx,
12836
- _args6 = arguments;
12837
- return _regenerator().w(function (_context6) {
12838
- while (1) switch (_context6.p = _context6.n) {
12880
+ _args8 = arguments;
12881
+ return _regenerator().w(function (_context8) {
12882
+ while (1) switch (_context8.p = _context8.n) {
12839
12883
  case 0:
12840
- _ref = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {
12884
+ _ref = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {
12841
12885
  disableFallback: false
12842
12886
  }, disableFallback = _ref.disableFallback;
12843
12887
  _this$_options4 = this._options, from = _this$_options4.from, to = _this$_options4.to, senderAddress = _this$_options4.senderAddress, currency = _this$_options4.currency, feeAsset = _this$_options4.feeAsset;
12844
12888
  assertToIsString(to);
12845
- _context6.n = 1;
12889
+ _context8.n = 1;
12846
12890
  return this.overrideTxAmount();
12847
12891
  case 1:
12848
- tx = _context6.v;
12849
- _context6.p = 2;
12850
- _context6.n = 3;
12892
+ tx = _context8.v;
12893
+ _context8.p = 2;
12894
+ _context8.n = 3;
12851
12895
  return getOriginXcmFee({
12852
12896
  api: this.api,
12853
12897
  tx: tx,
@@ -12859,17 +12903,17 @@ var GeneralBuilder = /*#__PURE__*/function () {
12859
12903
  disableFallback: disableFallback
12860
12904
  });
12861
12905
  case 3:
12862
- return _context6.a(2, _context6.v);
12906
+ return _context8.a(2, _context8.v);
12863
12907
  case 4:
12864
- _context6.p = 4;
12865
- _context6.n = 5;
12908
+ _context8.p = 4;
12909
+ _context8.n = 5;
12866
12910
  return this.api.disconnect();
12867
12911
  case 5:
12868
- return _context6.f(4);
12912
+ return _context8.f(4);
12869
12913
  case 6:
12870
- return _context6.a(2);
12914
+ return _context8.a(2);
12871
12915
  }
12872
- }, _callee6, this, [[2,, 4, 6]]);
12916
+ }, _callee8, this, [[2,, 4, 6]]);
12873
12917
  }));
12874
12918
  function getOriginXcmFee$1() {
12875
12919
  return _getOriginXcmFee2.apply(this, arguments);
@@ -12885,20 +12929,20 @@ var GeneralBuilder = /*#__PURE__*/function () {
12885
12929
  }, {
12886
12930
  key: "getXcmFeeEstimate",
12887
12931
  value: (function () {
12888
- var _getXcmFeeEstimate2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7() {
12932
+ var _getXcmFeeEstimate2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee9() {
12889
12933
  var _this$_options5, from, to, address, senderAddress, currency, tx;
12890
- return _regenerator().w(function (_context7) {
12891
- while (1) switch (_context7.p = _context7.n) {
12934
+ return _regenerator().w(function (_context9) {
12935
+ while (1) switch (_context9.p = _context9.n) {
12892
12936
  case 0:
12893
12937
  _this$_options5 = this._options, from = _this$_options5.from, to = _this$_options5.to, address = _this$_options5.address, senderAddress = _this$_options5.senderAddress, currency = _this$_options5.currency;
12894
12938
  assertToIsString(to);
12895
12939
  assertAddressIsString(address);
12896
- _context7.n = 1;
12897
- return this.build();
12940
+ _context9.n = 1;
12941
+ return this.buildInternal();
12898
12942
  case 1:
12899
- tx = _context7.v;
12900
- _context7.p = 2;
12901
- _context7.n = 3;
12943
+ tx = _context9.v;
12944
+ _context9.p = 2;
12945
+ _context9.n = 3;
12902
12946
  return getXcmFeeEstimate({
12903
12947
  api: this.api,
12904
12948
  tx: tx,
@@ -12909,17 +12953,17 @@ var GeneralBuilder = /*#__PURE__*/function () {
12909
12953
  currency: currency
12910
12954
  });
12911
12955
  case 3:
12912
- return _context7.a(2, _context7.v);
12956
+ return _context9.a(2, _context9.v);
12913
12957
  case 4:
12914
- _context7.p = 4;
12915
- _context7.n = 5;
12958
+ _context9.p = 4;
12959
+ _context9.n = 5;
12916
12960
  return this.api.disconnect();
12917
12961
  case 5:
12918
- return _context7.f(4);
12962
+ return _context9.f(4);
12919
12963
  case 6:
12920
- return _context7.a(2);
12964
+ return _context9.a(2);
12921
12965
  }
12922
- }, _callee7, this, [[2,, 4, 6]]);
12966
+ }, _callee9, this, [[2,, 4, 6]]);
12923
12967
  }));
12924
12968
  function getXcmFeeEstimate$1() {
12925
12969
  return _getXcmFeeEstimate2.apply(this, arguments);
@@ -12935,19 +12979,19 @@ var GeneralBuilder = /*#__PURE__*/function () {
12935
12979
  }, {
12936
12980
  key: "getOriginXcmFeeEstimate",
12937
12981
  value: (function () {
12938
- var _getOriginXcmFeeEstimate2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee8() {
12982
+ var _getOriginXcmFeeEstimate2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee0() {
12939
12983
  var _this$_options6, from, to, senderAddress, currency, tx;
12940
- return _regenerator().w(function (_context8) {
12941
- while (1) switch (_context8.p = _context8.n) {
12984
+ return _regenerator().w(function (_context0) {
12985
+ while (1) switch (_context0.p = _context0.n) {
12942
12986
  case 0:
12943
12987
  _this$_options6 = this._options, from = _this$_options6.from, to = _this$_options6.to, senderAddress = _this$_options6.senderAddress, currency = _this$_options6.currency;
12944
12988
  assertToIsString(to);
12945
- _context8.n = 1;
12946
- return this.build();
12989
+ _context0.n = 1;
12990
+ return this.buildInternal();
12947
12991
  case 1:
12948
- tx = _context8.v;
12949
- _context8.p = 2;
12950
- _context8.n = 3;
12992
+ tx = _context0.v;
12993
+ _context0.p = 2;
12994
+ _context0.n = 3;
12951
12995
  return getOriginXcmFeeEstimate({
12952
12996
  api: this.api,
12953
12997
  tx: tx,
@@ -12957,17 +13001,17 @@ var GeneralBuilder = /*#__PURE__*/function () {
12957
13001
  senderAddress: senderAddress
12958
13002
  });
12959
13003
  case 3:
12960
- return _context8.a(2, _context8.v);
13004
+ return _context0.a(2, _context0.v);
12961
13005
  case 4:
12962
- _context8.p = 4;
12963
- _context8.n = 5;
13006
+ _context0.p = 4;
13007
+ _context0.n = 5;
12964
13008
  return this.api.disconnect();
12965
13009
  case 5:
12966
- return _context8.f(4);
13010
+ return _context0.f(4);
12967
13011
  case 6:
12968
- return _context8.a(2);
13012
+ return _context0.a(2);
12969
13013
  }
12970
- }, _callee8, this, [[2,, 4, 6]]);
13014
+ }, _callee0, this, [[2,, 4, 6]]);
12971
13015
  }));
12972
13016
  function getOriginXcmFeeEstimate$1() {
12973
13017
  return _getOriginXcmFeeEstimate2.apply(this, arguments);
@@ -12983,18 +13027,18 @@ var GeneralBuilder = /*#__PURE__*/function () {
12983
13027
  }, {
12984
13028
  key: "getTransferableAmount",
12985
13029
  value: (function () {
12986
- var _getTransferableAmount2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee9() {
13030
+ var _getTransferableAmount2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee1() {
12987
13031
  var _this$_options7, from, to, senderAddress, currency, feeAsset, tx;
12988
- return _regenerator().w(function (_context9) {
12989
- while (1) switch (_context9.n) {
13032
+ return _regenerator().w(function (_context1) {
13033
+ while (1) switch (_context1.n) {
12990
13034
  case 0:
12991
13035
  _this$_options7 = this._options, from = _this$_options7.from, to = _this$_options7.to, senderAddress = _this$_options7.senderAddress, currency = _this$_options7.currency, feeAsset = _this$_options7.feeAsset;
12992
13036
  assertToIsString(to);
12993
- _context9.n = 1;
13037
+ _context1.n = 1;
12994
13038
  return this.overrideTxAmount();
12995
13039
  case 1:
12996
- tx = _context9.v;
12997
- return _context9.a(2, getTransferableAmount({
13040
+ tx = _context1.v;
13041
+ return _context1.a(2, getTransferableAmount({
12998
13042
  api: this.api,
12999
13043
  tx: tx,
13000
13044
  origin: from,
@@ -13004,7 +13048,7 @@ var GeneralBuilder = /*#__PURE__*/function () {
13004
13048
  currency: currency
13005
13049
  }));
13006
13050
  }
13007
- }, _callee9, this);
13051
+ }, _callee1, this);
13008
13052
  }));
13009
13053
  function getTransferableAmount$1() {
13010
13054
  return _getTransferableAmount2.apply(this, arguments);
@@ -13020,19 +13064,19 @@ var GeneralBuilder = /*#__PURE__*/function () {
13020
13064
  }, {
13021
13065
  key: "getMinTransferableAmount",
13022
13066
  value: (function () {
13023
- var _getMinTransferableAmount2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee0() {
13067
+ var _getMinTransferableAmount2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee10() {
13024
13068
  var _this$_options8, from, to, senderAddress, address, currency, feeAsset, tx;
13025
- return _regenerator().w(function (_context0) {
13026
- while (1) switch (_context0.n) {
13069
+ return _regenerator().w(function (_context10) {
13070
+ while (1) switch (_context10.n) {
13027
13071
  case 0:
13028
13072
  _this$_options8 = this._options, from = _this$_options8.from, to = _this$_options8.to, senderAddress = _this$_options8.senderAddress, address = _this$_options8.address, currency = _this$_options8.currency, feeAsset = _this$_options8.feeAsset;
13029
13073
  assertToIsString(to);
13030
13074
  assertAddressIsString(address);
13031
- _context0.n = 1;
13075
+ _context10.n = 1;
13032
13076
  return this.overrideTxAmount();
13033
13077
  case 1:
13034
- tx = _context0.v;
13035
- return _context0.a(2, getMinTransferableAmount({
13078
+ tx = _context10.v;
13079
+ return _context10.a(2, getMinTransferableAmount({
13036
13080
  api: this.api,
13037
13081
  tx: tx,
13038
13082
  origin: from,
@@ -13044,7 +13088,7 @@ var GeneralBuilder = /*#__PURE__*/function () {
13044
13088
  builder: this
13045
13089
  }));
13046
13090
  }
13047
- }, _callee0, this);
13091
+ }, _callee10, this);
13048
13092
  }));
13049
13093
  function getMinTransferableAmount$1() {
13050
13094
  return _getMinTransferableAmount2.apply(this, arguments);
@@ -13060,19 +13104,19 @@ var GeneralBuilder = /*#__PURE__*/function () {
13060
13104
  }, {
13061
13105
  key: "verifyEdOnDestination",
13062
13106
  value: (function () {
13063
- var _verifyEdOnDestination2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee1() {
13107
+ var _verifyEdOnDestination2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee11() {
13064
13108
  var _this$_options9, from, to, address, currency, senderAddress, feeAsset, tx;
13065
- return _regenerator().w(function (_context1) {
13066
- while (1) switch (_context1.n) {
13109
+ return _regenerator().w(function (_context11) {
13110
+ while (1) switch (_context11.n) {
13067
13111
  case 0:
13068
13112
  _this$_options9 = this._options, from = _this$_options9.from, to = _this$_options9.to, address = _this$_options9.address, currency = _this$_options9.currency, senderAddress = _this$_options9.senderAddress, feeAsset = _this$_options9.feeAsset;
13069
13113
  assertToIsString(to);
13070
13114
  assertAddressIsString(address);
13071
- _context1.n = 1;
13115
+ _context11.n = 1;
13072
13116
  return this.overrideTxAmount();
13073
13117
  case 1:
13074
- tx = _context1.v;
13075
- return _context1.a(2, verifyEdOnDestination({
13118
+ tx = _context11.v;
13119
+ return _context11.a(2, verifyEdOnDestination({
13076
13120
  api: this.api,
13077
13121
  tx: tx,
13078
13122
  origin: from,
@@ -13083,7 +13127,7 @@ var GeneralBuilder = /*#__PURE__*/function () {
13083
13127
  currency: currency
13084
13128
  }));
13085
13129
  }
13086
- }, _callee1, this);
13130
+ }, _callee11, this);
13087
13131
  }));
13088
13132
  function verifyEdOnDestination$1() {
13089
13133
  return _verifyEdOnDestination2.apply(this, arguments);
@@ -13099,19 +13143,19 @@ var GeneralBuilder = /*#__PURE__*/function () {
13099
13143
  }, {
13100
13144
  key: "getTransferInfo",
13101
13145
  value: (function () {
13102
- var _getTransferInfo2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee10() {
13146
+ var _getTransferInfo2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee12() {
13103
13147
  var _this$_options0, from, to, address, currency, ahAddress, senderAddress, feeAsset, tx;
13104
- return _regenerator().w(function (_context10) {
13105
- while (1) switch (_context10.n) {
13148
+ return _regenerator().w(function (_context12) {
13149
+ while (1) switch (_context12.n) {
13106
13150
  case 0:
13107
13151
  _this$_options0 = this._options, from = _this$_options0.from, to = _this$_options0.to, address = _this$_options0.address, currency = _this$_options0.currency, ahAddress = _this$_options0.ahAddress, senderAddress = _this$_options0.senderAddress, feeAsset = _this$_options0.feeAsset;
13108
13152
  assertToIsString(to);
13109
13153
  assertAddressIsString(address);
13110
- _context10.n = 1;
13154
+ _context12.n = 1;
13111
13155
  return this.overrideTxAmount();
13112
13156
  case 1:
13113
- tx = _context10.v;
13114
- return _context10.a(2, getTransferInfo({
13157
+ tx = _context12.v;
13158
+ return _context12.a(2, getTransferInfo({
13115
13159
  api: this.api,
13116
13160
  tx: tx,
13117
13161
  origin: from,
@@ -13123,7 +13167,7 @@ var GeneralBuilder = /*#__PURE__*/function () {
13123
13167
  feeAsset: feeAsset
13124
13168
  }));
13125
13169
  }
13126
- }, _callee10, this);
13170
+ }, _callee12, this);
13127
13171
  }));
13128
13172
  function getTransferInfo$1() {
13129
13173
  return _getTransferInfo2.apply(this, arguments);
@@ -13163,4 +13207,4 @@ var Builder = function Builder(api) {
13163
13207
  return new GeneralBuilder(api, new BatchTransactionManager());
13164
13208
  };
13165
13209
 
13166
- export { AmountTooLowError, AssetClaimBuilder, AssetsPallet, BatchMode, BridgeHaltedError, Builder, ChainNotSupportedError, DRY_RUN_CLIENT_TIMEOUT_MS, DryRunFailedError, ETHEREUM_JUNCTION, ETH_CHAIN_ID, GeneralBuilder, IncompatibleChainsError, InvalidAddressError, InvalidParameterError, MissingChainApiError, NoXCMSupportImplementedError, PolkadotXcmError, ScenarioNotSupportedError, TX_CLIENT_TIMEOUT_MS, TransferToAhNotSupported, UnableToComputeError, XTokensError, abstractDecimals, addEthereumBridgeFees, addXcmVersionHeader, applyDecimalAbstraction, assertAddressIsString, assertHasId, assertHasLocation, assertIsForeign, assertToIsString, blake2b256, blake2b512, calcPreviewMintAmount, claimAssets, computeFeeFromDryRun, computeFeeFromDryRunPjs, convertSs58, createAsset, createAssetsFilter, createBaseExecuteXcm, createBeneficiaryLocXTokens, createBeneficiaryLocation, createChainClient, createDirectExecuteXcm, createExecuteCall, createExecuteExchangeXcm, createTypeAndThenCall, createVersionedAssets, createX1Payload, deriveAccountId, dryRun, dryRunInternal, dryRunOrigin, encodeSs58, getAssetBalance, getAssetBalanceInternal, getAssetReserveChain, getBalanceForeign, getBalanceForeignInternal, getBalanceNative, getBalanceNativeInternal, getBridgeStatus, getChain, getChainConfig, getChainLocation, getChainProviders, getChainVersion, getCurrencySelection, getMinTransferableAmount, getMinTransferableAmountInternal, getOriginFeeDetails, getOriginFeeDetailsInternal, getOriginXcmFee, getOriginXcmFeeEstimate, getOriginXcmFeeInternal, getParaEthTransferFees, getParaId, getRelayChainOf, getTChain, getTransferInfo, getTransferableAmount, getTransferableAmountInternal, getXcmFee, getXcmFeeEstimate, handleExecuteTransfer, handleSwapExecuteTransfer, handleToAhTeleport, isConfig, localizeLocation, maybeOverrideAsset, maybeOverrideAssets, padFee, padFeeBy, resolveDestChain, resolveModuleError, resolveParaId, reverseTransformLocation, send, sortAssets, transferMoonbeamEvm, transferMoonbeamToEth, transferRelayToPara, traverseXcmHops, validateAddress, verifyEdOnDestination, wrapTxBypass };
13210
+ export { AmountTooLowError, AssetClaimBuilder, AssetsPallet, BatchMode, BridgeHaltedError, Builder, ChainNotSupportedError, DRY_RUN_CLIENT_TIMEOUT_MS, DryRunFailedError, ETHEREUM_JUNCTION, ETH_CHAIN_ID, GeneralBuilder, IncompatibleChainsError, InvalidAddressError, InvalidParameterError, MissingChainApiError, NoXCMSupportImplementedError, PolkadotXcmError, ScenarioNotSupportedError, TX_CLIENT_TIMEOUT_MS, TransferToAhNotSupported, UnableToComputeError, XTokensError, abstractDecimals, addEthereumBridgeFees, addXcmVersionHeader, applyDecimalAbstraction, assertAddressIsString, assertHasId, assertHasLocation, assertIsForeign, assertSenderAddress, assertToIsString, blake2b256, blake2b512, calcPreviewMintAmount, claimAssets, computeFeeFromDryRun, computeFeeFromDryRunPjs, convertSs58, createAsset, createAssetsFilter, createBaseExecuteXcm, createBeneficiaryLocXTokens, createBeneficiaryLocation, createChainClient, createDirectExecuteXcm, createExecuteCall, createExecuteExchangeXcm, createTypeAndThenCall, createVersionedAssets, createX1Payload, deriveAccountId, dryRun, dryRunInternal, dryRunOrigin, encodeSs58, getAssetBalance, getAssetBalanceInternal, getAssetReserveChain, getBalanceForeign, getBalanceForeignInternal, getBalanceNative, getBalanceNativeInternal, getBridgeStatus, getChain, getChainConfig, getChainLocation, getChainProviders, getChainVersion, getCurrencySelection, getMinTransferableAmount, getMinTransferableAmountInternal, getOriginFeeDetails, getOriginFeeDetailsInternal, getOriginXcmFee, getOriginXcmFeeEstimate, getOriginXcmFeeInternal, getParaEthTransferFees, getParaId, getRelayChainOf, getTChain, getTransferInfo, getTransferableAmount, getTransferableAmountInternal, getXcmFee, getXcmFeeEstimate, handleExecuteTransfer, handleSwapExecuteTransfer, handleToAhTeleport, isConfig, localizeLocation, maybeOverrideAsset, maybeOverrideAssets, padFee, padFeeBy, resolveDestChain, resolveModuleError, resolveParaId, reverseTransformLocation, send, sortAssets, transferMoonbeamEvm, transferMoonbeamToEth, transferRelayToPara, traverseXcmHops, validateAddress, verifyEdOnDestination, wrapTxBypass };