@paraspell/sdk 11.8.0 → 11.8.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.cjs CHANGED
@@ -1513,7 +1513,7 @@ var PapiApi = /*#__PURE__*/function () {
1513
1513
  break;
1514
1514
  }
1515
1515
  _context20.n = 10;
1516
- return this.getXcmPaymentApiFee(chain, result.value.local_xcm, feeAsset !== null && feeAsset !== void 0 ? feeAsset : nativeAsset);
1516
+ return this.getXcmPaymentApiFee(chain, result.value.local_xcm, forwardedXcms, feeAsset !== null && feeAsset !== void 0 ? feeAsset : nativeAsset);
1517
1517
  case 10:
1518
1518
  xcmFee = _context20.v;
1519
1519
  if (!(typeof xcmFee === 'bigint')) {
@@ -1576,36 +1576,88 @@ var PapiApi = /*#__PURE__*/function () {
1576
1576
  }, {
1577
1577
  key: "getXcmPaymentApiFee",
1578
1578
  value: function () {
1579
- var _getXcmPaymentApiFee = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee22(chain, xcm, asset) {
1579
+ var _getXcmPaymentApiFee = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee22(chain, localXcm, forwardedXcm, asset) {
1580
+ var _deliveryFeeRes$value, _deliveryFeeRes$value2;
1580
1581
  var transformXcm,
1582
+ transformedXcm,
1581
1583
  weight,
1582
- localizedLocation,
1583
- transformedLocation,
1584
- feeResult,
1585
- _args22 = arguments;
1584
+ assetLocalizedLoc,
1585
+ transformedAssetLoc,
1586
+ execFeeRes,
1587
+ deliveryFeeRes,
1588
+ deliveryFeeResolved,
1589
+ nativeAsset,
1590
+ deliveryFee,
1591
+ res,
1592
+ _args22 = arguments,
1593
+ _t5,
1594
+ _t6;
1586
1595
  return _regenerator().w(function (_context22) {
1587
- while (1) switch (_context22.n) {
1596
+ while (1) switch (_context22.p = _context22.n) {
1588
1597
  case 0:
1589
- transformXcm = _args22.length > 3 && _args22[3] !== undefined ? _args22[3] : false;
1598
+ transformXcm = _args22.length > 4 && _args22[4] !== undefined ? _args22[4] : false;
1599
+ transformedXcm = transformXcm ? _transform(localXcm) : localXcm;
1590
1600
  _context22.n = 1;
1591
- return this.api.getUnsafeApi().apis.XcmPaymentApi.query_xcm_weight(transformXcm ? _transform(xcm) : xcm);
1601
+ return this.api.getUnsafeApi().apis.XcmPaymentApi.query_xcm_weight(transformedXcm);
1592
1602
  case 1:
1593
1603
  weight = _context22.v;
1594
1604
  sdkCore.assertHasLocation(asset);
1595
- localizedLocation = chain.startsWith('AssetHub') || sdkCore.isRelayChain(chain) ? sdkCore.localizeLocation(chain, asset.location) : asset.location;
1596
- transformedLocation = _transform(localizedLocation);
1605
+ assetLocalizedLoc = sdkCore.localizeLocation(chain, asset.location);
1606
+ transformedAssetLoc = _transform(assetLocalizedLoc);
1597
1607
  _context22.n = 2;
1598
1608
  return this.api.getUnsafeApi().apis.XcmPaymentApi.query_weight_to_asset_fee(weight.value, {
1599
1609
  type: sdkCore.Version.V4,
1600
- value: transformedLocation
1610
+ value: transformedAssetLoc
1601
1611
  });
1602
1612
  case 2:
1603
- feeResult = _context22.v;
1604
- return _context22.a(2, feeResult.value);
1613
+ execFeeRes = _context22.v;
1614
+ if (!(forwardedXcm.length > 0)) {
1615
+ _context22.n = 4;
1616
+ break;
1617
+ }
1618
+ _context22.n = 3;
1619
+ return this.api.getUnsafeApi().apis.XcmPaymentApi.query_delivery_fees(forwardedXcm[0], forwardedXcm[1][0]);
1620
+ case 3:
1621
+ _t5 = _context22.v;
1622
+ _context22.n = 5;
1623
+ break;
1624
+ case 4:
1625
+ _t5 = undefined;
1626
+ case 5:
1627
+ deliveryFeeRes = _t5;
1628
+ deliveryFeeResolved = (deliveryFeeRes === null || deliveryFeeRes === void 0 || (_deliveryFeeRes$value = deliveryFeeRes.value) === null || _deliveryFeeRes$value === void 0 ? void 0 : _deliveryFeeRes$value.value.length) > 0 ? deliveryFeeRes === null || deliveryFeeRes === void 0 || (_deliveryFeeRes$value2 = deliveryFeeRes.value) === null || _deliveryFeeRes$value2 === void 0 ? void 0 : _deliveryFeeRes$value2.value[0].fun.value : 0n;
1629
+ nativeAsset = sdkCore.findNativeAssetInfoOrThrow(chain);
1630
+ if (!sdkCore.isAssetXcEqual(asset, nativeAsset)) {
1631
+ _context22.n = 6;
1632
+ break;
1633
+ }
1634
+ deliveryFee = deliveryFeeResolved;
1635
+ _context22.n = 9;
1636
+ break;
1637
+ case 6:
1638
+ _context22.p = 6;
1639
+ sdkCore.assertHasLocation(nativeAsset);
1640
+ _context22.n = 7;
1641
+ return this.quoteAhPrice(sdkCore.localizeLocation(chain, nativeAsset.location), assetLocalizedLoc, deliveryFeeResolved, false);
1642
+ case 7:
1643
+ res = _context22.v;
1644
+ deliveryFee = res !== null && res !== void 0 ? res : 0n;
1645
+ _context22.n = 9;
1646
+ break;
1647
+ case 8:
1648
+ _context22.p = 8;
1649
+ _t6 = _context22.v;
1650
+ if (_t6 instanceof Error && /Runtime entry RuntimeCall\(.+\) not found/.test(_t6.message)) {
1651
+ deliveryFee = 0n;
1652
+ } else {
1653
+ deliveryFee = 0n;
1654
+ }
1655
+ case 9:
1656
+ return _context22.a(2, execFeeRes.value + deliveryFee);
1605
1657
  }
1606
- }, _callee22, this);
1658
+ }, _callee22, this, [[6, 8]]);
1607
1659
  }));
1608
- function getXcmPaymentApiFee(_x38, _x39, _x40) {
1660
+ function getXcmPaymentApiFee(_x38, _x39, _x40, _x41) {
1609
1661
  return _getXcmPaymentApiFee.apply(this, arguments);
1610
1662
  }
1611
1663
  return getXcmPaymentApiFee;
@@ -1615,11 +1667,11 @@ var PapiApi = /*#__PURE__*/function () {
1615
1667
  value: function () {
1616
1668
  var _getDryRunXcm = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee23(_ref8) {
1617
1669
  var _ref9, _processAssetsDeposit, _ref0, _ref1, _ref10, _ref11, _ref12;
1618
- var originLocation, xcm, chain, origin, asset, tx, feeAsset, originFee, amount, supportsDryRunApi, transformedOriginLocation, result, symbol, isSuccess, failureReason, actualWeight, weight, forwardedXcms, destParaId, txMethod, _fee, emitted, reversedEvents, palletsWithIssued, isFeeAsset, feeAssetFeeEvent, processedAssetsAmount, feeEvent, fee, processedFee;
1670
+ var originLocation, xcm, chain, origin, asset, feeAsset, originFee, amount, supportsDryRunApi, transformedOriginLocation, result, symbol, isSuccess, failureReason, actualWeight, weight, forwardedXcms, destParaId, _fee, emitted, reversedEvents, palletsWithIssued, isFeeAsset, feeAssetFeeEvent, processedAssetsAmount, feeEvent, fee, processedFee;
1619
1671
  return _regenerator().w(function (_context23) {
1620
1672
  while (1) switch (_context23.n) {
1621
1673
  case 0:
1622
- originLocation = _ref8.originLocation, xcm = _ref8.xcm, chain = _ref8.chain, origin = _ref8.origin, asset = _ref8.asset, tx = _ref8.tx, feeAsset = _ref8.feeAsset, originFee = _ref8.originFee, amount = _ref8.amount;
1674
+ originLocation = _ref8.originLocation, xcm = _ref8.xcm, chain = _ref8.chain, origin = _ref8.origin, asset = _ref8.asset, feeAsset = _ref8.feeAsset, originFee = _ref8.originFee, amount = _ref8.amount;
1623
1675
  supportsDryRunApi = sdkCore.getAssetsObject(chain).supportsDryRunApi;
1624
1676
  if (supportsDryRunApi) {
1625
1677
  _context23.n = 1;
@@ -1653,16 +1705,12 @@ var PapiApi = /*#__PURE__*/function () {
1653
1705
  } : undefined;
1654
1706
  forwardedXcms = result.value.forwarded_xcms.length > 0 ? result.value.forwarded_xcms[0] : [];
1655
1707
  destParaId = forwardedXcms.length === 0 ? undefined : forwardedXcms[0].value.interior.type === 'Here' ? 0 : forwardedXcms[0].value.interior.value.value;
1656
- txMethod = this.getMethod(tx);
1657
- if (!(sdkCore.hasXcmPaymentApiSupport(chain) && asset && (
1658
- // Do not use XcmPaymentApi if method is `execute` on AssetHub or Polkadot
1659
- // as fee calculation would be incorrect
1660
- txMethod !== 'execute' || chain !== 'AssetHubPolkadot' && chain !== 'Polkadot'))) {
1708
+ if (!(sdkCore.hasXcmPaymentApiSupport(chain) && asset)) {
1661
1709
  _context23.n = 5;
1662
1710
  break;
1663
1711
  }
1664
1712
  _context23.n = 4;
1665
- return this.getXcmPaymentApiFee(chain, xcm, asset);
1713
+ return this.getXcmPaymentApiFee(chain, xcm, forwardedXcms, asset);
1666
1714
  case 4:
1667
1715
  _fee = _context23.v;
1668
1716
  if (!(typeof _fee === 'bigint')) {
@@ -1746,7 +1794,7 @@ var PapiApi = /*#__PURE__*/function () {
1746
1794
  }
1747
1795
  }, _callee23, this);
1748
1796
  }));
1749
- function getDryRunXcm(_x41) {
1797
+ function getDryRunXcm(_x42) {
1750
1798
  return _getDryRunXcm.apply(this, arguments);
1751
1799
  }
1752
1800
  return getDryRunXcm;
package/dist/index.d.ts CHANGED
@@ -206,7 +206,7 @@ declare const getBridgeStatus: (ahApi?: TPapiApiOrUrl) => Promise<_paraspell_sdk
206
206
  declare const getOriginXcmFee: (options: _paraspell_sdk_core.TGetOriginXcmFeeBaseOptions<TPapiTransaction> & {
207
207
  api?: TPapiApiOrUrl;
208
208
  }) => Promise<_paraspell_sdk_core.TXcmFeeDetail & {
209
- forwardedXcms?: any;
209
+ forwardedXcms?: unknown;
210
210
  destParaId?: number;
211
211
  }>;
212
212
  declare const getXcmFee: <TDisableFallback extends boolean>(options: TGetXcmFeeBaseOptions<TPapiTransaction, TDisableFallback>) => Promise<_paraspell_sdk_core.TGetXcmFeeResult<TDisableFallback>>;
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { InvalidParameterError, isConfig, BatchMode, getChainProviders, MissingChainApiError, ChainNotSupportedError, createChainClient as createChainClient$1, Parents, Version, getChain, isForeignAsset, assertHasId, computeFeeFromDryRun, findNativeAssetInfoOrThrow, hasXcmPaymentApiSupport, isSystemChain, replaceBigInt, getAssetsObject, wrapTxBypass, assertHasLocation, localizeLocation, isRelayChain, padFeeBy, isAssetEqual, getBalanceNative as getBalanceNative$1, getBalanceForeign as getBalanceForeign$1, getAssetBalance as getAssetBalance$1, claimAssets as claimAssets$1, getOriginFeeDetails as getOriginFeeDetails$1, Foreign, ForeignAbstract, Native, Override, findAssetInfo, getAllAssetsSymbols, getAssetDecimals, getAssetId, getAssets, getExistentialDeposit, getNativeAssetSymbol, getNativeAssets, getOtherAssets, getRelayChainSymbol, getSupportedAssets, getTChain, hasSupportForAsset, isChainEvm, convertSs58 as convertSs58$1, transferMoonbeamEvm, validateAddress, transferMoonbeamToEth, Builder as Builder$1, getParaEthTransferFees as getParaEthTransferFees$1, getBridgeStatus as getBridgeStatus$1, getXcmFee as getXcmFee$1, send as send$1, dryRun as dryRun$1, dryRunOrigin as dryRunOrigin$1, getOriginXcmFee as getOriginXcmFee$1, handleSwapExecuteTransfer as handleSwapExecuteTransfer$1 } from '@paraspell/sdk-core';
1
+ import { InvalidParameterError, isConfig, BatchMode, getChainProviders, MissingChainApiError, ChainNotSupportedError, createChainClient as createChainClient$1, Parents, Version, getChain, isForeignAsset, assertHasId, computeFeeFromDryRun, findNativeAssetInfoOrThrow, hasXcmPaymentApiSupport, isSystemChain, replaceBigInt, getAssetsObject, wrapTxBypass, assertHasLocation, localizeLocation, isAssetXcEqual, padFeeBy, isRelayChain, isAssetEqual, getBalanceNative as getBalanceNative$1, getBalanceForeign as getBalanceForeign$1, getAssetBalance as getAssetBalance$1, claimAssets as claimAssets$1, getOriginFeeDetails as getOriginFeeDetails$1, Foreign, ForeignAbstract, Native, Override, findAssetInfo, getAllAssetsSymbols, getAssetDecimals, getAssetId, getAssets, getExistentialDeposit, getNativeAssetSymbol, getNativeAssets, getOtherAssets, getRelayChainSymbol, getSupportedAssets, getTChain, hasSupportForAsset, isChainEvm, convertSs58 as convertSs58$1, transferMoonbeamEvm, validateAddress, transferMoonbeamToEth, Builder as Builder$1, getParaEthTransferFees as getParaEthTransferFees$1, getBridgeStatus as getBridgeStatus$1, getXcmFee as getXcmFee$1, send as send$1, dryRun as dryRun$1, dryRunOrigin as dryRunOrigin$1, getOriginXcmFee as getOriginXcmFee$1, handleSwapExecuteTransfer as handleSwapExecuteTransfer$1 } from '@paraspell/sdk-core';
2
2
  export * from '@paraspell/sdk-core';
3
3
  import { blake2b } from '@noble/hashes/blake2';
4
4
  import { bytesToHex } from '@noble/hashes/utils';
@@ -1512,7 +1512,7 @@ var PapiApi = /*#__PURE__*/function () {
1512
1512
  break;
1513
1513
  }
1514
1514
  _context20.n = 10;
1515
- return this.getXcmPaymentApiFee(chain, result.value.local_xcm, feeAsset !== null && feeAsset !== void 0 ? feeAsset : nativeAsset);
1515
+ return this.getXcmPaymentApiFee(chain, result.value.local_xcm, forwardedXcms, feeAsset !== null && feeAsset !== void 0 ? feeAsset : nativeAsset);
1516
1516
  case 10:
1517
1517
  xcmFee = _context20.v;
1518
1518
  if (!(typeof xcmFee === 'bigint')) {
@@ -1575,36 +1575,88 @@ var PapiApi = /*#__PURE__*/function () {
1575
1575
  }, {
1576
1576
  key: "getXcmPaymentApiFee",
1577
1577
  value: function () {
1578
- var _getXcmPaymentApiFee = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee22(chain, xcm, asset) {
1578
+ var _getXcmPaymentApiFee = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee22(chain, localXcm, forwardedXcm, asset) {
1579
+ var _deliveryFeeRes$value, _deliveryFeeRes$value2;
1579
1580
  var transformXcm,
1581
+ transformedXcm,
1580
1582
  weight,
1581
- localizedLocation,
1582
- transformedLocation,
1583
- feeResult,
1584
- _args22 = arguments;
1583
+ assetLocalizedLoc,
1584
+ transformedAssetLoc,
1585
+ execFeeRes,
1586
+ deliveryFeeRes,
1587
+ deliveryFeeResolved,
1588
+ nativeAsset,
1589
+ deliveryFee,
1590
+ res,
1591
+ _args22 = arguments,
1592
+ _t5,
1593
+ _t6;
1585
1594
  return _regenerator().w(function (_context22) {
1586
- while (1) switch (_context22.n) {
1595
+ while (1) switch (_context22.p = _context22.n) {
1587
1596
  case 0:
1588
- transformXcm = _args22.length > 3 && _args22[3] !== undefined ? _args22[3] : false;
1597
+ transformXcm = _args22.length > 4 && _args22[4] !== undefined ? _args22[4] : false;
1598
+ transformedXcm = transformXcm ? _transform(localXcm) : localXcm;
1589
1599
  _context22.n = 1;
1590
- return this.api.getUnsafeApi().apis.XcmPaymentApi.query_xcm_weight(transformXcm ? _transform(xcm) : xcm);
1600
+ return this.api.getUnsafeApi().apis.XcmPaymentApi.query_xcm_weight(transformedXcm);
1591
1601
  case 1:
1592
1602
  weight = _context22.v;
1593
1603
  assertHasLocation(asset);
1594
- localizedLocation = chain.startsWith('AssetHub') || isRelayChain(chain) ? localizeLocation(chain, asset.location) : asset.location;
1595
- transformedLocation = _transform(localizedLocation);
1604
+ assetLocalizedLoc = localizeLocation(chain, asset.location);
1605
+ transformedAssetLoc = _transform(assetLocalizedLoc);
1596
1606
  _context22.n = 2;
1597
1607
  return this.api.getUnsafeApi().apis.XcmPaymentApi.query_weight_to_asset_fee(weight.value, {
1598
1608
  type: Version.V4,
1599
- value: transformedLocation
1609
+ value: transformedAssetLoc
1600
1610
  });
1601
1611
  case 2:
1602
- feeResult = _context22.v;
1603
- return _context22.a(2, feeResult.value);
1612
+ execFeeRes = _context22.v;
1613
+ if (!(forwardedXcm.length > 0)) {
1614
+ _context22.n = 4;
1615
+ break;
1616
+ }
1617
+ _context22.n = 3;
1618
+ return this.api.getUnsafeApi().apis.XcmPaymentApi.query_delivery_fees(forwardedXcm[0], forwardedXcm[1][0]);
1619
+ case 3:
1620
+ _t5 = _context22.v;
1621
+ _context22.n = 5;
1622
+ break;
1623
+ case 4:
1624
+ _t5 = undefined;
1625
+ case 5:
1626
+ deliveryFeeRes = _t5;
1627
+ deliveryFeeResolved = (deliveryFeeRes === null || deliveryFeeRes === void 0 || (_deliveryFeeRes$value = deliveryFeeRes.value) === null || _deliveryFeeRes$value === void 0 ? void 0 : _deliveryFeeRes$value.value.length) > 0 ? deliveryFeeRes === null || deliveryFeeRes === void 0 || (_deliveryFeeRes$value2 = deliveryFeeRes.value) === null || _deliveryFeeRes$value2 === void 0 ? void 0 : _deliveryFeeRes$value2.value[0].fun.value : 0n;
1628
+ nativeAsset = findNativeAssetInfoOrThrow(chain);
1629
+ if (!isAssetXcEqual(asset, nativeAsset)) {
1630
+ _context22.n = 6;
1631
+ break;
1632
+ }
1633
+ deliveryFee = deliveryFeeResolved;
1634
+ _context22.n = 9;
1635
+ break;
1636
+ case 6:
1637
+ _context22.p = 6;
1638
+ assertHasLocation(nativeAsset);
1639
+ _context22.n = 7;
1640
+ return this.quoteAhPrice(localizeLocation(chain, nativeAsset.location), assetLocalizedLoc, deliveryFeeResolved, false);
1641
+ case 7:
1642
+ res = _context22.v;
1643
+ deliveryFee = res !== null && res !== void 0 ? res : 0n;
1644
+ _context22.n = 9;
1645
+ break;
1646
+ case 8:
1647
+ _context22.p = 8;
1648
+ _t6 = _context22.v;
1649
+ if (_t6 instanceof Error && /Runtime entry RuntimeCall\(.+\) not found/.test(_t6.message)) {
1650
+ deliveryFee = 0n;
1651
+ } else {
1652
+ deliveryFee = 0n;
1653
+ }
1654
+ case 9:
1655
+ return _context22.a(2, execFeeRes.value + deliveryFee);
1604
1656
  }
1605
- }, _callee22, this);
1657
+ }, _callee22, this, [[6, 8]]);
1606
1658
  }));
1607
- function getXcmPaymentApiFee(_x38, _x39, _x40) {
1659
+ function getXcmPaymentApiFee(_x38, _x39, _x40, _x41) {
1608
1660
  return _getXcmPaymentApiFee.apply(this, arguments);
1609
1661
  }
1610
1662
  return getXcmPaymentApiFee;
@@ -1614,11 +1666,11 @@ var PapiApi = /*#__PURE__*/function () {
1614
1666
  value: function () {
1615
1667
  var _getDryRunXcm = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee23(_ref8) {
1616
1668
  var _ref9, _processAssetsDeposit, _ref0, _ref1, _ref10, _ref11, _ref12;
1617
- var originLocation, xcm, chain, origin, asset, tx, feeAsset, originFee, amount, supportsDryRunApi, transformedOriginLocation, result, symbol, isSuccess, failureReason, actualWeight, weight, forwardedXcms, destParaId, txMethod, _fee, emitted, reversedEvents, palletsWithIssued, isFeeAsset, feeAssetFeeEvent, processedAssetsAmount, feeEvent, fee, processedFee;
1669
+ var originLocation, xcm, chain, origin, asset, feeAsset, originFee, amount, supportsDryRunApi, transformedOriginLocation, result, symbol, isSuccess, failureReason, actualWeight, weight, forwardedXcms, destParaId, _fee, emitted, reversedEvents, palletsWithIssued, isFeeAsset, feeAssetFeeEvent, processedAssetsAmount, feeEvent, fee, processedFee;
1618
1670
  return _regenerator().w(function (_context23) {
1619
1671
  while (1) switch (_context23.n) {
1620
1672
  case 0:
1621
- originLocation = _ref8.originLocation, xcm = _ref8.xcm, chain = _ref8.chain, origin = _ref8.origin, asset = _ref8.asset, tx = _ref8.tx, feeAsset = _ref8.feeAsset, originFee = _ref8.originFee, amount = _ref8.amount;
1673
+ originLocation = _ref8.originLocation, xcm = _ref8.xcm, chain = _ref8.chain, origin = _ref8.origin, asset = _ref8.asset, feeAsset = _ref8.feeAsset, originFee = _ref8.originFee, amount = _ref8.amount;
1622
1674
  supportsDryRunApi = getAssetsObject(chain).supportsDryRunApi;
1623
1675
  if (supportsDryRunApi) {
1624
1676
  _context23.n = 1;
@@ -1652,16 +1704,12 @@ var PapiApi = /*#__PURE__*/function () {
1652
1704
  } : undefined;
1653
1705
  forwardedXcms = result.value.forwarded_xcms.length > 0 ? result.value.forwarded_xcms[0] : [];
1654
1706
  destParaId = forwardedXcms.length === 0 ? undefined : forwardedXcms[0].value.interior.type === 'Here' ? 0 : forwardedXcms[0].value.interior.value.value;
1655
- txMethod = this.getMethod(tx);
1656
- if (!(hasXcmPaymentApiSupport(chain) && asset && (
1657
- // Do not use XcmPaymentApi if method is `execute` on AssetHub or Polkadot
1658
- // as fee calculation would be incorrect
1659
- txMethod !== 'execute' || chain !== 'AssetHubPolkadot' && chain !== 'Polkadot'))) {
1707
+ if (!(hasXcmPaymentApiSupport(chain) && asset)) {
1660
1708
  _context23.n = 5;
1661
1709
  break;
1662
1710
  }
1663
1711
  _context23.n = 4;
1664
- return this.getXcmPaymentApiFee(chain, xcm, asset);
1712
+ return this.getXcmPaymentApiFee(chain, xcm, forwardedXcms, asset);
1665
1713
  case 4:
1666
1714
  _fee = _context23.v;
1667
1715
  if (!(typeof _fee === 'bigint')) {
@@ -1745,7 +1793,7 @@ var PapiApi = /*#__PURE__*/function () {
1745
1793
  }
1746
1794
  }, _callee23, this);
1747
1795
  }));
1748
- function getDryRunXcm(_x41) {
1796
+ function getDryRunXcm(_x42) {
1749
1797
  return _getDryRunXcm.apply(this, arguments);
1750
1798
  }
1751
1799
  return getDryRunXcm;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paraspell/sdk",
3
- "version": "11.8.0",
3
+ "version": "11.8.2",
4
4
  "description": "SDK for ParaSpell XCM/XCMP tool for developers",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,7 +25,7 @@
25
25
  "dependencies": {
26
26
  "@noble/hashes": "^1.8.0",
27
27
  "viem": "^2.36.0",
28
- "@paraspell/sdk-core": "11.8.0"
28
+ "@paraspell/sdk-core": "11.8.2"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "polkadot-api": ">= 1.17.2 < 2"