@paraspell/sdk 7.2.1 → 7.2.3
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 +1452 -881
- package/dist/index.d.ts +148 -153
- package/dist/index.mjs +1451 -880
- package/dist/papi/index.cjs +1441 -871
- package/dist/papi/index.d.ts +123 -124
- package/dist/papi/index.mjs +1440 -869
- package/package.json +1 -1
package/dist/papi/index.cjs
CHANGED
|
@@ -728,6 +728,26 @@ var DuplicateAssetIdError = /*#__PURE__*/function (_Error) {
|
|
|
728
728
|
return _createClass(DuplicateAssetIdError);
|
|
729
729
|
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
730
730
|
|
|
731
|
+
/**
|
|
732
|
+
* Error thrown when an invalid address is provided.
|
|
733
|
+
*/
|
|
734
|
+
var InvalidAddressError = /*#__PURE__*/function (_Error) {
|
|
735
|
+
/**
|
|
736
|
+
* Constructs a new InvalidAddressError.
|
|
737
|
+
*
|
|
738
|
+
* @param message - The error message.
|
|
739
|
+
*/
|
|
740
|
+
function InvalidAddressError(message) {
|
|
741
|
+
var _this;
|
|
742
|
+
_classCallCheck(this, InvalidAddressError);
|
|
743
|
+
_this = _callSuper(this, InvalidAddressError, [message]);
|
|
744
|
+
_this.name = 'InvalidAddressError';
|
|
745
|
+
return _this;
|
|
746
|
+
}
|
|
747
|
+
_inherits(InvalidAddressError, _Error);
|
|
748
|
+
return _createClass(InvalidAddressError);
|
|
749
|
+
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
750
|
+
|
|
731
751
|
var KeepAliveError = /*#__PURE__*/function (_Error) {
|
|
732
752
|
function KeepAliveError(message) {
|
|
733
753
|
var _this;
|
|
@@ -743,6 +763,7 @@ var KeepAliveError = /*#__PURE__*/function (_Error) {
|
|
|
743
763
|
var Polkadot$2 = {
|
|
744
764
|
relayChainAssetSymbol: "DOT",
|
|
745
765
|
nativeAssetSymbol: "DOT",
|
|
766
|
+
isEVM: false,
|
|
746
767
|
nativeAssets: [
|
|
747
768
|
{
|
|
748
769
|
symbol: "DOT",
|
|
@@ -755,6 +776,7 @@ var Polkadot$2 = {
|
|
|
755
776
|
var Kusama$2 = {
|
|
756
777
|
relayChainAssetSymbol: "KSM",
|
|
757
778
|
nativeAssetSymbol: "KSM",
|
|
779
|
+
isEVM: false,
|
|
758
780
|
nativeAssets: [
|
|
759
781
|
{
|
|
760
782
|
symbol: "KSM",
|
|
@@ -767,6 +789,7 @@ var Kusama$2 = {
|
|
|
767
789
|
var Polimec$4 = {
|
|
768
790
|
relayChainAssetSymbol: "DOT",
|
|
769
791
|
nativeAssetSymbol: "PLMC",
|
|
792
|
+
isEVM: false,
|
|
770
793
|
nativeAssets: [
|
|
771
794
|
{
|
|
772
795
|
symbol: "PLMC",
|
|
@@ -826,6 +849,7 @@ var Polimec$4 = {
|
|
|
826
849
|
var Acala$4 = {
|
|
827
850
|
relayChainAssetSymbol: "DOT",
|
|
828
851
|
nativeAssetSymbol: "ACA",
|
|
852
|
+
isEVM: false,
|
|
829
853
|
nativeAssets: [
|
|
830
854
|
{
|
|
831
855
|
symbol: "ACA",
|
|
@@ -1006,7 +1030,10 @@ var Acala$4 = {
|
|
|
1006
1030
|
Parachain: 2011
|
|
1007
1031
|
},
|
|
1008
1032
|
{
|
|
1009
|
-
GeneralKey:
|
|
1033
|
+
GeneralKey: {
|
|
1034
|
+
length: 3,
|
|
1035
|
+
data: "0x6571640000000000000000000000000000000000000000000000000000000000"
|
|
1036
|
+
}
|
|
1010
1037
|
}
|
|
1011
1038
|
]
|
|
1012
1039
|
}
|
|
@@ -1037,7 +1064,10 @@ var Acala$4 = {
|
|
|
1037
1064
|
Parachain: 2012
|
|
1038
1065
|
},
|
|
1039
1066
|
{
|
|
1040
|
-
GeneralKey:
|
|
1067
|
+
GeneralKey: {
|
|
1068
|
+
length: 4,
|
|
1069
|
+
data: "0x5041524100000000000000000000000000000000000000000000000000000000"
|
|
1070
|
+
}
|
|
1041
1071
|
}
|
|
1042
1072
|
]
|
|
1043
1073
|
}
|
|
@@ -1055,7 +1085,10 @@ var Acala$4 = {
|
|
|
1055
1085
|
Parachain: 2031
|
|
1056
1086
|
},
|
|
1057
1087
|
{
|
|
1058
|
-
GeneralKey:
|
|
1088
|
+
GeneralKey: {
|
|
1089
|
+
length: 2,
|
|
1090
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
1091
|
+
}
|
|
1059
1092
|
}
|
|
1060
1093
|
]
|
|
1061
1094
|
}
|
|
@@ -1073,7 +1106,10 @@ var Acala$4 = {
|
|
|
1073
1106
|
Parachain: 2032
|
|
1074
1107
|
},
|
|
1075
1108
|
{
|
|
1076
|
-
GeneralKey:
|
|
1109
|
+
GeneralKey: {
|
|
1110
|
+
length: 2,
|
|
1111
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
1112
|
+
}
|
|
1077
1113
|
}
|
|
1078
1114
|
]
|
|
1079
1115
|
}
|
|
@@ -1091,7 +1127,10 @@ var Acala$4 = {
|
|
|
1091
1127
|
Parachain: 2032
|
|
1092
1128
|
},
|
|
1093
1129
|
{
|
|
1094
|
-
GeneralKey:
|
|
1130
|
+
GeneralKey: {
|
|
1131
|
+
length: 2,
|
|
1132
|
+
data: "0x0002000000000000000000000000000000000000000000000000000000000000"
|
|
1133
|
+
}
|
|
1095
1134
|
}
|
|
1096
1135
|
]
|
|
1097
1136
|
}
|
|
@@ -1159,6 +1198,7 @@ var Acala$4 = {
|
|
|
1159
1198
|
var BridgeHubPolkadot$4 = {
|
|
1160
1199
|
relayChainAssetSymbol: "DOT",
|
|
1161
1200
|
nativeAssetSymbol: "DOT",
|
|
1201
|
+
isEVM: false,
|
|
1162
1202
|
nativeAssets: [
|
|
1163
1203
|
{
|
|
1164
1204
|
symbol: "DOT",
|
|
@@ -1171,6 +1211,7 @@ var BridgeHubPolkadot$4 = {
|
|
|
1171
1211
|
var BridgeHubKusama$4 = {
|
|
1172
1212
|
relayChainAssetSymbol: "KSM",
|
|
1173
1213
|
nativeAssetSymbol: "KSM",
|
|
1214
|
+
isEVM: false,
|
|
1174
1215
|
nativeAssets: [
|
|
1175
1216
|
{
|
|
1176
1217
|
symbol: "KSM",
|
|
@@ -1183,6 +1224,7 @@ var BridgeHubKusama$4 = {
|
|
|
1183
1224
|
var Astar$4 = {
|
|
1184
1225
|
relayChainAssetSymbol: "DOT",
|
|
1185
1226
|
nativeAssetSymbol: "ASTR",
|
|
1227
|
+
isEVM: false,
|
|
1186
1228
|
nativeAssets: [
|
|
1187
1229
|
{
|
|
1188
1230
|
symbol: "ASTR",
|
|
@@ -1276,7 +1318,10 @@ var Astar$4 = {
|
|
|
1276
1318
|
Parachain: 2000
|
|
1277
1319
|
},
|
|
1278
1320
|
{
|
|
1279
|
-
GeneralKey:
|
|
1321
|
+
GeneralKey: {
|
|
1322
|
+
length: 2,
|
|
1323
|
+
data: "0x0003000000000000000000000000000000000000000000000000000000000000"
|
|
1324
|
+
}
|
|
1280
1325
|
}
|
|
1281
1326
|
]
|
|
1282
1327
|
}
|
|
@@ -1294,7 +1339,10 @@ var Astar$4 = {
|
|
|
1294
1339
|
Parachain: 2000
|
|
1295
1340
|
},
|
|
1296
1341
|
{
|
|
1297
|
-
GeneralKey:
|
|
1342
|
+
GeneralKey: {
|
|
1343
|
+
length: 2,
|
|
1344
|
+
data: "0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
1345
|
+
}
|
|
1298
1346
|
}
|
|
1299
1347
|
]
|
|
1300
1348
|
}
|
|
@@ -1312,7 +1360,10 @@ var Astar$4 = {
|
|
|
1312
1360
|
Parachain: 2000
|
|
1313
1361
|
},
|
|
1314
1362
|
{
|
|
1315
|
-
GeneralKey:
|
|
1363
|
+
GeneralKey: {
|
|
1364
|
+
length: 2,
|
|
1365
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
1366
|
+
}
|
|
1316
1367
|
}
|
|
1317
1368
|
]
|
|
1318
1369
|
}
|
|
@@ -1361,7 +1412,10 @@ var Astar$4 = {
|
|
|
1361
1412
|
Parachain: 2011
|
|
1362
1413
|
},
|
|
1363
1414
|
{
|
|
1364
|
-
GeneralKey:
|
|
1415
|
+
GeneralKey: {
|
|
1416
|
+
length: 3,
|
|
1417
|
+
data: "0x6571640000000000000000000000000000000000000000000000000000000000"
|
|
1418
|
+
}
|
|
1365
1419
|
}
|
|
1366
1420
|
]
|
|
1367
1421
|
}
|
|
@@ -1392,7 +1446,10 @@ var Astar$4 = {
|
|
|
1392
1446
|
Parachain: 2030
|
|
1393
1447
|
},
|
|
1394
1448
|
{
|
|
1395
|
-
GeneralKey:
|
|
1449
|
+
GeneralKey: {
|
|
1450
|
+
length: 2,
|
|
1451
|
+
data: "0x0804000000000000000000000000000000000000000000000000000000000000"
|
|
1452
|
+
}
|
|
1396
1453
|
}
|
|
1397
1454
|
]
|
|
1398
1455
|
}
|
|
@@ -1410,7 +1467,10 @@ var Astar$4 = {
|
|
|
1410
1467
|
Parachain: 2030
|
|
1411
1468
|
},
|
|
1412
1469
|
{
|
|
1413
|
-
GeneralKey:
|
|
1470
|
+
GeneralKey: {
|
|
1471
|
+
length: 2,
|
|
1472
|
+
data: "0x0403000000000000000000000000000000000000000000000000000000000000"
|
|
1473
|
+
}
|
|
1414
1474
|
}
|
|
1415
1475
|
]
|
|
1416
1476
|
}
|
|
@@ -1428,7 +1488,10 @@ var Astar$4 = {
|
|
|
1428
1488
|
Parachain: 2030
|
|
1429
1489
|
},
|
|
1430
1490
|
{
|
|
1431
|
-
GeneralKey:
|
|
1491
|
+
GeneralKey: {
|
|
1492
|
+
length: 2,
|
|
1493
|
+
data: "0x0908000000000000000000000000000000000000000000000000000000000000"
|
|
1494
|
+
}
|
|
1432
1495
|
}
|
|
1433
1496
|
]
|
|
1434
1497
|
}
|
|
@@ -1446,7 +1509,10 @@ var Astar$4 = {
|
|
|
1446
1509
|
Parachain: 2030
|
|
1447
1510
|
},
|
|
1448
1511
|
{
|
|
1449
|
-
GeneralKey:
|
|
1512
|
+
GeneralKey: {
|
|
1513
|
+
length: 2,
|
|
1514
|
+
data: "0x0900000000000000000000000000000000000000000000000000000000000000"
|
|
1515
|
+
}
|
|
1450
1516
|
}
|
|
1451
1517
|
]
|
|
1452
1518
|
}
|
|
@@ -1464,7 +1530,10 @@ var Astar$4 = {
|
|
|
1464
1530
|
Parachain: 2030
|
|
1465
1531
|
},
|
|
1466
1532
|
{
|
|
1467
|
-
GeneralKey:
|
|
1533
|
+
GeneralKey: {
|
|
1534
|
+
length: 2,
|
|
1535
|
+
data: "0x0904000000000000000000000000000000000000000000000000000000000000"
|
|
1536
|
+
}
|
|
1468
1537
|
}
|
|
1469
1538
|
]
|
|
1470
1539
|
}
|
|
@@ -1482,7 +1551,10 @@ var Astar$4 = {
|
|
|
1482
1551
|
Parachain: 2030
|
|
1483
1552
|
},
|
|
1484
1553
|
{
|
|
1485
|
-
GeneralKey:
|
|
1554
|
+
GeneralKey: {
|
|
1555
|
+
length: 2,
|
|
1556
|
+
data: "0x0903000000000000000000000000000000000000000000000000000000000000"
|
|
1557
|
+
}
|
|
1486
1558
|
}
|
|
1487
1559
|
]
|
|
1488
1560
|
}
|
|
@@ -1500,7 +1572,10 @@ var Astar$4 = {
|
|
|
1500
1572
|
Parachain: 2030
|
|
1501
1573
|
},
|
|
1502
1574
|
{
|
|
1503
|
-
GeneralKey:
|
|
1575
|
+
GeneralKey: {
|
|
1576
|
+
length: 2,
|
|
1577
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
1578
|
+
}
|
|
1504
1579
|
}
|
|
1505
1580
|
]
|
|
1506
1581
|
}
|
|
@@ -1518,7 +1593,10 @@ var Astar$4 = {
|
|
|
1518
1593
|
Parachain: 2030
|
|
1519
1594
|
},
|
|
1520
1595
|
{
|
|
1521
|
-
GeneralKey:
|
|
1596
|
+
GeneralKey: {
|
|
1597
|
+
length: 2,
|
|
1598
|
+
data: "0x0901000000000000000000000000000000000000000000000000000000000000"
|
|
1599
|
+
}
|
|
1522
1600
|
}
|
|
1523
1601
|
]
|
|
1524
1602
|
}
|
|
@@ -1536,7 +1614,10 @@ var Astar$4 = {
|
|
|
1536
1614
|
Parachain: 2032
|
|
1537
1615
|
},
|
|
1538
1616
|
{
|
|
1539
|
-
GeneralKey:
|
|
1617
|
+
GeneralKey: {
|
|
1618
|
+
length: 2,
|
|
1619
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
1620
|
+
}
|
|
1540
1621
|
}
|
|
1541
1622
|
]
|
|
1542
1623
|
}
|
|
@@ -1554,7 +1635,10 @@ var Astar$4 = {
|
|
|
1554
1635
|
Parachain: 2032
|
|
1555
1636
|
},
|
|
1556
1637
|
{
|
|
1557
|
-
GeneralKey:
|
|
1638
|
+
GeneralKey: {
|
|
1639
|
+
length: 2,
|
|
1640
|
+
data: "0x0002000000000000000000000000000000000000000000000000000000000000"
|
|
1641
|
+
}
|
|
1558
1642
|
}
|
|
1559
1643
|
]
|
|
1560
1644
|
}
|
|
@@ -1640,10 +1724,16 @@ var Astar$4 = {
|
|
|
1640
1724
|
GeneralIndex: 2
|
|
1641
1725
|
},
|
|
1642
1726
|
{
|
|
1643
|
-
GeneralKey:
|
|
1727
|
+
GeneralKey: {
|
|
1728
|
+
length: 4,
|
|
1729
|
+
data: "0x4555524300000000000000000000000000000000000000000000000000000000"
|
|
1730
|
+
}
|
|
1644
1731
|
},
|
|
1645
1732
|
{
|
|
1646
|
-
GeneralKey:
|
|
1733
|
+
GeneralKey: {
|
|
1734
|
+
length: 32,
|
|
1735
|
+
data: "0x2112ee863867e4e219fe254c0918b00bc9ea400775bfc3ab4430971ce505877c"
|
|
1736
|
+
}
|
|
1647
1737
|
}
|
|
1648
1738
|
]
|
|
1649
1739
|
}
|
|
@@ -1693,6 +1783,7 @@ var Astar$4 = {
|
|
|
1693
1783
|
var BifrostPolkadot$4 = {
|
|
1694
1784
|
relayChainAssetSymbol: "DOT",
|
|
1695
1785
|
nativeAssetSymbol: "BNC",
|
|
1786
|
+
isEVM: false,
|
|
1696
1787
|
nativeAssets: [
|
|
1697
1788
|
{
|
|
1698
1789
|
symbol: "BNC",
|
|
@@ -1712,7 +1803,10 @@ var BifrostPolkadot$4 = {
|
|
|
1712
1803
|
Parachain: 2032
|
|
1713
1804
|
},
|
|
1714
1805
|
{
|
|
1715
|
-
GeneralKey:
|
|
1806
|
+
GeneralKey: {
|
|
1807
|
+
length: 2,
|
|
1808
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
1809
|
+
}
|
|
1716
1810
|
}
|
|
1717
1811
|
]
|
|
1718
1812
|
}
|
|
@@ -2046,7 +2140,10 @@ var BifrostPolkadot$4 = {
|
|
|
2046
2140
|
Parachain: 2030
|
|
2047
2141
|
},
|
|
2048
2142
|
{
|
|
2049
|
-
GeneralKey:
|
|
2143
|
+
GeneralKey: {
|
|
2144
|
+
length: 2,
|
|
2145
|
+
data: "0x0403000000000000000000000000000000000000000000000000000000000000"
|
|
2146
|
+
}
|
|
2050
2147
|
}
|
|
2051
2148
|
]
|
|
2052
2149
|
}
|
|
@@ -2064,7 +2161,10 @@ var BifrostPolkadot$4 = {
|
|
|
2064
2161
|
Parachain: 2032
|
|
2065
2162
|
},
|
|
2066
2163
|
{
|
|
2067
|
-
GeneralKey:
|
|
2164
|
+
GeneralKey: {
|
|
2165
|
+
length: 2,
|
|
2166
|
+
data: "0x0002000000000000000000000000000000000000000000000000000000000000"
|
|
2167
|
+
}
|
|
2068
2168
|
}
|
|
2069
2169
|
]
|
|
2070
2170
|
}
|
|
@@ -2088,6 +2188,7 @@ var BifrostPolkadot$4 = {
|
|
|
2088
2188
|
var Bitgreen$4 = {
|
|
2089
2189
|
relayChainAssetSymbol: "DOT",
|
|
2090
2190
|
nativeAssetSymbol: "BBB",
|
|
2191
|
+
isEVM: false,
|
|
2091
2192
|
nativeAssets: [
|
|
2092
2193
|
{
|
|
2093
2194
|
symbol: "BBB",
|
|
@@ -2100,6 +2201,7 @@ var Bitgreen$4 = {
|
|
|
2100
2201
|
var Centrifuge$4 = {
|
|
2101
2202
|
relayChainAssetSymbol: "DOT",
|
|
2102
2203
|
nativeAssetSymbol: "CFG",
|
|
2204
|
+
isEVM: false,
|
|
2103
2205
|
nativeAssets: [
|
|
2104
2206
|
{
|
|
2105
2207
|
symbol: "CFG",
|
|
@@ -2172,7 +2274,10 @@ var Centrifuge$4 = {
|
|
|
2172
2274
|
Parachain: 2000
|
|
2173
2275
|
},
|
|
2174
2276
|
{
|
|
2175
|
-
GeneralKey:
|
|
2277
|
+
GeneralKey: {
|
|
2278
|
+
length: 2,
|
|
2279
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
2280
|
+
}
|
|
2176
2281
|
}
|
|
2177
2282
|
]
|
|
2178
2283
|
}
|
|
@@ -2301,7 +2406,10 @@ var Centrifuge$4 = {
|
|
|
2301
2406
|
Parachain: 2031
|
|
2302
2407
|
},
|
|
2303
2408
|
{
|
|
2304
|
-
GeneralKey:
|
|
2409
|
+
GeneralKey: {
|
|
2410
|
+
length: 2,
|
|
2411
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
2412
|
+
}
|
|
2305
2413
|
}
|
|
2306
2414
|
]
|
|
2307
2415
|
}
|
|
@@ -2405,6 +2513,7 @@ var Centrifuge$4 = {
|
|
|
2405
2513
|
var Subsocial$4 = {
|
|
2406
2514
|
relayChainAssetSymbol: "DOT",
|
|
2407
2515
|
nativeAssetSymbol: "SUB",
|
|
2516
|
+
isEVM: false,
|
|
2408
2517
|
nativeAssets: [
|
|
2409
2518
|
{
|
|
2410
2519
|
symbol: "SUB",
|
|
@@ -2417,6 +2526,7 @@ var Subsocial$4 = {
|
|
|
2417
2526
|
var ComposableFinance$4 = {
|
|
2418
2527
|
relayChainAssetSymbol: "DOT",
|
|
2419
2528
|
nativeAssetSymbol: "LAYR",
|
|
2529
|
+
isEVM: false,
|
|
2420
2530
|
nativeAssets: [
|
|
2421
2531
|
{
|
|
2422
2532
|
symbol: "LAYR",
|
|
@@ -2556,6 +2666,7 @@ var ComposableFinance$4 = {
|
|
|
2556
2666
|
var Darwinia$4 = {
|
|
2557
2667
|
relayChainAssetSymbol: "DOT",
|
|
2558
2668
|
nativeAssetSymbol: "RING",
|
|
2669
|
+
isEVM: true,
|
|
2559
2670
|
nativeAssets: [
|
|
2560
2671
|
{
|
|
2561
2672
|
symbol: "RING",
|
|
@@ -2621,6 +2732,7 @@ var Darwinia$4 = {
|
|
|
2621
2732
|
var Hydration$4 = {
|
|
2622
2733
|
relayChainAssetSymbol: "DOT",
|
|
2623
2734
|
nativeAssetSymbol: "HDX",
|
|
2735
|
+
isEVM: false,
|
|
2624
2736
|
nativeAssets: [
|
|
2625
2737
|
{
|
|
2626
2738
|
symbol: "HDX",
|
|
@@ -2843,7 +2955,10 @@ var Hydration$4 = {
|
|
|
2843
2955
|
Parachain: 2000
|
|
2844
2956
|
},
|
|
2845
2957
|
{
|
|
2846
|
-
GeneralKey:
|
|
2958
|
+
GeneralKey: {
|
|
2959
|
+
length: 21,
|
|
2960
|
+
data: "0x025a4d6acdc4e3e5ab15717f407afe957f7a2425780000000000000000000000"
|
|
2961
|
+
}
|
|
2847
2962
|
}
|
|
2848
2963
|
]
|
|
2849
2964
|
}
|
|
@@ -2862,7 +2977,10 @@ var Hydration$4 = {
|
|
|
2862
2977
|
Parachain: 2000
|
|
2863
2978
|
},
|
|
2864
2979
|
{
|
|
2865
|
-
GeneralKey:
|
|
2980
|
+
GeneralKey: {
|
|
2981
|
+
length: 2,
|
|
2982
|
+
data: "0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
2983
|
+
}
|
|
2866
2984
|
}
|
|
2867
2985
|
]
|
|
2868
2986
|
}
|
|
@@ -2880,7 +2998,10 @@ var Hydration$4 = {
|
|
|
2880
2998
|
Parachain: 2000
|
|
2881
2999
|
},
|
|
2882
3000
|
{
|
|
2883
|
-
GeneralKey:
|
|
3001
|
+
GeneralKey: {
|
|
3002
|
+
length: 21,
|
|
3003
|
+
data: "0x02f4c723e61709d90f89939c1852f516e373d418a80000000000000000000000"
|
|
3004
|
+
}
|
|
2884
3005
|
}
|
|
2885
3006
|
]
|
|
2886
3007
|
}
|
|
@@ -2898,7 +3019,10 @@ var Hydration$4 = {
|
|
|
2898
3019
|
Parachain: 2000
|
|
2899
3020
|
},
|
|
2900
3021
|
{
|
|
2901
|
-
GeneralKey:
|
|
3022
|
+
GeneralKey: {
|
|
3023
|
+
length: 21,
|
|
3024
|
+
data: "0x0254a37a01cd75b616d63e0ab665bffdb0143c52ae0000000000000000000000"
|
|
3025
|
+
}
|
|
2902
3026
|
}
|
|
2903
3027
|
]
|
|
2904
3028
|
}
|
|
@@ -2917,7 +3041,10 @@ var Hydration$4 = {
|
|
|
2917
3041
|
Parachain: 2000
|
|
2918
3042
|
},
|
|
2919
3043
|
{
|
|
2920
|
-
GeneralKey:
|
|
3044
|
+
GeneralKey: {
|
|
3045
|
+
length: 21,
|
|
3046
|
+
data: "0x0207df96d1341a7d16ba1ad431e2c847d978bc2bce0000000000000000000000"
|
|
3047
|
+
}
|
|
2921
3048
|
}
|
|
2922
3049
|
]
|
|
2923
3050
|
}
|
|
@@ -2936,7 +3063,10 @@ var Hydration$4 = {
|
|
|
2936
3063
|
Parachain: 2000
|
|
2937
3064
|
},
|
|
2938
3065
|
{
|
|
2939
|
-
GeneralKey:
|
|
3066
|
+
GeneralKey: {
|
|
3067
|
+
length: 2,
|
|
3068
|
+
data: "0x0003000000000000000000000000000000000000000000000000000000000000"
|
|
3069
|
+
}
|
|
2940
3070
|
}
|
|
2941
3071
|
]
|
|
2942
3072
|
}
|
|
@@ -2954,7 +3084,10 @@ var Hydration$4 = {
|
|
|
2954
3084
|
Parachain: 2000
|
|
2955
3085
|
},
|
|
2956
3086
|
{
|
|
2957
|
-
GeneralKey:
|
|
3087
|
+
GeneralKey: {
|
|
3088
|
+
length: 21,
|
|
3089
|
+
data: "0x02c80084af223c8b598536178d9361dc55bfda68180000000000000000000000"
|
|
3090
|
+
}
|
|
2958
3091
|
}
|
|
2959
3092
|
]
|
|
2960
3093
|
}
|
|
@@ -3160,7 +3293,10 @@ var Hydration$4 = {
|
|
|
3160
3293
|
Parachain: 2030
|
|
3161
3294
|
},
|
|
3162
3295
|
{
|
|
3163
|
-
GeneralKey:
|
|
3296
|
+
GeneralKey: {
|
|
3297
|
+
length: 2,
|
|
3298
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
3299
|
+
}
|
|
3164
3300
|
}
|
|
3165
3301
|
]
|
|
3166
3302
|
}
|
|
@@ -3178,7 +3314,10 @@ var Hydration$4 = {
|
|
|
3178
3314
|
Parachain: 2030
|
|
3179
3315
|
},
|
|
3180
3316
|
{
|
|
3181
|
-
GeneralKey:
|
|
3317
|
+
GeneralKey: {
|
|
3318
|
+
length: 2,
|
|
3319
|
+
data: "0x0903000000000000000000000000000000000000000000000000000000000000"
|
|
3320
|
+
}
|
|
3182
3321
|
}
|
|
3183
3322
|
]
|
|
3184
3323
|
}
|
|
@@ -3196,7 +3335,10 @@ var Hydration$4 = {
|
|
|
3196
3335
|
Parachain: 2030
|
|
3197
3336
|
},
|
|
3198
3337
|
{
|
|
3199
|
-
GeneralKey:
|
|
3338
|
+
GeneralKey: {
|
|
3339
|
+
length: 2,
|
|
3340
|
+
data: "0x0900000000000000000000000000000000000000000000000000000000000000"
|
|
3341
|
+
}
|
|
3200
3342
|
}
|
|
3201
3343
|
]
|
|
3202
3344
|
}
|
|
@@ -3214,7 +3356,10 @@ var Hydration$4 = {
|
|
|
3214
3356
|
Parachain: 2031
|
|
3215
3357
|
},
|
|
3216
3358
|
{
|
|
3217
|
-
GeneralKey:
|
|
3359
|
+
GeneralKey: {
|
|
3360
|
+
length: 2,
|
|
3361
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
3362
|
+
}
|
|
3218
3363
|
}
|
|
3219
3364
|
]
|
|
3220
3365
|
}
|
|
@@ -3232,7 +3377,10 @@ var Hydration$4 = {
|
|
|
3232
3377
|
Parachain: 2032
|
|
3233
3378
|
},
|
|
3234
3379
|
{
|
|
3235
|
-
GeneralKey:
|
|
3380
|
+
GeneralKey: {
|
|
3381
|
+
length: 2,
|
|
3382
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
3383
|
+
}
|
|
3236
3384
|
}
|
|
3237
3385
|
]
|
|
3238
3386
|
}
|
|
@@ -3250,7 +3398,10 @@ var Hydration$4 = {
|
|
|
3250
3398
|
Parachain: 2032
|
|
3251
3399
|
},
|
|
3252
3400
|
{
|
|
3253
|
-
GeneralKey:
|
|
3401
|
+
GeneralKey: {
|
|
3402
|
+
length: 2,
|
|
3403
|
+
data: "0x0002000000000000000000000000000000000000000000000000000000000000"
|
|
3404
|
+
}
|
|
3254
3405
|
}
|
|
3255
3406
|
]
|
|
3256
3407
|
}
|
|
@@ -3312,7 +3463,10 @@ var Hydration$4 = {
|
|
|
3312
3463
|
Parachain: 2051
|
|
3313
3464
|
},
|
|
3314
3465
|
{
|
|
3315
|
-
GeneralKey:
|
|
3466
|
+
GeneralKey: {
|
|
3467
|
+
length: 4,
|
|
3468
|
+
data: "0x414a554e00000000000000000000000000000000000000000000000000000000"
|
|
3469
|
+
}
|
|
3316
3470
|
}
|
|
3317
3471
|
]
|
|
3318
3472
|
}
|
|
@@ -3343,7 +3497,10 @@ var Hydration$4 = {
|
|
|
3343
3497
|
Parachain: 2092
|
|
3344
3498
|
},
|
|
3345
3499
|
{
|
|
3346
|
-
GeneralKey:
|
|
3500
|
+
GeneralKey: {
|
|
3501
|
+
length: 2,
|
|
3502
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
3503
|
+
}
|
|
3347
3504
|
}
|
|
3348
3505
|
]
|
|
3349
3506
|
}
|
|
@@ -3411,6 +3568,7 @@ var Hydration$4 = {
|
|
|
3411
3568
|
var Interlay$4 = {
|
|
3412
3569
|
relayChainAssetSymbol: "DOT",
|
|
3413
3570
|
nativeAssetSymbol: "INTR",
|
|
3571
|
+
isEVM: false,
|
|
3414
3572
|
nativeAssets: [
|
|
3415
3573
|
{
|
|
3416
3574
|
symbol: "INTR",
|
|
@@ -3492,7 +3650,10 @@ var Interlay$4 = {
|
|
|
3492
3650
|
Parachain: 2000
|
|
3493
3651
|
},
|
|
3494
3652
|
{
|
|
3495
|
-
GeneralKey:
|
|
3653
|
+
GeneralKey: {
|
|
3654
|
+
length: 2,
|
|
3655
|
+
data: "0x0003000000000000000000000000000000000000000000000000000000000000"
|
|
3656
|
+
}
|
|
3496
3657
|
}
|
|
3497
3658
|
]
|
|
3498
3659
|
}
|
|
@@ -3696,7 +3857,10 @@ var Interlay$4 = {
|
|
|
3696
3857
|
Parachain: 2030
|
|
3697
3858
|
},
|
|
3698
3859
|
{
|
|
3699
|
-
GeneralKey:
|
|
3860
|
+
GeneralKey: {
|
|
3861
|
+
length: 2,
|
|
3862
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
3863
|
+
}
|
|
3700
3864
|
}
|
|
3701
3865
|
]
|
|
3702
3866
|
}
|
|
@@ -3714,7 +3878,10 @@ var Interlay$4 = {
|
|
|
3714
3878
|
Parachain: 2030
|
|
3715
3879
|
},
|
|
3716
3880
|
{
|
|
3717
|
-
GeneralKey:
|
|
3881
|
+
GeneralKey: {
|
|
3882
|
+
length: 2,
|
|
3883
|
+
data: "0x0900000000000000000000000000000000000000000000000000000000000000"
|
|
3884
|
+
}
|
|
3718
3885
|
}
|
|
3719
3886
|
]
|
|
3720
3887
|
}
|
|
@@ -3756,6 +3923,7 @@ var Interlay$4 = {
|
|
|
3756
3923
|
var Litentry$4 = {
|
|
3757
3924
|
relayChainAssetSymbol: "DOT",
|
|
3758
3925
|
nativeAssetSymbol: "LIT",
|
|
3926
|
+
isEVM: false,
|
|
3759
3927
|
nativeAssets: [
|
|
3760
3928
|
{
|
|
3761
3929
|
symbol: "LIT",
|
|
@@ -3768,6 +3936,7 @@ var Litentry$4 = {
|
|
|
3768
3936
|
var Moonbeam$4 = {
|
|
3769
3937
|
relayChainAssetSymbol: "DOT",
|
|
3770
3938
|
nativeAssetSymbol: "GLMR",
|
|
3939
|
+
isEVM: true,
|
|
3771
3940
|
nativeAssets: [
|
|
3772
3941
|
{
|
|
3773
3942
|
symbol: "GLMR",
|
|
@@ -4020,7 +4189,10 @@ var Moonbeam$4 = {
|
|
|
4020
4189
|
Parachain: 2000
|
|
4021
4190
|
},
|
|
4022
4191
|
{
|
|
4023
|
-
GeneralKey:
|
|
4192
|
+
GeneralKey: {
|
|
4193
|
+
length: 2,
|
|
4194
|
+
data: "0x0003000000000000000000000000000000000000000000000000000000000000"
|
|
4195
|
+
}
|
|
4024
4196
|
}
|
|
4025
4197
|
]
|
|
4026
4198
|
}
|
|
@@ -4038,7 +4210,10 @@ var Moonbeam$4 = {
|
|
|
4038
4210
|
Parachain: 2000
|
|
4039
4211
|
},
|
|
4040
4212
|
{
|
|
4041
|
-
GeneralKey:
|
|
4213
|
+
GeneralKey: {
|
|
4214
|
+
length: 2,
|
|
4215
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
4216
|
+
}
|
|
4042
4217
|
}
|
|
4043
4218
|
]
|
|
4044
4219
|
}
|
|
@@ -4056,7 +4231,10 @@ var Moonbeam$4 = {
|
|
|
4056
4231
|
Parachain: 2000
|
|
4057
4232
|
},
|
|
4058
4233
|
{
|
|
4059
|
-
GeneralKey:
|
|
4234
|
+
GeneralKey: {
|
|
4235
|
+
length: 2,
|
|
4236
|
+
data: "0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
4237
|
+
}
|
|
4060
4238
|
}
|
|
4061
4239
|
]
|
|
4062
4240
|
}
|
|
@@ -4087,7 +4265,10 @@ var Moonbeam$4 = {
|
|
|
4087
4265
|
Parachain: 2011
|
|
4088
4266
|
},
|
|
4089
4267
|
{
|
|
4090
|
-
GeneralKey:
|
|
4268
|
+
GeneralKey: {
|
|
4269
|
+
length: 3,
|
|
4270
|
+
data: "0x6571640000000000000000000000000000000000000000000000000000000000"
|
|
4271
|
+
}
|
|
4091
4272
|
}
|
|
4092
4273
|
]
|
|
4093
4274
|
}
|
|
@@ -4118,7 +4299,10 @@ var Moonbeam$4 = {
|
|
|
4118
4299
|
Parachain: 2012
|
|
4119
4300
|
},
|
|
4120
4301
|
{
|
|
4121
|
-
GeneralKey:
|
|
4302
|
+
GeneralKey: {
|
|
4303
|
+
length: 4,
|
|
4304
|
+
data: "0x5041524100000000000000000000000000000000000000000000000000000000"
|
|
4305
|
+
}
|
|
4122
4306
|
}
|
|
4123
4307
|
]
|
|
4124
4308
|
}
|
|
@@ -4280,7 +4464,10 @@ var Moonbeam$4 = {
|
|
|
4280
4464
|
Parachain: 2030
|
|
4281
4465
|
},
|
|
4282
4466
|
{
|
|
4283
|
-
GeneralKey:
|
|
4467
|
+
GeneralKey: {
|
|
4468
|
+
length: 2,
|
|
4469
|
+
data: "0x0804000000000000000000000000000000000000000000000000000000000000"
|
|
4470
|
+
}
|
|
4284
4471
|
}
|
|
4285
4472
|
]
|
|
4286
4473
|
}
|
|
@@ -4298,7 +4485,10 @@ var Moonbeam$4 = {
|
|
|
4298
4485
|
Parachain: 2030
|
|
4299
4486
|
},
|
|
4300
4487
|
{
|
|
4301
|
-
GeneralKey:
|
|
4488
|
+
GeneralKey: {
|
|
4489
|
+
length: 2,
|
|
4490
|
+
data: "0x0900000000000000000000000000000000000000000000000000000000000000"
|
|
4491
|
+
}
|
|
4302
4492
|
}
|
|
4303
4493
|
]
|
|
4304
4494
|
}
|
|
@@ -4316,7 +4506,10 @@ var Moonbeam$4 = {
|
|
|
4316
4506
|
Parachain: 2030
|
|
4317
4507
|
},
|
|
4318
4508
|
{
|
|
4319
|
-
GeneralKey:
|
|
4509
|
+
GeneralKey: {
|
|
4510
|
+
length: 2,
|
|
4511
|
+
data: "0x0809000000000000000000000000000000000000000000000000000000000000"
|
|
4512
|
+
}
|
|
4320
4513
|
}
|
|
4321
4514
|
]
|
|
4322
4515
|
}
|
|
@@ -4334,7 +4527,10 @@ var Moonbeam$4 = {
|
|
|
4334
4527
|
Parachain: 2030
|
|
4335
4528
|
},
|
|
4336
4529
|
{
|
|
4337
|
-
GeneralKey:
|
|
4530
|
+
GeneralKey: {
|
|
4531
|
+
length: 2,
|
|
4532
|
+
data: "0x0901000000000000000000000000000000000000000000000000000000000000"
|
|
4533
|
+
}
|
|
4338
4534
|
}
|
|
4339
4535
|
]
|
|
4340
4536
|
}
|
|
@@ -4352,7 +4548,10 @@ var Moonbeam$4 = {
|
|
|
4352
4548
|
Parachain: 2030
|
|
4353
4549
|
},
|
|
4354
4550
|
{
|
|
4355
|
-
GeneralKey:
|
|
4551
|
+
GeneralKey: {
|
|
4552
|
+
length: 2,
|
|
4553
|
+
data: "0x0908000000000000000000000000000000000000000000000000000000000000"
|
|
4554
|
+
}
|
|
4356
4555
|
}
|
|
4357
4556
|
]
|
|
4358
4557
|
}
|
|
@@ -4370,7 +4569,10 @@ var Moonbeam$4 = {
|
|
|
4370
4569
|
Parachain: 2030
|
|
4371
4570
|
},
|
|
4372
4571
|
{
|
|
4373
|
-
GeneralKey:
|
|
4572
|
+
GeneralKey: {
|
|
4573
|
+
length: 2,
|
|
4574
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
4575
|
+
}
|
|
4374
4576
|
}
|
|
4375
4577
|
]
|
|
4376
4578
|
}
|
|
@@ -4388,7 +4590,10 @@ var Moonbeam$4 = {
|
|
|
4388
4590
|
Parachain: 2030
|
|
4389
4591
|
},
|
|
4390
4592
|
{
|
|
4391
|
-
GeneralKey:
|
|
4593
|
+
GeneralKey: {
|
|
4594
|
+
length: 2,
|
|
4595
|
+
data: "0x0904000000000000000000000000000000000000000000000000000000000000"
|
|
4596
|
+
}
|
|
4392
4597
|
}
|
|
4393
4598
|
]
|
|
4394
4599
|
}
|
|
@@ -4406,7 +4611,10 @@ var Moonbeam$4 = {
|
|
|
4406
4611
|
Parachain: 2030
|
|
4407
4612
|
},
|
|
4408
4613
|
{
|
|
4409
|
-
GeneralKey:
|
|
4614
|
+
GeneralKey: {
|
|
4615
|
+
length: 2,
|
|
4616
|
+
data: "0x0903000000000000000000000000000000000000000000000000000000000000"
|
|
4617
|
+
}
|
|
4410
4618
|
}
|
|
4411
4619
|
]
|
|
4412
4620
|
}
|
|
@@ -4424,7 +4632,10 @@ var Moonbeam$4 = {
|
|
|
4424
4632
|
Parachain: 2031
|
|
4425
4633
|
},
|
|
4426
4634
|
{
|
|
4427
|
-
GeneralKey:
|
|
4635
|
+
GeneralKey: {
|
|
4636
|
+
length: 2,
|
|
4637
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
4638
|
+
}
|
|
4428
4639
|
}
|
|
4429
4640
|
]
|
|
4430
4641
|
}
|
|
@@ -4442,7 +4653,10 @@ var Moonbeam$4 = {
|
|
|
4442
4653
|
Parachain: 2032
|
|
4443
4654
|
},
|
|
4444
4655
|
{
|
|
4445
|
-
GeneralKey:
|
|
4656
|
+
GeneralKey: {
|
|
4657
|
+
length: 2,
|
|
4658
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
4659
|
+
}
|
|
4446
4660
|
}
|
|
4447
4661
|
]
|
|
4448
4662
|
}
|
|
@@ -4460,7 +4674,10 @@ var Moonbeam$4 = {
|
|
|
4460
4674
|
Parachain: 2032
|
|
4461
4675
|
},
|
|
4462
4676
|
{
|
|
4463
|
-
GeneralKey:
|
|
4677
|
+
GeneralKey: {
|
|
4678
|
+
length: 2,
|
|
4679
|
+
data: "0x0002000000000000000000000000000000000000000000000000000000000000"
|
|
4680
|
+
}
|
|
4464
4681
|
}
|
|
4465
4682
|
]
|
|
4466
4683
|
}
|
|
@@ -4571,7 +4788,10 @@ var Moonbeam$4 = {
|
|
|
4571
4788
|
Parachain: 2092
|
|
4572
4789
|
},
|
|
4573
4790
|
{
|
|
4574
|
-
GeneralKey:
|
|
4791
|
+
GeneralKey: {
|
|
4792
|
+
length: 2,
|
|
4793
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
4794
|
+
}
|
|
4575
4795
|
}
|
|
4576
4796
|
]
|
|
4577
4797
|
}
|
|
@@ -4639,6 +4859,7 @@ var Moonbeam$4 = {
|
|
|
4639
4859
|
var Parallel$4 = {
|
|
4640
4860
|
relayChainAssetSymbol: "DOT",
|
|
4641
4861
|
nativeAssetSymbol: "PARA",
|
|
4862
|
+
isEVM: false,
|
|
4642
4863
|
nativeAssets: [
|
|
4643
4864
|
{
|
|
4644
4865
|
symbol: "PARA",
|
|
@@ -4690,7 +4911,10 @@ var Parallel$4 = {
|
|
|
4690
4911
|
Parachain: 2000
|
|
4691
4912
|
},
|
|
4692
4913
|
{
|
|
4693
|
-
GeneralKey:
|
|
4914
|
+
GeneralKey: {
|
|
4915
|
+
length: 2,
|
|
4916
|
+
data: "0x0003000000000000000000000000000000000000000000000000000000000000"
|
|
4917
|
+
}
|
|
4694
4918
|
}
|
|
4695
4919
|
]
|
|
4696
4920
|
}
|
|
@@ -4708,7 +4932,10 @@ var Parallel$4 = {
|
|
|
4708
4932
|
Parachain: 2000
|
|
4709
4933
|
},
|
|
4710
4934
|
{
|
|
4711
|
-
GeneralKey:
|
|
4935
|
+
GeneralKey: {
|
|
4936
|
+
length: 2,
|
|
4937
|
+
data: "0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
4938
|
+
}
|
|
4712
4939
|
}
|
|
4713
4940
|
]
|
|
4714
4941
|
}
|
|
@@ -4726,7 +4953,10 @@ var Parallel$4 = {
|
|
|
4726
4953
|
Parachain: 2000
|
|
4727
4954
|
},
|
|
4728
4955
|
{
|
|
4729
|
-
GeneralKey:
|
|
4956
|
+
GeneralKey: {
|
|
4957
|
+
length: 5,
|
|
4958
|
+
data: "0x040d000000000000000000000000000000000000000000000000000000000000"
|
|
4959
|
+
}
|
|
4730
4960
|
}
|
|
4731
4961
|
]
|
|
4732
4962
|
}
|
|
@@ -4775,7 +5005,10 @@ var Parallel$4 = {
|
|
|
4775
5005
|
Parachain: 2012
|
|
4776
5006
|
},
|
|
4777
5007
|
{
|
|
4778
|
-
GeneralKey:
|
|
5008
|
+
GeneralKey: {
|
|
5009
|
+
length: 4,
|
|
5010
|
+
data: "0x73444f5400000000000000000000000000000000000000000000000000000000"
|
|
5011
|
+
}
|
|
4779
5012
|
}
|
|
4780
5013
|
]
|
|
4781
5014
|
}
|
|
@@ -4898,7 +5131,10 @@ var Parallel$4 = {
|
|
|
4898
5131
|
Parachain: 2032
|
|
4899
5132
|
},
|
|
4900
5133
|
{
|
|
4901
|
-
GeneralKey:
|
|
5134
|
+
GeneralKey: {
|
|
5135
|
+
length: 2,
|
|
5136
|
+
data: "0x0002000000000000000000000000000000000000000000000000000000000000"
|
|
5137
|
+
}
|
|
4902
5138
|
}
|
|
4903
5139
|
]
|
|
4904
5140
|
}
|
|
@@ -4916,7 +5152,10 @@ var Parallel$4 = {
|
|
|
4916
5152
|
Parachain: 2032
|
|
4917
5153
|
},
|
|
4918
5154
|
{
|
|
4919
|
-
GeneralKey:
|
|
5155
|
+
GeneralKey: {
|
|
5156
|
+
length: 2,
|
|
5157
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
5158
|
+
}
|
|
4920
5159
|
}
|
|
4921
5160
|
]
|
|
4922
5161
|
}
|
|
@@ -4940,6 +5179,7 @@ var Parallel$4 = {
|
|
|
4940
5179
|
var AssetHubPolkadot$4 = {
|
|
4941
5180
|
relayChainAssetSymbol: "DOT",
|
|
4942
5181
|
nativeAssetSymbol: "DOT",
|
|
5182
|
+
isEVM: false,
|
|
4943
5183
|
nativeAssets: [
|
|
4944
5184
|
{
|
|
4945
5185
|
symbol: "DOT",
|
|
@@ -5129,9 +5369,11 @@ var AssetHubPolkadot$4 = {
|
|
|
5129
5369
|
multiLocation: {
|
|
5130
5370
|
parents: 1,
|
|
5131
5371
|
interior: {
|
|
5132
|
-
X1:
|
|
5133
|
-
|
|
5134
|
-
|
|
5372
|
+
X1: [
|
|
5373
|
+
{
|
|
5374
|
+
Parachain: 2011
|
|
5375
|
+
}
|
|
5376
|
+
]
|
|
5135
5377
|
}
|
|
5136
5378
|
}
|
|
5137
5379
|
},
|
|
@@ -5165,24 +5407,40 @@ var AssetHubPolkadot$4 = {
|
|
|
5165
5407
|
multiLocation: {
|
|
5166
5408
|
parents: 2,
|
|
5167
5409
|
interior: {
|
|
5168
|
-
X1:
|
|
5169
|
-
|
|
5170
|
-
|
|
5410
|
+
X1: [
|
|
5411
|
+
{
|
|
5412
|
+
GlobalConsensus: {
|
|
5413
|
+
kusama: null
|
|
5414
|
+
}
|
|
5171
5415
|
}
|
|
5172
|
-
|
|
5416
|
+
]
|
|
5173
5417
|
}
|
|
5174
5418
|
}
|
|
5175
5419
|
},
|
|
5176
5420
|
{
|
|
5177
|
-
symbol: "
|
|
5421
|
+
symbol: "TEER",
|
|
5178
5422
|
decimals: 12,
|
|
5179
5423
|
multiLocation: {
|
|
5180
5424
|
parents: 1,
|
|
5181
5425
|
interior: {
|
|
5182
|
-
|
|
5426
|
+
X1: [
|
|
5183
5427
|
{
|
|
5184
|
-
Parachain:
|
|
5185
|
-
}
|
|
5428
|
+
Parachain: 2039
|
|
5429
|
+
}
|
|
5430
|
+
]
|
|
5431
|
+
}
|
|
5432
|
+
}
|
|
5433
|
+
},
|
|
5434
|
+
{
|
|
5435
|
+
symbol: "BNC",
|
|
5436
|
+
decimals: 12,
|
|
5437
|
+
multiLocation: {
|
|
5438
|
+
parents: 1,
|
|
5439
|
+
interior: {
|
|
5440
|
+
X2: [
|
|
5441
|
+
{
|
|
5442
|
+
Parachain: 2030
|
|
5443
|
+
},
|
|
5186
5444
|
{
|
|
5187
5445
|
GeneralKey: {
|
|
5188
5446
|
length: 2,
|
|
@@ -5236,9 +5494,11 @@ var AssetHubPolkadot$4 = {
|
|
|
5236
5494
|
multiLocation: {
|
|
5237
5495
|
parents: 1,
|
|
5238
5496
|
interior: {
|
|
5239
|
-
X1:
|
|
5240
|
-
|
|
5241
|
-
|
|
5497
|
+
X1: [
|
|
5498
|
+
{
|
|
5499
|
+
Parachain: 3369
|
|
5500
|
+
}
|
|
5501
|
+
]
|
|
5242
5502
|
}
|
|
5243
5503
|
}
|
|
5244
5504
|
},
|
|
@@ -5285,9 +5545,11 @@ var AssetHubPolkadot$4 = {
|
|
|
5285
5545
|
multiLocation: {
|
|
5286
5546
|
parents: 1,
|
|
5287
5547
|
interior: {
|
|
5288
|
-
X1:
|
|
5289
|
-
|
|
5290
|
-
|
|
5548
|
+
X1: [
|
|
5549
|
+
{
|
|
5550
|
+
Parachain: 2051
|
|
5551
|
+
}
|
|
5552
|
+
]
|
|
5291
5553
|
}
|
|
5292
5554
|
}
|
|
5293
5555
|
}
|
|
@@ -5296,6 +5558,7 @@ var AssetHubPolkadot$4 = {
|
|
|
5296
5558
|
var Altair$4 = {
|
|
5297
5559
|
relayChainAssetSymbol: "KSM",
|
|
5298
5560
|
nativeAssetSymbol: "AIR",
|
|
5561
|
+
isEVM: false,
|
|
5299
5562
|
nativeAssets: [
|
|
5300
5563
|
{
|
|
5301
5564
|
symbol: "AIR",
|
|
@@ -5347,7 +5610,10 @@ var Altair$4 = {
|
|
|
5347
5610
|
Parachain: 2000
|
|
5348
5611
|
},
|
|
5349
5612
|
{
|
|
5350
|
-
GeneralKey:
|
|
5613
|
+
GeneralKey: {
|
|
5614
|
+
length: 2,
|
|
5615
|
+
data: "0x0081000000000000000000000000000000000000000000000000000000000000"
|
|
5616
|
+
}
|
|
5351
5617
|
}
|
|
5352
5618
|
]
|
|
5353
5619
|
}
|
|
@@ -5365,7 +5631,10 @@ var Altair$4 = {
|
|
|
5365
5631
|
Parachain: 2088
|
|
5366
5632
|
},
|
|
5367
5633
|
{
|
|
5368
|
-
GeneralKey:
|
|
5634
|
+
GeneralKey: {
|
|
5635
|
+
length: 2,
|
|
5636
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
5637
|
+
}
|
|
5369
5638
|
}
|
|
5370
5639
|
]
|
|
5371
5640
|
}
|
|
@@ -5376,6 +5645,7 @@ var Altair$4 = {
|
|
|
5376
5645
|
var Amplitude$4 = {
|
|
5377
5646
|
relayChainAssetSymbol: "KSM",
|
|
5378
5647
|
nativeAssetSymbol: "AMPE",
|
|
5648
|
+
isEVM: false,
|
|
5379
5649
|
nativeAssets: [
|
|
5380
5650
|
{
|
|
5381
5651
|
symbol: "AMPE",
|
|
@@ -5403,6 +5673,7 @@ var Amplitude$4 = {
|
|
|
5403
5673
|
var Bajun$4 = {
|
|
5404
5674
|
relayChainAssetSymbol: "KSM",
|
|
5405
5675
|
nativeAssetSymbol: "BAJU",
|
|
5676
|
+
isEVM: false,
|
|
5406
5677
|
nativeAssets: [
|
|
5407
5678
|
{
|
|
5408
5679
|
symbol: "BAJU",
|
|
@@ -5415,6 +5686,7 @@ var Bajun$4 = {
|
|
|
5415
5686
|
var Basilisk$4 = {
|
|
5416
5687
|
relayChainAssetSymbol: "KSM",
|
|
5417
5688
|
nativeAssetSymbol: "BSX",
|
|
5689
|
+
isEVM: false,
|
|
5418
5690
|
nativeAssets: [
|
|
5419
5691
|
{
|
|
5420
5692
|
symbol: "BSX",
|
|
@@ -5466,7 +5738,10 @@ var Basilisk$4 = {
|
|
|
5466
5738
|
Parachain: 2000
|
|
5467
5739
|
},
|
|
5468
5740
|
{
|
|
5469
|
-
GeneralKey:
|
|
5741
|
+
GeneralKey: {
|
|
5742
|
+
length: 21,
|
|
5743
|
+
data: "0x024bb6afb5fa2b07a5d1c499e1c3ddb5a15e709a710000000000000000000000"
|
|
5744
|
+
}
|
|
5470
5745
|
}
|
|
5471
5746
|
]
|
|
5472
5747
|
}
|
|
@@ -5484,7 +5759,10 @@ var Basilisk$4 = {
|
|
|
5484
5759
|
Parachain: 2000
|
|
5485
5760
|
},
|
|
5486
5761
|
{
|
|
5487
|
-
GeneralKey:
|
|
5762
|
+
GeneralKey: {
|
|
5763
|
+
length: 21,
|
|
5764
|
+
data: "0x021f3a10587a20114ea25ba1b388ee2dd4a337ce270000000000000000000000"
|
|
5765
|
+
}
|
|
5488
5766
|
}
|
|
5489
5767
|
]
|
|
5490
5768
|
}
|
|
@@ -5502,7 +5780,10 @@ var Basilisk$4 = {
|
|
|
5502
5780
|
Parachain: 2000
|
|
5503
5781
|
},
|
|
5504
5782
|
{
|
|
5505
|
-
GeneralKey:
|
|
5783
|
+
GeneralKey: {
|
|
5784
|
+
length: 2,
|
|
5785
|
+
data: "0x0081000000000000000000000000000000000000000000000000000000000000"
|
|
5786
|
+
}
|
|
5506
5787
|
}
|
|
5507
5788
|
]
|
|
5508
5789
|
}
|
|
@@ -5520,7 +5801,10 @@ var Basilisk$4 = {
|
|
|
5520
5801
|
Parachain: 2000
|
|
5521
5802
|
},
|
|
5522
5803
|
{
|
|
5523
|
-
GeneralKey:
|
|
5804
|
+
GeneralKey: {
|
|
5805
|
+
length: 21,
|
|
5806
|
+
data: "0x02ece0cc38021e734bef1d5da071b027ac2f71181f0000000000000000000000"
|
|
5807
|
+
}
|
|
5524
5808
|
}
|
|
5525
5809
|
]
|
|
5526
5810
|
}
|
|
@@ -5538,7 +5822,10 @@ var Basilisk$4 = {
|
|
|
5538
5822
|
Parachain: 2000
|
|
5539
5823
|
},
|
|
5540
5824
|
{
|
|
5541
|
-
GeneralKey:
|
|
5825
|
+
GeneralKey: {
|
|
5826
|
+
length: 21,
|
|
5827
|
+
data: "0x0266291c7d88d2ed9a708147bae4e0814a76705e2f0000000000000000000000"
|
|
5828
|
+
}
|
|
5542
5829
|
}
|
|
5543
5830
|
]
|
|
5544
5831
|
}
|
|
@@ -5556,7 +5843,10 @@ var Basilisk$4 = {
|
|
|
5556
5843
|
Parachain: 2000
|
|
5557
5844
|
},
|
|
5558
5845
|
{
|
|
5559
|
-
GeneralKey:
|
|
5846
|
+
GeneralKey: {
|
|
5847
|
+
length: 21,
|
|
5848
|
+
data: "0x0254e183e533fd3c6e72debb2d1cab451d017faf720000000000000000000000"
|
|
5849
|
+
}
|
|
5560
5850
|
}
|
|
5561
5851
|
]
|
|
5562
5852
|
}
|
|
@@ -5598,6 +5888,7 @@ var Basilisk$4 = {
|
|
|
5598
5888
|
var BifrostKusama$4 = {
|
|
5599
5889
|
relayChainAssetSymbol: "KSM",
|
|
5600
5890
|
nativeAssetSymbol: "BNC",
|
|
5891
|
+
isEVM: false,
|
|
5601
5892
|
nativeAssets: [
|
|
5602
5893
|
{
|
|
5603
5894
|
symbol: "BNC",
|
|
@@ -5670,7 +5961,10 @@ var BifrostKusama$4 = {
|
|
|
5670
5961
|
Parachain: 2092
|
|
5671
5962
|
},
|
|
5672
5963
|
{
|
|
5673
|
-
GeneralKey:
|
|
5964
|
+
GeneralKey: {
|
|
5965
|
+
length: 2,
|
|
5966
|
+
data: "0x000b000000000000000000000000000000000000000000000000000000000000"
|
|
5967
|
+
}
|
|
5674
5968
|
}
|
|
5675
5969
|
]
|
|
5676
5970
|
}
|
|
@@ -5688,7 +5982,10 @@ var BifrostKusama$4 = {
|
|
|
5688
5982
|
Parachain: 2092
|
|
5689
5983
|
},
|
|
5690
5984
|
{
|
|
5691
|
-
GeneralKey:
|
|
5985
|
+
GeneralKey: {
|
|
5986
|
+
length: 2,
|
|
5987
|
+
data: "0x000c000000000000000000000000000000000000000000000000000000000000"
|
|
5988
|
+
}
|
|
5692
5989
|
}
|
|
5693
5990
|
]
|
|
5694
5991
|
}
|
|
@@ -5706,7 +6003,10 @@ var BifrostKusama$4 = {
|
|
|
5706
6003
|
Parachain: 2110
|
|
5707
6004
|
},
|
|
5708
6005
|
{
|
|
5709
|
-
GeneralKey:
|
|
6006
|
+
GeneralKey: {
|
|
6007
|
+
length: 4,
|
|
6008
|
+
data: "0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
6009
|
+
}
|
|
5710
6010
|
}
|
|
5711
6011
|
]
|
|
5712
6012
|
}
|
|
@@ -5730,6 +6030,7 @@ var BifrostKusama$4 = {
|
|
|
5730
6030
|
var Calamari$4 = {
|
|
5731
6031
|
relayChainAssetSymbol: "KSM",
|
|
5732
6032
|
nativeAssetSymbol: "KMA",
|
|
6033
|
+
isEVM: false,
|
|
5733
6034
|
nativeAssets: [
|
|
5734
6035
|
{
|
|
5735
6036
|
symbol: "KMA",
|
|
@@ -5781,7 +6082,10 @@ var Calamari$4 = {
|
|
|
5781
6082
|
Parachain: 2000
|
|
5782
6083
|
},
|
|
5783
6084
|
{
|
|
5784
|
-
GeneralKey:
|
|
6085
|
+
GeneralKey: {
|
|
6086
|
+
length: 21,
|
|
6087
|
+
data: "0x02e278651e8ff8e2efa83d7f84205084ebc90688be0000000000000000000000"
|
|
6088
|
+
}
|
|
5785
6089
|
}
|
|
5786
6090
|
]
|
|
5787
6091
|
}
|
|
@@ -5799,7 +6103,10 @@ var Calamari$4 = {
|
|
|
5799
6103
|
Parachain: 2000
|
|
5800
6104
|
},
|
|
5801
6105
|
{
|
|
5802
|
-
GeneralKey:
|
|
6106
|
+
GeneralKey: {
|
|
6107
|
+
length: 21,
|
|
6108
|
+
data: "0x0266291c7d88d2ed9a708147bae4e0814a76705e2f0000000000000000000000"
|
|
6109
|
+
}
|
|
5803
6110
|
}
|
|
5804
6111
|
]
|
|
5805
6112
|
}
|
|
@@ -5817,7 +6124,10 @@ var Calamari$4 = {
|
|
|
5817
6124
|
Parachain: 2000
|
|
5818
6125
|
},
|
|
5819
6126
|
{
|
|
5820
|
-
GeneralKey:
|
|
6127
|
+
GeneralKey: {
|
|
6128
|
+
length: 21,
|
|
6129
|
+
data: "0x021f3a10587a20114ea25ba1b388ee2dd4a337ce270000000000000000000000"
|
|
6130
|
+
}
|
|
5821
6131
|
}
|
|
5822
6132
|
]
|
|
5823
6133
|
}
|
|
@@ -5835,7 +6145,10 @@ var Calamari$4 = {
|
|
|
5835
6145
|
Parachain: 2000
|
|
5836
6146
|
},
|
|
5837
6147
|
{
|
|
5838
|
-
GeneralKey:
|
|
6148
|
+
GeneralKey: {
|
|
6149
|
+
length: 21,
|
|
6150
|
+
data: "0x02577f6a0718a468e8a995f6075f2325f86a07c83b0000000000000000000000"
|
|
6151
|
+
}
|
|
5839
6152
|
}
|
|
5840
6153
|
]
|
|
5841
6154
|
}
|
|
@@ -5853,7 +6166,10 @@ var Calamari$4 = {
|
|
|
5853
6166
|
Parachain: 2000
|
|
5854
6167
|
},
|
|
5855
6168
|
{
|
|
5856
|
-
GeneralKey:
|
|
6169
|
+
GeneralKey: {
|
|
6170
|
+
length: 2,
|
|
6171
|
+
data: "0x0081000000000000000000000000000000000000000000000000000000000000"
|
|
6172
|
+
}
|
|
5857
6173
|
}
|
|
5858
6174
|
]
|
|
5859
6175
|
}
|
|
@@ -5871,7 +6187,10 @@ var Calamari$4 = {
|
|
|
5871
6187
|
Parachain: 2000
|
|
5872
6188
|
},
|
|
5873
6189
|
{
|
|
5874
|
-
GeneralKey:
|
|
6190
|
+
GeneralKey: {
|
|
6191
|
+
length: 21,
|
|
6192
|
+
data: "0x02b4ce1f6109854243d1af13b8ea34ed28542f31e00000000000000000000000"
|
|
6193
|
+
}
|
|
5875
6194
|
}
|
|
5876
6195
|
]
|
|
5877
6196
|
}
|
|
@@ -5889,7 +6208,10 @@ var Calamari$4 = {
|
|
|
5889
6208
|
Parachain: 2000
|
|
5890
6209
|
},
|
|
5891
6210
|
{
|
|
5892
|
-
GeneralKey:
|
|
6211
|
+
GeneralKey: {
|
|
6212
|
+
length: 21,
|
|
6213
|
+
data: "0x02a2a37aaf4730aeedada5aa8ee20a4451cb8b1c4e0000000000000000000000"
|
|
6214
|
+
}
|
|
5893
6215
|
}
|
|
5894
6216
|
]
|
|
5895
6217
|
}
|
|
@@ -5907,7 +6229,10 @@ var Calamari$4 = {
|
|
|
5907
6229
|
Parachain: 2000
|
|
5908
6230
|
},
|
|
5909
6231
|
{
|
|
5910
|
-
GeneralKey:
|
|
6232
|
+
GeneralKey: {
|
|
6233
|
+
length: 2,
|
|
6234
|
+
data: "0x0080000000000000000000000000000000000000000000000000000000000000"
|
|
6235
|
+
}
|
|
5911
6236
|
}
|
|
5912
6237
|
]
|
|
5913
6238
|
}
|
|
@@ -5925,7 +6250,10 @@ var Calamari$4 = {
|
|
|
5925
6250
|
Parachain: 2000
|
|
5926
6251
|
},
|
|
5927
6252
|
{
|
|
5928
|
-
GeneralKey:
|
|
6253
|
+
GeneralKey: {
|
|
6254
|
+
length: 2,
|
|
6255
|
+
data: "0x0083000000000000000000000000000000000000000000000000000000000000"
|
|
6256
|
+
}
|
|
5929
6257
|
}
|
|
5930
6258
|
]
|
|
5931
6259
|
}
|
|
@@ -5943,7 +6271,10 @@ var Calamari$4 = {
|
|
|
5943
6271
|
Parachain: 2000
|
|
5944
6272
|
},
|
|
5945
6273
|
{
|
|
5946
|
-
GeneralKey:
|
|
6274
|
+
GeneralKey: {
|
|
6275
|
+
length: 21,
|
|
6276
|
+
data: "0x02c621abc3afa3f24886ea278fffa7e10e8969d7550000000000000000000000"
|
|
6277
|
+
}
|
|
5947
6278
|
}
|
|
5948
6279
|
]
|
|
5949
6280
|
}
|
|
@@ -5961,7 +6292,10 @@ var Calamari$4 = {
|
|
|
5961
6292
|
Parachain: 2000
|
|
5962
6293
|
},
|
|
5963
6294
|
{
|
|
5964
|
-
GeneralKey:
|
|
6295
|
+
GeneralKey: {
|
|
6296
|
+
length: 21,
|
|
6297
|
+
data: "0x0230b1f4ba0b07789be9986fa090a57e0fe5631ebb0000000000000000000000"
|
|
6298
|
+
}
|
|
5965
6299
|
}
|
|
5966
6300
|
]
|
|
5967
6301
|
}
|
|
@@ -5979,7 +6313,10 @@ var Calamari$4 = {
|
|
|
5979
6313
|
Parachain: 2000
|
|
5980
6314
|
},
|
|
5981
6315
|
{
|
|
5982
|
-
GeneralKey:
|
|
6316
|
+
GeneralKey: {
|
|
6317
|
+
length: 21,
|
|
6318
|
+
data: "0x0277cf14f938cb97308d752647d554439d99b39a3f0000000000000000000000"
|
|
6319
|
+
}
|
|
5983
6320
|
}
|
|
5984
6321
|
]
|
|
5985
6322
|
}
|
|
@@ -5997,7 +6334,10 @@ var Calamari$4 = {
|
|
|
5997
6334
|
Parachain: 2000
|
|
5998
6335
|
},
|
|
5999
6336
|
{
|
|
6000
|
-
GeneralKey:
|
|
6337
|
+
GeneralKey: {
|
|
6338
|
+
length: 21,
|
|
6339
|
+
data: "0x022c7de70b32cf5f20e02329a88d2e3b00ef85eb900000000000000000000000"
|
|
6340
|
+
}
|
|
6001
6341
|
}
|
|
6002
6342
|
]
|
|
6003
6343
|
}
|
|
@@ -6015,7 +6355,10 @@ var Calamari$4 = {
|
|
|
6015
6355
|
Parachain: 2000
|
|
6016
6356
|
},
|
|
6017
6357
|
{
|
|
6018
|
-
GeneralKey:
|
|
6358
|
+
GeneralKey: {
|
|
6359
|
+
length: 21,
|
|
6360
|
+
data: "0x029759ca009cbcd75a84786ac19bb5d02f8e68bcd90000000000000000000000"
|
|
6361
|
+
}
|
|
6019
6362
|
}
|
|
6020
6363
|
]
|
|
6021
6364
|
}
|
|
@@ -6033,7 +6376,10 @@ var Calamari$4 = {
|
|
|
6033
6376
|
Parachain: 2000
|
|
6034
6377
|
},
|
|
6035
6378
|
{
|
|
6036
|
-
GeneralKey:
|
|
6379
|
+
GeneralKey: {
|
|
6380
|
+
length: 21,
|
|
6381
|
+
data: "0x02ece0cc38021e734bef1d5da071b027ac2f71181f0000000000000000000000"
|
|
6382
|
+
}
|
|
6037
6383
|
}
|
|
6038
6384
|
]
|
|
6039
6385
|
}
|
|
@@ -6051,7 +6397,10 @@ var Calamari$4 = {
|
|
|
6051
6397
|
Parachain: 2000
|
|
6052
6398
|
},
|
|
6053
6399
|
{
|
|
6054
|
-
GeneralKey:
|
|
6400
|
+
GeneralKey: {
|
|
6401
|
+
length: 21,
|
|
6402
|
+
data: "0x024bb6afb5fa2b07a5d1c499e1c3ddb5a15e709a710000000000000000000000"
|
|
6403
|
+
}
|
|
6055
6404
|
}
|
|
6056
6405
|
]
|
|
6057
6406
|
}
|
|
@@ -6093,6 +6442,7 @@ var Calamari$4 = {
|
|
|
6093
6442
|
var Crab$4 = {
|
|
6094
6443
|
relayChainAssetSymbol: "KSM",
|
|
6095
6444
|
nativeAssetSymbol: "CRAB",
|
|
6445
|
+
isEVM: true,
|
|
6096
6446
|
nativeAssets: [
|
|
6097
6447
|
{
|
|
6098
6448
|
symbol: "CRAB",
|
|
@@ -6110,6 +6460,7 @@ var Crab$4 = {
|
|
|
6110
6460
|
var CrustShadow$4 = {
|
|
6111
6461
|
relayChainAssetSymbol: "KSM",
|
|
6112
6462
|
nativeAssetSymbol: "CSM",
|
|
6463
|
+
isEVM: false,
|
|
6113
6464
|
nativeAssets: [
|
|
6114
6465
|
{
|
|
6115
6466
|
symbol: "CSM",
|
|
@@ -6157,6 +6508,7 @@ var CrustShadow$4 = {
|
|
|
6157
6508
|
var Encointer$4 = {
|
|
6158
6509
|
relayChainAssetSymbol: "KSM",
|
|
6159
6510
|
nativeAssetSymbol: "KSM",
|
|
6511
|
+
isEVM: false,
|
|
6160
6512
|
nativeAssets: [
|
|
6161
6513
|
{
|
|
6162
6514
|
symbol: "KSM",
|
|
@@ -6169,6 +6521,7 @@ var Encointer$4 = {
|
|
|
6169
6521
|
var Imbue$4 = {
|
|
6170
6522
|
relayChainAssetSymbol: "KSM",
|
|
6171
6523
|
nativeAssetSymbol: "IMBU",
|
|
6524
|
+
isEVM: false,
|
|
6172
6525
|
nativeAssets: [
|
|
6173
6526
|
{
|
|
6174
6527
|
symbol: "IMBU",
|
|
@@ -6181,6 +6534,7 @@ var Imbue$4 = {
|
|
|
6181
6534
|
var KiltSpiritnet$4 = {
|
|
6182
6535
|
relayChainAssetSymbol: "DOT",
|
|
6183
6536
|
nativeAssetSymbol: "KILT",
|
|
6537
|
+
isEVM: false,
|
|
6184
6538
|
nativeAssets: [
|
|
6185
6539
|
{
|
|
6186
6540
|
symbol: "KILT",
|
|
@@ -6193,6 +6547,7 @@ var KiltSpiritnet$4 = {
|
|
|
6193
6547
|
var Integritee$4 = {
|
|
6194
6548
|
relayChainAssetSymbol: "KSM",
|
|
6195
6549
|
nativeAssetSymbol: "TEER",
|
|
6550
|
+
isEVM: false,
|
|
6196
6551
|
nativeAssets: [
|
|
6197
6552
|
{
|
|
6198
6553
|
symbol: "TEER",
|
|
@@ -6205,6 +6560,7 @@ var Integritee$4 = {
|
|
|
6205
6560
|
var InvArchTinker$4 = {
|
|
6206
6561
|
relayChainAssetSymbol: "KSM",
|
|
6207
6562
|
nativeAssetSymbol: "TNKR",
|
|
6563
|
+
isEVM: false,
|
|
6208
6564
|
nativeAssets: [
|
|
6209
6565
|
{
|
|
6210
6566
|
symbol: "TNKR",
|
|
@@ -6217,6 +6573,7 @@ var InvArchTinker$4 = {
|
|
|
6217
6573
|
var Curio$4 = {
|
|
6218
6574
|
relayChainAssetSymbol: "KSM",
|
|
6219
6575
|
nativeAssetSymbol: "CGT",
|
|
6576
|
+
isEVM: false,
|
|
6220
6577
|
nativeAssets: [
|
|
6221
6578
|
{
|
|
6222
6579
|
symbol: "CGT",
|
|
@@ -6253,6 +6610,7 @@ var Curio$4 = {
|
|
|
6253
6610
|
var Karura$4 = {
|
|
6254
6611
|
relayChainAssetSymbol: "KSM",
|
|
6255
6612
|
nativeAssetSymbol: "KAR",
|
|
6613
|
+
isEVM: false,
|
|
6256
6614
|
nativeAssets: [
|
|
6257
6615
|
{
|
|
6258
6616
|
symbol: "KAR",
|
|
@@ -6397,7 +6755,10 @@ var Karura$4 = {
|
|
|
6397
6755
|
Parachain: 2015
|
|
6398
6756
|
},
|
|
6399
6757
|
{
|
|
6400
|
-
GeneralKey:
|
|
6758
|
+
GeneralKey: {
|
|
6759
|
+
length: 4,
|
|
6760
|
+
data: "0x5445455200000000000000000000000000000000000000000000000000000000"
|
|
6761
|
+
}
|
|
6401
6762
|
}
|
|
6402
6763
|
]
|
|
6403
6764
|
}
|
|
@@ -6446,7 +6807,10 @@ var Karura$4 = {
|
|
|
6446
6807
|
Parachain: 2024
|
|
6447
6808
|
},
|
|
6448
6809
|
{
|
|
6449
|
-
GeneralKey:
|
|
6810
|
+
GeneralKey: {
|
|
6811
|
+
length: 3,
|
|
6812
|
+
data: "0x6571640000000000000000000000000000000000000000000000000000000000"
|
|
6813
|
+
}
|
|
6450
6814
|
}
|
|
6451
6815
|
]
|
|
6452
6816
|
}
|
|
@@ -6477,7 +6841,10 @@ var Karura$4 = {
|
|
|
6477
6841
|
Parachain: 2085
|
|
6478
6842
|
},
|
|
6479
6843
|
{
|
|
6480
|
-
GeneralKey:
|
|
6844
|
+
GeneralKey: {
|
|
6845
|
+
length: 3,
|
|
6846
|
+
data: "0x484b4f0000000000000000000000000000000000000000000000000000000000"
|
|
6847
|
+
}
|
|
6481
6848
|
}
|
|
6482
6849
|
]
|
|
6483
6850
|
}
|
|
@@ -6495,7 +6862,10 @@ var Karura$4 = {
|
|
|
6495
6862
|
Parachain: 2088
|
|
6496
6863
|
},
|
|
6497
6864
|
{
|
|
6498
|
-
GeneralKey:
|
|
6865
|
+
GeneralKey: {
|
|
6866
|
+
length: 2,
|
|
6867
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
6868
|
+
}
|
|
6499
6869
|
}
|
|
6500
6870
|
]
|
|
6501
6871
|
}
|
|
@@ -6544,7 +6914,10 @@ var Karura$4 = {
|
|
|
6544
6914
|
Parachain: 2096
|
|
6545
6915
|
},
|
|
6546
6916
|
{
|
|
6547
|
-
GeneralKey:
|
|
6917
|
+
GeneralKey: {
|
|
6918
|
+
length: 9,
|
|
6919
|
+
data: "0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
6920
|
+
}
|
|
6548
6921
|
}
|
|
6549
6922
|
]
|
|
6550
6923
|
}
|
|
@@ -6562,7 +6935,10 @@ var Karura$4 = {
|
|
|
6562
6935
|
Parachain: 2102
|
|
6563
6936
|
},
|
|
6564
6937
|
{
|
|
6565
|
-
GeneralKey:
|
|
6938
|
+
GeneralKey: {
|
|
6939
|
+
length: 4,
|
|
6940
|
+
data: "0x5043485500000000000000000000000000000000000000000000000000000000"
|
|
6941
|
+
}
|
|
6566
6942
|
}
|
|
6567
6943
|
]
|
|
6568
6944
|
}
|
|
@@ -6616,7 +6992,10 @@ var Karura$4 = {
|
|
|
6616
6992
|
Parachain: 2107
|
|
6617
6993
|
},
|
|
6618
6994
|
{
|
|
6619
|
-
GeneralKey:
|
|
6995
|
+
GeneralKey: {
|
|
6996
|
+
length: 4,
|
|
6997
|
+
data: "0x4b49434f00000000000000000000000000000000000000000000000000000000"
|
|
6998
|
+
}
|
|
6620
6999
|
}
|
|
6621
7000
|
]
|
|
6622
7001
|
}
|
|
@@ -6647,7 +7026,10 @@ var Karura$4 = {
|
|
|
6647
7026
|
Parachain: 2118
|
|
6648
7027
|
},
|
|
6649
7028
|
{
|
|
6650
|
-
GeneralKey:
|
|
7029
|
+
GeneralKey: {
|
|
7030
|
+
length: 2,
|
|
7031
|
+
data: "0x4c54000000000000000000000000000000000000000000000000000000000000"
|
|
7032
|
+
}
|
|
6651
7033
|
}
|
|
6652
7034
|
]
|
|
6653
7035
|
}
|
|
@@ -6658,6 +7040,7 @@ var Karura$4 = {
|
|
|
6658
7040
|
var Kintsugi$4 = {
|
|
6659
7041
|
relayChainAssetSymbol: "KSM",
|
|
6660
7042
|
nativeAssetSymbol: "KINT",
|
|
7043
|
+
isEVM: false,
|
|
6661
7044
|
nativeAssets: [
|
|
6662
7045
|
{
|
|
6663
7046
|
symbol: "KINT",
|
|
@@ -6718,7 +7101,10 @@ var Kintsugi$4 = {
|
|
|
6718
7101
|
Parachain: 2000
|
|
6719
7102
|
},
|
|
6720
7103
|
{
|
|
6721
|
-
GeneralKey:
|
|
7104
|
+
GeneralKey: {
|
|
7105
|
+
length: 2,
|
|
7106
|
+
data: "0x0081000000000000000000000000000000000000000000000000000000000000"
|
|
7107
|
+
}
|
|
6722
7108
|
}
|
|
6723
7109
|
]
|
|
6724
7110
|
}
|
|
@@ -6736,7 +7122,10 @@ var Kintsugi$4 = {
|
|
|
6736
7122
|
Parachain: 2000
|
|
6737
7123
|
},
|
|
6738
7124
|
{
|
|
6739
|
-
GeneralKey:
|
|
7125
|
+
GeneralKey: {
|
|
7126
|
+
length: 2,
|
|
7127
|
+
data: "0x0083000000000000000000000000000000000000000000000000000000000000"
|
|
7128
|
+
}
|
|
6740
7129
|
}
|
|
6741
7130
|
]
|
|
6742
7131
|
}
|
|
@@ -6754,7 +7143,10 @@ var Kintsugi$4 = {
|
|
|
6754
7143
|
Parachain: 2001
|
|
6755
7144
|
},
|
|
6756
7145
|
{
|
|
6757
|
-
GeneralKey:
|
|
7146
|
+
GeneralKey: {
|
|
7147
|
+
length: 2,
|
|
7148
|
+
data: "0x0104000000000000000000000000000000000000000000000000000000000000"
|
|
7149
|
+
}
|
|
6758
7150
|
}
|
|
6759
7151
|
]
|
|
6760
7152
|
}
|
|
@@ -6816,6 +7208,7 @@ var Litmus = {
|
|
|
6816
7208
|
var Moonriver$4 = {
|
|
6817
7209
|
relayChainAssetSymbol: "KSM",
|
|
6818
7210
|
nativeAssetSymbol: "MOVR",
|
|
7211
|
+
isEVM: true,
|
|
6819
7212
|
nativeAssets: [
|
|
6820
7213
|
{
|
|
6821
7214
|
symbol: "MOVR",
|
|
@@ -6888,7 +7281,10 @@ var Moonriver$4 = {
|
|
|
6888
7281
|
Parachain: 2000
|
|
6889
7282
|
},
|
|
6890
7283
|
{
|
|
6891
|
-
GeneralKey:
|
|
7284
|
+
GeneralKey: {
|
|
7285
|
+
length: 2,
|
|
7286
|
+
data: "0x0081000000000000000000000000000000000000000000000000000000000000"
|
|
7287
|
+
}
|
|
6892
7288
|
}
|
|
6893
7289
|
]
|
|
6894
7290
|
}
|
|
@@ -6906,7 +7302,10 @@ var Moonriver$4 = {
|
|
|
6906
7302
|
Parachain: 2000
|
|
6907
7303
|
},
|
|
6908
7304
|
{
|
|
6909
|
-
GeneralKey:
|
|
7305
|
+
GeneralKey: {
|
|
7306
|
+
length: 2,
|
|
7307
|
+
data: "0x0080000000000000000000000000000000000000000000000000000000000000"
|
|
7308
|
+
}
|
|
6910
7309
|
}
|
|
6911
7310
|
]
|
|
6912
7311
|
}
|
|
@@ -6924,7 +7323,10 @@ var Moonriver$4 = {
|
|
|
6924
7323
|
Parachain: 2001
|
|
6925
7324
|
},
|
|
6926
7325
|
{
|
|
6927
|
-
GeneralKey:
|
|
7326
|
+
GeneralKey: {
|
|
7327
|
+
length: 2,
|
|
7328
|
+
data: "0x0104000000000000000000000000000000000000000000000000000000000000"
|
|
7329
|
+
}
|
|
6928
7330
|
}
|
|
6929
7331
|
]
|
|
6930
7332
|
}
|
|
@@ -6942,7 +7344,10 @@ var Moonriver$4 = {
|
|
|
6942
7344
|
Parachain: 2001
|
|
6943
7345
|
},
|
|
6944
7346
|
{
|
|
6945
|
-
GeneralKey:
|
|
7347
|
+
GeneralKey: {
|
|
7348
|
+
length: 2,
|
|
7349
|
+
data: "0x0101000000000000000000000000000000000000000000000000000000000000"
|
|
7350
|
+
}
|
|
6946
7351
|
}
|
|
6947
7352
|
]
|
|
6948
7353
|
}
|
|
@@ -6960,7 +7365,10 @@ var Moonriver$4 = {
|
|
|
6960
7365
|
Parachain: 2001
|
|
6961
7366
|
},
|
|
6962
7367
|
{
|
|
6963
|
-
GeneralKey:
|
|
7368
|
+
GeneralKey: {
|
|
7369
|
+
length: 2,
|
|
7370
|
+
data: "0x010a000000000000000000000000000000000000000000000000000000000000"
|
|
7371
|
+
}
|
|
6964
7372
|
}
|
|
6965
7373
|
]
|
|
6966
7374
|
}
|
|
@@ -6978,7 +7386,10 @@ var Moonriver$4 = {
|
|
|
6978
7386
|
Parachain: 2001
|
|
6979
7387
|
},
|
|
6980
7388
|
{
|
|
6981
|
-
GeneralKey:
|
|
7389
|
+
GeneralKey: {
|
|
7390
|
+
length: 2,
|
|
7391
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
7392
|
+
}
|
|
6982
7393
|
}
|
|
6983
7394
|
]
|
|
6984
7395
|
}
|
|
@@ -7035,7 +7446,10 @@ var Moonriver$4 = {
|
|
|
7035
7446
|
Parachain: 2015
|
|
7036
7447
|
},
|
|
7037
7448
|
{
|
|
7038
|
-
GeneralKey:
|
|
7449
|
+
GeneralKey: {
|
|
7450
|
+
length: 4,
|
|
7451
|
+
data: "0x5445455200000000000000000000000000000000000000000000000000000000"
|
|
7452
|
+
}
|
|
7039
7453
|
}
|
|
7040
7454
|
]
|
|
7041
7455
|
}
|
|
@@ -7079,7 +7493,10 @@ var Moonriver$4 = {
|
|
|
7079
7493
|
Parachain: 2085
|
|
7080
7494
|
},
|
|
7081
7495
|
{
|
|
7082
|
-
GeneralKey:
|
|
7496
|
+
GeneralKey: {
|
|
7497
|
+
length: 3,
|
|
7498
|
+
data: "0x484b4f0000000000000000000000000000000000000000000000000000000000"
|
|
7499
|
+
}
|
|
7083
7500
|
}
|
|
7084
7501
|
]
|
|
7085
7502
|
}
|
|
@@ -7110,7 +7527,10 @@ var Moonriver$4 = {
|
|
|
7110
7527
|
Parachain: 2092
|
|
7111
7528
|
},
|
|
7112
7529
|
{
|
|
7113
|
-
GeneralKey:
|
|
7530
|
+
GeneralKey: {
|
|
7531
|
+
length: 2,
|
|
7532
|
+
data: "0x000b000000000000000000000000000000000000000000000000000000000000"
|
|
7533
|
+
}
|
|
7114
7534
|
}
|
|
7115
7535
|
]
|
|
7116
7536
|
}
|
|
@@ -7128,7 +7548,10 @@ var Moonriver$4 = {
|
|
|
7128
7548
|
Parachain: 2092
|
|
7129
7549
|
},
|
|
7130
7550
|
{
|
|
7131
|
-
GeneralKey:
|
|
7551
|
+
GeneralKey: {
|
|
7552
|
+
length: 2,
|
|
7553
|
+
data: "0x000c000000000000000000000000000000000000000000000000000000000000"
|
|
7554
|
+
}
|
|
7132
7555
|
}
|
|
7133
7556
|
]
|
|
7134
7557
|
}
|
|
@@ -7182,7 +7605,10 @@ var Moonriver$4 = {
|
|
|
7182
7605
|
Parachain: 2110
|
|
7183
7606
|
},
|
|
7184
7607
|
{
|
|
7185
|
-
GeneralKey:
|
|
7608
|
+
GeneralKey: {
|
|
7609
|
+
length: 4,
|
|
7610
|
+
data: "0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
7611
|
+
}
|
|
7186
7612
|
}
|
|
7187
7613
|
]
|
|
7188
7614
|
}
|
|
@@ -7224,6 +7650,7 @@ var Moonriver$4 = {
|
|
|
7224
7650
|
var ParallelHeiko$4 = {
|
|
7225
7651
|
relayChainAssetSymbol: "KSM",
|
|
7226
7652
|
nativeAssetSymbol: "HKO",
|
|
7653
|
+
isEVM: false,
|
|
7227
7654
|
nativeAssets: [
|
|
7228
7655
|
{
|
|
7229
7656
|
symbol: "HKO",
|
|
@@ -7275,7 +7702,10 @@ var ParallelHeiko$4 = {
|
|
|
7275
7702
|
Parachain: 2000
|
|
7276
7703
|
},
|
|
7277
7704
|
{
|
|
7278
|
-
GeneralKey:
|
|
7705
|
+
GeneralKey: {
|
|
7706
|
+
length: 2,
|
|
7707
|
+
data: "0x0083000000000000000000000000000000000000000000000000000000000000"
|
|
7708
|
+
}
|
|
7279
7709
|
}
|
|
7280
7710
|
]
|
|
7281
7711
|
}
|
|
@@ -7293,7 +7723,10 @@ var ParallelHeiko$4 = {
|
|
|
7293
7723
|
Parachain: 2000
|
|
7294
7724
|
},
|
|
7295
7725
|
{
|
|
7296
|
-
GeneralKey:
|
|
7726
|
+
GeneralKey: {
|
|
7727
|
+
length: 2,
|
|
7728
|
+
data: "0x0080000000000000000000000000000000000000000000000000000000000000"
|
|
7729
|
+
}
|
|
7297
7730
|
}
|
|
7298
7731
|
]
|
|
7299
7732
|
}
|
|
@@ -7363,7 +7796,10 @@ var ParallelHeiko$4 = {
|
|
|
7363
7796
|
Parachain: 2092
|
|
7364
7797
|
},
|
|
7365
7798
|
{
|
|
7366
|
-
GeneralKey:
|
|
7799
|
+
GeneralKey: {
|
|
7800
|
+
length: 2,
|
|
7801
|
+
data: "0x000b000000000000000000000000000000000000000000000000000000000000"
|
|
7802
|
+
}
|
|
7367
7803
|
}
|
|
7368
7804
|
]
|
|
7369
7805
|
}
|
|
@@ -7381,7 +7817,10 @@ var ParallelHeiko$4 = {
|
|
|
7381
7817
|
Parachain: 2092
|
|
7382
7818
|
},
|
|
7383
7819
|
{
|
|
7384
|
-
GeneralKey:
|
|
7820
|
+
GeneralKey: {
|
|
7821
|
+
length: 2,
|
|
7822
|
+
data: "0x000c000000000000000000000000000000000000000000000000000000000000"
|
|
7823
|
+
}
|
|
7385
7824
|
}
|
|
7386
7825
|
]
|
|
7387
7826
|
}
|
|
@@ -7392,6 +7831,7 @@ var ParallelHeiko$4 = {
|
|
|
7392
7831
|
var Picasso$4 = {
|
|
7393
7832
|
relayChainAssetSymbol: "KSM",
|
|
7394
7833
|
nativeAssetSymbol: "PICA",
|
|
7834
|
+
isEVM: false,
|
|
7395
7835
|
nativeAssets: [
|
|
7396
7836
|
{
|
|
7397
7837
|
symbol: "PICA",
|
|
@@ -7754,6 +8194,7 @@ var Picasso$4 = {
|
|
|
7754
8194
|
var Pioneer$4 = {
|
|
7755
8195
|
relayChainAssetSymbol: "KSM",
|
|
7756
8196
|
nativeAssetSymbol: "NEER",
|
|
8197
|
+
isEVM: false,
|
|
7757
8198
|
nativeAssets: [
|
|
7758
8199
|
{
|
|
7759
8200
|
symbol: "NEER",
|
|
@@ -7766,6 +8207,7 @@ var Pioneer$4 = {
|
|
|
7766
8207
|
var Quartz$4 = {
|
|
7767
8208
|
relayChainAssetSymbol: "KSM",
|
|
7768
8209
|
nativeAssetSymbol: "QTZ",
|
|
8210
|
+
isEVM: false,
|
|
7769
8211
|
nativeAssets: [
|
|
7770
8212
|
{
|
|
7771
8213
|
symbol: "QTZ",
|
|
@@ -7778,6 +8220,7 @@ var Quartz$4 = {
|
|
|
7778
8220
|
var RobonomicsKusama$4 = {
|
|
7779
8221
|
relayChainAssetSymbol: "KSM",
|
|
7780
8222
|
nativeAssetSymbol: "XRT",
|
|
8223
|
+
isEVM: false,
|
|
7781
8224
|
nativeAssets: [
|
|
7782
8225
|
{
|
|
7783
8226
|
symbol: "XRT",
|
|
@@ -7790,6 +8233,7 @@ var RobonomicsKusama$4 = {
|
|
|
7790
8233
|
var RobonomicsPolkadot$4 = {
|
|
7791
8234
|
relayChainAssetSymbol: "DOT",
|
|
7792
8235
|
nativeAssetSymbol: "XRT",
|
|
8236
|
+
isEVM: false,
|
|
7793
8237
|
nativeAssets: [
|
|
7794
8238
|
{
|
|
7795
8239
|
symbol: "XRT",
|
|
@@ -7807,6 +8251,7 @@ var RobonomicsPolkadot$4 = {
|
|
|
7807
8251
|
var PeopleKusama$4 = {
|
|
7808
8252
|
relayChainAssetSymbol: "KSM",
|
|
7809
8253
|
nativeAssetSymbol: "KSM",
|
|
8254
|
+
isEVM: false,
|
|
7810
8255
|
nativeAssets: [
|
|
7811
8256
|
{
|
|
7812
8257
|
symbol: "KSM",
|
|
@@ -7819,6 +8264,7 @@ var PeopleKusama$4 = {
|
|
|
7819
8264
|
var PeoplePolkadot$4 = {
|
|
7820
8265
|
relayChainAssetSymbol: "DOT",
|
|
7821
8266
|
nativeAssetSymbol: "DOT",
|
|
8267
|
+
isEVM: false,
|
|
7822
8268
|
nativeAssets: [
|
|
7823
8269
|
{
|
|
7824
8270
|
symbol: "DOT",
|
|
@@ -7831,6 +8277,7 @@ var PeoplePolkadot$4 = {
|
|
|
7831
8277
|
var Shiden$4 = {
|
|
7832
8278
|
relayChainAssetSymbol: "KSM",
|
|
7833
8279
|
nativeAssetSymbol: "SDN",
|
|
8280
|
+
isEVM: false,
|
|
7834
8281
|
nativeAssets: [
|
|
7835
8282
|
{
|
|
7836
8283
|
symbol: "SDN",
|
|
@@ -7903,7 +8350,10 @@ var Shiden$4 = {
|
|
|
7903
8350
|
Parachain: 2000
|
|
7904
8351
|
},
|
|
7905
8352
|
{
|
|
7906
|
-
GeneralKey:
|
|
8353
|
+
GeneralKey: {
|
|
8354
|
+
length: 2,
|
|
8355
|
+
data: "0x0080000000000000000000000000000000000000000000000000000000000000"
|
|
8356
|
+
}
|
|
7907
8357
|
}
|
|
7908
8358
|
]
|
|
7909
8359
|
}
|
|
@@ -7921,7 +8371,10 @@ var Shiden$4 = {
|
|
|
7921
8371
|
Parachain: 2000
|
|
7922
8372
|
},
|
|
7923
8373
|
{
|
|
7924
|
-
GeneralKey:
|
|
8374
|
+
GeneralKey: {
|
|
8375
|
+
length: 2,
|
|
8376
|
+
data: "0x0083000000000000000000000000000000000000000000000000000000000000"
|
|
8377
|
+
}
|
|
7925
8378
|
}
|
|
7926
8379
|
]
|
|
7927
8380
|
}
|
|
@@ -7939,7 +8392,10 @@ var Shiden$4 = {
|
|
|
7939
8392
|
Parachain: 2000
|
|
7940
8393
|
},
|
|
7941
8394
|
{
|
|
7942
|
-
GeneralKey:
|
|
8395
|
+
GeneralKey: {
|
|
8396
|
+
length: 2,
|
|
8397
|
+
data: "0x0081000000000000000000000000000000000000000000000000000000000000"
|
|
8398
|
+
}
|
|
7943
8399
|
}
|
|
7944
8400
|
]
|
|
7945
8401
|
}
|
|
@@ -7957,7 +8413,10 @@ var Shiden$4 = {
|
|
|
7957
8413
|
Parachain: 2001
|
|
7958
8414
|
},
|
|
7959
8415
|
{
|
|
7960
|
-
GeneralKey:
|
|
8416
|
+
GeneralKey: {
|
|
8417
|
+
length: 2,
|
|
8418
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
8419
|
+
}
|
|
7961
8420
|
}
|
|
7962
8421
|
]
|
|
7963
8422
|
}
|
|
@@ -7975,7 +8434,10 @@ var Shiden$4 = {
|
|
|
7975
8434
|
Parachain: 2001
|
|
7976
8435
|
},
|
|
7977
8436
|
{
|
|
7978
|
-
GeneralKey:
|
|
8437
|
+
GeneralKey: {
|
|
8438
|
+
length: 2,
|
|
8439
|
+
data: "0x0404000000000000000000000000000000000000000000000000000000000000"
|
|
8440
|
+
}
|
|
7979
8441
|
}
|
|
7980
8442
|
]
|
|
7981
8443
|
}
|
|
@@ -7993,7 +8455,10 @@ var Shiden$4 = {
|
|
|
7993
8455
|
Parachain: 2001
|
|
7994
8456
|
},
|
|
7995
8457
|
{
|
|
7996
|
-
GeneralKey:
|
|
8458
|
+
GeneralKey: {
|
|
8459
|
+
length: 2,
|
|
8460
|
+
data: "0x0104000000000000000000000000000000000000000000000000000000000000"
|
|
8461
|
+
}
|
|
7997
8462
|
}
|
|
7998
8463
|
]
|
|
7999
8464
|
}
|
|
@@ -8068,7 +8533,10 @@ var Shiden$4 = {
|
|
|
8068
8533
|
Parachain: 2092
|
|
8069
8534
|
},
|
|
8070
8535
|
{
|
|
8071
|
-
GeneralKey:
|
|
8536
|
+
GeneralKey: {
|
|
8537
|
+
length: 2,
|
|
8538
|
+
data: "0x000b000000000000000000000000000000000000000000000000000000000000"
|
|
8539
|
+
}
|
|
8072
8540
|
}
|
|
8073
8541
|
]
|
|
8074
8542
|
}
|
|
@@ -8086,7 +8554,10 @@ var Shiden$4 = {
|
|
|
8086
8554
|
Parachain: 2092
|
|
8087
8555
|
},
|
|
8088
8556
|
{
|
|
8089
|
-
GeneralKey:
|
|
8557
|
+
GeneralKey: {
|
|
8558
|
+
length: 2,
|
|
8559
|
+
data: "0x000c000000000000000000000000000000000000000000000000000000000000"
|
|
8560
|
+
}
|
|
8090
8561
|
}
|
|
8091
8562
|
]
|
|
8092
8563
|
}
|
|
@@ -8128,6 +8599,7 @@ var Shiden$4 = {
|
|
|
8128
8599
|
var AssetHubKusama$4 = {
|
|
8129
8600
|
relayChainAssetSymbol: "KSM",
|
|
8130
8601
|
nativeAssetSymbol: "KSM",
|
|
8602
|
+
isEVM: false,
|
|
8131
8603
|
nativeAssets: [
|
|
8132
8604
|
{
|
|
8133
8605
|
symbol: "KSM",
|
|
@@ -8222,11 +8694,13 @@ var AssetHubKusama$4 = {
|
|
|
8222
8694
|
multiLocation: {
|
|
8223
8695
|
parents: 2,
|
|
8224
8696
|
interior: {
|
|
8225
|
-
X1:
|
|
8226
|
-
|
|
8227
|
-
|
|
8697
|
+
X1: [
|
|
8698
|
+
{
|
|
8699
|
+
GlobalConsensus: {
|
|
8700
|
+
polkadot: null
|
|
8701
|
+
}
|
|
8228
8702
|
}
|
|
8229
|
-
|
|
8703
|
+
]
|
|
8230
8704
|
}
|
|
8231
8705
|
}
|
|
8232
8706
|
},
|
|
@@ -8253,9 +8727,11 @@ var AssetHubKusama$4 = {
|
|
|
8253
8727
|
multiLocation: {
|
|
8254
8728
|
parents: 1,
|
|
8255
8729
|
interior: {
|
|
8256
|
-
X1:
|
|
8257
|
-
|
|
8258
|
-
|
|
8730
|
+
X1: [
|
|
8731
|
+
{
|
|
8732
|
+
Parachain: 2123
|
|
8733
|
+
}
|
|
8734
|
+
]
|
|
8259
8735
|
}
|
|
8260
8736
|
}
|
|
8261
8737
|
},
|
|
@@ -8275,12 +8751,27 @@ var AssetHubKusama$4 = {
|
|
|
8275
8751
|
]
|
|
8276
8752
|
}
|
|
8277
8753
|
}
|
|
8754
|
+
},
|
|
8755
|
+
{
|
|
8756
|
+
symbol: "TEER",
|
|
8757
|
+
decimals: 12,
|
|
8758
|
+
multiLocation: {
|
|
8759
|
+
parents: 1,
|
|
8760
|
+
interior: {
|
|
8761
|
+
X1: [
|
|
8762
|
+
{
|
|
8763
|
+
Parachain: 2015
|
|
8764
|
+
}
|
|
8765
|
+
]
|
|
8766
|
+
}
|
|
8767
|
+
}
|
|
8278
8768
|
}
|
|
8279
8769
|
]
|
|
8280
8770
|
};
|
|
8281
8771
|
var CoretimeKusama$4 = {
|
|
8282
8772
|
relayChainAssetSymbol: "KSM",
|
|
8283
8773
|
nativeAssetSymbol: "KSM",
|
|
8774
|
+
isEVM: false,
|
|
8284
8775
|
nativeAssets: [
|
|
8285
8776
|
{
|
|
8286
8777
|
symbol: "KSM",
|
|
@@ -8293,6 +8784,7 @@ var CoretimeKusama$4 = {
|
|
|
8293
8784
|
var CoretimePolkadot$4 = {
|
|
8294
8785
|
relayChainAssetSymbol: "DOT",
|
|
8295
8786
|
nativeAssetSymbol: "DOT",
|
|
8787
|
+
isEVM: false,
|
|
8296
8788
|
nativeAssets: [
|
|
8297
8789
|
{
|
|
8298
8790
|
symbol: "DOT",
|
|
@@ -8305,6 +8797,7 @@ var CoretimePolkadot$4 = {
|
|
|
8305
8797
|
var Turing$4 = {
|
|
8306
8798
|
relayChainAssetSymbol: "KSM",
|
|
8307
8799
|
nativeAssetSymbol: "TUR",
|
|
8800
|
+
isEVM: false,
|
|
8308
8801
|
nativeAssets: [
|
|
8309
8802
|
{
|
|
8310
8803
|
symbol: "TUR",
|
|
@@ -8335,7 +8828,10 @@ var Turing$4 = {
|
|
|
8335
8828
|
Parachain: 2000
|
|
8336
8829
|
},
|
|
8337
8830
|
{
|
|
8338
|
-
GeneralKey:
|
|
8831
|
+
GeneralKey: {
|
|
8832
|
+
length: 2,
|
|
8833
|
+
data: "0x0081000000000000000000000000000000000000000000000000000000000000"
|
|
8834
|
+
}
|
|
8339
8835
|
}
|
|
8340
8836
|
]
|
|
8341
8837
|
}
|
|
@@ -8353,7 +8849,10 @@ var Turing$4 = {
|
|
|
8353
8849
|
Parachain: 2000
|
|
8354
8850
|
},
|
|
8355
8851
|
{
|
|
8356
|
-
GeneralKey:
|
|
8852
|
+
GeneralKey: {
|
|
8853
|
+
length: 2,
|
|
8854
|
+
data: "0x0080000000000000000000000000000000000000000000000000000000000000"
|
|
8855
|
+
}
|
|
8357
8856
|
}
|
|
8358
8857
|
]
|
|
8359
8858
|
}
|
|
@@ -8371,7 +8870,10 @@ var Turing$4 = {
|
|
|
8371
8870
|
Parachain: 2000
|
|
8372
8871
|
},
|
|
8373
8872
|
{
|
|
8374
|
-
GeneralKey:
|
|
8873
|
+
GeneralKey: {
|
|
8874
|
+
length: 2,
|
|
8875
|
+
data: "0x0083000000000000000000000000000000000000000000000000000000000000"
|
|
8876
|
+
}
|
|
8375
8877
|
}
|
|
8376
8878
|
]
|
|
8377
8879
|
}
|
|
@@ -8433,7 +8935,10 @@ var Turing$4 = {
|
|
|
8433
8935
|
Parachain: 2085
|
|
8434
8936
|
},
|
|
8435
8937
|
{
|
|
8436
|
-
GeneralKey:
|
|
8938
|
+
GeneralKey: {
|
|
8939
|
+
length: 3,
|
|
8940
|
+
data: "0x484b4f0000000000000000000000000000000000000000000000000000000000"
|
|
8941
|
+
}
|
|
8437
8942
|
}
|
|
8438
8943
|
]
|
|
8439
8944
|
}
|
|
@@ -8451,7 +8956,10 @@ var Turing$4 = {
|
|
|
8451
8956
|
Parachain: 2085
|
|
8452
8957
|
},
|
|
8453
8958
|
{
|
|
8454
|
-
GeneralKey:
|
|
8959
|
+
GeneralKey: {
|
|
8960
|
+
length: 4,
|
|
8961
|
+
data: "0x734b534d00000000000000000000000000000000000000000000000000000000"
|
|
8962
|
+
}
|
|
8455
8963
|
}
|
|
8456
8964
|
]
|
|
8457
8965
|
}
|
|
@@ -8469,7 +8977,10 @@ var Turing$4 = {
|
|
|
8469
8977
|
Parachain: 2110
|
|
8470
8978
|
},
|
|
8471
8979
|
{
|
|
8472
|
-
GeneralKey:
|
|
8980
|
+
GeneralKey: {
|
|
8981
|
+
length: 4,
|
|
8982
|
+
data: "0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
8983
|
+
}
|
|
8473
8984
|
}
|
|
8474
8985
|
]
|
|
8475
8986
|
}
|
|
@@ -8493,6 +9004,7 @@ var Turing$4 = {
|
|
|
8493
9004
|
var Unique$4 = {
|
|
8494
9005
|
relayChainAssetSymbol: "DOT",
|
|
8495
9006
|
nativeAssetSymbol: "UNQ",
|
|
9007
|
+
isEVM: false,
|
|
8496
9008
|
nativeAssets: [
|
|
8497
9009
|
{
|
|
8498
9010
|
symbol: "UNQ",
|
|
@@ -8505,6 +9017,7 @@ var Unique$4 = {
|
|
|
8505
9017
|
var Crust$4 = {
|
|
8506
9018
|
relayChainAssetSymbol: "DOT",
|
|
8507
9019
|
nativeAssetSymbol: "CRU",
|
|
9020
|
+
isEVM: false,
|
|
8508
9021
|
nativeAssets: [
|
|
8509
9022
|
{
|
|
8510
9023
|
symbol: "CRU",
|
|
@@ -8527,6 +9040,7 @@ var Crust$4 = {
|
|
|
8527
9040
|
var Manta$4 = {
|
|
8528
9041
|
relayChainAssetSymbol: "DOT",
|
|
8529
9042
|
nativeAssetSymbol: "MANTA",
|
|
9043
|
+
isEVM: false,
|
|
8530
9044
|
nativeAssets: [
|
|
8531
9045
|
{
|
|
8532
9046
|
symbol: "MANTA",
|
|
@@ -8699,6 +9213,7 @@ var Manta$4 = {
|
|
|
8699
9213
|
var Nodle$4 = {
|
|
8700
9214
|
relayChainAssetSymbol: "DOT",
|
|
8701
9215
|
nativeAssetSymbol: "NODL",
|
|
9216
|
+
isEVM: false,
|
|
8702
9217
|
nativeAssets: [
|
|
8703
9218
|
{
|
|
8704
9219
|
symbol: "NODL",
|
|
@@ -8711,6 +9226,7 @@ var Nodle$4 = {
|
|
|
8711
9226
|
var NeuroWeb$4 = {
|
|
8712
9227
|
relayChainAssetSymbol: "DOT",
|
|
8713
9228
|
nativeAssetSymbol: "NEURO",
|
|
9229
|
+
isEVM: false,
|
|
8714
9230
|
nativeAssets: [
|
|
8715
9231
|
{
|
|
8716
9232
|
symbol: "NEURO",
|
|
@@ -8728,6 +9244,7 @@ var NeuroWeb$4 = {
|
|
|
8728
9244
|
var Pendulum$4 = {
|
|
8729
9245
|
relayChainAssetSymbol: "DOT",
|
|
8730
9246
|
nativeAssetSymbol: "PEN",
|
|
9247
|
+
isEVM: false,
|
|
8731
9248
|
nativeAssets: [
|
|
8732
9249
|
{
|
|
8733
9250
|
symbol: "PEN",
|
|
@@ -8900,7 +9417,10 @@ var Pendulum$4 = {
|
|
|
8900
9417
|
Parachain: 2030
|
|
8901
9418
|
},
|
|
8902
9419
|
{
|
|
8903
|
-
GeneralKey:
|
|
9420
|
+
GeneralKey: {
|
|
9421
|
+
length: 2,
|
|
9422
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
9423
|
+
}
|
|
8904
9424
|
}
|
|
8905
9425
|
]
|
|
8906
9426
|
}
|
|
@@ -8918,7 +9438,10 @@ var Pendulum$4 = {
|
|
|
8918
9438
|
Parachain: 2030
|
|
8919
9439
|
},
|
|
8920
9440
|
{
|
|
8921
|
-
GeneralKey:
|
|
9441
|
+
GeneralKey: {
|
|
9442
|
+
length: 2,
|
|
9443
|
+
data: "0x0900000000000000000000000000000000000000000000000000000000000000"
|
|
9444
|
+
}
|
|
8922
9445
|
}
|
|
8923
9446
|
]
|
|
8924
9447
|
}
|
|
@@ -8978,6 +9501,7 @@ var Pendulum$4 = {
|
|
|
8978
9501
|
var Polkadex$4 = {
|
|
8979
9502
|
relayChainAssetSymbol: "DOT",
|
|
8980
9503
|
nativeAssetSymbol: "PDEX",
|
|
9504
|
+
isEVM: false,
|
|
8981
9505
|
nativeAssets: [
|
|
8982
9506
|
{
|
|
8983
9507
|
symbol: "PDEX",
|
|
@@ -9049,6 +9573,7 @@ var Polkadex$4 = {
|
|
|
9049
9573
|
var Zeitgeist$4 = {
|
|
9050
9574
|
relayChainAssetSymbol: "DOT",
|
|
9051
9575
|
nativeAssetSymbol: "ZTG",
|
|
9576
|
+
isEVM: false,
|
|
9052
9577
|
nativeAssets: [
|
|
9053
9578
|
{
|
|
9054
9579
|
symbol: "ZTG",
|
|
@@ -9128,6 +9653,7 @@ var Zeitgeist$4 = {
|
|
|
9128
9653
|
var Collectives$4 = {
|
|
9129
9654
|
relayChainAssetSymbol: "DOT",
|
|
9130
9655
|
nativeAssetSymbol: "DOT",
|
|
9656
|
+
isEVM: false,
|
|
9131
9657
|
nativeAssets: [
|
|
9132
9658
|
{
|
|
9133
9659
|
symbol: "DOT",
|
|
@@ -9140,6 +9666,7 @@ var Collectives$4 = {
|
|
|
9140
9666
|
var Phala$4 = {
|
|
9141
9667
|
relayChainAssetSymbol: "DOT",
|
|
9142
9668
|
nativeAssetSymbol: "PHA",
|
|
9669
|
+
isEVM: false,
|
|
9143
9670
|
nativeAssets: [
|
|
9144
9671
|
{
|
|
9145
9672
|
symbol: "PHA",
|
|
@@ -9191,7 +9718,10 @@ var Phala$4 = {
|
|
|
9191
9718
|
Parachain: 2000
|
|
9192
9719
|
},
|
|
9193
9720
|
{
|
|
9194
|
-
GeneralKey:
|
|
9721
|
+
GeneralKey: {
|
|
9722
|
+
length: 2,
|
|
9723
|
+
data: "0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
9724
|
+
}
|
|
9195
9725
|
}
|
|
9196
9726
|
]
|
|
9197
9727
|
}
|
|
@@ -9209,7 +9739,10 @@ var Phala$4 = {
|
|
|
9209
9739
|
Parachain: 2000
|
|
9210
9740
|
},
|
|
9211
9741
|
{
|
|
9212
|
-
GeneralKey:
|
|
9742
|
+
GeneralKey: {
|
|
9743
|
+
length: 2,
|
|
9744
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
9745
|
+
}
|
|
9213
9746
|
}
|
|
9214
9747
|
]
|
|
9215
9748
|
}
|
|
@@ -9227,7 +9760,10 @@ var Phala$4 = {
|
|
|
9227
9760
|
Parachain: 2000
|
|
9228
9761
|
},
|
|
9229
9762
|
{
|
|
9230
|
-
GeneralKey:
|
|
9763
|
+
GeneralKey: {
|
|
9764
|
+
length: 2,
|
|
9765
|
+
data: "0x0003000000000000000000000000000000000000000000000000000000000000"
|
|
9766
|
+
}
|
|
9231
9767
|
}
|
|
9232
9768
|
]
|
|
9233
9769
|
}
|
|
@@ -9289,7 +9825,10 @@ var Phala$4 = {
|
|
|
9289
9825
|
Parachain: 2011
|
|
9290
9826
|
},
|
|
9291
9827
|
{
|
|
9292
|
-
GeneralKey:
|
|
9828
|
+
GeneralKey: {
|
|
9829
|
+
length: 3,
|
|
9830
|
+
data: "0x6571640000000000000000000000000000000000000000000000000000000000"
|
|
9831
|
+
}
|
|
9293
9832
|
}
|
|
9294
9833
|
]
|
|
9295
9834
|
}
|
|
@@ -9307,7 +9846,10 @@ var Phala$4 = {
|
|
|
9307
9846
|
Parachain: 2012
|
|
9308
9847
|
},
|
|
9309
9848
|
{
|
|
9310
|
-
GeneralKey:
|
|
9849
|
+
GeneralKey: {
|
|
9850
|
+
length: 4,
|
|
9851
|
+
data: "0x5041524100000000000000000000000000000000000000000000000000000000"
|
|
9852
|
+
}
|
|
9311
9853
|
}
|
|
9312
9854
|
]
|
|
9313
9855
|
}
|
|
@@ -9325,9 +9867,12 @@ var Phala$4 = {
|
|
|
9325
9867
|
Parachain: 2030
|
|
9326
9868
|
},
|
|
9327
9869
|
{
|
|
9328
|
-
GeneralKey:
|
|
9329
|
-
|
|
9330
|
-
|
|
9870
|
+
GeneralKey: {
|
|
9871
|
+
length: 2,
|
|
9872
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
9873
|
+
}
|
|
9874
|
+
}
|
|
9875
|
+
]
|
|
9331
9876
|
}
|
|
9332
9877
|
}
|
|
9333
9878
|
},
|
|
@@ -9343,7 +9888,10 @@ var Phala$4 = {
|
|
|
9343
9888
|
Parachain: 2032
|
|
9344
9889
|
},
|
|
9345
9890
|
{
|
|
9346
|
-
GeneralKey:
|
|
9891
|
+
GeneralKey: {
|
|
9892
|
+
length: 2,
|
|
9893
|
+
data: "0x0002000000000000000000000000000000000000000000000000000000000000"
|
|
9894
|
+
}
|
|
9347
9895
|
}
|
|
9348
9896
|
]
|
|
9349
9897
|
}
|
|
@@ -9361,7 +9909,10 @@ var Phala$4 = {
|
|
|
9361
9909
|
Parachain: 2032
|
|
9362
9910
|
},
|
|
9363
9911
|
{
|
|
9364
|
-
GeneralKey:
|
|
9912
|
+
GeneralKey: {
|
|
9913
|
+
length: 2,
|
|
9914
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
9915
|
+
}
|
|
9365
9916
|
}
|
|
9366
9917
|
]
|
|
9367
9918
|
}
|
|
@@ -9406,6 +9957,7 @@ var Phala$4 = {
|
|
|
9406
9957
|
]
|
|
9407
9958
|
};
|
|
9408
9959
|
var Ethereum = {
|
|
9960
|
+
isEVM: true,
|
|
9409
9961
|
relayChainAssetSymbol: "DOT",
|
|
9410
9962
|
nativeAssetSymbol: "ETH",
|
|
9411
9963
|
nativeAssets: [
|
|
@@ -9673,6 +10225,7 @@ var Ethereum = {
|
|
|
9673
10225
|
var Khala$4 = {
|
|
9674
10226
|
relayChainAssetSymbol: "KSM",
|
|
9675
10227
|
nativeAssetSymbol: "PHA",
|
|
10228
|
+
isEVM: false,
|
|
9676
10229
|
nativeAssets: [
|
|
9677
10230
|
{
|
|
9678
10231
|
symbol: "PHA",
|
|
@@ -9703,7 +10256,10 @@ var Khala$4 = {
|
|
|
9703
10256
|
Parachain: 2000
|
|
9704
10257
|
},
|
|
9705
10258
|
{
|
|
9706
|
-
GeneralKey:
|
|
10259
|
+
GeneralKey: {
|
|
10260
|
+
length: 2,
|
|
10261
|
+
data: "0x0080000000000000000000000000000000000000000000000000000000000000"
|
|
10262
|
+
}
|
|
9707
10263
|
}
|
|
9708
10264
|
]
|
|
9709
10265
|
}
|
|
@@ -9721,7 +10277,10 @@ var Khala$4 = {
|
|
|
9721
10277
|
Parachain: 2000
|
|
9722
10278
|
},
|
|
9723
10279
|
{
|
|
9724
|
-
GeneralKey:
|
|
10280
|
+
GeneralKey: {
|
|
10281
|
+
length: 2,
|
|
10282
|
+
data: "0x0081000000000000000000000000000000000000000000000000000000000000"
|
|
10283
|
+
}
|
|
9725
10284
|
}
|
|
9726
10285
|
]
|
|
9727
10286
|
}
|
|
@@ -9739,7 +10298,10 @@ var Khala$4 = {
|
|
|
9739
10298
|
Parachain: 2001
|
|
9740
10299
|
},
|
|
9741
10300
|
{
|
|
9742
|
-
GeneralKey:
|
|
10301
|
+
GeneralKey: {
|
|
10302
|
+
length: 2,
|
|
10303
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
10304
|
+
}
|
|
9743
10305
|
}
|
|
9744
10306
|
]
|
|
9745
10307
|
}
|
|
@@ -9757,7 +10319,10 @@ var Khala$4 = {
|
|
|
9757
10319
|
Parachain: 2001
|
|
9758
10320
|
},
|
|
9759
10321
|
{
|
|
9760
|
-
GeneralKey:
|
|
10322
|
+
GeneralKey: {
|
|
10323
|
+
length: 2,
|
|
10324
|
+
data: "0x0207000000000000000000000000000000000000000000000000000000000000"
|
|
10325
|
+
}
|
|
9761
10326
|
}
|
|
9762
10327
|
]
|
|
9763
10328
|
}
|
|
@@ -9819,7 +10384,10 @@ var Khala$4 = {
|
|
|
9819
10384
|
Parachain: 2085
|
|
9820
10385
|
},
|
|
9821
10386
|
{
|
|
9822
|
-
GeneralKey:
|
|
10387
|
+
GeneralKey: {
|
|
10388
|
+
length: 3,
|
|
10389
|
+
data: "0x484b4f0000000000000000000000000000000000000000000000000000000000"
|
|
10390
|
+
}
|
|
9823
10391
|
}
|
|
9824
10392
|
]
|
|
9825
10393
|
}
|
|
@@ -9850,7 +10418,10 @@ var Khala$4 = {
|
|
|
9850
10418
|
Parachain: 2090
|
|
9851
10419
|
},
|
|
9852
10420
|
{
|
|
9853
|
-
GeneralKey:
|
|
10421
|
+
GeneralKey: {
|
|
10422
|
+
length: 4,
|
|
10423
|
+
data: "0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
10424
|
+
}
|
|
9854
10425
|
}
|
|
9855
10426
|
]
|
|
9856
10427
|
}
|
|
@@ -9888,7 +10459,10 @@ var Khala$4 = {
|
|
|
9888
10459
|
Parachain: 2096
|
|
9889
10460
|
},
|
|
9890
10461
|
{
|
|
9891
|
-
GeneralKey:
|
|
10462
|
+
GeneralKey: {
|
|
10463
|
+
length: 9,
|
|
10464
|
+
data: "0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
10465
|
+
}
|
|
9892
10466
|
}
|
|
9893
10467
|
]
|
|
9894
10468
|
}
|
|
@@ -9906,7 +10480,10 @@ var Khala$4 = {
|
|
|
9906
10480
|
Parachain: 2096
|
|
9907
10481
|
},
|
|
9908
10482
|
{
|
|
9909
|
-
GeneralKey:
|
|
10483
|
+
GeneralKey: {
|
|
10484
|
+
length: 9,
|
|
10485
|
+
data: "0x0200000000000000000000000000000000000000000000000000000000000000"
|
|
10486
|
+
}
|
|
9910
10487
|
}
|
|
9911
10488
|
]
|
|
9912
10489
|
}
|
|
@@ -9948,6 +10525,7 @@ var Khala$4 = {
|
|
|
9948
10525
|
var Mythos$4 = {
|
|
9949
10526
|
relayChainAssetSymbol: "DOT",
|
|
9950
10527
|
nativeAssetSymbol: "MYTH",
|
|
10528
|
+
isEVM: true,
|
|
9951
10529
|
nativeAssets: [
|
|
9952
10530
|
{
|
|
9953
10531
|
symbol: "MYTH",
|
|
@@ -9960,6 +10538,7 @@ var Mythos$4 = {
|
|
|
9960
10538
|
var Peaq$4 = {
|
|
9961
10539
|
relayChainAssetSymbol: "DOT",
|
|
9962
10540
|
nativeAssetSymbol: "PEAQ",
|
|
10541
|
+
isEVM: false,
|
|
9963
10542
|
nativeAssets: [
|
|
9964
10543
|
{
|
|
9965
10544
|
symbol: "PEAQ",
|
|
@@ -11769,20 +12348,14 @@ var createApiInstanceForNode$1 = function createApiInstanceForNode(api, node) {
|
|
|
11769
12348
|
while (1) switch (_context.prev = _context.next) {
|
|
11770
12349
|
case 0:
|
|
11771
12350
|
if (!(node === 'Polkadot' || node === 'Kusama')) {
|
|
11772
|
-
_context.next =
|
|
12351
|
+
_context.next = 3;
|
|
11773
12352
|
break;
|
|
11774
12353
|
}
|
|
11775
12354
|
wsUrl = getNodeProvider(node);
|
|
11776
|
-
_context.
|
|
11777
|
-
|
|
12355
|
+
return _context.abrupt("return", api.createApiInstance(wsUrl));
|
|
12356
|
+
case 3:
|
|
12357
|
+
return _context.abrupt("return", getNode(node).createApiInstance(api));
|
|
11778
12358
|
case 4:
|
|
11779
|
-
return _context.abrupt("return", _context.sent);
|
|
11780
|
-
case 5:
|
|
11781
|
-
_context.next = 7;
|
|
11782
|
-
return getNode(node).createApiInstance(api);
|
|
11783
|
-
case 7:
|
|
11784
|
-
return _context.abrupt("return", _context.sent);
|
|
11785
|
-
case 8:
|
|
11786
12359
|
case "end":
|
|
11787
12360
|
return _context.stop();
|
|
11788
12361
|
}
|
|
@@ -12112,8 +12685,7 @@ var XTokensTransferImpl = /*#__PURE__*/function () {
|
|
|
12112
12685
|
addressSelection = input.addressSelection,
|
|
12113
12686
|
destination = input.destination,
|
|
12114
12687
|
scenario = input.scenario,
|
|
12115
|
-
feeAsset = input.feeAsset
|
|
12116
|
-
serializedApiCallEnabled = input.serializedApiCallEnabled;
|
|
12688
|
+
feeAsset = input.feeAsset;
|
|
12117
12689
|
var isMultiLocationDestination = _typeof(destination) === 'object';
|
|
12118
12690
|
if (isMultiLocationDestination) {
|
|
12119
12691
|
throw new Error('Multilocation destinations are not supported for specific transfer you are trying to create. In special cases such as xTokens or xTransfer pallet try using address multilocation instead (for both destination and address in same multilocation set (eg. X2 - Parachain, Address). For further assistance please open issue in our repository.');
|
|
@@ -12130,11 +12702,6 @@ var XTokensTransferImpl = /*#__PURE__*/function () {
|
|
|
12130
12702
|
section: section,
|
|
12131
12703
|
parameters: parameters
|
|
12132
12704
|
};
|
|
12133
|
-
if (serializedApiCallEnabled === true) {
|
|
12134
|
-
return Object.assign(Object.assign({}, call), {
|
|
12135
|
-
parameters: Object.values(parameters)
|
|
12136
|
-
});
|
|
12137
|
-
}
|
|
12138
12705
|
return api.callTxMethod(call);
|
|
12139
12706
|
}
|
|
12140
12707
|
}]);
|
|
@@ -12192,11 +12759,11 @@ var ParachainNode = /*#__PURE__*/function () {
|
|
|
12192
12759
|
key: "transfer",
|
|
12193
12760
|
value: function transfer(options) {
|
|
12194
12761
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
12195
|
-
var api, asset, amount, address, destination, paraIdTo, overridedCurrencyMultiLocation, feeAsset, version, ahAddress,
|
|
12762
|
+
var api, asset, amount, address, destination, paraIdTo, overridedCurrencyMultiLocation, feeAsset, version, ahAddress, scenario, paraId, versionOrDefault, isBifrostOrigin, isAssetHubDest, shouldUseMultiasset, input;
|
|
12196
12763
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
12197
12764
|
while (1) switch (_context.prev = _context.next) {
|
|
12198
12765
|
case 0:
|
|
12199
|
-
api = options.api, asset = options.asset, amount = options.amount, address = options.address, destination = options.destination, paraIdTo = options.paraIdTo, overridedCurrencyMultiLocation = options.overridedCurrencyMultiLocation, feeAsset = options.feeAsset, version = options.version, ahAddress = options.ahAddress
|
|
12766
|
+
api = options.api, asset = options.asset, amount = options.amount, address = options.address, destination = options.destination, paraIdTo = options.paraIdTo, overridedCurrencyMultiLocation = options.overridedCurrencyMultiLocation, feeAsset = options.feeAsset, version = options.version, ahAddress = options.ahAddress;
|
|
12200
12767
|
scenario = destination !== undefined ? 'ParaToPara' : 'ParaToRelay';
|
|
12201
12768
|
paraId = destination !== undefined && _typeof(destination) !== 'object' && destination !== 'Ethereum' ? paraIdTo !== null && paraIdTo !== void 0 ? paraIdTo : getParaId(destination) : undefined;
|
|
12202
12769
|
if (!(destination === 'Polimec' && this.node !== 'AssetHubPolkadot')) {
|
|
@@ -12224,8 +12791,7 @@ var ParachainNode = /*#__PURE__*/function () {
|
|
|
12224
12791
|
paraIdTo: paraId,
|
|
12225
12792
|
destination: destination,
|
|
12226
12793
|
overridedCurrencyMultiLocation: overridedCurrencyMultiLocation,
|
|
12227
|
-
feeAsset: feeAsset
|
|
12228
|
-
serializedApiCallEnabled: serializedApiCallEnabled
|
|
12794
|
+
feeAsset: feeAsset
|
|
12229
12795
|
};
|
|
12230
12796
|
if (!shouldUseMultiasset) {
|
|
12231
12797
|
_context.next = 13;
|
|
@@ -12247,16 +12813,14 @@ var ParachainNode = /*#__PURE__*/function () {
|
|
|
12247
12813
|
paraId: paraId,
|
|
12248
12814
|
origin: this.node,
|
|
12249
12815
|
destination: destination,
|
|
12250
|
-
overridedCurrencyMultiLocation: overridedCurrencyMultiLocation
|
|
12251
|
-
serializedApiCallEnabled: serializedApiCallEnabled
|
|
12816
|
+
overridedCurrencyMultiLocation: overridedCurrencyMultiLocation
|
|
12252
12817
|
}));
|
|
12253
12818
|
case 20:
|
|
12254
12819
|
if (!supportsPolkadotXCM(this)) {
|
|
12255
|
-
_context.next =
|
|
12820
|
+
_context.next = 24;
|
|
12256
12821
|
break;
|
|
12257
12822
|
}
|
|
12258
|
-
_context.
|
|
12259
|
-
return this.transferPolkadotXCM({
|
|
12823
|
+
return _context.abrupt("return", this.transferPolkadotXCM({
|
|
12260
12824
|
api: api,
|
|
12261
12825
|
header: this.createPolkadotXcmHeader(scenario, versionOrDefault, destination, paraId),
|
|
12262
12826
|
addressSelection: generateAddressPayload(api, scenario, 'PolkadotXcm', address, versionOrDefault, paraId),
|
|
@@ -12269,15 +12833,12 @@ var ParachainNode = /*#__PURE__*/function () {
|
|
|
12269
12833
|
destination: destination,
|
|
12270
12834
|
paraIdTo: paraId,
|
|
12271
12835
|
overridedCurrency: overridedCurrencyMultiLocation,
|
|
12272
|
-
serializedApiCallEnabled: serializedApiCallEnabled,
|
|
12273
12836
|
version: version,
|
|
12274
12837
|
ahAddress: ahAddress
|
|
12275
|
-
});
|
|
12276
|
-
case
|
|
12277
|
-
return _context.abrupt("return", _context.sent);
|
|
12278
|
-
case 26:
|
|
12838
|
+
}));
|
|
12839
|
+
case 24:
|
|
12279
12840
|
throw new NoXCMSupportImplementedError(this._node);
|
|
12280
|
-
case
|
|
12841
|
+
case 25:
|
|
12281
12842
|
case "end":
|
|
12282
12843
|
return _context.stop();
|
|
12283
12844
|
}
|
|
@@ -12425,8 +12986,7 @@ var PolkadotXCMTransferImpl = /*#__PURE__*/function () {
|
|
|
12425
12986
|
addressSelection = _ref.addressSelection,
|
|
12426
12987
|
currencySelection = _ref.currencySelection,
|
|
12427
12988
|
_ref$feeAsset = _ref.feeAsset,
|
|
12428
|
-
feeAsset = _ref$feeAsset === void 0 ? DEFAULT_FEE_ASSET : _ref$feeAsset
|
|
12429
|
-
serializedApiCallEnabled = _ref.serializedApiCallEnabled;
|
|
12989
|
+
feeAsset = _ref$feeAsset === void 0 ? DEFAULT_FEE_ASSET : _ref$feeAsset;
|
|
12430
12990
|
var fees = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
|
|
12431
12991
|
var module = 'PolkadotXcm';
|
|
12432
12992
|
var call = {
|
|
@@ -12441,12 +13001,6 @@ var PolkadotXCMTransferImpl = /*#__PURE__*/function () {
|
|
|
12441
13001
|
weight_limit: fees
|
|
12442
13002
|
} : {})
|
|
12443
13003
|
};
|
|
12444
|
-
if (serializedApiCallEnabled === true) {
|
|
12445
|
-
// Keep compatible with old serialized call type
|
|
12446
|
-
return Object.assign(Object.assign({}, call), {
|
|
12447
|
-
parameters: Object.values(call.parameters)
|
|
12448
|
-
});
|
|
12449
|
-
}
|
|
12450
13004
|
return api.callTxMethod(call);
|
|
12451
13005
|
}
|
|
12452
13006
|
}]);
|
|
@@ -12861,7 +13415,7 @@ var Hydration$2 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
12861
13415
|
key: "getProvider",
|
|
12862
13416
|
value: function getProvider() {
|
|
12863
13417
|
// Return the second WebSocket URL because the first one is sometimes unreliable.
|
|
12864
|
-
return getNodeProviders(this.node)[
|
|
13418
|
+
return getNodeProviders(this.node)[2];
|
|
12865
13419
|
}
|
|
12866
13420
|
}]);
|
|
12867
13421
|
}(ParachainNode);
|
|
@@ -12909,22 +13463,35 @@ var Moonbeam$2 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
12909
13463
|
}
|
|
12910
13464
|
_inherits(Moonbeam, _ParachainNode);
|
|
12911
13465
|
return _createClass(Moonbeam, [{
|
|
12912
|
-
key: "
|
|
12913
|
-
value: function
|
|
12914
|
-
if (
|
|
12915
|
-
if (
|
|
12916
|
-
|
|
12917
|
-
|
|
12918
|
-
|
|
12919
|
-
|
|
13466
|
+
key: "getJunctions",
|
|
13467
|
+
value: function getJunctions(asset, scenario) {
|
|
13468
|
+
if (scenario === 'ParaToRelay') return DOT_MULTILOCATION;
|
|
13469
|
+
if (asset.symbol === this.getNativeAssetSymbol()) return {
|
|
13470
|
+
parents: exports.Parents.ZERO,
|
|
13471
|
+
interior: {
|
|
13472
|
+
X1: {
|
|
13473
|
+
PalletInstance: 10
|
|
13474
|
+
}
|
|
13475
|
+
}
|
|
12920
13476
|
};
|
|
13477
|
+
if (!isForeignAsset(asset)) {
|
|
13478
|
+
throw new InvalidCurrencyError('throw new InvalidCurrencyError(`Asset ${JSON.stringify(asset)} has no assetId`)');
|
|
13479
|
+
}
|
|
13480
|
+
return asset.multiLocation;
|
|
12921
13481
|
}
|
|
12922
13482
|
}, {
|
|
12923
|
-
key: "
|
|
12924
|
-
value: function
|
|
12925
|
-
var asset = input.asset
|
|
12926
|
-
|
|
12927
|
-
|
|
13483
|
+
key: "transferPolkadotXCM",
|
|
13484
|
+
value: function transferPolkadotXCM(input) {
|
|
13485
|
+
var asset = input.asset,
|
|
13486
|
+
amount = input.amount,
|
|
13487
|
+
scenario = input.scenario,
|
|
13488
|
+
_input$version = input.version,
|
|
13489
|
+
version = _input$version === void 0 ? this.version : _input$version,
|
|
13490
|
+
overridedCurrency = input.overridedCurrency;
|
|
13491
|
+
var multiLocation = this.getJunctions(asset, scenario);
|
|
13492
|
+
return Promise.resolve(PolkadotXCMTransferImpl.transferPolkadotXCM(Object.assign(Object.assign({}, input), {
|
|
13493
|
+
currencySelection: createCurrencySpec(amount, version, multiLocation.parents, overridedCurrency, multiLocation.interior)
|
|
13494
|
+
}), 'transfer_assets', 'Unlimited'));
|
|
12928
13495
|
}
|
|
12929
13496
|
}, {
|
|
12930
13497
|
key: "transferRelayToPara",
|
|
@@ -13157,22 +13724,35 @@ var Moonriver$2 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
13157
13724
|
}
|
|
13158
13725
|
_inherits(Moonriver, _ParachainNode);
|
|
13159
13726
|
return _createClass(Moonriver, [{
|
|
13160
|
-
key: "
|
|
13161
|
-
value: function
|
|
13162
|
-
if (
|
|
13163
|
-
if (
|
|
13164
|
-
|
|
13165
|
-
|
|
13166
|
-
|
|
13167
|
-
|
|
13727
|
+
key: "getJunctions",
|
|
13728
|
+
value: function getJunctions(asset, scenario) {
|
|
13729
|
+
if (scenario === 'ParaToRelay') return DOT_MULTILOCATION;
|
|
13730
|
+
if (asset.symbol === this.getNativeAssetSymbol()) return {
|
|
13731
|
+
parents: exports.Parents.ZERO,
|
|
13732
|
+
interior: {
|
|
13733
|
+
X1: {
|
|
13734
|
+
PalletInstance: 10
|
|
13735
|
+
}
|
|
13736
|
+
}
|
|
13168
13737
|
};
|
|
13738
|
+
if (!isForeignAsset(asset)) {
|
|
13739
|
+
throw new InvalidCurrencyError('throw new InvalidCurrencyError(`Asset ${JSON.stringify(asset)} has no assetId`)');
|
|
13740
|
+
}
|
|
13741
|
+
return asset.multiLocation;
|
|
13169
13742
|
}
|
|
13170
13743
|
}, {
|
|
13171
|
-
key: "
|
|
13172
|
-
value: function
|
|
13173
|
-
var asset = input.asset
|
|
13174
|
-
|
|
13175
|
-
|
|
13744
|
+
key: "transferPolkadotXCM",
|
|
13745
|
+
value: function transferPolkadotXCM(input) {
|
|
13746
|
+
var asset = input.asset,
|
|
13747
|
+
amount = input.amount,
|
|
13748
|
+
scenario = input.scenario,
|
|
13749
|
+
_input$version = input.version,
|
|
13750
|
+
version = _input$version === void 0 ? this.version : _input$version,
|
|
13751
|
+
overridedCurrency = input.overridedCurrency;
|
|
13752
|
+
var multiLocation = this.getJunctions(asset, scenario);
|
|
13753
|
+
return Promise.resolve(PolkadotXCMTransferImpl.transferPolkadotXCM(Object.assign(Object.assign({}, input), {
|
|
13754
|
+
currencySelection: createCurrencySpec(amount, version, multiLocation.parents, overridedCurrency, multiLocation.interior)
|
|
13755
|
+
}), 'transfer_assets', 'Unlimited'));
|
|
13176
13756
|
}
|
|
13177
13757
|
}, {
|
|
13178
13758
|
key: "transferRelayToPara",
|
|
@@ -14195,7 +14775,6 @@ var XTransferTransferImpl = /*#__PURE__*/function () {
|
|
|
14195
14775
|
amount = input.amount,
|
|
14196
14776
|
origin = input.origin,
|
|
14197
14777
|
destination = input.destination,
|
|
14198
|
-
serializedApiCallEnabled = input.serializedApiCallEnabled,
|
|
14199
14778
|
overridedCurrencyMultiLocation = input.overridedCurrencyMultiLocation;
|
|
14200
14779
|
var isMultiLocationDestination = _typeof(destination) === 'object';
|
|
14201
14780
|
if (isMultiLocationDestination) {
|
|
@@ -14214,11 +14793,6 @@ var XTransferTransferImpl = /*#__PURE__*/function () {
|
|
|
14214
14793
|
dest_weight: destWeight
|
|
14215
14794
|
}
|
|
14216
14795
|
};
|
|
14217
|
-
if (serializedApiCallEnabled === true) {
|
|
14218
|
-
return Object.assign(Object.assign({}, call), {
|
|
14219
|
-
parameters: Object.values(call.parameters)
|
|
14220
|
-
});
|
|
14221
|
-
}
|
|
14222
14796
|
return api.callTxMethod(call);
|
|
14223
14797
|
}
|
|
14224
14798
|
}]);
|
|
@@ -14698,6 +15272,9 @@ var assetsMap = assetsMapJson;
|
|
|
14698
15272
|
var getAssetsObject = function getAssetsObject(node) {
|
|
14699
15273
|
return assetsMap[node];
|
|
14700
15274
|
};
|
|
15275
|
+
var isNodeEvm = function isNodeEvm(node) {
|
|
15276
|
+
return assetsMap[node].isEVM;
|
|
15277
|
+
};
|
|
14701
15278
|
/**
|
|
14702
15279
|
* Retrieves the asset ID for a given symbol on a specified node.
|
|
14703
15280
|
*
|
|
@@ -15051,31 +15628,6 @@ var getExistentialDeposit$1 = function getExistentialDeposit(node) {
|
|
|
15051
15628
|
return edMap[node];
|
|
15052
15629
|
};
|
|
15053
15630
|
|
|
15054
|
-
var getBalanceNative$1 = function getBalanceNative(_a) {
|
|
15055
|
-
return __awaiter(void 0, [_a], void 0, function (_ref) {
|
|
15056
|
-
var address = _ref.address,
|
|
15057
|
-
node = _ref.node,
|
|
15058
|
-
api = _ref.api;
|
|
15059
|
-
return /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
15060
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
15061
|
-
while (1) switch (_context.prev = _context.next) {
|
|
15062
|
-
case 0:
|
|
15063
|
-
_context.next = 2;
|
|
15064
|
-
return api.init(node);
|
|
15065
|
-
case 2:
|
|
15066
|
-
_context.next = 4;
|
|
15067
|
-
return api.getBalanceNative(address);
|
|
15068
|
-
case 4:
|
|
15069
|
-
return _context.abrupt("return", _context.sent);
|
|
15070
|
-
case 5:
|
|
15071
|
-
case "end":
|
|
15072
|
-
return _context.stop();
|
|
15073
|
-
}
|
|
15074
|
-
}, _callee);
|
|
15075
|
-
})();
|
|
15076
|
-
});
|
|
15077
|
-
};
|
|
15078
|
-
|
|
15079
15631
|
var AssetHubPolkadot = {
|
|
15080
15632
|
defaultPallet: "PolkadotXcm",
|
|
15081
15633
|
supportedPallets: [
|
|
@@ -15912,46 +16464,43 @@ var getBalanceForeignPolkadotXcm = function getBalanceForeignPolkadotXcm(api, no
|
|
|
15912
16464
|
while (1) switch (_context.prev = _context.next) {
|
|
15913
16465
|
case 0:
|
|
15914
16466
|
if (!(node === 'Mythos')) {
|
|
15915
|
-
_context.next =
|
|
16467
|
+
_context.next = 2;
|
|
15916
16468
|
break;
|
|
15917
16469
|
}
|
|
15918
|
-
_context.
|
|
15919
|
-
|
|
15920
|
-
case 3:
|
|
15921
|
-
return _context.abrupt("return", _context.sent);
|
|
15922
|
-
case 4:
|
|
16470
|
+
return _context.abrupt("return", api.getMythosForeignBalance(address));
|
|
16471
|
+
case 2:
|
|
15923
16472
|
if (isForeignAsset(asset)) {
|
|
15924
|
-
_context.next =
|
|
16473
|
+
_context.next = 4;
|
|
15925
16474
|
break;
|
|
15926
16475
|
}
|
|
15927
16476
|
throw new InvalidCurrencyError("Asset ".concat(JSON.stringify(asset), " is not a foreign asset"));
|
|
15928
|
-
case
|
|
16477
|
+
case 4:
|
|
15929
16478
|
if (!(node === 'Polimec')) {
|
|
15930
|
-
_context.next =
|
|
16479
|
+
_context.next = 8;
|
|
15931
16480
|
break;
|
|
15932
16481
|
}
|
|
15933
16482
|
if (!(asset.assetId === undefined)) {
|
|
15934
|
-
_context.next =
|
|
16483
|
+
_context.next = 7;
|
|
15935
16484
|
break;
|
|
15936
16485
|
}
|
|
15937
16486
|
throw new InvalidCurrencyError("Asset ".concat(JSON.stringify(asset), " has no assetId"));
|
|
15938
|
-
case
|
|
16487
|
+
case 7:
|
|
15939
16488
|
return _context.abrupt("return", api.getForeignAssetsByIdBalance(address, asset.assetId));
|
|
15940
|
-
case
|
|
16489
|
+
case 8:
|
|
15941
16490
|
if (!(node === 'AssetHubPolkadot')) {
|
|
15942
|
-
_context.next =
|
|
16491
|
+
_context.next = 14;
|
|
15943
16492
|
break;
|
|
15944
16493
|
}
|
|
15945
16494
|
if (!asset.multiLocation) {
|
|
15946
|
-
_context.next =
|
|
16495
|
+
_context.next = 13;
|
|
15947
16496
|
break;
|
|
15948
16497
|
}
|
|
15949
16498
|
return _context.abrupt("return", api.getAssetHubForeignBalance(address, asset.multiLocation));
|
|
15950
|
-
case
|
|
16499
|
+
case 13:
|
|
15951
16500
|
return _context.abrupt("return", api.getBalanceForeignAssetsAccount(address, Number(asset.assetId)));
|
|
15952
|
-
case
|
|
16501
|
+
case 14:
|
|
15953
16502
|
return _context.abrupt("return", api.getBalanceForeignPolkadotXcm(address, asset.assetId));
|
|
15954
|
-
case
|
|
16503
|
+
case 15:
|
|
15955
16504
|
case "end":
|
|
15956
16505
|
return _context.stop();
|
|
15957
16506
|
}
|
|
@@ -15991,14 +16540,14 @@ var getBalanceForeignXTokens = function getBalanceForeignXTokens(api, node, addr
|
|
|
15991
16540
|
}));
|
|
15992
16541
|
};
|
|
15993
16542
|
|
|
15994
|
-
var
|
|
16543
|
+
var getBalanceForeignInternal = function getBalanceForeignInternal(_a) {
|
|
15995
16544
|
return __awaiter(void 0, [_a], void 0, function (_ref) {
|
|
15996
16545
|
var address = _ref.address,
|
|
15997
16546
|
node = _ref.node,
|
|
15998
16547
|
currency = _ref.currency,
|
|
15999
16548
|
api = _ref.api;
|
|
16000
16549
|
return /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
16001
|
-
var _b, asset;
|
|
16550
|
+
var _b, asset, defaultPallet;
|
|
16002
16551
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
16003
16552
|
while (1) switch (_context.prev = _context.next) {
|
|
16004
16553
|
case 0:
|
|
@@ -16012,26 +16561,81 @@ var getBalanceForeign$1 = function getBalanceForeign(_a) {
|
|
|
16012
16561
|
}
|
|
16013
16562
|
throw new InvalidCurrencyError("Asset ".concat(JSON.stringify(currency), " not found on ").concat(node));
|
|
16014
16563
|
case 5:
|
|
16015
|
-
|
|
16016
|
-
|
|
16564
|
+
defaultPallet = getDefaultPallet(node);
|
|
16565
|
+
if (!(defaultPallet === 'XTokens')) {
|
|
16566
|
+
_context.next = 10;
|
|
16017
16567
|
break;
|
|
16018
16568
|
}
|
|
16019
|
-
_context.
|
|
16020
|
-
|
|
16021
|
-
|
|
16022
|
-
|
|
16023
|
-
case 11:
|
|
16024
|
-
if (!(getDefaultPallet(node) === 'PolkadotXcm')) {
|
|
16025
|
-
_context.next = 15;
|
|
16569
|
+
return _context.abrupt("return", getBalanceForeignXTokens(api, node, address, asset));
|
|
16570
|
+
case 10:
|
|
16571
|
+
if (!(defaultPallet === 'PolkadotXcm')) {
|
|
16572
|
+
_context.next = 12;
|
|
16026
16573
|
break;
|
|
16027
16574
|
}
|
|
16028
|
-
_context.
|
|
16029
|
-
|
|
16030
|
-
case 14:
|
|
16031
|
-
return _context.abrupt("return", _context.sent);
|
|
16032
|
-
case 15:
|
|
16575
|
+
return _context.abrupt("return", getBalanceForeignPolkadotXcm(api, node, address, asset));
|
|
16576
|
+
case 12:
|
|
16033
16577
|
throw new Error('Unsupported pallet');
|
|
16034
|
-
case
|
|
16578
|
+
case 13:
|
|
16579
|
+
case "end":
|
|
16580
|
+
return _context.stop();
|
|
16581
|
+
}
|
|
16582
|
+
}, _callee);
|
|
16583
|
+
})();
|
|
16584
|
+
});
|
|
16585
|
+
};
|
|
16586
|
+
var getBalanceForeign$1 = function getBalanceForeign(options) {
|
|
16587
|
+
return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
16588
|
+
var api;
|
|
16589
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
16590
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
16591
|
+
case 0:
|
|
16592
|
+
api = options.api;
|
|
16593
|
+
_context2.prev = 1;
|
|
16594
|
+
_context2.next = 4;
|
|
16595
|
+
return getBalanceForeignInternal(options);
|
|
16596
|
+
case 4:
|
|
16597
|
+
return _context2.abrupt("return", _context2.sent);
|
|
16598
|
+
case 5:
|
|
16599
|
+
_context2.prev = 5;
|
|
16600
|
+
_context2.next = 8;
|
|
16601
|
+
return api.disconnect();
|
|
16602
|
+
case 8:
|
|
16603
|
+
return _context2.finish(5);
|
|
16604
|
+
case 9:
|
|
16605
|
+
case "end":
|
|
16606
|
+
return _context2.stop();
|
|
16607
|
+
}
|
|
16608
|
+
}, _callee2, null, [[1,, 5, 9]]);
|
|
16609
|
+
}));
|
|
16610
|
+
};
|
|
16611
|
+
|
|
16612
|
+
var getBalanceNativeInternal = function getBalanceNativeInternal(_a) {
|
|
16613
|
+
return __awaiter(void 0, [_a], void 0, function (_ref) {
|
|
16614
|
+
var address = _ref.address,
|
|
16615
|
+
node = _ref.node,
|
|
16616
|
+
api = _ref.api;
|
|
16617
|
+
return /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
16618
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
16619
|
+
while (1) switch (_context.prev = _context.next) {
|
|
16620
|
+
case 0:
|
|
16621
|
+
_context.next = 2;
|
|
16622
|
+
return api.init(node);
|
|
16623
|
+
case 2:
|
|
16624
|
+
if (!(node === 'Interlay')) {
|
|
16625
|
+
_context.next = 4;
|
|
16626
|
+
break;
|
|
16627
|
+
}
|
|
16628
|
+
return _context.abrupt("return", getBalanceForeignInternal({
|
|
16629
|
+
address: address,
|
|
16630
|
+
node: node,
|
|
16631
|
+
api: api,
|
|
16632
|
+
currency: {
|
|
16633
|
+
symbol: getAssetsObject(node).nativeAssetSymbol
|
|
16634
|
+
}
|
|
16635
|
+
}));
|
|
16636
|
+
case 4:
|
|
16637
|
+
return _context.abrupt("return", api.getBalanceNative(address));
|
|
16638
|
+
case 5:
|
|
16035
16639
|
case "end":
|
|
16036
16640
|
return _context.stop();
|
|
16037
16641
|
}
|
|
@@ -16039,8 +16643,33 @@ var getBalanceForeign$1 = function getBalanceForeign(_a) {
|
|
|
16039
16643
|
})();
|
|
16040
16644
|
});
|
|
16041
16645
|
};
|
|
16646
|
+
var getBalanceNative$1 = function getBalanceNative(options) {
|
|
16647
|
+
return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
16648
|
+
var api;
|
|
16649
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
16650
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
16651
|
+
case 0:
|
|
16652
|
+
api = options.api;
|
|
16653
|
+
_context2.prev = 1;
|
|
16654
|
+
_context2.next = 4;
|
|
16655
|
+
return getBalanceNativeInternal(options);
|
|
16656
|
+
case 4:
|
|
16657
|
+
return _context2.abrupt("return", _context2.sent);
|
|
16658
|
+
case 5:
|
|
16659
|
+
_context2.prev = 5;
|
|
16660
|
+
_context2.next = 8;
|
|
16661
|
+
return api.disconnect();
|
|
16662
|
+
case 8:
|
|
16663
|
+
return _context2.finish(5);
|
|
16664
|
+
case 9:
|
|
16665
|
+
case "end":
|
|
16666
|
+
return _context2.stop();
|
|
16667
|
+
}
|
|
16668
|
+
}, _callee2, null, [[1,, 5, 9]]);
|
|
16669
|
+
}));
|
|
16670
|
+
};
|
|
16042
16671
|
|
|
16043
|
-
var
|
|
16672
|
+
var getAssetBalanceInternal = function getAssetBalanceInternal(_a) {
|
|
16044
16673
|
return __awaiter(void 0, [_a], void 0, function (_ref) {
|
|
16045
16674
|
var address = _ref.address,
|
|
16046
16675
|
node = _ref.node,
|
|
@@ -16055,12 +16684,12 @@ var getAssetBalance$1 = function getAssetBalance(_a) {
|
|
|
16055
16684
|
return api.init(node);
|
|
16056
16685
|
case 2:
|
|
16057
16686
|
isNativeSymbol = 'symbol' in currency ? getNativeAssetSymbol(node) === currency.symbol : false;
|
|
16058
|
-
if (!isNativeSymbol) {
|
|
16687
|
+
if (!(isNativeSymbol && node !== 'Interlay')) {
|
|
16059
16688
|
_context.next = 9;
|
|
16060
16689
|
break;
|
|
16061
16690
|
}
|
|
16062
16691
|
_context.next = 6;
|
|
16063
|
-
return
|
|
16692
|
+
return getBalanceNativeInternal({
|
|
16064
16693
|
address: address,
|
|
16065
16694
|
node: node,
|
|
16066
16695
|
api: api
|
|
@@ -16071,7 +16700,7 @@ var getAssetBalance$1 = function getAssetBalance(_a) {
|
|
|
16071
16700
|
break;
|
|
16072
16701
|
case 9:
|
|
16073
16702
|
_context.next = 11;
|
|
16074
|
-
return
|
|
16703
|
+
return getBalanceForeignInternal({
|
|
16075
16704
|
address: address,
|
|
16076
16705
|
node: node,
|
|
16077
16706
|
api: api,
|
|
@@ -16107,6 +16736,31 @@ var getAssetBalance$1 = function getAssetBalance(_a) {
|
|
|
16107
16736
|
})();
|
|
16108
16737
|
});
|
|
16109
16738
|
};
|
|
16739
|
+
var getAssetBalance$1 = function getAssetBalance(options) {
|
|
16740
|
+
return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
16741
|
+
var api;
|
|
16742
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
16743
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
16744
|
+
case 0:
|
|
16745
|
+
api = options.api;
|
|
16746
|
+
_context2.prev = 1;
|
|
16747
|
+
_context2.next = 4;
|
|
16748
|
+
return getAssetBalanceInternal(options);
|
|
16749
|
+
case 4:
|
|
16750
|
+
return _context2.abrupt("return", _context2.sent);
|
|
16751
|
+
case 5:
|
|
16752
|
+
_context2.prev = 5;
|
|
16753
|
+
_context2.next = 8;
|
|
16754
|
+
return api.disconnect();
|
|
16755
|
+
case 8:
|
|
16756
|
+
return _context2.finish(5);
|
|
16757
|
+
case 9:
|
|
16758
|
+
case "end":
|
|
16759
|
+
return _context2.stop();
|
|
16760
|
+
}
|
|
16761
|
+
}, _callee2, null, [[1,, 5, 9]]);
|
|
16762
|
+
}));
|
|
16763
|
+
};
|
|
16110
16764
|
|
|
16111
16765
|
var palletsMap = edsMapJson;
|
|
16112
16766
|
var getExistentialDeposit = function getExistentialDeposit(node) {
|
|
@@ -16125,7 +16779,7 @@ var getMaxNativeTransferableAmount = function getMaxNativeTransferableAmount(api
|
|
|
16125
16779
|
case 0:
|
|
16126
16780
|
ed = getExistentialDeposit(node);
|
|
16127
16781
|
_context.next = 3;
|
|
16128
|
-
return
|
|
16782
|
+
return getBalanceNativeInternal({
|
|
16129
16783
|
address: address,
|
|
16130
16784
|
node: node,
|
|
16131
16785
|
api: api
|
|
@@ -16244,42 +16898,14 @@ var RelayToParaBuilder = /*#__PURE__*/function () {
|
|
|
16244
16898
|
while (1) switch (_context.prev = _context.next) {
|
|
16245
16899
|
case 0:
|
|
16246
16900
|
options = this.buildOptions();
|
|
16247
|
-
_context.
|
|
16248
|
-
|
|
16249
|
-
case 3:
|
|
16250
|
-
return _context.abrupt("return", _context.sent);
|
|
16251
|
-
case 4:
|
|
16901
|
+
return _context.abrupt("return", transferRelayToPara(options));
|
|
16902
|
+
case 2:
|
|
16252
16903
|
case "end":
|
|
16253
16904
|
return _context.stop();
|
|
16254
16905
|
}
|
|
16255
16906
|
}, _callee, this);
|
|
16256
16907
|
}));
|
|
16257
16908
|
}
|
|
16258
|
-
/**
|
|
16259
|
-
* Builds and returns a serialized API call for the transfer.
|
|
16260
|
-
*
|
|
16261
|
-
* @returns A Promise that resolves to the serialized API call.
|
|
16262
|
-
*/
|
|
16263
|
-
}, {
|
|
16264
|
-
key: "buildSerializedApiCall",
|
|
16265
|
-
value: function buildSerializedApiCall() {
|
|
16266
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
16267
|
-
var options;
|
|
16268
|
-
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
16269
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
16270
|
-
case 0:
|
|
16271
|
-
options = this.buildOptions();
|
|
16272
|
-
_context2.next = 3;
|
|
16273
|
-
return transferRelayToParaSerializedApiCall(options);
|
|
16274
|
-
case 3:
|
|
16275
|
-
return _context2.abrupt("return", _context2.sent);
|
|
16276
|
-
case 4:
|
|
16277
|
-
case "end":
|
|
16278
|
-
return _context2.stop();
|
|
16279
|
-
}
|
|
16280
|
-
}, _callee2, this);
|
|
16281
|
-
}));
|
|
16282
|
-
}
|
|
16283
16909
|
}], [{
|
|
16284
16910
|
key: "create",
|
|
16285
16911
|
value: function create(api, to, batchManager, paraIdTo) {
|
|
@@ -16425,28 +17051,6 @@ var ParaToParaBuilder = /*#__PURE__*/function () {
|
|
|
16425
17051
|
}, _callee, this);
|
|
16426
17052
|
}));
|
|
16427
17053
|
}
|
|
16428
|
-
/**
|
|
16429
|
-
* Builds and returns a serialized API call for the transfer.
|
|
16430
|
-
*
|
|
16431
|
-
* @returns A Promise that resolves to the serialized API call.
|
|
16432
|
-
*/
|
|
16433
|
-
}, {
|
|
16434
|
-
key: "buildSerializedApiCall",
|
|
16435
|
-
value: function buildSerializedApiCall() {
|
|
16436
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
16437
|
-
var options;
|
|
16438
|
-
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
16439
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
16440
|
-
case 0:
|
|
16441
|
-
options = this.buildOptions();
|
|
16442
|
-
return _context2.abrupt("return", sendSerializedApiCall(options));
|
|
16443
|
-
case 2:
|
|
16444
|
-
case "end":
|
|
16445
|
-
return _context2.stop();
|
|
16446
|
-
}
|
|
16447
|
-
}, _callee2, this);
|
|
16448
|
-
}));
|
|
16449
|
-
}
|
|
16450
17054
|
}], [{
|
|
16451
17055
|
key: "createParaToPara",
|
|
16452
17056
|
value: function createParaToPara(api, from, to, currency, batchManager, paraIdTo) {
|
|
@@ -16522,37 +17126,14 @@ var ParaToRelayBuilder = /*#__PURE__*/function () {
|
|
|
16522
17126
|
while (1) switch (_context.prev = _context.next) {
|
|
16523
17127
|
case 0:
|
|
16524
17128
|
options = this.buildOptions();
|
|
16525
|
-
_context.
|
|
16526
|
-
|
|
16527
|
-
case 3:
|
|
16528
|
-
return _context.abrupt("return", _context.sent);
|
|
16529
|
-
case 4:
|
|
17129
|
+
return _context.abrupt("return", send(options));
|
|
17130
|
+
case 2:
|
|
16530
17131
|
case "end":
|
|
16531
17132
|
return _context.stop();
|
|
16532
17133
|
}
|
|
16533
17134
|
}, _callee, this);
|
|
16534
17135
|
}));
|
|
16535
17136
|
}
|
|
16536
|
-
}, {
|
|
16537
|
-
key: "buildSerializedApiCall",
|
|
16538
|
-
value: function buildSerializedApiCall() {
|
|
16539
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
16540
|
-
var options;
|
|
16541
|
-
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
16542
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
16543
|
-
case 0:
|
|
16544
|
-
options = this.buildOptions();
|
|
16545
|
-
_context2.next = 3;
|
|
16546
|
-
return sendSerializedApiCall(options);
|
|
16547
|
-
case 3:
|
|
16548
|
-
return _context2.abrupt("return", _context2.sent);
|
|
16549
|
-
case 4:
|
|
16550
|
-
case "end":
|
|
16551
|
-
return _context2.stop();
|
|
16552
|
-
}
|
|
16553
|
-
}, _callee2, this);
|
|
16554
|
-
}));
|
|
16555
|
-
}
|
|
16556
17137
|
}], [{
|
|
16557
17138
|
key: "create",
|
|
16558
17139
|
value: function create(api, from, amount, batchManager, feeAsset) {
|
|
@@ -16561,6 +17142,10 @@ var ParaToRelayBuilder = /*#__PURE__*/function () {
|
|
|
16561
17142
|
}]);
|
|
16562
17143
|
}();
|
|
16563
17144
|
|
|
17145
|
+
var isPjsClient = function isPjsClient(api) {
|
|
17146
|
+
return _typeof(api) === 'object' && api !== null && 'disconnect' in api && typeof api.disconnect === 'function';
|
|
17147
|
+
};
|
|
17148
|
+
|
|
16564
17149
|
var buildBeneficiaryInput = function buildBeneficiaryInput(api, address) {
|
|
16565
17150
|
if (isTMultiLocation(address)) {
|
|
16566
17151
|
return address;
|
|
@@ -16596,14 +17181,15 @@ var buildClaimAssetsInput = function buildClaimAssetsInput(_ref) {
|
|
|
16596
17181
|
|
|
16597
17182
|
var claimAssets$1 = function claimAssets(options) {
|
|
16598
17183
|
return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
16599
|
-
var api, node,
|
|
17184
|
+
var api, node, args, module, call;
|
|
16600
17185
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
16601
17186
|
while (1) switch (_context.prev = _context.next) {
|
|
16602
17187
|
case 0:
|
|
16603
|
-
api = options.api, node = options.node
|
|
17188
|
+
api = options.api, node = options.node;
|
|
16604
17189
|
_context.next = 3;
|
|
16605
17190
|
return api.init(node);
|
|
16606
17191
|
case 3:
|
|
17192
|
+
_context.prev = 3;
|
|
16607
17193
|
args = buildClaimAssetsInput(options);
|
|
16608
17194
|
module = isRelayChain(node) ? 'XcmPallet' : 'PolkadotXcm';
|
|
16609
17195
|
call = {
|
|
@@ -16611,21 +17197,22 @@ var claimAssets$1 = function claimAssets(options) {
|
|
|
16611
17197
|
section: 'claim_assets',
|
|
16612
17198
|
parameters: args
|
|
16613
17199
|
};
|
|
16614
|
-
|
|
16615
|
-
|
|
17200
|
+
return _context.abrupt("return", api.callTxMethod(call));
|
|
17201
|
+
case 8:
|
|
17202
|
+
_context.prev = 8;
|
|
17203
|
+
if (!isPjsClient(api)) {
|
|
17204
|
+
_context.next = 12;
|
|
16616
17205
|
break;
|
|
16617
17206
|
}
|
|
16618
|
-
|
|
16619
|
-
|
|
16620
|
-
|
|
16621
|
-
|
|
16622
|
-
case
|
|
16623
|
-
return _context.abrupt("return", api.callTxMethod(call));
|
|
16624
|
-
case 9:
|
|
17207
|
+
_context.next = 12;
|
|
17208
|
+
return api.disconnect();
|
|
17209
|
+
case 12:
|
|
17210
|
+
return _context.finish(8);
|
|
17211
|
+
case 13:
|
|
16625
17212
|
case "end":
|
|
16626
17213
|
return _context.stop();
|
|
16627
17214
|
}
|
|
16628
|
-
}, _callee);
|
|
17215
|
+
}, _callee, null, [[3,, 8, 13]]);
|
|
16629
17216
|
}));
|
|
16630
17217
|
};
|
|
16631
17218
|
|
|
@@ -16711,30 +17298,6 @@ var AssetClaimBuilder = /*#__PURE__*/function () {
|
|
|
16711
17298
|
}, _callee, this);
|
|
16712
17299
|
}));
|
|
16713
17300
|
}
|
|
16714
|
-
/**
|
|
16715
|
-
* Builds and returns a serialized API call for the asset claim.
|
|
16716
|
-
*
|
|
16717
|
-
* @returns A Promise that resolves to the serialized API call.
|
|
16718
|
-
*/
|
|
16719
|
-
}, {
|
|
16720
|
-
key: "buildSerializedApiCall",
|
|
16721
|
-
value: function buildSerializedApiCall() {
|
|
16722
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
16723
|
-
var options;
|
|
16724
|
-
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
16725
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
16726
|
-
case 0:
|
|
16727
|
-
options = this.buildOptions();
|
|
16728
|
-
return _context2.abrupt("return", claimAssets$1(Object.assign(Object.assign({}, options), {
|
|
16729
|
-
serializedApiCallEnabled: true
|
|
16730
|
-
})));
|
|
16731
|
-
case 2:
|
|
16732
|
-
case "end":
|
|
16733
|
-
return _context2.stop();
|
|
16734
|
-
}
|
|
16735
|
-
}, _callee2, this);
|
|
16736
|
-
}));
|
|
16737
|
-
}
|
|
16738
17301
|
}], [{
|
|
16739
17302
|
key: "create",
|
|
16740
17303
|
value: function create(api, node) {
|
|
@@ -17003,8 +17566,7 @@ var createContext = function createContext(executionUrl, config) {
|
|
|
17003
17566
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17004
17567
|
while (1) switch (_context.prev = _context.next) {
|
|
17005
17568
|
case 0:
|
|
17006
|
-
_context.
|
|
17007
|
-
return api.contextFactory({
|
|
17569
|
+
return _context.abrupt("return", api.contextFactory({
|
|
17008
17570
|
ethereum: {
|
|
17009
17571
|
execution_url: executionUrl,
|
|
17010
17572
|
beacon_url: config.BEACON_HTTP_API
|
|
@@ -17021,10 +17583,8 @@ var createContext = function createContext(executionUrl, config) {
|
|
|
17021
17583
|
gateway: config.GATEWAY_CONTRACT,
|
|
17022
17584
|
beefy: config.BEEFY_CONTRACT
|
|
17023
17585
|
}
|
|
17024
|
-
});
|
|
17025
|
-
case
|
|
17026
|
-
return _context.abrupt("return", _context.sent);
|
|
17027
|
-
case 3:
|
|
17586
|
+
}));
|
|
17587
|
+
case 1:
|
|
17028
17588
|
case "end":
|
|
17029
17589
|
return _context.stop();
|
|
17030
17590
|
}
|
|
@@ -17212,41 +17772,32 @@ var EvmBuilder = function EvmBuilder(provider) {
|
|
|
17212
17772
|
return new EvmBuilderClass(provider);
|
|
17213
17773
|
};
|
|
17214
17774
|
|
|
17215
|
-
var createTx$1 = function createTx(
|
|
17775
|
+
var createTx$1 = function createTx(api, address, amount, currency, originNode, destNode) {
|
|
17216
17776
|
return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
17217
17777
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17218
17778
|
while (1) switch (_context.prev = _context.next) {
|
|
17219
17779
|
case 0:
|
|
17220
17780
|
if (!isRelayChain(originNode)) {
|
|
17221
|
-
_context.next =
|
|
17781
|
+
_context.next = 4;
|
|
17222
17782
|
break;
|
|
17223
17783
|
}
|
|
17224
|
-
_context.
|
|
17225
|
-
|
|
17226
|
-
case 3:
|
|
17227
|
-
return _context.abrupt("return", _context.sent);
|
|
17228
|
-
case 6:
|
|
17784
|
+
return _context.abrupt("return", Builder$1(api).to(destNode).amount(amount).address(address).build());
|
|
17785
|
+
case 4:
|
|
17229
17786
|
if (!isRelayChain(destNode)) {
|
|
17230
|
-
_context.next =
|
|
17787
|
+
_context.next = 8;
|
|
17231
17788
|
break;
|
|
17232
17789
|
}
|
|
17233
|
-
_context.
|
|
17234
|
-
|
|
17790
|
+
return _context.abrupt("return", Builder$1(api).from(originNode).amount(amount).address(address).build());
|
|
17791
|
+
case 8:
|
|
17792
|
+
return _context.abrupt("return", Builder$1(api).from(originNode).to(destNode).currency(currency).amount(amount).address(address).build());
|
|
17235
17793
|
case 9:
|
|
17236
|
-
return _context.abrupt("return", _context.sent);
|
|
17237
|
-
case 12:
|
|
17238
|
-
_context.next = 14;
|
|
17239
|
-
return Builder$1(originApi).from(originNode).to(destNode).currency(currency).amount(amount).address(address).build();
|
|
17240
|
-
case 14:
|
|
17241
|
-
return _context.abrupt("return", _context.sent);
|
|
17242
|
-
case 15:
|
|
17243
17794
|
case "end":
|
|
17244
17795
|
return _context.stop();
|
|
17245
17796
|
}
|
|
17246
17797
|
}, _callee);
|
|
17247
17798
|
}));
|
|
17248
17799
|
};
|
|
17249
|
-
var
|
|
17800
|
+
var getOriginFeeDetailsInternal = function getOriginFeeDetailsInternal(_a) {
|
|
17250
17801
|
return __awaiter(void 0, [_a], void 0, function (_ref) {
|
|
17251
17802
|
var api = _ref.api,
|
|
17252
17803
|
account = _ref.account,
|
|
@@ -17258,34 +17809,37 @@ var getOriginFeeDetails$1 = function getOriginFeeDetails(_a) {
|
|
|
17258
17809
|
_ref$feeMarginPercent = _ref.feeMarginPercentage,
|
|
17259
17810
|
feeMarginPercentage = _ref$feeMarginPercent === void 0 ? 10 : _ref$feeMarginPercent;
|
|
17260
17811
|
return /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
17261
|
-
var
|
|
17812
|
+
var tx, xcmFee, xcmFeeWithMargin, nativeBalance, minTransferableAmount, sufficientForXCM;
|
|
17262
17813
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
17263
17814
|
while (1) switch (_context2.prev = _context2.next) {
|
|
17264
17815
|
case 0:
|
|
17265
17816
|
_context2.next = 2;
|
|
17266
|
-
return
|
|
17267
|
-
address: account,
|
|
17268
|
-
node: origin,
|
|
17269
|
-
api: api
|
|
17270
|
-
});
|
|
17817
|
+
return api.init(origin);
|
|
17271
17818
|
case 2:
|
|
17272
|
-
|
|
17273
|
-
minTransferableAmount = getMinNativeTransferableAmount(origin);
|
|
17274
|
-
_context2.next = 6;
|
|
17819
|
+
_context2.next = 4;
|
|
17275
17820
|
return createTx$1(api, accountDestination, amount, currency, origin, destination);
|
|
17276
|
-
case
|
|
17821
|
+
case 4:
|
|
17277
17822
|
tx = _context2.sent;
|
|
17278
|
-
_context2.next =
|
|
17823
|
+
_context2.next = 7;
|
|
17279
17824
|
return api.calculateTransactionFee(tx, account);
|
|
17280
|
-
case
|
|
17825
|
+
case 7:
|
|
17281
17826
|
xcmFee = _context2.sent;
|
|
17282
17827
|
xcmFeeWithMargin = xcmFee + xcmFee / BigInt(feeMarginPercentage);
|
|
17828
|
+
_context2.next = 11;
|
|
17829
|
+
return getBalanceNativeInternal({
|
|
17830
|
+
address: account,
|
|
17831
|
+
node: origin,
|
|
17832
|
+
api: api
|
|
17833
|
+
});
|
|
17834
|
+
case 11:
|
|
17835
|
+
nativeBalance = _context2.sent;
|
|
17836
|
+
minTransferableAmount = getMinNativeTransferableAmount(origin);
|
|
17283
17837
|
sufficientForXCM = nativeBalance - minTransferableAmount - xcmFeeWithMargin > 0;
|
|
17284
17838
|
return _context2.abrupt("return", {
|
|
17285
17839
|
sufficientForXCM: sufficientForXCM,
|
|
17286
17840
|
xcmFee: xcmFee
|
|
17287
17841
|
});
|
|
17288
|
-
case
|
|
17842
|
+
case 15:
|
|
17289
17843
|
case "end":
|
|
17290
17844
|
return _context2.stop();
|
|
17291
17845
|
}
|
|
@@ -17293,6 +17847,33 @@ var getOriginFeeDetails$1 = function getOriginFeeDetails(_a) {
|
|
|
17293
17847
|
})();
|
|
17294
17848
|
});
|
|
17295
17849
|
};
|
|
17850
|
+
var getOriginFeeDetails$1 = function getOriginFeeDetails(options) {
|
|
17851
|
+
return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
17852
|
+
var api;
|
|
17853
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
17854
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
17855
|
+
case 0:
|
|
17856
|
+
api = options.api;
|
|
17857
|
+
api.setDisconnectAllowed(false);
|
|
17858
|
+
_context3.prev = 2;
|
|
17859
|
+
_context3.next = 5;
|
|
17860
|
+
return getOriginFeeDetailsInternal(options);
|
|
17861
|
+
case 5:
|
|
17862
|
+
return _context3.abrupt("return", _context3.sent);
|
|
17863
|
+
case 6:
|
|
17864
|
+
_context3.prev = 6;
|
|
17865
|
+
api.setDisconnectAllowed(true);
|
|
17866
|
+
_context3.next = 10;
|
|
17867
|
+
return api.disconnect();
|
|
17868
|
+
case 10:
|
|
17869
|
+
return _context3.finish(6);
|
|
17870
|
+
case 11:
|
|
17871
|
+
case "end":
|
|
17872
|
+
return _context3.stop();
|
|
17873
|
+
}
|
|
17874
|
+
}, _callee3, null, [[2,, 6, 11]]);
|
|
17875
|
+
}));
|
|
17876
|
+
};
|
|
17296
17877
|
|
|
17297
17878
|
var getTransferInfo$1 = function getTransferInfo(_a) {
|
|
17298
17879
|
return __awaiter(void 0, [_a], void 0, function (_ref) {
|
|
@@ -17302,77 +17883,72 @@ var getTransferInfo$1 = function getTransferInfo(_a) {
|
|
|
17302
17883
|
accountDestination = _ref.accountDestination,
|
|
17303
17884
|
currency = _ref.currency,
|
|
17304
17885
|
amount = _ref.amount,
|
|
17305
|
-
|
|
17886
|
+
api = _ref.api;
|
|
17306
17887
|
return /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
17307
17888
|
var _b, _c, _d, originBalance, xcmFeeDetails, expectedBalanceAfterXCMDelivery, asset;
|
|
17308
17889
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17309
17890
|
while (1) switch (_context.prev = _context.next) {
|
|
17310
17891
|
case 0:
|
|
17311
17892
|
_context.next = 2;
|
|
17312
|
-
return
|
|
17893
|
+
return api.init(origin);
|
|
17313
17894
|
case 2:
|
|
17314
|
-
|
|
17315
|
-
|
|
17895
|
+
api.setDisconnectAllowed(false);
|
|
17896
|
+
_context.prev = 3;
|
|
17897
|
+
_context.next = 6;
|
|
17898
|
+
return getBalanceNativeInternal({
|
|
17316
17899
|
address: accountOrigin,
|
|
17317
17900
|
node: origin,
|
|
17318
|
-
api:
|
|
17901
|
+
api: api
|
|
17319
17902
|
});
|
|
17320
|
-
case
|
|
17903
|
+
case 6:
|
|
17321
17904
|
originBalance = _context.sent;
|
|
17322
|
-
_context.next =
|
|
17323
|
-
return
|
|
17905
|
+
_context.next = 9;
|
|
17906
|
+
return getOriginFeeDetailsInternal({
|
|
17324
17907
|
origin: origin,
|
|
17325
17908
|
destination: destination,
|
|
17326
17909
|
currency: currency,
|
|
17327
17910
|
amount: amount,
|
|
17328
17911
|
account: accountOrigin,
|
|
17329
17912
|
accountDestination: accountDestination,
|
|
17330
|
-
api:
|
|
17913
|
+
api: api
|
|
17331
17914
|
});
|
|
17332
|
-
case
|
|
17915
|
+
case 9:
|
|
17333
17916
|
xcmFeeDetails = _context.sent;
|
|
17334
17917
|
expectedBalanceAfterXCMDelivery = originBalance - xcmFeeDetails.xcmFee;
|
|
17335
17918
|
asset = (_b = getAssetBySymbolOrId(origin, currency, destination)) !== null && _b !== void 0 ? _b : origin === 'AssetHubPolkadot' ? getAssetBySymbolOrId('Ethereum', currency, null) : null;
|
|
17336
17919
|
if (asset) {
|
|
17337
|
-
_context.next =
|
|
17920
|
+
_context.next = 14;
|
|
17338
17921
|
break;
|
|
17339
17922
|
}
|
|
17340
17923
|
throw new InvalidCurrencyError("Asset ".concat(JSON.stringify(currency), " not found on ").concat(origin));
|
|
17341
|
-
case
|
|
17924
|
+
case 14:
|
|
17342
17925
|
_context.t0 = {
|
|
17343
17926
|
origin: origin,
|
|
17344
17927
|
destination: destination,
|
|
17345
17928
|
ecosystem: determineRelayChainSymbol(origin)
|
|
17346
17929
|
};
|
|
17347
|
-
_context.next =
|
|
17348
|
-
return
|
|
17349
|
-
api:
|
|
17930
|
+
_context.next = 17;
|
|
17931
|
+
return getAssetBalanceInternal({
|
|
17932
|
+
api: api,
|
|
17350
17933
|
address: accountOrigin,
|
|
17351
17934
|
node: origin,
|
|
17352
17935
|
currency: currency
|
|
17353
17936
|
});
|
|
17354
|
-
case
|
|
17937
|
+
case 17:
|
|
17355
17938
|
_context.t1 = _context.sent;
|
|
17356
17939
|
_context.t2 = (_c = asset === null || asset === void 0 ? void 0 : asset.symbol) !== null && _c !== void 0 ? _c : '';
|
|
17357
17940
|
_context.t3 = {
|
|
17358
17941
|
balance: _context.t1,
|
|
17359
17942
|
currency: _context.t2
|
|
17360
17943
|
};
|
|
17361
|
-
_context.
|
|
17362
|
-
return getBalanceNative$1({
|
|
17363
|
-
address: accountOrigin,
|
|
17364
|
-
node: origin,
|
|
17365
|
-
api: originApi
|
|
17366
|
-
});
|
|
17367
|
-
case 20:
|
|
17368
|
-
_context.t4 = _context.sent;
|
|
17944
|
+
_context.t4 = originBalance;
|
|
17369
17945
|
_context.t5 = expectedBalanceAfterXCMDelivery;
|
|
17370
17946
|
_context.t6 = xcmFeeDetails;
|
|
17371
17947
|
_context.t7 = BigInt((_d = getExistentialDeposit(origin)) !== null && _d !== void 0 ? _d : 0);
|
|
17372
17948
|
_context.t8 = getNativeAssetSymbol(origin);
|
|
17373
17949
|
_context.t9 = getMinNativeTransferableAmount(origin);
|
|
17374
17950
|
_context.next = 28;
|
|
17375
|
-
return getMaxNativeTransferableAmount(
|
|
17951
|
+
return getMaxNativeTransferableAmount(api, accountOrigin, origin);
|
|
17376
17952
|
case 28:
|
|
17377
17953
|
_context.t10 = _context.sent;
|
|
17378
17954
|
_context.t11 = {
|
|
@@ -17385,10 +17961,10 @@ var getTransferInfo$1 = function getTransferInfo(_a) {
|
|
|
17385
17961
|
maxNativeTransferableAmount: _context.t10
|
|
17386
17962
|
};
|
|
17387
17963
|
_context.next = 32;
|
|
17388
|
-
return
|
|
17964
|
+
return getBalanceNativeInternal({
|
|
17389
17965
|
address: accountDestination,
|
|
17390
17966
|
node: destination,
|
|
17391
|
-
api:
|
|
17967
|
+
api: api
|
|
17392
17968
|
});
|
|
17393
17969
|
case 32:
|
|
17394
17970
|
_context.t12 = _context.sent;
|
|
@@ -17406,10 +17982,17 @@ var getTransferInfo$1 = function getTransferInfo(_a) {
|
|
|
17406
17982
|
destinationFeeBalance: _context.t15
|
|
17407
17983
|
});
|
|
17408
17984
|
case 37:
|
|
17985
|
+
_context.prev = 37;
|
|
17986
|
+
api.setDisconnectAllowed(true);
|
|
17987
|
+
_context.next = 41;
|
|
17988
|
+
return api.disconnect();
|
|
17989
|
+
case 41:
|
|
17990
|
+
return _context.finish(37);
|
|
17991
|
+
case 42:
|
|
17409
17992
|
case "end":
|
|
17410
17993
|
return _context.stop();
|
|
17411
17994
|
}
|
|
17412
|
-
}, _callee);
|
|
17995
|
+
}, _callee, null, [[3,, 37, 42]]);
|
|
17413
17996
|
})();
|
|
17414
17997
|
});
|
|
17415
17998
|
};
|
|
@@ -17497,36 +18080,27 @@ var createTx = function createTx(originApi, destApi, address, amount, currencySy
|
|
|
17497
18080
|
while (1) switch (_context.prev = _context.next) {
|
|
17498
18081
|
case 0:
|
|
17499
18082
|
if (!(originNode !== undefined && destNode !== undefined)) {
|
|
17500
|
-
_context.next =
|
|
18083
|
+
_context.next = 2;
|
|
17501
18084
|
break;
|
|
17502
18085
|
}
|
|
17503
|
-
_context.
|
|
17504
|
-
return Builder$1(destApi).from(destNode).to(originNode).currency({
|
|
18086
|
+
return _context.abrupt("return", Builder$1(destApi).from(destNode).to(originNode).currency({
|
|
17505
18087
|
symbol: currencySymbol
|
|
17506
|
-
}).amount(amount).address(address).build();
|
|
17507
|
-
case
|
|
17508
|
-
return _context.abrupt("return", _context.sent);
|
|
17509
|
-
case 4:
|
|
18088
|
+
}).amount(amount).address(address).build());
|
|
18089
|
+
case 2:
|
|
17510
18090
|
if (!(originNode === undefined && destNode !== undefined)) {
|
|
17511
|
-
_context.next =
|
|
18091
|
+
_context.next = 6;
|
|
17512
18092
|
break;
|
|
17513
18093
|
}
|
|
17514
|
-
_context.
|
|
17515
|
-
|
|
17516
|
-
case 7:
|
|
17517
|
-
return _context.abrupt("return", _context.sent);
|
|
17518
|
-
case 10:
|
|
18094
|
+
return _context.abrupt("return", Builder$1(originApi).to(destNode).amount(amount).address(address).build());
|
|
18095
|
+
case 6:
|
|
17519
18096
|
if (!(originNode !== undefined && destNode === undefined)) {
|
|
17520
|
-
_context.next =
|
|
18097
|
+
_context.next = 10;
|
|
17521
18098
|
break;
|
|
17522
18099
|
}
|
|
17523
|
-
_context.
|
|
17524
|
-
|
|
17525
|
-
case 13:
|
|
17526
|
-
return _context.abrupt("return", _context.sent);
|
|
17527
|
-
case 16:
|
|
18100
|
+
return _context.abrupt("return", Builder$1(destApi).to(originNode).amount(amount).address(address).build());
|
|
18101
|
+
case 10:
|
|
17528
18102
|
return _context.abrupt("return", null);
|
|
17529
|
-
case
|
|
18103
|
+
case 11:
|
|
17530
18104
|
case "end":
|
|
17531
18105
|
return _context.stop();
|
|
17532
18106
|
}
|
|
@@ -17544,7 +18118,7 @@ var checkKeepAlive = function checkKeepAlive(_a) {
|
|
|
17544
18118
|
asset = _ref.asset,
|
|
17545
18119
|
destNode = _ref.destNode;
|
|
17546
18120
|
return /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
17547
|
-
var balance, balanceOrigin, amountBN, ed, edOrigin, tx, xcmFee, increasedFee, amountBNWithoutFee, amountOriginBNWithoutFee;
|
|
18121
|
+
var balance, balanceOrigin, amountBN, ed, edOrigin, oldDisconnectAllowed, tx, xcmFee, increasedFee, amountBNWithoutFee, amountOriginBNWithoutFee;
|
|
17548
18122
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17549
18123
|
while (1) switch (_context.prev = _context.next) {
|
|
17550
18124
|
case 0:
|
|
@@ -17577,47 +18151,50 @@ var checkKeepAlive = function checkKeepAlive(_a) {
|
|
|
17577
18151
|
amountBN = BigInt(amount);
|
|
17578
18152
|
ed = getExistentialDeposit$1(destNode !== null && destNode !== void 0 ? destNode : determineRelayChain(originNode));
|
|
17579
18153
|
edOrigin = getExistentialDeposit$1(originNode !== null && originNode !== void 0 ? originNode : determineRelayChain(destNode));
|
|
17580
|
-
|
|
18154
|
+
oldDisconnectAllowed = originApi.getDisconnectAllowed();
|
|
18155
|
+
originApi.setDisconnectAllowed(false);
|
|
18156
|
+
_context.next = 19;
|
|
17581
18157
|
return createTx(originApi, destApi, address, amount, asset.symbol, originNode, destNode);
|
|
17582
|
-
case
|
|
18158
|
+
case 19:
|
|
17583
18159
|
tx = _context.sent;
|
|
18160
|
+
originApi.setDisconnectAllowed(oldDisconnectAllowed);
|
|
17584
18161
|
if (!(tx === null)) {
|
|
17585
|
-
_context.next =
|
|
18162
|
+
_context.next = 23;
|
|
17586
18163
|
break;
|
|
17587
18164
|
}
|
|
17588
18165
|
throw new KeepAliveError('Transaction for XCM fee calculation could not be created.');
|
|
17589
|
-
case
|
|
17590
|
-
_context.next =
|
|
18166
|
+
case 23:
|
|
18167
|
+
_context.next = 25;
|
|
17591
18168
|
return originApi.calculateTransactionFee(tx, address);
|
|
17592
|
-
case
|
|
18169
|
+
case 25:
|
|
17593
18170
|
xcmFee = _context.sent;
|
|
17594
18171
|
if (!(ed === null)) {
|
|
17595
|
-
_context.next =
|
|
18172
|
+
_context.next = 28;
|
|
17596
18173
|
break;
|
|
17597
18174
|
}
|
|
17598
18175
|
throw new KeepAliveError('Existential deposit not found for destination parachain.');
|
|
17599
|
-
case
|
|
18176
|
+
case 28:
|
|
17600
18177
|
if (!(edOrigin === null)) {
|
|
17601
|
-
_context.next =
|
|
18178
|
+
_context.next = 30;
|
|
17602
18179
|
break;
|
|
17603
18180
|
}
|
|
17604
18181
|
throw new KeepAliveError('Existential deposit not found for origin parachain.');
|
|
17605
|
-
case
|
|
18182
|
+
case 30:
|
|
17606
18183
|
increasedFee = xcmFee + xcmFee / BigInt(2);
|
|
17607
18184
|
amountBNWithoutFee = amountBN - increasedFee;
|
|
17608
18185
|
if (!(balance + amountBNWithoutFee < BigInt(ed))) {
|
|
17609
|
-
_context.next =
|
|
18186
|
+
_context.next = 34;
|
|
17610
18187
|
break;
|
|
17611
18188
|
}
|
|
17612
18189
|
throw new KeepAliveError("Keep alive check failed: Sending ".concat(amount, " ").concat(asset.symbol, " to ").concat(destNode, " would result in an account balance below the required existential deposit.\n Please increase the amount to meet the minimum balance requirement of the destination chain."));
|
|
17613
|
-
case
|
|
18190
|
+
case 34:
|
|
17614
18191
|
amountOriginBNWithoutFee = amountBN - (xcmFee + xcmFee / BigInt(2));
|
|
17615
18192
|
if (!((asset.symbol === 'DOT' || asset.symbol === 'KSM') && balanceOrigin - amountOriginBNWithoutFee > BigInt(edOrigin))) {
|
|
17616
|
-
_context.next =
|
|
18193
|
+
_context.next = 37;
|
|
17617
18194
|
break;
|
|
17618
18195
|
}
|
|
17619
18196
|
throw new KeepAliveError("Keep alive check failed: Sending ".concat(amount, " ").concat(asset.symbol, " to ").concat(destNode, " would result in an account balance below the required existential deposit on origin.\n Please decrease the amount to meet the minimum balance requirement of the origin chain."));
|
|
17620
|
-
case
|
|
18197
|
+
case 37:
|
|
17621
18198
|
case "end":
|
|
17622
18199
|
return _context.stop();
|
|
17623
18200
|
}
|
|
@@ -17626,337 +18203,306 @@ var checkKeepAlive = function checkKeepAlive(_a) {
|
|
|
17626
18203
|
});
|
|
17627
18204
|
};
|
|
17628
18205
|
|
|
17629
|
-
var
|
|
17630
|
-
|
|
17631
|
-
|
|
18206
|
+
var validateDestinationAddress = function validateDestinationAddress(address, destination) {
|
|
18207
|
+
if (typeof address === 'string' && destination && !isTMultiLocation(destination)) {
|
|
18208
|
+
var isDestinationEvm = isNodeEvm(destination);
|
|
18209
|
+
var isEthereumAddress = ethers.ethers.isAddress(address);
|
|
18210
|
+
if (isDestinationEvm) {
|
|
18211
|
+
if (!isEthereumAddress) {
|
|
18212
|
+
throw new InvalidAddressError('Destination node is an EVM chain, but the address provided is not a valid Ethereum address.');
|
|
18213
|
+
}
|
|
18214
|
+
} else {
|
|
18215
|
+
if (isEthereumAddress) {
|
|
18216
|
+
throw new InvalidAddressError('EVM address provided but destination is not an EVM chain.');
|
|
18217
|
+
}
|
|
18218
|
+
}
|
|
17632
18219
|
}
|
|
17633
|
-
|
|
17634
|
-
|
|
17635
|
-
|
|
17636
|
-
|
|
17637
|
-
|
|
17638
|
-
|
|
17639
|
-
|
|
17640
|
-
|
|
17641
|
-
|
|
17642
|
-
|
|
17643
|
-
|
|
17644
|
-
}
|
|
17645
|
-
throw new Error('Amount is required');
|
|
17646
|
-
case 3:
|
|
17647
|
-
if (!('multilocation' in currency && (feeAsset === 0 || feeAsset !== undefined))) {
|
|
17648
|
-
_context.next = 5;
|
|
17649
|
-
break;
|
|
17650
|
-
}
|
|
17651
|
-
throw new InvalidCurrencyError('Overrided single multi asset cannot be used with fee asset');
|
|
17652
|
-
case 5:
|
|
17653
|
-
if (!('multiasset' in currency)) {
|
|
17654
|
-
_context.next = 15;
|
|
17655
|
-
break;
|
|
17656
|
-
}
|
|
17657
|
-
if (amount !== null) {
|
|
17658
|
-
console.warn('Amount is ignored when using overriding currency using multiple multi locations. Please set it to null.');
|
|
17659
|
-
}
|
|
17660
|
-
if (!(currency.multiasset.length === 0)) {
|
|
17661
|
-
_context.next = 9;
|
|
17662
|
-
break;
|
|
17663
|
-
}
|
|
17664
|
-
throw new InvalidCurrencyError('Overrided multi assets cannot be empty');
|
|
17665
|
-
case 9:
|
|
17666
|
-
if (!(currency.multiasset.length === 1 && (feeAsset === 0 || feeAsset !== undefined))) {
|
|
17667
|
-
_context.next = 11;
|
|
17668
|
-
break;
|
|
17669
|
-
}
|
|
17670
|
-
throw new InvalidCurrencyError('Overrided single multi asset cannot be used with fee asset');
|
|
17671
|
-
case 11:
|
|
17672
|
-
if (!(currency.multiasset.length > 1 && feeAsset === undefined)) {
|
|
17673
|
-
_context.next = 13;
|
|
17674
|
-
break;
|
|
17675
|
-
}
|
|
17676
|
-
throw new InvalidCurrencyError('Overrided multi assets cannot be used without specifying fee asset');
|
|
17677
|
-
case 13:
|
|
17678
|
-
if (!(currency.multiasset.length > 1 && feeAsset !== undefined && (feeAsset < 0 || feeAsset >= currency.multiasset.length))) {
|
|
17679
|
-
_context.next = 15;
|
|
17680
|
-
break;
|
|
17681
|
-
}
|
|
17682
|
-
throw new InvalidCurrencyError('Fee asset index is out of bounds. Please provide a valid index.');
|
|
17683
|
-
case 15:
|
|
17684
|
-
if (!(destination === 'Ethereum' && origin !== 'AssetHubPolkadot' && origin !== 'Hydration')) {
|
|
17685
|
-
_context.next = 17;
|
|
17686
|
-
break;
|
|
17687
|
-
}
|
|
17688
|
-
throw new IncompatibleNodesError('Transfers to Ethereum are only supported from AssetHubPolkadot and Hydration.');
|
|
17689
|
-
case 17:
|
|
17690
|
-
isMultiLocationDestination = _typeof(destination) === 'object';
|
|
17691
|
-
isBridge = origin === 'AssetHubPolkadot' && destination === 'AssetHubKusama' || origin === 'AssetHubKusama' && destination === 'AssetHubPolkadot';
|
|
17692
|
-
isRelayDestination = destination === undefined;
|
|
17693
|
-
if (!(!isRelayDestination && !isMultiLocationDestination)) {
|
|
17694
|
-
_context.next = 25;
|
|
17695
|
-
break;
|
|
17696
|
-
}
|
|
17697
|
-
originRelayChainSymbol = getRelayChainSymbol(origin);
|
|
17698
|
-
destinationRelayChainSymbol = getRelayChainSymbol(destination);
|
|
17699
|
-
if (!(!isBridge && originRelayChainSymbol !== destinationRelayChainSymbol)) {
|
|
17700
|
-
_context.next = 25;
|
|
17701
|
-
break;
|
|
17702
|
-
}
|
|
17703
|
-
throw new IncompatibleNodesError();
|
|
17704
|
-
case 25:
|
|
17705
|
-
originNode = getNode(origin);
|
|
17706
|
-
assetCheckEnabled = 'multiasset' in currency || 'multilocation' in currency && isOverrideMultiLocationSpecifier(currency.multilocation) || isBridge ? false : originNode.assetCheckEnabled;
|
|
17707
|
-
isDestAssetHub = destination === 'AssetHubPolkadot' || destination === 'AssetHubKusama';
|
|
17708
|
-
pallet = getDefaultPallet(origin);
|
|
17709
|
-
isBifrost = origin === 'BifrostPolkadot' || origin === 'BifrostKusama';
|
|
17710
|
-
if (!(!assetCheckEnabled && 'symbol' in currency && isSymbolSpecifier(currency.symbol))) {
|
|
17711
|
-
_context.next = 32;
|
|
17712
|
-
break;
|
|
17713
|
-
}
|
|
17714
|
-
throw new InvalidCurrencyError('Symbol specifier is not supported when asset check is disabled. Please use normal symbol instead.');
|
|
17715
|
-
case 32:
|
|
17716
|
-
if (!(!assetCheckEnabled && 'id' in currency)) {
|
|
17717
|
-
_context.next = 34;
|
|
17718
|
-
break;
|
|
17719
|
-
}
|
|
17720
|
-
throw new InvalidCurrencyError('Asset ID is not supported when asset check is disabled. Please use normal symbol instead');
|
|
17721
|
-
case 34:
|
|
17722
|
-
asset = assetCheckEnabled ? getAssetBySymbolOrId(origin, currency, isRelayDestination ? determineRelayChain(origin) : !isTMultiLocation(destination) ? destination : null) : null;
|
|
17723
|
-
if (!(!isBridge && isDestAssetHub && pallet === 'XTokens' && !isBifrost)) {
|
|
17724
|
-
_context.next = 40;
|
|
17725
|
-
break;
|
|
17726
|
-
}
|
|
17727
|
-
nativeAssets = getNativeAssets(destination);
|
|
17728
|
-
if (origin === 'Hydration') {
|
|
17729
|
-
nativeAssets = nativeAssets.filter(function (nativeAsset) {
|
|
17730
|
-
return nativeAsset.symbol !== 'DOT';
|
|
17731
|
-
});
|
|
17732
|
-
}
|
|
17733
|
-
if (!('symbol' in currency && nativeAssets.some(function (nativeAsset) {
|
|
17734
|
-
var _a;
|
|
17735
|
-
return nativeAsset.symbol.toLowerCase() === ((_a = asset === null || asset === void 0 ? void 0 : asset.symbol) === null || _a === void 0 ? void 0 : _a.toLowerCase());
|
|
17736
|
-
}))) {
|
|
17737
|
-
_context.next = 40;
|
|
17738
|
-
break;
|
|
17739
|
-
}
|
|
17740
|
-
throw new InvalidCurrencyError("".concat(JSON.stringify(asset === null || asset === void 0 ? void 0 : asset.symbol), " is not supported for transfers to ").concat(destination, "."));
|
|
17741
|
-
case 40:
|
|
17742
|
-
if (!isBridge && asset === null && assetCheckEnabled) {
|
|
17743
|
-
throwUnsupportedCurrency(currency, origin);
|
|
17744
|
-
}
|
|
17745
|
-
if (!(!isBridge && !isRelayDestination && !isMultiLocationDestination && (asset === null || asset === void 0 ? void 0 : asset.symbol) !== undefined && assetCheckEnabled && !('id' in currency) && !hasSupportForAsset(destination, asset.symbol))) {
|
|
17746
|
-
_context.next = 43;
|
|
17747
|
-
break;
|
|
17748
|
-
}
|
|
17749
|
-
throw new InvalidCurrencyError("Destination node ".concat(destination, " does not support currency ").concat(JSON.stringify(currency), "."));
|
|
17750
|
-
case 43:
|
|
17751
|
-
_context.next = 45;
|
|
17752
|
-
return api.init(origin);
|
|
17753
|
-
case 45:
|
|
17754
|
-
amountStr = amount === null || amount === void 0 ? void 0 : amount.toString();
|
|
17755
|
-
if (!('multilocation' in currency || 'multiasset' in currency)) {
|
|
17756
|
-
_context.next = 50;
|
|
17757
|
-
break;
|
|
17758
|
-
}
|
|
17759
|
-
console.warn('Keep alive check is not supported when using MultiLocation as currency.');
|
|
17760
|
-
_context.next = 68;
|
|
18220
|
+
};
|
|
18221
|
+
|
|
18222
|
+
var send = function send(options) {
|
|
18223
|
+
return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
18224
|
+
var api, origin, currency, amount, address, destination, paraIdTo, destApiForKeepAlive, feeAsset, version, ahAddress, isMultiLocationDestination, isBridge, isRelayDestination, originRelayChainSymbol, destinationRelayChainSymbol, originNode, assetCheckEnabled, isDestAssetHub, pallet, isBifrost, asset, nativeAssets, amountStr, resolvedAsset;
|
|
18225
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18226
|
+
while (1) switch (_context.prev = _context.next) {
|
|
18227
|
+
case 0:
|
|
18228
|
+
api = options.api, origin = options.origin, currency = options.currency, amount = options.amount, address = options.address, destination = options.destination, paraIdTo = options.paraIdTo, destApiForKeepAlive = options.destApiForKeepAlive, feeAsset = options.feeAsset, version = options.version, ahAddress = options.ahAddress;
|
|
18229
|
+
if (!((!('multiasset' in currency) || 'multilocation' in currency) && amount === null)) {
|
|
18230
|
+
_context.next = 3;
|
|
17761
18231
|
break;
|
|
17762
|
-
|
|
17763
|
-
|
|
17764
|
-
|
|
17765
|
-
|
|
17766
|
-
|
|
17767
|
-
console.warn('Keep alive check is not supported when using MultiLocation as address.');
|
|
17768
|
-
_context.next = 68;
|
|
18232
|
+
}
|
|
18233
|
+
throw new Error('Amount is required');
|
|
18234
|
+
case 3:
|
|
18235
|
+
if (!('multilocation' in currency && (feeAsset === 0 || feeAsset !== undefined))) {
|
|
18236
|
+
_context.next = 5;
|
|
17769
18237
|
break;
|
|
17770
|
-
|
|
17771
|
-
|
|
17772
|
-
|
|
17773
|
-
|
|
17774
|
-
|
|
17775
|
-
console.warn('Keep alive check is not supported when using MultiLocation as destination.');
|
|
17776
|
-
_context.next = 68;
|
|
18238
|
+
}
|
|
18239
|
+
throw new InvalidCurrencyError('Overrided single multi asset cannot be used with fee asset');
|
|
18240
|
+
case 5:
|
|
18241
|
+
if (!('multiasset' in currency)) {
|
|
18242
|
+
_context.next = 15;
|
|
17777
18243
|
break;
|
|
17778
|
-
|
|
17779
|
-
|
|
17780
|
-
|
|
17781
|
-
|
|
17782
|
-
|
|
17783
|
-
|
|
17784
|
-
_context.next = 68;
|
|
18244
|
+
}
|
|
18245
|
+
if (amount !== null) {
|
|
18246
|
+
console.warn('Amount is ignored when using overriding currency using multiple multi locations. Please set it to null.');
|
|
18247
|
+
}
|
|
18248
|
+
if (!(currency.multiasset.length === 0)) {
|
|
18249
|
+
_context.next = 9;
|
|
17785
18250
|
break;
|
|
17786
|
-
|
|
17787
|
-
|
|
17788
|
-
|
|
17789
|
-
|
|
17790
|
-
|
|
17791
|
-
console.warn('Keep alive check is not supported when asset check is disabled.');
|
|
17792
|
-
_context.next = 68;
|
|
18251
|
+
}
|
|
18252
|
+
throw new InvalidCurrencyError('Overrided multi assets cannot be empty');
|
|
18253
|
+
case 9:
|
|
18254
|
+
if (!(currency.multiasset.length === 1 && (feeAsset === 0 || feeAsset !== undefined))) {
|
|
18255
|
+
_context.next = 11;
|
|
17793
18256
|
break;
|
|
17794
|
-
|
|
17795
|
-
|
|
17796
|
-
|
|
17797
|
-
|
|
17798
|
-
|
|
17799
|
-
amount: amountStr !== null && amountStr !== void 0 ? amountStr : '',
|
|
17800
|
-
originNode: origin,
|
|
17801
|
-
destApi: destApiForKeepAlive,
|
|
17802
|
-
asset: asset,
|
|
17803
|
-
destNode: destination
|
|
17804
|
-
});
|
|
17805
|
-
case 68:
|
|
17806
|
-
// In case asset check is disabled, we create asset object from currency symbol
|
|
17807
|
-
resolvedAsset = asset !== null && asset !== void 0 ? asset : {
|
|
17808
|
-
symbol: 'symbol' in currency ? currency.symbol : undefined
|
|
17809
|
-
};
|
|
17810
|
-
return _context.abrupt("return", originNode.transfer({
|
|
17811
|
-
api: api,
|
|
17812
|
-
asset: resolvedAsset,
|
|
17813
|
-
amount: amountStr !== null && amountStr !== void 0 ? amountStr : '',
|
|
17814
|
-
address: address,
|
|
17815
|
-
destination: destination,
|
|
17816
|
-
paraIdTo: paraIdTo,
|
|
17817
|
-
overridedCurrencyMultiLocation: 'multilocation' in currency && isOverrideMultiLocationSpecifier(currency.multilocation) ? currency.multilocation.value : 'multiasset' in currency ? currency.multiasset : undefined,
|
|
17818
|
-
feeAsset: feeAsset,
|
|
17819
|
-
version: version,
|
|
17820
|
-
destApiForKeepAlive: destApiForKeepAlive,
|
|
17821
|
-
serializedApiCallEnabled: serializedApiCallEnabled,
|
|
17822
|
-
ahAddress: ahAddress
|
|
17823
|
-
}));
|
|
17824
|
-
case 70:
|
|
17825
|
-
case "end":
|
|
17826
|
-
return _context.stop();
|
|
17827
|
-
}
|
|
17828
|
-
}, _callee);
|
|
17829
|
-
})();
|
|
17830
|
-
});
|
|
17831
|
-
};
|
|
17832
|
-
var sendSerializedApiCall = function sendSerializedApiCall(options) {
|
|
17833
|
-
return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
17834
|
-
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
17835
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
17836
|
-
case 0:
|
|
17837
|
-
return _context2.abrupt("return", sendCommon(options, true));
|
|
17838
|
-
case 1:
|
|
17839
|
-
case "end":
|
|
17840
|
-
return _context2.stop();
|
|
17841
|
-
}
|
|
17842
|
-
}, _callee2);
|
|
17843
|
-
}));
|
|
17844
|
-
};
|
|
17845
|
-
var send = function send(options) {
|
|
17846
|
-
return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
17847
|
-
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
17848
|
-
while (1) switch (_context3.prev = _context3.next) {
|
|
17849
|
-
case 0:
|
|
17850
|
-
return _context3.abrupt("return", sendCommon(options));
|
|
17851
|
-
case 1:
|
|
17852
|
-
case "end":
|
|
17853
|
-
return _context3.stop();
|
|
17854
|
-
}
|
|
17855
|
-
}, _callee3);
|
|
17856
|
-
}));
|
|
17857
|
-
};
|
|
17858
|
-
var transferRelayToParaCommon = function transferRelayToParaCommon(options_1) {
|
|
17859
|
-
for (var _len2 = arguments.length, args_1 = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
17860
|
-
args_1[_key2 - 1] = arguments[_key2];
|
|
17861
|
-
}
|
|
17862
|
-
return __awaiter(void 0, [options_1].concat(args_1), void 0, function (options) {
|
|
17863
|
-
var serializedApiCallEnabled = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
17864
|
-
return /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
17865
|
-
var api, destination, amount, address, paraIdTo, destApiForKeepAlive, version, isMultiLocationDestination, isAddressMultiLocation, amountStr, serializedApiCall;
|
|
17866
|
-
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
17867
|
-
while (1) switch (_context4.prev = _context4.next) {
|
|
17868
|
-
case 0:
|
|
17869
|
-
api = options.api, destination = options.destination, amount = options.amount, address = options.address, paraIdTo = options.paraIdTo, destApiForKeepAlive = options.destApiForKeepAlive, version = options.version;
|
|
17870
|
-
isMultiLocationDestination = _typeof(destination) === 'object';
|
|
17871
|
-
isAddressMultiLocation = _typeof(address) === 'object';
|
|
17872
|
-
if (!(api === undefined && isMultiLocationDestination)) {
|
|
17873
|
-
_context4.next = 5;
|
|
17874
|
-
break;
|
|
17875
|
-
}
|
|
17876
|
-
throw new Error('API is required when using MultiLocation as destination.');
|
|
17877
|
-
case 5:
|
|
17878
|
-
_context4.next = 7;
|
|
17879
|
-
return api.init(determineRelayChain(destination));
|
|
17880
|
-
case 7:
|
|
17881
|
-
amountStr = amount.toString();
|
|
17882
|
-
if (!isMultiLocationDestination) {
|
|
17883
|
-
_context4.next = 12;
|
|
17884
|
-
break;
|
|
17885
|
-
}
|
|
17886
|
-
console.warn('Keep alive check is not supported when using MultiLocation as destination.');
|
|
17887
|
-
_context4.next = 18;
|
|
18257
|
+
}
|
|
18258
|
+
throw new InvalidCurrencyError('Overrided single multi asset cannot be used with fee asset');
|
|
18259
|
+
case 11:
|
|
18260
|
+
if (!(currency.multiasset.length > 1 && feeAsset === undefined)) {
|
|
18261
|
+
_context.next = 13;
|
|
17888
18262
|
break;
|
|
17889
|
-
|
|
17890
|
-
|
|
17891
|
-
|
|
17892
|
-
|
|
17893
|
-
|
|
17894
|
-
console.warn('Keep alive check is not supported when using MultiLocation as address.');
|
|
17895
|
-
_context4.next = 18;
|
|
18263
|
+
}
|
|
18264
|
+
throw new InvalidCurrencyError('Overrided multi assets cannot be used without specifying fee asset');
|
|
18265
|
+
case 13:
|
|
18266
|
+
if (!(currency.multiasset.length > 1 && feeAsset !== undefined && (feeAsset < 0 || feeAsset >= currency.multiasset.length))) {
|
|
18267
|
+
_context.next = 15;
|
|
17896
18268
|
break;
|
|
17897
|
-
|
|
17898
|
-
|
|
17899
|
-
|
|
17900
|
-
|
|
17901
|
-
|
|
17902
|
-
|
|
17903
|
-
|
|
17904
|
-
|
|
17905
|
-
|
|
17906
|
-
|
|
17907
|
-
|
|
17908
|
-
|
|
17909
|
-
|
|
17910
|
-
|
|
17911
|
-
|
|
17912
|
-
|
|
17913
|
-
|
|
17914
|
-
|
|
17915
|
-
|
|
17916
|
-
|
|
17917
|
-
|
|
18269
|
+
}
|
|
18270
|
+
throw new InvalidCurrencyError('Fee asset index is out of bounds. Please provide a valid index.');
|
|
18271
|
+
case 15:
|
|
18272
|
+
if (!(destination === 'Ethereum' && origin !== 'AssetHubPolkadot' && origin !== 'Hydration')) {
|
|
18273
|
+
_context.next = 17;
|
|
18274
|
+
break;
|
|
18275
|
+
}
|
|
18276
|
+
throw new IncompatibleNodesError('Transfers to Ethereum are only supported from AssetHubPolkadot and Hydration.');
|
|
18277
|
+
case 17:
|
|
18278
|
+
isMultiLocationDestination = _typeof(destination) === 'object';
|
|
18279
|
+
isBridge = origin === 'AssetHubPolkadot' && destination === 'AssetHubKusama' || origin === 'AssetHubKusama' && destination === 'AssetHubPolkadot';
|
|
18280
|
+
isRelayDestination = destination === undefined;
|
|
18281
|
+
if (!(!isRelayDestination && !isMultiLocationDestination)) {
|
|
18282
|
+
_context.next = 25;
|
|
18283
|
+
break;
|
|
18284
|
+
}
|
|
18285
|
+
originRelayChainSymbol = getRelayChainSymbol(origin);
|
|
18286
|
+
destinationRelayChainSymbol = getRelayChainSymbol(destination);
|
|
18287
|
+
if (!(!isBridge && originRelayChainSymbol !== destinationRelayChainSymbol)) {
|
|
18288
|
+
_context.next = 25;
|
|
18289
|
+
break;
|
|
18290
|
+
}
|
|
18291
|
+
throw new IncompatibleNodesError();
|
|
18292
|
+
case 25:
|
|
18293
|
+
originNode = getNode(origin);
|
|
18294
|
+
assetCheckEnabled = 'multiasset' in currency || 'multilocation' in currency && isOverrideMultiLocationSpecifier(currency.multilocation) || isBridge ? false : originNode.assetCheckEnabled;
|
|
18295
|
+
validateDestinationAddress(address, destination);
|
|
18296
|
+
isDestAssetHub = destination === 'AssetHubPolkadot' || destination === 'AssetHubKusama';
|
|
18297
|
+
pallet = getDefaultPallet(origin);
|
|
18298
|
+
isBifrost = origin === 'BifrostPolkadot' || origin === 'BifrostKusama';
|
|
18299
|
+
if (!(!assetCheckEnabled && 'symbol' in currency && isSymbolSpecifier(currency.symbol))) {
|
|
18300
|
+
_context.next = 33;
|
|
18301
|
+
break;
|
|
18302
|
+
}
|
|
18303
|
+
throw new InvalidCurrencyError('Symbol specifier is not supported when asset check is disabled. Please use normal symbol instead.');
|
|
18304
|
+
case 33:
|
|
18305
|
+
if (!(!assetCheckEnabled && 'id' in currency)) {
|
|
18306
|
+
_context.next = 35;
|
|
18307
|
+
break;
|
|
18308
|
+
}
|
|
18309
|
+
throw new InvalidCurrencyError('Asset ID is not supported when asset check is disabled. Please use normal symbol instead');
|
|
18310
|
+
case 35:
|
|
18311
|
+
asset = assetCheckEnabled ? getAssetBySymbolOrId(origin, currency, isRelayDestination ? determineRelayChain(origin) : !isTMultiLocation(destination) ? destination : null) : null;
|
|
18312
|
+
if (!(!isBridge && isDestAssetHub && pallet === 'XTokens' && !isBifrost)) {
|
|
18313
|
+
_context.next = 41;
|
|
18314
|
+
break;
|
|
18315
|
+
}
|
|
18316
|
+
nativeAssets = getNativeAssets(destination);
|
|
18317
|
+
if (origin === 'Hydration') {
|
|
18318
|
+
nativeAssets = nativeAssets.filter(function (nativeAsset) {
|
|
18319
|
+
return nativeAsset.symbol !== 'DOT';
|
|
17918
18320
|
});
|
|
17919
|
-
|
|
17920
|
-
|
|
17921
|
-
|
|
17922
|
-
|
|
17923
|
-
|
|
17924
|
-
|
|
17925
|
-
|
|
17926
|
-
|
|
17927
|
-
|
|
17928
|
-
|
|
17929
|
-
|
|
17930
|
-
|
|
17931
|
-
|
|
17932
|
-
|
|
17933
|
-
|
|
17934
|
-
|
|
17935
|
-
}
|
|
17936
|
-
|
|
17937
|
-
|
|
17938
|
-
|
|
17939
|
-
|
|
17940
|
-
case
|
|
17941
|
-
|
|
17942
|
-
|
|
18321
|
+
}
|
|
18322
|
+
if (!('symbol' in currency && nativeAssets.some(function (nativeAsset) {
|
|
18323
|
+
var _a;
|
|
18324
|
+
return nativeAsset.symbol.toLowerCase() === ((_a = asset === null || asset === void 0 ? void 0 : asset.symbol) === null || _a === void 0 ? void 0 : _a.toLowerCase());
|
|
18325
|
+
}))) {
|
|
18326
|
+
_context.next = 41;
|
|
18327
|
+
break;
|
|
18328
|
+
}
|
|
18329
|
+
throw new InvalidCurrencyError("".concat(JSON.stringify(asset === null || asset === void 0 ? void 0 : asset.symbol), " is not supported for transfers to ").concat(destination, "."));
|
|
18330
|
+
case 41:
|
|
18331
|
+
if (!isBridge && asset === null && assetCheckEnabled) {
|
|
18332
|
+
throwUnsupportedCurrency(currency, origin);
|
|
18333
|
+
}
|
|
18334
|
+
if (!(!isBridge && !isRelayDestination && !isMultiLocationDestination && (asset === null || asset === void 0 ? void 0 : asset.symbol) !== undefined && assetCheckEnabled && !('id' in currency) && !hasSupportForAsset(destination, asset.symbol))) {
|
|
18335
|
+
_context.next = 44;
|
|
18336
|
+
break;
|
|
18337
|
+
}
|
|
18338
|
+
throw new InvalidCurrencyError("Destination node ".concat(destination, " does not support currency ").concat(JSON.stringify(currency), "."));
|
|
18339
|
+
case 44:
|
|
18340
|
+
_context.next = 46;
|
|
18341
|
+
return api.init(origin);
|
|
18342
|
+
case 46:
|
|
18343
|
+
_context.prev = 46;
|
|
18344
|
+
amountStr = amount === null || amount === void 0 ? void 0 : amount.toString();
|
|
18345
|
+
if (!('multilocation' in currency || 'multiasset' in currency)) {
|
|
18346
|
+
_context.next = 52;
|
|
18347
|
+
break;
|
|
18348
|
+
}
|
|
18349
|
+
console.warn('Keep alive check is not supported when using MultiLocation as currency.');
|
|
18350
|
+
_context.next = 70;
|
|
18351
|
+
break;
|
|
18352
|
+
case 52:
|
|
18353
|
+
if (!(_typeof(address) === 'object')) {
|
|
18354
|
+
_context.next = 56;
|
|
18355
|
+
break;
|
|
18356
|
+
}
|
|
18357
|
+
console.warn('Keep alive check is not supported when using MultiLocation as address.');
|
|
18358
|
+
_context.next = 70;
|
|
18359
|
+
break;
|
|
18360
|
+
case 56:
|
|
18361
|
+
if (!(_typeof(destination) === 'object')) {
|
|
18362
|
+
_context.next = 60;
|
|
18363
|
+
break;
|
|
18364
|
+
}
|
|
18365
|
+
console.warn('Keep alive check is not supported when using MultiLocation as destination.');
|
|
18366
|
+
_context.next = 70;
|
|
18367
|
+
break;
|
|
18368
|
+
case 60:
|
|
18369
|
+
if (!(destination === 'Ethereum')) {
|
|
18370
|
+
_context.next = 64;
|
|
18371
|
+
break;
|
|
18372
|
+
}
|
|
18373
|
+
console.warn('Keep alive check is not supported when using Ethereum as origin or destination.');
|
|
18374
|
+
_context.next = 70;
|
|
18375
|
+
break;
|
|
18376
|
+
case 64:
|
|
18377
|
+
if (asset) {
|
|
18378
|
+
_context.next = 68;
|
|
18379
|
+
break;
|
|
18380
|
+
}
|
|
18381
|
+
console.warn('Keep alive check is not supported when asset check is disabled.');
|
|
18382
|
+
_context.next = 70;
|
|
18383
|
+
break;
|
|
18384
|
+
case 68:
|
|
18385
|
+
_context.next = 70;
|
|
18386
|
+
return checkKeepAlive({
|
|
18387
|
+
originApi: api,
|
|
18388
|
+
address: address,
|
|
18389
|
+
amount: amountStr !== null && amountStr !== void 0 ? amountStr : '',
|
|
18390
|
+
originNode: origin,
|
|
18391
|
+
destApi: destApiForKeepAlive,
|
|
18392
|
+
asset: asset,
|
|
18393
|
+
destNode: destination
|
|
18394
|
+
});
|
|
18395
|
+
case 70:
|
|
18396
|
+
// In case asset check is disabled, we create asset object from currency symbol
|
|
18397
|
+
resolvedAsset = asset !== null && asset !== void 0 ? asset : {
|
|
18398
|
+
symbol: 'symbol' in currency ? currency.symbol : undefined
|
|
18399
|
+
};
|
|
18400
|
+
_context.next = 73;
|
|
18401
|
+
return originNode.transfer({
|
|
18402
|
+
api: api,
|
|
18403
|
+
asset: resolvedAsset,
|
|
18404
|
+
amount: amountStr !== null && amountStr !== void 0 ? amountStr : '',
|
|
18405
|
+
address: address,
|
|
18406
|
+
destination: destination,
|
|
18407
|
+
paraIdTo: paraIdTo,
|
|
18408
|
+
overridedCurrencyMultiLocation: 'multilocation' in currency && isOverrideMultiLocationSpecifier(currency.multilocation) ? currency.multilocation.value : 'multiasset' in currency ? currency.multiasset : undefined,
|
|
18409
|
+
feeAsset: feeAsset,
|
|
18410
|
+
version: version,
|
|
18411
|
+
destApiForKeepAlive: destApiForKeepAlive,
|
|
18412
|
+
ahAddress: ahAddress
|
|
18413
|
+
});
|
|
18414
|
+
case 73:
|
|
18415
|
+
return _context.abrupt("return", _context.sent);
|
|
18416
|
+
case 74:
|
|
18417
|
+
_context.prev = 74;
|
|
18418
|
+
if (!isPjsClient(api)) {
|
|
18419
|
+
_context.next = 78;
|
|
18420
|
+
break;
|
|
18421
|
+
}
|
|
18422
|
+
_context.next = 78;
|
|
18423
|
+
return api.disconnect();
|
|
18424
|
+
case 78:
|
|
18425
|
+
return _context.finish(74);
|
|
18426
|
+
case 79:
|
|
17943
18427
|
case "end":
|
|
17944
|
-
return
|
|
18428
|
+
return _context.stop();
|
|
17945
18429
|
}
|
|
17946
|
-
},
|
|
18430
|
+
}, _callee, null, [[46,, 74, 79]]);
|
|
17947
18431
|
}));
|
|
17948
18432
|
};
|
|
17949
|
-
var
|
|
17950
|
-
return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
17951
|
-
|
|
17952
|
-
|
|
18433
|
+
var transferRelayToPara = function transferRelayToPara(options) {
|
|
18434
|
+
return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
18435
|
+
var api, destination, amount, address, paraIdTo, destApiForKeepAlive, version, isMultiLocationDestination, isAddressMultiLocation, amountStr, serializedApiCall;
|
|
18436
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
18437
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
17953
18438
|
case 0:
|
|
17954
|
-
|
|
17955
|
-
|
|
18439
|
+
api = options.api, destination = options.destination, amount = options.amount, address = options.address, paraIdTo = options.paraIdTo, destApiForKeepAlive = options.destApiForKeepAlive, version = options.version;
|
|
18440
|
+
isMultiLocationDestination = _typeof(destination) === 'object';
|
|
18441
|
+
isAddressMultiLocation = _typeof(address) === 'object';
|
|
18442
|
+
if (!(api === undefined && isMultiLocationDestination)) {
|
|
18443
|
+
_context2.next = 5;
|
|
18444
|
+
break;
|
|
18445
|
+
}
|
|
18446
|
+
throw new Error('API is required when using MultiLocation as destination.');
|
|
18447
|
+
case 5:
|
|
18448
|
+
_context2.next = 7;
|
|
18449
|
+
return api.init(determineRelayChain(destination));
|
|
18450
|
+
case 7:
|
|
18451
|
+
_context2.prev = 7;
|
|
18452
|
+
amountStr = amount.toString();
|
|
18453
|
+
if (!isMultiLocationDestination) {
|
|
18454
|
+
_context2.next = 13;
|
|
18455
|
+
break;
|
|
18456
|
+
}
|
|
18457
|
+
console.warn('Keep alive check is not supported when using MultiLocation as destination.');
|
|
18458
|
+
_context2.next = 19;
|
|
18459
|
+
break;
|
|
18460
|
+
case 13:
|
|
18461
|
+
if (!isAddressMultiLocation) {
|
|
18462
|
+
_context2.next = 17;
|
|
18463
|
+
break;
|
|
18464
|
+
}
|
|
18465
|
+
console.warn('Keep alive check is not supported when using MultiLocation as address.');
|
|
18466
|
+
_context2.next = 19;
|
|
18467
|
+
break;
|
|
18468
|
+
case 17:
|
|
18469
|
+
_context2.next = 19;
|
|
18470
|
+
return checkKeepAlive({
|
|
18471
|
+
originApi: api,
|
|
18472
|
+
address: address,
|
|
18473
|
+
amount: amountStr,
|
|
18474
|
+
destApi: destApiForKeepAlive,
|
|
18475
|
+
asset: {
|
|
18476
|
+
symbol: getRelayChainSymbol(destination)
|
|
18477
|
+
},
|
|
18478
|
+
destNode: destination
|
|
18479
|
+
});
|
|
18480
|
+
case 19:
|
|
18481
|
+
serializedApiCall = getNode(isMultiLocationDestination ? resolveTNodeFromMultiLocation(destination) : destination).transferRelayToPara({
|
|
18482
|
+
api: api,
|
|
18483
|
+
destination: destination,
|
|
18484
|
+
address: address,
|
|
18485
|
+
amount: amountStr,
|
|
18486
|
+
paraIdTo: paraIdTo,
|
|
18487
|
+
destApiForKeepAlive: destApiForKeepAlive,
|
|
18488
|
+
version: version
|
|
18489
|
+
});
|
|
18490
|
+
return _context2.abrupt("return", api.callTxMethod(serializedApiCall));
|
|
18491
|
+
case 21:
|
|
18492
|
+
_context2.prev = 21;
|
|
18493
|
+
if (!isPjsClient(api)) {
|
|
18494
|
+
_context2.next = 25;
|
|
18495
|
+
break;
|
|
18496
|
+
}
|
|
18497
|
+
_context2.next = 25;
|
|
18498
|
+
return api.disconnect();
|
|
18499
|
+
case 25:
|
|
18500
|
+
return _context2.finish(21);
|
|
18501
|
+
case 26:
|
|
17956
18502
|
case "end":
|
|
17957
|
-
return
|
|
18503
|
+
return _context2.stop();
|
|
17958
18504
|
}
|
|
17959
|
-
},
|
|
18505
|
+
}, _callee2, null, [[7,, 21, 26]]);
|
|
17960
18506
|
}));
|
|
17961
18507
|
};
|
|
17962
18508
|
|
|
@@ -18016,10 +18562,7 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
18016
18562
|
__proto__: null,
|
|
18017
18563
|
buildEthTransferOptions: buildEthTransferOptions,
|
|
18018
18564
|
send: send,
|
|
18019
|
-
|
|
18020
|
-
transferRelayToPara: transferRelayToPara,
|
|
18021
|
-
transferRelayToParaCommon: transferRelayToParaCommon,
|
|
18022
|
-
transferRelayToParaSerializedApiCall: transferRelayToParaSerializedApiCall
|
|
18565
|
+
transferRelayToPara: transferRelayToPara
|
|
18023
18566
|
});
|
|
18024
18567
|
|
|
18025
18568
|
var checkAndConvertToNumberOrBigInt = function checkAndConvertToNumberOrBigInt(input) {
|
|
@@ -18137,7 +18680,7 @@ var _transform = function transform(obj) {
|
|
|
18137
18680
|
newObj[k] = undefined;
|
|
18138
18681
|
continue;
|
|
18139
18682
|
}
|
|
18140
|
-
if (
|
|
18683
|
+
if (typeof v === 'string' && v.startsWith('0x')) {
|
|
18141
18684
|
newObj[k] = polkadotApi.FixedSizeBinary.fromHex(v);
|
|
18142
18685
|
} else if (typeof v === 'string') {
|
|
18143
18686
|
newObj[k] = {
|
|
@@ -18164,6 +18707,8 @@ var unsupportedNodes = ['ComposableFinance', 'Interlay', 'Parallel', 'Pioneer',
|
|
|
18164
18707
|
var PapiApi = /*#__PURE__*/function () {
|
|
18165
18708
|
function PapiApi() {
|
|
18166
18709
|
_classCallCheck(this, PapiApi);
|
|
18710
|
+
this.initialized = false;
|
|
18711
|
+
this.disconnectAllowed = true;
|
|
18167
18712
|
}
|
|
18168
18713
|
return _createClass(PapiApi, [{
|
|
18169
18714
|
key: "setApi",
|
|
@@ -18183,38 +18728,46 @@ var PapiApi = /*#__PURE__*/function () {
|
|
|
18183
18728
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18184
18729
|
while (1) switch (_context.prev = _context.next) {
|
|
18185
18730
|
case 0:
|
|
18186
|
-
if (!
|
|
18731
|
+
if (!this.initialized) {
|
|
18187
18732
|
_context.next = 2;
|
|
18188
18733
|
break;
|
|
18189
18734
|
}
|
|
18190
|
-
|
|
18735
|
+
return _context.abrupt("return");
|
|
18191
18736
|
case 2:
|
|
18737
|
+
if (!unsupportedNodes.includes(node)) {
|
|
18738
|
+
_context.next = 4;
|
|
18739
|
+
break;
|
|
18740
|
+
}
|
|
18741
|
+
throw new NodeNotSupportedError("The node ".concat(node, " is not yet supported by the Polkadot API."));
|
|
18742
|
+
case 4:
|
|
18192
18743
|
if (!(typeof this._api === 'string')) {
|
|
18193
|
-
_context.next =
|
|
18744
|
+
_context.next = 10;
|
|
18194
18745
|
break;
|
|
18195
18746
|
}
|
|
18196
|
-
_context.next =
|
|
18747
|
+
_context.next = 7;
|
|
18197
18748
|
return this.createApiInstance(this._api);
|
|
18198
|
-
case
|
|
18749
|
+
case 7:
|
|
18199
18750
|
this.api = _context.sent;
|
|
18200
|
-
_context.next =
|
|
18751
|
+
_context.next = 18;
|
|
18201
18752
|
break;
|
|
18202
|
-
case
|
|
18753
|
+
case 10:
|
|
18203
18754
|
if (!((_a = this._api) !== null && _a !== void 0)) {
|
|
18204
|
-
_context.next =
|
|
18755
|
+
_context.next = 14;
|
|
18205
18756
|
break;
|
|
18206
18757
|
}
|
|
18207
18758
|
_context.t0 = _a;
|
|
18208
|
-
_context.next =
|
|
18759
|
+
_context.next = 17;
|
|
18209
18760
|
break;
|
|
18210
|
-
case 12:
|
|
18211
|
-
_context.next = 14;
|
|
18212
|
-
return createApiInstanceForNode$1(this, node);
|
|
18213
18761
|
case 14:
|
|
18762
|
+
_context.next = 16;
|
|
18763
|
+
return createApiInstanceForNode$1(this, node);
|
|
18764
|
+
case 16:
|
|
18214
18765
|
_context.t0 = _context.sent;
|
|
18215
|
-
case
|
|
18766
|
+
case 17:
|
|
18216
18767
|
this.api = _context.t0;
|
|
18217
|
-
case
|
|
18768
|
+
case 18:
|
|
18769
|
+
this.initialized = true;
|
|
18770
|
+
case 19:
|
|
18218
18771
|
case "end":
|
|
18219
18772
|
return _context.stop();
|
|
18220
18773
|
}
|
|
@@ -18462,11 +19015,8 @@ var PapiApi = /*#__PURE__*/function () {
|
|
|
18462
19015
|
return _regeneratorRuntime().wrap(function _callee12$(_context12) {
|
|
18463
19016
|
while (1) switch (_context12.prev = _context12.next) {
|
|
18464
19017
|
case 0:
|
|
18465
|
-
_context12.
|
|
18466
|
-
|
|
18467
|
-
case 2:
|
|
18468
|
-
return _context12.abrupt("return", _context12.sent);
|
|
18469
|
-
case 3:
|
|
19018
|
+
return _context12.abrupt("return", this.api._request('state_getStorage', [key]));
|
|
19019
|
+
case 1:
|
|
18470
19020
|
case "end":
|
|
18471
19021
|
return _context12.stop();
|
|
18472
19022
|
}
|
|
@@ -18498,6 +19048,26 @@ var PapiApi = /*#__PURE__*/function () {
|
|
|
18498
19048
|
}, _callee13);
|
|
18499
19049
|
}));
|
|
18500
19050
|
}
|
|
19051
|
+
}, {
|
|
19052
|
+
key: "setDisconnectAllowed",
|
|
19053
|
+
value: function setDisconnectAllowed(allowed) {
|
|
19054
|
+
this.disconnectAllowed = allowed;
|
|
19055
|
+
}
|
|
19056
|
+
}, {
|
|
19057
|
+
key: "getDisconnectAllowed",
|
|
19058
|
+
value: function getDisconnectAllowed() {
|
|
19059
|
+
return this.disconnectAllowed;
|
|
19060
|
+
}
|
|
19061
|
+
}, {
|
|
19062
|
+
key: "disconnect",
|
|
19063
|
+
value: function disconnect() {
|
|
19064
|
+
if (!this.disconnectAllowed) return Promise.resolve();
|
|
19065
|
+
// Disconnect api only if it was created automatically
|
|
19066
|
+
if (typeof this._api === 'string' || this._api === undefined) {
|
|
19067
|
+
this.api.destroy();
|
|
19068
|
+
}
|
|
19069
|
+
return Promise.resolve();
|
|
19070
|
+
}
|
|
18501
19071
|
}]);
|
|
18502
19072
|
}();
|
|
18503
19073
|
|
|
@@ -18583,7 +19153,8 @@ var assets = /*#__PURE__*/Object.freeze({
|
|
|
18583
19153
|
getSupportedAssets: getSupportedAssets,
|
|
18584
19154
|
getTNode: getTNode,
|
|
18585
19155
|
getTransferInfo: getTransferInfo,
|
|
18586
|
-
hasSupportForAsset: hasSupportForAsset
|
|
19156
|
+
hasSupportForAsset: hasSupportForAsset,
|
|
19157
|
+
isNodeEvm: isNodeEvm
|
|
18587
19158
|
});
|
|
18588
19159
|
|
|
18589
19160
|
/**
|
|
@@ -18607,6 +19178,7 @@ exports.Foreign = Foreign;
|
|
|
18607
19178
|
exports.ForeignAbstract = ForeignAbstract;
|
|
18608
19179
|
exports.GeneralBuilder = GeneralBuilder;
|
|
18609
19180
|
exports.IncompatibleNodesError = IncompatibleNodesError;
|
|
19181
|
+
exports.InvalidAddressError = InvalidAddressError;
|
|
18610
19182
|
exports.InvalidCurrencyError = InvalidCurrencyError;
|
|
18611
19183
|
exports.NODES_WITH_RELAY_CHAINS = NODES_WITH_RELAY_CHAINS;
|
|
18612
19184
|
exports.NODES_WITH_RELAY_CHAINS_DOT_KSM = NODES_WITH_RELAY_CHAINS_DOT_KSM;
|
|
@@ -18650,10 +19222,8 @@ exports.getTNode = getTNode;
|
|
|
18650
19222
|
exports.getTransferInfo = getTransferInfo;
|
|
18651
19223
|
exports.hasSupportForAsset = hasSupportForAsset;
|
|
18652
19224
|
exports.isForeignAsset = isForeignAsset;
|
|
19225
|
+
exports.isNodeEvm = isNodeEvm;
|
|
18653
19226
|
exports.isRelayChain = isRelayChain;
|
|
18654
19227
|
exports.send = send;
|
|
18655
|
-
exports.sendSerializedApiCall = sendSerializedApiCall;
|
|
18656
19228
|
exports.transferRelayToPara = transferRelayToPara;
|
|
18657
|
-
exports.transferRelayToParaCommon = transferRelayToParaCommon;
|
|
18658
|
-
exports.transferRelayToParaSerializedApiCall = transferRelayToParaSerializedApiCall;
|
|
18659
19229
|
exports.xcmPallet = index;
|