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