@paraspell/sdk-core 11.14.5 → 11.14.7
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.cjs +258 -392
- package/dist/index.d.ts +6 -35
- package/dist/index.mjs +260 -394
- package/package.json +11 -12
package/dist/index.cjs
CHANGED
|
@@ -1193,10 +1193,6 @@ var Astar$1 = {
|
|
|
1193
1193
|
name: "Astar",
|
|
1194
1194
|
endpoint: "wss://rpc.astar.network"
|
|
1195
1195
|
},
|
|
1196
|
-
{
|
|
1197
|
-
name: "Blast",
|
|
1198
|
-
endpoint: "wss://astar.public.blastapi.io"
|
|
1199
|
-
},
|
|
1200
1196
|
{
|
|
1201
1197
|
name: "Dwellir",
|
|
1202
1198
|
endpoint: "wss://astar-rpc.n.dwellir.com"
|
|
@@ -1301,10 +1297,6 @@ var Darwinia$1 = {
|
|
|
1301
1297
|
name: "Darwinia",
|
|
1302
1298
|
endpoint: "wss://rpc.darwinia.network"
|
|
1303
1299
|
},
|
|
1304
|
-
{
|
|
1305
|
-
name: "Dwellir",
|
|
1306
|
-
endpoint: "wss://darwinia-rpc.n.dwellir.com"
|
|
1307
|
-
},
|
|
1308
1300
|
{
|
|
1309
1301
|
name: "Subquery",
|
|
1310
1302
|
endpoint: "wss://darwinia.rpc.subquery.network/public/ws"
|
|
@@ -1345,17 +1337,6 @@ var Hydration$1 = {
|
|
|
1345
1337
|
}
|
|
1346
1338
|
]
|
|
1347
1339
|
};
|
|
1348
|
-
var IntegriteePolkadot$1 = {
|
|
1349
|
-
name: "Integritee Network",
|
|
1350
|
-
info: "integritee",
|
|
1351
|
-
paraId: 2039,
|
|
1352
|
-
providers: [
|
|
1353
|
-
{
|
|
1354
|
-
name: "Integritee",
|
|
1355
|
-
endpoint: "wss://polkadot.api.integritee.network"
|
|
1356
|
-
}
|
|
1357
|
-
]
|
|
1358
|
-
};
|
|
1359
1340
|
var Interlay$1 = {
|
|
1360
1341
|
name: "Interlay",
|
|
1361
1342
|
info: "interlay",
|
|
@@ -1406,10 +1387,6 @@ var Moonbeam$1 = {
|
|
|
1406
1387
|
name: "Allnodes",
|
|
1407
1388
|
endpoint: "wss://moonbeam-rpc.publicnode.com"
|
|
1408
1389
|
},
|
|
1409
|
-
{
|
|
1410
|
-
name: "Blast",
|
|
1411
|
-
endpoint: "wss://moonbeam.public.blastapi.io"
|
|
1412
|
-
},
|
|
1413
1390
|
{
|
|
1414
1391
|
name: "IBP1",
|
|
1415
1392
|
endpoint: "wss://moonbeam.ibp.network"
|
|
@@ -1553,10 +1530,6 @@ var Nodle$1 = {
|
|
|
1553
1530
|
info: "nodle",
|
|
1554
1531
|
paraId: 2026,
|
|
1555
1532
|
providers: [
|
|
1556
|
-
{
|
|
1557
|
-
name: "Dwellir",
|
|
1558
|
-
endpoint: "wss://nodle-rpc.dwellir.com"
|
|
1559
|
-
},
|
|
1560
1533
|
{
|
|
1561
1534
|
name: "OnFinality",
|
|
1562
1535
|
endpoint: "wss://nodle-parachain.api.onfinality.io/public-ws"
|
|
@@ -1594,14 +1567,6 @@ var Phala$1 = {
|
|
|
1594
1567
|
name: "Dwellir",
|
|
1595
1568
|
endpoint: "wss://phala-rpc.n.dwellir.com"
|
|
1596
1569
|
},
|
|
1597
|
-
{
|
|
1598
|
-
name: "Helikon",
|
|
1599
|
-
endpoint: "wss://rpc.helikon.io/phala"
|
|
1600
|
-
},
|
|
1601
|
-
{
|
|
1602
|
-
name: "OnFinality",
|
|
1603
|
-
endpoint: "wss://phala.api.onfinality.io/public-ws"
|
|
1604
|
-
},
|
|
1605
1570
|
{
|
|
1606
1571
|
name: "RadiumBlock",
|
|
1607
1572
|
endpoint: "wss://phala.public.curie.radiumblock.co/ws"
|
|
@@ -1838,21 +1803,6 @@ var BridgeHubKusama$1 = {
|
|
|
1838
1803
|
}
|
|
1839
1804
|
]
|
|
1840
1805
|
};
|
|
1841
|
-
var IntegriteeKusama$1 = {
|
|
1842
|
-
name: "Integritee Network",
|
|
1843
|
-
info: "integritee",
|
|
1844
|
-
paraId: 2015,
|
|
1845
|
-
providers: [
|
|
1846
|
-
{
|
|
1847
|
-
name: "Integritee",
|
|
1848
|
-
endpoint: "wss://kusama.api.integritee.network"
|
|
1849
|
-
},
|
|
1850
|
-
{
|
|
1851
|
-
name: "OnFinality",
|
|
1852
|
-
endpoint: "wss://integritee-kusama.api.onfinality.io/public-ws"
|
|
1853
|
-
}
|
|
1854
|
-
]
|
|
1855
|
-
};
|
|
1856
1806
|
var Karura$1 = {
|
|
1857
1807
|
name: "Karura",
|
|
1858
1808
|
info: "karura",
|
|
@@ -2067,10 +2017,6 @@ var Crab$1 = {
|
|
|
2067
2017
|
{
|
|
2068
2018
|
name: "Darwinia",
|
|
2069
2019
|
endpoint: "wss://crab-rpc.darwinia.network/"
|
|
2070
|
-
},
|
|
2071
|
-
{
|
|
2072
|
-
name: "Dwellir",
|
|
2073
|
-
endpoint: "wss://darwiniacrab-rpc.n.dwellir.com"
|
|
2074
2020
|
}
|
|
2075
2021
|
]
|
|
2076
2022
|
};
|
|
@@ -2196,10 +2142,6 @@ var AssetHubWestend$1 = {
|
|
|
2196
2142
|
{
|
|
2197
2143
|
name: "Parity",
|
|
2198
2144
|
endpoint: "wss://westend-asset-hub-rpc.polkadot.io"
|
|
2199
|
-
},
|
|
2200
|
-
{
|
|
2201
|
-
name: "Permanence DAO EU",
|
|
2202
|
-
endpoint: "wss://asset-hub-westend.rpc.permanence.io"
|
|
2203
2145
|
}
|
|
2204
2146
|
]
|
|
2205
2147
|
};
|
|
@@ -2328,6 +2270,10 @@ var BifrostPaseo$1 = {
|
|
|
2328
2270
|
{
|
|
2329
2271
|
name: "Liebi",
|
|
2330
2272
|
endpoint: "wss://bifrost-rpc.paseo.liebi.com/ws"
|
|
2273
|
+
},
|
|
2274
|
+
{
|
|
2275
|
+
name: "Liebi2",
|
|
2276
|
+
endpoint: "wss://bifrost-rpc.paseo2.liebi.com/ws"
|
|
2331
2277
|
}
|
|
2332
2278
|
]
|
|
2333
2279
|
};
|
|
@@ -2394,17 +2340,6 @@ var HydrationPaseo$1 = {
|
|
|
2394
2340
|
}
|
|
2395
2341
|
]
|
|
2396
2342
|
};
|
|
2397
|
-
var IntegriteePaseo$1 = {
|
|
2398
|
-
name: "Integritee Network (Paseo)",
|
|
2399
|
-
info: "integritee",
|
|
2400
|
-
paraId: 2039,
|
|
2401
|
-
providers: [
|
|
2402
|
-
{
|
|
2403
|
-
name: "Integritee",
|
|
2404
|
-
endpoint: "wss://paseo.api.integritee.network"
|
|
2405
|
-
}
|
|
2406
|
-
]
|
|
2407
|
-
};
|
|
2408
2343
|
var KiltPaseo$1 = {
|
|
2409
2344
|
name: "KILT Peregrine",
|
|
2410
2345
|
info: "kilt",
|
|
@@ -2438,17 +2373,6 @@ var NeuroWebPaseo$1 = {
|
|
|
2438
2373
|
}
|
|
2439
2374
|
]
|
|
2440
2375
|
};
|
|
2441
|
-
var NodlePaseo$1 = {
|
|
2442
|
-
name: "Nodle",
|
|
2443
|
-
info: "NodleParadis",
|
|
2444
|
-
paraId: 2026,
|
|
2445
|
-
providers: [
|
|
2446
|
-
{
|
|
2447
|
-
name: "OnFinality",
|
|
2448
|
-
endpoint: "wss://node-7273232234617282560.nv.onfinality.io/ws?apikey=b937a7d7-7395-49b9-b745-60a0342fa365"
|
|
2449
|
-
}
|
|
2450
|
-
]
|
|
2451
|
-
};
|
|
2452
2376
|
var PAssetHub$1 = {
|
|
2453
2377
|
name: "PAssetHub - Contracts",
|
|
2454
2378
|
info: "PAssetHub - Contracts",
|
|
@@ -2677,7 +2601,6 @@ var configs = {
|
|
|
2677
2601
|
Darwinia: Darwinia$1,
|
|
2678
2602
|
EnergyWebX: EnergyWebX$1,
|
|
2679
2603
|
Hydration: Hydration$1,
|
|
2680
|
-
IntegriteePolkadot: IntegriteePolkadot$1,
|
|
2681
2604
|
Interlay: Interlay$1,
|
|
2682
2605
|
Heima: Heima$1,
|
|
2683
2606
|
Jamton: Jamton$1,
|
|
@@ -2700,7 +2623,6 @@ var configs = {
|
|
|
2700
2623
|
Xode: Xode$1,
|
|
2701
2624
|
AssetHubKusama: AssetHubKusama$1,
|
|
2702
2625
|
BridgeHubKusama: BridgeHubKusama$1,
|
|
2703
|
-
IntegriteeKusama: IntegriteeKusama$1,
|
|
2704
2626
|
Karura: Karura$1,
|
|
2705
2627
|
Kintsugi: Kintsugi$1,
|
|
2706
2628
|
Moonriver: Moonriver$1,
|
|
@@ -2732,11 +2654,9 @@ var configs = {
|
|
|
2732
2654
|
EnergyWebXPaseo: EnergyWebXPaseo$1,
|
|
2733
2655
|
HeimaPaseo: HeimaPaseo$1,
|
|
2734
2656
|
HydrationPaseo: HydrationPaseo$1,
|
|
2735
|
-
IntegriteePaseo: IntegriteePaseo$1,
|
|
2736
2657
|
KiltPaseo: KiltPaseo$1,
|
|
2737
2658
|
LaosPaseo: LaosPaseo$1,
|
|
2738
2659
|
NeuroWebPaseo: NeuroWebPaseo$1,
|
|
2739
|
-
NodlePaseo: NodlePaseo$1,
|
|
2740
2660
|
PAssetHub: PAssetHub$1,
|
|
2741
2661
|
PeoplePaseo: PeoplePaseo$1,
|
|
2742
2662
|
ZeitgeistPaseo: ZeitgeistPaseo$1,
|
|
@@ -2995,7 +2915,7 @@ var getMythosOriginFee = /*#__PURE__*/function () {
|
|
|
2995
2915
|
return ahApi.init('AssetHubPolkadot');
|
|
2996
2916
|
case 1:
|
|
2997
2917
|
_context.n = 2;
|
|
2998
|
-
return getParaEthTransferFees(ahApi);
|
|
2918
|
+
return getParaEthTransferFees(ahApi, false);
|
|
2999
2919
|
case 2:
|
|
3000
2920
|
_yield$getParaEthTran = _context.v;
|
|
3001
2921
|
_yield$getParaEthTran2 = _slicedToArray(_yield$getParaEthTran, 2);
|
|
@@ -3007,12 +2927,15 @@ var getMythosOriginFee = /*#__PURE__*/function () {
|
|
|
3007
2927
|
return ahApi.quoteAhPrice(DOT_LOCATION, nativeAsset.location, bridgeFee + ahExecutionFee);
|
|
3008
2928
|
case 3:
|
|
3009
2929
|
feeConverted = _context.v;
|
|
2930
|
+
_context.n = 4;
|
|
2931
|
+
return ahApi.disconnect();
|
|
2932
|
+
case 4:
|
|
3010
2933
|
if (feeConverted) {
|
|
3011
|
-
_context.n =
|
|
2934
|
+
_context.n = 5;
|
|
3012
2935
|
break;
|
|
3013
2936
|
}
|
|
3014
2937
|
throw new InvalidParameterError("Pool DOT -> ".concat(nativeAsset.symbol, " not found."));
|
|
3015
|
-
case
|
|
2938
|
+
case 5:
|
|
3016
2939
|
return _context.a(2, padValueBy(feeConverted, 10));
|
|
3017
2940
|
}
|
|
3018
2941
|
}, _callee);
|
|
@@ -3798,7 +3721,9 @@ var GeneralBuilder = /*#__PURE__*/function () {
|
|
|
3798
3721
|
}, {
|
|
3799
3722
|
key: "getXcmFee",
|
|
3800
3723
|
value: (function () {
|
|
3801
|
-
var _getXcmFee2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee8(
|
|
3724
|
+
var _getXcmFee2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee8(
|
|
3725
|
+
// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
|
|
3726
|
+
options) {
|
|
3802
3727
|
var _options$disableFallb;
|
|
3803
3728
|
var disableFallback, _yield$this$prepareNo2, normalizedOptions, buildTx, api, from, to, senderAddress, address, currency, feeAsset;
|
|
3804
3729
|
return _regenerator().w(function (_context8) {
|
|
@@ -4598,6 +4523,30 @@ var validateBridgeAsset = function validateBridgeAsset(origin, destination, asse
|
|
|
4598
4523
|
throw new assets.InvalidCurrencyError("Substrate bridge does not support currency ".concat(JSON.stringify(currency, sdkCommon.replaceBigInt), "."));
|
|
4599
4524
|
}
|
|
4600
4525
|
};
|
|
4526
|
+
var validateEthereumAsset = function validateEthereumAsset(origin, destination, asset) {
|
|
4527
|
+
var _asset$location2;
|
|
4528
|
+
if (!asset || destination !== 'Ethereum' || origin === 'Mythos') return;
|
|
4529
|
+
var ADDITIONAL_ALLOWED_LOCATIONS = [RELAY_LOCATION, {
|
|
4530
|
+
parents: 2,
|
|
4531
|
+
interior: {
|
|
4532
|
+
X1: [{
|
|
4533
|
+
GlobalConsensus: {
|
|
4534
|
+
Kusama: null
|
|
4535
|
+
}
|
|
4536
|
+
}]
|
|
4537
|
+
}
|
|
4538
|
+
}];
|
|
4539
|
+
var isEthCompatibleAsset = ((_asset$location2 = asset.location) === null || _asset$location2 === void 0 ? void 0 : _asset$location2.parents) === sdkCommon.Parents.TWO && sdkCommon.deepEqual(sdkCommon.getJunctionValue(asset.location, 'GlobalConsensus'), {
|
|
4540
|
+
Ethereum: {
|
|
4541
|
+
chainId: 1
|
|
4542
|
+
}
|
|
4543
|
+
}) || ADDITIONAL_ALLOWED_LOCATIONS.some(function (loc) {
|
|
4544
|
+
return sdkCommon.deepEqual(asset.location, loc);
|
|
4545
|
+
});
|
|
4546
|
+
if (!isEthCompatibleAsset) {
|
|
4547
|
+
throw new assets.InvalidCurrencyError("Currency ".concat(JSON.stringify(asset, sdkCommon.replaceBigInt), " is not transferable to Ethereum."));
|
|
4548
|
+
}
|
|
4549
|
+
};
|
|
4601
4550
|
var validateAssetSupport = function validateAssetSupport(_ref, assetCheckEnabled, isBridge, asset) {
|
|
4602
4551
|
var origin = _ref.from,
|
|
4603
4552
|
destination = _ref.to,
|
|
@@ -4611,6 +4560,7 @@ var validateAssetSupport = function validateAssetSupport(_ref, assetCheckEnabled
|
|
|
4611
4560
|
throwUnsupportedCurrency(currency, origin);
|
|
4612
4561
|
}
|
|
4613
4562
|
validateBridgeAsset(origin, destination, asset, currency, isBridge);
|
|
4563
|
+
validateEthereumAsset(origin, destination, asset);
|
|
4614
4564
|
};
|
|
4615
4565
|
|
|
4616
4566
|
var resolveOverriddenAsset = function resolveOverriddenAsset(options, isBridge, assetCheckEnabled, resolvedFeeAsset) {
|
|
@@ -4838,16 +4788,32 @@ var getTChain = function getTChain(paraId, ecosystem) {
|
|
|
4838
4788
|
|
|
4839
4789
|
var getParaEthTransferFees = /*#__PURE__*/function () {
|
|
4840
4790
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(ahApi) {
|
|
4841
|
-
var
|
|
4791
|
+
var shouldDisconnect,
|
|
4792
|
+
DEFAULT_FEE,
|
|
4793
|
+
feeStorageItem,
|
|
4794
|
+
leFeeHex,
|
|
4795
|
+
bytes,
|
|
4796
|
+
reversedHex,
|
|
4797
|
+
validReversedHex,
|
|
4798
|
+
leFee,
|
|
4799
|
+
transferBridgeFee,
|
|
4800
|
+
finalBridgeFee,
|
|
4801
|
+
finalAssethubExecutionFee,
|
|
4802
|
+
_args = arguments;
|
|
4842
4803
|
return _regenerator().w(function (_context) {
|
|
4843
4804
|
while (1) switch (_context.n) {
|
|
4844
4805
|
case 0:
|
|
4806
|
+
shouldDisconnect = _args.length > 1 && _args[1] !== undefined ? _args[1] : true;
|
|
4845
4807
|
DEFAULT_FEE = 2750872500000n;
|
|
4846
4808
|
_context.n = 1;
|
|
4847
4809
|
return ahApi.getFromRpc('state', 'getStorage', '0x5fbc5c7ba58845ad1f1a9a7c5bc12fad');
|
|
4848
4810
|
case 1:
|
|
4849
4811
|
feeStorageItem = _context.v;
|
|
4850
4812
|
leFeeHex = feeStorageItem.replace('0x', '');
|
|
4813
|
+
if (!shouldDisconnect) {
|
|
4814
|
+
_context.n = 2;
|
|
4815
|
+
break;
|
|
4816
|
+
}
|
|
4851
4817
|
_context.n = 2;
|
|
4852
4818
|
return ahApi.disconnect();
|
|
4853
4819
|
case 2:
|
|
@@ -5234,25 +5200,9 @@ var reverseTransformLocation = function reverseTransformLocation(location) {
|
|
|
5234
5200
|
});
|
|
5235
5201
|
};
|
|
5236
5202
|
|
|
5237
|
-
var
|
|
5238
|
-
|
|
5239
|
-
address = _ref.address,
|
|
5240
|
-
asset = _ref.assetInfo,
|
|
5241
|
-
senderAddress = _ref.senderAddress,
|
|
5242
|
-
ahAddress = _ref.ahAddress,
|
|
5243
|
-
version = _ref.version;
|
|
5244
|
-
if (!assets.isForeignAsset(asset)) {
|
|
5245
|
-
throw new assets.InvalidCurrencyError("Asset ".concat(JSON.stringify(asset, sdkCommon.replaceBigInt), " is not a foreign asset"));
|
|
5246
|
-
}
|
|
5203
|
+
var createMainInstruction = function createMainInstruction(origin, asset, ethAsset, address, messageId) {
|
|
5204
|
+
assertHasId(ethAsset);
|
|
5247
5205
|
assertHasLocation(asset);
|
|
5248
|
-
assertSenderAddress(senderAddress);
|
|
5249
|
-
if (assets.isChainEvm(origin) && !ahAddress) {
|
|
5250
|
-
throw new InvalidParameterError("Please provide ahAddress");
|
|
5251
|
-
}
|
|
5252
|
-
var ethAsset = assets.findAssetInfoByLoc(assets.getOtherAssets('Ethereum'), asset.location);
|
|
5253
|
-
if (!ethAsset) {
|
|
5254
|
-
throw new assets.InvalidCurrencyError("Could not obtain Ethereum asset address for ".concat(JSON.stringify(asset, sdkCommon.replaceBigInt)));
|
|
5255
|
-
}
|
|
5256
5206
|
var interiorSb = ethAsset.symbol === 'ETH' ? {
|
|
5257
5207
|
Here: null
|
|
5258
5208
|
} : {
|
|
@@ -5263,25 +5213,91 @@ var createCustomXcmOnDest = function createCustomXcmOnDest(_ref, origin, message
|
|
|
5263
5213
|
}
|
|
5264
5214
|
}]
|
|
5265
5215
|
};
|
|
5266
|
-
|
|
5267
|
-
|
|
5216
|
+
var isAssetNativeToPolkadot = !sdkCommon.deepEqual(sdkCommon.getJunctionValue(asset.location, 'GlobalConsensus'), {
|
|
5217
|
+
Ethereum: {
|
|
5218
|
+
chainId: 1
|
|
5219
|
+
}
|
|
5220
|
+
// MYTH needs to use InitiateReserveWithdraw
|
|
5221
|
+
}) && origin !== 'Mythos';
|
|
5222
|
+
var beneficiary = {
|
|
5223
|
+
parents: sdkCommon.Parents.ZERO,
|
|
5224
|
+
interior: {
|
|
5225
|
+
X1: [{
|
|
5226
|
+
AccountKey20: {
|
|
5227
|
+
network: null,
|
|
5228
|
+
key: address
|
|
5229
|
+
}
|
|
5230
|
+
}]
|
|
5231
|
+
}
|
|
5232
|
+
};
|
|
5233
|
+
var makeBuyExecution = function makeBuyExecution(feesId) {
|
|
5234
|
+
return {
|
|
5235
|
+
BuyExecution: {
|
|
5236
|
+
fees: {
|
|
5237
|
+
id: feesId,
|
|
5238
|
+
fun: {
|
|
5239
|
+
Fungible: 1n
|
|
5240
|
+
}
|
|
5241
|
+
},
|
|
5242
|
+
weight_limit: 'Unlimited'
|
|
5243
|
+
}
|
|
5244
|
+
};
|
|
5245
|
+
};
|
|
5246
|
+
var makeDepositAsset = function makeDepositAsset() {
|
|
5247
|
+
return {
|
|
5268
5248
|
DepositAsset: {
|
|
5269
5249
|
assets: {
|
|
5270
|
-
Wild:
|
|
5250
|
+
Wild: {
|
|
5251
|
+
AllCounted: 1
|
|
5252
|
+
}
|
|
5271
5253
|
},
|
|
5272
|
-
beneficiary:
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5254
|
+
beneficiary: beneficiary
|
|
5255
|
+
}
|
|
5256
|
+
};
|
|
5257
|
+
};
|
|
5258
|
+
var commonXcm = function commonXcm(feesId) {
|
|
5259
|
+
return [makeBuyExecution(feesId), makeDepositAsset(), {
|
|
5260
|
+
SetTopic: messageId
|
|
5261
|
+
}];
|
|
5262
|
+
};
|
|
5263
|
+
if (isAssetNativeToPolkadot) {
|
|
5264
|
+
var assetEcosystem = sdkCommon.RELAYCHAINS.find(function (chain) {
|
|
5265
|
+
return asset.symbol.includes(assets.getNativeAssetSymbol(chain));
|
|
5266
|
+
});
|
|
5267
|
+
if (!assetEcosystem) throw new InvalidParameterError('Unsupported native polkadot asset');
|
|
5268
|
+
return {
|
|
5269
|
+
DepositReserveAsset: {
|
|
5270
|
+
assets: {
|
|
5271
|
+
Wild: {
|
|
5272
|
+
AllOf: {
|
|
5273
|
+
id: asset.location,
|
|
5274
|
+
fun: 'Fungible'
|
|
5275
|
+
}
|
|
5276
|
+
}
|
|
5277
|
+
},
|
|
5278
|
+
dest: {
|
|
5279
|
+
parents: sdkCommon.Parents.TWO,
|
|
5280
|
+
interior: {
|
|
5281
|
+
X1: [ETHEREUM_JUNCTION]
|
|
5282
|
+
}
|
|
5283
|
+
},
|
|
5284
|
+
xcm: commonXcm({
|
|
5285
|
+
parents: sdkCommon.Parents.ONE,
|
|
5286
|
+
interior: {
|
|
5287
|
+
X1: [{
|
|
5288
|
+
GlobalConsensus: _defineProperty({}, assetEcosystem.toLowerCase(), null)
|
|
5289
|
+
}]
|
|
5290
|
+
}
|
|
5276
5291
|
})
|
|
5277
5292
|
}
|
|
5278
|
-
}
|
|
5279
|
-
}
|
|
5293
|
+
};
|
|
5294
|
+
}
|
|
5295
|
+
return {
|
|
5280
5296
|
InitiateReserveWithdraw: {
|
|
5281
5297
|
assets: {
|
|
5282
5298
|
Wild: {
|
|
5283
5299
|
AllOf: {
|
|
5284
|
-
id:
|
|
5300
|
+
id: ethAsset.location,
|
|
5285
5301
|
fun: 'Fungible'
|
|
5286
5302
|
}
|
|
5287
5303
|
}
|
|
@@ -5292,43 +5308,38 @@ var createCustomXcmOnDest = function createCustomXcmOnDest(_ref, origin, message
|
|
|
5292
5308
|
X1: [ETHEREUM_JUNCTION]
|
|
5293
5309
|
}
|
|
5294
5310
|
},
|
|
5295
|
-
xcm:
|
|
5296
|
-
|
|
5297
|
-
|
|
5298
|
-
|
|
5299
|
-
parents: sdkCommon.Parents.ZERO,
|
|
5300
|
-
interior: interiorSb
|
|
5301
|
-
},
|
|
5302
|
-
fun: {
|
|
5303
|
-
Fungible: 1n
|
|
5304
|
-
}
|
|
5305
|
-
},
|
|
5306
|
-
weight_limit: 'Unlimited'
|
|
5307
|
-
}
|
|
5308
|
-
}, {
|
|
5309
|
-
DepositAsset: {
|
|
5310
|
-
assets: {
|
|
5311
|
-
Wild: {
|
|
5312
|
-
AllCounted: 1
|
|
5313
|
-
}
|
|
5314
|
-
},
|
|
5315
|
-
beneficiary: {
|
|
5316
|
-
parents: sdkCommon.Parents.ZERO,
|
|
5317
|
-
interior: {
|
|
5318
|
-
X1: [{
|
|
5319
|
-
AccountKey20: {
|
|
5320
|
-
network: null,
|
|
5321
|
-
key: address
|
|
5322
|
-
}
|
|
5323
|
-
}]
|
|
5324
|
-
}
|
|
5325
|
-
}
|
|
5326
|
-
}
|
|
5327
|
-
}, {
|
|
5328
|
-
SetTopic: messageId
|
|
5329
|
-
}]
|
|
5311
|
+
xcm: commonXcm({
|
|
5312
|
+
parents: sdkCommon.Parents.ZERO,
|
|
5313
|
+
interior: interiorSb
|
|
5314
|
+
})
|
|
5330
5315
|
}
|
|
5331
|
-
}
|
|
5316
|
+
};
|
|
5317
|
+
};
|
|
5318
|
+
var createCustomXcmOnDest = function createCustomXcmOnDest(_ref, origin, messageId, ethAsset) {
|
|
5319
|
+
var api = _ref.api,
|
|
5320
|
+
address = _ref.address,
|
|
5321
|
+
assetInfo = _ref.assetInfo,
|
|
5322
|
+
senderAddress = _ref.senderAddress,
|
|
5323
|
+
ahAddress = _ref.ahAddress,
|
|
5324
|
+
version = _ref.version;
|
|
5325
|
+
assertSenderAddress(senderAddress);
|
|
5326
|
+
if (assets.isChainEvm(origin) && !ahAddress) {
|
|
5327
|
+
throw new InvalidParameterError("Please provide ahAddress");
|
|
5328
|
+
}
|
|
5329
|
+
return _defineProperty({}, version, [{
|
|
5330
|
+
SetAppendix: origin === 'Mythos' ? [] : [{
|
|
5331
|
+
DepositAsset: {
|
|
5332
|
+
assets: {
|
|
5333
|
+
Wild: 'All'
|
|
5334
|
+
},
|
|
5335
|
+
beneficiary: createBeneficiaryLocation({
|
|
5336
|
+
api: api,
|
|
5337
|
+
address: assets.isChainEvm(origin) ? ahAddress : senderAddress,
|
|
5338
|
+
version: version
|
|
5339
|
+
})
|
|
5340
|
+
}
|
|
5341
|
+
}]
|
|
5342
|
+
}, createMainInstruction(origin, assetInfo, ethAsset, address, messageId), {
|
|
5332
5343
|
SetTopic: messageId
|
|
5333
5344
|
}]);
|
|
5334
5345
|
};
|
|
@@ -5490,19 +5501,9 @@ var transferMoonbeamToEth = /*#__PURE__*/function () {
|
|
|
5490
5501
|
case 5:
|
|
5491
5502
|
foundAsset = assets.findAssetInfoOrThrow(from, currency, to);
|
|
5492
5503
|
amount = abstractDecimals(currency.amount, foundAsset.decimals, api);
|
|
5493
|
-
|
|
5494
|
-
|
|
5495
|
-
|
|
5496
|
-
}
|
|
5497
|
-
throw new assets.InvalidCurrencyError('Currency must be a foreign asset with a valid location');
|
|
5498
|
-
case 6:
|
|
5499
|
-
ethAsset = assets.findAssetInfoByLoc(assets.getOtherAssets('Ethereum'), foundAsset.location);
|
|
5500
|
-
if (!(!ethAsset || !ethAsset.assetId)) {
|
|
5501
|
-
_context.n = 7;
|
|
5502
|
-
break;
|
|
5503
|
-
}
|
|
5504
|
-
throw new assets.InvalidCurrencyError("Could not obtain Ethereum asset address for ".concat(JSON.stringify(foundAsset)));
|
|
5505
|
-
case 7:
|
|
5504
|
+
ethAsset = assets.findAssetInfoOrThrow('Ethereum', {
|
|
5505
|
+
symbol: foundAsset.symbol
|
|
5506
|
+
}, null);
|
|
5506
5507
|
contract = viem.getContract({
|
|
5507
5508
|
abi: abi,
|
|
5508
5509
|
address: xcmInterfacePrecompile,
|
|
@@ -5516,12 +5517,13 @@ var transferMoonbeamToEth = /*#__PURE__*/function () {
|
|
|
5516
5517
|
});
|
|
5517
5518
|
senderAddress = (_signer$account = signer.account) === null || _signer$account === void 0 ? void 0 : _signer$account.address;
|
|
5518
5519
|
assertSenderAddress(senderAddress);
|
|
5519
|
-
|
|
5520
|
+
assertHasId(ethAsset);
|
|
5521
|
+
_context.n = 6;
|
|
5520
5522
|
return api.init(from, TX_CLIENT_TIMEOUT_MS);
|
|
5521
|
-
case
|
|
5522
|
-
_context.n =
|
|
5523
|
+
case 6:
|
|
5524
|
+
_context.n = 7;
|
|
5523
5525
|
return generateMessageId(api, senderAddress, getParaId(from), ethAsset.assetId, address, amount);
|
|
5524
|
-
case
|
|
5526
|
+
case 7:
|
|
5525
5527
|
messageId = _context.v;
|
|
5526
5528
|
customXcm = createCustomXcmOnDest({
|
|
5527
5529
|
api: api,
|
|
@@ -5532,18 +5534,18 @@ var transferMoonbeamToEth = /*#__PURE__*/function () {
|
|
|
5532
5534
|
amount: amount
|
|
5533
5535
|
}),
|
|
5534
5536
|
version: sdkCommon.Version.V4
|
|
5535
|
-
}, from, messageId);
|
|
5536
|
-
_context.n =
|
|
5537
|
+
}, from, messageId, ethAsset);
|
|
5538
|
+
_context.n = 8;
|
|
5537
5539
|
return api.objectToHex(customXcm, 'XcmVersionedXcm');
|
|
5538
|
-
case
|
|
5540
|
+
case 8:
|
|
5539
5541
|
customXcmOnDest = _context.v;
|
|
5540
|
-
_context.n =
|
|
5542
|
+
_context.n = 9;
|
|
5541
5543
|
return api.createApiForChain('AssetHubPolkadot');
|
|
5542
|
-
case
|
|
5544
|
+
case 9:
|
|
5543
5545
|
assetHubApi = _context.v;
|
|
5544
|
-
_context.n =
|
|
5546
|
+
_context.n = 10;
|
|
5545
5547
|
return getParaEthTransferFees(assetHubApi);
|
|
5546
|
-
case
|
|
5548
|
+
case 10:
|
|
5547
5549
|
_yield$getParaEthTran = _context.v;
|
|
5548
5550
|
_yield$getParaEthTran2 = _slicedToArray(_yield$getParaEthTran, 2);
|
|
5549
5551
|
bridgeFee = _yield$getParaEthTran2[0];
|
|
@@ -5558,7 +5560,7 @@ var transferMoonbeamToEth = /*#__PURE__*/function () {
|
|
|
5558
5560
|
throw new InvalidParameterError('Input must be a valid number');
|
|
5559
5561
|
}() : "0x".concat((num >>> 0).toString(16).padStart(8, '0'));
|
|
5560
5562
|
}; // Execute the custom XCM message with the precompile
|
|
5561
|
-
_context.n =
|
|
5563
|
+
_context.n = 11;
|
|
5562
5564
|
return createTx('transferAssetsUsingTypeAndThenAddress', [
|
|
5563
5565
|
// This represents (1,X1(Parachain(1000)))
|
|
5564
5566
|
[1, ['0x00' + numberToHex32(getParaId('AssetHubPolkadot')).slice(2)]],
|
|
@@ -5570,7 +5572,7 @@ var transferMoonbeamToEth = /*#__PURE__*/function () {
|
|
|
5570
5572
|
0,
|
|
5571
5573
|
// The TransferType corresponding to fee asset
|
|
5572
5574
|
2, customXcmOnDest]);
|
|
5573
|
-
case
|
|
5575
|
+
case 11:
|
|
5574
5576
|
tx = _context.v;
|
|
5575
5577
|
return _context.a(2, tx);
|
|
5576
5578
|
}
|
|
@@ -7468,7 +7470,7 @@ var send = /*#__PURE__*/function () {
|
|
|
7468
7470
|
|
|
7469
7471
|
var buildDestInfo = /*#__PURE__*/function () {
|
|
7470
7472
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(_ref) {
|
|
7471
|
-
var api, origin, destination, address, currency, originFee, isFeeAssetAh, destFeeDetail, totalHopFee, bridgeFee, destApi, destAsset, edDest, destBalance, destAmount, effectiveAmountForBalance, destBalanceSufficient, destBalanceSufficientResult, destBalanceAfter, destbalanceAfterResult, receivedAmount,
|
|
7473
|
+
var api, origin, destination, address, currency, originFee, isFeeAssetAh, destFeeDetail, totalHopFee, bridgeFee, destApi, destAsset, edDest, destBalance, destAmount, effectiveAmountForBalance, destBalanceSufficient, destBalanceSufficientResult, destBalanceAfter, destbalanceAfterResult, receivedAmount, isSubBridge, nativeAssetOfOriginSymbol, isOriginAssetNative, destXcmFeeBalance, isDestFeeInNativeCurrency, destRecipientNativeBalance, destXcmFeeBalanceAfter;
|
|
7472
7474
|
return _regenerator().w(function (_context) {
|
|
7473
7475
|
while (1) switch (_context.n) {
|
|
7474
7476
|
case 0:
|
|
@@ -7494,8 +7496,8 @@ var buildDestInfo = /*#__PURE__*/function () {
|
|
|
7494
7496
|
destBalanceSufficientResult = destFeeDetail.currency !== destAsset.symbol && destination !== 'Ethereum' ? new UnableToComputeError('Unable to compute if dest balance will be sufficient. Fee currency is not the same') : destBalanceSufficient;
|
|
7495
7497
|
destBalanceAfter = destBalance - (destFeeDetail.currency === destAsset.symbol ? destFeeDetail.fee : 0n) + effectiveAmountForBalance;
|
|
7496
7498
|
destbalanceAfterResult = destFeeDetail.currency !== destAsset.symbol && destination !== 'Ethereum' ? new UnableToComputeError('Unable to compute if dest balance will be sufficient. Fee currency is not the same') : destBalanceAfter;
|
|
7497
|
-
|
|
7498
|
-
if (
|
|
7499
|
+
isSubBridge = sdkCommon.isSubstrateBridge(origin, destination);
|
|
7500
|
+
if (isSubBridge) {
|
|
7499
7501
|
nativeAssetOfOriginSymbol = assets.getNativeAssetSymbol(origin);
|
|
7500
7502
|
isOriginAssetNative = false;
|
|
7501
7503
|
if (destAsset.symbol === nativeAssetOfOriginSymbol) {
|
|
@@ -8579,7 +8581,7 @@ var calculateTotalXcmFee = function calculateTotalXcmFee(feeResult) {
|
|
|
8579
8581
|
};
|
|
8580
8582
|
var verifyEdOnDestinationInternal = /*#__PURE__*/function () {
|
|
8581
8583
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(options) {
|
|
8582
|
-
var api, buildTx, origin, destination, currency, address, senderAddress, feeAsset, destApi, asset, amount, destAsset, ed, balance, xcmFeeResult, dryRunError, assetHubFeeResult, bridgeHubFeeResult, _xcmFeeResult$destina, destFee, destFeeCurrency, destDryRunError, hopDryRunError, tx, totalFee, method, feeToSubtract;
|
|
8584
|
+
var api, buildTx, origin, destination, currency, address, senderAddress, feeAsset, isSubBridge, destApi, asset, amount, destAsset, ed, balance, xcmFeeResult, dryRunError, assetHubFeeResult, bridgeHubFeeResult, _xcmFeeResult$destina, destFee, destFeeCurrency, destDryRunError, hopDryRunError, tx, totalFee, method, feeToSubtract;
|
|
8583
8585
|
return _regenerator().w(function (_context) {
|
|
8584
8586
|
while (1) switch (_context.n) {
|
|
8585
8587
|
case 0:
|
|
@@ -8591,36 +8593,31 @@ var verifyEdOnDestinationInternal = /*#__PURE__*/function () {
|
|
|
8591
8593
|
return _context.a(2, true);
|
|
8592
8594
|
case 1:
|
|
8593
8595
|
validateAddress(api, address, destination, true);
|
|
8594
|
-
|
|
8596
|
+
isSubBridge = sdkCommon.isSubstrateBridge(origin, destination);
|
|
8597
|
+
if (!isSubBridge) {
|
|
8595
8598
|
_context.n = 2;
|
|
8596
8599
|
break;
|
|
8597
8600
|
}
|
|
8598
|
-
throw new InvalidParameterError('
|
|
8601
|
+
throw new InvalidParameterError('Unable to verify the existential deposit for substrate bridge scenarios');
|
|
8599
8602
|
case 2:
|
|
8600
|
-
if (!(origin === 'AssetHubKusama' && destination === 'AssetHubPolkadot')) {
|
|
8601
|
-
_context.n = 3;
|
|
8602
|
-
break;
|
|
8603
|
-
}
|
|
8604
|
-
throw new InvalidParameterError('Polkadot is outside of Kusama ecosystem, thus function is unable to verify the existential deposit for it.');
|
|
8605
|
-
case 3:
|
|
8606
8603
|
destApi = api.clone();
|
|
8607
|
-
_context.n =
|
|
8604
|
+
_context.n = 3;
|
|
8608
8605
|
return destApi.init(destination);
|
|
8609
|
-
case
|
|
8606
|
+
case 3:
|
|
8610
8607
|
asset = assets.findAssetOnDestOrThrow(origin, destination, currency);
|
|
8611
8608
|
amount = abstractDecimals(currency.amount, asset.decimals, api);
|
|
8612
8609
|
destAsset = assets.findAssetOnDestOrThrow(origin, destination, currency);
|
|
8613
8610
|
ed = assets.getEdFromAssetOrThrow(destAsset);
|
|
8614
|
-
_context.n =
|
|
8611
|
+
_context.n = 4;
|
|
8615
8612
|
return getAssetBalanceInternal({
|
|
8616
8613
|
address: address,
|
|
8617
8614
|
chain: destination,
|
|
8618
8615
|
api: destApi,
|
|
8619
8616
|
asset: destAsset
|
|
8620
8617
|
});
|
|
8621
|
-
case
|
|
8618
|
+
case 4:
|
|
8622
8619
|
balance = _context.v;
|
|
8623
|
-
_context.n =
|
|
8620
|
+
_context.n = 5;
|
|
8624
8621
|
return getXcmFeeInternal({
|
|
8625
8622
|
api: api,
|
|
8626
8623
|
buildTx: buildTx,
|
|
@@ -8634,37 +8631,37 @@ var verifyEdOnDestinationInternal = /*#__PURE__*/function () {
|
|
|
8634
8631
|
feeAsset: feeAsset,
|
|
8635
8632
|
disableFallback: false
|
|
8636
8633
|
});
|
|
8637
|
-
case
|
|
8634
|
+
case 5:
|
|
8638
8635
|
xcmFeeResult = _context.v;
|
|
8639
8636
|
dryRunError = xcmFeeResult.origin.dryRunError, assetHubFeeResult = xcmFeeResult.assetHub, bridgeHubFeeResult = xcmFeeResult.bridgeHub, _xcmFeeResult$destina = xcmFeeResult.destination, destFee = _xcmFeeResult$destina.fee, destFeeCurrency = _xcmFeeResult$destina.currency, destDryRunError = _xcmFeeResult$destina.dryRunError;
|
|
8640
8637
|
if (!dryRunError) {
|
|
8641
|
-
_context.n =
|
|
8638
|
+
_context.n = 6;
|
|
8642
8639
|
break;
|
|
8643
8640
|
}
|
|
8644
8641
|
throw new DryRunFailedError(dryRunError, 'origin');
|
|
8645
|
-
case
|
|
8642
|
+
case 6:
|
|
8646
8643
|
hopDryRunError = (assetHubFeeResult === null || assetHubFeeResult === void 0 ? void 0 : assetHubFeeResult.dryRunError) || (bridgeHubFeeResult === null || bridgeHubFeeResult === void 0 ? void 0 : bridgeHubFeeResult.dryRunError);
|
|
8647
8644
|
if (!hopDryRunError) {
|
|
8648
|
-
_context.n =
|
|
8645
|
+
_context.n = 7;
|
|
8649
8646
|
break;
|
|
8650
8647
|
}
|
|
8651
8648
|
throw new DryRunFailedError(hopDryRunError, assetHubFeeResult !== null && assetHubFeeResult !== void 0 && assetHubFeeResult.dryRunError ? 'assetHub' : 'bridgeHub');
|
|
8652
|
-
case
|
|
8649
|
+
case 7:
|
|
8653
8650
|
if (!destDryRunError) {
|
|
8654
|
-
_context.n =
|
|
8651
|
+
_context.n = 8;
|
|
8655
8652
|
break;
|
|
8656
8653
|
}
|
|
8657
8654
|
throw new UnableToComputeError("Unable to compute fee for the destination asset. Destination dry run error: ".concat(destDryRunError));
|
|
8658
|
-
case
|
|
8655
|
+
case 8:
|
|
8659
8656
|
if (!(assets.normalizeSymbol(asset.symbol) !== assets.normalizeSymbol(destFeeCurrency))) {
|
|
8660
|
-
_context.n =
|
|
8657
|
+
_context.n = 9;
|
|
8661
8658
|
break;
|
|
8662
8659
|
}
|
|
8663
8660
|
throw new UnableToComputeError("The XCM fee could not be calculated because the origin or destination chain does not support DryRun.\n As a result, fee estimation is only available through PaymentInfo, which provides the cost in the native asset.\n This limitation restricts support to transfers involving the native asset of the Destination chain only.");
|
|
8664
|
-
case
|
|
8665
|
-
_context.n =
|
|
8661
|
+
case 9:
|
|
8662
|
+
_context.n = 10;
|
|
8666
8663
|
return buildTx();
|
|
8667
|
-
case
|
|
8664
|
+
case 10:
|
|
8668
8665
|
tx = _context.v;
|
|
8669
8666
|
totalFee = calculateTotalXcmFee(xcmFeeResult);
|
|
8670
8667
|
method = api.getMethod(tx);
|
|
@@ -8795,7 +8792,7 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
8795
8792
|
throw new InvalidParameterError('Relaychain assets can only be transferred using the type-and-then method which is not supported by this chain');
|
|
8796
8793
|
case 3:
|
|
8797
8794
|
isSubBridge = !sdkCommon.isTLocation(destination) && sdkCommon.isSubstrateBridge(this.chain, destination);
|
|
8798
|
-
useTypeAndThen = isRelayAsset && supportsTypeThen && destChain && !feeAsset && (!sdkCommon.isTrustedChain(this.chain) || !sdkCommon.isTrustedChain(destChain)) || isSubBridge;
|
|
8795
|
+
useTypeAndThen = isRelayAsset && supportsTypeThen && destChain && !sdkCommon.isExternalChain(destChain) && !feeAsset && (!sdkCommon.isTrustedChain(this.chain) || !sdkCommon.isTrustedChain(destChain)) || isSubBridge;
|
|
8799
8796
|
if (!(supportsXTokens(this) && this.canUseXTokens(sendOptions) && !useTypeAndThen)) {
|
|
8800
8797
|
_context.n = 5;
|
|
8801
8798
|
break;
|
|
@@ -9207,6 +9204,8 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
9207
9204
|
PARA_TO_PARA_FEE_DOT,
|
|
9208
9205
|
fee,
|
|
9209
9206
|
ethAssetInfo,
|
|
9207
|
+
systemAssetInfo,
|
|
9208
|
+
shouldIncludeFeeAsset,
|
|
9210
9209
|
customXcmOnDest,
|
|
9211
9210
|
messageId,
|
|
9212
9211
|
call,
|
|
@@ -9243,15 +9242,13 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
9243
9242
|
executionFee = _yield$getParaEthTran2[1];
|
|
9244
9243
|
PARA_TO_PARA_FEE_DOT = 5000000000n; // 0.5 DOT
|
|
9245
9244
|
fee = useOnlyDepositInstruction ? PARA_TO_PARA_FEE_DOT : bridgeFee + executionFee;
|
|
9246
|
-
ethAssetInfo = assets.
|
|
9247
|
-
|
|
9248
|
-
|
|
9249
|
-
|
|
9250
|
-
|
|
9251
|
-
throw new assets.InvalidCurrencyError("Could not obtain Ethereum asset address for ".concat(JSON.stringify(asset, sdkCommon.replaceBigInt)));
|
|
9252
|
-
case 5:
|
|
9245
|
+
ethAssetInfo = assets.findAssetInfoOrThrow('Ethereum', {
|
|
9246
|
+
symbol: asset.symbol
|
|
9247
|
+
}, null);
|
|
9248
|
+
systemAssetInfo = assets.findNativeAssetInfoOrThrow(getRelayChainOf(this.chain));
|
|
9249
|
+
shouldIncludeFeeAsset = feeAsset && !assets.isAssetEqual(feeAsset, asset) || !assets.isAssetEqual(asset, systemAssetInfo);
|
|
9253
9250
|
if (!useOnlyDepositInstruction) {
|
|
9254
|
-
_context4.n =
|
|
9251
|
+
_context4.n = 5;
|
|
9255
9252
|
break;
|
|
9256
9253
|
}
|
|
9257
9254
|
customXcmOnDest = addXcmVersionHeader([{
|
|
@@ -9268,24 +9265,24 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
9268
9265
|
})
|
|
9269
9266
|
}
|
|
9270
9267
|
}], version);
|
|
9271
|
-
_context4.n =
|
|
9268
|
+
_context4.n = 7;
|
|
9272
9269
|
break;
|
|
9273
|
-
case
|
|
9270
|
+
case 5:
|
|
9274
9271
|
assertHasId(ethAssetInfo);
|
|
9275
|
-
_context4.n =
|
|
9272
|
+
_context4.n = 6;
|
|
9276
9273
|
return generateMessageId(api, senderAddress, getParaId(this.chain), ethAssetInfo.assetId, address, asset.amount);
|
|
9277
|
-
case
|
|
9274
|
+
case 6:
|
|
9278
9275
|
messageId = _context4.v;
|
|
9279
|
-
customXcmOnDest = createCustomXcmOnDest(input, this.chain, messageId);
|
|
9280
|
-
case
|
|
9276
|
+
customXcmOnDest = createCustomXcmOnDest(input, this.chain, messageId, ethAssetInfo);
|
|
9277
|
+
case 7:
|
|
9281
9278
|
call = {
|
|
9282
9279
|
module: 'PolkadotXcm',
|
|
9283
9280
|
method: 'transfer_assets_using_type_and_then',
|
|
9284
9281
|
params: {
|
|
9285
9282
|
dest: createVersionedDestination(version, this.chain, destination, getParaId('AssetHubPolkadot')),
|
|
9286
|
-
assets: addXcmVersionHeader([].concat(_toConsumableArray(
|
|
9283
|
+
assets: addXcmVersionHeader([].concat(_toConsumableArray(shouldIncludeFeeAsset ? [createAsset(version, fee, DOT_LOCATION)] : []), [ethAsset]), version),
|
|
9287
9284
|
assets_transfer_type: 'DestinationReserve',
|
|
9288
|
-
remote_fees_id: addXcmVersionHeader((_feeAsset$location = feeAsset === null || feeAsset === void 0 ? void 0 : feeAsset.location) !== null && _feeAsset$location !== void 0 ? _feeAsset$location : DOT_LOCATION, version),
|
|
9285
|
+
remote_fees_id: addXcmVersionHeader((_feeAsset$location = feeAsset === null || feeAsset === void 0 ? void 0 : feeAsset.location) !== null && _feeAsset$location !== void 0 ? _feeAsset$location : shouldIncludeFeeAsset ? DOT_LOCATION : asset.location, version),
|
|
9289
9286
|
fees_transfer_type: 'DestinationReserve',
|
|
9290
9287
|
custom_xcm_on_dest: customXcmOnDest,
|
|
9291
9288
|
weight_limit: 'Unlimited'
|
|
@@ -9387,7 +9384,7 @@ var Acala = /*#__PURE__*/function (_Parachain) {
|
|
|
9387
9384
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Acala';
|
|
9388
9385
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'acala';
|
|
9389
9386
|
var ecosystem = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'Polkadot';
|
|
9390
|
-
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : sdkCommon.Version.
|
|
9387
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : sdkCommon.Version.V5;
|
|
9391
9388
|
_classCallCheck(this, Acala);
|
|
9392
9389
|
return _callSuper(this, Acala, [chain, info, ecosystem, version]);
|
|
9393
9390
|
}
|
|
@@ -9499,7 +9496,7 @@ var Ajuna = /*#__PURE__*/function (_Parachain) {
|
|
|
9499
9496
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Ajuna';
|
|
9500
9497
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'ajuna';
|
|
9501
9498
|
var ecosystem = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'Polkadot';
|
|
9502
|
-
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : sdkCommon.Version.
|
|
9499
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : sdkCommon.Version.V5;
|
|
9503
9500
|
_classCallCheck(this, Ajuna);
|
|
9504
9501
|
return _callSuper(this, Ajuna, [chain, info, ecosystem, version]);
|
|
9505
9502
|
}
|
|
@@ -9591,7 +9588,7 @@ var transferPolkadotXcm = function transferPolkadotXcm(_ref, method) {
|
|
|
9591
9588
|
var AjunaPaseo = /*#__PURE__*/function (_Parachain) {
|
|
9592
9589
|
function AjunaPaseo() {
|
|
9593
9590
|
_classCallCheck(this, AjunaPaseo);
|
|
9594
|
-
return _callSuper(this, AjunaPaseo, ['AjunaPaseo', 'Ajuna(paseo)', 'Paseo', sdkCommon.Version.
|
|
9591
|
+
return _callSuper(this, AjunaPaseo, ['AjunaPaseo', 'Ajuna(paseo)', 'Paseo', sdkCommon.Version.V5]);
|
|
9595
9592
|
}
|
|
9596
9593
|
_inherits(AjunaPaseo, _Parachain);
|
|
9597
9594
|
return _createClass(AjunaPaseo, [{
|
|
@@ -9726,7 +9723,6 @@ var AssetHubKusama = /*#__PURE__*/function (_Parachain) {
|
|
|
9726
9723
|
key: "getMethod",
|
|
9727
9724
|
value: function getMethod(scenario, destination) {
|
|
9728
9725
|
var isTrusted = !sdkCommon.isTLocation(destination) && sdkCommon.isTrustedChain(destination);
|
|
9729
|
-
if (destination === 'IntegriteeKusama') return 'transfer_assets';
|
|
9730
9726
|
return scenario === 'ParaToPara' && !isTrusted ? 'limited_reserve_transfer_assets' : 'limited_teleport_assets';
|
|
9731
9727
|
}
|
|
9732
9728
|
}, {
|
|
@@ -10673,7 +10669,6 @@ var AssetHubPolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
10673
10669
|
}
|
|
10674
10670
|
throw new InvalidParameterError('Location address is not supported for Ethereum transfers');
|
|
10675
10671
|
case 3:
|
|
10676
|
-
assertIsForeign(asset);
|
|
10677
10672
|
assertHasLocation(asset);
|
|
10678
10673
|
_context.n = 4;
|
|
10679
10674
|
return generateMessageId(api, senderAddress, getParaId(this.chain), JSON.stringify(asset.location), address, asset.amount);
|
|
@@ -10736,7 +10731,6 @@ var AssetHubPolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
10736
10731
|
}
|
|
10737
10732
|
throw new BridgeHaltedError();
|
|
10738
10733
|
case 2:
|
|
10739
|
-
assertIsForeign(asset);
|
|
10740
10734
|
assertHasLocation(asset);
|
|
10741
10735
|
if (!(asset.symbol === this.getNativeAssetSymbol() || asset.symbol === assets.getNativeAssetSymbol('Kusama'))) {
|
|
10742
10736
|
_context2.n = 3;
|
|
@@ -11936,104 +11930,6 @@ var HydrationPaseo = /*#__PURE__*/function (_Hydration) {
|
|
|
11936
11930
|
return _createClass(HydrationPaseo);
|
|
11937
11931
|
}(Hydration);
|
|
11938
11932
|
|
|
11939
|
-
var IntegriteePolkadot = /*#__PURE__*/function (_Parachain) {
|
|
11940
|
-
function IntegriteePolkadot() {
|
|
11941
|
-
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'IntegriteePolkadot';
|
|
11942
|
-
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'integritee';
|
|
11943
|
-
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'Polkadot';
|
|
11944
|
-
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : sdkCommon.Version.V5;
|
|
11945
|
-
_classCallCheck(this, IntegriteePolkadot);
|
|
11946
|
-
return _callSuper(this, IntegriteePolkadot, [chain, info, type, version]);
|
|
11947
|
-
}
|
|
11948
|
-
_inherits(IntegriteePolkadot, _Parachain);
|
|
11949
|
-
return _createClass(IntegriteePolkadot, [{
|
|
11950
|
-
key: "transferPolkadotXCM",
|
|
11951
|
-
value: function transferPolkadotXCM(input) {
|
|
11952
|
-
return transferPolkadotXcm(input, 'transfer_assets', 'Unlimited');
|
|
11953
|
-
}
|
|
11954
|
-
}, {
|
|
11955
|
-
key: "transferRelayToPara",
|
|
11956
|
-
value: function transferRelayToPara() {
|
|
11957
|
-
throw new ChainNotSupportedError();
|
|
11958
|
-
}
|
|
11959
|
-
}, {
|
|
11960
|
-
key: "isSendingTempDisabled",
|
|
11961
|
-
value: function isSendingTempDisabled(_options) {
|
|
11962
|
-
return true;
|
|
11963
|
-
}
|
|
11964
|
-
}, {
|
|
11965
|
-
key: "isReceivingTempDisabled",
|
|
11966
|
-
value: function isReceivingTempDisabled(_scenario) {
|
|
11967
|
-
return true;
|
|
11968
|
-
}
|
|
11969
|
-
}, {
|
|
11970
|
-
key: "transferLocalNonNativeAsset",
|
|
11971
|
-
value: function transferLocalNonNativeAsset(options) {
|
|
11972
|
-
var api = options.api,
|
|
11973
|
-
asset = options.assetInfo,
|
|
11974
|
-
address = options.address,
|
|
11975
|
-
isAmountAll = options.isAmountAll;
|
|
11976
|
-
assertHasId(asset);
|
|
11977
|
-
var assetId = Number(asset.assetId);
|
|
11978
|
-
var dest = {
|
|
11979
|
-
Id: address
|
|
11980
|
-
};
|
|
11981
|
-
if (isAmountAll) {
|
|
11982
|
-
return api.deserializeExtrinsics({
|
|
11983
|
-
module: 'Assets',
|
|
11984
|
-
method: 'transfer_all',
|
|
11985
|
-
params: {
|
|
11986
|
-
id: assetId,
|
|
11987
|
-
dest: dest,
|
|
11988
|
-
keep_alive: false
|
|
11989
|
-
}
|
|
11990
|
-
});
|
|
11991
|
-
}
|
|
11992
|
-
return api.deserializeExtrinsics({
|
|
11993
|
-
module: 'Assets',
|
|
11994
|
-
method: 'transfer',
|
|
11995
|
-
params: {
|
|
11996
|
-
id: assetId,
|
|
11997
|
-
target: dest,
|
|
11998
|
-
amount: asset.amount
|
|
11999
|
-
}
|
|
12000
|
-
});
|
|
12001
|
-
}
|
|
12002
|
-
}]);
|
|
12003
|
-
}(Parachain);
|
|
12004
|
-
|
|
12005
|
-
var IntegriteeKusama = /*#__PURE__*/function (_IntegriteePolkadot) {
|
|
12006
|
-
function IntegriteeKusama() {
|
|
12007
|
-
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'IntegriteeKusama';
|
|
12008
|
-
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'integritee';
|
|
12009
|
-
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'Kusama';
|
|
12010
|
-
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : sdkCommon.Version.V5;
|
|
12011
|
-
_classCallCheck(this, IntegriteeKusama);
|
|
12012
|
-
return _callSuper(this, IntegriteeKusama, [chain, info, type, version]);
|
|
12013
|
-
}
|
|
12014
|
-
_inherits(IntegriteeKusama, _IntegriteePolkadot);
|
|
12015
|
-
return _createClass(IntegriteeKusama);
|
|
12016
|
-
}(IntegriteePolkadot);
|
|
12017
|
-
|
|
12018
|
-
var IntegriteePaseo = /*#__PURE__*/function (_IntegriteeKusama) {
|
|
12019
|
-
function IntegriteePaseo() {
|
|
12020
|
-
_classCallCheck(this, IntegriteePaseo);
|
|
12021
|
-
return _callSuper(this, IntegriteePaseo, ['IntegriteePaseo', 'integritee', 'Paseo', sdkCommon.Version.V4]);
|
|
12022
|
-
}
|
|
12023
|
-
_inherits(IntegriteePaseo, _IntegriteeKusama);
|
|
12024
|
-
return _createClass(IntegriteePaseo, [{
|
|
12025
|
-
key: "isSendingTempDisabled",
|
|
12026
|
-
value: function isSendingTempDisabled(_options) {
|
|
12027
|
-
return true;
|
|
12028
|
-
}
|
|
12029
|
-
}, {
|
|
12030
|
-
key: "isReceivingTempDisabled",
|
|
12031
|
-
value: function isReceivingTempDisabled(_scenario) {
|
|
12032
|
-
return true;
|
|
12033
|
-
}
|
|
12034
|
-
}]);
|
|
12035
|
-
}(IntegriteeKusama);
|
|
12036
|
-
|
|
12037
11933
|
var Interlay = /*#__PURE__*/function (_Parachain) {
|
|
12038
11934
|
function Interlay() {
|
|
12039
11935
|
_classCallCheck(this, Interlay);
|
|
@@ -12154,7 +12050,7 @@ Jamton.NATIVE_ASSET_IDS = {
|
|
|
12154
12050
|
var Karura = /*#__PURE__*/function (_Acala) {
|
|
12155
12051
|
function Karura() {
|
|
12156
12052
|
_classCallCheck(this, Karura);
|
|
12157
|
-
return _callSuper(this, Karura, ['Karura', 'karura', 'Kusama', sdkCommon.Version.
|
|
12053
|
+
return _callSuper(this, Karura, ['Karura', 'karura', 'Kusama', sdkCommon.Version.V5]);
|
|
12158
12054
|
}
|
|
12159
12055
|
_inherits(Karura, _Acala);
|
|
12160
12056
|
return _createClass(Karura);
|
|
@@ -12194,7 +12090,17 @@ var KiltPaseo = /*#__PURE__*/function (_KiltSpiritnet) {
|
|
|
12194
12090
|
return _callSuper(this, KiltPaseo, ['KiltPaseo', 'kilt', 'Paseo', sdkCommon.Version.V4]);
|
|
12195
12091
|
}
|
|
12196
12092
|
_inherits(KiltPaseo, _KiltSpiritnet);
|
|
12197
|
-
return _createClass(KiltPaseo
|
|
12093
|
+
return _createClass(KiltPaseo, [{
|
|
12094
|
+
key: "isSendingTempDisabled",
|
|
12095
|
+
value: function isSendingTempDisabled(_options) {
|
|
12096
|
+
return true;
|
|
12097
|
+
}
|
|
12098
|
+
}, {
|
|
12099
|
+
key: "isReceivingTempDisabled",
|
|
12100
|
+
value: function isReceivingTempDisabled(_scenario) {
|
|
12101
|
+
return true;
|
|
12102
|
+
}
|
|
12103
|
+
}]);
|
|
12198
12104
|
}(KiltSpiritnet);
|
|
12199
12105
|
|
|
12200
12106
|
var Kintsugi = /*#__PURE__*/function (_Parachain) {
|
|
@@ -12327,16 +12233,6 @@ var Manta = /*#__PURE__*/function (_Parachain) {
|
|
|
12327
12233
|
};
|
|
12328
12234
|
return transferXTokens(input, currencySelection);
|
|
12329
12235
|
}
|
|
12330
|
-
}, {
|
|
12331
|
-
key: "isSendingTempDisabled",
|
|
12332
|
-
value: function isSendingTempDisabled(_options) {
|
|
12333
|
-
return true;
|
|
12334
|
-
}
|
|
12335
|
-
}, {
|
|
12336
|
-
key: "isReceivingTempDisabled",
|
|
12337
|
-
value: function isReceivingTempDisabled(_scenario) {
|
|
12338
|
-
return true;
|
|
12339
|
-
}
|
|
12340
12236
|
}, {
|
|
12341
12237
|
key: "transferLocalNonNativeAsset",
|
|
12342
12238
|
value: function transferLocalNonNativeAsset(options) {
|
|
@@ -12433,27 +12329,25 @@ var Moonriver = /*#__PURE__*/function (_Parachain) {
|
|
|
12433
12329
|
|
|
12434
12330
|
var createTypeAndThenTransfer = /*#__PURE__*/function () {
|
|
12435
12331
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(options, chain, version) {
|
|
12436
|
-
var api, asset, senderAddress, address, destination, messageId, nativeMythAmount;
|
|
12332
|
+
var api, asset, senderAddress, address, destination, ethAsset, messageId, nativeMythAmount;
|
|
12437
12333
|
return _regenerator().w(function (_context) {
|
|
12438
12334
|
while (1) switch (_context.n) {
|
|
12439
12335
|
case 0:
|
|
12440
12336
|
api = options.api, asset = options.assetInfo, senderAddress = options.senderAddress, address = options.address, destination = options.destination;
|
|
12441
|
-
|
|
12337
|
+
ethAsset = assets.findAssetInfoOrThrow('Ethereum', {
|
|
12338
|
+
symbol: asset.symbol
|
|
12339
|
+
}, null);
|
|
12340
|
+
assertHasLocation(ethAsset);
|
|
12341
|
+
assertHasId(ethAsset);
|
|
12442
12342
|
assertAddressIsString(address);
|
|
12443
12343
|
assertSenderAddress(senderAddress);
|
|
12444
|
-
|
|
12445
|
-
|
|
12446
|
-
break;
|
|
12447
|
-
}
|
|
12448
|
-
throw new assets.InvalidCurrencyError("Asset ".concat(JSON.stringify(asset, sdkCommon.replaceBigInt), " is not a foreign asset"));
|
|
12344
|
+
_context.n = 1;
|
|
12345
|
+
return generateMessageId(api, senderAddress, getParaId(chain), ethAsset.assetId, address, asset.amount);
|
|
12449
12346
|
case 1:
|
|
12450
|
-
_context.n = 2;
|
|
12451
|
-
return generateMessageId(api, senderAddress, getParaId(chain), asset.assetId, address, asset.amount);
|
|
12452
|
-
case 2:
|
|
12453
12347
|
messageId = _context.v;
|
|
12454
|
-
_context.n =
|
|
12348
|
+
_context.n = 2;
|
|
12455
12349
|
return getMythosOriginFee(api);
|
|
12456
|
-
case
|
|
12350
|
+
case 2:
|
|
12457
12351
|
nativeMythAmount = _context.v;
|
|
12458
12352
|
return _context.a(2, {
|
|
12459
12353
|
module: 'PolkadotXcm',
|
|
@@ -12463,14 +12357,14 @@ var createTypeAndThenTransfer = /*#__PURE__*/function () {
|
|
|
12463
12357
|
assets: _defineProperty({}, version, [createAsset(version, nativeMythAmount, {
|
|
12464
12358
|
parents: sdkCommon.Parents.ZERO,
|
|
12465
12359
|
interior: 'Here'
|
|
12466
|
-
}), createAsset(version, asset.amount,
|
|
12360
|
+
}), createAsset(version, asset.amount, ethAsset.location)]),
|
|
12467
12361
|
assets_transfer_type: 'DestinationReserve',
|
|
12468
12362
|
remote_fees_id: _defineProperty({}, version, {
|
|
12469
12363
|
parents: sdkCommon.Parents.ZERO,
|
|
12470
12364
|
interior: 'Here'
|
|
12471
12365
|
}),
|
|
12472
12366
|
fees_transfer_type: 'Teleport',
|
|
12473
|
-
custom_xcm_on_dest: createCustomXcmOnDest(options, chain, messageId),
|
|
12367
|
+
custom_xcm_on_dest: createCustomXcmOnDest(options, chain, messageId, ethAsset),
|
|
12474
12368
|
weight_limit: 'Unlimited'
|
|
12475
12369
|
}
|
|
12476
12370
|
});
|
|
@@ -12491,15 +12385,10 @@ var Mythos = /*#__PURE__*/function (_Parachain) {
|
|
|
12491
12385
|
key: "createTx",
|
|
12492
12386
|
value: function createTx(input) {
|
|
12493
12387
|
var scenario = input.scenario,
|
|
12494
|
-
asset = input.assetInfo,
|
|
12495
12388
|
destination = input.destination;
|
|
12496
12389
|
if (scenario !== 'ParaToPara') {
|
|
12497
12390
|
throw new ScenarioNotSupportedError(this.chain, scenario);
|
|
12498
12391
|
}
|
|
12499
|
-
var nativeSymbol = this.getNativeAssetSymbol();
|
|
12500
|
-
if (asset.symbol !== nativeSymbol) {
|
|
12501
|
-
throw new assets.InvalidCurrencyError("Chain ".concat(this.chain, " does not support currency ").concat(asset.symbol));
|
|
12502
|
-
}
|
|
12503
12392
|
return transferPolkadotXcm(input, destination === 'AssetHubPolkadot' ? 'limited_teleport_assets' : 'limited_reserve_transfer_assets', 'Unlimited');
|
|
12504
12393
|
}
|
|
12505
12394
|
}, {
|
|
@@ -12653,25 +12542,6 @@ var Nodle = /*#__PURE__*/function (_Parachain) {
|
|
|
12653
12542
|
}]);
|
|
12654
12543
|
}(Parachain);
|
|
12655
12544
|
|
|
12656
|
-
var NodlePaseo = /*#__PURE__*/function (_Nodle) {
|
|
12657
|
-
function NodlePaseo() {
|
|
12658
|
-
_classCallCheck(this, NodlePaseo);
|
|
12659
|
-
return _callSuper(this, NodlePaseo, ['NodlePaseo', 'NodleParadis', 'Paseo', sdkCommon.Version.V4]);
|
|
12660
|
-
}
|
|
12661
|
-
_inherits(NodlePaseo, _Nodle);
|
|
12662
|
-
return _createClass(NodlePaseo, [{
|
|
12663
|
-
key: "isSendingTempDisabled",
|
|
12664
|
-
value: function isSendingTempDisabled(_options) {
|
|
12665
|
-
return true;
|
|
12666
|
-
}
|
|
12667
|
-
}, {
|
|
12668
|
-
key: "isReceivingTempDisabled",
|
|
12669
|
-
value: function isReceivingTempDisabled(_scenario) {
|
|
12670
|
-
return true;
|
|
12671
|
-
}
|
|
12672
|
-
}]);
|
|
12673
|
-
}(Nodle);
|
|
12674
|
-
|
|
12675
12545
|
var PeoplePolkadot = /*#__PURE__*/function (_Parachain) {
|
|
12676
12546
|
function PeoplePolkadot() {
|
|
12677
12547
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'PeoplePolkadot';
|
|
@@ -12743,16 +12613,6 @@ var Peaq = /*#__PURE__*/function (_Parachain) {
|
|
|
12743
12613
|
value: function transferRelayToPara() {
|
|
12744
12614
|
throw new ChainNotSupportedError();
|
|
12745
12615
|
}
|
|
12746
|
-
}, {
|
|
12747
|
-
key: "isSendingTempDisabled",
|
|
12748
|
-
value: function isSendingTempDisabled(_options) {
|
|
12749
|
-
return true;
|
|
12750
|
-
}
|
|
12751
|
-
}, {
|
|
12752
|
-
key: "isReceivingTempDisabled",
|
|
12753
|
-
value: function isReceivingTempDisabled(_scenario) {
|
|
12754
|
-
return true;
|
|
12755
|
-
}
|
|
12756
12616
|
}, {
|
|
12757
12617
|
key: "transferLocalNonNativeAsset",
|
|
12758
12618
|
value: function transferLocalNonNativeAsset(options) {
|
|
@@ -13010,6 +12870,16 @@ var RobonomicsKusama = /*#__PURE__*/function (_Parachain) {
|
|
|
13010
12870
|
value: function transferLocalNonNativeAsset(options) {
|
|
13011
12871
|
return getChain('RobonomicsPolkadot').transferLocalNonNativeAsset(options);
|
|
13012
12872
|
}
|
|
12873
|
+
}, {
|
|
12874
|
+
key: "isSendingTempDisabled",
|
|
12875
|
+
value: function isSendingTempDisabled(_options) {
|
|
12876
|
+
return true;
|
|
12877
|
+
}
|
|
12878
|
+
}, {
|
|
12879
|
+
key: "isReceivingTempDisabled",
|
|
12880
|
+
value: function isReceivingTempDisabled(_scenario) {
|
|
12881
|
+
return true;
|
|
12882
|
+
}
|
|
13013
12883
|
}]);
|
|
13014
12884
|
}(Parachain);
|
|
13015
12885
|
|
|
@@ -13275,7 +13145,6 @@ var chains = function chains() {
|
|
|
13275
13145
|
Darwinia: new Darwinia(),
|
|
13276
13146
|
EnergyWebX: new EnergyWebX(),
|
|
13277
13147
|
Hydration: new Hydration(),
|
|
13278
|
-
IntegriteePolkadot: new IntegriteePolkadot(),
|
|
13279
13148
|
Interlay: new Interlay(),
|
|
13280
13149
|
Heima: new Heima(),
|
|
13281
13150
|
Jamton: new Jamton(),
|
|
@@ -13298,7 +13167,6 @@ var chains = function chains() {
|
|
|
13298
13167
|
AssetHubKusama: new AssetHubKusama(),
|
|
13299
13168
|
BridgeHubKusama: new BridgeHubKusama(),
|
|
13300
13169
|
CoretimeKusama: new CoretimeKusama(),
|
|
13301
|
-
IntegriteeKusama: new IntegriteeKusama(),
|
|
13302
13170
|
Encointer: new Encointer(),
|
|
13303
13171
|
Altair: new Altair(),
|
|
13304
13172
|
Amplitude: new Amplitude(),
|
|
@@ -13327,7 +13195,6 @@ var chains = function chains() {
|
|
|
13327
13195
|
BridgeHubPaseo: new BridgeHubPaseo(),
|
|
13328
13196
|
CoretimePaseo: new CoretimePaseo(),
|
|
13329
13197
|
EnergyWebXPaseo: new EnergyWebXPaseo(),
|
|
13330
|
-
IntegriteePaseo: new IntegriteePaseo(),
|
|
13331
13198
|
KiltPaseo: new KiltPaseo(),
|
|
13332
13199
|
PAssetHub: new PAssetHub(),
|
|
13333
13200
|
PeoplePaseo: new PeoplePaseo(),
|
|
@@ -13337,7 +13204,6 @@ var chains = function chains() {
|
|
|
13337
13204
|
HydrationPaseo: new HydrationPaseo(),
|
|
13338
13205
|
LaosPaseo: new LaosPaseo(),
|
|
13339
13206
|
NeuroWebPaseo: new NeuroWebPaseo(),
|
|
13340
|
-
NodlePaseo: new NodlePaseo(),
|
|
13341
13207
|
ZeitgeistPaseo: new ZeitgeistPaseo()
|
|
13342
13208
|
};
|
|
13343
13209
|
};
|