@paraspell/sdk 2.0.6 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -109
- package/dist/index.cjs +875 -698
- package/dist/index.d.ts +47 -13
- package/dist/index.mjs +875 -699
- package/package.json +4 -3
package/dist/index.mjs
CHANGED
|
@@ -5,8 +5,8 @@ import { prodRelayPolkadot, prodRelayKusama } from '@polkadot/apps-config/endpoi
|
|
|
5
5
|
// derrived from https://github.com/kodadot/packages/blob/main/minimark/src/common/types.ts
|
|
6
6
|
var Version;
|
|
7
7
|
(function (Version) {
|
|
8
|
-
Version[
|
|
9
|
-
Version[
|
|
8
|
+
Version["V1"] = "V1";
|
|
9
|
+
Version["V3"] = "V3";
|
|
10
10
|
})(Version || (Version = {}));
|
|
11
11
|
|
|
12
12
|
function _classCallCheck(instance, Constructor) {
|
|
@@ -31,6 +31,20 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
31
31
|
});
|
|
32
32
|
return Constructor;
|
|
33
33
|
}
|
|
34
|
+
function _defineProperty(obj, key, value) {
|
|
35
|
+
key = _toPropertyKey(key);
|
|
36
|
+
if (key in obj) {
|
|
37
|
+
Object.defineProperty(obj, key, {
|
|
38
|
+
value: value,
|
|
39
|
+
enumerable: true,
|
|
40
|
+
configurable: true,
|
|
41
|
+
writable: true
|
|
42
|
+
});
|
|
43
|
+
} else {
|
|
44
|
+
obj[key] = value;
|
|
45
|
+
}
|
|
46
|
+
return obj;
|
|
47
|
+
}
|
|
34
48
|
function _inherits(subClass, superClass) {
|
|
35
49
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
36
50
|
throw new TypeError("Super expression must either be null or a function");
|
|
@@ -87,7 +101,11 @@ function _construct(Parent, args, Class) {
|
|
|
87
101
|
return _construct.apply(null, arguments);
|
|
88
102
|
}
|
|
89
103
|
function _isNativeFunction(fn) {
|
|
90
|
-
|
|
104
|
+
try {
|
|
105
|
+
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
106
|
+
} catch (e) {
|
|
107
|
+
return typeof fn === "function";
|
|
108
|
+
}
|
|
91
109
|
}
|
|
92
110
|
function _wrapNativeSuper(Class) {
|
|
93
111
|
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
@@ -340,6 +358,11 @@ var Acala$2 = {
|
|
|
340
358
|
symbol: "ASTR",
|
|
341
359
|
decimals: 18
|
|
342
360
|
},
|
|
361
|
+
{
|
|
362
|
+
assetId: "0x892ddd9387dbdecedaef878bd7acf8603109227f",
|
|
363
|
+
symbol: "TAI",
|
|
364
|
+
decimals: 12
|
|
365
|
+
},
|
|
343
366
|
{
|
|
344
367
|
assetId: "9",
|
|
345
368
|
symbol: "PHA",
|
|
@@ -537,6 +560,11 @@ var Astar$2 = {
|
|
|
537
560
|
symbol: "TST",
|
|
538
561
|
decimals: 18
|
|
539
562
|
},
|
|
563
|
+
{
|
|
564
|
+
assetId: "4294969281",
|
|
565
|
+
symbol: "USDC",
|
|
566
|
+
decimals: 6
|
|
567
|
+
},
|
|
540
568
|
{
|
|
541
569
|
assetId: "1326",
|
|
542
570
|
symbol: "aASTR",
|
|
@@ -728,6 +756,11 @@ var Centrifuge$2 = {
|
|
|
728
756
|
}
|
|
729
757
|
],
|
|
730
758
|
otherAssets: [
|
|
759
|
+
{
|
|
760
|
+
assetId: "100003",
|
|
761
|
+
symbol: "LpArbUSDC",
|
|
762
|
+
decimals: 6
|
|
763
|
+
},
|
|
731
764
|
{
|
|
732
765
|
assetId: "3",
|
|
733
766
|
symbol: "aUSD",
|
|
@@ -748,13 +781,18 @@ var Centrifuge$2 = {
|
|
|
748
781
|
symbol: "CFG",
|
|
749
782
|
decimals: 18
|
|
750
783
|
},
|
|
784
|
+
{
|
|
785
|
+
assetId: "100002",
|
|
786
|
+
symbol: "LpBaseUSDC",
|
|
787
|
+
decimals: 6
|
|
788
|
+
},
|
|
751
789
|
{
|
|
752
790
|
assetId: "1",
|
|
753
791
|
symbol: "USDT",
|
|
754
792
|
decimals: 6
|
|
755
793
|
},
|
|
756
794
|
{
|
|
757
|
-
assetId: "
|
|
795
|
+
assetId: "100001",
|
|
758
796
|
symbol: "LpEthUSDC",
|
|
759
797
|
decimals: 6
|
|
760
798
|
},
|
|
@@ -763,10 +801,20 @@ var Centrifuge$2 = {
|
|
|
763
801
|
symbol: "GLMR",
|
|
764
802
|
decimals: 18
|
|
765
803
|
},
|
|
804
|
+
{
|
|
805
|
+
assetId: "100004",
|
|
806
|
+
symbol: "LpCeloUSDC",
|
|
807
|
+
decimals: 6
|
|
808
|
+
},
|
|
766
809
|
{
|
|
767
810
|
assetId: "2",
|
|
768
811
|
symbol: "xcUSDC",
|
|
769
812
|
decimals: 6
|
|
813
|
+
},
|
|
814
|
+
{
|
|
815
|
+
assetId: "4139607887",
|
|
816
|
+
symbol: "ALTF1",
|
|
817
|
+
decimals: 6
|
|
770
818
|
}
|
|
771
819
|
]
|
|
772
820
|
};
|
|
@@ -1016,6 +1064,11 @@ var HydraDX$2 = {
|
|
|
1016
1064
|
symbol: "DAI",
|
|
1017
1065
|
decimals: 18
|
|
1018
1066
|
},
|
|
1067
|
+
{
|
|
1068
|
+
assetId: "23",
|
|
1069
|
+
symbol: "USDT",
|
|
1070
|
+
decimals: 6
|
|
1071
|
+
},
|
|
1019
1072
|
{
|
|
1020
1073
|
assetId: "4",
|
|
1021
1074
|
symbol: "WETH",
|
|
@@ -1058,20 +1111,60 @@ var Interlay$2 = {
|
|
|
1058
1111
|
}
|
|
1059
1112
|
],
|
|
1060
1113
|
otherAssets: [
|
|
1114
|
+
{
|
|
1115
|
+
assetId: "7",
|
|
1116
|
+
symbol: "WBNB.wh",
|
|
1117
|
+
decimals: 18
|
|
1118
|
+
},
|
|
1119
|
+
{
|
|
1120
|
+
assetId: "5",
|
|
1121
|
+
symbol: "TBTC.wh",
|
|
1122
|
+
decimals: 18
|
|
1123
|
+
},
|
|
1124
|
+
{
|
|
1125
|
+
assetId: "8",
|
|
1126
|
+
symbol: "USDC.wh",
|
|
1127
|
+
decimals: 6
|
|
1128
|
+
},
|
|
1061
1129
|
{
|
|
1062
1130
|
assetId: "1",
|
|
1063
1131
|
symbol: "LDOT",
|
|
1064
1132
|
decimals: 10
|
|
1065
1133
|
},
|
|
1134
|
+
{
|
|
1135
|
+
assetId: "9",
|
|
1136
|
+
symbol: "WBTC.wh",
|
|
1137
|
+
decimals: 8
|
|
1138
|
+
},
|
|
1066
1139
|
{
|
|
1067
1140
|
assetId: "2",
|
|
1068
1141
|
symbol: "USDT",
|
|
1069
1142
|
decimals: 6
|
|
1070
1143
|
},
|
|
1144
|
+
{
|
|
1145
|
+
assetId: "10",
|
|
1146
|
+
symbol: "GLMR",
|
|
1147
|
+
decimals: 18
|
|
1148
|
+
},
|
|
1149
|
+
{
|
|
1150
|
+
assetId: "6",
|
|
1151
|
+
symbol: "WETH.wh",
|
|
1152
|
+
decimals: 18
|
|
1153
|
+
},
|
|
1154
|
+
{
|
|
1155
|
+
assetId: "11",
|
|
1156
|
+
symbol: "BNC",
|
|
1157
|
+
decimals: 12
|
|
1158
|
+
},
|
|
1071
1159
|
{
|
|
1072
1160
|
assetId: "3",
|
|
1073
1161
|
symbol: "VDOT",
|
|
1074
1162
|
decimals: 10
|
|
1163
|
+
},
|
|
1164
|
+
{
|
|
1165
|
+
assetId: "4",
|
|
1166
|
+
symbol: "DAI.wh",
|
|
1167
|
+
decimals: 18
|
|
1075
1168
|
}
|
|
1076
1169
|
]
|
|
1077
1170
|
};
|
|
@@ -1088,7 +1181,7 @@ var Kylin$2 = {
|
|
|
1088
1181
|
{
|
|
1089
1182
|
assetId: "1",
|
|
1090
1183
|
symbol: "DOT",
|
|
1091
|
-
decimals:
|
|
1184
|
+
decimals: 0
|
|
1092
1185
|
}
|
|
1093
1186
|
]
|
|
1094
1187
|
};
|
|
@@ -1114,6 +1207,11 @@ var Moonbeam$2 = {
|
|
|
1114
1207
|
}
|
|
1115
1208
|
],
|
|
1116
1209
|
otherAssets: [
|
|
1210
|
+
{
|
|
1211
|
+
assetId: "150874409661081770150564009349448205842",
|
|
1212
|
+
symbol: "ZTG",
|
|
1213
|
+
decimals: 10
|
|
1214
|
+
},
|
|
1117
1215
|
{
|
|
1118
1216
|
assetId: "144012926827374458669278577633504620722",
|
|
1119
1217
|
symbol: "FIL",
|
|
@@ -1154,6 +1252,11 @@ var Moonbeam$2 = {
|
|
|
1154
1252
|
symbol: "ASTR",
|
|
1155
1253
|
decimals: 18
|
|
1156
1254
|
},
|
|
1255
|
+
{
|
|
1256
|
+
assetId: "166377000701797186346254371275954761085",
|
|
1257
|
+
symbol: "USDC",
|
|
1258
|
+
decimals: 6
|
|
1259
|
+
},
|
|
1157
1260
|
{
|
|
1158
1261
|
assetId: "89994634370519791027168048838578580624",
|
|
1159
1262
|
symbol: "SUB",
|
|
@@ -1219,6 +1322,11 @@ var Moonbeam$2 = {
|
|
|
1219
1322
|
symbol: "vFIL",
|
|
1220
1323
|
decimals: 18
|
|
1221
1324
|
},
|
|
1325
|
+
{
|
|
1326
|
+
assetId: "238111524681612888331172110363070489924",
|
|
1327
|
+
symbol: "OTP",
|
|
1328
|
+
decimals: 12
|
|
1329
|
+
},
|
|
1222
1330
|
{
|
|
1223
1331
|
assetId: "132685552157663328694213725410064821485",
|
|
1224
1332
|
symbol: "PHA",
|
|
@@ -1418,7 +1526,7 @@ var Parallel$2 = {
|
|
|
1418
1526
|
}
|
|
1419
1527
|
]
|
|
1420
1528
|
};
|
|
1421
|
-
var
|
|
1529
|
+
var AssetHubPolkadot$2 = {
|
|
1422
1530
|
paraId: 1000,
|
|
1423
1531
|
relayChainAssetSymbol: "DOT",
|
|
1424
1532
|
nativeAssets: [
|
|
@@ -1503,6 +1611,11 @@ var Statemint$2 = {
|
|
|
1503
1611
|
symbol: "VSC",
|
|
1504
1612
|
decimals: 9
|
|
1505
1613
|
},
|
|
1614
|
+
{
|
|
1615
|
+
assetId: "19760401",
|
|
1616
|
+
symbol: "APPL",
|
|
1617
|
+
decimals: 0
|
|
1618
|
+
},
|
|
1506
1619
|
{
|
|
1507
1620
|
assetId: "5",
|
|
1508
1621
|
symbol: "PLX",
|
|
@@ -1515,7 +1628,7 @@ var Statemint$2 = {
|
|
|
1515
1628
|
},
|
|
1516
1629
|
{
|
|
1517
1630
|
assetId: "1984",
|
|
1518
|
-
symbol: "
|
|
1631
|
+
symbol: "USDt",
|
|
1519
1632
|
decimals: 6
|
|
1520
1633
|
},
|
|
1521
1634
|
{
|
|
@@ -1538,6 +1651,11 @@ var Statemint$2 = {
|
|
|
1538
1651
|
symbol: "BRZ",
|
|
1539
1652
|
decimals: 6
|
|
1540
1653
|
},
|
|
1654
|
+
{
|
|
1655
|
+
assetId: "19120101",
|
|
1656
|
+
symbol: "NTDC",
|
|
1657
|
+
decimals: 0
|
|
1658
|
+
},
|
|
1541
1659
|
{
|
|
1542
1660
|
assetId: "1",
|
|
1543
1661
|
symbol: "no1",
|
|
@@ -1893,18 +2011,6 @@ var CrustShadow$2 = {
|
|
|
1893
2011
|
}
|
|
1894
2012
|
]
|
|
1895
2013
|
};
|
|
1896
|
-
var Dorafactory$2 = {
|
|
1897
|
-
paraId: 2115,
|
|
1898
|
-
relayChainAssetSymbol: "KSM",
|
|
1899
|
-
nativeAssets: [
|
|
1900
|
-
{
|
|
1901
|
-
symbol: "DORA",
|
|
1902
|
-
decimals: 12
|
|
1903
|
-
}
|
|
1904
|
-
],
|
|
1905
|
-
otherAssets: [
|
|
1906
|
-
]
|
|
1907
|
-
};
|
|
1908
2014
|
var Encointer$2 = {
|
|
1909
2015
|
paraId: 1001,
|
|
1910
2016
|
relayChainAssetSymbol: "KSM",
|
|
@@ -1953,78 +2059,6 @@ var InvArchTinker$2 = {
|
|
|
1953
2059
|
otherAssets: [
|
|
1954
2060
|
]
|
|
1955
2061
|
};
|
|
1956
|
-
var Kico$2 = {
|
|
1957
|
-
paraId: 2107,
|
|
1958
|
-
relayChainAssetSymbol: "KSM",
|
|
1959
|
-
nativeAssets: [
|
|
1960
|
-
{
|
|
1961
|
-
symbol: "KICO",
|
|
1962
|
-
decimals: 14
|
|
1963
|
-
}
|
|
1964
|
-
],
|
|
1965
|
-
otherAssets: [
|
|
1966
|
-
{
|
|
1967
|
-
assetId: "100",
|
|
1968
|
-
symbol: "KSM",
|
|
1969
|
-
decimals: 12
|
|
1970
|
-
},
|
|
1971
|
-
{
|
|
1972
|
-
assetId: "0",
|
|
1973
|
-
symbol: "KICO",
|
|
1974
|
-
decimals: 14
|
|
1975
|
-
},
|
|
1976
|
-
{
|
|
1977
|
-
assetId: "10",
|
|
1978
|
-
symbol: "aUSD",
|
|
1979
|
-
decimals: 12
|
|
1980
|
-
},
|
|
1981
|
-
{
|
|
1982
|
-
assetId: "11",
|
|
1983
|
-
symbol: "SOL",
|
|
1984
|
-
decimals: 12
|
|
1985
|
-
},
|
|
1986
|
-
{
|
|
1987
|
-
assetId: "4000000004",
|
|
1988
|
-
symbol: "aUSD-KSM",
|
|
1989
|
-
decimals: 10
|
|
1990
|
-
},
|
|
1991
|
-
{
|
|
1992
|
-
assetId: "4000000000",
|
|
1993
|
-
symbol: "KICO-aUSD",
|
|
1994
|
-
decimals: 10
|
|
1995
|
-
},
|
|
1996
|
-
{
|
|
1997
|
-
assetId: "4000000001",
|
|
1998
|
-
symbol: "KSM-KICO",
|
|
1999
|
-
decimals: 10
|
|
2000
|
-
},
|
|
2001
|
-
{
|
|
2002
|
-
assetId: "13",
|
|
2003
|
-
symbol: "LIKE",
|
|
2004
|
-
decimals: 12
|
|
2005
|
-
},
|
|
2006
|
-
{
|
|
2007
|
-
assetId: "102",
|
|
2008
|
-
symbol: "KAR",
|
|
2009
|
-
decimals: 12
|
|
2010
|
-
},
|
|
2011
|
-
{
|
|
2012
|
-
assetId: "4000000002",
|
|
2013
|
-
symbol: "KAR-KICO",
|
|
2014
|
-
decimals: 10
|
|
2015
|
-
},
|
|
2016
|
-
{
|
|
2017
|
-
assetId: "4000000003",
|
|
2018
|
-
symbol: "KAR-aUSD",
|
|
2019
|
-
decimals: 10
|
|
2020
|
-
},
|
|
2021
|
-
{
|
|
2022
|
-
assetId: "12",
|
|
2023
|
-
symbol: "LT",
|
|
2024
|
-
decimals: 12
|
|
2025
|
-
}
|
|
2026
|
-
]
|
|
2027
|
-
};
|
|
2028
2062
|
var Karura$2 = {
|
|
2029
2063
|
paraId: 2000,
|
|
2030
2064
|
relayChainAssetSymbol: "KSM",
|
|
@@ -2492,6 +2526,11 @@ var Mangata$2 = {
|
|
|
2492
2526
|
symbol: "vKSM",
|
|
2493
2527
|
decimals: 12
|
|
2494
2528
|
},
|
|
2529
|
+
{
|
|
2530
|
+
assetId: "47",
|
|
2531
|
+
symbol: "TKN0x0000001E-TKN0x00000000",
|
|
2532
|
+
decimals: 18
|
|
2533
|
+
},
|
|
2495
2534
|
{
|
|
2496
2535
|
assetId: "24",
|
|
2497
2536
|
symbol: "TKN0x0000000F-TKN0x00000000",
|
|
@@ -2591,6 +2630,11 @@ var Mangata$2 = {
|
|
|
2591
2630
|
assetId: "36",
|
|
2592
2631
|
symbol: "TKN0x00000000-TKN0x0000001E",
|
|
2593
2632
|
decimals: 18
|
|
2633
|
+
},
|
|
2634
|
+
{
|
|
2635
|
+
assetId: "46",
|
|
2636
|
+
symbol: "TKN0x00000000-TKN0x0000002D",
|
|
2637
|
+
decimals: 18
|
|
2594
2638
|
}
|
|
2595
2639
|
]
|
|
2596
2640
|
};
|
|
@@ -3140,18 +3184,6 @@ var Picasso$2 = {
|
|
|
3140
3184
|
}
|
|
3141
3185
|
]
|
|
3142
3186
|
};
|
|
3143
|
-
var Pichiu$2 = {
|
|
3144
|
-
paraId: 2102,
|
|
3145
|
-
relayChainAssetSymbol: "KSM",
|
|
3146
|
-
nativeAssets: [
|
|
3147
|
-
{
|
|
3148
|
-
symbol: "PCHU",
|
|
3149
|
-
decimals: 18
|
|
3150
|
-
}
|
|
3151
|
-
],
|
|
3152
|
-
otherAssets: [
|
|
3153
|
-
]
|
|
3154
|
-
};
|
|
3155
3187
|
var Pioneer$2 = {
|
|
3156
3188
|
paraId: 2096,
|
|
3157
3189
|
relayChainAssetSymbol: "KSM",
|
|
@@ -3350,7 +3382,7 @@ var Shiden$2 = {
|
|
|
3350
3382
|
}
|
|
3351
3383
|
]
|
|
3352
3384
|
};
|
|
3353
|
-
var
|
|
3385
|
+
var AssetHubKusama$2 = {
|
|
3354
3386
|
paraId: 1000,
|
|
3355
3387
|
relayChainAssetSymbol: "KSM",
|
|
3356
3388
|
nativeAssets: [
|
|
@@ -3550,6 +3582,11 @@ var Statemine$2 = {
|
|
|
3550
3582
|
symbol: "ARIS",
|
|
3551
3583
|
decimals: 8
|
|
3552
3584
|
},
|
|
3585
|
+
{
|
|
3586
|
+
assetId: "11",
|
|
3587
|
+
symbol: "USDT",
|
|
3588
|
+
decimals: 4
|
|
3589
|
+
},
|
|
3553
3590
|
{
|
|
3554
3591
|
assetId: "224",
|
|
3555
3592
|
symbol: "SIK",
|
|
@@ -3655,6 +3692,11 @@ var Statemine$2 = {
|
|
|
3655
3692
|
symbol: "ki",
|
|
3656
3693
|
decimals: 18
|
|
3657
3694
|
},
|
|
3695
|
+
{
|
|
3696
|
+
assetId: "5797867",
|
|
3697
|
+
symbol: "TAKE",
|
|
3698
|
+
decimals: 0
|
|
3699
|
+
},
|
|
3658
3700
|
{
|
|
3659
3701
|
assetId: "33",
|
|
3660
3702
|
symbol: "BUSSY",
|
|
@@ -3837,7 +3879,7 @@ var Statemine$2 = {
|
|
|
3837
3879
|
},
|
|
3838
3880
|
{
|
|
3839
3881
|
assetId: "1984",
|
|
3840
|
-
symbol: "
|
|
3882
|
+
symbol: "USDt",
|
|
3841
3883
|
decimals: 6
|
|
3842
3884
|
},
|
|
3843
3885
|
{
|
|
@@ -4045,6 +4087,11 @@ var Statemine$2 = {
|
|
|
4045
4087
|
symbol: "KOJO",
|
|
4046
4088
|
decimals: 3
|
|
4047
4089
|
},
|
|
4090
|
+
{
|
|
4091
|
+
assetId: "19840",
|
|
4092
|
+
symbol: "USDt",
|
|
4093
|
+
decimals: 3
|
|
4094
|
+
},
|
|
4048
4095
|
{
|
|
4049
4096
|
assetId: "37",
|
|
4050
4097
|
symbol: "MNCH",
|
|
@@ -4194,7 +4241,7 @@ var Equilibrium$2 = {
|
|
|
4194
4241
|
relayChainAssetSymbol: "DOT",
|
|
4195
4242
|
nativeAssets: [
|
|
4196
4243
|
{
|
|
4197
|
-
symbol: "
|
|
4244
|
+
symbol: "TOKEN",
|
|
4198
4245
|
decimals: 9
|
|
4199
4246
|
}
|
|
4200
4247
|
],
|
|
@@ -4230,46 +4277,304 @@ var Crust$2 = {
|
|
|
4230
4277
|
}
|
|
4231
4278
|
]
|
|
4232
4279
|
};
|
|
4233
|
-
var
|
|
4234
|
-
paraId:
|
|
4280
|
+
var Manta$2 = {
|
|
4281
|
+
paraId: 2104,
|
|
4235
4282
|
relayChainAssetSymbol: "DOT",
|
|
4236
4283
|
nativeAssets: [
|
|
4237
4284
|
{
|
|
4238
|
-
symbol: "
|
|
4285
|
+
symbol: "MANTA",
|
|
4239
4286
|
decimals: 18
|
|
4240
4287
|
}
|
|
4241
4288
|
],
|
|
4242
4289
|
otherAssets: [
|
|
4243
|
-
]
|
|
4244
|
-
};
|
|
4245
|
-
var Ipci$2 = {
|
|
4246
|
-
paraId: 2222,
|
|
4247
|
-
relayChainAssetSymbol: "KSM",
|
|
4248
|
-
nativeAssets: [
|
|
4249
4290
|
{
|
|
4250
|
-
|
|
4291
|
+
assetId: "21",
|
|
4292
|
+
symbol: "BUSD.aca.eth",
|
|
4293
|
+
decimals: 18
|
|
4294
|
+
},
|
|
4295
|
+
{
|
|
4296
|
+
assetId: "26",
|
|
4297
|
+
symbol: "WBTC.aca.eth",
|
|
4298
|
+
decimals: 8
|
|
4299
|
+
},
|
|
4300
|
+
{
|
|
4301
|
+
assetId: "35",
|
|
4302
|
+
symbol: "WBNB.MRL.BSC",
|
|
4303
|
+
decimals: 18
|
|
4304
|
+
},
|
|
4305
|
+
{
|
|
4306
|
+
assetId: "16",
|
|
4307
|
+
symbol: "SHIB",
|
|
4308
|
+
decimals: 18
|
|
4309
|
+
},
|
|
4310
|
+
{
|
|
4311
|
+
assetId: "29",
|
|
4312
|
+
symbol: "WBNB",
|
|
4313
|
+
decimals: 18
|
|
4314
|
+
},
|
|
4315
|
+
{
|
|
4316
|
+
assetId: "23",
|
|
4317
|
+
symbol: "DAI.aca.eth",
|
|
4318
|
+
decimals: 18
|
|
4319
|
+
},
|
|
4320
|
+
{
|
|
4321
|
+
assetId: "9",
|
|
4322
|
+
symbol: "USDT",
|
|
4323
|
+
decimals: 6
|
|
4324
|
+
},
|
|
4325
|
+
{
|
|
4326
|
+
assetId: "31",
|
|
4327
|
+
symbol: "DAI.MRL.ETH",
|
|
4328
|
+
decimals: 18
|
|
4329
|
+
},
|
|
4330
|
+
{
|
|
4331
|
+
assetId: "18",
|
|
4332
|
+
symbol: "LINK",
|
|
4333
|
+
decimals: 18
|
|
4334
|
+
},
|
|
4335
|
+
{
|
|
4336
|
+
assetId: "20",
|
|
4337
|
+
symbol: "ARB.aca.eth",
|
|
4338
|
+
decimals: 18
|
|
4339
|
+
},
|
|
4340
|
+
{
|
|
4341
|
+
assetId: "8",
|
|
4342
|
+
symbol: "DOT",
|
|
4343
|
+
decimals: 10
|
|
4344
|
+
},
|
|
4345
|
+
{
|
|
4346
|
+
assetId: "30",
|
|
4347
|
+
symbol: "BNC",
|
|
4251
4348
|
decimals: 12
|
|
4252
|
-
}
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4349
|
+
},
|
|
4350
|
+
{
|
|
4351
|
+
assetId: "33",
|
|
4352
|
+
symbol: "USDC.MRL.ETH",
|
|
4353
|
+
decimals: 6
|
|
4354
|
+
},
|
|
4355
|
+
{
|
|
4356
|
+
assetId: "10",
|
|
4357
|
+
symbol: "GLMR",
|
|
4358
|
+
decimals: 18
|
|
4359
|
+
},
|
|
4360
|
+
{
|
|
4361
|
+
assetId: "12",
|
|
4362
|
+
symbol: "LDOT",
|
|
4363
|
+
decimals: 10
|
|
4364
|
+
},
|
|
4365
|
+
{
|
|
4366
|
+
assetId: "17",
|
|
4367
|
+
symbol: "UNI",
|
|
4368
|
+
decimals: 18
|
|
4369
|
+
},
|
|
4370
|
+
{
|
|
4371
|
+
assetId: "25",
|
|
4372
|
+
symbol: "MATIC.aca.poly",
|
|
4373
|
+
decimals: 18
|
|
4374
|
+
},
|
|
4375
|
+
{
|
|
4376
|
+
assetId: "13",
|
|
4377
|
+
symbol: "ARB.aca.arb",
|
|
4378
|
+
decimals: 18
|
|
4379
|
+
},
|
|
4380
|
+
{
|
|
4381
|
+
assetId: "22",
|
|
4382
|
+
symbol: "USDT.aca.eth",
|
|
4383
|
+
decimals: 6
|
|
4384
|
+
},
|
|
4385
|
+
{
|
|
4386
|
+
assetId: "28",
|
|
4387
|
+
symbol: "MATIC.aca.eth",
|
|
4388
|
+
decimals: 18
|
|
4389
|
+
},
|
|
4390
|
+
{
|
|
4391
|
+
assetId: "34",
|
|
4392
|
+
symbol: "TBTC.MRL.ETH",
|
|
4393
|
+
decimals: 18
|
|
4394
|
+
},
|
|
4395
|
+
{
|
|
4396
|
+
assetId: "24",
|
|
4397
|
+
symbol: "USDC.aca.eth",
|
|
4398
|
+
decimals: 6
|
|
4399
|
+
},
|
|
4400
|
+
{
|
|
4401
|
+
assetId: "19",
|
|
4402
|
+
symbol: "APE",
|
|
4403
|
+
decimals: 18
|
|
4404
|
+
},
|
|
4405
|
+
{
|
|
4406
|
+
assetId: "32",
|
|
4407
|
+
symbol: "WETH.MRL.ETH",
|
|
4408
|
+
decimals: 18
|
|
4409
|
+
},
|
|
4410
|
+
{
|
|
4411
|
+
assetId: "27",
|
|
4412
|
+
symbol: "WETH.aca.eth",
|
|
4413
|
+
decimals: 18
|
|
4414
|
+
},
|
|
4415
|
+
{
|
|
4416
|
+
assetId: "15",
|
|
4417
|
+
symbol: "LDO",
|
|
4418
|
+
decimals: 18
|
|
4419
|
+
},
|
|
4420
|
+
{
|
|
4421
|
+
assetId: "11",
|
|
4422
|
+
symbol: "ACA",
|
|
4423
|
+
decimals: 12
|
|
4424
|
+
},
|
|
4425
|
+
{
|
|
4426
|
+
assetId: "14",
|
|
4427
|
+
symbol: "BUSD.aca.bsc",
|
|
4428
|
+
decimals: 18
|
|
4429
|
+
}
|
|
4430
|
+
]
|
|
4431
|
+
};
|
|
4432
|
+
var Genshiro$2 = {
|
|
4433
|
+
paraId: 2024,
|
|
4434
|
+
relayChainAssetSymbol: "KSM",
|
|
4435
|
+
nativeAssets: [
|
|
4436
|
+
{
|
|
4437
|
+
symbol: "Unknown",
|
|
4438
|
+
decimals: 9
|
|
4439
|
+
},
|
|
4440
|
+
{
|
|
4441
|
+
symbol: "EQD",
|
|
4442
|
+
decimals: 9
|
|
4443
|
+
},
|
|
4444
|
+
{
|
|
4445
|
+
symbol: "GENS",
|
|
4446
|
+
decimals: 9
|
|
4447
|
+
},
|
|
4448
|
+
{
|
|
4449
|
+
symbol: "ETH",
|
|
4450
|
+
decimals: 9
|
|
4451
|
+
},
|
|
4452
|
+
{
|
|
4453
|
+
symbol: "BTC",
|
|
4454
|
+
decimals: 9
|
|
4455
|
+
},
|
|
4456
|
+
{
|
|
4457
|
+
symbol: "KSM",
|
|
4458
|
+
decimals: 9
|
|
4459
|
+
},
|
|
4460
|
+
{
|
|
4461
|
+
symbol: "CRV",
|
|
4462
|
+
decimals: 9
|
|
4463
|
+
}
|
|
4464
|
+
],
|
|
4465
|
+
otherAssets: [
|
|
4466
|
+
]
|
|
4467
|
+
};
|
|
4468
|
+
var Nodle$2 = {
|
|
4469
|
+
paraId: 2026,
|
|
4470
|
+
relayChainAssetSymbol: "DOT",
|
|
4471
|
+
nativeAssets: [
|
|
4472
|
+
{
|
|
4473
|
+
symbol: "NODL",
|
|
4474
|
+
decimals: 11
|
|
4475
|
+
}
|
|
4476
|
+
],
|
|
4477
|
+
otherAssets: [
|
|
4478
|
+
]
|
|
4479
|
+
};
|
|
4480
|
+
var OriginTrail$2 = {
|
|
4481
|
+
paraId: 2043,
|
|
4482
|
+
relayChainAssetSymbol: "DOT",
|
|
4483
|
+
nativeAssets: [
|
|
4484
|
+
{
|
|
4485
|
+
symbol: "OTP",
|
|
4486
|
+
decimals: 12
|
|
4487
|
+
}
|
|
4488
|
+
],
|
|
4489
|
+
otherAssets: [
|
|
4490
|
+
{
|
|
4491
|
+
assetId: "1",
|
|
4492
|
+
symbol: "TRAC",
|
|
4493
|
+
decimals: 18
|
|
4494
|
+
}
|
|
4495
|
+
]
|
|
4496
|
+
};
|
|
4497
|
+
var Pendulum$2 = {
|
|
4498
|
+
paraId: 2094,
|
|
4499
|
+
relayChainAssetSymbol: "DOT",
|
|
4500
|
+
nativeAssets: [
|
|
4501
|
+
{
|
|
4502
|
+
symbol: "PEN",
|
|
4503
|
+
decimals: 12
|
|
4504
|
+
}
|
|
4505
|
+
],
|
|
4506
|
+
otherAssets: [
|
|
4507
|
+
]
|
|
4508
|
+
};
|
|
4509
|
+
var Polkadex$2 = {
|
|
4510
|
+
paraId: 2040,
|
|
4511
|
+
relayChainAssetSymbol: "DOT",
|
|
4512
|
+
nativeAssets: [
|
|
4513
|
+
{
|
|
4514
|
+
symbol: "PDEX",
|
|
4515
|
+
decimals: 12
|
|
4516
|
+
}
|
|
4517
|
+
],
|
|
4518
|
+
otherAssets: [
|
|
4519
|
+
{
|
|
4520
|
+
assetId: "1"
|
|
4521
|
+
},
|
|
4522
|
+
{
|
|
4523
|
+
assetId: "0"
|
|
4524
|
+
},
|
|
4525
|
+
{
|
|
4526
|
+
assetId: "456"
|
|
4527
|
+
},
|
|
4528
|
+
{
|
|
4529
|
+
assetId: "222121451965151777636299756141619631150"
|
|
4530
|
+
},
|
|
4531
|
+
{
|
|
4532
|
+
assetId: "95930534000017180603917534864279132680"
|
|
4533
|
+
},
|
|
4534
|
+
{
|
|
4535
|
+
assetId: "188197390862117588552302061289480388608"
|
|
4536
|
+
},
|
|
4537
|
+
{
|
|
4538
|
+
assetId: "3496813586714279103986568049643838918"
|
|
4539
|
+
},
|
|
4540
|
+
{
|
|
4541
|
+
assetId: "123"
|
|
4542
|
+
}
|
|
4543
|
+
]
|
|
4544
|
+
};
|
|
4545
|
+
var Zeitgeist$2 = {
|
|
4546
|
+
paraId: 2092,
|
|
4547
|
+
relayChainAssetSymbol: "DOT",
|
|
4548
|
+
nativeAssets: [
|
|
4549
|
+
{
|
|
4550
|
+
symbol: "ZTG",
|
|
4551
|
+
decimals: 10
|
|
4552
|
+
}
|
|
4553
|
+
],
|
|
4554
|
+
otherAssets: [
|
|
4555
|
+
{
|
|
4556
|
+
assetId: "0",
|
|
4557
|
+
symbol: "DOT",
|
|
4558
|
+
decimals: 10
|
|
4559
|
+
}
|
|
4560
|
+
]
|
|
4561
|
+
};
|
|
4562
|
+
var assets = {
|
|
4563
|
+
Acala: Acala$2,
|
|
4564
|
+
Astar: Astar$2,
|
|
4565
|
+
BifrostPolkadot: BifrostPolkadot$2,
|
|
4566
|
+
Bitgreen: Bitgreen$2,
|
|
4567
|
+
Centrifuge: Centrifuge$2,
|
|
4568
|
+
Clover: Clover$2,
|
|
4569
|
+
ComposableFinance: ComposableFinance$2,
|
|
4570
|
+
Darwinia: Darwinia$2,
|
|
4266
4571
|
HydraDX: HydraDX$2,
|
|
4267
4572
|
Interlay: Interlay$2,
|
|
4268
4573
|
Kylin: Kylin$2,
|
|
4269
4574
|
Litentry: Litentry$2,
|
|
4270
4575
|
Moonbeam: Moonbeam$2,
|
|
4271
4576
|
Parallel: Parallel$2,
|
|
4272
|
-
|
|
4577
|
+
AssetHubPolkadot: AssetHubPolkadot$2,
|
|
4273
4578
|
Altair: Altair$2,
|
|
4274
4579
|
Amplitude: Amplitude$2,
|
|
4275
4580
|
Bajun: Bajun$2,
|
|
@@ -4278,12 +4583,10 @@ var assets = {
|
|
|
4278
4583
|
Calamari: Calamari$2,
|
|
4279
4584
|
Crab: Crab$2,
|
|
4280
4585
|
CrustShadow: CrustShadow$2,
|
|
4281
|
-
Dorafactory: Dorafactory$2,
|
|
4282
4586
|
Encointer: Encointer$2,
|
|
4283
4587
|
Imbue: Imbue$2,
|
|
4284
4588
|
Integritee: Integritee$2,
|
|
4285
4589
|
InvArchTinker: InvArchTinker$2,
|
|
4286
|
-
Kico: Kico$2,
|
|
4287
4590
|
Karura: Karura$2,
|
|
4288
4591
|
Kintsugi: Kintsugi$2,
|
|
4289
4592
|
Litmus: Litmus$2,
|
|
@@ -4291,18 +4594,22 @@ var assets = {
|
|
|
4291
4594
|
Moonriver: Moonriver$2,
|
|
4292
4595
|
ParallelHeiko: ParallelHeiko$2,
|
|
4293
4596
|
Picasso: Picasso$2,
|
|
4294
|
-
Pichiu: Pichiu$2,
|
|
4295
4597
|
Pioneer: Pioneer$2,
|
|
4296
4598
|
Quartz: Quartz$2,
|
|
4297
4599
|
Robonomics: Robonomics$2,
|
|
4298
4600
|
Shiden: Shiden$2,
|
|
4299
|
-
|
|
4601
|
+
AssetHubKusama: AssetHubKusama$2,
|
|
4300
4602
|
Turing: Turing$2,
|
|
4301
4603
|
Equilibrium: Equilibrium$2,
|
|
4302
4604
|
Unique: Unique$2,
|
|
4303
4605
|
Crust: Crust$2,
|
|
4304
|
-
|
|
4305
|
-
|
|
4606
|
+
Manta: Manta$2,
|
|
4607
|
+
Genshiro: Genshiro$2,
|
|
4608
|
+
Nodle: Nodle$2,
|
|
4609
|
+
OriginTrail: OriginTrail$2,
|
|
4610
|
+
Pendulum: Pendulum$2,
|
|
4611
|
+
Polkadex: Polkadex$2,
|
|
4612
|
+
Zeitgeist: Zeitgeist$2
|
|
4306
4613
|
};
|
|
4307
4614
|
|
|
4308
4615
|
var assetsMapJson = /*#__PURE__*/Object.freeze({
|
|
@@ -4310,6 +4617,8 @@ var assetsMapJson = /*#__PURE__*/Object.freeze({
|
|
|
4310
4617
|
Acala: Acala$2,
|
|
4311
4618
|
Altair: Altair$2,
|
|
4312
4619
|
Amplitude: Amplitude$2,
|
|
4620
|
+
AssetHubKusama: AssetHubKusama$2,
|
|
4621
|
+
AssetHubPolkadot: AssetHubPolkadot$2,
|
|
4313
4622
|
Astar: Astar$2,
|
|
4314
4623
|
Bajun: Bajun$2,
|
|
4315
4624
|
Basilisk: Basilisk$2,
|
|
@@ -4324,37 +4633,37 @@ var assetsMapJson = /*#__PURE__*/Object.freeze({
|
|
|
4324
4633
|
Crust: Crust$2,
|
|
4325
4634
|
CrustShadow: CrustShadow$2,
|
|
4326
4635
|
Darwinia: Darwinia$2,
|
|
4327
|
-
Dorafactory: Dorafactory$2,
|
|
4328
|
-
Efinity: Efinity$2,
|
|
4329
4636
|
Encointer: Encointer$2,
|
|
4330
4637
|
Equilibrium: Equilibrium$2,
|
|
4638
|
+
Genshiro: Genshiro$2,
|
|
4331
4639
|
HydraDX: HydraDX$2,
|
|
4332
4640
|
Imbue: Imbue$2,
|
|
4333
4641
|
Integritee: Integritee$2,
|
|
4334
4642
|
Interlay: Interlay$2,
|
|
4335
4643
|
InvArchTinker: InvArchTinker$2,
|
|
4336
|
-
Ipci: Ipci$2,
|
|
4337
4644
|
Karura: Karura$2,
|
|
4338
|
-
Kico: Kico$2,
|
|
4339
4645
|
Kintsugi: Kintsugi$2,
|
|
4340
4646
|
Kylin: Kylin$2,
|
|
4341
4647
|
Litentry: Litentry$2,
|
|
4342
4648
|
Litmus: Litmus$2,
|
|
4343
4649
|
Mangata: Mangata$2,
|
|
4650
|
+
Manta: Manta$2,
|
|
4344
4651
|
Moonbeam: Moonbeam$2,
|
|
4345
4652
|
Moonriver: Moonriver$2,
|
|
4653
|
+
Nodle: Nodle$2,
|
|
4654
|
+
OriginTrail: OriginTrail$2,
|
|
4346
4655
|
Parallel: Parallel$2,
|
|
4347
4656
|
ParallelHeiko: ParallelHeiko$2,
|
|
4657
|
+
Pendulum: Pendulum$2,
|
|
4348
4658
|
Picasso: Picasso$2,
|
|
4349
|
-
Pichiu: Pichiu$2,
|
|
4350
4659
|
Pioneer: Pioneer$2,
|
|
4660
|
+
Polkadex: Polkadex$2,
|
|
4351
4661
|
Quartz: Quartz$2,
|
|
4352
4662
|
Robonomics: Robonomics$2,
|
|
4353
4663
|
Shiden: Shiden$2,
|
|
4354
|
-
Statemine: Statemine$2,
|
|
4355
|
-
Statemint: Statemint$2,
|
|
4356
4664
|
Turing: Turing$2,
|
|
4357
4665
|
Unique: Unique$2,
|
|
4666
|
+
Zeitgeist: Zeitgeist$2,
|
|
4358
4667
|
default: assets
|
|
4359
4668
|
});
|
|
4360
4669
|
|
|
@@ -4386,7 +4695,9 @@ function getAllAssetsSymbols(node) {
|
|
|
4386
4695
|
return [relayChainAssetSymbol].concat(_toConsumableArray(nativeAssets.map(function (_ref) {
|
|
4387
4696
|
var symbol = _ref.symbol;
|
|
4388
4697
|
return symbol;
|
|
4389
|
-
})), _toConsumableArray(otherAssets.
|
|
4698
|
+
})), _toConsumableArray(otherAssets.filter(function (asset) {
|
|
4699
|
+
return !!asset.symbol;
|
|
4700
|
+
}).map(function (_ref2) {
|
|
4390
4701
|
var symbol = _ref2.symbol;
|
|
4391
4702
|
return symbol;
|
|
4392
4703
|
})));
|
|
@@ -4481,17 +4792,19 @@ var ParachainNode = /*#__PURE__*/function () {
|
|
|
4481
4792
|
currency: currencySymbol,
|
|
4482
4793
|
currencyID: currencyId,
|
|
4483
4794
|
amount: amount,
|
|
4484
|
-
addressSelection:
|
|
4795
|
+
addressSelection: generateAddressPayload(api, scenario, 'XTokens', to, this.version, paraId),
|
|
4485
4796
|
fees: getFees(scenario),
|
|
4797
|
+
scenario: scenario,
|
|
4486
4798
|
serializedApiCallEnabled: serializedApiCallEnabled
|
|
4487
4799
|
});
|
|
4488
4800
|
} else if (supportsPolkadotXCM(this)) {
|
|
4489
4801
|
return this.transferPolkadotXCM({
|
|
4490
4802
|
api: api,
|
|
4491
4803
|
header: createHeaderPolkadotXCM(scenario, this.version, paraId),
|
|
4492
|
-
addressSelection:
|
|
4804
|
+
addressSelection: generateAddressPayload(api, scenario, 'PolkadotXcm', to, this.version, paraId),
|
|
4493
4805
|
currencySelection: createCurrencySpecification(amount, scenario, this.version, this._node, currencyId),
|
|
4494
4806
|
scenario: scenario,
|
|
4807
|
+
currencySymbol: currencySymbol,
|
|
4495
4808
|
serializedApiCallEnabled: serializedApiCallEnabled
|
|
4496
4809
|
});
|
|
4497
4810
|
} else {
|
|
@@ -4615,25 +4928,6 @@ var Crust$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
4615
4928
|
return Crust;
|
|
4616
4929
|
}(ParachainNode);
|
|
4617
4930
|
|
|
4618
|
-
var Efinity$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
4619
|
-
_inherits(Efinity, _ParachainNode);
|
|
4620
|
-
var _super = _createSuper(Efinity);
|
|
4621
|
-
function Efinity() {
|
|
4622
|
-
_classCallCheck(this, Efinity);
|
|
4623
|
-
return _super.call(this, 'Efinity', 'efinity', 'polkadot', Version.V3);
|
|
4624
|
-
}
|
|
4625
|
-
_createClass(Efinity, [{
|
|
4626
|
-
key: "transferXTokens",
|
|
4627
|
-
value: function transferXTokens(input) {
|
|
4628
|
-
var currencySelection = {
|
|
4629
|
-
currencyId: [0, input.currencyID]
|
|
4630
|
-
};
|
|
4631
|
-
return XTokensTransferImpl.transferXTokens(input, currencySelection);
|
|
4632
|
-
}
|
|
4633
|
-
}]);
|
|
4634
|
-
return Efinity;
|
|
4635
|
-
}(ParachainNode);
|
|
4636
|
-
|
|
4637
4931
|
var BifrostPolkadot$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
4638
4932
|
_inherits(BifrostPolkadot, _ParachainNode);
|
|
4639
4933
|
var _super = _createSuper(BifrostPolkadot);
|
|
@@ -4669,7 +4963,7 @@ var Centrifuge$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
4669
4963
|
var _super = _createSuper(Centrifuge);
|
|
4670
4964
|
function Centrifuge() {
|
|
4671
4965
|
_classCallCheck(this, Centrifuge);
|
|
4672
|
-
return _super.call(this, 'Centrifuge', 'centrifuge', 'polkadot', Version.
|
|
4966
|
+
return _super.call(this, 'Centrifuge', 'centrifuge', 'polkadot', Version.V3);
|
|
4673
4967
|
}
|
|
4674
4968
|
_createClass(Centrifuge, [{
|
|
4675
4969
|
key: "transferXTokens",
|
|
@@ -4721,7 +5015,7 @@ var ComposableFinance$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
4721
5015
|
var _super = _createSuper(ComposableFinance);
|
|
4722
5016
|
function ComposableFinance() {
|
|
4723
5017
|
_classCallCheck(this, ComposableFinance);
|
|
4724
|
-
return _super.call(this, 'ComposableFinance', '
|
|
5018
|
+
return _super.call(this, 'ComposableFinance', 'composable', 'polkadot', Version.V3);
|
|
4725
5019
|
}
|
|
4726
5020
|
return _createClass(ComposableFinance);
|
|
4727
5021
|
}(ParachainNode);
|
|
@@ -4731,13 +5025,12 @@ var HydraDX$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
4731
5025
|
var _super = _createSuper(HydraDX);
|
|
4732
5026
|
function HydraDX() {
|
|
4733
5027
|
_classCallCheck(this, HydraDX);
|
|
4734
|
-
return _super.call(this, 'HydraDX', '
|
|
5028
|
+
return _super.call(this, 'HydraDX', 'hydradx', 'polkadot', Version.V3);
|
|
4735
5029
|
}
|
|
4736
5030
|
_createClass(HydraDX, [{
|
|
4737
5031
|
key: "transferXTokens",
|
|
4738
5032
|
value: function transferXTokens(input) {
|
|
4739
5033
|
var currencyID = input.currencyID;
|
|
4740
|
-
input.fees;
|
|
4741
5034
|
return XTokensTransferImpl.transferXTokens(input, currencyID);
|
|
4742
5035
|
}
|
|
4743
5036
|
}]);
|
|
@@ -4790,7 +5083,7 @@ var Litentry$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
4790
5083
|
var _super = _createSuper(Litentry);
|
|
4791
5084
|
function Litentry() {
|
|
4792
5085
|
_classCallCheck(this, Litentry);
|
|
4793
|
-
return _super.call(this, 'Litentry', 'litentry', 'polkadot', Version.
|
|
5086
|
+
return _super.call(this, 'Litentry', 'litentry', 'polkadot', Version.V3);
|
|
4794
5087
|
}
|
|
4795
5088
|
_createClass(Litentry, [{
|
|
4796
5089
|
key: "transferXTokens",
|
|
@@ -4871,13 +5164,13 @@ var Amplitude$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
4871
5164
|
var _super = _createSuper(Amplitude);
|
|
4872
5165
|
function Amplitude() {
|
|
4873
5166
|
_classCallCheck(this, Amplitude);
|
|
4874
|
-
return _super.call(this, 'Amplitude', 'amplitude', 'kusama', Version.
|
|
5167
|
+
return _super.call(this, 'Amplitude', 'amplitude', 'kusama', Version.V3);
|
|
4875
5168
|
}
|
|
4876
5169
|
_createClass(Amplitude, [{
|
|
4877
5170
|
key: "transferXTokens",
|
|
4878
5171
|
value: function transferXTokens(input) {
|
|
4879
5172
|
return XTokensTransferImpl.transferXTokens(input, {
|
|
4880
|
-
XCM: input.
|
|
5173
|
+
XCM: input.currencyID
|
|
4881
5174
|
});
|
|
4882
5175
|
}
|
|
4883
5176
|
}]);
|
|
@@ -4958,31 +5251,12 @@ var Turing$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
4958
5251
|
key: "transferXTokens",
|
|
4959
5252
|
value: function transferXTokens(input) {
|
|
4960
5253
|
var currencyID = input.currencyID;
|
|
4961
|
-
input.fees;
|
|
4962
5254
|
return XTokensTransferImpl.transferXTokens(input, currencyID);
|
|
4963
5255
|
}
|
|
4964
5256
|
}]);
|
|
4965
5257
|
return Turing;
|
|
4966
5258
|
}(ParachainNode);
|
|
4967
5259
|
|
|
4968
|
-
var Pichiu$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
4969
|
-
_inherits(Pichiu, _ParachainNode);
|
|
4970
|
-
var _super = _createSuper(Pichiu);
|
|
4971
|
-
function Pichiu() {
|
|
4972
|
-
_classCallCheck(this, Pichiu);
|
|
4973
|
-
return _super.call(this, 'Pichiu', 'pichiu', 'kusama', Version.V1);
|
|
4974
|
-
}
|
|
4975
|
-
_createClass(Pichiu, [{
|
|
4976
|
-
key: "transferXTokens",
|
|
4977
|
-
value: function transferXTokens(input) {
|
|
4978
|
-
var currency = input.currency,
|
|
4979
|
-
fees = input.fees;
|
|
4980
|
-
return XTokensTransferImpl.transferXTokens(input, currency, fees, 'OrmlXTokens');
|
|
4981
|
-
}
|
|
4982
|
-
}]);
|
|
4983
|
-
return Pichiu;
|
|
4984
|
-
}(ParachainNode);
|
|
4985
|
-
|
|
4986
5260
|
var Picasso$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
4987
5261
|
_inherits(Picasso, _ParachainNode);
|
|
4988
5262
|
var _super = _createSuper(Picasso);
|
|
@@ -5004,7 +5278,7 @@ var ParallelHeiko$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
5004
5278
|
var _super = _createSuper(ParallelHeiko);
|
|
5005
5279
|
function ParallelHeiko() {
|
|
5006
5280
|
_classCallCheck(this, ParallelHeiko);
|
|
5007
|
-
return _super.call(this, 'ParallelHeiko', 'heiko', 'kusama', Version.
|
|
5281
|
+
return _super.call(this, 'ParallelHeiko', 'heiko', 'kusama', Version.V3);
|
|
5008
5282
|
}
|
|
5009
5283
|
_createClass(ParallelHeiko, [{
|
|
5010
5284
|
key: "transferXTokens",
|
|
@@ -5092,24 +5366,6 @@ var Kintsugi$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
5092
5366
|
return Kintsugi;
|
|
5093
5367
|
}(ParachainNode);
|
|
5094
5368
|
|
|
5095
|
-
var Kico$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
5096
|
-
_inherits(Kico, _ParachainNode);
|
|
5097
|
-
var _super = _createSuper(Kico);
|
|
5098
|
-
function Kico() {
|
|
5099
|
-
_classCallCheck(this, Kico);
|
|
5100
|
-
return _super.call(this, 'Kico', 'kico', 'kusama', Version.V1);
|
|
5101
|
-
}
|
|
5102
|
-
_createClass(Kico, [{
|
|
5103
|
-
key: "transferXTokens",
|
|
5104
|
-
value: function transferXTokens(input) {
|
|
5105
|
-
var currencyID = input.currencyID,
|
|
5106
|
-
fees = input.fees;
|
|
5107
|
-
return XTokensTransferImpl.transferXTokens(input, currencyID, fees);
|
|
5108
|
-
}
|
|
5109
|
-
}]);
|
|
5110
|
-
return Kico;
|
|
5111
|
-
}(ParachainNode);
|
|
5112
|
-
|
|
5113
5369
|
var Calamari$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
5114
5370
|
_inherits(Calamari, _ParachainNode);
|
|
5115
5371
|
var _super = _createSuper(Calamari);
|
|
@@ -5162,24 +5418,6 @@ var CrustShadow$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
5162
5418
|
return CrustShadow;
|
|
5163
5419
|
}(ParachainNode);
|
|
5164
5420
|
|
|
5165
|
-
var Dorafactory$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
5166
|
-
_inherits(Dorafactory, _ParachainNode);
|
|
5167
|
-
var _super = _createSuper(Dorafactory);
|
|
5168
|
-
function Dorafactory() {
|
|
5169
|
-
_classCallCheck(this, Dorafactory);
|
|
5170
|
-
return _super.call(this, 'Dorafactory', 'dorafactory', 'kusama', Version.V1);
|
|
5171
|
-
}
|
|
5172
|
-
_createClass(Dorafactory, [{
|
|
5173
|
-
key: "transferXTokens",
|
|
5174
|
-
value: function transferXTokens(input) {
|
|
5175
|
-
var currency = input.currency,
|
|
5176
|
-
fees = input.fees;
|
|
5177
|
-
return XTokensTransferImpl.transferXTokens(input, currency, fees);
|
|
5178
|
-
}
|
|
5179
|
-
}]);
|
|
5180
|
-
return Dorafactory;
|
|
5181
|
-
}(ParachainNode);
|
|
5182
|
-
|
|
5183
5421
|
var Imbue$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
5184
5422
|
_inherits(Imbue, _ParachainNode);
|
|
5185
5423
|
var _super = _createSuper(Imbue);
|
|
@@ -5191,23 +5429,64 @@ var Imbue$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
5191
5429
|
key: "transferXTokens",
|
|
5192
5430
|
value: function transferXTokens(input) {
|
|
5193
5431
|
var currency = input.currency;
|
|
5194
|
-
input.fees;
|
|
5195
5432
|
return XTokensTransferImpl.transferXTokens(input, currency);
|
|
5196
5433
|
}
|
|
5197
5434
|
}]);
|
|
5198
5435
|
return Imbue;
|
|
5199
5436
|
}(ParachainNode);
|
|
5200
5437
|
|
|
5438
|
+
// Used to inform user, that Parachain they wish to use is not supported yet
|
|
5439
|
+
var NodeNotSupportedError = /*#__PURE__*/function (_Error) {
|
|
5440
|
+
_inherits(NodeNotSupportedError, _Error);
|
|
5441
|
+
var _super = _createSuper(NodeNotSupportedError);
|
|
5442
|
+
function NodeNotSupportedError(message) {
|
|
5443
|
+
var _this;
|
|
5444
|
+
_classCallCheck(this, NodeNotSupportedError);
|
|
5445
|
+
_this = _super.call(this, message);
|
|
5446
|
+
_this.name = 'NodeNotSupported';
|
|
5447
|
+
return _this;
|
|
5448
|
+
}
|
|
5449
|
+
return _createClass(NodeNotSupportedError);
|
|
5450
|
+
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
|
5451
|
+
|
|
5452
|
+
// Used to inform user, that Parachain they wish to use does not support scenario they wish to use yet
|
|
5453
|
+
var ScenarioNotSupportedError = /*#__PURE__*/function (_Error) {
|
|
5454
|
+
_inherits(ScenarioNotSupportedError, _Error);
|
|
5455
|
+
var _super = _createSuper(ScenarioNotSupportedError);
|
|
5456
|
+
function ScenarioNotSupportedError(node, scenario) {
|
|
5457
|
+
var _this;
|
|
5458
|
+
_classCallCheck(this, ScenarioNotSupportedError);
|
|
5459
|
+
_this = _super.call(this, "Scenario ".concat(scenario, " not supported for node ").concat(node));
|
|
5460
|
+
_this.name = 'ScenarioNotSupported';
|
|
5461
|
+
return _this;
|
|
5462
|
+
}
|
|
5463
|
+
return _createClass(ScenarioNotSupportedError);
|
|
5464
|
+
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
|
5465
|
+
|
|
5466
|
+
var IncompatibleNodesError = /*#__PURE__*/function (_Error) {
|
|
5467
|
+
_inherits(IncompatibleNodesError, _Error);
|
|
5468
|
+
var _super = _createSuper(IncompatibleNodesError);
|
|
5469
|
+
function IncompatibleNodesError() {
|
|
5470
|
+
var _this;
|
|
5471
|
+
_classCallCheck(this, IncompatibleNodesError);
|
|
5472
|
+
_this = _super.call(this, 'Transactions between nodes on different relaychains are not yet possible.');
|
|
5473
|
+
_this.name = 'IncompatibleNodes';
|
|
5474
|
+
return _this;
|
|
5475
|
+
}
|
|
5476
|
+
return _createClass(IncompatibleNodesError);
|
|
5477
|
+
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
|
5478
|
+
|
|
5201
5479
|
var Integritee$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
5202
5480
|
_inherits(Integritee, _ParachainNode);
|
|
5203
5481
|
var _super = _createSuper(Integritee);
|
|
5204
5482
|
function Integritee() {
|
|
5205
5483
|
_classCallCheck(this, Integritee);
|
|
5206
|
-
return _super.call(this, 'Integritee', 'integritee', 'kusama', Version.
|
|
5484
|
+
return _super.call(this, 'Integritee', 'integritee', 'kusama', Version.V3);
|
|
5207
5485
|
}
|
|
5208
5486
|
_createClass(Integritee, [{
|
|
5209
5487
|
key: "transferXTokens",
|
|
5210
5488
|
value: function transferXTokens(input) {
|
|
5489
|
+
if (input.currency === 'KSM') throw new InvalidCurrencyError("Node ".concat(this.node, " does not support currency KSM"));
|
|
5211
5490
|
return XTokensTransferImpl.transferXTokens(input, input.currency);
|
|
5212
5491
|
}
|
|
5213
5492
|
}]);
|
|
@@ -5219,14 +5498,13 @@ var InvArchTinker$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
5219
5498
|
var _super = _createSuper(InvArchTinker);
|
|
5220
5499
|
function InvArchTinker() {
|
|
5221
5500
|
_classCallCheck(this, InvArchTinker);
|
|
5222
|
-
return _super.call(this, 'InvArchTinker', 'tinker', 'kusama', Version.
|
|
5501
|
+
return _super.call(this, 'InvArchTinker', 'tinker', 'kusama', Version.V3);
|
|
5223
5502
|
}
|
|
5224
5503
|
_createClass(InvArchTinker, [{
|
|
5225
5504
|
key: "transferXTokens",
|
|
5226
5505
|
value: function transferXTokens(input) {
|
|
5227
|
-
var currencyID = input.currencyID
|
|
5228
|
-
|
|
5229
|
-
return XTokensTransferImpl.transferXTokens(input, currencyID, fees);
|
|
5506
|
+
var currencyID = input.currencyID;
|
|
5507
|
+
return XTokensTransferImpl.transferXTokens(input, currencyID);
|
|
5230
5508
|
}
|
|
5231
5509
|
}]);
|
|
5232
5510
|
return InvArchTinker;
|
|
@@ -5282,64 +5560,48 @@ var PolkadotXCMTransferImpl = /*#__PURE__*/function () {
|
|
|
5282
5560
|
return PolkadotXCMTransferImpl;
|
|
5283
5561
|
}();
|
|
5284
5562
|
|
|
5285
|
-
var
|
|
5286
|
-
_inherits(
|
|
5287
|
-
var _super = _createSuper(
|
|
5288
|
-
function
|
|
5289
|
-
_classCallCheck(this,
|
|
5290
|
-
return _super.call(this, '
|
|
5563
|
+
var AssetHubPolkadot$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
5564
|
+
_inherits(AssetHubPolkadot, _ParachainNode);
|
|
5565
|
+
var _super = _createSuper(AssetHubPolkadot);
|
|
5566
|
+
function AssetHubPolkadot() {
|
|
5567
|
+
_classCallCheck(this, AssetHubPolkadot);
|
|
5568
|
+
return _super.call(this, 'AssetHubPolkadot', 'PolkadotAssetHub', 'polkadot', Version.V3);
|
|
5291
5569
|
}
|
|
5292
|
-
_createClass(
|
|
5570
|
+
_createClass(AssetHubPolkadot, [{
|
|
5293
5571
|
key: "transferPolkadotXCM",
|
|
5294
5572
|
value: function transferPolkadotXCM(input) {
|
|
5295
5573
|
// TESTED https://polkadot.subscan.io/xcm_message/polkadot-e4cdf1c59ffbb3d504adbc893d6b7d72665e484d
|
|
5296
5574
|
// TESTED https://polkadot.subscan.io/xcm_message/polkadot-c01158ff1a5c5a596138ed9d0f0f2bccc1d9c51d
|
|
5297
|
-
|
|
5298
|
-
return PolkadotXCMTransferImpl.transferPolkadotXCM(input, method, 'Unlimited');
|
|
5575
|
+
return PolkadotXCMTransferImpl.transferPolkadotXCM(input, 'limitedTeleportAssets', 'Unlimited');
|
|
5299
5576
|
}
|
|
5300
5577
|
}]);
|
|
5301
|
-
return
|
|
5578
|
+
return AssetHubPolkadot;
|
|
5302
5579
|
}(ParachainNode);
|
|
5303
5580
|
|
|
5304
|
-
var
|
|
5305
|
-
_inherits(
|
|
5306
|
-
var _super = _createSuper(
|
|
5307
|
-
function
|
|
5308
|
-
_classCallCheck(this,
|
|
5309
|
-
return _super.call(this, '
|
|
5581
|
+
var AssetHubKusama$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
5582
|
+
_inherits(AssetHubKusama, _ParachainNode);
|
|
5583
|
+
var _super = _createSuper(AssetHubKusama);
|
|
5584
|
+
function AssetHubKusama() {
|
|
5585
|
+
_classCallCheck(this, AssetHubKusama);
|
|
5586
|
+
return _super.call(this, 'AssetHubKusama', 'KusamaAssetHub', 'kusama', Version.V3);
|
|
5310
5587
|
}
|
|
5311
|
-
_createClass(
|
|
5588
|
+
_createClass(AssetHubKusama, [{
|
|
5312
5589
|
key: "transferPolkadotXCM",
|
|
5313
5590
|
value: function transferPolkadotXCM(input) {
|
|
5314
5591
|
// TESTED https://kusama.subscan.io/xcm_message/kusama-ddc2a48f0d8e0337832d7aae26f6c3053e1f4ffd
|
|
5315
5592
|
// TESTED https://kusama.subscan.io/xcm_message/kusama-8e423130a4d8b61679af95dbea18a55124f99672
|
|
5316
|
-
|
|
5317
|
-
return PolkadotXCMTransferImpl.transferPolkadotXCM(input, method, 'Unlimited');
|
|
5593
|
+
return PolkadotXCMTransferImpl.transferPolkadotXCM(input, 'limitedTeleportAssets', 'Unlimited');
|
|
5318
5594
|
}
|
|
5319
5595
|
}]);
|
|
5320
|
-
return
|
|
5596
|
+
return AssetHubKusama;
|
|
5321
5597
|
}(ParachainNode);
|
|
5322
5598
|
|
|
5323
|
-
// Used to inform user, that Parachain they wish to use does not support scenario they wish to use yet
|
|
5324
|
-
var ScenarioNotSupportedError = /*#__PURE__*/function (_Error) {
|
|
5325
|
-
_inherits(ScenarioNotSupportedError, _Error);
|
|
5326
|
-
var _super = _createSuper(ScenarioNotSupportedError);
|
|
5327
|
-
function ScenarioNotSupportedError(node, scenario) {
|
|
5328
|
-
var _this;
|
|
5329
|
-
_classCallCheck(this, ScenarioNotSupportedError);
|
|
5330
|
-
_this = _super.call(this, "Scenario ".concat(scenario, " not supported for node ").concat(node));
|
|
5331
|
-
_this.name = 'ScenarioNotSupported';
|
|
5332
|
-
return _this;
|
|
5333
|
-
}
|
|
5334
|
-
return _createClass(ScenarioNotSupportedError);
|
|
5335
|
-
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
|
5336
|
-
|
|
5337
5599
|
var Encointer$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
5338
5600
|
_inherits(Encointer, _ParachainNode);
|
|
5339
5601
|
var _super = _createSuper(Encointer);
|
|
5340
5602
|
function Encointer() {
|
|
5341
5603
|
_classCallCheck(this, Encointer);
|
|
5342
|
-
return _super.call(this, 'Encointer', 'encointer', 'kusama', Version.
|
|
5604
|
+
return _super.call(this, 'Encointer', 'encointer', 'kusama', Version.V3);
|
|
5343
5605
|
}
|
|
5344
5606
|
_createClass(Encointer, [{
|
|
5345
5607
|
key: "transferPolkadotXCM",
|
|
@@ -5402,7 +5664,7 @@ var Equilibrium$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
5402
5664
|
var _super = _createSuper(Equilibrium);
|
|
5403
5665
|
function Equilibrium() {
|
|
5404
5666
|
_classCallCheck(this, Equilibrium);
|
|
5405
|
-
return _super.call(this, 'Equilibrium', 'equilibrium', 'polkadot', Version.
|
|
5667
|
+
return _super.call(this, 'Equilibrium', 'equilibrium', 'polkadot', Version.V3);
|
|
5406
5668
|
}
|
|
5407
5669
|
_createClass(Equilibrium, [{
|
|
5408
5670
|
key: "transferPolkadotXCM",
|
|
@@ -5454,26 +5716,6 @@ var Crab$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
5454
5716
|
return Crab;
|
|
5455
5717
|
}(ParachainNode);
|
|
5456
5718
|
|
|
5457
|
-
var Ipci$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
5458
|
-
_inherits(Ipci, _ParachainNode);
|
|
5459
|
-
var _super = _createSuper(Ipci);
|
|
5460
|
-
function Ipci() {
|
|
5461
|
-
_classCallCheck(this, Ipci);
|
|
5462
|
-
return _super.call(this, 'Ipci', 'ipci', 'kusama', Version.V1);
|
|
5463
|
-
}
|
|
5464
|
-
_createClass(Ipci, [{
|
|
5465
|
-
key: "transferPolkadotXCM",
|
|
5466
|
-
value: function transferPolkadotXCM(input) {
|
|
5467
|
-
// UNTESTED, ONLY HAS CHANNELS W ROBONOMICS & 0 TRANSACTIONS
|
|
5468
|
-
if (input.scenario === 'ParaToPara') {
|
|
5469
|
-
return PolkadotXCMTransferImpl.transferPolkadotXCM(input, 'reserveTransferAssets');
|
|
5470
|
-
}
|
|
5471
|
-
throw new ScenarioNotSupportedError(this.node, input.scenario);
|
|
5472
|
-
}
|
|
5473
|
-
}]);
|
|
5474
|
-
return Ipci;
|
|
5475
|
-
}(ParachainNode);
|
|
5476
|
-
|
|
5477
5719
|
var Quartz$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
5478
5720
|
_inherits(Quartz, _ParachainNode);
|
|
5479
5721
|
var _super = _createSuper(Quartz);
|
|
@@ -5513,16 +5755,148 @@ var Shiden$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
5513
5755
|
return Shiden;
|
|
5514
5756
|
}(ParachainNode);
|
|
5515
5757
|
|
|
5758
|
+
var Manta$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
5759
|
+
_inherits(Manta, _ParachainNode);
|
|
5760
|
+
var _super = _createSuper(Manta);
|
|
5761
|
+
function Manta() {
|
|
5762
|
+
_classCallCheck(this, Manta);
|
|
5763
|
+
return _super.call(this, 'Manta', 'manta', 'polkadot', Version.V3);
|
|
5764
|
+
}
|
|
5765
|
+
_createClass(Manta, [{
|
|
5766
|
+
key: "transferXTokens",
|
|
5767
|
+
value: function transferXTokens(input) {
|
|
5768
|
+
return XTokensTransferImpl.transferXTokens(input, {
|
|
5769
|
+
ForeignAssetId: input.currencyID
|
|
5770
|
+
});
|
|
5771
|
+
}
|
|
5772
|
+
}]);
|
|
5773
|
+
return Manta;
|
|
5774
|
+
}(ParachainNode);
|
|
5775
|
+
|
|
5776
|
+
var Genshiro$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
5777
|
+
_inherits(Genshiro, _ParachainNode);
|
|
5778
|
+
var _super = _createSuper(Genshiro);
|
|
5779
|
+
function Genshiro() {
|
|
5780
|
+
_classCallCheck(this, Genshiro);
|
|
5781
|
+
return _super.call(this, 'Genshiro', 'Genshiro', 'kusama', Version.V3);
|
|
5782
|
+
}
|
|
5783
|
+
_createClass(Genshiro, [{
|
|
5784
|
+
key: "transferPolkadotXCM",
|
|
5785
|
+
value: function transferPolkadotXCM(input) {
|
|
5786
|
+
if (input.scenario === 'ParaToPara' && input.currencySymbol !== 'GENS') {
|
|
5787
|
+
throw new InvalidCurrencyError("Node ".concat(this.node, " does not support currency ").concat(input.currencySymbol));
|
|
5788
|
+
}
|
|
5789
|
+
return PolkadotXCMTransferImpl.transferPolkadotXCM(input, 'limitedReserveTransferAssets', 'Unlimited');
|
|
5790
|
+
}
|
|
5791
|
+
}]);
|
|
5792
|
+
return Genshiro;
|
|
5793
|
+
}(ParachainNode);
|
|
5794
|
+
|
|
5795
|
+
var Nodle$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
5796
|
+
_inherits(Nodle, _ParachainNode);
|
|
5797
|
+
var _super = _createSuper(Nodle);
|
|
5798
|
+
function Nodle() {
|
|
5799
|
+
_classCallCheck(this, Nodle);
|
|
5800
|
+
return _super.call(this, 'Nodle', 'nodle', 'polkadot', Version.V3);
|
|
5801
|
+
}
|
|
5802
|
+
_createClass(Nodle, [{
|
|
5803
|
+
key: "transferXTokens",
|
|
5804
|
+
value: function transferXTokens(input) {
|
|
5805
|
+
if (input.scenario !== 'ParaToPara') {
|
|
5806
|
+
throw new ScenarioNotSupportedError(this.node, input.scenario);
|
|
5807
|
+
}
|
|
5808
|
+
if (input.currency !== 'NODL') {
|
|
5809
|
+
throw new InvalidCurrencyError("Asset ".concat(input.currency, " is not supported by node ").concat(this.node, "."));
|
|
5810
|
+
}
|
|
5811
|
+
return XTokensTransferImpl.transferXTokens(input, 'NodleNative');
|
|
5812
|
+
}
|
|
5813
|
+
}]);
|
|
5814
|
+
return Nodle;
|
|
5815
|
+
}(ParachainNode);
|
|
5816
|
+
|
|
5817
|
+
var OriginTrail$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
5818
|
+
_inherits(OriginTrail, _ParachainNode);
|
|
5819
|
+
var _super = _createSuper(OriginTrail);
|
|
5820
|
+
function OriginTrail() {
|
|
5821
|
+
_classCallCheck(this, OriginTrail);
|
|
5822
|
+
return _super.call(this, 'OriginTrail', 'origintrail-parachain', 'polkadot', Version.V3);
|
|
5823
|
+
}
|
|
5824
|
+
_createClass(OriginTrail, [{
|
|
5825
|
+
key: "transferPolkadotXCM",
|
|
5826
|
+
value: function transferPolkadotXCM(input) {
|
|
5827
|
+
return PolkadotXCMTransferImpl.transferPolkadotXCM(input, 'limitedReserveTransferAssets', 'Unlimited');
|
|
5828
|
+
}
|
|
5829
|
+
}]);
|
|
5830
|
+
return OriginTrail;
|
|
5831
|
+
}(ParachainNode);
|
|
5832
|
+
|
|
5833
|
+
var Pendulum$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
5834
|
+
_inherits(Pendulum, _ParachainNode);
|
|
5835
|
+
var _super = _createSuper(Pendulum);
|
|
5836
|
+
function Pendulum() {
|
|
5837
|
+
_classCallCheck(this, Pendulum);
|
|
5838
|
+
return _super.call(this, 'Pendulum', 'pendulum', 'polkadot', Version.V1);
|
|
5839
|
+
}
|
|
5840
|
+
_createClass(Pendulum, [{
|
|
5841
|
+
key: "transferXTokens",
|
|
5842
|
+
value: function transferXTokens(input) {
|
|
5843
|
+
if (input.scenario !== 'ParaToPara') {
|
|
5844
|
+
throw new ScenarioNotSupportedError(this.node, input.scenario);
|
|
5845
|
+
}
|
|
5846
|
+
if (input.currency !== 'PEN') {
|
|
5847
|
+
throw new InvalidCurrencyError("Asset ".concat(input.currency, " is not supported by node ").concat(this.node, "."));
|
|
5848
|
+
}
|
|
5849
|
+
return XTokensTransferImpl.transferXTokens(input, {
|
|
5850
|
+
XCM: input.currencyID
|
|
5851
|
+
});
|
|
5852
|
+
}
|
|
5853
|
+
}]);
|
|
5854
|
+
return Pendulum;
|
|
5855
|
+
}(ParachainNode);
|
|
5856
|
+
|
|
5857
|
+
var Polkadex$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
5858
|
+
_inherits(Polkadex, _ParachainNode);
|
|
5859
|
+
var _super = _createSuper(Polkadex);
|
|
5860
|
+
function Polkadex() {
|
|
5861
|
+
_classCallCheck(this, Polkadex);
|
|
5862
|
+
return _super.call(this, 'Polkadex', 'polkadex', 'polkadot', Version.V3);
|
|
5863
|
+
}
|
|
5864
|
+
_createClass(Polkadex, [{
|
|
5865
|
+
key: "transferXTokens",
|
|
5866
|
+
value: function transferXTokens(input) {
|
|
5867
|
+
return XTokensTransferImpl.transferXTokens(input, input.currencyID);
|
|
5868
|
+
}
|
|
5869
|
+
}]);
|
|
5870
|
+
return Polkadex;
|
|
5871
|
+
}(ParachainNode);
|
|
5872
|
+
|
|
5873
|
+
var Zeitgeist$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
5874
|
+
_inherits(Zeitgeist, _ParachainNode);
|
|
5875
|
+
var _super = _createSuper(Zeitgeist);
|
|
5876
|
+
function Zeitgeist() {
|
|
5877
|
+
_classCallCheck(this, Zeitgeist);
|
|
5878
|
+
return _super.call(this, 'Zeitgeist', 'zeitgeist', 'polkadot', Version.V3);
|
|
5879
|
+
}
|
|
5880
|
+
_createClass(Zeitgeist, [{
|
|
5881
|
+
key: "transferXTokens",
|
|
5882
|
+
value: function transferXTokens(input) {
|
|
5883
|
+
return XTokensTransferImpl.transferXTokens(input, {
|
|
5884
|
+
ForeignAsset: input.currencyID
|
|
5885
|
+
});
|
|
5886
|
+
}
|
|
5887
|
+
}]);
|
|
5888
|
+
return Zeitgeist;
|
|
5889
|
+
}(ParachainNode);
|
|
5890
|
+
|
|
5516
5891
|
// Contains supported Parachains and exports supported XCM Pallets
|
|
5517
|
-
var NODE_NAMES = ['
|
|
5892
|
+
var NODE_NAMES = ['AssetHubPolkadot', 'Acala', 'Astar', 'BifrostPolkadot', 'Bitgreen', 'Centrifuge', 'Clover', 'ComposableFinance', 'Darwinia', 'HydraDX', 'Interlay', 'Kylin', 'Litentry', 'Moonbeam', 'Parallel', 'AssetHubKusama', 'Encointer', 'Altair', 'Amplitude', 'Bajun', 'Basilisk', 'BifrostKusama', 'Pioneer', 'Calamari', 'CrustShadow', 'Crab', 'Imbue', 'Integritee', 'InvArchTinker', 'Karura', 'Kintsugi', 'Litmus', 'Mangata', 'Moonriver', 'ParallelHeiko', 'Picasso', 'Quartz', 'Robonomics', 'Shiden', 'Turing', 'Equilibrium', 'Unique', 'Crust', 'Manta', 'Genshiro', 'Nodle', 'OriginTrail', 'Pendulum', 'Polkadex', 'Zeitgeist'];
|
|
5518
5893
|
var nodes = {
|
|
5519
|
-
|
|
5894
|
+
AssetHubPolkadot: new AssetHubPolkadot$1(),
|
|
5520
5895
|
Acala: new Acala$1(),
|
|
5521
5896
|
Astar: new Astar$1(),
|
|
5522
5897
|
Equilibrium: new Equilibrium$1(),
|
|
5523
5898
|
Unique: new Unique$1(),
|
|
5524
5899
|
Crust: new Crust$1(),
|
|
5525
|
-
Efinity: new Efinity$1(),
|
|
5526
5900
|
BifrostPolkadot: new BifrostPolkadot$1(),
|
|
5527
5901
|
Bitgreen: new Bitgreen$1(),
|
|
5528
5902
|
Centrifuge: new Centrifuge$1(),
|
|
@@ -5535,7 +5909,7 @@ var nodes = {
|
|
|
5535
5909
|
Litentry: new Litentry$1(),
|
|
5536
5910
|
Moonbeam: new Moonbeam$1(),
|
|
5537
5911
|
Parallel: new Parallel$1(),
|
|
5538
|
-
|
|
5912
|
+
AssetHubKusama: new AssetHubKusama$1(),
|
|
5539
5913
|
Encointer: new Encointer$1(),
|
|
5540
5914
|
Altair: new Altair$1(),
|
|
5541
5915
|
Amplitude: new Amplitude$1(),
|
|
@@ -5546,299 +5920,116 @@ var nodes = {
|
|
|
5546
5920
|
Calamari: new Calamari$1(),
|
|
5547
5921
|
CrustShadow: new CrustShadow$1(),
|
|
5548
5922
|
Crab: new Crab$1(),
|
|
5549
|
-
Dorafactory: new Dorafactory$1(),
|
|
5550
5923
|
Imbue: new Imbue$1(),
|
|
5551
5924
|
Integritee: new Integritee$1(),
|
|
5552
5925
|
InvArchTinker: new InvArchTinker$1(),
|
|
5553
5926
|
Karura: new Karura$1(),
|
|
5554
|
-
Kico: new Kico$1(),
|
|
5555
5927
|
Kintsugi: new Kintsugi$1(),
|
|
5556
|
-
Ipci: new Ipci$1(),
|
|
5557
5928
|
Litmus: new Litmus$1(),
|
|
5558
5929
|
Mangata: new Mangata$1(),
|
|
5559
5930
|
Moonriver: new Moonriver$1(),
|
|
5560
5931
|
ParallelHeiko: new ParallelHeiko$1(),
|
|
5561
5932
|
Picasso: new Picasso$1(),
|
|
5562
|
-
Pichiu: new Pichiu$1(),
|
|
5563
5933
|
Quartz: new Quartz$1(),
|
|
5564
5934
|
Robonomics: new Robonomics$1(),
|
|
5565
5935
|
Shiden: new Shiden$1(),
|
|
5566
|
-
Turing: new Turing$1()
|
|
5936
|
+
Turing: new Turing$1(),
|
|
5937
|
+
Manta: new Manta$1(),
|
|
5938
|
+
Genshiro: new Genshiro$1(),
|
|
5939
|
+
Nodle: new Nodle$1(),
|
|
5940
|
+
OriginTrail: new OriginTrail$1(),
|
|
5941
|
+
Pendulum: new Pendulum$1(),
|
|
5942
|
+
Polkadex: new Polkadex$1(),
|
|
5943
|
+
Zeitgeist: new Zeitgeist$1()
|
|
5567
5944
|
};
|
|
5568
5945
|
var SUPPORTED_PALLETS = ['XTokens', 'OrmlXTokens', 'PolkadotXcm', 'RelayerXcm'];
|
|
5569
5946
|
|
|
5570
|
-
function createAccID(api, account) {
|
|
5947
|
+
var createAccID = function createAccID(api, account) {
|
|
5571
5948
|
console.log('Generating AccountId32 address');
|
|
5572
5949
|
return api.createType('AccountId32', account).toHex();
|
|
5573
|
-
}
|
|
5574
|
-
function getFees(scenario) {
|
|
5950
|
+
};
|
|
5951
|
+
var getFees = function getFees(scenario) {
|
|
5575
5952
|
if (scenario === 'ParaToRelay') {
|
|
5576
|
-
console.log('Asigning fees for transfer to Relay chain');
|
|
5577
|
-
return 4600000000;
|
|
5578
|
-
} else if (scenario === 'ParaToPara') {
|
|
5579
|
-
console.log('Asigning fees for transfer to another Parachain chain');
|
|
5580
|
-
return 399600000000;
|
|
5581
|
-
}
|
|
5582
|
-
throw new Error("Fees for scenario ".concat(scenario, " are not defined."));
|
|
5583
|
-
}
|
|
5584
|
-
function handleAddress(scenario, pallet, api, to, version, nodeId) {
|
|
5585
|
-
if (scenario === 'ParaToRelay' && pallet === 'xTokens') {
|
|
5586
|
-
console.log('AccountId32 transfer');
|
|
5587
|
-
if (version === Version.V3) {
|
|
5588
|
-
return {
|
|
5589
|
-
V3: {
|
|
5590
|
-
parents: 1,
|
|
5591
|
-
interior: {
|
|
5592
|
-
X1: {
|
|
5593
|
-
AccountId32: {
|
|
5594
|
-
id: createAccID(api, to)
|
|
5595
|
-
}
|
|
5596
|
-
}
|
|
5597
|
-
}
|
|
5598
|
-
}
|
|
5599
|
-
};
|
|
5600
|
-
}
|
|
5601
|
-
return {
|
|
5602
|
-
V1: {
|
|
5603
|
-
parents: 1,
|
|
5604
|
-
interior: {
|
|
5605
|
-
X1: {
|
|
5606
|
-
AccountId32: {
|
|
5607
|
-
network: 'any',
|
|
5608
|
-
id: createAccID(api, to)
|
|
5609
|
-
}
|
|
5610
|
-
}
|
|
5611
|
-
}
|
|
5612
|
-
}
|
|
5613
|
-
};
|
|
5953
|
+
console.log('Asigning fees for transfer to Relay chain');
|
|
5954
|
+
return 4600000000;
|
|
5955
|
+
} else if (scenario === 'ParaToPara') {
|
|
5956
|
+
console.log('Asigning fees for transfer to another Parachain chain');
|
|
5957
|
+
return 399600000000;
|
|
5614
5958
|
}
|
|
5615
|
-
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
|
|
5619
|
-
|
|
5620
|
-
|
|
5621
|
-
|
|
5622
|
-
|
|
5623
|
-
|
|
5624
|
-
|
|
5625
|
-
|
|
5626
|
-
|
|
5627
|
-
|
|
5628
|
-
|
|
5629
|
-
}]
|
|
5630
|
-
}
|
|
5631
|
-
}
|
|
5632
|
-
};
|
|
5633
|
-
}
|
|
5634
|
-
return {
|
|
5635
|
-
V1: {
|
|
5636
|
-
parents: 1,
|
|
5637
|
-
interior: {
|
|
5638
|
-
X2: [{
|
|
5639
|
-
Parachain: nodeId
|
|
5640
|
-
}, {
|
|
5641
|
-
AccountKey20: {
|
|
5642
|
-
network: 'Any',
|
|
5643
|
-
key: to
|
|
5644
|
-
}
|
|
5645
|
-
}]
|
|
5646
|
-
}
|
|
5959
|
+
throw new Error("Fees for scenario ".concat(scenario, " are not defined."));
|
|
5960
|
+
};
|
|
5961
|
+
var generateAddressPayload = function generateAddressPayload(api, scenario, pallet, recipientAddress, version, nodeId) {
|
|
5962
|
+
var isEthAddress = ethers.utils.isAddress(recipientAddress);
|
|
5963
|
+
if (scenario === 'ParaToRelay') {
|
|
5964
|
+
return _defineProperty({}, version, {
|
|
5965
|
+
parents: pallet === 'XTokens' ? 1 : 0,
|
|
5966
|
+
interior: {
|
|
5967
|
+
X1: {
|
|
5968
|
+
AccountId32: Object.assign(Object.assign({}, version === Version.V1 && {
|
|
5969
|
+
network: 'any'
|
|
5970
|
+
}), {
|
|
5971
|
+
id: createAccID(api, recipientAddress)
|
|
5972
|
+
})
|
|
5647
5973
|
}
|
|
5648
|
-
};
|
|
5649
|
-
} else {
|
|
5650
|
-
console.log('AccountId32 transfer');
|
|
5651
|
-
if (version === Version.V3) {
|
|
5652
|
-
return {
|
|
5653
|
-
V3: {
|
|
5654
|
-
parents: 1,
|
|
5655
|
-
interior: {
|
|
5656
|
-
X2: [{
|
|
5657
|
-
Parachain: nodeId
|
|
5658
|
-
}, {
|
|
5659
|
-
AccountId32: {
|
|
5660
|
-
id: createAccID(api, to)
|
|
5661
|
-
}
|
|
5662
|
-
}]
|
|
5663
|
-
}
|
|
5664
|
-
}
|
|
5665
|
-
};
|
|
5666
5974
|
}
|
|
5667
|
-
|
|
5668
|
-
V1: {
|
|
5669
|
-
parents: 1,
|
|
5670
|
-
interior: {
|
|
5671
|
-
X2: [{
|
|
5672
|
-
Parachain: nodeId
|
|
5673
|
-
}, {
|
|
5674
|
-
AccountId32: {
|
|
5675
|
-
network: 'Any',
|
|
5676
|
-
id: createAccID(api, to)
|
|
5677
|
-
}
|
|
5678
|
-
}]
|
|
5679
|
-
}
|
|
5680
|
-
}
|
|
5681
|
-
};
|
|
5682
|
-
}
|
|
5683
|
-
}
|
|
5684
|
-
if (scenario === 'ParaToRelay' && pallet === 'polkadotXCM') {
|
|
5685
|
-
console.log('AccountId32 transfer');
|
|
5686
|
-
if (version === Version.V3) {
|
|
5687
|
-
return {
|
|
5688
|
-
V3: {
|
|
5689
|
-
parents: 0,
|
|
5690
|
-
interior: {
|
|
5691
|
-
X1: {
|
|
5692
|
-
AccountId32: {
|
|
5693
|
-
id: createAccID(api, to)
|
|
5694
|
-
}
|
|
5695
|
-
}
|
|
5696
|
-
}
|
|
5697
|
-
}
|
|
5698
|
-
};
|
|
5699
|
-
} else {
|
|
5700
|
-
return {
|
|
5701
|
-
V1: {
|
|
5702
|
-
parents: 0,
|
|
5703
|
-
interior: {
|
|
5704
|
-
X1: {
|
|
5705
|
-
AccountId32: {
|
|
5706
|
-
network: 'any',
|
|
5707
|
-
id: createAccID(api, to)
|
|
5708
|
-
}
|
|
5709
|
-
}
|
|
5710
|
-
}
|
|
5711
|
-
}
|
|
5712
|
-
};
|
|
5713
|
-
}
|
|
5975
|
+
});
|
|
5714
5976
|
}
|
|
5715
|
-
if (scenario === 'ParaToPara' && pallet === '
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
|
|
5719
|
-
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
|
|
5724
|
-
|
|
5725
|
-
|
|
5726
|
-
|
|
5727
|
-
|
|
5728
|
-
}
|
|
5729
|
-
}
|
|
5730
|
-
};
|
|
5731
|
-
} else {
|
|
5732
|
-
return {
|
|
5733
|
-
V1: {
|
|
5734
|
-
parents: 0,
|
|
5735
|
-
interior: {
|
|
5736
|
-
X1: {
|
|
5737
|
-
AccountKey20: {
|
|
5738
|
-
network: 'Any',
|
|
5739
|
-
key: to
|
|
5740
|
-
}
|
|
5741
|
-
}
|
|
5742
|
-
}
|
|
5743
|
-
}
|
|
5744
|
-
};
|
|
5977
|
+
if (scenario === 'ParaToPara' && pallet === 'XTokens') {
|
|
5978
|
+
return _defineProperty({}, version, {
|
|
5979
|
+
parents: 1,
|
|
5980
|
+
interior: {
|
|
5981
|
+
X2: [{
|
|
5982
|
+
Parachain: nodeId
|
|
5983
|
+
}, _defineProperty({}, isEthAddress ? 'AccountKey20' : 'AccountId32', Object.assign(Object.assign({}, version === Version.V1 && {
|
|
5984
|
+
network: 'any'
|
|
5985
|
+
}), isEthAddress ? {
|
|
5986
|
+
key: recipientAddress
|
|
5987
|
+
} : {
|
|
5988
|
+
id: createAccID(api, recipientAddress)
|
|
5989
|
+
}))]
|
|
5745
5990
|
}
|
|
5746
|
-
}
|
|
5747
|
-
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
|
|
5751
|
-
|
|
5752
|
-
|
|
5753
|
-
|
|
5754
|
-
|
|
5755
|
-
|
|
5756
|
-
|
|
5757
|
-
|
|
5758
|
-
|
|
5759
|
-
}
|
|
5760
|
-
};
|
|
5761
|
-
} else {
|
|
5762
|
-
return {
|
|
5763
|
-
V1: {
|
|
5764
|
-
parents: 0,
|
|
5765
|
-
interior: {
|
|
5766
|
-
X1: {
|
|
5767
|
-
AccountId32: {
|
|
5768
|
-
network: 'Any',
|
|
5769
|
-
id: createAccID(api, to)
|
|
5770
|
-
}
|
|
5771
|
-
}
|
|
5772
|
-
}
|
|
5773
|
-
}
|
|
5774
|
-
};
|
|
5991
|
+
});
|
|
5992
|
+
}
|
|
5993
|
+
if (scenario === 'ParaToPara' && pallet === 'PolkadotXcm') {
|
|
5994
|
+
return _defineProperty({}, version, {
|
|
5995
|
+
parents: 0,
|
|
5996
|
+
interior: {
|
|
5997
|
+
X1: _defineProperty({}, isEthAddress ? 'AccountKey20' : 'AccountId32', Object.assign(Object.assign({}, version === Version.V1 && {
|
|
5998
|
+
network: 'any'
|
|
5999
|
+
}), isEthAddress ? {
|
|
6000
|
+
key: recipientAddress
|
|
6001
|
+
} : {
|
|
6002
|
+
id: createAccID(api, recipientAddress)
|
|
6003
|
+
}))
|
|
5775
6004
|
}
|
|
5776
|
-
}
|
|
6005
|
+
});
|
|
5777
6006
|
}
|
|
5778
|
-
|
|
5779
|
-
|
|
5780
|
-
|
|
5781
|
-
|
|
5782
|
-
|
|
5783
|
-
|
|
5784
|
-
|
|
5785
|
-
|
|
5786
|
-
|
|
5787
|
-
|
|
5788
|
-
}
|
|
5789
|
-
}
|
|
5790
|
-
}
|
|
5791
|
-
}
|
|
5792
|
-
};
|
|
5793
|
-
} else {
|
|
5794
|
-
console.log('AccountId32 transfer');
|
|
5795
|
-
return {
|
|
5796
|
-
V3: {
|
|
5797
|
-
parents: 0,
|
|
5798
|
-
interior: {
|
|
5799
|
-
X1: {
|
|
5800
|
-
AccountId32: {
|
|
5801
|
-
id: createAccID(api, to)
|
|
5802
|
-
}
|
|
5803
|
-
}
|
|
5804
|
-
}
|
|
5805
|
-
}
|
|
5806
|
-
};
|
|
6007
|
+
return {
|
|
6008
|
+
V3: {
|
|
6009
|
+
parents: 0,
|
|
6010
|
+
interior: {
|
|
6011
|
+
X1: _defineProperty({}, isEthAddress ? 'AccountKey20' : 'AccountId32', Object.assign({}, isEthAddress ? {
|
|
6012
|
+
key: recipientAddress
|
|
6013
|
+
} : {
|
|
6014
|
+
id: createAccID(api, recipientAddress)
|
|
6015
|
+
}))
|
|
6016
|
+
}
|
|
5807
6017
|
}
|
|
5808
|
-
}
|
|
5809
|
-
}
|
|
5810
|
-
function createCurrencySpecification(amount, scenario, version, node, cur) {
|
|
6018
|
+
};
|
|
6019
|
+
};
|
|
6020
|
+
var createCurrencySpecification = function createCurrencySpecification(amount, scenario, version, node, cur) {
|
|
5811
6021
|
if (scenario === 'ParaToRelay') {
|
|
5812
|
-
|
|
5813
|
-
|
|
5814
|
-
|
|
5815
|
-
|
|
5816
|
-
|
|
5817
|
-
|
|
5818
|
-
|
|
5819
|
-
|
|
5820
|
-
|
|
5821
|
-
|
|
5822
|
-
|
|
5823
|
-
Fungible: amount
|
|
5824
|
-
}
|
|
5825
|
-
}]
|
|
5826
|
-
};
|
|
5827
|
-
} else {
|
|
5828
|
-
return {
|
|
5829
|
-
V1: [{
|
|
5830
|
-
id: {
|
|
5831
|
-
Concrete: {
|
|
5832
|
-
parents: 1,
|
|
5833
|
-
interior: 'Here'
|
|
5834
|
-
}
|
|
5835
|
-
},
|
|
5836
|
-
fun: {
|
|
5837
|
-
Fungible: amount
|
|
5838
|
-
}
|
|
5839
|
-
}]
|
|
5840
|
-
};
|
|
5841
|
-
}
|
|
6022
|
+
return _defineProperty({}, version, [{
|
|
6023
|
+
id: {
|
|
6024
|
+
Concrete: {
|
|
6025
|
+
parents: 1,
|
|
6026
|
+
interior: 'Here'
|
|
6027
|
+
}
|
|
6028
|
+
},
|
|
6029
|
+
fun: {
|
|
6030
|
+
Fungible: amount
|
|
6031
|
+
}
|
|
6032
|
+
}]);
|
|
5842
6033
|
}
|
|
5843
6034
|
if (scenario === 'RelayToPara' || scenario === 'ParaToPara') {
|
|
5844
6035
|
console.log('polkadotXCM Native currency to sender chain transfer');
|
|
@@ -5861,8 +6052,8 @@ function createCurrencySpecification(amount, scenario, version, node, cur) {
|
|
|
5861
6052
|
}
|
|
5862
6053
|
}]
|
|
5863
6054
|
};
|
|
5864
|
-
} else if ((node === '
|
|
5865
|
-
// Another specific case for
|
|
6055
|
+
} else if ((node === 'AssetHubPolkadot' || node === 'AssetHubKusama') && scenario === 'ParaToPara') {
|
|
6056
|
+
// Another specific case for AssetHubPolkadot & AssetHubKusama to send for example USDt
|
|
5866
6057
|
return {
|
|
5867
6058
|
V3: [{
|
|
5868
6059
|
id: {
|
|
@@ -5898,85 +6089,77 @@ function createCurrencySpecification(amount, scenario, version, node, cur) {
|
|
|
5898
6089
|
}]
|
|
5899
6090
|
};
|
|
5900
6091
|
}
|
|
5901
|
-
}
|
|
5902
|
-
function createHeaderPolkadotXCM(scenario, version, nodeId) {
|
|
5903
|
-
console.log('Generating header for polkadotXCM transfer');
|
|
6092
|
+
};
|
|
6093
|
+
var createHeaderPolkadotXCM = function createHeaderPolkadotXCM(scenario, version, nodeId) {
|
|
5904
6094
|
if (scenario === 'ParaToRelay') {
|
|
5905
|
-
|
|
5906
|
-
|
|
5907
|
-
|
|
5908
|
-
|
|
5909
|
-
interior: 'Here'
|
|
5910
|
-
}
|
|
5911
|
-
};
|
|
5912
|
-
} else {
|
|
5913
|
-
return {
|
|
5914
|
-
V1: {
|
|
5915
|
-
parents: 1,
|
|
5916
|
-
interior: 'Here'
|
|
5917
|
-
}
|
|
5918
|
-
};
|
|
5919
|
-
}
|
|
6095
|
+
return _defineProperty({}, version, {
|
|
6096
|
+
parents: 1,
|
|
6097
|
+
interior: 'Here'
|
|
6098
|
+
});
|
|
5920
6099
|
}
|
|
5921
6100
|
if (scenario === 'ParaToPara') {
|
|
5922
|
-
|
|
5923
|
-
|
|
5924
|
-
|
|
5925
|
-
|
|
5926
|
-
|
|
5927
|
-
X1: {
|
|
5928
|
-
Parachain: nodeId
|
|
5929
|
-
}
|
|
5930
|
-
}
|
|
5931
|
-
}
|
|
5932
|
-
};
|
|
5933
|
-
} else {
|
|
5934
|
-
return {
|
|
5935
|
-
V1: {
|
|
5936
|
-
parents: 1,
|
|
5937
|
-
interior: {
|
|
5938
|
-
X1: {
|
|
5939
|
-
Parachain: nodeId
|
|
5940
|
-
}
|
|
5941
|
-
}
|
|
6101
|
+
return _defineProperty({}, version, {
|
|
6102
|
+
parents: 1,
|
|
6103
|
+
interior: {
|
|
6104
|
+
X1: {
|
|
6105
|
+
Parachain: nodeId
|
|
5942
6106
|
}
|
|
5943
|
-
}
|
|
5944
|
-
}
|
|
6107
|
+
}
|
|
6108
|
+
});
|
|
5945
6109
|
}
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
Parachain: nodeId
|
|
5953
|
-
}
|
|
6110
|
+
return {
|
|
6111
|
+
V3: {
|
|
6112
|
+
parents: 0,
|
|
6113
|
+
interior: {
|
|
6114
|
+
X1: {
|
|
6115
|
+
Parachain: nodeId
|
|
5954
6116
|
}
|
|
5955
6117
|
}
|
|
5956
|
-
}
|
|
5957
|
-
}
|
|
5958
|
-
}
|
|
5959
|
-
function getNode(node) {
|
|
6118
|
+
}
|
|
6119
|
+
};
|
|
6120
|
+
};
|
|
6121
|
+
var getNode = function getNode(node) {
|
|
5960
6122
|
return nodes[node];
|
|
5961
|
-
}
|
|
5962
|
-
function getNodeEndpointOption(node) {
|
|
6123
|
+
};
|
|
6124
|
+
var getNodeEndpointOption = function getNodeEndpointOption(node) {
|
|
5963
6125
|
var _getNode = getNode(node),
|
|
5964
6126
|
type = _getNode.type,
|
|
5965
6127
|
name = _getNode.name;
|
|
5966
|
-
var
|
|
5967
|
-
linked =
|
|
6128
|
+
var _ref8 = type === 'polkadot' ? prodRelayPolkadot : prodRelayKusama,
|
|
6129
|
+
linked = _ref8.linked;
|
|
6130
|
+
// TMP Fix because some nodes don't have providers in endpoint options
|
|
6131
|
+
if (node === 'Imbue') {
|
|
6132
|
+
return {
|
|
6133
|
+
info: 'imbue',
|
|
6134
|
+
paraId: 2121,
|
|
6135
|
+
providers: {
|
|
6136
|
+
'Imbue Network 0': 'wss://kusama.imbuenetwork.com'
|
|
6137
|
+
}
|
|
6138
|
+
};
|
|
6139
|
+
}
|
|
6140
|
+
if (node === 'Polkadex') {
|
|
6141
|
+
return {
|
|
6142
|
+
info: 'polkadex',
|
|
6143
|
+
paraId: 2040,
|
|
6144
|
+
providers: {
|
|
6145
|
+
Dwellir: 'wss://polkadex-rpc.dwellir.com',
|
|
6146
|
+
OnFinality: 'wss://polkadex-parachain.api.onfinality.io/public-ws',
|
|
6147
|
+
RadiumBlock: 'wss://polkadex-parachain.public.curie.radiumblock.co/ws'
|
|
6148
|
+
}
|
|
6149
|
+
};
|
|
6150
|
+
}
|
|
5968
6151
|
return linked ? linked.find(function (o) {
|
|
5969
6152
|
return o.info === name;
|
|
5970
6153
|
}) : undefined;
|
|
5971
|
-
}
|
|
6154
|
+
};
|
|
5972
6155
|
var lowercaseFirstLetter = function lowercaseFirstLetter(str) {
|
|
5973
6156
|
return str.charAt(0).toLowerCase() + str.slice(1);
|
|
5974
6157
|
};
|
|
5975
|
-
var callPolkadotJsTxFunction = function callPolkadotJsTxFunction(api,
|
|
6158
|
+
var callPolkadotJsTxFunction = function callPolkadotJsTxFunction(api, _ref9) {
|
|
5976
6159
|
var _api$tx$module;
|
|
5977
|
-
var module =
|
|
5978
|
-
section =
|
|
5979
|
-
parameters =
|
|
6160
|
+
var module = _ref9.module,
|
|
6161
|
+
section = _ref9.section,
|
|
6162
|
+
parameters = _ref9.parameters;
|
|
5980
6163
|
return (_api$tx$module = api.tx[module])[section].apply(_api$tx$module, _toConsumableArray(parameters));
|
|
5981
6164
|
};
|
|
5982
6165
|
|
|
@@ -5995,7 +6178,7 @@ var getAssetBySymbolOrId = function getAssetBySymbolOrId(node, symbolOrId) {
|
|
|
5995
6178
|
assetId = asset.assetId;
|
|
5996
6179
|
return {
|
|
5997
6180
|
symbol: symbol,
|
|
5998
|
-
assetId: assetId
|
|
6181
|
+
assetId: assetId
|
|
5999
6182
|
};
|
|
6000
6183
|
}
|
|
6001
6184
|
if (relayChainAssetSymbol === symbolOrId) return {
|
|
@@ -6004,36 +6187,12 @@ var getAssetBySymbolOrId = function getAssetBySymbolOrId(node, symbolOrId) {
|
|
|
6004
6187
|
return null;
|
|
6005
6188
|
};
|
|
6006
6189
|
|
|
6007
|
-
// Used to inform user, that Parachain they wish to use is not supported yet
|
|
6008
|
-
var NodeNotSupportedError = /*#__PURE__*/function (_Error) {
|
|
6009
|
-
_inherits(NodeNotSupportedError, _Error);
|
|
6010
|
-
var _super = _createSuper(NodeNotSupportedError);
|
|
6011
|
-
function NodeNotSupportedError(message) {
|
|
6012
|
-
var _this;
|
|
6013
|
-
_classCallCheck(this, NodeNotSupportedError);
|
|
6014
|
-
_this = _super.call(this, message);
|
|
6015
|
-
_this.name = 'NodeNotSupported';
|
|
6016
|
-
return _this;
|
|
6017
|
-
}
|
|
6018
|
-
return _createClass(NodeNotSupportedError);
|
|
6019
|
-
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
|
6020
|
-
|
|
6021
|
-
var IncompatibleNodesError = /*#__PURE__*/function (_Error) {
|
|
6022
|
-
_inherits(IncompatibleNodesError, _Error);
|
|
6023
|
-
var _super = _createSuper(IncompatibleNodesError);
|
|
6024
|
-
function IncompatibleNodesError() {
|
|
6025
|
-
var _this;
|
|
6026
|
-
_classCallCheck(this, IncompatibleNodesError);
|
|
6027
|
-
_this = _super.call(this, 'Transactions between nodes on different relaychains are not yet possible.');
|
|
6028
|
-
_this.name = 'IncompatibleNodes';
|
|
6029
|
-
return _this;
|
|
6030
|
-
}
|
|
6031
|
-
return _createClass(IncompatibleNodesError);
|
|
6032
|
-
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
|
6033
|
-
|
|
6034
6190
|
// Contains basic call formatting for different XCM Palletss
|
|
6035
6191
|
var sendCommon = function sendCommon(api, origin, currencySymbolOrId, amount, to, destination) {
|
|
6036
6192
|
var serializedApiCallEnabled = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : false;
|
|
6193
|
+
if (typeof currencySymbolOrId === 'number' && currencySymbolOrId > Number.MAX_SAFE_INTEGER) {
|
|
6194
|
+
throw new InvalidCurrencyError('The provided asset ID is larger than the maximum safe integer value. Please provide it as a string.');
|
|
6195
|
+
}
|
|
6037
6196
|
var asset = getAssetBySymbolOrId(origin, currencySymbolOrId.toString());
|
|
6038
6197
|
if (destination) {
|
|
6039
6198
|
var originRelayChainSymbol = getRelayChainSymbol(origin);
|
|
@@ -6045,7 +6204,7 @@ var sendCommon = function sendCommon(api, origin, currencySymbolOrId, amount, to
|
|
|
6045
6204
|
if (!asset) {
|
|
6046
6205
|
throw new InvalidCurrencyError("Origin node ".concat(origin, " does not support currency or currencyId ").concat(currencySymbolOrId, "."));
|
|
6047
6206
|
}
|
|
6048
|
-
if (destination && !hasSupportForAsset(destination, asset.symbol)) {
|
|
6207
|
+
if (destination && asset.symbol && !hasSupportForAsset(destination, asset.symbol)) {
|
|
6049
6208
|
throw new InvalidCurrencyError("Destination node ".concat(destination, " does not support currency or currencyId ").concat(currencySymbolOrId, "."));
|
|
6050
6209
|
}
|
|
6051
6210
|
var currencySymbol = asset.symbol,
|
|
@@ -6062,12 +6221,12 @@ function send(api, origin, currencySymbolOrId, amount, to, destination) {
|
|
|
6062
6221
|
var transferRelayToParaCommon = function transferRelayToParaCommon(api, destination, amount, to) {
|
|
6063
6222
|
var serializedApiCallEnabled = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
|
|
6064
6223
|
var paraId = getParaId(destination);
|
|
6065
|
-
if (destination === '
|
|
6066
|
-
// Same for
|
|
6224
|
+
if (destination === 'AssetHubPolkadot' || destination === 'AssetHubKusama' || destination === 'Moonbeam' || destination === 'Moonriver') {
|
|
6225
|
+
// Same for AssetHubPolkadot, AssetHubKusama, Encoiter and Moonbeam
|
|
6067
6226
|
var _serializedApiCall = {
|
|
6068
6227
|
module: 'xcmPallet',
|
|
6069
|
-
section: 'limitedTeleportAssets',
|
|
6070
|
-
parameters: [createHeaderPolkadotXCM('RelayToPara', Version.V3, paraId),
|
|
6228
|
+
section: destination === 'Moonbeam' || destination === 'Moonriver' ? 'limitedReserveTransferAssets' : 'limitedTeleportAssets',
|
|
6229
|
+
parameters: [createHeaderPolkadotXCM('RelayToPara', Version.V3, paraId), generateAddressPayload(api, 'RelayToPara', null, to, Version.V3, paraId), createCurrencySpecification(amount, 'RelayToPara', Version.V3, destination), 0, 'Unlimited']
|
|
6071
6230
|
};
|
|
6072
6231
|
if (serializedApiCallEnabled) {
|
|
6073
6232
|
return _serializedApiCall;
|
|
@@ -6077,20 +6236,20 @@ var transferRelayToParaCommon = function transferRelayToParaCommon(api, destinat
|
|
|
6077
6236
|
var _serializedApiCall2 = {
|
|
6078
6237
|
module: 'xcmPallet',
|
|
6079
6238
|
section: 'limitedTeleportAssets',
|
|
6080
|
-
parameters: [createHeaderPolkadotXCM('RelayToPara', Version.V1, paraId),
|
|
6239
|
+
parameters: [createHeaderPolkadotXCM('RelayToPara', Version.V1, paraId), generateAddressPayload(api, 'RelayToPara', null, to, Version.V1, paraId), createCurrencySpecification(amount, 'RelayToPara', Version.V1, destination), 0, 'Unlimited']
|
|
6081
6240
|
};
|
|
6082
6241
|
if (serializedApiCallEnabled) {
|
|
6083
6242
|
return _serializedApiCall2;
|
|
6084
6243
|
}
|
|
6085
6244
|
return callPolkadotJsTxFunction(api, _serializedApiCall2);
|
|
6086
|
-
} else if (destination === 'Darwinia' || destination === 'Crab') {
|
|
6245
|
+
} else if (destination === 'Darwinia' || destination === 'Crab' || destination === 'Integritee' || destination === 'Nodle' || destination === 'Pendulum') {
|
|
6087
6246
|
// Do not do anything because Darwinia and Crab does not have DOT and KSM registered
|
|
6088
6247
|
throw new NodeNotSupportedError('These nodes do not support XCM transfers from Relay / to Relay chain.');
|
|
6089
6248
|
}
|
|
6090
6249
|
var serializedApiCall = {
|
|
6091
6250
|
module: 'xcmPallet',
|
|
6092
6251
|
section: 'reserveTransferAssets',
|
|
6093
|
-
parameters: [createHeaderPolkadotXCM('RelayToPara', Version.V3, paraId),
|
|
6252
|
+
parameters: [createHeaderPolkadotXCM('RelayToPara', Version.V3, paraId), generateAddressPayload(api, 'RelayToPara', null, to, Version.V3, paraId), createCurrencySpecification(amount, 'RelayToPara', Version.V3, destination), 0]
|
|
6094
6253
|
};
|
|
6095
6254
|
if (serializedApiCallEnabled) {
|
|
6096
6255
|
return serializedApiCall;
|
|
@@ -6694,7 +6853,7 @@ function Builder(api) {
|
|
|
6694
6853
|
return new GeneralBuilder(api);
|
|
6695
6854
|
}
|
|
6696
6855
|
|
|
6697
|
-
var
|
|
6856
|
+
var AssetHubPolkadot = {
|
|
6698
6857
|
defaultPallet: "PolkadotXcm",
|
|
6699
6858
|
supportedPallets: [
|
|
6700
6859
|
"PolkadotXcm"
|
|
@@ -6795,7 +6954,7 @@ var Parallel = {
|
|
|
6795
6954
|
"XTokens"
|
|
6796
6955
|
]
|
|
6797
6956
|
};
|
|
6798
|
-
var
|
|
6957
|
+
var AssetHubKusama = {
|
|
6799
6958
|
defaultPallet: "PolkadotXcm",
|
|
6800
6959
|
supportedPallets: [
|
|
6801
6960
|
"PolkadotXcm"
|
|
@@ -6868,13 +7027,6 @@ var Crab = {
|
|
|
6868
7027
|
"PolkadotXcm"
|
|
6869
7028
|
]
|
|
6870
7029
|
};
|
|
6871
|
-
var Dorafactory = {
|
|
6872
|
-
defaultPallet: "XTokens",
|
|
6873
|
-
supportedPallets: [
|
|
6874
|
-
"PolkadotXcm",
|
|
6875
|
-
"XTokens"
|
|
6876
|
-
]
|
|
6877
|
-
};
|
|
6878
7030
|
var Imbue = {
|
|
6879
7031
|
defaultPallet: "XTokens",
|
|
6880
7032
|
supportedPallets: [
|
|
@@ -6903,13 +7055,6 @@ var Karura = {
|
|
|
6903
7055
|
"XTokens"
|
|
6904
7056
|
]
|
|
6905
7057
|
};
|
|
6906
|
-
var Kico = {
|
|
6907
|
-
defaultPallet: "XTokens",
|
|
6908
|
-
supportedPallets: [
|
|
6909
|
-
"XTokens",
|
|
6910
|
-
"PolkadotXcm"
|
|
6911
|
-
]
|
|
6912
|
-
};
|
|
6913
7058
|
var Kintsugi = {
|
|
6914
7059
|
defaultPallet: "XTokens",
|
|
6915
7060
|
supportedPallets: [
|
|
@@ -6952,13 +7097,6 @@ var Picasso = {
|
|
|
6952
7097
|
"XTokens"
|
|
6953
7098
|
]
|
|
6954
7099
|
};
|
|
6955
|
-
var Pichiu = {
|
|
6956
|
-
defaultPallet: "OrmlXTokens",
|
|
6957
|
-
supportedPallets: [
|
|
6958
|
-
"PolkadotXcm",
|
|
6959
|
-
"OrmlXTokens"
|
|
6960
|
-
]
|
|
6961
|
-
};
|
|
6962
7100
|
var Quartz = {
|
|
6963
7101
|
defaultPallet: "XTokens",
|
|
6964
7102
|
supportedPallets: [
|
|
@@ -7005,21 +7143,55 @@ var Crust = {
|
|
|
7005
7143
|
"XTokens"
|
|
7006
7144
|
]
|
|
7007
7145
|
};
|
|
7008
|
-
var
|
|
7146
|
+
var Manta = {
|
|
7147
|
+
defaultPallet: "XTokens",
|
|
7148
|
+
supportedPallets: [
|
|
7149
|
+
"PolkadotXcm",
|
|
7150
|
+
"XTokens"
|
|
7151
|
+
]
|
|
7152
|
+
};
|
|
7153
|
+
var Genshiro = {
|
|
7154
|
+
defaultPallet: "PolkadotXcm",
|
|
7155
|
+
supportedPallets: [
|
|
7156
|
+
"PolkadotXcm"
|
|
7157
|
+
]
|
|
7158
|
+
};
|
|
7159
|
+
var Nodle = {
|
|
7009
7160
|
defaultPallet: "XTokens",
|
|
7010
7161
|
supportedPallets: [
|
|
7011
7162
|
"PolkadotXcm",
|
|
7012
7163
|
"XTokens"
|
|
7013
7164
|
]
|
|
7014
7165
|
};
|
|
7015
|
-
var
|
|
7166
|
+
var OriginTrail = {
|
|
7016
7167
|
defaultPallet: "PolkadotXcm",
|
|
7017
7168
|
supportedPallets: [
|
|
7018
7169
|
"PolkadotXcm"
|
|
7019
7170
|
]
|
|
7020
7171
|
};
|
|
7172
|
+
var Pendulum = {
|
|
7173
|
+
defaultPallet: "XTokens",
|
|
7174
|
+
supportedPallets: [
|
|
7175
|
+
"PolkadotXcm",
|
|
7176
|
+
"XTokens"
|
|
7177
|
+
]
|
|
7178
|
+
};
|
|
7179
|
+
var Zeitgeist = {
|
|
7180
|
+
defaultPallet: "XTokens",
|
|
7181
|
+
supportedPallets: [
|
|
7182
|
+
"PolkadotXcm",
|
|
7183
|
+
"XTokens"
|
|
7184
|
+
]
|
|
7185
|
+
};
|
|
7186
|
+
var Polkadex = {
|
|
7187
|
+
defaultPallet: "XTokens",
|
|
7188
|
+
supportedPallets: [
|
|
7189
|
+
"PolkadotXcm",
|
|
7190
|
+
"XTokens"
|
|
7191
|
+
]
|
|
7192
|
+
};
|
|
7021
7193
|
var pallets = {
|
|
7022
|
-
|
|
7194
|
+
AssetHubPolkadot: AssetHubPolkadot,
|
|
7023
7195
|
Acala: Acala,
|
|
7024
7196
|
Astar: Astar,
|
|
7025
7197
|
BifrostPolkadot: BifrostPolkadot,
|
|
@@ -7034,7 +7206,7 @@ var pallets = {
|
|
|
7034
7206
|
Litentry: Litentry,
|
|
7035
7207
|
Moonbeam: Moonbeam,
|
|
7036
7208
|
Parallel: Parallel,
|
|
7037
|
-
|
|
7209
|
+
AssetHubKusama: AssetHubKusama,
|
|
7038
7210
|
Encointer: Encointer,
|
|
7039
7211
|
Altair: Altair,
|
|
7040
7212
|
Amplitude: Amplitude,
|
|
@@ -7045,19 +7217,16 @@ var pallets = {
|
|
|
7045
7217
|
Calamari: Calamari,
|
|
7046
7218
|
CrustShadow: CrustShadow,
|
|
7047
7219
|
Crab: Crab,
|
|
7048
|
-
Dorafactory: Dorafactory,
|
|
7049
7220
|
Imbue: Imbue,
|
|
7050
7221
|
Integritee: Integritee,
|
|
7051
7222
|
InvArchTinker: InvArchTinker,
|
|
7052
7223
|
Karura: Karura,
|
|
7053
|
-
Kico: Kico,
|
|
7054
7224
|
Kintsugi: Kintsugi,
|
|
7055
7225
|
Litmus: Litmus,
|
|
7056
7226
|
Mangata: Mangata,
|
|
7057
7227
|
Moonriver: Moonriver,
|
|
7058
7228
|
ParallelHeiko: ParallelHeiko,
|
|
7059
7229
|
Picasso: Picasso,
|
|
7060
|
-
Pichiu: Pichiu,
|
|
7061
7230
|
Quartz: Quartz,
|
|
7062
7231
|
Robonomics: Robonomics,
|
|
7063
7232
|
Shiden: Shiden,
|
|
@@ -7065,8 +7234,13 @@ var pallets = {
|
|
|
7065
7234
|
Equilibrium: Equilibrium,
|
|
7066
7235
|
Unique: Unique,
|
|
7067
7236
|
Crust: Crust,
|
|
7068
|
-
|
|
7069
|
-
|
|
7237
|
+
Manta: Manta,
|
|
7238
|
+
Genshiro: Genshiro,
|
|
7239
|
+
Nodle: Nodle,
|
|
7240
|
+
OriginTrail: OriginTrail,
|
|
7241
|
+
Pendulum: Pendulum,
|
|
7242
|
+
Zeitgeist: Zeitgeist,
|
|
7243
|
+
Polkadex: Polkadex
|
|
7070
7244
|
};
|
|
7071
7245
|
|
|
7072
7246
|
var palletsMapJson = /*#__PURE__*/Object.freeze({
|
|
@@ -7074,6 +7248,8 @@ var palletsMapJson = /*#__PURE__*/Object.freeze({
|
|
|
7074
7248
|
Acala: Acala,
|
|
7075
7249
|
Altair: Altair,
|
|
7076
7250
|
Amplitude: Amplitude,
|
|
7251
|
+
AssetHubKusama: AssetHubKusama,
|
|
7252
|
+
AssetHubPolkadot: AssetHubPolkadot,
|
|
7077
7253
|
Astar: Astar,
|
|
7078
7254
|
Bajun: Bajun,
|
|
7079
7255
|
Basilisk: Basilisk,
|
|
@@ -7088,37 +7264,37 @@ var palletsMapJson = /*#__PURE__*/Object.freeze({
|
|
|
7088
7264
|
Crust: Crust,
|
|
7089
7265
|
CrustShadow: CrustShadow,
|
|
7090
7266
|
Darwinia: Darwinia,
|
|
7091
|
-
Dorafactory: Dorafactory,
|
|
7092
|
-
Efinity: Efinity,
|
|
7093
7267
|
Encointer: Encointer,
|
|
7094
7268
|
Equilibrium: Equilibrium,
|
|
7269
|
+
Genshiro: Genshiro,
|
|
7095
7270
|
HydraDX: HydraDX,
|
|
7096
7271
|
Imbue: Imbue,
|
|
7097
7272
|
Integritee: Integritee,
|
|
7098
7273
|
Interlay: Interlay,
|
|
7099
7274
|
InvArchTinker: InvArchTinker,
|
|
7100
|
-
Ipci: Ipci,
|
|
7101
7275
|
Karura: Karura,
|
|
7102
|
-
Kico: Kico,
|
|
7103
7276
|
Kintsugi: Kintsugi,
|
|
7104
7277
|
Kylin: Kylin,
|
|
7105
7278
|
Litentry: Litentry,
|
|
7106
7279
|
Litmus: Litmus,
|
|
7107
7280
|
Mangata: Mangata,
|
|
7281
|
+
Manta: Manta,
|
|
7108
7282
|
Moonbeam: Moonbeam,
|
|
7109
7283
|
Moonriver: Moonriver,
|
|
7284
|
+
Nodle: Nodle,
|
|
7285
|
+
OriginTrail: OriginTrail,
|
|
7110
7286
|
Parallel: Parallel,
|
|
7111
7287
|
ParallelHeiko: ParallelHeiko,
|
|
7288
|
+
Pendulum: Pendulum,
|
|
7112
7289
|
Picasso: Picasso,
|
|
7113
|
-
Pichiu: Pichiu,
|
|
7114
7290
|
Pioneer: Pioneer,
|
|
7291
|
+
Polkadex: Polkadex,
|
|
7115
7292
|
Quartz: Quartz,
|
|
7116
7293
|
Robonomics: Robonomics,
|
|
7117
7294
|
Shiden: Shiden,
|
|
7118
|
-
Statemine: Statemine,
|
|
7119
|
-
Statemint: Statemint,
|
|
7120
7295
|
Turing: Turing,
|
|
7121
7296
|
Unique: Unique,
|
|
7297
|
+
Zeitgeist: Zeitgeist,
|
|
7122
7298
|
default: pallets
|
|
7123
7299
|
});
|
|
7124
7300
|
|
|
@@ -7131,4 +7307,4 @@ var getSupportedPallets = function getSupportedPallets(node) {
|
|
|
7131
7307
|
return palletsMap[node].supportedPallets;
|
|
7132
7308
|
};
|
|
7133
7309
|
|
|
7134
|
-
export { Builder, IncompatibleNodesError, InvalidCurrencyError, NODE_NAMES, NoXCMSupportImplementedError, NodeNotSupportedError, SUPPORTED_PALLETS, ScenarioNotSupportedError, Version, index$4 as assets, index as closeChannels, getAllAssetsSymbols, getAssetDecimals, getAssetId, getAssetsObject, getDefaultPallet, getNativeAssets, getNodeEndpointOption, getOtherAssets, getParaId, getRelayChainSymbol, getSupportedPallets, getTNode, hasSupportForAsset, index$1 as openChannels, index$3 as xcmPallet, index$2 as xyk };
|
|
7310
|
+
export { Builder, IncompatibleNodesError, InvalidCurrencyError, NODE_NAMES, NoXCMSupportImplementedError, NodeNotSupportedError, SUPPORTED_PALLETS, ScenarioNotSupportedError, Version, index$4 as assets, index as closeChannels, getAllAssetsSymbols, getAssetDecimals, getAssetId, getAssetsObject, getDefaultPallet, getNativeAssets, getNode, getNodeEndpointOption, getOtherAssets, getParaId, getRelayChainSymbol, getSupportedPallets, getTNode, hasSupportForAsset, index$1 as openChannels, index$3 as xcmPallet, index$2 as xyk };
|