@paraspell/swap 13.1.0 → 13.2.1
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 +4 -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
|
|
425
|
+
_t = _t2(_context.v);
|
|
424
426
|
case 3:
|
|
425
427
|
hex = _t;
|
|
426
428
|
if (!(isPjsTx && api.type === 'PAPI')) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paraspell/swap",
|
|
3
|
-
"version": "13.1
|
|
3
|
+
"version": "13.2.1",
|
|
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": "^
|
|
49
|
+
"polkadot-api": "^2.0.2",
|
|
50
50
|
"postcss": "^8.5.8",
|
|
51
|
-
"react": "^19.2.
|
|
51
|
+
"react": "^19.2.5",
|
|
52
52
|
"rxjs": "^7.8.2",
|
|
53
|
-
"@paraspell/sdk": "13.1
|
|
54
|
-
"@paraspell/sdk
|
|
55
|
-
"@paraspell/sdk-pjs": "13.1
|
|
53
|
+
"@paraspell/sdk-core": "13.2.1",
|
|
54
|
+
"@paraspell/sdk": "13.2.1",
|
|
55
|
+
"@paraspell/sdk-pjs": "13.2.1"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@babel/core": "^7.29.0",
|