@paraspell/swap 14.3.6 → 14.4.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.
- package/dist/index.mjs +19 -19
- package/package.json +15 -15
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createChainClient as createChainClient$1, getPaymentInfo, registerSwapExtension } from '@paraspell/sdk';
|
|
2
|
-
import { UnsupportedOperationError, assertCurrencyCore, dryRun, getDryRunError, DryRunFailedError, isConfig, getNativeAssets, RoutingResolutionError, findAssetInfoById, getOtherAssets, getChainProviders, parseUnits, getNativeAssetSymbol, padValueBy, formatUnits as formatUnits$1, AmountTooLowError, getBalance, localizeLocation, getAssets, Parents, isSymbolMatch, getParaId, UnableToComputeError, findNativeAssetInfoOrThrow, InvalidCurrencyError, findAssetInfoOrThrow, findAssetInfoByLoc, isSymbolSpecifier, findBestMatches, findAssetInfoBySymbol, getSupportedAssetsImpl, isAssetEqual, findAssetInfoOnDestImpl, normalizeExchange, EXCHANGE_CHAINS, deepEqual, reverseTransformLocation, getAssetsImpl, ScenarioNotSupportedError, applyDecimalAbstraction, findAssetInfo, Builder, isChainEvm, convertBuilderConfig, handleSwapExecuteTransfer, getXcmFee, getOriginXcmFee as getOriginXcmFee$1, InvalidAddressError, MissingParameterError, BatchMode, createChainClient as createChainClient$2,
|
|
2
|
+
import { UnsupportedOperationError, assertCurrencyCore, dryRun, getDryRunError, DryRunFailedError, isConfig, getNativeAssets, RoutingResolutionError, findAssetInfoById, getOtherAssets, getChainProviders, parseUnits, getNativeAssetSymbol, padValueBy, formatUnits as formatUnits$1, AmountTooLowError, getBalance, localizeLocation, getAssets, Parents, isSymbolMatch, getParaId, UnableToComputeError, findNativeAssetInfoOrThrow, InvalidCurrencyError, findAssetInfoOrThrow, findAssetInfoByLoc, isSymbolSpecifier, findBestMatches, findAssetInfoBySymbol, getSupportedAssetsImpl, isAssetEqual, findAssetInfoOnDestImpl, normalizeExchange, EXCHANGE_CHAINS, deepEqual, reverseTransformLocation, getAssetsImpl, ScenarioNotSupportedError, applyDecimalAbstraction, findAssetInfo, Builder, isChainEvm, convertBuilderConfig, handleSwapExecuteTransfer, getXcmFee, getOriginXcmFee as getOriginXcmFee$1, InvalidAddressError, MissingParameterError, BatchMode, createChainClient as createChainClient$2, getExistentialDeposit, buildHopInfo, getRelayChainSymbol, aggregateHopFees, buildDestInfo, buildOriginInfo } from '@paraspell/sdk-core';
|
|
3
3
|
import { toHex } from 'polkadot-api/utils';
|
|
4
4
|
import 'polkadot-api';
|
|
5
5
|
import { Wallet } from '@acala-network/sdk';
|
|
@@ -838,6 +838,22 @@ var AssetHubPolkadot = {
|
|
|
838
838
|
]
|
|
839
839
|
}
|
|
840
840
|
},
|
|
841
|
+
{
|
|
842
|
+
parents: 1,
|
|
843
|
+
interior: {
|
|
844
|
+
X3: [
|
|
845
|
+
{
|
|
846
|
+
Parachain: 1000
|
|
847
|
+
},
|
|
848
|
+
{
|
|
849
|
+
PalletInstance: 50
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
GeneralIndex: 22222012
|
|
853
|
+
}
|
|
854
|
+
]
|
|
855
|
+
}
|
|
856
|
+
},
|
|
841
857
|
{
|
|
842
858
|
parents: 2,
|
|
843
859
|
interior: {
|
|
@@ -1928,22 +1944,6 @@ var Hydration = {
|
|
|
1928
1944
|
]
|
|
1929
1945
|
}
|
|
1930
1946
|
},
|
|
1931
|
-
{
|
|
1932
|
-
parents: 1,
|
|
1933
|
-
interior: {
|
|
1934
|
-
X2: [
|
|
1935
|
-
{
|
|
1936
|
-
Parachain: 2034
|
|
1937
|
-
},
|
|
1938
|
-
{
|
|
1939
|
-
AccountKey20: {
|
|
1940
|
-
network: null,
|
|
1941
|
-
key: "0xc09cf2f85367f3c2ab66e094283de3a499cb9108"
|
|
1942
|
-
}
|
|
1943
|
-
}
|
|
1944
|
-
]
|
|
1945
|
-
}
|
|
1946
|
-
},
|
|
1947
1947
|
{
|
|
1948
1948
|
parents: 1,
|
|
1949
1949
|
interior: {
|
|
@@ -11038,7 +11038,7 @@ var computeExchangeMinAmount = /*#__PURE__*/function () {
|
|
|
11038
11038
|
while (1) switch (_context.n) {
|
|
11039
11039
|
case 0:
|
|
11040
11040
|
exchange = options.exchange;
|
|
11041
|
-
existentialDeposit =
|
|
11041
|
+
existentialDeposit = getExistentialDeposit(exchange.chain, {
|
|
11042
11042
|
location: exchange.assetFrom.location
|
|
11043
11043
|
});
|
|
11044
11044
|
nativeSymbol = getNativeAssetSymbol(exchange.chain);
|
|
@@ -11119,7 +11119,7 @@ var computeLocalTransferableAmount = /*#__PURE__*/function () {
|
|
|
11119
11119
|
});
|
|
11120
11120
|
case 1:
|
|
11121
11121
|
balance = _context.v;
|
|
11122
|
-
existentialDeposit =
|
|
11122
|
+
existentialDeposit = getExistentialDeposit(exchange.chain, currency);
|
|
11123
11123
|
swapFee = 0n;
|
|
11124
11124
|
nativeSymbol = getNativeAssetSymbol(exchange.chain);
|
|
11125
11125
|
if (!(exchange.assetFrom.symbol === nativeSymbol)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paraspell/swap",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.4.0",
|
|
4
4
|
"description": "Tool for XCM cross-chain asset exchanging across Polkadot and Kusama ecosystems",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -36,20 +36,20 @@
|
|
|
36
36
|
"@crypto-dex-sdk/math": "^0.1.5",
|
|
37
37
|
"@crypto-dex-sdk/parachains-bifrost": "^0.1.5",
|
|
38
38
|
"@crypto-dex-sdk/token-lists": "^0.1.4",
|
|
39
|
-
"@galacticcouncil/descriptors": "^2.
|
|
40
|
-
"@galacticcouncil/sdk-next": "^2.
|
|
41
|
-
"@paraspell/sdk": "14.
|
|
42
|
-
"@paraspell/sdk-common": "14.
|
|
43
|
-
"@paraspell/sdk-core": "14.
|
|
44
|
-
"@paraspell/sdk-pjs": "14.
|
|
45
|
-
"@polkadot/api": "^
|
|
46
|
-
"@polkadot/types": "^
|
|
39
|
+
"@galacticcouncil/descriptors": "^2.9.0",
|
|
40
|
+
"@galacticcouncil/sdk-next": "^2.3.2",
|
|
41
|
+
"@paraspell/sdk": "14.4.0",
|
|
42
|
+
"@paraspell/sdk-common": "14.4.0",
|
|
43
|
+
"@paraspell/sdk-core": "14.4.0",
|
|
44
|
+
"@paraspell/sdk-pjs": "14.4.0",
|
|
45
|
+
"@polkadot/api": "^17.0.1",
|
|
46
|
+
"@polkadot/types": "^17.0.1",
|
|
47
47
|
"@polkadot/util": "^14.0.3",
|
|
48
48
|
"@zenlink-types/bifrost": "^1.7.7",
|
|
49
49
|
"ethers": "^5.8.0",
|
|
50
50
|
"ethers-v6": "npm:ethers@6.17.0",
|
|
51
|
-
"polkadot-api": "^3.
|
|
52
|
-
"react": "^19.
|
|
51
|
+
"polkadot-api": "^3.2.0",
|
|
52
|
+
"react": "^19.3.0",
|
|
53
53
|
"rxjs": "^7.8.2"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
@@ -59,11 +59,11 @@
|
|
|
59
59
|
"@rollup/plugin-babel": "^7.1.0",
|
|
60
60
|
"@rollup/plugin-json": "^6.1.0",
|
|
61
61
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
62
|
-
"@vitest/coverage-v8": "^
|
|
63
|
-
"dotenv": "^
|
|
64
|
-
"rollup": "^4.
|
|
62
|
+
"@vitest/coverage-v8": "^5.0.2",
|
|
63
|
+
"dotenv": "^18.0.4",
|
|
64
|
+
"rollup": "^4.63.5",
|
|
65
65
|
"rollup-plugin-dts": "^6.5.1",
|
|
66
|
-
"tsx": "^4.23.
|
|
66
|
+
"tsx": "^4.23.15"
|
|
67
67
|
},
|
|
68
68
|
"scripts": {
|
|
69
69
|
"compile": "tsc --noEmit",
|