@paraspell/swap 14.5.0 → 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.
- package/dist/index.mjs +53 -5
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -1733,6 +1733,22 @@ var Hydration = {
|
|
|
1733
1733
|
]
|
|
1734
1734
|
}
|
|
1735
1735
|
},
|
|
1736
|
+
{
|
|
1737
|
+
parents: 1,
|
|
1738
|
+
interior: {
|
|
1739
|
+
X2: [
|
|
1740
|
+
{
|
|
1741
|
+
Parachain: 2034
|
|
1742
|
+
},
|
|
1743
|
+
{
|
|
1744
|
+
AccountKey20: {
|
|
1745
|
+
network: null,
|
|
1746
|
+
key: "0x2d01a621e4fa1cb9ae59c43b7fce2471ed0104d7"
|
|
1747
|
+
}
|
|
1748
|
+
}
|
|
1749
|
+
]
|
|
1750
|
+
}
|
|
1751
|
+
},
|
|
1736
1752
|
{
|
|
1737
1753
|
parents: 1,
|
|
1738
1754
|
interior: {
|
|
@@ -2191,6 +2207,22 @@ var Hydration = {
|
|
|
2191
2207
|
]
|
|
2192
2208
|
}
|
|
2193
2209
|
},
|
|
2210
|
+
{
|
|
2211
|
+
parents: 1,
|
|
2212
|
+
interior: {
|
|
2213
|
+
X2: [
|
|
2214
|
+
{
|
|
2215
|
+
Parachain: 2034
|
|
2216
|
+
},
|
|
2217
|
+
{
|
|
2218
|
+
AccountKey20: {
|
|
2219
|
+
network: null,
|
|
2220
|
+
key: "0x6250c75785e21190e9fe2bec56540fda4fbd8c6a"
|
|
2221
|
+
}
|
|
2222
|
+
}
|
|
2223
|
+
]
|
|
2224
|
+
}
|
|
2225
|
+
},
|
|
2194
2226
|
{
|
|
2195
2227
|
parents: 2,
|
|
2196
2228
|
interior: {
|
|
@@ -2816,6 +2848,22 @@ var Hydration = {
|
|
|
2816
2848
|
]
|
|
2817
2849
|
}
|
|
2818
2850
|
},
|
|
2851
|
+
{
|
|
2852
|
+
parents: 1,
|
|
2853
|
+
interior: {
|
|
2854
|
+
X2: [
|
|
2855
|
+
{
|
|
2856
|
+
Parachain: 2034
|
|
2857
|
+
},
|
|
2858
|
+
{
|
|
2859
|
+
AccountKey20: {
|
|
2860
|
+
network: null,
|
|
2861
|
+
key: "0xa538acee9d185683e14face48bc9ee2a0759f2a0"
|
|
2862
|
+
}
|
|
2863
|
+
}
|
|
2864
|
+
]
|
|
2865
|
+
}
|
|
2866
|
+
},
|
|
2819
2867
|
{
|
|
2820
2868
|
parents: 1,
|
|
2821
2869
|
interior: {
|
|
@@ -9137,7 +9185,7 @@ var calculateFee = /*#__PURE__*/function () {
|
|
|
9137
9185
|
case 0:
|
|
9138
9186
|
amount = _ref.amount, slippagePct = _ref.slippagePct, feeCalcAddress = _ref.feeCalcAddress, sender = _ref.sender;
|
|
9139
9187
|
_context.n = 1;
|
|
9140
|
-
return tradeRouter.getBestSell(currencyFromInfo.id, currencyToInfo.id, amount
|
|
9188
|
+
return tradeRouter.getBestSell(currencyFromInfo.id, currencyToInfo.id, amount);
|
|
9141
9189
|
case 1:
|
|
9142
9190
|
trade = _context.v;
|
|
9143
9191
|
nativeAsset = findNativeAssetInfoOrThrow(chain);
|
|
@@ -11535,7 +11583,7 @@ var getExecuteSwapInfo = /*#__PURE__*/function () {
|
|
|
11535
11583
|
amount: BigInt(amount),
|
|
11536
11584
|
originFee: xcmFeeResult.origin.fee,
|
|
11537
11585
|
originFeeAsset: xcmFeeResult.origin.asset,
|
|
11538
|
-
|
|
11586
|
+
isOriginFeeAsset: false
|
|
11539
11587
|
});
|
|
11540
11588
|
case 2:
|
|
11541
11589
|
_yield$buildOriginInf = _context.v;
|
|
@@ -11572,7 +11620,7 @@ var getExecuteSwapInfo = /*#__PURE__*/function () {
|
|
|
11572
11620
|
amount: amountOut
|
|
11573
11621
|
}),
|
|
11574
11622
|
originFee: xcmFeeResult.origin.fee,
|
|
11575
|
-
|
|
11623
|
+
isOriginFeeAsset: false,
|
|
11576
11624
|
paysDestFee: true,
|
|
11577
11625
|
destFeeDetail: xcmFeeResult.destination,
|
|
11578
11626
|
totalHopFee: totalHopFee,
|
|
@@ -11619,7 +11667,7 @@ var buildExchangeOriginInfo = /*#__PURE__*/function () {
|
|
|
11619
11667
|
amount: amount,
|
|
11620
11668
|
originFee: swapFee.fee,
|
|
11621
11669
|
originFeeAsset: swapFee.asset,
|
|
11622
|
-
|
|
11670
|
+
isOriginFeeAsset: false
|
|
11623
11671
|
});
|
|
11624
11672
|
case 1:
|
|
11625
11673
|
_yield$buildOriginInf = _context.v;
|
|
@@ -11646,7 +11694,7 @@ var buildExchangeDestInfo = function buildExchangeDestInfo(exchange, recipient,
|
|
|
11646
11694
|
amount: amountOut
|
|
11647
11695
|
}),
|
|
11648
11696
|
originFee: 0n,
|
|
11649
|
-
|
|
11697
|
+
isOriginFeeAsset: false,
|
|
11650
11698
|
paysDestFee: true,
|
|
11651
11699
|
destFeeDetail: {
|
|
11652
11700
|
fee: 0n,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paraspell/swap",
|
|
3
|
-
"version": "14.5.
|
|
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.
|
|
42
|
-
"@paraspell/sdk-common": "14.5.
|
|
43
|
-
"@paraspell/sdk-core": "14.5.
|
|
44
|
-
"@paraspell/sdk-pjs": "14.5.
|
|
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",
|