@paraspell/swap 13.0.1 → 13.2.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.
Files changed (2) hide show
  1. package/dist/index.mjs +23 -2
  2. package/package.json +6 -6
package/dist/index.mjs CHANGED
@@ -1,5 +1,6 @@
1
1
  import { createChainClient as createChainClient$1, getBalance, transform, registerSwapExtension } from '@paraspell/sdk';
2
2
  import { getNativeAssets, RoutingResolutionError, findAssetInfoById, getOtherAssets, getChainProviders, parseUnits, getNativeAssetSymbol, padValueBy, formatUnits as formatUnits$1, AmountTooLowError, localizeLocation, getAssets, Parents, isSymbolMatch, getParaId, UnableToComputeError, getAssetDecimals, InvalidCurrencyError, findAssetInfoOrThrow, isOverrideLocationSpecifier, UnsupportedOperationError, isSymbolSpecifier, findBestMatches, findAssetInfoBySymbol, findAssetInfoByLoc, deepEqual, normalizeExchange, EXCHANGE_CHAINS, reverseTransformLocation, isAssetEqual, isExternalChain, isSystemAsset, TransferToAhNotSupported, ScenarioNotSupportedError, applyDecimalAbstraction, isConfig, findAssetInfo, getRelayChainOf, hasSupportForAsset, Builder, isChainEvm, convertBuilderConfig, InvalidAddressError, MissingParameterError, DryRunFailedError, handleSwapExecuteTransfer, BatchMode, dryRun, getFailureInfo, getOriginXcmFee, getXcmFee, createChainClient as createChainClient$2, getExistentialDepositOrThrow, getBalance as getBalance$1 } from '@paraspell/sdk-core';
3
+ import { toHex } from 'polkadot-api/utils';
3
4
  import 'polkadot-api';
4
5
  import { Wallet } from '@acala-network/sdk';
5
6
  import { FixedPointNumber } from '@acala-network/sdk-core';
@@ -404,7 +405,7 @@ var stripHeaderBytes = function stripHeaderBytes(hex, byteCount) {
404
405
  };
405
406
  var convertTxToTarget = /*#__PURE__*/function () {
406
407
  var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(tx, api) {
407
- var isPjsTx, hex, hex2, hex3, _t;
408
+ var isPjsTx, hex, hex2, hex3, _t, _t2;
408
409
  return _regenerator().w(function (_context) {
409
410
  while (1) switch (_context.p = _context.n) {
410
411
  case 0:
@@ -417,10 +418,11 @@ var convertTxToTarget = /*#__PURE__*/function () {
417
418
  _context.n = 3;
418
419
  break;
419
420
  case 1:
421
+ _t2 = toHex;
420
422
  _context.n = 2;
421
423
  return tx.getEncodedData();
422
424
  case 2:
423
- _t = _context.v.asHex();
425
+ _t = _t2(_context.v);
424
426
  case 3:
425
427
  hex = _t;
426
428
  if (!(isPjsTx && api.type === 'PAPI')) {
@@ -1724,6 +1726,25 @@ var Hydration = {
1724
1726
  ]
1725
1727
  }
1726
1728
  },
1729
+ {
1730
+ parents: 1,
1731
+ interior: {
1732
+ X3: [
1733
+ {
1734
+ Parachain: 2004
1735
+ },
1736
+ {
1737
+ PalletInstance: 110
1738
+ },
1739
+ {
1740
+ AccountKey20: {
1741
+ network: null,
1742
+ key: "0x3f9610a50630bc7d4530736942ee2bc9e00e8de8"
1743
+ }
1744
+ }
1745
+ ]
1746
+ }
1747
+ },
1727
1748
  {
1728
1749
  parents: 1,
1729
1750
  interior: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paraspell/swap",
3
- "version": "13.0.1",
3
+ "version": "13.2.0",
4
4
  "description": "Tool for XCM cross-chain asset exchanging across Polkadot and Kusama ecosystems",
5
5
  "type": "module",
6
6
  "exports": {
@@ -46,13 +46,13 @@
46
46
  "ethers-v6": "npm:ethers@^6.16.0",
47
47
  "jsbi": "^4.3.2",
48
48
  "lodash-es": "^4.17.23",
49
- "polkadot-api": "^1.23.3",
49
+ "polkadot-api": "^2.0.2",
50
50
  "postcss": "^8.5.8",
51
- "react": "^19.2.4",
51
+ "react": "^19.2.5",
52
52
  "rxjs": "^7.8.2",
53
- "@paraspell/sdk": "13.0.1",
54
- "@paraspell/sdk-core": "13.0.1",
55
- "@paraspell/sdk-pjs": "13.0.1"
53
+ "@paraspell/sdk": "13.2.0",
54
+ "@paraspell/sdk-pjs": "13.2.0",
55
+ "@paraspell/sdk-core": "13.2.0"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@babel/core": "^7.29.0",