@paraspell/swap 14.5.1 → 14.5.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.
Files changed (2) hide show
  1. package/dist/index.mjs +5 -5
  2. package/package.json +5 -5
package/dist/index.mjs CHANGED
@@ -9185,7 +9185,7 @@ var calculateFee = /*#__PURE__*/function () {
9185
9185
  case 0:
9186
9186
  amount = _ref.amount, slippagePct = _ref.slippagePct, feeCalcAddress = _ref.feeCalcAddress, sender = _ref.sender;
9187
9187
  _context.n = 1;
9188
- return tradeRouter.getBestSell(currencyFromInfo.id, currencyToInfo.id, amount.toString());
9188
+ return tradeRouter.getBestSell(currencyFromInfo.id, currencyToInfo.id, amount);
9189
9189
  case 1:
9190
9190
  trade = _context.v;
9191
9191
  nativeAsset = findNativeAssetInfoOrThrow(chain);
@@ -11583,7 +11583,7 @@ var getExecuteSwapInfo = /*#__PURE__*/function () {
11583
11583
  amount: BigInt(amount),
11584
11584
  originFee: xcmFeeResult.origin.fee,
11585
11585
  originFeeAsset: xcmFeeResult.origin.asset,
11586
- isFeeAssetAh: false
11586
+ isOriginFeeAsset: false
11587
11587
  });
11588
11588
  case 2:
11589
11589
  _yield$buildOriginInf = _context.v;
@@ -11620,7 +11620,7 @@ var getExecuteSwapInfo = /*#__PURE__*/function () {
11620
11620
  amount: amountOut
11621
11621
  }),
11622
11622
  originFee: xcmFeeResult.origin.fee,
11623
- isFeeAssetAh: false,
11623
+ isOriginFeeAsset: false,
11624
11624
  paysDestFee: true,
11625
11625
  destFeeDetail: xcmFeeResult.destination,
11626
11626
  totalHopFee: totalHopFee,
@@ -11667,7 +11667,7 @@ var buildExchangeOriginInfo = /*#__PURE__*/function () {
11667
11667
  amount: amount,
11668
11668
  originFee: swapFee.fee,
11669
11669
  originFeeAsset: swapFee.asset,
11670
- isFeeAssetAh: false
11670
+ isOriginFeeAsset: false
11671
11671
  });
11672
11672
  case 1:
11673
11673
  _yield$buildOriginInf = _context.v;
@@ -11694,7 +11694,7 @@ var buildExchangeDestInfo = function buildExchangeDestInfo(exchange, recipient,
11694
11694
  amount: amountOut
11695
11695
  }),
11696
11696
  originFee: 0n,
11697
- isFeeAssetAh: false,
11697
+ isOriginFeeAsset: false,
11698
11698
  paysDestFee: true,
11699
11699
  destFeeDetail: {
11700
11700
  fee: 0n,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paraspell/swap",
3
- "version": "14.5.1",
3
+ "version": "14.5.2",
4
4
  "description": "Tool for XCM cross-chain asset exchanging across Polkadot and Kusama ecosystems",
5
5
  "repository": {
6
6
  "type": "git",
@@ -38,10 +38,10 @@
38
38
  "@crypto-dex-sdk/token-lists": "^0.1.4",
39
39
  "@galacticcouncil/descriptors": "^2.9.0",
40
40
  "@galacticcouncil/sdk-next": "^2.5.0",
41
- "@paraspell/sdk": "14.5.1",
42
- "@paraspell/sdk-common": "14.5.1",
43
- "@paraspell/sdk-core": "14.5.1",
44
- "@paraspell/sdk-pjs": "14.5.1",
41
+ "@paraspell/sdk": "14.5.2",
42
+ "@paraspell/sdk-common": "14.5.2",
43
+ "@paraspell/sdk-core": "14.5.2",
44
+ "@paraspell/sdk-pjs": "14.5.2",
45
45
  "@polkadot/api": "^17.0.2",
46
46
  "@polkadot/types": "^17.0.2",
47
47
  "@polkadot/util": "^14.0.3",