@paraspell/sdk-core 11.7.0 → 11.7.2

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
@@ -1,5 +1,5 @@
1
1
  import { blake2b } from '@noble/hashes/blake2';
2
- import { isChainEvm, getAssetsObject, InvalidCurrencyError, isForeignAsset, extractAssetLocation, getNativeAssetSymbol, getOtherAssets, isAssetEqual, findAssetInfo, isTAsset, findAssetInfoOrThrow, getExistentialDeposit, getExistentialDepositOrThrow, isSymbolMatch, hasDryRunSupport, isOverrideLocationSpecifier, findAssetInfoByLoc, findAssetOnDestOrThrow, findNativeAssetInfoOrThrow, Native, hasXcmPaymentApiSupport, getRelayChainSymbol, getNativeAssets, findNativeAssetInfo, isAssetXcEqual, hasSupportForAsset, isSymbolSpecifier, normalizeLocation, getEdFromAssetOrThrow, normalizeSymbol } from '@paraspell/assets';
2
+ import { isChainEvm, getAssetsObject, InvalidCurrencyError, isForeignAsset, extractAssetLocation, findAssetInfoOrThrow, getNativeAssetSymbol, getOtherAssets, isAssetEqual, findAssetInfo, isTAsset, getExistentialDeposit, getExistentialDepositOrThrow, isSymbolMatch, hasDryRunSupport, isOverrideLocationSpecifier, findAssetInfoByLoc, findAssetOnDestOrThrow, findNativeAssetInfoOrThrow, Native, hasXcmPaymentApiSupport, getRelayChainSymbol, getNativeAssets, findNativeAssetInfo, isAssetXcEqual, hasSupportForAsset, isSymbolSpecifier, normalizeLocation, getEdFromAssetOrThrow, normalizeSymbol } from '@paraspell/assets';
3
3
  export * from '@paraspell/assets';
4
4
  import { base58 } from '@scure/base';
5
5
  import { isAddress, parseUnits, createPublicClient, http, getContract, pad, toHex, getAddress, concat, keccak256 } from 'viem';
@@ -832,6 +832,52 @@ var isConfig = function isConfig(value) {
832
832
  Object.keys(value).length < 3 || 'apiOverrides' in value || 'development' in value || 'abstractDecimals' in value || 'xcmFormatCheck' in value);
833
833
  };
834
834
 
835
+ var computeOverridenAmount = function computeOverridenAmount(options) {
836
+ var from = options.from,
837
+ to = options.to,
838
+ currency = options.currency,
839
+ api = options.api;
840
+ var config = api.getConfig();
841
+ if (isConfig(config) && config.abstractDecimals) {
842
+ return BYPASS_CURRENCY_AMOUNT;
843
+ } else {
844
+ assertToIsString(to);
845
+ var asset = findAssetInfoOrThrow(from, currency, to);
846
+ return parseUnits(BYPASS_CURRENCY_AMOUNT, asset.decimals);
847
+ }
848
+ };
849
+ var overrideTxAmount = function overrideTxAmount(options, builder) {
850
+ var modifiedBuilder = builder.currency(_objectSpread2(_objectSpread2({}, options.currency), {}, {
851
+ amount: computeOverridenAmount(options)
852
+ }));
853
+ return modifiedBuilder['buildInternal']();
854
+ };
855
+ var createTxs = /*#__PURE__*/function () {
856
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(options, builder) {
857
+ var tx, txBypass;
858
+ return _regenerator().w(function (_context) {
859
+ while (1) switch (_context.n) {
860
+ case 0:
861
+ _context.n = 1;
862
+ return builder['buildInternal']();
863
+ case 1:
864
+ tx = _context.v;
865
+ _context.n = 2;
866
+ return overrideTxAmount(options, builder);
867
+ case 2:
868
+ txBypass = _context.v;
869
+ return _context.a(2, {
870
+ tx: tx,
871
+ txBypass: txBypass
872
+ });
873
+ }
874
+ }, _callee);
875
+ }));
876
+ return function createTxs(_x, _x2) {
877
+ return _ref.apply(this, arguments);
878
+ };
879
+ }();
880
+
835
881
  /**
836
882
  * Retrieves the chain instance for a given chain.
837
883
  *
@@ -5783,7 +5829,7 @@ var handleToAhTeleport = /*#__PURE__*/function () {
5783
5829
  // Enter dummy fee values just to get the dry run to pass
5784
5830
  asset.amount, asset.amount / 2n);
5785
5831
  _context.n = 5;
5786
- return getXcmFee({
5832
+ return getXcmFeeInternal({
5787
5833
  api: api,
5788
5834
  tx: dummyTx,
5789
5835
  origin: origin,
@@ -5791,7 +5837,8 @@ var handleToAhTeleport = /*#__PURE__*/function () {
5791
5837
  senderAddress: senderAddress,
5792
5838
  address: address,
5793
5839
  currency: currency,
5794
- disableFallback: false
5840
+ disableFallback: false,
5841
+ useRootOrigin: true
5795
5842
  });
5796
5843
  case 5:
5797
5844
  feeResult = _context.v;
@@ -10283,18 +10330,21 @@ var getOriginXcmFeeInternal = /*#__PURE__*/function () {
10283
10330
 
10284
10331
  var getOriginXcmFee = /*#__PURE__*/function () {
10285
10332
  var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(options) {
10286
- var forced, real;
10333
+ var _options$txs, tx, txBypass, forced, real;
10287
10334
  return _regenerator().w(function (_context) {
10288
10335
  while (1) switch (_context.n) {
10289
10336
  case 0:
10337
+ _options$txs = options.txs, tx = _options$txs.tx, txBypass = _options$txs.txBypass;
10290
10338
  _context.n = 1;
10291
10339
  return getOriginXcmFeeInternal(_objectSpread2(_objectSpread2({}, options), {}, {
10340
+ tx: txBypass,
10292
10341
  useRootOrigin: true
10293
10342
  }));
10294
10343
  case 1:
10295
10344
  forced = _context.v;
10296
10345
  _context.n = 2;
10297
10346
  return getOriginXcmFeeInternal(_objectSpread2(_objectSpread2({}, options), {}, {
10347
+ tx: tx,
10298
10348
  useRootOrigin: false
10299
10349
  }));
10300
10350
  case 2:
@@ -10533,12 +10583,12 @@ var getFailureInfo = function getFailureInfo(chains, hops) {
10533
10583
  return {};
10534
10584
  };
10535
10585
  var getXcmFeeInternal = /*#__PURE__*/function () {
10536
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(_ref, useRootOrigin) {
10537
- var api, tx, origin, destination, senderAddress, address, currency, feeAsset, disableFallback, swapConfig, asset, amount, _yield$getOriginXcmFe, originFee, originCurrency, originAsset, originFeeType, originDryRunError, initialForwardedXcm, initialDestParaId, originWeight, sufficientOriginFee, destApi, destFeeRes, _result, _getFailureInfo, _failureChain, _failureReason, processHop, traversalResult, destFee, destCurrency, destAsset, destFeeType, destDryRunError, destSufficient, destResult, _destApi, destFallback, assetHubChain, processedBridgeHub, bridgeHubChain, bridgeHubHopIndex, convertToFeeDetail, result, _getFailureInfo2, failureChain, failureReason;
10586
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(_ref) {
10587
+ var api, tx, origin, destination, senderAddress, address, currency, feeAsset, disableFallback, swapConfig, useRootOrigin, asset, amount, _yield$getOriginXcmFe, originFee, originCurrency, originAsset, originFeeType, originDryRunError, initialForwardedXcm, initialDestParaId, originWeight, sufficientOriginFee, destApi, destFeeRes, _result, _getFailureInfo, _failureChain, _failureReason, processHop, traversalResult, destFee, destCurrency, destAsset, destFeeType, destDryRunError, destSufficient, destResult, _destApi, destFallback, assetHubChain, processedBridgeHub, bridgeHubChain, bridgeHubHopIndex, convertToFeeDetail, result, _getFailureInfo2, failureChain, failureReason;
10538
10588
  return _regenerator().w(function (_context2) {
10539
10589
  while (1) switch (_context2.p = _context2.n) {
10540
10590
  case 0:
10541
- api = _ref.api, tx = _ref.tx, origin = _ref.origin, destination = _ref.destination, senderAddress = _ref.senderAddress, address = _ref.address, currency = _ref.currency, feeAsset = _ref.feeAsset, disableFallback = _ref.disableFallback, swapConfig = _ref.swapConfig;
10591
+ api = _ref.api, tx = _ref.tx, origin = _ref.origin, destination = _ref.destination, senderAddress = _ref.senderAddress, address = _ref.address, currency = _ref.currency, feeAsset = _ref.feeAsset, disableFallback = _ref.disableFallback, swapConfig = _ref.swapConfig, useRootOrigin = _ref.useRootOrigin;
10542
10592
  asset = findAssetInfoOrThrow(origin, currency, destination);
10543
10593
  amount = abstractDecimals(currency.amount, asset.decimals, api);
10544
10594
  _context2.n = 1;
@@ -10682,7 +10732,7 @@ var getXcmFeeInternal = /*#__PURE__*/function () {
10682
10732
  }
10683
10733
  }, _callee);
10684
10734
  }));
10685
- return function processHop(_x3) {
10735
+ return function processHop(_x2) {
10686
10736
  return _ref3.apply(this, arguments);
10687
10737
  };
10688
10738
  }();
@@ -10855,7 +10905,7 @@ var getXcmFeeInternal = /*#__PURE__*/function () {
10855
10905
  }
10856
10906
  }, _callee2, null, [[2,, 5, 7]]);
10857
10907
  }));
10858
- return function getXcmFeeInternal(_x, _x2) {
10908
+ return function getXcmFeeInternal(_x) {
10859
10909
  return _ref2.apply(this, arguments);
10860
10910
  };
10861
10911
  }();
@@ -10863,16 +10913,23 @@ var getXcmFeeInternal = /*#__PURE__*/function () {
10863
10913
  var getXcmFee = /*#__PURE__*/function () {
10864
10914
  var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(options) {
10865
10915
  var _real$assetHub, _real$bridgeHub;
10866
- var forced, real, api;
10916
+ var _options$txs, tx, txBypass, forced, real, api;
10867
10917
  return _regenerator().w(function (_context) {
10868
10918
  while (1) switch (_context.n) {
10869
10919
  case 0:
10920
+ _options$txs = options.txs, tx = _options$txs.tx, txBypass = _options$txs.txBypass;
10870
10921
  _context.n = 1;
10871
- return getXcmFeeInternal(options, true);
10922
+ return getXcmFeeInternal(_objectSpread2(_objectSpread2({}, options), {}, {
10923
+ tx: txBypass,
10924
+ useRootOrigin: true
10925
+ }));
10872
10926
  case 1:
10873
10927
  forced = _context.v;
10874
10928
  _context.n = 2;
10875
- return getXcmFeeInternal(options, false);
10929
+ return getXcmFeeInternal(_objectSpread2(_objectSpread2({}, options), {}, {
10930
+ tx: tx,
10931
+ useRootOrigin: false
10932
+ }));
10876
10933
  case 2:
10877
10934
  real = _context.v;
10878
10935
  api = options.api;
@@ -11349,11 +11406,11 @@ var buildHopInfo = /*#__PURE__*/function () {
11349
11406
 
11350
11407
  var getTransferInfo = /*#__PURE__*/function () {
11351
11408
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(_ref) {
11352
- var api, tx, origin, destination, senderAddress, ahAddress, address, currency, feeAsset, resolvedFeeAsset, originAsset, amount, originBalanceFee, originBalance, edOrigin, _yield$getXcmFee, _yield$getXcmFee$orig, originFee, originFeeCurrency, originFeeAsset, assetHubFeeResult, bridgeHubFeeResult, destFeeDetail, hops, isFeeAssetAh, originBalanceAfter, originBalanceFeeAfter, originBalanceNativeSufficient, originBalanceSufficient, assetHub, bridgeHub, bridgeHubChain, builtHops, totalHopFee, destinationInfo, _t;
11409
+ var api, txs, origin, destination, senderAddress, ahAddress, address, currency, feeAsset, resolvedFeeAsset, originAsset, amount, originBalanceFee, originBalance, edOrigin, _yield$getXcmFee, _yield$getXcmFee$orig, originFee, originFeeCurrency, originFeeAsset, assetHubFeeResult, bridgeHubFeeResult, destFeeDetail, hops, isFeeAssetAh, originBalanceAfter, originBalanceFeeAfter, originBalanceNativeSufficient, originBalanceSufficient, assetHub, bridgeHub, bridgeHubChain, builtHops, totalHopFee, destinationInfo, _t;
11353
11410
  return _regenerator().w(function (_context2) {
11354
11411
  while (1) switch (_context2.p = _context2.n) {
11355
11412
  case 0:
11356
- api = _ref.api, tx = _ref.tx, origin = _ref.origin, destination = _ref.destination, senderAddress = _ref.senderAddress, ahAddress = _ref.ahAddress, address = _ref.address, currency = _ref.currency, feeAsset = _ref.feeAsset;
11413
+ api = _ref.api, txs = _ref.txs, origin = _ref.origin, destination = _ref.destination, senderAddress = _ref.senderAddress, ahAddress = _ref.ahAddress, address = _ref.address, currency = _ref.currency, feeAsset = _ref.feeAsset;
11357
11414
  if (!(isChainEvm(origin) && !ahAddress)) {
11358
11415
  _context2.n = 1;
11359
11416
  break;
@@ -11407,7 +11464,7 @@ var getTransferInfo = /*#__PURE__*/function () {
11407
11464
  _context2.n = 9;
11408
11465
  return getXcmFee({
11409
11466
  api: api,
11410
- tx: tx,
11467
+ txs: txs,
11411
11468
  origin: origin,
11412
11469
  destination: destination,
11413
11470
  senderAddress: senderAddress,
@@ -11575,11 +11632,11 @@ var getTransferInfo = /*#__PURE__*/function () {
11575
11632
 
11576
11633
  var getMinTransferableAmountInternal = /*#__PURE__*/function () {
11577
11634
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(_ref) {
11578
- var api, origin, senderAddress, address, chain, destination, currency, tx, feeAsset, builder, resolvedFeeAsset, asset, destAsset, destCurrency, destApi, destBalance, destEd, nativeAssetInfo, isNativeAsset, paysOriginInSendingAsset, amount, result, originFee, hopFeeTotal, destinationFee, edComponent, minAmount, modifiedBuilder, dryRunResult, _t, _t2, _t3, _t4, _t5, _t6, _t7, _t8, _t9;
11635
+ var api, origin, senderAddress, address, chain, destination, currency, feeAsset, txs, builder, resolvedFeeAsset, asset, destAsset, destCurrency, destApi, destBalance, destEd, nativeAssetInfo, isNativeAsset, paysOriginInSendingAsset, amount, result, originFee, hopFeeTotal, destinationFee, edComponent, minAmount, modifiedBuilder, dryRunResult, _t, _t2, _t3, _t4, _t5, _t6, _t7, _t8, _t9;
11579
11636
  return _regenerator().w(function (_context) {
11580
11637
  while (1) switch (_context.n) {
11581
11638
  case 0:
11582
- api = _ref.api, origin = _ref.origin, senderAddress = _ref.senderAddress, address = _ref.address, chain = _ref.origin, destination = _ref.destination, currency = _ref.currency, tx = _ref.tx, feeAsset = _ref.feeAsset, builder = _ref.builder;
11639
+ api = _ref.api, origin = _ref.origin, senderAddress = _ref.senderAddress, address = _ref.address, chain = _ref.origin, destination = _ref.destination, currency = _ref.currency, feeAsset = _ref.feeAsset, txs = _ref.txs, builder = _ref.builder;
11583
11640
  validateAddress(senderAddress, chain, false);
11584
11641
  resolvedFeeAsset = feeAsset ? resolveFeeAsset(feeAsset, chain, destination, currency) : undefined;
11585
11642
  asset = findAssetInfoOrThrow(chain, currency, null);
@@ -11608,11 +11665,11 @@ var getMinTransferableAmountInternal = /*#__PURE__*/function () {
11608
11665
  paysOriginInSendingAsset = !resolvedFeeAsset && isNativeAsset || resolvedFeeAsset && isAssetEqual(resolvedFeeAsset, asset);
11609
11666
  amount = abstractDecimals(currency.amount, asset.decimals, api);
11610
11667
  _context.n = 3;
11611
- return getXcmFeeInternal({
11668
+ return getXcmFee({
11612
11669
  api: api,
11613
11670
  origin: origin,
11614
11671
  destination: destination,
11615
- tx: tx,
11672
+ txs: txs,
11616
11673
  senderAddress: senderAddress,
11617
11674
  address: address,
11618
11675
  currency: _objectSpread2(_objectSpread2({}, currency), {}, {
@@ -11620,9 +11677,7 @@ var getMinTransferableAmountInternal = /*#__PURE__*/function () {
11620
11677
  }),
11621
11678
  feeAsset: feeAsset,
11622
11679
  disableFallback: false
11623
- },
11624
- // Use dryRun bypass
11625
- true);
11680
+ });
11626
11681
  case 3:
11627
11682
  result = _context.v;
11628
11683
  originFee = result.origin && paysOriginInSendingAsset && isAssetEqual(result.origin.asset, asset) ? result.origin.fee : 0n;
@@ -11709,11 +11764,11 @@ var getMinTransferableAmount = /*#__PURE__*/function () {
11709
11764
 
11710
11765
  var getTransferableAmountInternal = /*#__PURE__*/function () {
11711
11766
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(_ref) {
11712
- var api, senderAddress, chain, destination, currency, tx, feeAsset, resolvedFeeAsset, asset, amount, balance, ed, nativeAssetInfo, isNativeAsset, paysOriginInSendingAsset, feeToSubtract, _yield$getOriginXcmFe, fee, transferable;
11767
+ var api, senderAddress, chain, destination, currency, txs, feeAsset, resolvedFeeAsset, asset, amount, balance, ed, nativeAssetInfo, isNativeAsset, paysOriginInSendingAsset, feeToSubtract, _yield$getOriginXcmFe, fee, transferable;
11713
11768
  return _regenerator().w(function (_context) {
11714
11769
  while (1) switch (_context.n) {
11715
11770
  case 0:
11716
- api = _ref.api, senderAddress = _ref.senderAddress, chain = _ref.origin, destination = _ref.destination, currency = _ref.currency, tx = _ref.tx, feeAsset = _ref.feeAsset;
11771
+ api = _ref.api, senderAddress = _ref.senderAddress, chain = _ref.origin, destination = _ref.destination, currency = _ref.currency, txs = _ref.txs, feeAsset = _ref.feeAsset;
11717
11772
  validateAddress(senderAddress, chain, false);
11718
11773
  resolvedFeeAsset = feeAsset ? resolveFeeAsset(feeAsset, chain, destination, currency) : undefined;
11719
11774
  asset = findAssetInfoOrThrow(chain, currency, null);
@@ -11739,7 +11794,7 @@ var getTransferableAmountInternal = /*#__PURE__*/function () {
11739
11794
  _context.n = 2;
11740
11795
  return getOriginXcmFee({
11741
11796
  api: api,
11742
- tx: tx,
11797
+ txs: txs,
11743
11798
  origin: chain,
11744
11799
  destination: chain,
11745
11800
  senderAddress: senderAddress,
@@ -12124,12 +12179,12 @@ var calculateTotalXcmFee = function calculateTotalXcmFee(feeResult) {
12124
12179
  return totalFee;
12125
12180
  };
12126
12181
  var verifyEdOnDestinationInternal = /*#__PURE__*/function () {
12127
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(_ref) {
12128
- var api, tx, origin, destination, address, senderAddress, feeAsset, currency, destApi, asset, amount, destCurrency, ed, balance, xcmFeeResult, dryRunError, assetHubFeeResult, bridgeHubFeeResult, _xcmFeeResult$destina, destFee, destFeeCurrency, destDryRunError, hopDryRunError, totalFee, method, feeToSubtract;
12182
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(options) {
12183
+ var api, txs, origin, destination, currency, address, senderAddress, feeAsset, destApi, asset, amount, destCurrency, ed, balance, tx, txBypass, xcmFeeResult, dryRunError, assetHubFeeResult, bridgeHubFeeResult, _xcmFeeResult$destina, destFee, destFeeCurrency, destDryRunError, hopDryRunError, totalFee, method, feeToSubtract;
12129
12184
  return _regenerator().w(function (_context) {
12130
12185
  while (1) switch (_context.n) {
12131
12186
  case 0:
12132
- api = _ref.api, tx = _ref.tx, origin = _ref.origin, destination = _ref.destination, address = _ref.address, senderAddress = _ref.senderAddress, feeAsset = _ref.feeAsset, currency = _ref.currency;
12187
+ api = options.api, txs = options.txs, origin = options.origin, destination = options.destination, currency = options.currency, address = options.address, senderAddress = options.senderAddress, feeAsset = options.feeAsset;
12133
12188
  if (!(destination === 'Ethereum')) {
12134
12189
  _context.n = 1;
12135
12190
  break;
@@ -12170,10 +12225,11 @@ var verifyEdOnDestinationInternal = /*#__PURE__*/function () {
12170
12225
  });
12171
12226
  case 5:
12172
12227
  balance = _context.v;
12228
+ tx = txs.tx, txBypass = txs.txBypass;
12173
12229
  _context.n = 6;
12174
- return getXcmFee({
12230
+ return getXcmFeeInternal({
12175
12231
  api: api,
12176
- tx: tx,
12232
+ tx: txBypass,
12177
12233
  origin: origin,
12178
12234
  destination: destination,
12179
12235
  senderAddress: senderAddress,
@@ -12182,42 +12238,37 @@ var verifyEdOnDestinationInternal = /*#__PURE__*/function () {
12182
12238
  amount: amount
12183
12239
  }),
12184
12240
  feeAsset: feeAsset,
12185
- disableFallback: false
12241
+ disableFallback: false,
12242
+ useRootOrigin: true
12186
12243
  });
12187
12244
  case 6:
12188
12245
  xcmFeeResult = _context.v;
12189
12246
  dryRunError = xcmFeeResult.origin.dryRunError, assetHubFeeResult = xcmFeeResult.assetHub, bridgeHubFeeResult = xcmFeeResult.bridgeHub, _xcmFeeResult$destina = xcmFeeResult.destination, destFee = _xcmFeeResult$destina.fee, destFeeCurrency = _xcmFeeResult$destina.currency, destDryRunError = _xcmFeeResult$destina.dryRunError;
12190
- if (!(destFee === undefined)) {
12191
- _context.n = 7;
12192
- break;
12193
- }
12194
- throw new InvalidParameterError("Cannot get destination xcm fee for currency ".concat(JSON.stringify(currency, replaceBigInt), " on chain ").concat(destination, "."));
12195
- case 7:
12196
12247
  if (!dryRunError) {
12197
- _context.n = 8;
12248
+ _context.n = 7;
12198
12249
  break;
12199
12250
  }
12200
12251
  throw new DryRunFailedError(dryRunError, 'origin');
12201
- case 8:
12252
+ case 7:
12202
12253
  hopDryRunError = (assetHubFeeResult === null || assetHubFeeResult === void 0 ? void 0 : assetHubFeeResult.dryRunError) || (bridgeHubFeeResult === null || bridgeHubFeeResult === void 0 ? void 0 : bridgeHubFeeResult.dryRunError);
12203
12254
  if (!hopDryRunError) {
12204
- _context.n = 9;
12255
+ _context.n = 8;
12205
12256
  break;
12206
12257
  }
12207
12258
  throw new DryRunFailedError(hopDryRunError, assetHubFeeResult !== null && assetHubFeeResult !== void 0 && assetHubFeeResult.dryRunError ? 'assetHub' : 'bridgeHub');
12208
- case 9:
12259
+ case 8:
12209
12260
  if (!destDryRunError) {
12210
- _context.n = 10;
12261
+ _context.n = 9;
12211
12262
  break;
12212
12263
  }
12213
12264
  throw new UnableToComputeError("Unable to compute fee for the destination asset. Destination dry run error: ".concat(destDryRunError));
12214
- case 10:
12265
+ case 9:
12215
12266
  if (!(normalizeSymbol(asset.symbol) !== normalizeSymbol(destFeeCurrency))) {
12216
- _context.n = 11;
12267
+ _context.n = 10;
12217
12268
  break;
12218
12269
  }
12219
12270
  throw new UnableToComputeError("The XCM fee could not be calculated because the origin or destination chain does not support DryRun.\n As a result, fee estimation is only available through PaymentInfo, which provides the cost in the native asset.\n This limitation restricts support to transfers involving the native asset of the Destination chain only.");
12220
- case 11:
12271
+ case 10:
12221
12272
  totalFee = calculateTotalXcmFee(xcmFeeResult);
12222
12273
  method = api.getMethod(tx);
12223
12274
  if (method === 'transfer_assets_using_type_and_then' || method === 'transferAssetsUsingTypeAndThen') {
@@ -12230,7 +12281,7 @@ var verifyEdOnDestinationInternal = /*#__PURE__*/function () {
12230
12281
  }, _callee);
12231
12282
  }));
12232
12283
  return function verifyEdOnDestinationInternal(_x) {
12233
- return _ref2.apply(this, arguments);
12284
+ return _ref.apply(this, arguments);
12234
12285
  };
12235
12286
  }();
12236
12287
 
@@ -12735,31 +12786,6 @@ var GeneralBuilder = /*#__PURE__*/function () {
12735
12786
  }
12736
12787
  return maybePerformXcmFormatCheck;
12737
12788
  }()
12738
- }, {
12739
- key: "computeOverridenAmount",
12740
- value: function computeOverridenAmount() {
12741
- var _this$_options2 = this._options,
12742
- from = _this$_options2.from,
12743
- to = _this$_options2.to,
12744
- currency = _this$_options2.currency;
12745
- var config = this.api.getConfig();
12746
- if (isConfig(config) && config.abstractDecimals) {
12747
- return BYPASS_CURRENCY_AMOUNT;
12748
- } else {
12749
- assertToIsString(to);
12750
- var asset = findAssetInfoOrThrow(from, currency, to);
12751
- return parseUnits(BYPASS_CURRENCY_AMOUNT, asset.decimals);
12752
- }
12753
- }
12754
- }, {
12755
- key: "overrideTxAmount",
12756
- value: function overrideTxAmount() {
12757
- var currency = this._options.currency;
12758
- var modifiedBuilder = this.currency(_objectSpread2(_objectSpread2({}, currency), {}, {
12759
- amount: this.computeOverridenAmount()
12760
- }));
12761
- return modifiedBuilder.buildInternal();
12762
- }
12763
12789
  }, {
12764
12790
  key: "dryRun",
12765
12791
  value: function () {
@@ -12805,6 +12831,13 @@ var GeneralBuilder = /*#__PURE__*/function () {
12805
12831
  }
12806
12832
  return dryRunPreview;
12807
12833
  }()
12834
+ }, {
12835
+ key: "createTxs",
12836
+ value: function createTxs$1() {
12837
+ return createTxs(_objectSpread2(_objectSpread2({}, this._options), {}, {
12838
+ api: this.api
12839
+ }), this);
12840
+ }
12808
12841
  /**
12809
12842
  * Returns the XCM fee for the transfer using dryRun or paymentInfo function.
12810
12843
  *
@@ -12815,30 +12848,39 @@ var GeneralBuilder = /*#__PURE__*/function () {
12815
12848
  value: (function () {
12816
12849
  var _getXcmFee2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7(options) {
12817
12850
  var _options$disableFallb;
12818
- var _this$_options3, from, to, address, senderAddress, feeAsset, currency, tx, disableFallback;
12851
+ var _this$_options2, from, to, address, senderAddress, feeAsset, currency, disableFallback, _t, _t2, _t3, _t4, _t5, _t6, _t7, _t8, _t9, _t0;
12819
12852
  return _regenerator().w(function (_context7) {
12820
12853
  while (1) switch (_context7.p = _context7.n) {
12821
12854
  case 0:
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;
12855
+ _this$_options2 = this._options, from = _this$_options2.from, to = _this$_options2.to, address = _this$_options2.address, senderAddress = _this$_options2.senderAddress, feeAsset = _this$_options2.feeAsset, currency = _this$_options2.currency;
12823
12856
  assertToIsString(to);
12824
12857
  assertAddressIsString(address);
12825
- _context7.n = 1;
12826
- return this.overrideTxAmount();
12827
- case 1:
12828
- tx = _context7.v;
12829
12858
  disableFallback = (_options$disableFallb = options === null || options === void 0 ? void 0 : options.disableFallback) !== null && _options$disableFallb !== void 0 ? _options$disableFallb : false;
12830
- _context7.p = 2;
12859
+ _context7.p = 1;
12860
+ _t = getXcmFee;
12861
+ _t2 = this.api;
12862
+ _context7.n = 2;
12863
+ return this.createTxs();
12864
+ case 2:
12865
+ _t3 = _context7.v;
12866
+ _t4 = from;
12867
+ _t5 = to;
12868
+ _t6 = senderAddress;
12869
+ _t7 = address;
12870
+ _t8 = currency;
12871
+ _t9 = feeAsset;
12872
+ _t0 = disableFallback;
12831
12873
  _context7.n = 3;
12832
- return getXcmFee({
12833
- api: this.api,
12834
- tx: tx,
12835
- origin: from,
12836
- destination: to,
12837
- senderAddress: senderAddress,
12838
- address: address,
12839
- currency: currency,
12840
- feeAsset: feeAsset,
12841
- disableFallback: disableFallback
12874
+ return _t({
12875
+ api: _t2,
12876
+ txs: _t3,
12877
+ origin: _t4,
12878
+ destination: _t5,
12879
+ senderAddress: _t6,
12880
+ address: _t7,
12881
+ currency: _t8,
12882
+ feeAsset: _t9,
12883
+ disableFallback: _t0
12842
12884
  });
12843
12885
  case 3:
12844
12886
  return _context7.a(2, _context7.v);
@@ -12851,7 +12893,7 @@ var GeneralBuilder = /*#__PURE__*/function () {
12851
12893
  case 6:
12852
12894
  return _context7.a(2);
12853
12895
  }
12854
- }, _callee7, this, [[2,, 4, 6]]);
12896
+ }, _callee7, this, [[1,, 4, 6]]);
12855
12897
  }));
12856
12898
  function getXcmFee$1(_x6) {
12857
12899
  return _getXcmFee2.apply(this, arguments);
@@ -12870,37 +12912,55 @@ var GeneralBuilder = /*#__PURE__*/function () {
12870
12912
  var _getOriginXcmFee2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee8() {
12871
12913
  var _ref,
12872
12914
  disableFallback,
12873
- _this$_options4,
12915
+ _this$_options3,
12874
12916
  from,
12875
12917
  to,
12876
12918
  senderAddress,
12877
12919
  currency,
12878
12920
  feeAsset,
12879
- tx,
12880
- _args8 = arguments;
12921
+ api,
12922
+ _args8 = arguments,
12923
+ _t1,
12924
+ _t10,
12925
+ _t11,
12926
+ _t12,
12927
+ _t13,
12928
+ _t14,
12929
+ _t15,
12930
+ _t16,
12931
+ _t17;
12881
12932
  return _regenerator().w(function (_context8) {
12882
12933
  while (1) switch (_context8.p = _context8.n) {
12883
12934
  case 0:
12884
12935
  _ref = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {
12885
12936
  disableFallback: false
12886
12937
  }, disableFallback = _ref.disableFallback;
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;
12938
+ _this$_options3 = this._options, from = _this$_options3.from, to = _this$_options3.to, senderAddress = _this$_options3.senderAddress, currency = _this$_options3.currency, feeAsset = _this$_options3.feeAsset;
12888
12939
  assertToIsString(to);
12889
- _context8.n = 1;
12890
- return this.overrideTxAmount();
12891
- case 1:
12892
- tx = _context8.v;
12893
- _context8.p = 2;
12940
+ api = this.api;
12941
+ _context8.p = 1;
12942
+ _t1 = getOriginXcmFee;
12943
+ _t10 = api;
12944
+ _context8.n = 2;
12945
+ return this.createTxs();
12946
+ case 2:
12947
+ _t11 = _context8.v;
12948
+ _t12 = from;
12949
+ _t13 = to;
12950
+ _t14 = senderAddress;
12951
+ _t15 = currency;
12952
+ _t16 = feeAsset;
12953
+ _t17 = disableFallback;
12894
12954
  _context8.n = 3;
12895
- return getOriginXcmFee({
12896
- api: this.api,
12897
- tx: tx,
12898
- origin: from,
12899
- destination: to,
12900
- senderAddress: senderAddress,
12901
- currency: currency,
12902
- feeAsset: feeAsset,
12903
- disableFallback: disableFallback
12955
+ return _t1({
12956
+ api: _t10,
12957
+ txs: _t11,
12958
+ origin: _t12,
12959
+ destination: _t13,
12960
+ senderAddress: _t14,
12961
+ currency: _t15,
12962
+ feeAsset: _t16,
12963
+ disableFallback: _t17
12904
12964
  });
12905
12965
  case 3:
12906
12966
  return _context8.a(2, _context8.v);
@@ -12913,7 +12973,7 @@ var GeneralBuilder = /*#__PURE__*/function () {
12913
12973
  case 6:
12914
12974
  return _context8.a(2);
12915
12975
  }
12916
- }, _callee8, this, [[2,, 4, 6]]);
12976
+ }, _callee8, this, [[1,, 4, 6]]);
12917
12977
  }));
12918
12978
  function getOriginXcmFee$1() {
12919
12979
  return _getOriginXcmFee2.apply(this, arguments);
@@ -12930,11 +12990,11 @@ var GeneralBuilder = /*#__PURE__*/function () {
12930
12990
  key: "getXcmFeeEstimate",
12931
12991
  value: (function () {
12932
12992
  var _getXcmFeeEstimate2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee9() {
12933
- var _this$_options5, from, to, address, senderAddress, currency, tx;
12993
+ var _this$_options4, from, to, address, senderAddress, currency, tx;
12934
12994
  return _regenerator().w(function (_context9) {
12935
12995
  while (1) switch (_context9.p = _context9.n) {
12936
12996
  case 0:
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;
12997
+ _this$_options4 = this._options, from = _this$_options4.from, to = _this$_options4.to, address = _this$_options4.address, senderAddress = _this$_options4.senderAddress, currency = _this$_options4.currency;
12938
12998
  assertToIsString(to);
12939
12999
  assertAddressIsString(address);
12940
13000
  _context9.n = 1;
@@ -12980,11 +13040,11 @@ var GeneralBuilder = /*#__PURE__*/function () {
12980
13040
  key: "getOriginXcmFeeEstimate",
12981
13041
  value: (function () {
12982
13042
  var _getOriginXcmFeeEstimate2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee0() {
12983
- var _this$_options6, from, to, senderAddress, currency, tx;
13043
+ var _this$_options5, from, to, senderAddress, currency, tx;
12984
13044
  return _regenerator().w(function (_context0) {
12985
13045
  while (1) switch (_context0.p = _context0.n) {
12986
13046
  case 0:
12987
- _this$_options6 = this._options, from = _this$_options6.from, to = _this$_options6.to, senderAddress = _this$_options6.senderAddress, currency = _this$_options6.currency;
13047
+ _this$_options5 = this._options, from = _this$_options5.from, to = _this$_options5.to, senderAddress = _this$_options5.senderAddress, currency = _this$_options5.currency;
12988
13048
  assertToIsString(to);
12989
13049
  _context0.n = 1;
12990
13050
  return this.buildInternal();
@@ -13028,24 +13088,32 @@ var GeneralBuilder = /*#__PURE__*/function () {
13028
13088
  key: "getTransferableAmount",
13029
13089
  value: (function () {
13030
13090
  var _getTransferableAmount2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee1() {
13031
- var _this$_options7, from, to, senderAddress, currency, feeAsset, tx;
13091
+ var _this$_options6, from, to, senderAddress, currency, feeAsset, api, _t18, _t19, _t20, _t21, _t22, _t23, _t24, _t25;
13032
13092
  return _regenerator().w(function (_context1) {
13033
13093
  while (1) switch (_context1.n) {
13034
13094
  case 0:
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;
13095
+ _this$_options6 = this._options, from = _this$_options6.from, to = _this$_options6.to, senderAddress = _this$_options6.senderAddress, currency = _this$_options6.currency, feeAsset = _this$_options6.feeAsset;
13036
13096
  assertToIsString(to);
13097
+ api = this.api;
13098
+ _t18 = getTransferableAmount;
13099
+ _t19 = api;
13037
13100
  _context1.n = 1;
13038
- return this.overrideTxAmount();
13101
+ return this.createTxs();
13039
13102
  case 1:
13040
- tx = _context1.v;
13041
- return _context1.a(2, getTransferableAmount({
13042
- api: this.api,
13043
- tx: tx,
13044
- origin: from,
13045
- destination: to,
13046
- senderAddress: senderAddress,
13047
- feeAsset: feeAsset,
13048
- currency: currency
13103
+ _t20 = _context1.v;
13104
+ _t21 = from;
13105
+ _t22 = to;
13106
+ _t23 = senderAddress;
13107
+ _t24 = feeAsset;
13108
+ _t25 = currency;
13109
+ return _context1.a(2, _t18({
13110
+ api: _t19,
13111
+ txs: _t20,
13112
+ origin: _t21,
13113
+ destination: _t22,
13114
+ senderAddress: _t23,
13115
+ feeAsset: _t24,
13116
+ currency: _t25
13049
13117
  }));
13050
13118
  }
13051
13119
  }, _callee1, this);
@@ -13065,27 +13133,37 @@ var GeneralBuilder = /*#__PURE__*/function () {
13065
13133
  key: "getMinTransferableAmount",
13066
13134
  value: (function () {
13067
13135
  var _getMinTransferableAmount2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee10() {
13068
- var _this$_options8, from, to, senderAddress, address, currency, feeAsset, tx;
13136
+ var _this$_options7, from, to, senderAddress, address, currency, feeAsset, api, _t26, _t27, _t28, _t29, _t30, _t31, _t32, _t33, _t34, _t35;
13069
13137
  return _regenerator().w(function (_context10) {
13070
13138
  while (1) switch (_context10.n) {
13071
13139
  case 0:
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;
13140
+ _this$_options7 = this._options, from = _this$_options7.from, to = _this$_options7.to, senderAddress = _this$_options7.senderAddress, address = _this$_options7.address, currency = _this$_options7.currency, feeAsset = _this$_options7.feeAsset;
13073
13141
  assertToIsString(to);
13074
13142
  assertAddressIsString(address);
13143
+ api = this.api;
13144
+ _t26 = getMinTransferableAmount;
13145
+ _t27 = api;
13075
13146
  _context10.n = 1;
13076
- return this.overrideTxAmount();
13147
+ return this.createTxs();
13077
13148
  case 1:
13078
- tx = _context10.v;
13079
- return _context10.a(2, getMinTransferableAmount({
13080
- api: this.api,
13081
- tx: tx,
13082
- origin: from,
13083
- destination: to,
13084
- senderAddress: senderAddress,
13085
- address: address,
13086
- feeAsset: feeAsset,
13087
- currency: currency,
13088
- builder: this
13149
+ _t28 = _context10.v;
13150
+ _t29 = from;
13151
+ _t30 = to;
13152
+ _t31 = senderAddress;
13153
+ _t32 = address;
13154
+ _t33 = feeAsset;
13155
+ _t34 = currency;
13156
+ _t35 = this;
13157
+ return _context10.a(2, _t26({
13158
+ api: _t27,
13159
+ txs: _t28,
13160
+ origin: _t29,
13161
+ destination: _t30,
13162
+ senderAddress: _t31,
13163
+ address: _t32,
13164
+ feeAsset: _t33,
13165
+ currency: _t34,
13166
+ builder: _t35
13089
13167
  }));
13090
13168
  }
13091
13169
  }, _callee10, this);
@@ -13105,26 +13183,34 @@ var GeneralBuilder = /*#__PURE__*/function () {
13105
13183
  key: "verifyEdOnDestination",
13106
13184
  value: (function () {
13107
13185
  var _verifyEdOnDestination2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee11() {
13108
- var _this$_options9, from, to, address, currency, senderAddress, feeAsset, tx;
13186
+ var _this$_options8, from, to, address, currency, senderAddress, feeAsset, _t36, _t37, _t38, _t39, _t40, _t41, _t42, _t43, _t44;
13109
13187
  return _regenerator().w(function (_context11) {
13110
13188
  while (1) switch (_context11.n) {
13111
13189
  case 0:
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;
13190
+ _this$_options8 = this._options, from = _this$_options8.from, to = _this$_options8.to, address = _this$_options8.address, currency = _this$_options8.currency, senderAddress = _this$_options8.senderAddress, feeAsset = _this$_options8.feeAsset;
13113
13191
  assertToIsString(to);
13114
13192
  assertAddressIsString(address);
13193
+ _t36 = verifyEdOnDestination;
13194
+ _t37 = this.api;
13115
13195
  _context11.n = 1;
13116
- return this.overrideTxAmount();
13196
+ return this.createTxs();
13117
13197
  case 1:
13118
- tx = _context11.v;
13119
- return _context11.a(2, verifyEdOnDestination({
13120
- api: this.api,
13121
- tx: tx,
13122
- origin: from,
13123
- destination: to,
13124
- address: address,
13125
- senderAddress: senderAddress,
13126
- feeAsset: feeAsset,
13127
- currency: currency
13198
+ _t38 = _context11.v;
13199
+ _t39 = from;
13200
+ _t40 = to;
13201
+ _t41 = address;
13202
+ _t42 = senderAddress;
13203
+ _t43 = feeAsset;
13204
+ _t44 = currency;
13205
+ return _context11.a(2, _t36({
13206
+ api: _t37,
13207
+ txs: _t38,
13208
+ origin: _t39,
13209
+ destination: _t40,
13210
+ address: _t41,
13211
+ senderAddress: _t42,
13212
+ feeAsset: _t43,
13213
+ currency: _t44
13128
13214
  }));
13129
13215
  }
13130
13216
  }, _callee11, this);
@@ -13144,27 +13230,36 @@ var GeneralBuilder = /*#__PURE__*/function () {
13144
13230
  key: "getTransferInfo",
13145
13231
  value: (function () {
13146
13232
  var _getTransferInfo2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee12() {
13147
- var _this$_options0, from, to, address, currency, ahAddress, senderAddress, feeAsset, tx;
13233
+ var _this$_options9, from, to, address, currency, ahAddress, senderAddress, feeAsset, _t45, _t46, _t47, _t48, _t49, _t50, _t51, _t52, _t53, _t54;
13148
13234
  return _regenerator().w(function (_context12) {
13149
13235
  while (1) switch (_context12.n) {
13150
13236
  case 0:
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;
13237
+ _this$_options9 = this._options, from = _this$_options9.from, to = _this$_options9.to, address = _this$_options9.address, currency = _this$_options9.currency, ahAddress = _this$_options9.ahAddress, senderAddress = _this$_options9.senderAddress, feeAsset = _this$_options9.feeAsset;
13152
13238
  assertToIsString(to);
13153
13239
  assertAddressIsString(address);
13240
+ _t45 = getTransferInfo;
13241
+ _t46 = this.api;
13154
13242
  _context12.n = 1;
13155
- return this.overrideTxAmount();
13243
+ return this.createTxs();
13156
13244
  case 1:
13157
- tx = _context12.v;
13158
- return _context12.a(2, getTransferInfo({
13159
- api: this.api,
13160
- tx: tx,
13161
- origin: from,
13162
- destination: to,
13163
- address: address,
13164
- senderAddress: senderAddress,
13165
- ahAddress: ahAddress,
13166
- currency: currency,
13167
- feeAsset: feeAsset
13245
+ _t47 = _context12.v;
13246
+ _t48 = from;
13247
+ _t49 = to;
13248
+ _t50 = address;
13249
+ _t51 = senderAddress;
13250
+ _t52 = ahAddress;
13251
+ _t53 = currency;
13252
+ _t54 = feeAsset;
13253
+ return _context12.a(2, _t45({
13254
+ api: _t46,
13255
+ txs: _t47,
13256
+ origin: _t48,
13257
+ destination: _t49,
13258
+ address: _t50,
13259
+ senderAddress: _t51,
13260
+ ahAddress: _t52,
13261
+ currency: _t53,
13262
+ feeAsset: _t54
13168
13263
  }));
13169
13264
  }
13170
13265
  }, _callee12, this);
@@ -13207,4 +13302,4 @@ var Builder = function Builder(api) {
13207
13302
  return new GeneralBuilder(api, new BatchTransactionManager());
13208
13303
  };
13209
13304
 
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 };
13305
+ 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, computeOverridenAmount, convertSs58, createAsset, createAssetsFilter, createBaseExecuteXcm, createBeneficiaryLocXTokens, createBeneficiaryLocation, createChainClient, createDirectExecuteXcm, createExecuteCall, createExecuteExchangeXcm, createTxs, 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, getXcmFeeInternal, handleExecuteTransfer, handleSwapExecuteTransfer, handleToAhTeleport, isConfig, localizeLocation, maybeOverrideAsset, maybeOverrideAssets, overrideTxAmount, padFee, padFeeBy, resolveDestChain, resolveModuleError, resolveParaId, reverseTransformLocation, send, sortAssets, transferMoonbeamEvm, transferMoonbeamToEth, transferRelayToPara, traverseXcmHops, validateAddress, verifyEdOnDestination, wrapTxBypass };