@paraspell/swap 12.8.8 → 12.9.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 +70 -2
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createChainClient as createChainClient$1, UnsupportedOperationError, getNativeAssets, RoutingResolutionError, findAssetInfoById, getOtherAssets, getChainProviders, parseUnits, getNativeAssetSymbol, padValueBy, formatUnits as formatUnits$1, AmountTooLowError, getBalance, localizeLocation, getAssets, transform, Parents, isSymbolMatch, getParaId, UnableToComputeError, getAssetDecimals, InvalidCurrencyError, findAssetInfoOrThrow, isOverrideLocationSpecifier, isSymbolSpecifier, findBestMatches, findAssetInfoBySymbol, findAssetInfoByLoc, deepEqual, EXCHANGE_CHAINS, reverseTransformLocation, isAssetEqual, isExternalChain, isSystemAsset, TransferToAhNotSupported, ScenarioNotSupportedError, applyDecimalAbstraction, findAssetInfo, getRelayChainOf, hasSupportForAsset, Builder, isChainEvm, InvalidAddressError, MissingParameterError, DryRunFailedError, handleSwapExecuteTransfer, dryRun, getFailureInfo, getOriginXcmFee, getXcmFee, getExistentialDepositOrThrow } from '@paraspell/sdk';
|
|
1
|
+
import { createChainClient as createChainClient$1, UnsupportedOperationError, getNativeAssets, RoutingResolutionError, findAssetInfoById, getOtherAssets, getChainProviders, parseUnits, getNativeAssetSymbol, padValueBy, formatUnits as formatUnits$1, AmountTooLowError, getBalance, localizeLocation, getAssets, transform, Parents, isSymbolMatch, getParaId, UnableToComputeError, getAssetDecimals, InvalidCurrencyError, findAssetInfoOrThrow, isOverrideLocationSpecifier, isSymbolSpecifier, findBestMatches, findAssetInfoBySymbol, findAssetInfoByLoc, deepEqual, EXCHANGE_CHAINS, reverseTransformLocation, isAssetEqual, isExternalChain, isSystemAsset, TransferToAhNotSupported, ScenarioNotSupportedError, applyDecimalAbstraction, findAssetInfo, getRelayChainOf, hasSupportForAsset, Builder, isChainEvm, InvalidAddressError, MissingParameterError, DryRunFailedError, handleSwapExecuteTransfer, dryRun, getFailureInfo, getOriginXcmFee, getXcmFee, getExistentialDepositOrThrow, normalizeExchange } from '@paraspell/sdk';
|
|
2
2
|
export { EXCHANGE_CHAINS } from '@paraspell/sdk';
|
|
3
3
|
import { Wallet } from '@acala-network/sdk';
|
|
4
4
|
import { FixedPointNumber } from '@acala-network/sdk-core';
|
|
@@ -4890,6 +4890,40 @@ var AcalaDex = {
|
|
|
4890
4890
|
}
|
|
4891
4891
|
}
|
|
4892
4892
|
],
|
|
4893
|
+
[
|
|
4894
|
+
{
|
|
4895
|
+
parents: 1,
|
|
4896
|
+
interior: {
|
|
4897
|
+
X2: [
|
|
4898
|
+
{
|
|
4899
|
+
Parachain: 2000
|
|
4900
|
+
},
|
|
4901
|
+
{
|
|
4902
|
+
GeneralKey: {
|
|
4903
|
+
length: 2,
|
|
4904
|
+
data: "0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
4905
|
+
}
|
|
4906
|
+
}
|
|
4907
|
+
]
|
|
4908
|
+
}
|
|
4909
|
+
},
|
|
4910
|
+
{
|
|
4911
|
+
parents: 1,
|
|
4912
|
+
interior: {
|
|
4913
|
+
X2: [
|
|
4914
|
+
{
|
|
4915
|
+
Parachain: 2032
|
|
4916
|
+
},
|
|
4917
|
+
{
|
|
4918
|
+
GeneralKey: {
|
|
4919
|
+
length: 2,
|
|
4920
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
4921
|
+
}
|
|
4922
|
+
}
|
|
4923
|
+
]
|
|
4924
|
+
}
|
|
4925
|
+
}
|
|
4926
|
+
],
|
|
4893
4927
|
[
|
|
4894
4928
|
{
|
|
4895
4929
|
parents: 1,
|
|
@@ -5374,6 +5408,40 @@ var AcalaDex = {
|
|
|
5374
5408
|
}
|
|
5375
5409
|
}
|
|
5376
5410
|
],
|
|
5411
|
+
[
|
|
5412
|
+
{
|
|
5413
|
+
parents: 1,
|
|
5414
|
+
interior: {
|
|
5415
|
+
X3: [
|
|
5416
|
+
{
|
|
5417
|
+
Parachain: 1000
|
|
5418
|
+
},
|
|
5419
|
+
{
|
|
5420
|
+
PalletInstance: 50
|
|
5421
|
+
},
|
|
5422
|
+
{
|
|
5423
|
+
GeneralIndex: 22222012
|
|
5424
|
+
}
|
|
5425
|
+
]
|
|
5426
|
+
}
|
|
5427
|
+
},
|
|
5428
|
+
{
|
|
5429
|
+
parents: 1,
|
|
5430
|
+
interior: {
|
|
5431
|
+
X2: [
|
|
5432
|
+
{
|
|
5433
|
+
Parachain: 2032
|
|
5434
|
+
},
|
|
5435
|
+
{
|
|
5436
|
+
GeneralKey: {
|
|
5437
|
+
length: 2,
|
|
5438
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
5439
|
+
}
|
|
5440
|
+
}
|
|
5441
|
+
]
|
|
5442
|
+
}
|
|
5443
|
+
}
|
|
5444
|
+
],
|
|
5377
5445
|
[
|
|
5378
5446
|
{
|
|
5379
5447
|
parents: 1,
|
|
@@ -10839,7 +10907,7 @@ var RouterBuilderCore = /*#__PURE__*/function () {
|
|
|
10839
10907
|
key: "exchange",
|
|
10840
10908
|
value: function exchange(chain) {
|
|
10841
10909
|
return new RouterBuilderCore(this._builderOptions, _objectSpread2(_objectSpread2({}, this._options), {}, {
|
|
10842
|
-
exchange: chain
|
|
10910
|
+
exchange: normalizeExchange(chain)
|
|
10843
10911
|
}));
|
|
10844
10912
|
}
|
|
10845
10913
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paraspell/swap",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.9.0",
|
|
4
4
|
"description": "Tool for XCM cross-chain asset exchanging across Polkadot and Kusama ecosystems",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"postcss": "^8.5.6",
|
|
51
51
|
"react": "^19.2.4",
|
|
52
52
|
"rxjs": "^7.8.2",
|
|
53
|
-
"@paraspell/sdk": "12.
|
|
54
|
-
"@paraspell/sdk-pjs": "12.
|
|
53
|
+
"@paraspell/sdk": "12.9.0",
|
|
54
|
+
"@paraspell/sdk-pjs": "12.9.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@babel/core": "^7.29.0",
|