@paraspell/sdk 7.2.2 → 7.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1694 -1313
- package/dist/index.d.ts +217 -217
- package/dist/index.mjs +1693 -1312
- package/dist/papi/index.cjs +1698 -1302
- package/dist/papi/index.d.ts +191 -186
- package/dist/papi/index.mjs +1697 -1300
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -584,163 +584,10 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
584
584
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
585
585
|
};
|
|
586
586
|
|
|
587
|
-
/**
|
|
588
|
-
* Used to inform user, that currency they wish to use is not registered on either origin or destination Parachain
|
|
589
|
-
*/
|
|
590
|
-
var InvalidCurrencyError = /*#__PURE__*/function (_Error) {
|
|
591
|
-
/**
|
|
592
|
-
* Constructs a new InvalidCurrencyError.
|
|
593
|
-
*
|
|
594
|
-
* @param message - The error message.
|
|
595
|
-
*/
|
|
596
|
-
function InvalidCurrencyError(message) {
|
|
597
|
-
var _this;
|
|
598
|
-
_classCallCheck(this, InvalidCurrencyError);
|
|
599
|
-
_this = _callSuper(this, InvalidCurrencyError, [message]);
|
|
600
|
-
_this.name = 'InvalidCurrencyError';
|
|
601
|
-
return _this;
|
|
602
|
-
}
|
|
603
|
-
_inherits(InvalidCurrencyError, _Error);
|
|
604
|
-
return _createClass(InvalidCurrencyError);
|
|
605
|
-
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
606
|
-
|
|
607
|
-
/**
|
|
608
|
-
* Used to inform user, that Parachain they wish to use is not supported yet
|
|
609
|
-
*/
|
|
610
|
-
var NodeNotSupportedError = /*#__PURE__*/function (_Error) {
|
|
611
|
-
/**
|
|
612
|
-
* Constructs a new NodeNotSupportedError.
|
|
613
|
-
*
|
|
614
|
-
* @param message - Optional custom error message.
|
|
615
|
-
*/
|
|
616
|
-
function NodeNotSupportedError(message) {
|
|
617
|
-
var _this;
|
|
618
|
-
_classCallCheck(this, NodeNotSupportedError);
|
|
619
|
-
_this = _callSuper(this, NodeNotSupportedError, [message !== null && message !== void 0 ? message : 'These nodes do not support XCM transfers from Relay / to Relay chain.']);
|
|
620
|
-
_this.name = 'NodeNotSupported';
|
|
621
|
-
return _this;
|
|
622
|
-
}
|
|
623
|
-
_inherits(NodeNotSupportedError, _Error);
|
|
624
|
-
return _createClass(NodeNotSupportedError);
|
|
625
|
-
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
626
|
-
|
|
627
|
-
/**
|
|
628
|
-
* Used to inform user, that Parachain they wish to use has not yet implemented full XCM Support
|
|
629
|
-
*/
|
|
630
|
-
var NoXCMSupportImplementedError = /*#__PURE__*/function (_Error) {
|
|
631
|
-
/**
|
|
632
|
-
* Constructs a new NoXCMSupportImplementedError.
|
|
633
|
-
*
|
|
634
|
-
* @param node - The node for which XCM support is not implemented.
|
|
635
|
-
*/
|
|
636
|
-
function NoXCMSupportImplementedError(node) {
|
|
637
|
-
var _this;
|
|
638
|
-
_classCallCheck(this, NoXCMSupportImplementedError);
|
|
639
|
-
_this = _callSuper(this, NoXCMSupportImplementedError, ["No XCM support implemented for ".concat(node, " node yet.")]);
|
|
640
|
-
_this.name = 'NoXCMSupportImplemented';
|
|
641
|
-
return _this;
|
|
642
|
-
}
|
|
643
|
-
_inherits(NoXCMSupportImplementedError, _Error);
|
|
644
|
-
return _createClass(NoXCMSupportImplementedError);
|
|
645
|
-
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
646
|
-
|
|
647
|
-
/**
|
|
648
|
-
* Used to inform user, that Parachain they wish to use does not support scenario they wish to use yet
|
|
649
|
-
*/
|
|
650
|
-
var ScenarioNotSupportedError = /*#__PURE__*/function (_Error) {
|
|
651
|
-
/**
|
|
652
|
-
* Constructs a new ScenarioNotSupportedError.
|
|
653
|
-
*
|
|
654
|
-
* @param node - The node where the scenario is not supported.
|
|
655
|
-
* @param scenario - The scenario that is not supported.
|
|
656
|
-
* @param message - Optional custom error message.
|
|
657
|
-
*/
|
|
658
|
-
function ScenarioNotSupportedError(node, scenario, message) {
|
|
659
|
-
var _this;
|
|
660
|
-
_classCallCheck(this, ScenarioNotSupportedError);
|
|
661
|
-
_this = _callSuper(this, ScenarioNotSupportedError, [message !== null && message !== void 0 ? message : "Scenario ".concat(scenario, " not supported for node ").concat(node)]);
|
|
662
|
-
_this.name = 'ScenarioNotSupported';
|
|
663
|
-
return _this;
|
|
664
|
-
}
|
|
665
|
-
_inherits(ScenarioNotSupportedError, _Error);
|
|
666
|
-
return _createClass(ScenarioNotSupportedError);
|
|
667
|
-
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
668
|
-
|
|
669
|
-
/**
|
|
670
|
-
* Error thrown when nodes from different relay chains are incompatible.
|
|
671
|
-
*/
|
|
672
|
-
var IncompatibleNodesError = /*#__PURE__*/function (_Error) {
|
|
673
|
-
/**
|
|
674
|
-
* Constructs a new IncompatibleNodesError.
|
|
675
|
-
*
|
|
676
|
-
* @param message - Optional custom error message.
|
|
677
|
-
*/
|
|
678
|
-
function IncompatibleNodesError(message) {
|
|
679
|
-
var _this;
|
|
680
|
-
_classCallCheck(this, IncompatibleNodesError);
|
|
681
|
-
_this = _callSuper(this, IncompatibleNodesError, [message !== null && message !== void 0 ? message : 'Transactions between nodes on different relaychains are not yet possible.']);
|
|
682
|
-
_this.name = 'IncompatibleNodes';
|
|
683
|
-
return _this;
|
|
684
|
-
}
|
|
685
|
-
_inherits(IncompatibleNodesError, _Error);
|
|
686
|
-
return _createClass(IncompatibleNodesError);
|
|
687
|
-
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
688
|
-
|
|
689
|
-
/**
|
|
690
|
-
* Error thrown when multiple assets with the same symbol are found.
|
|
691
|
-
*/
|
|
692
|
-
var DuplicateAssetError = /*#__PURE__*/function (_Error) {
|
|
693
|
-
/**
|
|
694
|
-
* Constructs a new DuplicateAssetError.
|
|
695
|
-
*
|
|
696
|
-
* @param symbol - The symbol of the asset causing the duplication error.
|
|
697
|
-
*/
|
|
698
|
-
function DuplicateAssetError(msg) {
|
|
699
|
-
var _this;
|
|
700
|
-
_classCallCheck(this, DuplicateAssetError);
|
|
701
|
-
_this = _callSuper(this, DuplicateAssetError, [msg]);
|
|
702
|
-
_this.name = 'DuplicateAsset';
|
|
703
|
-
return _this;
|
|
704
|
-
}
|
|
705
|
-
_inherits(DuplicateAssetError, _Error);
|
|
706
|
-
return _createClass(DuplicateAssetError);
|
|
707
|
-
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
708
|
-
|
|
709
|
-
/**
|
|
710
|
-
* Error thrown when multiple assets with the same symbol are found.
|
|
711
|
-
*/
|
|
712
|
-
var DuplicateAssetIdError = /*#__PURE__*/function (_Error) {
|
|
713
|
-
/**
|
|
714
|
-
* Constructs a new DuplicateAssetError.
|
|
715
|
-
*
|
|
716
|
-
* @param symbol - The symbol of the asset causing the duplication error.
|
|
717
|
-
*/
|
|
718
|
-
function DuplicateAssetIdError(id) {
|
|
719
|
-
var _this;
|
|
720
|
-
_classCallCheck(this, DuplicateAssetIdError);
|
|
721
|
-
_this = _callSuper(this, DuplicateAssetIdError, ["Multiple assets found with the same ID: ".concat(id, ". Please specify asset directly by symbol using .currency({symbol: <ASSET_SYMBOL>})")]);
|
|
722
|
-
_this.name = 'DuplicateAssetId';
|
|
723
|
-
return _this;
|
|
724
|
-
}
|
|
725
|
-
_inherits(DuplicateAssetIdError, _Error);
|
|
726
|
-
return _createClass(DuplicateAssetIdError);
|
|
727
|
-
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
728
|
-
|
|
729
|
-
var KeepAliveError = /*#__PURE__*/function (_Error) {
|
|
730
|
-
function KeepAliveError(message) {
|
|
731
|
-
var _this;
|
|
732
|
-
_classCallCheck(this, KeepAliveError);
|
|
733
|
-
_this = _callSuper(this, KeepAliveError, [message]);
|
|
734
|
-
_this.name = 'KeepAliveError';
|
|
735
|
-
return _this;
|
|
736
|
-
}
|
|
737
|
-
_inherits(KeepAliveError, _Error);
|
|
738
|
-
return _createClass(KeepAliveError);
|
|
739
|
-
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
740
|
-
|
|
741
587
|
var Polkadot$2 = {
|
|
742
588
|
relayChainAssetSymbol: "DOT",
|
|
743
589
|
nativeAssetSymbol: "DOT",
|
|
590
|
+
isEVM: false,
|
|
744
591
|
nativeAssets: [
|
|
745
592
|
{
|
|
746
593
|
symbol: "DOT",
|
|
@@ -753,6 +600,7 @@ var Polkadot$2 = {
|
|
|
753
600
|
var Kusama$2 = {
|
|
754
601
|
relayChainAssetSymbol: "KSM",
|
|
755
602
|
nativeAssetSymbol: "KSM",
|
|
603
|
+
isEVM: false,
|
|
756
604
|
nativeAssets: [
|
|
757
605
|
{
|
|
758
606
|
symbol: "KSM",
|
|
@@ -765,6 +613,7 @@ var Kusama$2 = {
|
|
|
765
613
|
var Polimec$4 = {
|
|
766
614
|
relayChainAssetSymbol: "DOT",
|
|
767
615
|
nativeAssetSymbol: "PLMC",
|
|
616
|
+
isEVM: false,
|
|
768
617
|
nativeAssets: [
|
|
769
618
|
{
|
|
770
619
|
symbol: "PLMC",
|
|
@@ -824,6 +673,7 @@ var Polimec$4 = {
|
|
|
824
673
|
var Acala$4 = {
|
|
825
674
|
relayChainAssetSymbol: "DOT",
|
|
826
675
|
nativeAssetSymbol: "ACA",
|
|
676
|
+
isEVM: false,
|
|
827
677
|
nativeAssets: [
|
|
828
678
|
{
|
|
829
679
|
symbol: "ACA",
|
|
@@ -1004,7 +854,10 @@ var Acala$4 = {
|
|
|
1004
854
|
Parachain: 2011
|
|
1005
855
|
},
|
|
1006
856
|
{
|
|
1007
|
-
GeneralKey:
|
|
857
|
+
GeneralKey: {
|
|
858
|
+
length: 3,
|
|
859
|
+
data: "0x6571640000000000000000000000000000000000000000000000000000000000"
|
|
860
|
+
}
|
|
1008
861
|
}
|
|
1009
862
|
]
|
|
1010
863
|
}
|
|
@@ -1035,7 +888,10 @@ var Acala$4 = {
|
|
|
1035
888
|
Parachain: 2012
|
|
1036
889
|
},
|
|
1037
890
|
{
|
|
1038
|
-
GeneralKey:
|
|
891
|
+
GeneralKey: {
|
|
892
|
+
length: 4,
|
|
893
|
+
data: "0x5041524100000000000000000000000000000000000000000000000000000000"
|
|
894
|
+
}
|
|
1039
895
|
}
|
|
1040
896
|
]
|
|
1041
897
|
}
|
|
@@ -1053,7 +909,10 @@ var Acala$4 = {
|
|
|
1053
909
|
Parachain: 2031
|
|
1054
910
|
},
|
|
1055
911
|
{
|
|
1056
|
-
GeneralKey:
|
|
912
|
+
GeneralKey: {
|
|
913
|
+
length: 2,
|
|
914
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
915
|
+
}
|
|
1057
916
|
}
|
|
1058
917
|
]
|
|
1059
918
|
}
|
|
@@ -1071,7 +930,10 @@ var Acala$4 = {
|
|
|
1071
930
|
Parachain: 2032
|
|
1072
931
|
},
|
|
1073
932
|
{
|
|
1074
|
-
GeneralKey:
|
|
933
|
+
GeneralKey: {
|
|
934
|
+
length: 2,
|
|
935
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
936
|
+
}
|
|
1075
937
|
}
|
|
1076
938
|
]
|
|
1077
939
|
}
|
|
@@ -1089,7 +951,10 @@ var Acala$4 = {
|
|
|
1089
951
|
Parachain: 2032
|
|
1090
952
|
},
|
|
1091
953
|
{
|
|
1092
|
-
GeneralKey:
|
|
954
|
+
GeneralKey: {
|
|
955
|
+
length: 2,
|
|
956
|
+
data: "0x0002000000000000000000000000000000000000000000000000000000000000"
|
|
957
|
+
}
|
|
1093
958
|
}
|
|
1094
959
|
]
|
|
1095
960
|
}
|
|
@@ -1157,6 +1022,7 @@ var Acala$4 = {
|
|
|
1157
1022
|
var BridgeHubPolkadot$4 = {
|
|
1158
1023
|
relayChainAssetSymbol: "DOT",
|
|
1159
1024
|
nativeAssetSymbol: "DOT",
|
|
1025
|
+
isEVM: false,
|
|
1160
1026
|
nativeAssets: [
|
|
1161
1027
|
{
|
|
1162
1028
|
symbol: "DOT",
|
|
@@ -1169,6 +1035,7 @@ var BridgeHubPolkadot$4 = {
|
|
|
1169
1035
|
var BridgeHubKusama$4 = {
|
|
1170
1036
|
relayChainAssetSymbol: "KSM",
|
|
1171
1037
|
nativeAssetSymbol: "KSM",
|
|
1038
|
+
isEVM: false,
|
|
1172
1039
|
nativeAssets: [
|
|
1173
1040
|
{
|
|
1174
1041
|
symbol: "KSM",
|
|
@@ -1181,6 +1048,7 @@ var BridgeHubKusama$4 = {
|
|
|
1181
1048
|
var Astar$4 = {
|
|
1182
1049
|
relayChainAssetSymbol: "DOT",
|
|
1183
1050
|
nativeAssetSymbol: "ASTR",
|
|
1051
|
+
isEVM: false,
|
|
1184
1052
|
nativeAssets: [
|
|
1185
1053
|
{
|
|
1186
1054
|
symbol: "ASTR",
|
|
@@ -1274,7 +1142,10 @@ var Astar$4 = {
|
|
|
1274
1142
|
Parachain: 2000
|
|
1275
1143
|
},
|
|
1276
1144
|
{
|
|
1277
|
-
GeneralKey:
|
|
1145
|
+
GeneralKey: {
|
|
1146
|
+
length: 2,
|
|
1147
|
+
data: "0x0003000000000000000000000000000000000000000000000000000000000000"
|
|
1148
|
+
}
|
|
1278
1149
|
}
|
|
1279
1150
|
]
|
|
1280
1151
|
}
|
|
@@ -1292,7 +1163,10 @@ var Astar$4 = {
|
|
|
1292
1163
|
Parachain: 2000
|
|
1293
1164
|
},
|
|
1294
1165
|
{
|
|
1295
|
-
GeneralKey:
|
|
1166
|
+
GeneralKey: {
|
|
1167
|
+
length: 2,
|
|
1168
|
+
data: "0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
1169
|
+
}
|
|
1296
1170
|
}
|
|
1297
1171
|
]
|
|
1298
1172
|
}
|
|
@@ -1310,7 +1184,10 @@ var Astar$4 = {
|
|
|
1310
1184
|
Parachain: 2000
|
|
1311
1185
|
},
|
|
1312
1186
|
{
|
|
1313
|
-
GeneralKey:
|
|
1187
|
+
GeneralKey: {
|
|
1188
|
+
length: 2,
|
|
1189
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
1190
|
+
}
|
|
1314
1191
|
}
|
|
1315
1192
|
]
|
|
1316
1193
|
}
|
|
@@ -1359,7 +1236,10 @@ var Astar$4 = {
|
|
|
1359
1236
|
Parachain: 2011
|
|
1360
1237
|
},
|
|
1361
1238
|
{
|
|
1362
|
-
GeneralKey:
|
|
1239
|
+
GeneralKey: {
|
|
1240
|
+
length: 3,
|
|
1241
|
+
data: "0x6571640000000000000000000000000000000000000000000000000000000000"
|
|
1242
|
+
}
|
|
1363
1243
|
}
|
|
1364
1244
|
]
|
|
1365
1245
|
}
|
|
@@ -1390,7 +1270,10 @@ var Astar$4 = {
|
|
|
1390
1270
|
Parachain: 2030
|
|
1391
1271
|
},
|
|
1392
1272
|
{
|
|
1393
|
-
GeneralKey:
|
|
1273
|
+
GeneralKey: {
|
|
1274
|
+
length: 2,
|
|
1275
|
+
data: "0x0804000000000000000000000000000000000000000000000000000000000000"
|
|
1276
|
+
}
|
|
1394
1277
|
}
|
|
1395
1278
|
]
|
|
1396
1279
|
}
|
|
@@ -1408,7 +1291,10 @@ var Astar$4 = {
|
|
|
1408
1291
|
Parachain: 2030
|
|
1409
1292
|
},
|
|
1410
1293
|
{
|
|
1411
|
-
GeneralKey:
|
|
1294
|
+
GeneralKey: {
|
|
1295
|
+
length: 2,
|
|
1296
|
+
data: "0x0403000000000000000000000000000000000000000000000000000000000000"
|
|
1297
|
+
}
|
|
1412
1298
|
}
|
|
1413
1299
|
]
|
|
1414
1300
|
}
|
|
@@ -1426,7 +1312,10 @@ var Astar$4 = {
|
|
|
1426
1312
|
Parachain: 2030
|
|
1427
1313
|
},
|
|
1428
1314
|
{
|
|
1429
|
-
GeneralKey:
|
|
1315
|
+
GeneralKey: {
|
|
1316
|
+
length: 2,
|
|
1317
|
+
data: "0x0908000000000000000000000000000000000000000000000000000000000000"
|
|
1318
|
+
}
|
|
1430
1319
|
}
|
|
1431
1320
|
]
|
|
1432
1321
|
}
|
|
@@ -1444,7 +1333,10 @@ var Astar$4 = {
|
|
|
1444
1333
|
Parachain: 2030
|
|
1445
1334
|
},
|
|
1446
1335
|
{
|
|
1447
|
-
GeneralKey:
|
|
1336
|
+
GeneralKey: {
|
|
1337
|
+
length: 2,
|
|
1338
|
+
data: "0x0900000000000000000000000000000000000000000000000000000000000000"
|
|
1339
|
+
}
|
|
1448
1340
|
}
|
|
1449
1341
|
]
|
|
1450
1342
|
}
|
|
@@ -1462,7 +1354,10 @@ var Astar$4 = {
|
|
|
1462
1354
|
Parachain: 2030
|
|
1463
1355
|
},
|
|
1464
1356
|
{
|
|
1465
|
-
GeneralKey:
|
|
1357
|
+
GeneralKey: {
|
|
1358
|
+
length: 2,
|
|
1359
|
+
data: "0x0904000000000000000000000000000000000000000000000000000000000000"
|
|
1360
|
+
}
|
|
1466
1361
|
}
|
|
1467
1362
|
]
|
|
1468
1363
|
}
|
|
@@ -1480,7 +1375,10 @@ var Astar$4 = {
|
|
|
1480
1375
|
Parachain: 2030
|
|
1481
1376
|
},
|
|
1482
1377
|
{
|
|
1483
|
-
GeneralKey:
|
|
1378
|
+
GeneralKey: {
|
|
1379
|
+
length: 2,
|
|
1380
|
+
data: "0x0903000000000000000000000000000000000000000000000000000000000000"
|
|
1381
|
+
}
|
|
1484
1382
|
}
|
|
1485
1383
|
]
|
|
1486
1384
|
}
|
|
@@ -1498,7 +1396,10 @@ var Astar$4 = {
|
|
|
1498
1396
|
Parachain: 2030
|
|
1499
1397
|
},
|
|
1500
1398
|
{
|
|
1501
|
-
GeneralKey:
|
|
1399
|
+
GeneralKey: {
|
|
1400
|
+
length: 2,
|
|
1401
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
1402
|
+
}
|
|
1502
1403
|
}
|
|
1503
1404
|
]
|
|
1504
1405
|
}
|
|
@@ -1516,7 +1417,10 @@ var Astar$4 = {
|
|
|
1516
1417
|
Parachain: 2030
|
|
1517
1418
|
},
|
|
1518
1419
|
{
|
|
1519
|
-
GeneralKey:
|
|
1420
|
+
GeneralKey: {
|
|
1421
|
+
length: 2,
|
|
1422
|
+
data: "0x0901000000000000000000000000000000000000000000000000000000000000"
|
|
1423
|
+
}
|
|
1520
1424
|
}
|
|
1521
1425
|
]
|
|
1522
1426
|
}
|
|
@@ -1534,7 +1438,10 @@ var Astar$4 = {
|
|
|
1534
1438
|
Parachain: 2032
|
|
1535
1439
|
},
|
|
1536
1440
|
{
|
|
1537
|
-
GeneralKey:
|
|
1441
|
+
GeneralKey: {
|
|
1442
|
+
length: 2,
|
|
1443
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
1444
|
+
}
|
|
1538
1445
|
}
|
|
1539
1446
|
]
|
|
1540
1447
|
}
|
|
@@ -1552,7 +1459,10 @@ var Astar$4 = {
|
|
|
1552
1459
|
Parachain: 2032
|
|
1553
1460
|
},
|
|
1554
1461
|
{
|
|
1555
|
-
GeneralKey:
|
|
1462
|
+
GeneralKey: {
|
|
1463
|
+
length: 2,
|
|
1464
|
+
data: "0x0002000000000000000000000000000000000000000000000000000000000000"
|
|
1465
|
+
}
|
|
1556
1466
|
}
|
|
1557
1467
|
]
|
|
1558
1468
|
}
|
|
@@ -1638,10 +1548,16 @@ var Astar$4 = {
|
|
|
1638
1548
|
GeneralIndex: 2
|
|
1639
1549
|
},
|
|
1640
1550
|
{
|
|
1641
|
-
GeneralKey:
|
|
1551
|
+
GeneralKey: {
|
|
1552
|
+
length: 4,
|
|
1553
|
+
data: "0x4555524300000000000000000000000000000000000000000000000000000000"
|
|
1554
|
+
}
|
|
1642
1555
|
},
|
|
1643
1556
|
{
|
|
1644
|
-
GeneralKey:
|
|
1557
|
+
GeneralKey: {
|
|
1558
|
+
length: 32,
|
|
1559
|
+
data: "0x2112ee863867e4e219fe254c0918b00bc9ea400775bfc3ab4430971ce505877c"
|
|
1560
|
+
}
|
|
1645
1561
|
}
|
|
1646
1562
|
]
|
|
1647
1563
|
}
|
|
@@ -1691,6 +1607,7 @@ var Astar$4 = {
|
|
|
1691
1607
|
var BifrostPolkadot$4 = {
|
|
1692
1608
|
relayChainAssetSymbol: "DOT",
|
|
1693
1609
|
nativeAssetSymbol: "BNC",
|
|
1610
|
+
isEVM: false,
|
|
1694
1611
|
nativeAssets: [
|
|
1695
1612
|
{
|
|
1696
1613
|
symbol: "BNC",
|
|
@@ -1710,7 +1627,10 @@ var BifrostPolkadot$4 = {
|
|
|
1710
1627
|
Parachain: 2032
|
|
1711
1628
|
},
|
|
1712
1629
|
{
|
|
1713
|
-
GeneralKey:
|
|
1630
|
+
GeneralKey: {
|
|
1631
|
+
length: 2,
|
|
1632
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
1633
|
+
}
|
|
1714
1634
|
}
|
|
1715
1635
|
]
|
|
1716
1636
|
}
|
|
@@ -2044,7 +1964,10 @@ var BifrostPolkadot$4 = {
|
|
|
2044
1964
|
Parachain: 2030
|
|
2045
1965
|
},
|
|
2046
1966
|
{
|
|
2047
|
-
GeneralKey:
|
|
1967
|
+
GeneralKey: {
|
|
1968
|
+
length: 2,
|
|
1969
|
+
data: "0x0403000000000000000000000000000000000000000000000000000000000000"
|
|
1970
|
+
}
|
|
2048
1971
|
}
|
|
2049
1972
|
]
|
|
2050
1973
|
}
|
|
@@ -2062,7 +1985,10 @@ var BifrostPolkadot$4 = {
|
|
|
2062
1985
|
Parachain: 2032
|
|
2063
1986
|
},
|
|
2064
1987
|
{
|
|
2065
|
-
GeneralKey:
|
|
1988
|
+
GeneralKey: {
|
|
1989
|
+
length: 2,
|
|
1990
|
+
data: "0x0002000000000000000000000000000000000000000000000000000000000000"
|
|
1991
|
+
}
|
|
2066
1992
|
}
|
|
2067
1993
|
]
|
|
2068
1994
|
}
|
|
@@ -2086,6 +2012,7 @@ var BifrostPolkadot$4 = {
|
|
|
2086
2012
|
var Bitgreen$4 = {
|
|
2087
2013
|
relayChainAssetSymbol: "DOT",
|
|
2088
2014
|
nativeAssetSymbol: "BBB",
|
|
2015
|
+
isEVM: false,
|
|
2089
2016
|
nativeAssets: [
|
|
2090
2017
|
{
|
|
2091
2018
|
symbol: "BBB",
|
|
@@ -2098,6 +2025,7 @@ var Bitgreen$4 = {
|
|
|
2098
2025
|
var Centrifuge$4 = {
|
|
2099
2026
|
relayChainAssetSymbol: "DOT",
|
|
2100
2027
|
nativeAssetSymbol: "CFG",
|
|
2028
|
+
isEVM: false,
|
|
2101
2029
|
nativeAssets: [
|
|
2102
2030
|
{
|
|
2103
2031
|
symbol: "CFG",
|
|
@@ -2170,7 +2098,10 @@ var Centrifuge$4 = {
|
|
|
2170
2098
|
Parachain: 2000
|
|
2171
2099
|
},
|
|
2172
2100
|
{
|
|
2173
|
-
GeneralKey:
|
|
2101
|
+
GeneralKey: {
|
|
2102
|
+
length: 2,
|
|
2103
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
2104
|
+
}
|
|
2174
2105
|
}
|
|
2175
2106
|
]
|
|
2176
2107
|
}
|
|
@@ -2299,7 +2230,10 @@ var Centrifuge$4 = {
|
|
|
2299
2230
|
Parachain: 2031
|
|
2300
2231
|
},
|
|
2301
2232
|
{
|
|
2302
|
-
GeneralKey:
|
|
2233
|
+
GeneralKey: {
|
|
2234
|
+
length: 2,
|
|
2235
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
2236
|
+
}
|
|
2303
2237
|
}
|
|
2304
2238
|
]
|
|
2305
2239
|
}
|
|
@@ -2403,6 +2337,7 @@ var Centrifuge$4 = {
|
|
|
2403
2337
|
var Subsocial$4 = {
|
|
2404
2338
|
relayChainAssetSymbol: "DOT",
|
|
2405
2339
|
nativeAssetSymbol: "SUB",
|
|
2340
|
+
isEVM: false,
|
|
2406
2341
|
nativeAssets: [
|
|
2407
2342
|
{
|
|
2408
2343
|
symbol: "SUB",
|
|
@@ -2415,6 +2350,7 @@ var Subsocial$4 = {
|
|
|
2415
2350
|
var ComposableFinance$4 = {
|
|
2416
2351
|
relayChainAssetSymbol: "DOT",
|
|
2417
2352
|
nativeAssetSymbol: "LAYR",
|
|
2353
|
+
isEVM: false,
|
|
2418
2354
|
nativeAssets: [
|
|
2419
2355
|
{
|
|
2420
2356
|
symbol: "LAYR",
|
|
@@ -2554,6 +2490,7 @@ var ComposableFinance$4 = {
|
|
|
2554
2490
|
var Darwinia$4 = {
|
|
2555
2491
|
relayChainAssetSymbol: "DOT",
|
|
2556
2492
|
nativeAssetSymbol: "RING",
|
|
2493
|
+
isEVM: true,
|
|
2557
2494
|
nativeAssets: [
|
|
2558
2495
|
{
|
|
2559
2496
|
symbol: "RING",
|
|
@@ -2619,6 +2556,7 @@ var Darwinia$4 = {
|
|
|
2619
2556
|
var Hydration$4 = {
|
|
2620
2557
|
relayChainAssetSymbol: "DOT",
|
|
2621
2558
|
nativeAssetSymbol: "HDX",
|
|
2559
|
+
isEVM: false,
|
|
2622
2560
|
nativeAssets: [
|
|
2623
2561
|
{
|
|
2624
2562
|
symbol: "HDX",
|
|
@@ -2841,7 +2779,10 @@ var Hydration$4 = {
|
|
|
2841
2779
|
Parachain: 2000
|
|
2842
2780
|
},
|
|
2843
2781
|
{
|
|
2844
|
-
GeneralKey:
|
|
2782
|
+
GeneralKey: {
|
|
2783
|
+
length: 21,
|
|
2784
|
+
data: "0x025a4d6acdc4e3e5ab15717f407afe957f7a2425780000000000000000000000"
|
|
2785
|
+
}
|
|
2845
2786
|
}
|
|
2846
2787
|
]
|
|
2847
2788
|
}
|
|
@@ -2860,7 +2801,10 @@ var Hydration$4 = {
|
|
|
2860
2801
|
Parachain: 2000
|
|
2861
2802
|
},
|
|
2862
2803
|
{
|
|
2863
|
-
GeneralKey:
|
|
2804
|
+
GeneralKey: {
|
|
2805
|
+
length: 2,
|
|
2806
|
+
data: "0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
2807
|
+
}
|
|
2864
2808
|
}
|
|
2865
2809
|
]
|
|
2866
2810
|
}
|
|
@@ -2878,7 +2822,10 @@ var Hydration$4 = {
|
|
|
2878
2822
|
Parachain: 2000
|
|
2879
2823
|
},
|
|
2880
2824
|
{
|
|
2881
|
-
GeneralKey:
|
|
2825
|
+
GeneralKey: {
|
|
2826
|
+
length: 21,
|
|
2827
|
+
data: "0x02f4c723e61709d90f89939c1852f516e373d418a80000000000000000000000"
|
|
2828
|
+
}
|
|
2882
2829
|
}
|
|
2883
2830
|
]
|
|
2884
2831
|
}
|
|
@@ -2896,7 +2843,10 @@ var Hydration$4 = {
|
|
|
2896
2843
|
Parachain: 2000
|
|
2897
2844
|
},
|
|
2898
2845
|
{
|
|
2899
|
-
GeneralKey:
|
|
2846
|
+
GeneralKey: {
|
|
2847
|
+
length: 21,
|
|
2848
|
+
data: "0x0254a37a01cd75b616d63e0ab665bffdb0143c52ae0000000000000000000000"
|
|
2849
|
+
}
|
|
2900
2850
|
}
|
|
2901
2851
|
]
|
|
2902
2852
|
}
|
|
@@ -2915,7 +2865,10 @@ var Hydration$4 = {
|
|
|
2915
2865
|
Parachain: 2000
|
|
2916
2866
|
},
|
|
2917
2867
|
{
|
|
2918
|
-
GeneralKey:
|
|
2868
|
+
GeneralKey: {
|
|
2869
|
+
length: 21,
|
|
2870
|
+
data: "0x0207df96d1341a7d16ba1ad431e2c847d978bc2bce0000000000000000000000"
|
|
2871
|
+
}
|
|
2919
2872
|
}
|
|
2920
2873
|
]
|
|
2921
2874
|
}
|
|
@@ -2934,7 +2887,10 @@ var Hydration$4 = {
|
|
|
2934
2887
|
Parachain: 2000
|
|
2935
2888
|
},
|
|
2936
2889
|
{
|
|
2937
|
-
GeneralKey:
|
|
2890
|
+
GeneralKey: {
|
|
2891
|
+
length: 2,
|
|
2892
|
+
data: "0x0003000000000000000000000000000000000000000000000000000000000000"
|
|
2893
|
+
}
|
|
2938
2894
|
}
|
|
2939
2895
|
]
|
|
2940
2896
|
}
|
|
@@ -2952,7 +2908,10 @@ var Hydration$4 = {
|
|
|
2952
2908
|
Parachain: 2000
|
|
2953
2909
|
},
|
|
2954
2910
|
{
|
|
2955
|
-
GeneralKey:
|
|
2911
|
+
GeneralKey: {
|
|
2912
|
+
length: 21,
|
|
2913
|
+
data: "0x02c80084af223c8b598536178d9361dc55bfda68180000000000000000000000"
|
|
2914
|
+
}
|
|
2956
2915
|
}
|
|
2957
2916
|
]
|
|
2958
2917
|
}
|
|
@@ -3158,7 +3117,10 @@ var Hydration$4 = {
|
|
|
3158
3117
|
Parachain: 2030
|
|
3159
3118
|
},
|
|
3160
3119
|
{
|
|
3161
|
-
GeneralKey:
|
|
3120
|
+
GeneralKey: {
|
|
3121
|
+
length: 2,
|
|
3122
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
3123
|
+
}
|
|
3162
3124
|
}
|
|
3163
3125
|
]
|
|
3164
3126
|
}
|
|
@@ -3176,7 +3138,10 @@ var Hydration$4 = {
|
|
|
3176
3138
|
Parachain: 2030
|
|
3177
3139
|
},
|
|
3178
3140
|
{
|
|
3179
|
-
GeneralKey:
|
|
3141
|
+
GeneralKey: {
|
|
3142
|
+
length: 2,
|
|
3143
|
+
data: "0x0903000000000000000000000000000000000000000000000000000000000000"
|
|
3144
|
+
}
|
|
3180
3145
|
}
|
|
3181
3146
|
]
|
|
3182
3147
|
}
|
|
@@ -3194,7 +3159,10 @@ var Hydration$4 = {
|
|
|
3194
3159
|
Parachain: 2030
|
|
3195
3160
|
},
|
|
3196
3161
|
{
|
|
3197
|
-
GeneralKey:
|
|
3162
|
+
GeneralKey: {
|
|
3163
|
+
length: 2,
|
|
3164
|
+
data: "0x0900000000000000000000000000000000000000000000000000000000000000"
|
|
3165
|
+
}
|
|
3198
3166
|
}
|
|
3199
3167
|
]
|
|
3200
3168
|
}
|
|
@@ -3212,7 +3180,10 @@ var Hydration$4 = {
|
|
|
3212
3180
|
Parachain: 2031
|
|
3213
3181
|
},
|
|
3214
3182
|
{
|
|
3215
|
-
GeneralKey:
|
|
3183
|
+
GeneralKey: {
|
|
3184
|
+
length: 2,
|
|
3185
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
3186
|
+
}
|
|
3216
3187
|
}
|
|
3217
3188
|
]
|
|
3218
3189
|
}
|
|
@@ -3230,7 +3201,10 @@ var Hydration$4 = {
|
|
|
3230
3201
|
Parachain: 2032
|
|
3231
3202
|
},
|
|
3232
3203
|
{
|
|
3233
|
-
GeneralKey:
|
|
3204
|
+
GeneralKey: {
|
|
3205
|
+
length: 2,
|
|
3206
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
3207
|
+
}
|
|
3234
3208
|
}
|
|
3235
3209
|
]
|
|
3236
3210
|
}
|
|
@@ -3248,7 +3222,10 @@ var Hydration$4 = {
|
|
|
3248
3222
|
Parachain: 2032
|
|
3249
3223
|
},
|
|
3250
3224
|
{
|
|
3251
|
-
GeneralKey:
|
|
3225
|
+
GeneralKey: {
|
|
3226
|
+
length: 2,
|
|
3227
|
+
data: "0x0002000000000000000000000000000000000000000000000000000000000000"
|
|
3228
|
+
}
|
|
3252
3229
|
}
|
|
3253
3230
|
]
|
|
3254
3231
|
}
|
|
@@ -3310,7 +3287,10 @@ var Hydration$4 = {
|
|
|
3310
3287
|
Parachain: 2051
|
|
3311
3288
|
},
|
|
3312
3289
|
{
|
|
3313
|
-
GeneralKey:
|
|
3290
|
+
GeneralKey: {
|
|
3291
|
+
length: 4,
|
|
3292
|
+
data: "0x414a554e00000000000000000000000000000000000000000000000000000000"
|
|
3293
|
+
}
|
|
3314
3294
|
}
|
|
3315
3295
|
]
|
|
3316
3296
|
}
|
|
@@ -3341,7 +3321,10 @@ var Hydration$4 = {
|
|
|
3341
3321
|
Parachain: 2092
|
|
3342
3322
|
},
|
|
3343
3323
|
{
|
|
3344
|
-
GeneralKey:
|
|
3324
|
+
GeneralKey: {
|
|
3325
|
+
length: 2,
|
|
3326
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
3327
|
+
}
|
|
3345
3328
|
}
|
|
3346
3329
|
]
|
|
3347
3330
|
}
|
|
@@ -3409,6 +3392,7 @@ var Hydration$4 = {
|
|
|
3409
3392
|
var Interlay$4 = {
|
|
3410
3393
|
relayChainAssetSymbol: "DOT",
|
|
3411
3394
|
nativeAssetSymbol: "INTR",
|
|
3395
|
+
isEVM: false,
|
|
3412
3396
|
nativeAssets: [
|
|
3413
3397
|
{
|
|
3414
3398
|
symbol: "INTR",
|
|
@@ -3490,7 +3474,10 @@ var Interlay$4 = {
|
|
|
3490
3474
|
Parachain: 2000
|
|
3491
3475
|
},
|
|
3492
3476
|
{
|
|
3493
|
-
GeneralKey:
|
|
3477
|
+
GeneralKey: {
|
|
3478
|
+
length: 2,
|
|
3479
|
+
data: "0x0003000000000000000000000000000000000000000000000000000000000000"
|
|
3480
|
+
}
|
|
3494
3481
|
}
|
|
3495
3482
|
]
|
|
3496
3483
|
}
|
|
@@ -3694,7 +3681,10 @@ var Interlay$4 = {
|
|
|
3694
3681
|
Parachain: 2030
|
|
3695
3682
|
},
|
|
3696
3683
|
{
|
|
3697
|
-
GeneralKey:
|
|
3684
|
+
GeneralKey: {
|
|
3685
|
+
length: 2,
|
|
3686
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
3687
|
+
}
|
|
3698
3688
|
}
|
|
3699
3689
|
]
|
|
3700
3690
|
}
|
|
@@ -3712,7 +3702,10 @@ var Interlay$4 = {
|
|
|
3712
3702
|
Parachain: 2030
|
|
3713
3703
|
},
|
|
3714
3704
|
{
|
|
3715
|
-
GeneralKey:
|
|
3705
|
+
GeneralKey: {
|
|
3706
|
+
length: 2,
|
|
3707
|
+
data: "0x0900000000000000000000000000000000000000000000000000000000000000"
|
|
3708
|
+
}
|
|
3716
3709
|
}
|
|
3717
3710
|
]
|
|
3718
3711
|
}
|
|
@@ -3754,6 +3747,7 @@ var Interlay$4 = {
|
|
|
3754
3747
|
var Litentry$4 = {
|
|
3755
3748
|
relayChainAssetSymbol: "DOT",
|
|
3756
3749
|
nativeAssetSymbol: "LIT",
|
|
3750
|
+
isEVM: false,
|
|
3757
3751
|
nativeAssets: [
|
|
3758
3752
|
{
|
|
3759
3753
|
symbol: "LIT",
|
|
@@ -3766,6 +3760,7 @@ var Litentry$4 = {
|
|
|
3766
3760
|
var Moonbeam$4 = {
|
|
3767
3761
|
relayChainAssetSymbol: "DOT",
|
|
3768
3762
|
nativeAssetSymbol: "GLMR",
|
|
3763
|
+
isEVM: true,
|
|
3769
3764
|
nativeAssets: [
|
|
3770
3765
|
{
|
|
3771
3766
|
symbol: "GLMR",
|
|
@@ -4018,7 +4013,10 @@ var Moonbeam$4 = {
|
|
|
4018
4013
|
Parachain: 2000
|
|
4019
4014
|
},
|
|
4020
4015
|
{
|
|
4021
|
-
GeneralKey:
|
|
4016
|
+
GeneralKey: {
|
|
4017
|
+
length: 2,
|
|
4018
|
+
data: "0x0003000000000000000000000000000000000000000000000000000000000000"
|
|
4019
|
+
}
|
|
4022
4020
|
}
|
|
4023
4021
|
]
|
|
4024
4022
|
}
|
|
@@ -4036,7 +4034,10 @@ var Moonbeam$4 = {
|
|
|
4036
4034
|
Parachain: 2000
|
|
4037
4035
|
},
|
|
4038
4036
|
{
|
|
4039
|
-
GeneralKey:
|
|
4037
|
+
GeneralKey: {
|
|
4038
|
+
length: 2,
|
|
4039
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
4040
|
+
}
|
|
4040
4041
|
}
|
|
4041
4042
|
]
|
|
4042
4043
|
}
|
|
@@ -4054,7 +4055,10 @@ var Moonbeam$4 = {
|
|
|
4054
4055
|
Parachain: 2000
|
|
4055
4056
|
},
|
|
4056
4057
|
{
|
|
4057
|
-
GeneralKey:
|
|
4058
|
+
GeneralKey: {
|
|
4059
|
+
length: 2,
|
|
4060
|
+
data: "0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
4061
|
+
}
|
|
4058
4062
|
}
|
|
4059
4063
|
]
|
|
4060
4064
|
}
|
|
@@ -4085,7 +4089,10 @@ var Moonbeam$4 = {
|
|
|
4085
4089
|
Parachain: 2011
|
|
4086
4090
|
},
|
|
4087
4091
|
{
|
|
4088
|
-
GeneralKey:
|
|
4092
|
+
GeneralKey: {
|
|
4093
|
+
length: 3,
|
|
4094
|
+
data: "0x6571640000000000000000000000000000000000000000000000000000000000"
|
|
4095
|
+
}
|
|
4089
4096
|
}
|
|
4090
4097
|
]
|
|
4091
4098
|
}
|
|
@@ -4116,7 +4123,10 @@ var Moonbeam$4 = {
|
|
|
4116
4123
|
Parachain: 2012
|
|
4117
4124
|
},
|
|
4118
4125
|
{
|
|
4119
|
-
GeneralKey:
|
|
4126
|
+
GeneralKey: {
|
|
4127
|
+
length: 4,
|
|
4128
|
+
data: "0x5041524100000000000000000000000000000000000000000000000000000000"
|
|
4129
|
+
}
|
|
4120
4130
|
}
|
|
4121
4131
|
]
|
|
4122
4132
|
}
|
|
@@ -4278,7 +4288,10 @@ var Moonbeam$4 = {
|
|
|
4278
4288
|
Parachain: 2030
|
|
4279
4289
|
},
|
|
4280
4290
|
{
|
|
4281
|
-
GeneralKey:
|
|
4291
|
+
GeneralKey: {
|
|
4292
|
+
length: 2,
|
|
4293
|
+
data: "0x0804000000000000000000000000000000000000000000000000000000000000"
|
|
4294
|
+
}
|
|
4282
4295
|
}
|
|
4283
4296
|
]
|
|
4284
4297
|
}
|
|
@@ -4296,7 +4309,10 @@ var Moonbeam$4 = {
|
|
|
4296
4309
|
Parachain: 2030
|
|
4297
4310
|
},
|
|
4298
4311
|
{
|
|
4299
|
-
GeneralKey:
|
|
4312
|
+
GeneralKey: {
|
|
4313
|
+
length: 2,
|
|
4314
|
+
data: "0x0900000000000000000000000000000000000000000000000000000000000000"
|
|
4315
|
+
}
|
|
4300
4316
|
}
|
|
4301
4317
|
]
|
|
4302
4318
|
}
|
|
@@ -4314,7 +4330,10 @@ var Moonbeam$4 = {
|
|
|
4314
4330
|
Parachain: 2030
|
|
4315
4331
|
},
|
|
4316
4332
|
{
|
|
4317
|
-
GeneralKey:
|
|
4333
|
+
GeneralKey: {
|
|
4334
|
+
length: 2,
|
|
4335
|
+
data: "0x0809000000000000000000000000000000000000000000000000000000000000"
|
|
4336
|
+
}
|
|
4318
4337
|
}
|
|
4319
4338
|
]
|
|
4320
4339
|
}
|
|
@@ -4332,7 +4351,10 @@ var Moonbeam$4 = {
|
|
|
4332
4351
|
Parachain: 2030
|
|
4333
4352
|
},
|
|
4334
4353
|
{
|
|
4335
|
-
GeneralKey:
|
|
4354
|
+
GeneralKey: {
|
|
4355
|
+
length: 2,
|
|
4356
|
+
data: "0x0901000000000000000000000000000000000000000000000000000000000000"
|
|
4357
|
+
}
|
|
4336
4358
|
}
|
|
4337
4359
|
]
|
|
4338
4360
|
}
|
|
@@ -4350,7 +4372,10 @@ var Moonbeam$4 = {
|
|
|
4350
4372
|
Parachain: 2030
|
|
4351
4373
|
},
|
|
4352
4374
|
{
|
|
4353
|
-
GeneralKey:
|
|
4375
|
+
GeneralKey: {
|
|
4376
|
+
length: 2,
|
|
4377
|
+
data: "0x0908000000000000000000000000000000000000000000000000000000000000"
|
|
4378
|
+
}
|
|
4354
4379
|
}
|
|
4355
4380
|
]
|
|
4356
4381
|
}
|
|
@@ -4368,7 +4393,10 @@ var Moonbeam$4 = {
|
|
|
4368
4393
|
Parachain: 2030
|
|
4369
4394
|
},
|
|
4370
4395
|
{
|
|
4371
|
-
GeneralKey:
|
|
4396
|
+
GeneralKey: {
|
|
4397
|
+
length: 2,
|
|
4398
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
4399
|
+
}
|
|
4372
4400
|
}
|
|
4373
4401
|
]
|
|
4374
4402
|
}
|
|
@@ -4386,7 +4414,10 @@ var Moonbeam$4 = {
|
|
|
4386
4414
|
Parachain: 2030
|
|
4387
4415
|
},
|
|
4388
4416
|
{
|
|
4389
|
-
GeneralKey:
|
|
4417
|
+
GeneralKey: {
|
|
4418
|
+
length: 2,
|
|
4419
|
+
data: "0x0904000000000000000000000000000000000000000000000000000000000000"
|
|
4420
|
+
}
|
|
4390
4421
|
}
|
|
4391
4422
|
]
|
|
4392
4423
|
}
|
|
@@ -4404,7 +4435,10 @@ var Moonbeam$4 = {
|
|
|
4404
4435
|
Parachain: 2030
|
|
4405
4436
|
},
|
|
4406
4437
|
{
|
|
4407
|
-
GeneralKey:
|
|
4438
|
+
GeneralKey: {
|
|
4439
|
+
length: 2,
|
|
4440
|
+
data: "0x0903000000000000000000000000000000000000000000000000000000000000"
|
|
4441
|
+
}
|
|
4408
4442
|
}
|
|
4409
4443
|
]
|
|
4410
4444
|
}
|
|
@@ -4422,7 +4456,10 @@ var Moonbeam$4 = {
|
|
|
4422
4456
|
Parachain: 2031
|
|
4423
4457
|
},
|
|
4424
4458
|
{
|
|
4425
|
-
GeneralKey:
|
|
4459
|
+
GeneralKey: {
|
|
4460
|
+
length: 2,
|
|
4461
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
4462
|
+
}
|
|
4426
4463
|
}
|
|
4427
4464
|
]
|
|
4428
4465
|
}
|
|
@@ -4440,7 +4477,10 @@ var Moonbeam$4 = {
|
|
|
4440
4477
|
Parachain: 2032
|
|
4441
4478
|
},
|
|
4442
4479
|
{
|
|
4443
|
-
GeneralKey:
|
|
4480
|
+
GeneralKey: {
|
|
4481
|
+
length: 2,
|
|
4482
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
4483
|
+
}
|
|
4444
4484
|
}
|
|
4445
4485
|
]
|
|
4446
4486
|
}
|
|
@@ -4458,7 +4498,10 @@ var Moonbeam$4 = {
|
|
|
4458
4498
|
Parachain: 2032
|
|
4459
4499
|
},
|
|
4460
4500
|
{
|
|
4461
|
-
GeneralKey:
|
|
4501
|
+
GeneralKey: {
|
|
4502
|
+
length: 2,
|
|
4503
|
+
data: "0x0002000000000000000000000000000000000000000000000000000000000000"
|
|
4504
|
+
}
|
|
4462
4505
|
}
|
|
4463
4506
|
]
|
|
4464
4507
|
}
|
|
@@ -4569,7 +4612,10 @@ var Moonbeam$4 = {
|
|
|
4569
4612
|
Parachain: 2092
|
|
4570
4613
|
},
|
|
4571
4614
|
{
|
|
4572
|
-
GeneralKey:
|
|
4615
|
+
GeneralKey: {
|
|
4616
|
+
length: 2,
|
|
4617
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
4618
|
+
}
|
|
4573
4619
|
}
|
|
4574
4620
|
]
|
|
4575
4621
|
}
|
|
@@ -4637,6 +4683,7 @@ var Moonbeam$4 = {
|
|
|
4637
4683
|
var Parallel$4 = {
|
|
4638
4684
|
relayChainAssetSymbol: "DOT",
|
|
4639
4685
|
nativeAssetSymbol: "PARA",
|
|
4686
|
+
isEVM: false,
|
|
4640
4687
|
nativeAssets: [
|
|
4641
4688
|
{
|
|
4642
4689
|
symbol: "PARA",
|
|
@@ -4688,7 +4735,10 @@ var Parallel$4 = {
|
|
|
4688
4735
|
Parachain: 2000
|
|
4689
4736
|
},
|
|
4690
4737
|
{
|
|
4691
|
-
GeneralKey:
|
|
4738
|
+
GeneralKey: {
|
|
4739
|
+
length: 2,
|
|
4740
|
+
data: "0x0003000000000000000000000000000000000000000000000000000000000000"
|
|
4741
|
+
}
|
|
4692
4742
|
}
|
|
4693
4743
|
]
|
|
4694
4744
|
}
|
|
@@ -4706,7 +4756,10 @@ var Parallel$4 = {
|
|
|
4706
4756
|
Parachain: 2000
|
|
4707
4757
|
},
|
|
4708
4758
|
{
|
|
4709
|
-
GeneralKey:
|
|
4759
|
+
GeneralKey: {
|
|
4760
|
+
length: 2,
|
|
4761
|
+
data: "0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
4762
|
+
}
|
|
4710
4763
|
}
|
|
4711
4764
|
]
|
|
4712
4765
|
}
|
|
@@ -4724,7 +4777,10 @@ var Parallel$4 = {
|
|
|
4724
4777
|
Parachain: 2000
|
|
4725
4778
|
},
|
|
4726
4779
|
{
|
|
4727
|
-
GeneralKey:
|
|
4780
|
+
GeneralKey: {
|
|
4781
|
+
length: 5,
|
|
4782
|
+
data: "0x040d000000000000000000000000000000000000000000000000000000000000"
|
|
4783
|
+
}
|
|
4728
4784
|
}
|
|
4729
4785
|
]
|
|
4730
4786
|
}
|
|
@@ -4773,7 +4829,10 @@ var Parallel$4 = {
|
|
|
4773
4829
|
Parachain: 2012
|
|
4774
4830
|
},
|
|
4775
4831
|
{
|
|
4776
|
-
GeneralKey:
|
|
4832
|
+
GeneralKey: {
|
|
4833
|
+
length: 4,
|
|
4834
|
+
data: "0x73444f5400000000000000000000000000000000000000000000000000000000"
|
|
4835
|
+
}
|
|
4777
4836
|
}
|
|
4778
4837
|
]
|
|
4779
4838
|
}
|
|
@@ -4896,7 +4955,10 @@ var Parallel$4 = {
|
|
|
4896
4955
|
Parachain: 2032
|
|
4897
4956
|
},
|
|
4898
4957
|
{
|
|
4899
|
-
GeneralKey:
|
|
4958
|
+
GeneralKey: {
|
|
4959
|
+
length: 2,
|
|
4960
|
+
data: "0x0002000000000000000000000000000000000000000000000000000000000000"
|
|
4961
|
+
}
|
|
4900
4962
|
}
|
|
4901
4963
|
]
|
|
4902
4964
|
}
|
|
@@ -4914,7 +4976,10 @@ var Parallel$4 = {
|
|
|
4914
4976
|
Parachain: 2032
|
|
4915
4977
|
},
|
|
4916
4978
|
{
|
|
4917
|
-
GeneralKey:
|
|
4979
|
+
GeneralKey: {
|
|
4980
|
+
length: 2,
|
|
4981
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
4982
|
+
}
|
|
4918
4983
|
}
|
|
4919
4984
|
]
|
|
4920
4985
|
}
|
|
@@ -4938,6 +5003,7 @@ var Parallel$4 = {
|
|
|
4938
5003
|
var AssetHubPolkadot$4 = {
|
|
4939
5004
|
relayChainAssetSymbol: "DOT",
|
|
4940
5005
|
nativeAssetSymbol: "DOT",
|
|
5006
|
+
isEVM: false,
|
|
4941
5007
|
nativeAssets: [
|
|
4942
5008
|
{
|
|
4943
5009
|
symbol: "DOT",
|
|
@@ -5127,9 +5193,11 @@ var AssetHubPolkadot$4 = {
|
|
|
5127
5193
|
multiLocation: {
|
|
5128
5194
|
parents: 1,
|
|
5129
5195
|
interior: {
|
|
5130
|
-
X1:
|
|
5131
|
-
|
|
5132
|
-
|
|
5196
|
+
X1: [
|
|
5197
|
+
{
|
|
5198
|
+
Parachain: 2011
|
|
5199
|
+
}
|
|
5200
|
+
]
|
|
5133
5201
|
}
|
|
5134
5202
|
}
|
|
5135
5203
|
},
|
|
@@ -5163,11 +5231,27 @@ var AssetHubPolkadot$4 = {
|
|
|
5163
5231
|
multiLocation: {
|
|
5164
5232
|
parents: 2,
|
|
5165
5233
|
interior: {
|
|
5166
|
-
X1:
|
|
5167
|
-
|
|
5168
|
-
|
|
5234
|
+
X1: [
|
|
5235
|
+
{
|
|
5236
|
+
GlobalConsensus: {
|
|
5237
|
+
kusama: null
|
|
5238
|
+
}
|
|
5169
5239
|
}
|
|
5170
|
-
|
|
5240
|
+
]
|
|
5241
|
+
}
|
|
5242
|
+
}
|
|
5243
|
+
},
|
|
5244
|
+
{
|
|
5245
|
+
symbol: "TEER",
|
|
5246
|
+
decimals: 12,
|
|
5247
|
+
multiLocation: {
|
|
5248
|
+
parents: 1,
|
|
5249
|
+
interior: {
|
|
5250
|
+
X1: [
|
|
5251
|
+
{
|
|
5252
|
+
Parachain: 2039
|
|
5253
|
+
}
|
|
5254
|
+
]
|
|
5171
5255
|
}
|
|
5172
5256
|
}
|
|
5173
5257
|
},
|
|
@@ -5234,9 +5318,11 @@ var AssetHubPolkadot$4 = {
|
|
|
5234
5318
|
multiLocation: {
|
|
5235
5319
|
parents: 1,
|
|
5236
5320
|
interior: {
|
|
5237
|
-
X1:
|
|
5238
|
-
|
|
5239
|
-
|
|
5321
|
+
X1: [
|
|
5322
|
+
{
|
|
5323
|
+
Parachain: 3369
|
|
5324
|
+
}
|
|
5325
|
+
]
|
|
5240
5326
|
}
|
|
5241
5327
|
}
|
|
5242
5328
|
},
|
|
@@ -5283,9 +5369,11 @@ var AssetHubPolkadot$4 = {
|
|
|
5283
5369
|
multiLocation: {
|
|
5284
5370
|
parents: 1,
|
|
5285
5371
|
interior: {
|
|
5286
|
-
X1:
|
|
5287
|
-
|
|
5288
|
-
|
|
5372
|
+
X1: [
|
|
5373
|
+
{
|
|
5374
|
+
Parachain: 2051
|
|
5375
|
+
}
|
|
5376
|
+
]
|
|
5289
5377
|
}
|
|
5290
5378
|
}
|
|
5291
5379
|
}
|
|
@@ -5294,6 +5382,7 @@ var AssetHubPolkadot$4 = {
|
|
|
5294
5382
|
var Altair$4 = {
|
|
5295
5383
|
relayChainAssetSymbol: "KSM",
|
|
5296
5384
|
nativeAssetSymbol: "AIR",
|
|
5385
|
+
isEVM: false,
|
|
5297
5386
|
nativeAssets: [
|
|
5298
5387
|
{
|
|
5299
5388
|
symbol: "AIR",
|
|
@@ -5345,7 +5434,10 @@ var Altair$4 = {
|
|
|
5345
5434
|
Parachain: 2000
|
|
5346
5435
|
},
|
|
5347
5436
|
{
|
|
5348
|
-
GeneralKey:
|
|
5437
|
+
GeneralKey: {
|
|
5438
|
+
length: 2,
|
|
5439
|
+
data: "0x0081000000000000000000000000000000000000000000000000000000000000"
|
|
5440
|
+
}
|
|
5349
5441
|
}
|
|
5350
5442
|
]
|
|
5351
5443
|
}
|
|
@@ -5363,7 +5455,10 @@ var Altair$4 = {
|
|
|
5363
5455
|
Parachain: 2088
|
|
5364
5456
|
},
|
|
5365
5457
|
{
|
|
5366
|
-
GeneralKey:
|
|
5458
|
+
GeneralKey: {
|
|
5459
|
+
length: 2,
|
|
5460
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
5461
|
+
}
|
|
5367
5462
|
}
|
|
5368
5463
|
]
|
|
5369
5464
|
}
|
|
@@ -5374,6 +5469,7 @@ var Altair$4 = {
|
|
|
5374
5469
|
var Amplitude$4 = {
|
|
5375
5470
|
relayChainAssetSymbol: "KSM",
|
|
5376
5471
|
nativeAssetSymbol: "AMPE",
|
|
5472
|
+
isEVM: false,
|
|
5377
5473
|
nativeAssets: [
|
|
5378
5474
|
{
|
|
5379
5475
|
symbol: "AMPE",
|
|
@@ -5401,6 +5497,7 @@ var Amplitude$4 = {
|
|
|
5401
5497
|
var Bajun$4 = {
|
|
5402
5498
|
relayChainAssetSymbol: "KSM",
|
|
5403
5499
|
nativeAssetSymbol: "BAJU",
|
|
5500
|
+
isEVM: false,
|
|
5404
5501
|
nativeAssets: [
|
|
5405
5502
|
{
|
|
5406
5503
|
symbol: "BAJU",
|
|
@@ -5413,6 +5510,7 @@ var Bajun$4 = {
|
|
|
5413
5510
|
var Basilisk$4 = {
|
|
5414
5511
|
relayChainAssetSymbol: "KSM",
|
|
5415
5512
|
nativeAssetSymbol: "BSX",
|
|
5513
|
+
isEVM: false,
|
|
5416
5514
|
nativeAssets: [
|
|
5417
5515
|
{
|
|
5418
5516
|
symbol: "BSX",
|
|
@@ -5464,7 +5562,10 @@ var Basilisk$4 = {
|
|
|
5464
5562
|
Parachain: 2000
|
|
5465
5563
|
},
|
|
5466
5564
|
{
|
|
5467
|
-
GeneralKey:
|
|
5565
|
+
GeneralKey: {
|
|
5566
|
+
length: 21,
|
|
5567
|
+
data: "0x024bb6afb5fa2b07a5d1c499e1c3ddb5a15e709a710000000000000000000000"
|
|
5568
|
+
}
|
|
5468
5569
|
}
|
|
5469
5570
|
]
|
|
5470
5571
|
}
|
|
@@ -5482,7 +5583,10 @@ var Basilisk$4 = {
|
|
|
5482
5583
|
Parachain: 2000
|
|
5483
5584
|
},
|
|
5484
5585
|
{
|
|
5485
|
-
GeneralKey:
|
|
5586
|
+
GeneralKey: {
|
|
5587
|
+
length: 21,
|
|
5588
|
+
data: "0x021f3a10587a20114ea25ba1b388ee2dd4a337ce270000000000000000000000"
|
|
5589
|
+
}
|
|
5486
5590
|
}
|
|
5487
5591
|
]
|
|
5488
5592
|
}
|
|
@@ -5500,7 +5604,10 @@ var Basilisk$4 = {
|
|
|
5500
5604
|
Parachain: 2000
|
|
5501
5605
|
},
|
|
5502
5606
|
{
|
|
5503
|
-
GeneralKey:
|
|
5607
|
+
GeneralKey: {
|
|
5608
|
+
length: 2,
|
|
5609
|
+
data: "0x0081000000000000000000000000000000000000000000000000000000000000"
|
|
5610
|
+
}
|
|
5504
5611
|
}
|
|
5505
5612
|
]
|
|
5506
5613
|
}
|
|
@@ -5518,7 +5625,10 @@ var Basilisk$4 = {
|
|
|
5518
5625
|
Parachain: 2000
|
|
5519
5626
|
},
|
|
5520
5627
|
{
|
|
5521
|
-
GeneralKey:
|
|
5628
|
+
GeneralKey: {
|
|
5629
|
+
length: 21,
|
|
5630
|
+
data: "0x02ece0cc38021e734bef1d5da071b027ac2f71181f0000000000000000000000"
|
|
5631
|
+
}
|
|
5522
5632
|
}
|
|
5523
5633
|
]
|
|
5524
5634
|
}
|
|
@@ -5536,7 +5646,10 @@ var Basilisk$4 = {
|
|
|
5536
5646
|
Parachain: 2000
|
|
5537
5647
|
},
|
|
5538
5648
|
{
|
|
5539
|
-
GeneralKey:
|
|
5649
|
+
GeneralKey: {
|
|
5650
|
+
length: 21,
|
|
5651
|
+
data: "0x0266291c7d88d2ed9a708147bae4e0814a76705e2f0000000000000000000000"
|
|
5652
|
+
}
|
|
5540
5653
|
}
|
|
5541
5654
|
]
|
|
5542
5655
|
}
|
|
@@ -5554,7 +5667,10 @@ var Basilisk$4 = {
|
|
|
5554
5667
|
Parachain: 2000
|
|
5555
5668
|
},
|
|
5556
5669
|
{
|
|
5557
|
-
GeneralKey:
|
|
5670
|
+
GeneralKey: {
|
|
5671
|
+
length: 21,
|
|
5672
|
+
data: "0x0254e183e533fd3c6e72debb2d1cab451d017faf720000000000000000000000"
|
|
5673
|
+
}
|
|
5558
5674
|
}
|
|
5559
5675
|
]
|
|
5560
5676
|
}
|
|
@@ -5596,6 +5712,7 @@ var Basilisk$4 = {
|
|
|
5596
5712
|
var BifrostKusama$4 = {
|
|
5597
5713
|
relayChainAssetSymbol: "KSM",
|
|
5598
5714
|
nativeAssetSymbol: "BNC",
|
|
5715
|
+
isEVM: false,
|
|
5599
5716
|
nativeAssets: [
|
|
5600
5717
|
{
|
|
5601
5718
|
symbol: "BNC",
|
|
@@ -5668,7 +5785,10 @@ var BifrostKusama$4 = {
|
|
|
5668
5785
|
Parachain: 2092
|
|
5669
5786
|
},
|
|
5670
5787
|
{
|
|
5671
|
-
GeneralKey:
|
|
5788
|
+
GeneralKey: {
|
|
5789
|
+
length: 2,
|
|
5790
|
+
data: "0x000b000000000000000000000000000000000000000000000000000000000000"
|
|
5791
|
+
}
|
|
5672
5792
|
}
|
|
5673
5793
|
]
|
|
5674
5794
|
}
|
|
@@ -5686,7 +5806,10 @@ var BifrostKusama$4 = {
|
|
|
5686
5806
|
Parachain: 2092
|
|
5687
5807
|
},
|
|
5688
5808
|
{
|
|
5689
|
-
GeneralKey:
|
|
5809
|
+
GeneralKey: {
|
|
5810
|
+
length: 2,
|
|
5811
|
+
data: "0x000c000000000000000000000000000000000000000000000000000000000000"
|
|
5812
|
+
}
|
|
5690
5813
|
}
|
|
5691
5814
|
]
|
|
5692
5815
|
}
|
|
@@ -5704,7 +5827,10 @@ var BifrostKusama$4 = {
|
|
|
5704
5827
|
Parachain: 2110
|
|
5705
5828
|
},
|
|
5706
5829
|
{
|
|
5707
|
-
GeneralKey:
|
|
5830
|
+
GeneralKey: {
|
|
5831
|
+
length: 4,
|
|
5832
|
+
data: "0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
5833
|
+
}
|
|
5708
5834
|
}
|
|
5709
5835
|
]
|
|
5710
5836
|
}
|
|
@@ -5728,6 +5854,7 @@ var BifrostKusama$4 = {
|
|
|
5728
5854
|
var Calamari$4 = {
|
|
5729
5855
|
relayChainAssetSymbol: "KSM",
|
|
5730
5856
|
nativeAssetSymbol: "KMA",
|
|
5857
|
+
isEVM: false,
|
|
5731
5858
|
nativeAssets: [
|
|
5732
5859
|
{
|
|
5733
5860
|
symbol: "KMA",
|
|
@@ -5779,7 +5906,10 @@ var Calamari$4 = {
|
|
|
5779
5906
|
Parachain: 2000
|
|
5780
5907
|
},
|
|
5781
5908
|
{
|
|
5782
|
-
GeneralKey:
|
|
5909
|
+
GeneralKey: {
|
|
5910
|
+
length: 21,
|
|
5911
|
+
data: "0x02e278651e8ff8e2efa83d7f84205084ebc90688be0000000000000000000000"
|
|
5912
|
+
}
|
|
5783
5913
|
}
|
|
5784
5914
|
]
|
|
5785
5915
|
}
|
|
@@ -5797,7 +5927,10 @@ var Calamari$4 = {
|
|
|
5797
5927
|
Parachain: 2000
|
|
5798
5928
|
},
|
|
5799
5929
|
{
|
|
5800
|
-
GeneralKey:
|
|
5930
|
+
GeneralKey: {
|
|
5931
|
+
length: 21,
|
|
5932
|
+
data: "0x0266291c7d88d2ed9a708147bae4e0814a76705e2f0000000000000000000000"
|
|
5933
|
+
}
|
|
5801
5934
|
}
|
|
5802
5935
|
]
|
|
5803
5936
|
}
|
|
@@ -5815,7 +5948,10 @@ var Calamari$4 = {
|
|
|
5815
5948
|
Parachain: 2000
|
|
5816
5949
|
},
|
|
5817
5950
|
{
|
|
5818
|
-
GeneralKey:
|
|
5951
|
+
GeneralKey: {
|
|
5952
|
+
length: 21,
|
|
5953
|
+
data: "0x021f3a10587a20114ea25ba1b388ee2dd4a337ce270000000000000000000000"
|
|
5954
|
+
}
|
|
5819
5955
|
}
|
|
5820
5956
|
]
|
|
5821
5957
|
}
|
|
@@ -5833,7 +5969,10 @@ var Calamari$4 = {
|
|
|
5833
5969
|
Parachain: 2000
|
|
5834
5970
|
},
|
|
5835
5971
|
{
|
|
5836
|
-
GeneralKey:
|
|
5972
|
+
GeneralKey: {
|
|
5973
|
+
length: 21,
|
|
5974
|
+
data: "0x02577f6a0718a468e8a995f6075f2325f86a07c83b0000000000000000000000"
|
|
5975
|
+
}
|
|
5837
5976
|
}
|
|
5838
5977
|
]
|
|
5839
5978
|
}
|
|
@@ -5851,7 +5990,10 @@ var Calamari$4 = {
|
|
|
5851
5990
|
Parachain: 2000
|
|
5852
5991
|
},
|
|
5853
5992
|
{
|
|
5854
|
-
GeneralKey:
|
|
5993
|
+
GeneralKey: {
|
|
5994
|
+
length: 2,
|
|
5995
|
+
data: "0x0081000000000000000000000000000000000000000000000000000000000000"
|
|
5996
|
+
}
|
|
5855
5997
|
}
|
|
5856
5998
|
]
|
|
5857
5999
|
}
|
|
@@ -5869,7 +6011,10 @@ var Calamari$4 = {
|
|
|
5869
6011
|
Parachain: 2000
|
|
5870
6012
|
},
|
|
5871
6013
|
{
|
|
5872
|
-
GeneralKey:
|
|
6014
|
+
GeneralKey: {
|
|
6015
|
+
length: 21,
|
|
6016
|
+
data: "0x02b4ce1f6109854243d1af13b8ea34ed28542f31e00000000000000000000000"
|
|
6017
|
+
}
|
|
5873
6018
|
}
|
|
5874
6019
|
]
|
|
5875
6020
|
}
|
|
@@ -5887,7 +6032,10 @@ var Calamari$4 = {
|
|
|
5887
6032
|
Parachain: 2000
|
|
5888
6033
|
},
|
|
5889
6034
|
{
|
|
5890
|
-
GeneralKey:
|
|
6035
|
+
GeneralKey: {
|
|
6036
|
+
length: 21,
|
|
6037
|
+
data: "0x02a2a37aaf4730aeedada5aa8ee20a4451cb8b1c4e0000000000000000000000"
|
|
6038
|
+
}
|
|
5891
6039
|
}
|
|
5892
6040
|
]
|
|
5893
6041
|
}
|
|
@@ -5905,7 +6053,10 @@ var Calamari$4 = {
|
|
|
5905
6053
|
Parachain: 2000
|
|
5906
6054
|
},
|
|
5907
6055
|
{
|
|
5908
|
-
GeneralKey:
|
|
6056
|
+
GeneralKey: {
|
|
6057
|
+
length: 2,
|
|
6058
|
+
data: "0x0080000000000000000000000000000000000000000000000000000000000000"
|
|
6059
|
+
}
|
|
5909
6060
|
}
|
|
5910
6061
|
]
|
|
5911
6062
|
}
|
|
@@ -5923,7 +6074,10 @@ var Calamari$4 = {
|
|
|
5923
6074
|
Parachain: 2000
|
|
5924
6075
|
},
|
|
5925
6076
|
{
|
|
5926
|
-
GeneralKey:
|
|
6077
|
+
GeneralKey: {
|
|
6078
|
+
length: 2,
|
|
6079
|
+
data: "0x0083000000000000000000000000000000000000000000000000000000000000"
|
|
6080
|
+
}
|
|
5927
6081
|
}
|
|
5928
6082
|
]
|
|
5929
6083
|
}
|
|
@@ -5941,7 +6095,10 @@ var Calamari$4 = {
|
|
|
5941
6095
|
Parachain: 2000
|
|
5942
6096
|
},
|
|
5943
6097
|
{
|
|
5944
|
-
GeneralKey:
|
|
6098
|
+
GeneralKey: {
|
|
6099
|
+
length: 21,
|
|
6100
|
+
data: "0x02c621abc3afa3f24886ea278fffa7e10e8969d7550000000000000000000000"
|
|
6101
|
+
}
|
|
5945
6102
|
}
|
|
5946
6103
|
]
|
|
5947
6104
|
}
|
|
@@ -5959,7 +6116,10 @@ var Calamari$4 = {
|
|
|
5959
6116
|
Parachain: 2000
|
|
5960
6117
|
},
|
|
5961
6118
|
{
|
|
5962
|
-
GeneralKey:
|
|
6119
|
+
GeneralKey: {
|
|
6120
|
+
length: 21,
|
|
6121
|
+
data: "0x0230b1f4ba0b07789be9986fa090a57e0fe5631ebb0000000000000000000000"
|
|
6122
|
+
}
|
|
5963
6123
|
}
|
|
5964
6124
|
]
|
|
5965
6125
|
}
|
|
@@ -5977,7 +6137,10 @@ var Calamari$4 = {
|
|
|
5977
6137
|
Parachain: 2000
|
|
5978
6138
|
},
|
|
5979
6139
|
{
|
|
5980
|
-
GeneralKey:
|
|
6140
|
+
GeneralKey: {
|
|
6141
|
+
length: 21,
|
|
6142
|
+
data: "0x0277cf14f938cb97308d752647d554439d99b39a3f0000000000000000000000"
|
|
6143
|
+
}
|
|
5981
6144
|
}
|
|
5982
6145
|
]
|
|
5983
6146
|
}
|
|
@@ -5995,7 +6158,10 @@ var Calamari$4 = {
|
|
|
5995
6158
|
Parachain: 2000
|
|
5996
6159
|
},
|
|
5997
6160
|
{
|
|
5998
|
-
GeneralKey:
|
|
6161
|
+
GeneralKey: {
|
|
6162
|
+
length: 21,
|
|
6163
|
+
data: "0x022c7de70b32cf5f20e02329a88d2e3b00ef85eb900000000000000000000000"
|
|
6164
|
+
}
|
|
5999
6165
|
}
|
|
6000
6166
|
]
|
|
6001
6167
|
}
|
|
@@ -6013,7 +6179,10 @@ var Calamari$4 = {
|
|
|
6013
6179
|
Parachain: 2000
|
|
6014
6180
|
},
|
|
6015
6181
|
{
|
|
6016
|
-
GeneralKey:
|
|
6182
|
+
GeneralKey: {
|
|
6183
|
+
length: 21,
|
|
6184
|
+
data: "0x029759ca009cbcd75a84786ac19bb5d02f8e68bcd90000000000000000000000"
|
|
6185
|
+
}
|
|
6017
6186
|
}
|
|
6018
6187
|
]
|
|
6019
6188
|
}
|
|
@@ -6031,7 +6200,10 @@ var Calamari$4 = {
|
|
|
6031
6200
|
Parachain: 2000
|
|
6032
6201
|
},
|
|
6033
6202
|
{
|
|
6034
|
-
GeneralKey:
|
|
6203
|
+
GeneralKey: {
|
|
6204
|
+
length: 21,
|
|
6205
|
+
data: "0x02ece0cc38021e734bef1d5da071b027ac2f71181f0000000000000000000000"
|
|
6206
|
+
}
|
|
6035
6207
|
}
|
|
6036
6208
|
]
|
|
6037
6209
|
}
|
|
@@ -6049,7 +6221,10 @@ var Calamari$4 = {
|
|
|
6049
6221
|
Parachain: 2000
|
|
6050
6222
|
},
|
|
6051
6223
|
{
|
|
6052
|
-
GeneralKey:
|
|
6224
|
+
GeneralKey: {
|
|
6225
|
+
length: 21,
|
|
6226
|
+
data: "0x024bb6afb5fa2b07a5d1c499e1c3ddb5a15e709a710000000000000000000000"
|
|
6227
|
+
}
|
|
6053
6228
|
}
|
|
6054
6229
|
]
|
|
6055
6230
|
}
|
|
@@ -6091,6 +6266,7 @@ var Calamari$4 = {
|
|
|
6091
6266
|
var Crab$4 = {
|
|
6092
6267
|
relayChainAssetSymbol: "KSM",
|
|
6093
6268
|
nativeAssetSymbol: "CRAB",
|
|
6269
|
+
isEVM: true,
|
|
6094
6270
|
nativeAssets: [
|
|
6095
6271
|
{
|
|
6096
6272
|
symbol: "CRAB",
|
|
@@ -6108,6 +6284,7 @@ var Crab$4 = {
|
|
|
6108
6284
|
var CrustShadow$4 = {
|
|
6109
6285
|
relayChainAssetSymbol: "KSM",
|
|
6110
6286
|
nativeAssetSymbol: "CSM",
|
|
6287
|
+
isEVM: false,
|
|
6111
6288
|
nativeAssets: [
|
|
6112
6289
|
{
|
|
6113
6290
|
symbol: "CSM",
|
|
@@ -6155,6 +6332,7 @@ var CrustShadow$4 = {
|
|
|
6155
6332
|
var Encointer$4 = {
|
|
6156
6333
|
relayChainAssetSymbol: "KSM",
|
|
6157
6334
|
nativeAssetSymbol: "KSM",
|
|
6335
|
+
isEVM: false,
|
|
6158
6336
|
nativeAssets: [
|
|
6159
6337
|
{
|
|
6160
6338
|
symbol: "KSM",
|
|
@@ -6167,6 +6345,7 @@ var Encointer$4 = {
|
|
|
6167
6345
|
var Imbue$4 = {
|
|
6168
6346
|
relayChainAssetSymbol: "KSM",
|
|
6169
6347
|
nativeAssetSymbol: "IMBU",
|
|
6348
|
+
isEVM: false,
|
|
6170
6349
|
nativeAssets: [
|
|
6171
6350
|
{
|
|
6172
6351
|
symbol: "IMBU",
|
|
@@ -6179,6 +6358,7 @@ var Imbue$4 = {
|
|
|
6179
6358
|
var KiltSpiritnet$4 = {
|
|
6180
6359
|
relayChainAssetSymbol: "DOT",
|
|
6181
6360
|
nativeAssetSymbol: "KILT",
|
|
6361
|
+
isEVM: false,
|
|
6182
6362
|
nativeAssets: [
|
|
6183
6363
|
{
|
|
6184
6364
|
symbol: "KILT",
|
|
@@ -6191,6 +6371,7 @@ var KiltSpiritnet$4 = {
|
|
|
6191
6371
|
var Integritee$4 = {
|
|
6192
6372
|
relayChainAssetSymbol: "KSM",
|
|
6193
6373
|
nativeAssetSymbol: "TEER",
|
|
6374
|
+
isEVM: false,
|
|
6194
6375
|
nativeAssets: [
|
|
6195
6376
|
{
|
|
6196
6377
|
symbol: "TEER",
|
|
@@ -6203,6 +6384,7 @@ var Integritee$4 = {
|
|
|
6203
6384
|
var InvArchTinker$4 = {
|
|
6204
6385
|
relayChainAssetSymbol: "KSM",
|
|
6205
6386
|
nativeAssetSymbol: "TNKR",
|
|
6387
|
+
isEVM: false,
|
|
6206
6388
|
nativeAssets: [
|
|
6207
6389
|
{
|
|
6208
6390
|
symbol: "TNKR",
|
|
@@ -6215,6 +6397,7 @@ var InvArchTinker$4 = {
|
|
|
6215
6397
|
var Curio$4 = {
|
|
6216
6398
|
relayChainAssetSymbol: "KSM",
|
|
6217
6399
|
nativeAssetSymbol: "CGT",
|
|
6400
|
+
isEVM: false,
|
|
6218
6401
|
nativeAssets: [
|
|
6219
6402
|
{
|
|
6220
6403
|
symbol: "CGT",
|
|
@@ -6251,6 +6434,7 @@ var Curio$4 = {
|
|
|
6251
6434
|
var Karura$4 = {
|
|
6252
6435
|
relayChainAssetSymbol: "KSM",
|
|
6253
6436
|
nativeAssetSymbol: "KAR",
|
|
6437
|
+
isEVM: false,
|
|
6254
6438
|
nativeAssets: [
|
|
6255
6439
|
{
|
|
6256
6440
|
symbol: "KAR",
|
|
@@ -6395,7 +6579,10 @@ var Karura$4 = {
|
|
|
6395
6579
|
Parachain: 2015
|
|
6396
6580
|
},
|
|
6397
6581
|
{
|
|
6398
|
-
GeneralKey:
|
|
6582
|
+
GeneralKey: {
|
|
6583
|
+
length: 4,
|
|
6584
|
+
data: "0x5445455200000000000000000000000000000000000000000000000000000000"
|
|
6585
|
+
}
|
|
6399
6586
|
}
|
|
6400
6587
|
]
|
|
6401
6588
|
}
|
|
@@ -6444,7 +6631,10 @@ var Karura$4 = {
|
|
|
6444
6631
|
Parachain: 2024
|
|
6445
6632
|
},
|
|
6446
6633
|
{
|
|
6447
|
-
GeneralKey:
|
|
6634
|
+
GeneralKey: {
|
|
6635
|
+
length: 3,
|
|
6636
|
+
data: "0x6571640000000000000000000000000000000000000000000000000000000000"
|
|
6637
|
+
}
|
|
6448
6638
|
}
|
|
6449
6639
|
]
|
|
6450
6640
|
}
|
|
@@ -6475,7 +6665,10 @@ var Karura$4 = {
|
|
|
6475
6665
|
Parachain: 2085
|
|
6476
6666
|
},
|
|
6477
6667
|
{
|
|
6478
|
-
GeneralKey:
|
|
6668
|
+
GeneralKey: {
|
|
6669
|
+
length: 3,
|
|
6670
|
+
data: "0x484b4f0000000000000000000000000000000000000000000000000000000000"
|
|
6671
|
+
}
|
|
6479
6672
|
}
|
|
6480
6673
|
]
|
|
6481
6674
|
}
|
|
@@ -6493,7 +6686,10 @@ var Karura$4 = {
|
|
|
6493
6686
|
Parachain: 2088
|
|
6494
6687
|
},
|
|
6495
6688
|
{
|
|
6496
|
-
GeneralKey:
|
|
6689
|
+
GeneralKey: {
|
|
6690
|
+
length: 2,
|
|
6691
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
6692
|
+
}
|
|
6497
6693
|
}
|
|
6498
6694
|
]
|
|
6499
6695
|
}
|
|
@@ -6542,7 +6738,10 @@ var Karura$4 = {
|
|
|
6542
6738
|
Parachain: 2096
|
|
6543
6739
|
},
|
|
6544
6740
|
{
|
|
6545
|
-
GeneralKey:
|
|
6741
|
+
GeneralKey: {
|
|
6742
|
+
length: 9,
|
|
6743
|
+
data: "0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
6744
|
+
}
|
|
6546
6745
|
}
|
|
6547
6746
|
]
|
|
6548
6747
|
}
|
|
@@ -6560,7 +6759,10 @@ var Karura$4 = {
|
|
|
6560
6759
|
Parachain: 2102
|
|
6561
6760
|
},
|
|
6562
6761
|
{
|
|
6563
|
-
GeneralKey:
|
|
6762
|
+
GeneralKey: {
|
|
6763
|
+
length: 4,
|
|
6764
|
+
data: "0x5043485500000000000000000000000000000000000000000000000000000000"
|
|
6765
|
+
}
|
|
6564
6766
|
}
|
|
6565
6767
|
]
|
|
6566
6768
|
}
|
|
@@ -6614,7 +6816,10 @@ var Karura$4 = {
|
|
|
6614
6816
|
Parachain: 2107
|
|
6615
6817
|
},
|
|
6616
6818
|
{
|
|
6617
|
-
GeneralKey:
|
|
6819
|
+
GeneralKey: {
|
|
6820
|
+
length: 4,
|
|
6821
|
+
data: "0x4b49434f00000000000000000000000000000000000000000000000000000000"
|
|
6822
|
+
}
|
|
6618
6823
|
}
|
|
6619
6824
|
]
|
|
6620
6825
|
}
|
|
@@ -6645,7 +6850,10 @@ var Karura$4 = {
|
|
|
6645
6850
|
Parachain: 2118
|
|
6646
6851
|
},
|
|
6647
6852
|
{
|
|
6648
|
-
GeneralKey:
|
|
6853
|
+
GeneralKey: {
|
|
6854
|
+
length: 2,
|
|
6855
|
+
data: "0x4c54000000000000000000000000000000000000000000000000000000000000"
|
|
6856
|
+
}
|
|
6649
6857
|
}
|
|
6650
6858
|
]
|
|
6651
6859
|
}
|
|
@@ -6656,6 +6864,7 @@ var Karura$4 = {
|
|
|
6656
6864
|
var Kintsugi$4 = {
|
|
6657
6865
|
relayChainAssetSymbol: "KSM",
|
|
6658
6866
|
nativeAssetSymbol: "KINT",
|
|
6867
|
+
isEVM: false,
|
|
6659
6868
|
nativeAssets: [
|
|
6660
6869
|
{
|
|
6661
6870
|
symbol: "KINT",
|
|
@@ -6716,7 +6925,10 @@ var Kintsugi$4 = {
|
|
|
6716
6925
|
Parachain: 2000
|
|
6717
6926
|
},
|
|
6718
6927
|
{
|
|
6719
|
-
GeneralKey:
|
|
6928
|
+
GeneralKey: {
|
|
6929
|
+
length: 2,
|
|
6930
|
+
data: "0x0081000000000000000000000000000000000000000000000000000000000000"
|
|
6931
|
+
}
|
|
6720
6932
|
}
|
|
6721
6933
|
]
|
|
6722
6934
|
}
|
|
@@ -6734,7 +6946,10 @@ var Kintsugi$4 = {
|
|
|
6734
6946
|
Parachain: 2000
|
|
6735
6947
|
},
|
|
6736
6948
|
{
|
|
6737
|
-
GeneralKey:
|
|
6949
|
+
GeneralKey: {
|
|
6950
|
+
length: 2,
|
|
6951
|
+
data: "0x0083000000000000000000000000000000000000000000000000000000000000"
|
|
6952
|
+
}
|
|
6738
6953
|
}
|
|
6739
6954
|
]
|
|
6740
6955
|
}
|
|
@@ -6752,7 +6967,10 @@ var Kintsugi$4 = {
|
|
|
6752
6967
|
Parachain: 2001
|
|
6753
6968
|
},
|
|
6754
6969
|
{
|
|
6755
|
-
GeneralKey:
|
|
6970
|
+
GeneralKey: {
|
|
6971
|
+
length: 2,
|
|
6972
|
+
data: "0x0104000000000000000000000000000000000000000000000000000000000000"
|
|
6973
|
+
}
|
|
6756
6974
|
}
|
|
6757
6975
|
]
|
|
6758
6976
|
}
|
|
@@ -6814,6 +7032,7 @@ var Litmus = {
|
|
|
6814
7032
|
var Moonriver$4 = {
|
|
6815
7033
|
relayChainAssetSymbol: "KSM",
|
|
6816
7034
|
nativeAssetSymbol: "MOVR",
|
|
7035
|
+
isEVM: true,
|
|
6817
7036
|
nativeAssets: [
|
|
6818
7037
|
{
|
|
6819
7038
|
symbol: "MOVR",
|
|
@@ -6886,7 +7105,10 @@ var Moonriver$4 = {
|
|
|
6886
7105
|
Parachain: 2000
|
|
6887
7106
|
},
|
|
6888
7107
|
{
|
|
6889
|
-
GeneralKey:
|
|
7108
|
+
GeneralKey: {
|
|
7109
|
+
length: 2,
|
|
7110
|
+
data: "0x0081000000000000000000000000000000000000000000000000000000000000"
|
|
7111
|
+
}
|
|
6890
7112
|
}
|
|
6891
7113
|
]
|
|
6892
7114
|
}
|
|
@@ -6904,7 +7126,10 @@ var Moonriver$4 = {
|
|
|
6904
7126
|
Parachain: 2000
|
|
6905
7127
|
},
|
|
6906
7128
|
{
|
|
6907
|
-
GeneralKey:
|
|
7129
|
+
GeneralKey: {
|
|
7130
|
+
length: 2,
|
|
7131
|
+
data: "0x0080000000000000000000000000000000000000000000000000000000000000"
|
|
7132
|
+
}
|
|
6908
7133
|
}
|
|
6909
7134
|
]
|
|
6910
7135
|
}
|
|
@@ -6922,7 +7147,10 @@ var Moonriver$4 = {
|
|
|
6922
7147
|
Parachain: 2001
|
|
6923
7148
|
},
|
|
6924
7149
|
{
|
|
6925
|
-
GeneralKey:
|
|
7150
|
+
GeneralKey: {
|
|
7151
|
+
length: 2,
|
|
7152
|
+
data: "0x0104000000000000000000000000000000000000000000000000000000000000"
|
|
7153
|
+
}
|
|
6926
7154
|
}
|
|
6927
7155
|
]
|
|
6928
7156
|
}
|
|
@@ -6940,7 +7168,10 @@ var Moonriver$4 = {
|
|
|
6940
7168
|
Parachain: 2001
|
|
6941
7169
|
},
|
|
6942
7170
|
{
|
|
6943
|
-
GeneralKey:
|
|
7171
|
+
GeneralKey: {
|
|
7172
|
+
length: 2,
|
|
7173
|
+
data: "0x0101000000000000000000000000000000000000000000000000000000000000"
|
|
7174
|
+
}
|
|
6944
7175
|
}
|
|
6945
7176
|
]
|
|
6946
7177
|
}
|
|
@@ -6958,7 +7189,10 @@ var Moonriver$4 = {
|
|
|
6958
7189
|
Parachain: 2001
|
|
6959
7190
|
},
|
|
6960
7191
|
{
|
|
6961
|
-
GeneralKey:
|
|
7192
|
+
GeneralKey: {
|
|
7193
|
+
length: 2,
|
|
7194
|
+
data: "0x010a000000000000000000000000000000000000000000000000000000000000"
|
|
7195
|
+
}
|
|
6962
7196
|
}
|
|
6963
7197
|
]
|
|
6964
7198
|
}
|
|
@@ -6976,7 +7210,10 @@ var Moonriver$4 = {
|
|
|
6976
7210
|
Parachain: 2001
|
|
6977
7211
|
},
|
|
6978
7212
|
{
|
|
6979
|
-
GeneralKey:
|
|
7213
|
+
GeneralKey: {
|
|
7214
|
+
length: 2,
|
|
7215
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
7216
|
+
}
|
|
6980
7217
|
}
|
|
6981
7218
|
]
|
|
6982
7219
|
}
|
|
@@ -7033,7 +7270,10 @@ var Moonriver$4 = {
|
|
|
7033
7270
|
Parachain: 2015
|
|
7034
7271
|
},
|
|
7035
7272
|
{
|
|
7036
|
-
GeneralKey:
|
|
7273
|
+
GeneralKey: {
|
|
7274
|
+
length: 4,
|
|
7275
|
+
data: "0x5445455200000000000000000000000000000000000000000000000000000000"
|
|
7276
|
+
}
|
|
7037
7277
|
}
|
|
7038
7278
|
]
|
|
7039
7279
|
}
|
|
@@ -7077,7 +7317,10 @@ var Moonriver$4 = {
|
|
|
7077
7317
|
Parachain: 2085
|
|
7078
7318
|
},
|
|
7079
7319
|
{
|
|
7080
|
-
GeneralKey:
|
|
7320
|
+
GeneralKey: {
|
|
7321
|
+
length: 3,
|
|
7322
|
+
data: "0x484b4f0000000000000000000000000000000000000000000000000000000000"
|
|
7323
|
+
}
|
|
7081
7324
|
}
|
|
7082
7325
|
]
|
|
7083
7326
|
}
|
|
@@ -7108,7 +7351,10 @@ var Moonriver$4 = {
|
|
|
7108
7351
|
Parachain: 2092
|
|
7109
7352
|
},
|
|
7110
7353
|
{
|
|
7111
|
-
GeneralKey:
|
|
7354
|
+
GeneralKey: {
|
|
7355
|
+
length: 2,
|
|
7356
|
+
data: "0x000b000000000000000000000000000000000000000000000000000000000000"
|
|
7357
|
+
}
|
|
7112
7358
|
}
|
|
7113
7359
|
]
|
|
7114
7360
|
}
|
|
@@ -7126,7 +7372,10 @@ var Moonriver$4 = {
|
|
|
7126
7372
|
Parachain: 2092
|
|
7127
7373
|
},
|
|
7128
7374
|
{
|
|
7129
|
-
GeneralKey:
|
|
7375
|
+
GeneralKey: {
|
|
7376
|
+
length: 2,
|
|
7377
|
+
data: "0x000c000000000000000000000000000000000000000000000000000000000000"
|
|
7378
|
+
}
|
|
7130
7379
|
}
|
|
7131
7380
|
]
|
|
7132
7381
|
}
|
|
@@ -7180,7 +7429,10 @@ var Moonriver$4 = {
|
|
|
7180
7429
|
Parachain: 2110
|
|
7181
7430
|
},
|
|
7182
7431
|
{
|
|
7183
|
-
GeneralKey:
|
|
7432
|
+
GeneralKey: {
|
|
7433
|
+
length: 4,
|
|
7434
|
+
data: "0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
7435
|
+
}
|
|
7184
7436
|
}
|
|
7185
7437
|
]
|
|
7186
7438
|
}
|
|
@@ -7222,6 +7474,7 @@ var Moonriver$4 = {
|
|
|
7222
7474
|
var ParallelHeiko$4 = {
|
|
7223
7475
|
relayChainAssetSymbol: "KSM",
|
|
7224
7476
|
nativeAssetSymbol: "HKO",
|
|
7477
|
+
isEVM: false,
|
|
7225
7478
|
nativeAssets: [
|
|
7226
7479
|
{
|
|
7227
7480
|
symbol: "HKO",
|
|
@@ -7273,7 +7526,10 @@ var ParallelHeiko$4 = {
|
|
|
7273
7526
|
Parachain: 2000
|
|
7274
7527
|
},
|
|
7275
7528
|
{
|
|
7276
|
-
GeneralKey:
|
|
7529
|
+
GeneralKey: {
|
|
7530
|
+
length: 2,
|
|
7531
|
+
data: "0x0083000000000000000000000000000000000000000000000000000000000000"
|
|
7532
|
+
}
|
|
7277
7533
|
}
|
|
7278
7534
|
]
|
|
7279
7535
|
}
|
|
@@ -7291,7 +7547,10 @@ var ParallelHeiko$4 = {
|
|
|
7291
7547
|
Parachain: 2000
|
|
7292
7548
|
},
|
|
7293
7549
|
{
|
|
7294
|
-
GeneralKey:
|
|
7550
|
+
GeneralKey: {
|
|
7551
|
+
length: 2,
|
|
7552
|
+
data: "0x0080000000000000000000000000000000000000000000000000000000000000"
|
|
7553
|
+
}
|
|
7295
7554
|
}
|
|
7296
7555
|
]
|
|
7297
7556
|
}
|
|
@@ -7361,7 +7620,10 @@ var ParallelHeiko$4 = {
|
|
|
7361
7620
|
Parachain: 2092
|
|
7362
7621
|
},
|
|
7363
7622
|
{
|
|
7364
|
-
GeneralKey:
|
|
7623
|
+
GeneralKey: {
|
|
7624
|
+
length: 2,
|
|
7625
|
+
data: "0x000b000000000000000000000000000000000000000000000000000000000000"
|
|
7626
|
+
}
|
|
7365
7627
|
}
|
|
7366
7628
|
]
|
|
7367
7629
|
}
|
|
@@ -7379,7 +7641,10 @@ var ParallelHeiko$4 = {
|
|
|
7379
7641
|
Parachain: 2092
|
|
7380
7642
|
},
|
|
7381
7643
|
{
|
|
7382
|
-
GeneralKey:
|
|
7644
|
+
GeneralKey: {
|
|
7645
|
+
length: 2,
|
|
7646
|
+
data: "0x000c000000000000000000000000000000000000000000000000000000000000"
|
|
7647
|
+
}
|
|
7383
7648
|
}
|
|
7384
7649
|
]
|
|
7385
7650
|
}
|
|
@@ -7390,6 +7655,7 @@ var ParallelHeiko$4 = {
|
|
|
7390
7655
|
var Picasso$4 = {
|
|
7391
7656
|
relayChainAssetSymbol: "KSM",
|
|
7392
7657
|
nativeAssetSymbol: "PICA",
|
|
7658
|
+
isEVM: false,
|
|
7393
7659
|
nativeAssets: [
|
|
7394
7660
|
{
|
|
7395
7661
|
symbol: "PICA",
|
|
@@ -7752,6 +8018,7 @@ var Picasso$4 = {
|
|
|
7752
8018
|
var Pioneer$4 = {
|
|
7753
8019
|
relayChainAssetSymbol: "KSM",
|
|
7754
8020
|
nativeAssetSymbol: "NEER",
|
|
8021
|
+
isEVM: false,
|
|
7755
8022
|
nativeAssets: [
|
|
7756
8023
|
{
|
|
7757
8024
|
symbol: "NEER",
|
|
@@ -7764,6 +8031,7 @@ var Pioneer$4 = {
|
|
|
7764
8031
|
var Quartz$4 = {
|
|
7765
8032
|
relayChainAssetSymbol: "KSM",
|
|
7766
8033
|
nativeAssetSymbol: "QTZ",
|
|
8034
|
+
isEVM: false,
|
|
7767
8035
|
nativeAssets: [
|
|
7768
8036
|
{
|
|
7769
8037
|
symbol: "QTZ",
|
|
@@ -7776,6 +8044,7 @@ var Quartz$4 = {
|
|
|
7776
8044
|
var RobonomicsKusama$4 = {
|
|
7777
8045
|
relayChainAssetSymbol: "KSM",
|
|
7778
8046
|
nativeAssetSymbol: "XRT",
|
|
8047
|
+
isEVM: false,
|
|
7779
8048
|
nativeAssets: [
|
|
7780
8049
|
{
|
|
7781
8050
|
symbol: "XRT",
|
|
@@ -7788,6 +8057,7 @@ var RobonomicsKusama$4 = {
|
|
|
7788
8057
|
var RobonomicsPolkadot$4 = {
|
|
7789
8058
|
relayChainAssetSymbol: "DOT",
|
|
7790
8059
|
nativeAssetSymbol: "XRT",
|
|
8060
|
+
isEVM: false,
|
|
7791
8061
|
nativeAssets: [
|
|
7792
8062
|
{
|
|
7793
8063
|
symbol: "XRT",
|
|
@@ -7805,6 +8075,7 @@ var RobonomicsPolkadot$4 = {
|
|
|
7805
8075
|
var PeopleKusama$4 = {
|
|
7806
8076
|
relayChainAssetSymbol: "KSM",
|
|
7807
8077
|
nativeAssetSymbol: "KSM",
|
|
8078
|
+
isEVM: false,
|
|
7808
8079
|
nativeAssets: [
|
|
7809
8080
|
{
|
|
7810
8081
|
symbol: "KSM",
|
|
@@ -7817,6 +8088,7 @@ var PeopleKusama$4 = {
|
|
|
7817
8088
|
var PeoplePolkadot$4 = {
|
|
7818
8089
|
relayChainAssetSymbol: "DOT",
|
|
7819
8090
|
nativeAssetSymbol: "DOT",
|
|
8091
|
+
isEVM: false,
|
|
7820
8092
|
nativeAssets: [
|
|
7821
8093
|
{
|
|
7822
8094
|
symbol: "DOT",
|
|
@@ -7829,6 +8101,7 @@ var PeoplePolkadot$4 = {
|
|
|
7829
8101
|
var Shiden$4 = {
|
|
7830
8102
|
relayChainAssetSymbol: "KSM",
|
|
7831
8103
|
nativeAssetSymbol: "SDN",
|
|
8104
|
+
isEVM: false,
|
|
7832
8105
|
nativeAssets: [
|
|
7833
8106
|
{
|
|
7834
8107
|
symbol: "SDN",
|
|
@@ -7901,7 +8174,10 @@ var Shiden$4 = {
|
|
|
7901
8174
|
Parachain: 2000
|
|
7902
8175
|
},
|
|
7903
8176
|
{
|
|
7904
|
-
GeneralKey:
|
|
8177
|
+
GeneralKey: {
|
|
8178
|
+
length: 2,
|
|
8179
|
+
data: "0x0080000000000000000000000000000000000000000000000000000000000000"
|
|
8180
|
+
}
|
|
7905
8181
|
}
|
|
7906
8182
|
]
|
|
7907
8183
|
}
|
|
@@ -7919,7 +8195,10 @@ var Shiden$4 = {
|
|
|
7919
8195
|
Parachain: 2000
|
|
7920
8196
|
},
|
|
7921
8197
|
{
|
|
7922
|
-
GeneralKey:
|
|
8198
|
+
GeneralKey: {
|
|
8199
|
+
length: 2,
|
|
8200
|
+
data: "0x0083000000000000000000000000000000000000000000000000000000000000"
|
|
8201
|
+
}
|
|
7923
8202
|
}
|
|
7924
8203
|
]
|
|
7925
8204
|
}
|
|
@@ -7937,7 +8216,10 @@ var Shiden$4 = {
|
|
|
7937
8216
|
Parachain: 2000
|
|
7938
8217
|
},
|
|
7939
8218
|
{
|
|
7940
|
-
GeneralKey:
|
|
8219
|
+
GeneralKey: {
|
|
8220
|
+
length: 2,
|
|
8221
|
+
data: "0x0081000000000000000000000000000000000000000000000000000000000000"
|
|
8222
|
+
}
|
|
7941
8223
|
}
|
|
7942
8224
|
]
|
|
7943
8225
|
}
|
|
@@ -7955,7 +8237,10 @@ var Shiden$4 = {
|
|
|
7955
8237
|
Parachain: 2001
|
|
7956
8238
|
},
|
|
7957
8239
|
{
|
|
7958
|
-
GeneralKey:
|
|
8240
|
+
GeneralKey: {
|
|
8241
|
+
length: 2,
|
|
8242
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
8243
|
+
}
|
|
7959
8244
|
}
|
|
7960
8245
|
]
|
|
7961
8246
|
}
|
|
@@ -7973,7 +8258,10 @@ var Shiden$4 = {
|
|
|
7973
8258
|
Parachain: 2001
|
|
7974
8259
|
},
|
|
7975
8260
|
{
|
|
7976
|
-
GeneralKey:
|
|
8261
|
+
GeneralKey: {
|
|
8262
|
+
length: 2,
|
|
8263
|
+
data: "0x0404000000000000000000000000000000000000000000000000000000000000"
|
|
8264
|
+
}
|
|
7977
8265
|
}
|
|
7978
8266
|
]
|
|
7979
8267
|
}
|
|
@@ -7991,7 +8279,10 @@ var Shiden$4 = {
|
|
|
7991
8279
|
Parachain: 2001
|
|
7992
8280
|
},
|
|
7993
8281
|
{
|
|
7994
|
-
GeneralKey:
|
|
8282
|
+
GeneralKey: {
|
|
8283
|
+
length: 2,
|
|
8284
|
+
data: "0x0104000000000000000000000000000000000000000000000000000000000000"
|
|
8285
|
+
}
|
|
7995
8286
|
}
|
|
7996
8287
|
]
|
|
7997
8288
|
}
|
|
@@ -8066,7 +8357,10 @@ var Shiden$4 = {
|
|
|
8066
8357
|
Parachain: 2092
|
|
8067
8358
|
},
|
|
8068
8359
|
{
|
|
8069
|
-
GeneralKey:
|
|
8360
|
+
GeneralKey: {
|
|
8361
|
+
length: 2,
|
|
8362
|
+
data: "0x000b000000000000000000000000000000000000000000000000000000000000"
|
|
8363
|
+
}
|
|
8070
8364
|
}
|
|
8071
8365
|
]
|
|
8072
8366
|
}
|
|
@@ -8084,7 +8378,10 @@ var Shiden$4 = {
|
|
|
8084
8378
|
Parachain: 2092
|
|
8085
8379
|
},
|
|
8086
8380
|
{
|
|
8087
|
-
GeneralKey:
|
|
8381
|
+
GeneralKey: {
|
|
8382
|
+
length: 2,
|
|
8383
|
+
data: "0x000c000000000000000000000000000000000000000000000000000000000000"
|
|
8384
|
+
}
|
|
8088
8385
|
}
|
|
8089
8386
|
]
|
|
8090
8387
|
}
|
|
@@ -8126,6 +8423,7 @@ var Shiden$4 = {
|
|
|
8126
8423
|
var AssetHubKusama$4 = {
|
|
8127
8424
|
relayChainAssetSymbol: "KSM",
|
|
8128
8425
|
nativeAssetSymbol: "KSM",
|
|
8426
|
+
isEVM: false,
|
|
8129
8427
|
nativeAssets: [
|
|
8130
8428
|
{
|
|
8131
8429
|
symbol: "KSM",
|
|
@@ -8220,11 +8518,13 @@ var AssetHubKusama$4 = {
|
|
|
8220
8518
|
multiLocation: {
|
|
8221
8519
|
parents: 2,
|
|
8222
8520
|
interior: {
|
|
8223
|
-
X1:
|
|
8224
|
-
|
|
8225
|
-
|
|
8521
|
+
X1: [
|
|
8522
|
+
{
|
|
8523
|
+
GlobalConsensus: {
|
|
8524
|
+
polkadot: null
|
|
8525
|
+
}
|
|
8226
8526
|
}
|
|
8227
|
-
|
|
8527
|
+
]
|
|
8228
8528
|
}
|
|
8229
8529
|
}
|
|
8230
8530
|
},
|
|
@@ -8251,9 +8551,11 @@ var AssetHubKusama$4 = {
|
|
|
8251
8551
|
multiLocation: {
|
|
8252
8552
|
parents: 1,
|
|
8253
8553
|
interior: {
|
|
8254
|
-
X1:
|
|
8255
|
-
|
|
8256
|
-
|
|
8554
|
+
X1: [
|
|
8555
|
+
{
|
|
8556
|
+
Parachain: 2123
|
|
8557
|
+
}
|
|
8558
|
+
]
|
|
8257
8559
|
}
|
|
8258
8560
|
}
|
|
8259
8561
|
},
|
|
@@ -8273,12 +8575,27 @@ var AssetHubKusama$4 = {
|
|
|
8273
8575
|
]
|
|
8274
8576
|
}
|
|
8275
8577
|
}
|
|
8578
|
+
},
|
|
8579
|
+
{
|
|
8580
|
+
symbol: "TEER",
|
|
8581
|
+
decimals: 12,
|
|
8582
|
+
multiLocation: {
|
|
8583
|
+
parents: 1,
|
|
8584
|
+
interior: {
|
|
8585
|
+
X1: [
|
|
8586
|
+
{
|
|
8587
|
+
Parachain: 2015
|
|
8588
|
+
}
|
|
8589
|
+
]
|
|
8590
|
+
}
|
|
8591
|
+
}
|
|
8276
8592
|
}
|
|
8277
8593
|
]
|
|
8278
8594
|
};
|
|
8279
8595
|
var CoretimeKusama$4 = {
|
|
8280
8596
|
relayChainAssetSymbol: "KSM",
|
|
8281
8597
|
nativeAssetSymbol: "KSM",
|
|
8598
|
+
isEVM: false,
|
|
8282
8599
|
nativeAssets: [
|
|
8283
8600
|
{
|
|
8284
8601
|
symbol: "KSM",
|
|
@@ -8291,6 +8608,7 @@ var CoretimeKusama$4 = {
|
|
|
8291
8608
|
var CoretimePolkadot$4 = {
|
|
8292
8609
|
relayChainAssetSymbol: "DOT",
|
|
8293
8610
|
nativeAssetSymbol: "DOT",
|
|
8611
|
+
isEVM: false,
|
|
8294
8612
|
nativeAssets: [
|
|
8295
8613
|
{
|
|
8296
8614
|
symbol: "DOT",
|
|
@@ -8303,6 +8621,7 @@ var CoretimePolkadot$4 = {
|
|
|
8303
8621
|
var Turing$4 = {
|
|
8304
8622
|
relayChainAssetSymbol: "KSM",
|
|
8305
8623
|
nativeAssetSymbol: "TUR",
|
|
8624
|
+
isEVM: false,
|
|
8306
8625
|
nativeAssets: [
|
|
8307
8626
|
{
|
|
8308
8627
|
symbol: "TUR",
|
|
@@ -8333,7 +8652,10 @@ var Turing$4 = {
|
|
|
8333
8652
|
Parachain: 2000
|
|
8334
8653
|
},
|
|
8335
8654
|
{
|
|
8336
|
-
GeneralKey:
|
|
8655
|
+
GeneralKey: {
|
|
8656
|
+
length: 2,
|
|
8657
|
+
data: "0x0081000000000000000000000000000000000000000000000000000000000000"
|
|
8658
|
+
}
|
|
8337
8659
|
}
|
|
8338
8660
|
]
|
|
8339
8661
|
}
|
|
@@ -8351,7 +8673,10 @@ var Turing$4 = {
|
|
|
8351
8673
|
Parachain: 2000
|
|
8352
8674
|
},
|
|
8353
8675
|
{
|
|
8354
|
-
GeneralKey:
|
|
8676
|
+
GeneralKey: {
|
|
8677
|
+
length: 2,
|
|
8678
|
+
data: "0x0080000000000000000000000000000000000000000000000000000000000000"
|
|
8679
|
+
}
|
|
8355
8680
|
}
|
|
8356
8681
|
]
|
|
8357
8682
|
}
|
|
@@ -8369,7 +8694,10 @@ var Turing$4 = {
|
|
|
8369
8694
|
Parachain: 2000
|
|
8370
8695
|
},
|
|
8371
8696
|
{
|
|
8372
|
-
GeneralKey:
|
|
8697
|
+
GeneralKey: {
|
|
8698
|
+
length: 2,
|
|
8699
|
+
data: "0x0083000000000000000000000000000000000000000000000000000000000000"
|
|
8700
|
+
}
|
|
8373
8701
|
}
|
|
8374
8702
|
]
|
|
8375
8703
|
}
|
|
@@ -8431,7 +8759,10 @@ var Turing$4 = {
|
|
|
8431
8759
|
Parachain: 2085
|
|
8432
8760
|
},
|
|
8433
8761
|
{
|
|
8434
|
-
GeneralKey:
|
|
8762
|
+
GeneralKey: {
|
|
8763
|
+
length: 3,
|
|
8764
|
+
data: "0x484b4f0000000000000000000000000000000000000000000000000000000000"
|
|
8765
|
+
}
|
|
8435
8766
|
}
|
|
8436
8767
|
]
|
|
8437
8768
|
}
|
|
@@ -8449,7 +8780,10 @@ var Turing$4 = {
|
|
|
8449
8780
|
Parachain: 2085
|
|
8450
8781
|
},
|
|
8451
8782
|
{
|
|
8452
|
-
GeneralKey:
|
|
8783
|
+
GeneralKey: {
|
|
8784
|
+
length: 4,
|
|
8785
|
+
data: "0x734b534d00000000000000000000000000000000000000000000000000000000"
|
|
8786
|
+
}
|
|
8453
8787
|
}
|
|
8454
8788
|
]
|
|
8455
8789
|
}
|
|
@@ -8467,7 +8801,10 @@ var Turing$4 = {
|
|
|
8467
8801
|
Parachain: 2110
|
|
8468
8802
|
},
|
|
8469
8803
|
{
|
|
8470
|
-
GeneralKey:
|
|
8804
|
+
GeneralKey: {
|
|
8805
|
+
length: 4,
|
|
8806
|
+
data: "0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
8807
|
+
}
|
|
8471
8808
|
}
|
|
8472
8809
|
]
|
|
8473
8810
|
}
|
|
@@ -8491,6 +8828,7 @@ var Turing$4 = {
|
|
|
8491
8828
|
var Unique$4 = {
|
|
8492
8829
|
relayChainAssetSymbol: "DOT",
|
|
8493
8830
|
nativeAssetSymbol: "UNQ",
|
|
8831
|
+
isEVM: false,
|
|
8494
8832
|
nativeAssets: [
|
|
8495
8833
|
{
|
|
8496
8834
|
symbol: "UNQ",
|
|
@@ -8503,6 +8841,7 @@ var Unique$4 = {
|
|
|
8503
8841
|
var Crust$4 = {
|
|
8504
8842
|
relayChainAssetSymbol: "DOT",
|
|
8505
8843
|
nativeAssetSymbol: "CRU",
|
|
8844
|
+
isEVM: false,
|
|
8506
8845
|
nativeAssets: [
|
|
8507
8846
|
{
|
|
8508
8847
|
symbol: "CRU",
|
|
@@ -8525,6 +8864,7 @@ var Crust$4 = {
|
|
|
8525
8864
|
var Manta$4 = {
|
|
8526
8865
|
relayChainAssetSymbol: "DOT",
|
|
8527
8866
|
nativeAssetSymbol: "MANTA",
|
|
8867
|
+
isEVM: false,
|
|
8528
8868
|
nativeAssets: [
|
|
8529
8869
|
{
|
|
8530
8870
|
symbol: "MANTA",
|
|
@@ -8697,6 +9037,7 @@ var Manta$4 = {
|
|
|
8697
9037
|
var Nodle$4 = {
|
|
8698
9038
|
relayChainAssetSymbol: "DOT",
|
|
8699
9039
|
nativeAssetSymbol: "NODL",
|
|
9040
|
+
isEVM: false,
|
|
8700
9041
|
nativeAssets: [
|
|
8701
9042
|
{
|
|
8702
9043
|
symbol: "NODL",
|
|
@@ -8709,6 +9050,7 @@ var Nodle$4 = {
|
|
|
8709
9050
|
var NeuroWeb$4 = {
|
|
8710
9051
|
relayChainAssetSymbol: "DOT",
|
|
8711
9052
|
nativeAssetSymbol: "NEURO",
|
|
9053
|
+
isEVM: false,
|
|
8712
9054
|
nativeAssets: [
|
|
8713
9055
|
{
|
|
8714
9056
|
symbol: "NEURO",
|
|
@@ -8726,6 +9068,7 @@ var NeuroWeb$4 = {
|
|
|
8726
9068
|
var Pendulum$4 = {
|
|
8727
9069
|
relayChainAssetSymbol: "DOT",
|
|
8728
9070
|
nativeAssetSymbol: "PEN",
|
|
9071
|
+
isEVM: false,
|
|
8729
9072
|
nativeAssets: [
|
|
8730
9073
|
{
|
|
8731
9074
|
symbol: "PEN",
|
|
@@ -8898,7 +9241,10 @@ var Pendulum$4 = {
|
|
|
8898
9241
|
Parachain: 2030
|
|
8899
9242
|
},
|
|
8900
9243
|
{
|
|
8901
|
-
GeneralKey:
|
|
9244
|
+
GeneralKey: {
|
|
9245
|
+
length: 2,
|
|
9246
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
9247
|
+
}
|
|
8902
9248
|
}
|
|
8903
9249
|
]
|
|
8904
9250
|
}
|
|
@@ -8916,7 +9262,10 @@ var Pendulum$4 = {
|
|
|
8916
9262
|
Parachain: 2030
|
|
8917
9263
|
},
|
|
8918
9264
|
{
|
|
8919
|
-
GeneralKey:
|
|
9265
|
+
GeneralKey: {
|
|
9266
|
+
length: 2,
|
|
9267
|
+
data: "0x0900000000000000000000000000000000000000000000000000000000000000"
|
|
9268
|
+
}
|
|
8920
9269
|
}
|
|
8921
9270
|
]
|
|
8922
9271
|
}
|
|
@@ -8976,6 +9325,7 @@ var Pendulum$4 = {
|
|
|
8976
9325
|
var Polkadex$4 = {
|
|
8977
9326
|
relayChainAssetSymbol: "DOT",
|
|
8978
9327
|
nativeAssetSymbol: "PDEX",
|
|
9328
|
+
isEVM: false,
|
|
8979
9329
|
nativeAssets: [
|
|
8980
9330
|
{
|
|
8981
9331
|
symbol: "PDEX",
|
|
@@ -9047,6 +9397,7 @@ var Polkadex$4 = {
|
|
|
9047
9397
|
var Zeitgeist$4 = {
|
|
9048
9398
|
relayChainAssetSymbol: "DOT",
|
|
9049
9399
|
nativeAssetSymbol: "ZTG",
|
|
9400
|
+
isEVM: false,
|
|
9050
9401
|
nativeAssets: [
|
|
9051
9402
|
{
|
|
9052
9403
|
symbol: "ZTG",
|
|
@@ -9126,6 +9477,7 @@ var Zeitgeist$4 = {
|
|
|
9126
9477
|
var Collectives$4 = {
|
|
9127
9478
|
relayChainAssetSymbol: "DOT",
|
|
9128
9479
|
nativeAssetSymbol: "DOT",
|
|
9480
|
+
isEVM: false,
|
|
9129
9481
|
nativeAssets: [
|
|
9130
9482
|
{
|
|
9131
9483
|
symbol: "DOT",
|
|
@@ -9138,6 +9490,7 @@ var Collectives$4 = {
|
|
|
9138
9490
|
var Phala$4 = {
|
|
9139
9491
|
relayChainAssetSymbol: "DOT",
|
|
9140
9492
|
nativeAssetSymbol: "PHA",
|
|
9493
|
+
isEVM: false,
|
|
9141
9494
|
nativeAssets: [
|
|
9142
9495
|
{
|
|
9143
9496
|
symbol: "PHA",
|
|
@@ -9189,7 +9542,10 @@ var Phala$4 = {
|
|
|
9189
9542
|
Parachain: 2000
|
|
9190
9543
|
},
|
|
9191
9544
|
{
|
|
9192
|
-
GeneralKey:
|
|
9545
|
+
GeneralKey: {
|
|
9546
|
+
length: 2,
|
|
9547
|
+
data: "0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
9548
|
+
}
|
|
9193
9549
|
}
|
|
9194
9550
|
]
|
|
9195
9551
|
}
|
|
@@ -9207,7 +9563,10 @@ var Phala$4 = {
|
|
|
9207
9563
|
Parachain: 2000
|
|
9208
9564
|
},
|
|
9209
9565
|
{
|
|
9210
|
-
GeneralKey:
|
|
9566
|
+
GeneralKey: {
|
|
9567
|
+
length: 2,
|
|
9568
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
9569
|
+
}
|
|
9211
9570
|
}
|
|
9212
9571
|
]
|
|
9213
9572
|
}
|
|
@@ -9225,7 +9584,10 @@ var Phala$4 = {
|
|
|
9225
9584
|
Parachain: 2000
|
|
9226
9585
|
},
|
|
9227
9586
|
{
|
|
9228
|
-
GeneralKey:
|
|
9587
|
+
GeneralKey: {
|
|
9588
|
+
length: 2,
|
|
9589
|
+
data: "0x0003000000000000000000000000000000000000000000000000000000000000"
|
|
9590
|
+
}
|
|
9229
9591
|
}
|
|
9230
9592
|
]
|
|
9231
9593
|
}
|
|
@@ -9287,7 +9649,10 @@ var Phala$4 = {
|
|
|
9287
9649
|
Parachain: 2011
|
|
9288
9650
|
},
|
|
9289
9651
|
{
|
|
9290
|
-
GeneralKey:
|
|
9652
|
+
GeneralKey: {
|
|
9653
|
+
length: 3,
|
|
9654
|
+
data: "0x6571640000000000000000000000000000000000000000000000000000000000"
|
|
9655
|
+
}
|
|
9291
9656
|
}
|
|
9292
9657
|
]
|
|
9293
9658
|
}
|
|
@@ -9305,7 +9670,10 @@ var Phala$4 = {
|
|
|
9305
9670
|
Parachain: 2012
|
|
9306
9671
|
},
|
|
9307
9672
|
{
|
|
9308
|
-
GeneralKey:
|
|
9673
|
+
GeneralKey: {
|
|
9674
|
+
length: 4,
|
|
9675
|
+
data: "0x5041524100000000000000000000000000000000000000000000000000000000"
|
|
9676
|
+
}
|
|
9309
9677
|
}
|
|
9310
9678
|
]
|
|
9311
9679
|
}
|
|
@@ -9323,7 +9691,10 @@ var Phala$4 = {
|
|
|
9323
9691
|
Parachain: 2030
|
|
9324
9692
|
},
|
|
9325
9693
|
{
|
|
9326
|
-
GeneralKey:
|
|
9694
|
+
GeneralKey: {
|
|
9695
|
+
length: 2,
|
|
9696
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
9697
|
+
}
|
|
9327
9698
|
}
|
|
9328
9699
|
]
|
|
9329
9700
|
}
|
|
@@ -9341,7 +9712,10 @@ var Phala$4 = {
|
|
|
9341
9712
|
Parachain: 2032
|
|
9342
9713
|
},
|
|
9343
9714
|
{
|
|
9344
|
-
GeneralKey:
|
|
9715
|
+
GeneralKey: {
|
|
9716
|
+
length: 2,
|
|
9717
|
+
data: "0x0002000000000000000000000000000000000000000000000000000000000000"
|
|
9718
|
+
}
|
|
9345
9719
|
}
|
|
9346
9720
|
]
|
|
9347
9721
|
}
|
|
@@ -9359,7 +9733,10 @@ var Phala$4 = {
|
|
|
9359
9733
|
Parachain: 2032
|
|
9360
9734
|
},
|
|
9361
9735
|
{
|
|
9362
|
-
GeneralKey:
|
|
9736
|
+
GeneralKey: {
|
|
9737
|
+
length: 2,
|
|
9738
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
9739
|
+
}
|
|
9363
9740
|
}
|
|
9364
9741
|
]
|
|
9365
9742
|
}
|
|
@@ -9404,6 +9781,7 @@ var Phala$4 = {
|
|
|
9404
9781
|
]
|
|
9405
9782
|
};
|
|
9406
9783
|
var Ethereum = {
|
|
9784
|
+
isEVM: true,
|
|
9407
9785
|
relayChainAssetSymbol: "DOT",
|
|
9408
9786
|
nativeAssetSymbol: "ETH",
|
|
9409
9787
|
nativeAssets: [
|
|
@@ -9671,6 +10049,7 @@ var Ethereum = {
|
|
|
9671
10049
|
var Khala$4 = {
|
|
9672
10050
|
relayChainAssetSymbol: "KSM",
|
|
9673
10051
|
nativeAssetSymbol: "PHA",
|
|
10052
|
+
isEVM: false,
|
|
9674
10053
|
nativeAssets: [
|
|
9675
10054
|
{
|
|
9676
10055
|
symbol: "PHA",
|
|
@@ -9701,7 +10080,10 @@ var Khala$4 = {
|
|
|
9701
10080
|
Parachain: 2000
|
|
9702
10081
|
},
|
|
9703
10082
|
{
|
|
9704
|
-
GeneralKey:
|
|
10083
|
+
GeneralKey: {
|
|
10084
|
+
length: 2,
|
|
10085
|
+
data: "0x0080000000000000000000000000000000000000000000000000000000000000"
|
|
10086
|
+
}
|
|
9705
10087
|
}
|
|
9706
10088
|
]
|
|
9707
10089
|
}
|
|
@@ -9719,7 +10101,10 @@ var Khala$4 = {
|
|
|
9719
10101
|
Parachain: 2000
|
|
9720
10102
|
},
|
|
9721
10103
|
{
|
|
9722
|
-
GeneralKey:
|
|
10104
|
+
GeneralKey: {
|
|
10105
|
+
length: 2,
|
|
10106
|
+
data: "0x0081000000000000000000000000000000000000000000000000000000000000"
|
|
10107
|
+
}
|
|
9723
10108
|
}
|
|
9724
10109
|
]
|
|
9725
10110
|
}
|
|
@@ -9737,7 +10122,10 @@ var Khala$4 = {
|
|
|
9737
10122
|
Parachain: 2001
|
|
9738
10123
|
},
|
|
9739
10124
|
{
|
|
9740
|
-
GeneralKey:
|
|
10125
|
+
GeneralKey: {
|
|
10126
|
+
length: 2,
|
|
10127
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
10128
|
+
}
|
|
9741
10129
|
}
|
|
9742
10130
|
]
|
|
9743
10131
|
}
|
|
@@ -9755,7 +10143,10 @@ var Khala$4 = {
|
|
|
9755
10143
|
Parachain: 2001
|
|
9756
10144
|
},
|
|
9757
10145
|
{
|
|
9758
|
-
GeneralKey:
|
|
10146
|
+
GeneralKey: {
|
|
10147
|
+
length: 2,
|
|
10148
|
+
data: "0x0207000000000000000000000000000000000000000000000000000000000000"
|
|
10149
|
+
}
|
|
9759
10150
|
}
|
|
9760
10151
|
]
|
|
9761
10152
|
}
|
|
@@ -9817,7 +10208,10 @@ var Khala$4 = {
|
|
|
9817
10208
|
Parachain: 2085
|
|
9818
10209
|
},
|
|
9819
10210
|
{
|
|
9820
|
-
GeneralKey:
|
|
10211
|
+
GeneralKey: {
|
|
10212
|
+
length: 3,
|
|
10213
|
+
data: "0x484b4f0000000000000000000000000000000000000000000000000000000000"
|
|
10214
|
+
}
|
|
9821
10215
|
}
|
|
9822
10216
|
]
|
|
9823
10217
|
}
|
|
@@ -9848,7 +10242,10 @@ var Khala$4 = {
|
|
|
9848
10242
|
Parachain: 2090
|
|
9849
10243
|
},
|
|
9850
10244
|
{
|
|
9851
|
-
GeneralKey:
|
|
10245
|
+
GeneralKey: {
|
|
10246
|
+
length: 4,
|
|
10247
|
+
data: "0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
10248
|
+
}
|
|
9852
10249
|
}
|
|
9853
10250
|
]
|
|
9854
10251
|
}
|
|
@@ -9886,7 +10283,10 @@ var Khala$4 = {
|
|
|
9886
10283
|
Parachain: 2096
|
|
9887
10284
|
},
|
|
9888
10285
|
{
|
|
9889
|
-
GeneralKey:
|
|
10286
|
+
GeneralKey: {
|
|
10287
|
+
length: 9,
|
|
10288
|
+
data: "0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
10289
|
+
}
|
|
9890
10290
|
}
|
|
9891
10291
|
]
|
|
9892
10292
|
}
|
|
@@ -9904,7 +10304,10 @@ var Khala$4 = {
|
|
|
9904
10304
|
Parachain: 2096
|
|
9905
10305
|
},
|
|
9906
10306
|
{
|
|
9907
|
-
GeneralKey:
|
|
10307
|
+
GeneralKey: {
|
|
10308
|
+
length: 9,
|
|
10309
|
+
data: "0x0200000000000000000000000000000000000000000000000000000000000000"
|
|
10310
|
+
}
|
|
9908
10311
|
}
|
|
9909
10312
|
]
|
|
9910
10313
|
}
|
|
@@ -9946,6 +10349,7 @@ var Khala$4 = {
|
|
|
9946
10349
|
var Mythos$4 = {
|
|
9947
10350
|
relayChainAssetSymbol: "DOT",
|
|
9948
10351
|
nativeAssetSymbol: "MYTH",
|
|
10352
|
+
isEVM: true,
|
|
9949
10353
|
nativeAssets: [
|
|
9950
10354
|
{
|
|
9951
10355
|
symbol: "MYTH",
|
|
@@ -9958,6 +10362,7 @@ var Mythos$4 = {
|
|
|
9958
10362
|
var Peaq$4 = {
|
|
9959
10363
|
relayChainAssetSymbol: "DOT",
|
|
9960
10364
|
nativeAssetSymbol: "PEAQ",
|
|
10365
|
+
isEVM: false,
|
|
9961
10366
|
nativeAssets: [
|
|
9962
10367
|
{
|
|
9963
10368
|
symbol: "PEAQ",
|
|
@@ -11584,6 +11989,77 @@ var getNodeProviders = function getNodeProviders(node) {
|
|
|
11584
11989
|
});
|
|
11585
11990
|
};
|
|
11586
11991
|
|
|
11992
|
+
var getNodeProvider = function getNodeProvider(node) {
|
|
11993
|
+
if (isRelayChain(node)) {
|
|
11994
|
+
var _getNodeConfig = getNodeConfig(node),
|
|
11995
|
+
providers = _getNodeConfig.providers;
|
|
11996
|
+
if (providers.length === 0) {
|
|
11997
|
+
throw new Error("No providers found for node ".concat(node));
|
|
11998
|
+
}
|
|
11999
|
+
return providers[0].endpoint;
|
|
12000
|
+
}
|
|
12001
|
+
return getNode(node).getProvider();
|
|
12002
|
+
};
|
|
12003
|
+
|
|
12004
|
+
/**
|
|
12005
|
+
* Retrieves the parachain ID for a specified node.
|
|
12006
|
+
*
|
|
12007
|
+
* @param node - The node for which to get the paraId.
|
|
12008
|
+
* @returns The parachain ID of the node.
|
|
12009
|
+
*/
|
|
12010
|
+
var getParaId = function getParaId(node) {
|
|
12011
|
+
return getNodeConfig(node).paraId;
|
|
12012
|
+
};
|
|
12013
|
+
|
|
12014
|
+
/**
|
|
12015
|
+
* Used to inform user, that Parachain they wish to use has not yet implemented full XCM Support
|
|
12016
|
+
*/
|
|
12017
|
+
var NoXCMSupportImplementedError = /*#__PURE__*/function (_Error) {
|
|
12018
|
+
/**
|
|
12019
|
+
* Constructs a new NoXCMSupportImplementedError.
|
|
12020
|
+
*
|
|
12021
|
+
* @param node - The node for which XCM support is not implemented.
|
|
12022
|
+
*/
|
|
12023
|
+
function NoXCMSupportImplementedError(node) {
|
|
12024
|
+
var _this;
|
|
12025
|
+
_classCallCheck(this, NoXCMSupportImplementedError);
|
|
12026
|
+
_this = _callSuper(this, NoXCMSupportImplementedError, ["No XCM support implemented for ".concat(node, " node yet.")]);
|
|
12027
|
+
_this.name = 'NoXCMSupportImplemented';
|
|
12028
|
+
return _this;
|
|
12029
|
+
}
|
|
12030
|
+
_inherits(NoXCMSupportImplementedError, _Error);
|
|
12031
|
+
return _createClass(NoXCMSupportImplementedError);
|
|
12032
|
+
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
12033
|
+
|
|
12034
|
+
var findParachainJunction = function findParachainJunction(multilocation) {
|
|
12035
|
+
var interior = multilocation.interior;
|
|
12036
|
+
if (interior === 'Here') {
|
|
12037
|
+
return null;
|
|
12038
|
+
}
|
|
12039
|
+
for (var key in interior) {
|
|
12040
|
+
var junctions = interior[key];
|
|
12041
|
+
if (Array.isArray(junctions)) {
|
|
12042
|
+
var _iterator = _createForOfIteratorHelper(junctions),
|
|
12043
|
+
_step;
|
|
12044
|
+
try {
|
|
12045
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
12046
|
+
var junction = _step.value;
|
|
12047
|
+
if ('Parachain' in junction) {
|
|
12048
|
+
return Number(junction.Parachain);
|
|
12049
|
+
}
|
|
12050
|
+
}
|
|
12051
|
+
} catch (err) {
|
|
12052
|
+
_iterator.e(err);
|
|
12053
|
+
} finally {
|
|
12054
|
+
_iterator.f();
|
|
12055
|
+
}
|
|
12056
|
+
} else if (_typeof(junctions) === 'object' && junctions !== null && 'Parachain' in junctions) {
|
|
12057
|
+
return Number(junctions.Parachain);
|
|
12058
|
+
}
|
|
12059
|
+
}
|
|
12060
|
+
return null;
|
|
12061
|
+
};
|
|
12062
|
+
|
|
11587
12063
|
var createX1Payload = function createX1Payload(version, junction) {
|
|
11588
12064
|
return version === Version.V4 ? {
|
|
11589
12065
|
X1: [junction]
|
|
@@ -11592,282 +12068,147 @@ var createX1Payload = function createX1Payload(version, junction) {
|
|
|
11592
12068
|
};
|
|
11593
12069
|
};
|
|
11594
12070
|
|
|
11595
|
-
|
|
11596
|
-
|
|
11597
|
-
|
|
11598
|
-
var
|
|
11599
|
-
|
|
11600
|
-
|
|
11601
|
-
|
|
11602
|
-
|
|
11603
|
-
|
|
11604
|
-
|
|
11605
|
-
|
|
11606
|
-
|
|
11607
|
-
|
|
11608
|
-
|
|
11609
|
-
|
|
11610
|
-
var obj2Keys = Object.keys(obj2).map(function (key) {
|
|
11611
|
-
return key.toLowerCase();
|
|
11612
|
-
});
|
|
11613
|
-
if (obj1Keys.length !== obj2Keys.length) return false;
|
|
11614
|
-
var _iterator = _createForOfIteratorHelper(obj1Keys),
|
|
11615
|
-
_step;
|
|
11616
|
-
try {
|
|
11617
|
-
var _loop = function _loop() {
|
|
11618
|
-
var key = _step.value;
|
|
11619
|
-
var keyInObj2 = obj2Keys.find(function (k) {
|
|
11620
|
-
return k === key;
|
|
11621
|
-
});
|
|
11622
|
-
if (!keyInObj2) return {
|
|
11623
|
-
v: false
|
|
11624
|
-
};
|
|
11625
|
-
var obj1Value = obj1[Object.keys(obj1).find(function (k) {
|
|
11626
|
-
return k.toLowerCase() === key;
|
|
11627
|
-
})];
|
|
11628
|
-
var obj2Value = obj2[Object.keys(obj2).find(function (k) {
|
|
11629
|
-
return k.toLowerCase() === key;
|
|
11630
|
-
})];
|
|
11631
|
-
if (!_deepEqual(obj1Value, obj2Value)) return {
|
|
11632
|
-
v: false
|
|
11633
|
-
};
|
|
11634
|
-
},
|
|
11635
|
-
_ret;
|
|
11636
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
11637
|
-
_ret = _loop();
|
|
11638
|
-
if (_ret) return _ret.v;
|
|
11639
|
-
}
|
|
11640
|
-
} catch (err) {
|
|
11641
|
-
_iterator.e(err);
|
|
11642
|
-
} finally {
|
|
11643
|
-
_iterator.f();
|
|
11644
|
-
}
|
|
11645
|
-
return true;
|
|
11646
|
-
};
|
|
11647
|
-
|
|
11648
|
-
var generateAddressMultiLocationV4 = function generateAddressMultiLocationV4(api, address) {
|
|
11649
|
-
var isMultiLocation = _typeof(address) === 'object';
|
|
11650
|
-
if (isMultiLocation) {
|
|
11651
|
-
return _defineProperty({}, Version.V4, address);
|
|
12071
|
+
/**
|
|
12072
|
+
* Used to inform user, that currency they wish to use is not registered on either origin or destination Parachain
|
|
12073
|
+
*/
|
|
12074
|
+
var InvalidCurrencyError = /*#__PURE__*/function (_Error) {
|
|
12075
|
+
/**
|
|
12076
|
+
* Constructs a new InvalidCurrencyError.
|
|
12077
|
+
*
|
|
12078
|
+
* @param message - The error message.
|
|
12079
|
+
*/
|
|
12080
|
+
function InvalidCurrencyError(message) {
|
|
12081
|
+
var _this;
|
|
12082
|
+
_classCallCheck(this, InvalidCurrencyError);
|
|
12083
|
+
_this = _callSuper(this, InvalidCurrencyError, [message]);
|
|
12084
|
+
_this.name = 'InvalidCurrencyError';
|
|
12085
|
+
return _this;
|
|
11652
12086
|
}
|
|
11653
|
-
|
|
11654
|
-
return
|
|
11655
|
-
|
|
11656
|
-
interior: {
|
|
11657
|
-
X1: [isEthAddress ? {
|
|
11658
|
-
AccountKey20: {
|
|
11659
|
-
key: address
|
|
11660
|
-
}
|
|
11661
|
-
} : {
|
|
11662
|
-
AccountId32: {
|
|
11663
|
-
id: api.createAccountId(address),
|
|
11664
|
-
network: null
|
|
11665
|
-
}
|
|
11666
|
-
}]
|
|
11667
|
-
}
|
|
11668
|
-
});
|
|
11669
|
-
};
|
|
12087
|
+
_inherits(InvalidCurrencyError, _Error);
|
|
12088
|
+
return _createClass(InvalidCurrencyError);
|
|
12089
|
+
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
11670
12090
|
|
|
11671
|
-
|
|
11672
|
-
|
|
11673
|
-
|
|
11674
|
-
|
|
11675
|
-
|
|
11676
|
-
|
|
11677
|
-
|
|
11678
|
-
|
|
11679
|
-
|
|
11680
|
-
|
|
11681
|
-
|
|
11682
|
-
|
|
11683
|
-
|
|
11684
|
-
|
|
11685
|
-
|
|
11686
|
-
})
|
|
11687
|
-
});
|
|
11688
|
-
}
|
|
11689
|
-
if (scenario === 'ParaToPara' && pallet === 'XTokens') {
|
|
11690
|
-
return _defineProperty({}, version, {
|
|
11691
|
-
parents: Parents.ONE,
|
|
11692
|
-
interior: {
|
|
11693
|
-
X2: [{
|
|
11694
|
-
Parachain: nodeId
|
|
11695
|
-
}, isEthAddress ? {
|
|
11696
|
-
AccountKey20: Object.assign(Object.assign({}, (version === Version.V1 || version === Version.V2) && {
|
|
11697
|
-
network: 'any'
|
|
11698
|
-
}), {
|
|
11699
|
-
key: recipientAddress
|
|
11700
|
-
})
|
|
11701
|
-
} : {
|
|
11702
|
-
AccountId32: Object.assign(Object.assign({}, (version === Version.V1 || version === Version.V2) && {
|
|
11703
|
-
network: 'any'
|
|
11704
|
-
}), {
|
|
11705
|
-
id: api.createAccountId(recipientAddress)
|
|
11706
|
-
})
|
|
11707
|
-
}]
|
|
11708
|
-
}
|
|
11709
|
-
});
|
|
11710
|
-
}
|
|
11711
|
-
if (scenario === 'ParaToPara' && pallet === 'PolkadotXcm') {
|
|
11712
|
-
return _defineProperty({}, version, {
|
|
11713
|
-
parents: Parents.ZERO,
|
|
11714
|
-
interior: createX1Payload(version, isEthAddress ? {
|
|
11715
|
-
AccountKey20: Object.assign(Object.assign({}, (version === Version.V1 || version === Version.V2) && {
|
|
11716
|
-
network: 'any'
|
|
11717
|
-
}), {
|
|
11718
|
-
key: recipientAddress
|
|
11719
|
-
})
|
|
11720
|
-
} : {
|
|
11721
|
-
AccountId32: Object.assign(Object.assign({}, (version === Version.V1 || version === Version.V2) && {
|
|
11722
|
-
network: 'any'
|
|
11723
|
-
}), {
|
|
11724
|
-
id: api.createAccountId(recipientAddress)
|
|
11725
|
-
})
|
|
11726
|
-
})
|
|
11727
|
-
});
|
|
12091
|
+
/**
|
|
12092
|
+
* Used to inform user, that Parachain they wish to use is not supported yet
|
|
12093
|
+
*/
|
|
12094
|
+
var NodeNotSupportedError = /*#__PURE__*/function (_Error) {
|
|
12095
|
+
/**
|
|
12096
|
+
* Constructs a new NodeNotSupportedError.
|
|
12097
|
+
*
|
|
12098
|
+
* @param message - Optional custom error message.
|
|
12099
|
+
*/
|
|
12100
|
+
function NodeNotSupportedError(message) {
|
|
12101
|
+
var _this;
|
|
12102
|
+
_classCallCheck(this, NodeNotSupportedError);
|
|
12103
|
+
_this = _callSuper(this, NodeNotSupportedError, [message !== null && message !== void 0 ? message : 'These nodes do not support XCM transfers from Relay / to Relay chain.']);
|
|
12104
|
+
_this.name = 'NodeNotSupported';
|
|
12105
|
+
return _this;
|
|
11728
12106
|
}
|
|
11729
|
-
|
|
11730
|
-
|
|
11731
|
-
|
|
11732
|
-
AccountKey20: {
|
|
11733
|
-
key: recipientAddress
|
|
11734
|
-
}
|
|
11735
|
-
} : {
|
|
11736
|
-
AccountId32: {
|
|
11737
|
-
id: api.createAccountId(recipientAddress)
|
|
11738
|
-
}
|
|
11739
|
-
})
|
|
11740
|
-
});
|
|
11741
|
-
};
|
|
12107
|
+
_inherits(NodeNotSupportedError, _Error);
|
|
12108
|
+
return _createClass(NodeNotSupportedError);
|
|
12109
|
+
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
11742
12110
|
|
|
11743
|
-
|
|
11744
|
-
|
|
11745
|
-
|
|
11746
|
-
|
|
11747
|
-
|
|
12111
|
+
/**
|
|
12112
|
+
* Used to inform user, that Parachain they wish to use does not support scenario they wish to use yet
|
|
12113
|
+
*/
|
|
12114
|
+
var ScenarioNotSupportedError = /*#__PURE__*/function (_Error) {
|
|
12115
|
+
/**
|
|
12116
|
+
* Constructs a new ScenarioNotSupportedError.
|
|
12117
|
+
*
|
|
12118
|
+
* @param node - The node where the scenario is not supported.
|
|
12119
|
+
* @param scenario - The scenario that is not supported.
|
|
12120
|
+
* @param message - Optional custom error message.
|
|
12121
|
+
*/
|
|
12122
|
+
function ScenarioNotSupportedError(node, scenario, message) {
|
|
12123
|
+
var _this;
|
|
12124
|
+
_classCallCheck(this, ScenarioNotSupportedError);
|
|
12125
|
+
_this = _callSuper(this, ScenarioNotSupportedError, [message !== null && message !== void 0 ? message : "Scenario ".concat(scenario, " not supported for node ").concat(node)]);
|
|
12126
|
+
_this.name = 'ScenarioNotSupported';
|
|
12127
|
+
return _this;
|
|
11748
12128
|
}
|
|
11749
|
-
|
|
11750
|
-
|
|
12129
|
+
_inherits(ScenarioNotSupportedError, _Error);
|
|
12130
|
+
return _createClass(ScenarioNotSupportedError);
|
|
12131
|
+
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
11751
12132
|
|
|
11752
12133
|
/**
|
|
11753
|
-
*
|
|
11754
|
-
*
|
|
11755
|
-
* @param node - The node identifier.
|
|
11756
|
-
* @returns The node instance
|
|
12134
|
+
* Error thrown when nodes from different relay chains are incompatible.
|
|
11757
12135
|
*/
|
|
11758
|
-
var
|
|
11759
|
-
|
|
11760
|
-
|
|
11761
|
-
|
|
11762
|
-
|
|
11763
|
-
|
|
11764
|
-
|
|
11765
|
-
var
|
|
11766
|
-
|
|
11767
|
-
|
|
11768
|
-
|
|
11769
|
-
|
|
11770
|
-
_context.next = 5;
|
|
11771
|
-
break;
|
|
11772
|
-
}
|
|
11773
|
-
wsUrl = getNodeProvider(node);
|
|
11774
|
-
_context.next = 4;
|
|
11775
|
-
return api.createApiInstance(wsUrl);
|
|
11776
|
-
case 4:
|
|
11777
|
-
return _context.abrupt("return", _context.sent);
|
|
11778
|
-
case 5:
|
|
11779
|
-
_context.next = 7;
|
|
11780
|
-
return getNode(node).createApiInstance(api);
|
|
11781
|
-
case 7:
|
|
11782
|
-
return _context.abrupt("return", _context.sent);
|
|
11783
|
-
case 8:
|
|
11784
|
-
case "end":
|
|
11785
|
-
return _context.stop();
|
|
11786
|
-
}
|
|
11787
|
-
}, _callee);
|
|
11788
|
-
}));
|
|
11789
|
-
};
|
|
11790
|
-
|
|
11791
|
-
var determineRelayChainSymbol = function determineRelayChainSymbol(node) {
|
|
11792
|
-
if (node === 'Polkadot') {
|
|
11793
|
-
return 'DOT';
|
|
11794
|
-
} else if (node === 'Kusama') {
|
|
11795
|
-
return 'KSM';
|
|
11796
|
-
} else {
|
|
11797
|
-
return getRelayChainSymbol(node);
|
|
12136
|
+
var IncompatibleNodesError = /*#__PURE__*/function (_Error) {
|
|
12137
|
+
/**
|
|
12138
|
+
* Constructs a new IncompatibleNodesError.
|
|
12139
|
+
*
|
|
12140
|
+
* @param message - Optional custom error message.
|
|
12141
|
+
*/
|
|
12142
|
+
function IncompatibleNodesError(message) {
|
|
12143
|
+
var _this;
|
|
12144
|
+
_classCallCheck(this, IncompatibleNodesError);
|
|
12145
|
+
_this = _callSuper(this, IncompatibleNodesError, [message !== null && message !== void 0 ? message : 'Transactions between nodes on different relaychains are not yet possible.']);
|
|
12146
|
+
_this.name = 'IncompatibleNodes';
|
|
12147
|
+
return _this;
|
|
11798
12148
|
}
|
|
11799
|
-
|
|
12149
|
+
_inherits(IncompatibleNodesError, _Error);
|
|
12150
|
+
return _createClass(IncompatibleNodesError);
|
|
12151
|
+
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
11800
12152
|
|
|
11801
|
-
// Contains important call creation utils (Selection of fees,formating of header and more.. )
|
|
11802
12153
|
/**
|
|
11803
|
-
*
|
|
11804
|
-
*
|
|
11805
|
-
* @param node - The node for which to determine the relay chain.
|
|
11806
|
-
* @returns 'Kusama' if the node's relay chain symbol is 'KSM'; otherwise, 'Polkadot'.
|
|
12154
|
+
* Error thrown when multiple assets with the same symbol are found.
|
|
11807
12155
|
*/
|
|
11808
|
-
var
|
|
11809
|
-
|
|
11810
|
-
|
|
12156
|
+
var DuplicateAssetError = /*#__PURE__*/function (_Error) {
|
|
12157
|
+
/**
|
|
12158
|
+
* Constructs a new DuplicateAssetError.
|
|
12159
|
+
*
|
|
12160
|
+
* @param symbol - The symbol of the asset causing the duplication error.
|
|
12161
|
+
*/
|
|
12162
|
+
function DuplicateAssetError(msg) {
|
|
12163
|
+
var _this;
|
|
12164
|
+
_classCallCheck(this, DuplicateAssetError);
|
|
12165
|
+
_this = _callSuper(this, DuplicateAssetError, [msg]);
|
|
12166
|
+
_this.name = 'DuplicateAsset';
|
|
12167
|
+
return _this;
|
|
12168
|
+
}
|
|
12169
|
+
_inherits(DuplicateAssetError, _Error);
|
|
12170
|
+
return _createClass(DuplicateAssetError);
|
|
12171
|
+
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
12172
|
+
|
|
11811
12173
|
/**
|
|
11812
|
-
*
|
|
11813
|
-
*
|
|
11814
|
-
* @param node - The node to check.
|
|
11815
|
-
* @returns True if the node is 'Polkadot' or 'Kusama'; otherwise, false.
|
|
12174
|
+
* Error thrown when multiple assets with the same symbol are found.
|
|
11816
12175
|
*/
|
|
11817
|
-
var
|
|
11818
|
-
|
|
11819
|
-
|
|
11820
|
-
|
|
11821
|
-
|
|
11822
|
-
|
|
11823
|
-
|
|
11824
|
-
|
|
11825
|
-
|
|
11826
|
-
|
|
11827
|
-
|
|
11828
|
-
return
|
|
12176
|
+
var DuplicateAssetIdError = /*#__PURE__*/function (_Error) {
|
|
12177
|
+
/**
|
|
12178
|
+
* Constructs a new DuplicateAssetError.
|
|
12179
|
+
*
|
|
12180
|
+
* @param symbol - The symbol of the asset causing the duplication error.
|
|
12181
|
+
*/
|
|
12182
|
+
function DuplicateAssetIdError(id) {
|
|
12183
|
+
var _this;
|
|
12184
|
+
_classCallCheck(this, DuplicateAssetIdError);
|
|
12185
|
+
_this = _callSuper(this, DuplicateAssetIdError, ["Multiple assets found with the same ID: ".concat(id, ". Please specify asset directly by symbol using .currency({symbol: <ASSET_SYMBOL>})")]);
|
|
12186
|
+
_this.name = 'DuplicateAssetId';
|
|
12187
|
+
return _this;
|
|
11829
12188
|
}
|
|
11830
|
-
|
|
11831
|
-
|
|
12189
|
+
_inherits(DuplicateAssetIdError, _Error);
|
|
12190
|
+
return _createClass(DuplicateAssetIdError);
|
|
12191
|
+
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
11832
12192
|
|
|
11833
12193
|
/**
|
|
11834
|
-
*
|
|
11835
|
-
*
|
|
11836
|
-
* @param node - The node for which to get the paraId.
|
|
11837
|
-
* @returns The parachain ID of the node.
|
|
12194
|
+
* Error thrown when an invalid address is provided.
|
|
11838
12195
|
*/
|
|
11839
|
-
var
|
|
11840
|
-
|
|
11841
|
-
|
|
11842
|
-
|
|
11843
|
-
|
|
11844
|
-
|
|
11845
|
-
|
|
11846
|
-
|
|
11847
|
-
|
|
11848
|
-
|
|
11849
|
-
|
|
11850
|
-
|
|
11851
|
-
var _iterator = _createForOfIteratorHelper(junctions),
|
|
11852
|
-
_step;
|
|
11853
|
-
try {
|
|
11854
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
11855
|
-
var junction = _step.value;
|
|
11856
|
-
if ('Parachain' in junction) {
|
|
11857
|
-
return Number(junction.Parachain);
|
|
11858
|
-
}
|
|
11859
|
-
}
|
|
11860
|
-
} catch (err) {
|
|
11861
|
-
_iterator.e(err);
|
|
11862
|
-
} finally {
|
|
11863
|
-
_iterator.f();
|
|
11864
|
-
}
|
|
11865
|
-
} else if (_typeof(junctions) === 'object' && junctions !== null && 'Parachain' in junctions) {
|
|
11866
|
-
return Number(junctions.Parachain);
|
|
11867
|
-
}
|
|
12196
|
+
var InvalidAddressError = /*#__PURE__*/function (_Error) {
|
|
12197
|
+
/**
|
|
12198
|
+
* Constructs a new InvalidAddressError.
|
|
12199
|
+
*
|
|
12200
|
+
* @param message - The error message.
|
|
12201
|
+
*/
|
|
12202
|
+
function InvalidAddressError(message) {
|
|
12203
|
+
var _this;
|
|
12204
|
+
_classCallCheck(this, InvalidAddressError);
|
|
12205
|
+
_this = _callSuper(this, InvalidAddressError, [message]);
|
|
12206
|
+
_this.name = 'InvalidAddressError';
|
|
12207
|
+
return _this;
|
|
11868
12208
|
}
|
|
11869
|
-
|
|
11870
|
-
|
|
12209
|
+
_inherits(InvalidAddressError, _Error);
|
|
12210
|
+
return _createClass(InvalidAddressError);
|
|
12211
|
+
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
11871
12212
|
|
|
11872
12213
|
var DEFAULT_FEE_ASSET = 0;
|
|
11873
12214
|
var ETH_CHAIN_ID = BigInt(1);
|
|
@@ -11889,7 +12230,10 @@ var constructRelayToParaParameters = function constructRelayToParaParameters(_re
|
|
|
11889
12230
|
address = _ref.address,
|
|
11890
12231
|
amount = _ref.amount,
|
|
11891
12232
|
paraIdTo = _ref.paraIdTo;
|
|
11892
|
-
var
|
|
12233
|
+
var _ref2 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {
|
|
12234
|
+
includeFee: false
|
|
12235
|
+
},
|
|
12236
|
+
includeFee = _ref2.includeFee;
|
|
11893
12237
|
// Handle the case when a destination is a multi-location
|
|
11894
12238
|
var paraId = destination !== undefined && _typeof(destination) !== 'object' ? paraIdTo !== null && paraIdTo !== void 0 ? paraIdTo : getParaId(destination) : undefined;
|
|
11895
12239
|
return Object.assign({
|
|
@@ -12110,8 +12454,7 @@ var XTokensTransferImpl = /*#__PURE__*/function () {
|
|
|
12110
12454
|
addressSelection = input.addressSelection,
|
|
12111
12455
|
destination = input.destination,
|
|
12112
12456
|
scenario = input.scenario,
|
|
12113
|
-
feeAsset = input.feeAsset
|
|
12114
|
-
serializedApiCallEnabled = input.serializedApiCallEnabled;
|
|
12457
|
+
feeAsset = input.feeAsset;
|
|
12115
12458
|
var isMultiLocationDestination = _typeof(destination) === 'object';
|
|
12116
12459
|
if (isMultiLocationDestination) {
|
|
12117
12460
|
throw new Error('Multilocation destinations are not supported for specific transfer you are trying to create. In special cases such as xTokens or xTransfer pallet try using address multilocation instead (for both destination and address in same multilocation set (eg. X2 - Parachain, Address). For further assistance please open issue in our repository.');
|
|
@@ -12128,11 +12471,6 @@ var XTokensTransferImpl = /*#__PURE__*/function () {
|
|
|
12128
12471
|
section: section,
|
|
12129
12472
|
parameters: parameters
|
|
12130
12473
|
};
|
|
12131
|
-
if (serializedApiCallEnabled === true) {
|
|
12132
|
-
return Object.assign(Object.assign({}, call), {
|
|
12133
|
-
parameters: Object.values(parameters)
|
|
12134
|
-
});
|
|
12135
|
-
}
|
|
12136
12474
|
return api.callTxMethod(call);
|
|
12137
12475
|
}
|
|
12138
12476
|
}]);
|
|
@@ -12190,11 +12528,11 @@ var ParachainNode = /*#__PURE__*/function () {
|
|
|
12190
12528
|
key: "transfer",
|
|
12191
12529
|
value: function transfer(options) {
|
|
12192
12530
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
12193
|
-
var api, asset, amount, address, destination, paraIdTo, overridedCurrencyMultiLocation, feeAsset, version, ahAddress,
|
|
12531
|
+
var api, asset, amount, address, destination, paraIdTo, overridedCurrencyMultiLocation, feeAsset, version, ahAddress, scenario, paraId, versionOrDefault, isBifrostOrigin, isAssetHubDest, shouldUseMultiasset, input;
|
|
12194
12532
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
12195
12533
|
while (1) switch (_context.prev = _context.next) {
|
|
12196
12534
|
case 0:
|
|
12197
|
-
api = options.api, asset = options.asset, amount = options.amount, address = options.address, destination = options.destination, paraIdTo = options.paraIdTo, overridedCurrencyMultiLocation = options.overridedCurrencyMultiLocation, feeAsset = options.feeAsset, version = options.version, ahAddress = options.ahAddress
|
|
12535
|
+
api = options.api, asset = options.asset, amount = options.amount, address = options.address, destination = options.destination, paraIdTo = options.paraIdTo, overridedCurrencyMultiLocation = options.overridedCurrencyMultiLocation, feeAsset = options.feeAsset, version = options.version, ahAddress = options.ahAddress;
|
|
12198
12536
|
scenario = destination !== undefined ? 'ParaToPara' : 'ParaToRelay';
|
|
12199
12537
|
paraId = destination !== undefined && _typeof(destination) !== 'object' && destination !== 'Ethereum' ? paraIdTo !== null && paraIdTo !== void 0 ? paraIdTo : getParaId(destination) : undefined;
|
|
12200
12538
|
if (!(destination === 'Polimec' && this.node !== 'AssetHubPolkadot')) {
|
|
@@ -12222,8 +12560,7 @@ var ParachainNode = /*#__PURE__*/function () {
|
|
|
12222
12560
|
paraIdTo: paraId,
|
|
12223
12561
|
destination: destination,
|
|
12224
12562
|
overridedCurrencyMultiLocation: overridedCurrencyMultiLocation,
|
|
12225
|
-
feeAsset: feeAsset
|
|
12226
|
-
serializedApiCallEnabled: serializedApiCallEnabled
|
|
12563
|
+
feeAsset: feeAsset
|
|
12227
12564
|
};
|
|
12228
12565
|
if (!shouldUseMultiasset) {
|
|
12229
12566
|
_context.next = 13;
|
|
@@ -12245,16 +12582,14 @@ var ParachainNode = /*#__PURE__*/function () {
|
|
|
12245
12582
|
paraId: paraId,
|
|
12246
12583
|
origin: this.node,
|
|
12247
12584
|
destination: destination,
|
|
12248
|
-
overridedCurrencyMultiLocation: overridedCurrencyMultiLocation
|
|
12249
|
-
serializedApiCallEnabled: serializedApiCallEnabled
|
|
12585
|
+
overridedCurrencyMultiLocation: overridedCurrencyMultiLocation
|
|
12250
12586
|
}));
|
|
12251
12587
|
case 20:
|
|
12252
12588
|
if (!supportsPolkadotXCM(this)) {
|
|
12253
|
-
_context.next =
|
|
12589
|
+
_context.next = 24;
|
|
12254
12590
|
break;
|
|
12255
12591
|
}
|
|
12256
|
-
_context.
|
|
12257
|
-
return this.transferPolkadotXCM({
|
|
12592
|
+
return _context.abrupt("return", this.transferPolkadotXCM({
|
|
12258
12593
|
api: api,
|
|
12259
12594
|
header: this.createPolkadotXcmHeader(scenario, versionOrDefault, destination, paraId),
|
|
12260
12595
|
addressSelection: generateAddressPayload(api, scenario, 'PolkadotXcm', address, versionOrDefault, paraId),
|
|
@@ -12267,30 +12602,40 @@ var ParachainNode = /*#__PURE__*/function () {
|
|
|
12267
12602
|
destination: destination,
|
|
12268
12603
|
paraIdTo: paraId,
|
|
12269
12604
|
overridedCurrency: overridedCurrencyMultiLocation,
|
|
12270
|
-
serializedApiCallEnabled: serializedApiCallEnabled,
|
|
12271
12605
|
version: version,
|
|
12272
12606
|
ahAddress: ahAddress
|
|
12273
|
-
});
|
|
12274
|
-
case
|
|
12275
|
-
return _context.abrupt("return", _context.sent);
|
|
12276
|
-
case 26:
|
|
12607
|
+
}));
|
|
12608
|
+
case 24:
|
|
12277
12609
|
throw new NoXCMSupportImplementedError(this._node);
|
|
12278
|
-
case
|
|
12610
|
+
case 25:
|
|
12279
12611
|
case "end":
|
|
12280
12612
|
return _context.stop();
|
|
12281
12613
|
}
|
|
12282
12614
|
}, _callee, this);
|
|
12283
12615
|
}));
|
|
12284
12616
|
}
|
|
12617
|
+
}, {
|
|
12618
|
+
key: "getRelayToParaOverrides",
|
|
12619
|
+
value: function getRelayToParaOverrides() {
|
|
12620
|
+
return {
|
|
12621
|
+
section: 'reserve_transfer_assets',
|
|
12622
|
+
includeFee: false
|
|
12623
|
+
};
|
|
12624
|
+
}
|
|
12285
12625
|
}, {
|
|
12286
12626
|
key: "transferRelayToPara",
|
|
12287
12627
|
value: function transferRelayToPara(options) {
|
|
12288
12628
|
var _options$version = options.version,
|
|
12289
12629
|
version = _options$version === void 0 ? Version.V3 : _options$version;
|
|
12630
|
+
var _this$getRelayToParaO = this.getRelayToParaOverrides(),
|
|
12631
|
+
section = _this$getRelayToParaO.section,
|
|
12632
|
+
includeFee = _this$getRelayToParaO.includeFee;
|
|
12290
12633
|
return {
|
|
12291
12634
|
module: 'XcmPallet',
|
|
12292
|
-
section:
|
|
12293
|
-
parameters: constructRelayToParaParameters(options, version
|
|
12635
|
+
section: section,
|
|
12636
|
+
parameters: constructRelayToParaParameters(options, version, {
|
|
12637
|
+
includeFee: includeFee
|
|
12638
|
+
})
|
|
12294
12639
|
};
|
|
12295
12640
|
}
|
|
12296
12641
|
}, {
|
|
@@ -12423,8 +12768,7 @@ var PolkadotXCMTransferImpl = /*#__PURE__*/function () {
|
|
|
12423
12768
|
addressSelection = _ref.addressSelection,
|
|
12424
12769
|
currencySelection = _ref.currencySelection,
|
|
12425
12770
|
_ref$feeAsset = _ref.feeAsset,
|
|
12426
|
-
feeAsset = _ref$feeAsset === void 0 ? DEFAULT_FEE_ASSET : _ref$feeAsset
|
|
12427
|
-
serializedApiCallEnabled = _ref.serializedApiCallEnabled;
|
|
12771
|
+
feeAsset = _ref$feeAsset === void 0 ? DEFAULT_FEE_ASSET : _ref$feeAsset;
|
|
12428
12772
|
var fees = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
|
|
12429
12773
|
var module = 'PolkadotXcm';
|
|
12430
12774
|
var call = {
|
|
@@ -12439,12 +12783,6 @@ var PolkadotXCMTransferImpl = /*#__PURE__*/function () {
|
|
|
12439
12783
|
weight_limit: fees
|
|
12440
12784
|
} : {})
|
|
12441
12785
|
};
|
|
12442
|
-
if (serializedApiCallEnabled === true) {
|
|
12443
|
-
// Keep compatible with old serialized call type
|
|
12444
|
-
return Object.assign(Object.assign({}, call), {
|
|
12445
|
-
parameters: Object.values(call.parameters)
|
|
12446
|
-
});
|
|
12447
|
-
}
|
|
12448
12786
|
return api.callTxMethod(call);
|
|
12449
12787
|
}
|
|
12450
12788
|
}]);
|
|
@@ -12859,7 +13197,7 @@ var Hydration$2 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
12859
13197
|
key: "getProvider",
|
|
12860
13198
|
value: function getProvider() {
|
|
12861
13199
|
// Return the second WebSocket URL because the first one is sometimes unreliable.
|
|
12862
|
-
return getNodeProviders(this.node)[
|
|
13200
|
+
return getNodeProviders(this.node)[3];
|
|
12863
13201
|
}
|
|
12864
13202
|
}]);
|
|
12865
13203
|
}(ParachainNode);
|
|
@@ -12907,32 +13245,42 @@ var Moonbeam$2 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
12907
13245
|
}
|
|
12908
13246
|
_inherits(Moonbeam, _ParachainNode);
|
|
12909
13247
|
return _createClass(Moonbeam, [{
|
|
12910
|
-
key: "
|
|
12911
|
-
value: function
|
|
12912
|
-
if (
|
|
12913
|
-
if (
|
|
12914
|
-
|
|
12915
|
-
|
|
12916
|
-
|
|
12917
|
-
|
|
13248
|
+
key: "getJunctions",
|
|
13249
|
+
value: function getJunctions(asset, scenario) {
|
|
13250
|
+
if (scenario === 'ParaToRelay') return DOT_MULTILOCATION;
|
|
13251
|
+
if (asset.symbol === this.getNativeAssetSymbol()) return {
|
|
13252
|
+
parents: Parents.ZERO,
|
|
13253
|
+
interior: {
|
|
13254
|
+
X1: {
|
|
13255
|
+
PalletInstance: 10
|
|
13256
|
+
}
|
|
13257
|
+
}
|
|
12918
13258
|
};
|
|
13259
|
+
if (!isForeignAsset(asset)) {
|
|
13260
|
+
throw new InvalidCurrencyError('throw new InvalidCurrencyError(`Asset ${JSON.stringify(asset)} has no assetId`)');
|
|
13261
|
+
}
|
|
13262
|
+
return asset.multiLocation;
|
|
12919
13263
|
}
|
|
12920
13264
|
}, {
|
|
12921
|
-
key: "
|
|
12922
|
-
value: function
|
|
12923
|
-
var asset = input.asset
|
|
12924
|
-
|
|
12925
|
-
|
|
13265
|
+
key: "transferPolkadotXCM",
|
|
13266
|
+
value: function transferPolkadotXCM(input) {
|
|
13267
|
+
var asset = input.asset,
|
|
13268
|
+
amount = input.amount,
|
|
13269
|
+
scenario = input.scenario,
|
|
13270
|
+
_input$version = input.version,
|
|
13271
|
+
version = _input$version === void 0 ? this.version : _input$version,
|
|
13272
|
+
overridedCurrency = input.overridedCurrency;
|
|
13273
|
+
var multiLocation = this.getJunctions(asset, scenario);
|
|
13274
|
+
return Promise.resolve(PolkadotXCMTransferImpl.transferPolkadotXCM(Object.assign(Object.assign({}, input), {
|
|
13275
|
+
currencySelection: createCurrencySpec(amount, version, multiLocation.parents, overridedCurrency, multiLocation.interior)
|
|
13276
|
+
}), 'transfer_assets', 'Unlimited'));
|
|
12926
13277
|
}
|
|
12927
13278
|
}, {
|
|
12928
|
-
key: "
|
|
12929
|
-
value: function
|
|
12930
|
-
var _options$version = options.version,
|
|
12931
|
-
version = _options$version === void 0 ? Version.V3 : _options$version;
|
|
13279
|
+
key: "getRelayToParaOverrides",
|
|
13280
|
+
value: function getRelayToParaOverrides() {
|
|
12932
13281
|
return {
|
|
12933
|
-
module: 'XcmPallet',
|
|
12934
13282
|
section: 'limited_reserve_transfer_assets',
|
|
12935
|
-
|
|
13283
|
+
includeFee: true
|
|
12936
13284
|
};
|
|
12937
13285
|
}
|
|
12938
13286
|
}, {
|
|
@@ -13155,32 +13503,42 @@ var Moonriver$2 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
13155
13503
|
}
|
|
13156
13504
|
_inherits(Moonriver, _ParachainNode);
|
|
13157
13505
|
return _createClass(Moonriver, [{
|
|
13158
|
-
key: "
|
|
13159
|
-
value: function
|
|
13160
|
-
if (
|
|
13161
|
-
if (
|
|
13162
|
-
|
|
13163
|
-
|
|
13164
|
-
|
|
13165
|
-
|
|
13506
|
+
key: "getJunctions",
|
|
13507
|
+
value: function getJunctions(asset, scenario) {
|
|
13508
|
+
if (scenario === 'ParaToRelay') return DOT_MULTILOCATION;
|
|
13509
|
+
if (asset.symbol === this.getNativeAssetSymbol()) return {
|
|
13510
|
+
parents: Parents.ZERO,
|
|
13511
|
+
interior: {
|
|
13512
|
+
X1: {
|
|
13513
|
+
PalletInstance: 10
|
|
13514
|
+
}
|
|
13515
|
+
}
|
|
13166
13516
|
};
|
|
13517
|
+
if (!isForeignAsset(asset)) {
|
|
13518
|
+
throw new InvalidCurrencyError('throw new InvalidCurrencyError(`Asset ${JSON.stringify(asset)} has no assetId`)');
|
|
13519
|
+
}
|
|
13520
|
+
return asset.multiLocation;
|
|
13167
13521
|
}
|
|
13168
13522
|
}, {
|
|
13169
|
-
key: "
|
|
13170
|
-
value: function
|
|
13171
|
-
var asset = input.asset
|
|
13172
|
-
|
|
13173
|
-
|
|
13523
|
+
key: "transferPolkadotXCM",
|
|
13524
|
+
value: function transferPolkadotXCM(input) {
|
|
13525
|
+
var asset = input.asset,
|
|
13526
|
+
amount = input.amount,
|
|
13527
|
+
scenario = input.scenario,
|
|
13528
|
+
_input$version = input.version,
|
|
13529
|
+
version = _input$version === void 0 ? this.version : _input$version,
|
|
13530
|
+
overridedCurrency = input.overridedCurrency;
|
|
13531
|
+
var multiLocation = this.getJunctions(asset, scenario);
|
|
13532
|
+
return Promise.resolve(PolkadotXCMTransferImpl.transferPolkadotXCM(Object.assign(Object.assign({}, input), {
|
|
13533
|
+
currencySelection: createCurrencySpec(amount, version, multiLocation.parents, overridedCurrency, multiLocation.interior)
|
|
13534
|
+
}), 'transfer_assets', 'Unlimited'));
|
|
13174
13535
|
}
|
|
13175
13536
|
}, {
|
|
13176
|
-
key: "
|
|
13177
|
-
value: function
|
|
13178
|
-
var _options$version = options.version,
|
|
13179
|
-
version = _options$version === void 0 ? Version.V3 : _options$version;
|
|
13537
|
+
key: "getRelayToParaOverrides",
|
|
13538
|
+
value: function getRelayToParaOverrides() {
|
|
13180
13539
|
return {
|
|
13181
|
-
module: 'XcmPallet',
|
|
13182
13540
|
section: 'limited_reserve_transfer_assets',
|
|
13183
|
-
|
|
13541
|
+
includeFee: true
|
|
13184
13542
|
};
|
|
13185
13543
|
}
|
|
13186
13544
|
}, {
|
|
@@ -13312,30 +13670,125 @@ var InvArchTinker$2 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
13312
13670
|
if (!isForeignAsset(asset) || !asset.assetId) {
|
|
13313
13671
|
throw new InvalidCurrencyError("Asset ".concat(JSON.stringify(asset), " has no assetId"));
|
|
13314
13672
|
}
|
|
13315
|
-
return XTokensTransferImpl.transferXTokens(input, BigInt(asset.assetId));
|
|
13316
|
-
}
|
|
13317
|
-
}]);
|
|
13318
|
-
}(ParachainNode);
|
|
13319
|
-
|
|
13320
|
-
var Karura$2 = /*#__PURE__*/function (_ParachainNode) {
|
|
13321
|
-
function Karura() {
|
|
13322
|
-
_classCallCheck(this, Karura);
|
|
13323
|
-
return _callSuper(this, Karura, ['Karura', 'karura', 'kusama', Version.V3]);
|
|
13673
|
+
return XTokensTransferImpl.transferXTokens(input, BigInt(asset.assetId));
|
|
13674
|
+
}
|
|
13675
|
+
}]);
|
|
13676
|
+
}(ParachainNode);
|
|
13677
|
+
|
|
13678
|
+
var Karura$2 = /*#__PURE__*/function (_ParachainNode) {
|
|
13679
|
+
function Karura() {
|
|
13680
|
+
_classCallCheck(this, Karura);
|
|
13681
|
+
return _callSuper(this, Karura, ['Karura', 'karura', 'kusama', Version.V3]);
|
|
13682
|
+
}
|
|
13683
|
+
_inherits(Karura, _ParachainNode);
|
|
13684
|
+
return _createClass(Karura, [{
|
|
13685
|
+
key: "transferXTokens",
|
|
13686
|
+
value: function transferXTokens(input) {
|
|
13687
|
+
return getNode('Acala').transferXTokens(input);
|
|
13688
|
+
}
|
|
13689
|
+
}, {
|
|
13690
|
+
key: "getProvider",
|
|
13691
|
+
value: function getProvider() {
|
|
13692
|
+
// Return the second WebSocket URL because the first one is sometimes unreliable.
|
|
13693
|
+
return getNodeProviders(this.node)[4];
|
|
13694
|
+
}
|
|
13695
|
+
}]);
|
|
13696
|
+
}(ParachainNode);
|
|
13697
|
+
|
|
13698
|
+
var generateAddressMultiLocationV4 = function generateAddressMultiLocationV4(api, address) {
|
|
13699
|
+
var isMultiLocation = _typeof(address) === 'object';
|
|
13700
|
+
if (isMultiLocation) {
|
|
13701
|
+
return _defineProperty({}, Version.V4, address);
|
|
13702
|
+
}
|
|
13703
|
+
var isEthAddress = ethers.isAddress(address);
|
|
13704
|
+
return _defineProperty({}, Version.V4, {
|
|
13705
|
+
parents: Parents.ZERO,
|
|
13706
|
+
interior: {
|
|
13707
|
+
X1: [isEthAddress ? {
|
|
13708
|
+
AccountKey20: {
|
|
13709
|
+
key: address
|
|
13710
|
+
}
|
|
13711
|
+
} : {
|
|
13712
|
+
AccountId32: {
|
|
13713
|
+
id: api.createAccountId(address),
|
|
13714
|
+
network: null
|
|
13715
|
+
}
|
|
13716
|
+
}]
|
|
13717
|
+
}
|
|
13718
|
+
});
|
|
13719
|
+
};
|
|
13720
|
+
|
|
13721
|
+
var generateAddressPayload = function generateAddressPayload(api, scenario, pallet, recipientAddress, version, nodeId) {
|
|
13722
|
+
var isMultiLocation = _typeof(recipientAddress) === 'object';
|
|
13723
|
+
if (isMultiLocation) {
|
|
13724
|
+
return _defineProperty({}, version, recipientAddress);
|
|
13725
|
+
}
|
|
13726
|
+
var isEthAddress = ethers.isAddress(recipientAddress);
|
|
13727
|
+
if (scenario === 'ParaToRelay') {
|
|
13728
|
+
return _defineProperty({}, version, {
|
|
13729
|
+
parents: pallet === 'XTokens' ? Parents.ONE : Parents.ZERO,
|
|
13730
|
+
interior: createX1Payload(version, {
|
|
13731
|
+
AccountId32: Object.assign(Object.assign({}, version === Version.V1 && {
|
|
13732
|
+
network: 'any'
|
|
13733
|
+
}), {
|
|
13734
|
+
id: api.createAccountId(recipientAddress)
|
|
13735
|
+
})
|
|
13736
|
+
})
|
|
13737
|
+
});
|
|
13738
|
+
}
|
|
13739
|
+
if (scenario === 'ParaToPara' && pallet === 'XTokens') {
|
|
13740
|
+
return _defineProperty({}, version, {
|
|
13741
|
+
parents: Parents.ONE,
|
|
13742
|
+
interior: {
|
|
13743
|
+
X2: [{
|
|
13744
|
+
Parachain: nodeId
|
|
13745
|
+
}, isEthAddress ? {
|
|
13746
|
+
AccountKey20: Object.assign(Object.assign({}, (version === Version.V1 || version === Version.V2) && {
|
|
13747
|
+
network: 'any'
|
|
13748
|
+
}), {
|
|
13749
|
+
key: recipientAddress
|
|
13750
|
+
})
|
|
13751
|
+
} : {
|
|
13752
|
+
AccountId32: Object.assign(Object.assign({}, (version === Version.V1 || version === Version.V2) && {
|
|
13753
|
+
network: 'any'
|
|
13754
|
+
}), {
|
|
13755
|
+
id: api.createAccountId(recipientAddress)
|
|
13756
|
+
})
|
|
13757
|
+
}]
|
|
13758
|
+
}
|
|
13759
|
+
});
|
|
13324
13760
|
}
|
|
13325
|
-
|
|
13326
|
-
|
|
13327
|
-
|
|
13328
|
-
|
|
13329
|
-
|
|
13330
|
-
|
|
13331
|
-
|
|
13332
|
-
|
|
13333
|
-
|
|
13334
|
-
|
|
13335
|
-
|
|
13336
|
-
|
|
13337
|
-
|
|
13338
|
-
|
|
13761
|
+
if (scenario === 'ParaToPara' && pallet === 'PolkadotXcm') {
|
|
13762
|
+
return _defineProperty({}, version, {
|
|
13763
|
+
parents: Parents.ZERO,
|
|
13764
|
+
interior: createX1Payload(version, isEthAddress ? {
|
|
13765
|
+
AccountKey20: Object.assign(Object.assign({}, (version === Version.V1 || version === Version.V2) && {
|
|
13766
|
+
network: 'any'
|
|
13767
|
+
}), {
|
|
13768
|
+
key: recipientAddress
|
|
13769
|
+
})
|
|
13770
|
+
} : {
|
|
13771
|
+
AccountId32: Object.assign(Object.assign({}, (version === Version.V1 || version === Version.V2) && {
|
|
13772
|
+
network: 'any'
|
|
13773
|
+
}), {
|
|
13774
|
+
id: api.createAccountId(recipientAddress)
|
|
13775
|
+
})
|
|
13776
|
+
})
|
|
13777
|
+
});
|
|
13778
|
+
}
|
|
13779
|
+
return _defineProperty({}, version, {
|
|
13780
|
+
parents: Parents.ZERO,
|
|
13781
|
+
interior: createX1Payload(version, isEthAddress ? {
|
|
13782
|
+
AccountKey20: {
|
|
13783
|
+
key: recipientAddress
|
|
13784
|
+
}
|
|
13785
|
+
} : {
|
|
13786
|
+
AccountId32: {
|
|
13787
|
+
id: api.createAccountId(recipientAddress)
|
|
13788
|
+
}
|
|
13789
|
+
})
|
|
13790
|
+
});
|
|
13791
|
+
};
|
|
13339
13792
|
|
|
13340
13793
|
var createCustomXcmToBifrost = function createCustomXcmToBifrost(_ref, version) {
|
|
13341
13794
|
var api = _ref.api,
|
|
@@ -13542,14 +13995,11 @@ var AssetHubPolkadot$2 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
13542
13995
|
return Promise.resolve(PolkadotXCMTransferImpl.transferPolkadotXCM(modifiedInput, section, 'Unlimited'));
|
|
13543
13996
|
}
|
|
13544
13997
|
}, {
|
|
13545
|
-
key: "
|
|
13546
|
-
value: function
|
|
13547
|
-
var _options$version = options.version,
|
|
13548
|
-
version = _options$version === void 0 ? Version.V3 : _options$version;
|
|
13998
|
+
key: "getRelayToParaOverrides",
|
|
13999
|
+
value: function getRelayToParaOverrides() {
|
|
13549
14000
|
return {
|
|
13550
|
-
module: 'XcmPallet',
|
|
13551
14001
|
section: 'limited_teleport_assets',
|
|
13552
|
-
|
|
14002
|
+
includeFee: true
|
|
13553
14003
|
};
|
|
13554
14004
|
}
|
|
13555
14005
|
}, {
|
|
@@ -13570,6 +14020,12 @@ var AssetHubPolkadot$2 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
13570
14020
|
return _superPropGet(AssetHubPolkadot, "createCurrencySpec", this, 3)([amount, scenario, version, asset]);
|
|
13571
14021
|
}
|
|
13572
14022
|
}
|
|
14023
|
+
}, {
|
|
14024
|
+
key: "getProvider",
|
|
14025
|
+
value: function getProvider() {
|
|
14026
|
+
// Return the second WebSocket URL because the first one is sometimes unreliable.
|
|
14027
|
+
return getNodeProviders(this.node)[1];
|
|
14028
|
+
}
|
|
13573
14029
|
}]);
|
|
13574
14030
|
}(ParachainNode);
|
|
13575
14031
|
|
|
@@ -13600,14 +14056,11 @@ var AssetHubKusama$2 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
13600
14056
|
return Promise.resolve(PolkadotXCMTransferImpl.transferPolkadotXCM(input, section, 'Unlimited'));
|
|
13601
14057
|
}
|
|
13602
14058
|
}, {
|
|
13603
|
-
key: "
|
|
13604
|
-
value: function
|
|
13605
|
-
var _options$version = options.version,
|
|
13606
|
-
version = _options$version === void 0 ? Version.V3 : _options$version;
|
|
14059
|
+
key: "getRelayToParaOverrides",
|
|
14060
|
+
value: function getRelayToParaOverrides() {
|
|
13607
14061
|
return {
|
|
13608
|
-
module: 'XcmPallet',
|
|
13609
14062
|
section: 'limited_teleport_assets',
|
|
13610
|
-
|
|
14063
|
+
includeFee: true
|
|
13611
14064
|
};
|
|
13612
14065
|
}
|
|
13613
14066
|
}, {
|
|
@@ -13636,16 +14089,11 @@ var CoretimeKusama$2 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
13636
14089
|
return Promise.resolve(PolkadotXCMTransferImpl.transferPolkadotXCM(input, section, 'Unlimited'));
|
|
13637
14090
|
}
|
|
13638
14091
|
}, {
|
|
13639
|
-
key: "
|
|
13640
|
-
value: function
|
|
13641
|
-
// TESTED block hash on Rococo: 0x28929f7b2aeadbf3333f05d35bed18214a4b23dd270bd072f99e8a0131d22456
|
|
13642
|
-
// https://rococo.subscan.io/extrinsic/0x469eec7dccb22696b0c95cf4f5eec4b367ad3dc23243a346cc2aad3cc9522800
|
|
13643
|
-
var _options$version = options.version,
|
|
13644
|
-
version = _options$version === void 0 ? Version.V3 : _options$version;
|
|
14092
|
+
key: "getRelayToParaOverrides",
|
|
14093
|
+
value: function getRelayToParaOverrides() {
|
|
13645
14094
|
return {
|
|
13646
|
-
module: 'XcmPallet',
|
|
13647
14095
|
section: 'limited_teleport_assets',
|
|
13648
|
-
|
|
14096
|
+
includeFee: true
|
|
13649
14097
|
};
|
|
13650
14098
|
}
|
|
13651
14099
|
}]);
|
|
@@ -13668,14 +14116,11 @@ var CoretimePolkadot$2 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
13668
14116
|
return Promise.resolve(PolkadotXCMTransferImpl.transferPolkadotXCM(input, section, 'Unlimited'));
|
|
13669
14117
|
}
|
|
13670
14118
|
}, {
|
|
13671
|
-
key: "
|
|
13672
|
-
value: function
|
|
13673
|
-
var _options$version = options.version,
|
|
13674
|
-
version = _options$version === void 0 ? Version.V3 : _options$version;
|
|
14119
|
+
key: "getRelayToParaOverrides",
|
|
14120
|
+
value: function getRelayToParaOverrides() {
|
|
13675
14121
|
return {
|
|
13676
|
-
module: 'XcmPallet',
|
|
13677
14122
|
section: 'limited_teleport_assets',
|
|
13678
|
-
|
|
14123
|
+
includeFee: true
|
|
13679
14124
|
};
|
|
13680
14125
|
}
|
|
13681
14126
|
}]);
|
|
@@ -13698,14 +14143,11 @@ var Encointer$2 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
13698
14143
|
throw new ScenarioNotSupportedError(this.node, input.scenario);
|
|
13699
14144
|
}
|
|
13700
14145
|
}, {
|
|
13701
|
-
key: "
|
|
13702
|
-
value: function
|
|
13703
|
-
var _options$version = options.version,
|
|
13704
|
-
version = _options$version === void 0 ? Version.V1 : _options$version;
|
|
14146
|
+
key: "getRelayToParaOverrides",
|
|
14147
|
+
value: function getRelayToParaOverrides() {
|
|
13705
14148
|
return {
|
|
13706
|
-
module: 'XcmPallet',
|
|
13707
14149
|
section: 'limited_teleport_assets',
|
|
13708
|
-
|
|
14150
|
+
includeFee: true
|
|
13709
14151
|
};
|
|
13710
14152
|
}
|
|
13711
14153
|
}]);
|
|
@@ -13756,14 +14198,11 @@ var PeoplePolkadot$2 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
13756
14198
|
return Promise.resolve(PolkadotXCMTransferImpl.transferPolkadotXCM(input, section, 'Unlimited'));
|
|
13757
14199
|
}
|
|
13758
14200
|
}, {
|
|
13759
|
-
key: "
|
|
13760
|
-
value: function
|
|
13761
|
-
var _options$version = options.version,
|
|
13762
|
-
version = _options$version === void 0 ? Version.V3 : _options$version;
|
|
14201
|
+
key: "getRelayToParaOverrides",
|
|
14202
|
+
value: function getRelayToParaOverrides() {
|
|
13763
14203
|
return {
|
|
13764
|
-
module: 'XcmPallet',
|
|
13765
14204
|
section: 'limited_teleport_assets',
|
|
13766
|
-
|
|
14205
|
+
includeFee: true
|
|
13767
14206
|
};
|
|
13768
14207
|
}
|
|
13769
14208
|
}]);
|
|
@@ -13786,14 +14225,11 @@ var PeopleKusama$2 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
13786
14225
|
return Promise.resolve(PolkadotXCMTransferImpl.transferPolkadotXCM(input, section, 'Unlimited'));
|
|
13787
14226
|
}
|
|
13788
14227
|
}, {
|
|
13789
|
-
key: "
|
|
13790
|
-
value: function
|
|
13791
|
-
var _options$version = options.version,
|
|
13792
|
-
version = _options$version === void 0 ? Version.V3 : _options$version;
|
|
14228
|
+
key: "getRelayToParaOverrides",
|
|
14229
|
+
value: function getRelayToParaOverrides() {
|
|
13793
14230
|
return {
|
|
13794
|
-
module: 'XcmPallet',
|
|
13795
14231
|
section: 'limited_teleport_assets',
|
|
13796
|
-
|
|
14232
|
+
includeFee: true
|
|
13797
14233
|
};
|
|
13798
14234
|
}
|
|
13799
14235
|
}]);
|
|
@@ -14116,14 +14552,11 @@ var Collectives$2 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
14116
14552
|
return Promise.resolve(PolkadotXCMTransferImpl.transferPolkadotXCM(input, 'limited_teleport_assets', 'Unlimited'));
|
|
14117
14553
|
}
|
|
14118
14554
|
}, {
|
|
14119
|
-
key: "
|
|
14120
|
-
value: function
|
|
14121
|
-
var _options$version = options.version,
|
|
14122
|
-
version = _options$version === void 0 ? Version.V3 : _options$version;
|
|
14555
|
+
key: "getRelayToParaOverrides",
|
|
14556
|
+
value: function getRelayToParaOverrides() {
|
|
14123
14557
|
return {
|
|
14124
|
-
module: 'XcmPallet',
|
|
14125
14558
|
section: 'limited_teleport_assets',
|
|
14126
|
-
|
|
14559
|
+
includeFee: true
|
|
14127
14560
|
};
|
|
14128
14561
|
}
|
|
14129
14562
|
}, {
|
|
@@ -14193,7 +14626,6 @@ var XTransferTransferImpl = /*#__PURE__*/function () {
|
|
|
14193
14626
|
amount = input.amount,
|
|
14194
14627
|
origin = input.origin,
|
|
14195
14628
|
destination = input.destination,
|
|
14196
|
-
serializedApiCallEnabled = input.serializedApiCallEnabled,
|
|
14197
14629
|
overridedCurrencyMultiLocation = input.overridedCurrencyMultiLocation;
|
|
14198
14630
|
var isMultiLocationDestination = _typeof(destination) === 'object';
|
|
14199
14631
|
if (isMultiLocationDestination) {
|
|
@@ -14212,11 +14644,6 @@ var XTransferTransferImpl = /*#__PURE__*/function () {
|
|
|
14212
14644
|
dest_weight: destWeight
|
|
14213
14645
|
}
|
|
14214
14646
|
};
|
|
14215
|
-
if (serializedApiCallEnabled === true) {
|
|
14216
|
-
return Object.assign(Object.assign({}, call), {
|
|
14217
|
-
parameters: Object.values(call.parameters)
|
|
14218
|
-
});
|
|
14219
|
-
}
|
|
14220
14647
|
return api.callTxMethod(call);
|
|
14221
14648
|
}
|
|
14222
14649
|
}]);
|
|
@@ -14348,14 +14775,11 @@ var BridgeHubPolkadot$2 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
14348
14775
|
return Promise.resolve(PolkadotXCMTransferImpl.transferPolkadotXCM(input, section, 'Unlimited'));
|
|
14349
14776
|
}
|
|
14350
14777
|
}, {
|
|
14351
|
-
key: "
|
|
14352
|
-
value: function
|
|
14353
|
-
var _options$version = options.version,
|
|
14354
|
-
version = _options$version === void 0 ? Version.V3 : _options$version;
|
|
14778
|
+
key: "getRelayToParaOverrides",
|
|
14779
|
+
value: function getRelayToParaOverrides() {
|
|
14355
14780
|
return {
|
|
14356
|
-
module: 'XcmPallet',
|
|
14357
14781
|
section: 'limited_teleport_assets',
|
|
14358
|
-
|
|
14782
|
+
includeFee: true
|
|
14359
14783
|
};
|
|
14360
14784
|
}
|
|
14361
14785
|
}]);
|
|
@@ -14381,14 +14805,11 @@ var BridgeHubKusama$2 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
14381
14805
|
return Promise.resolve(PolkadotXCMTransferImpl.transferPolkadotXCM(input, section, 'Unlimited'));
|
|
14382
14806
|
}
|
|
14383
14807
|
}, {
|
|
14384
|
-
key: "
|
|
14385
|
-
value: function
|
|
14386
|
-
var _options$version = options.version,
|
|
14387
|
-
version = _options$version === void 0 ? Version.V3 : _options$version;
|
|
14808
|
+
key: "getRelayToParaOverrides",
|
|
14809
|
+
value: function getRelayToParaOverrides() {
|
|
14388
14810
|
return {
|
|
14389
|
-
module: 'XcmPallet',
|
|
14390
14811
|
section: 'limited_teleport_assets',
|
|
14391
|
-
|
|
14812
|
+
includeFee: true
|
|
14392
14813
|
};
|
|
14393
14814
|
}
|
|
14394
14815
|
}]);
|
|
@@ -14500,7 +14921,7 @@ var Polimec$2 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
14500
14921
|
_classCallCheck(this, Polimec);
|
|
14501
14922
|
_this = _callSuper(this, Polimec, ['Polimec', 'polimec', 'polkadot', Version.V3]);
|
|
14502
14923
|
_this.getAssetMultiLocation = function (asset) {
|
|
14503
|
-
if (
|
|
14924
|
+
if (asset.symbol === 'DOT') {
|
|
14504
14925
|
return DOT_MULTILOCATION;
|
|
14505
14926
|
}
|
|
14506
14927
|
if (isForeignAsset(asset) && asset.multiLocation !== undefined) {
|
|
@@ -14696,6 +15117,9 @@ var assetsMap = assetsMapJson;
|
|
|
14696
15117
|
var getAssetsObject = function getAssetsObject(node) {
|
|
14697
15118
|
return assetsMap[node];
|
|
14698
15119
|
};
|
|
15120
|
+
var isNodeEvm = function isNodeEvm(node) {
|
|
15121
|
+
return assetsMap[node].isEVM;
|
|
15122
|
+
};
|
|
14699
15123
|
/**
|
|
14700
15124
|
* Retrieves the asset ID for a given symbol on a specified node.
|
|
14701
15125
|
*
|
|
@@ -15049,56 +15473,6 @@ var getExistentialDeposit$1 = function getExistentialDeposit(node) {
|
|
|
15049
15473
|
return edMap[node];
|
|
15050
15474
|
};
|
|
15051
15475
|
|
|
15052
|
-
var getBalanceNativeInternal = function getBalanceNativeInternal(_a) {
|
|
15053
|
-
return __awaiter(void 0, [_a], void 0, function (_ref) {
|
|
15054
|
-
var address = _ref.address,
|
|
15055
|
-
node = _ref.node,
|
|
15056
|
-
api = _ref.api;
|
|
15057
|
-
return /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
15058
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
15059
|
-
while (1) switch (_context.prev = _context.next) {
|
|
15060
|
-
case 0:
|
|
15061
|
-
_context.next = 2;
|
|
15062
|
-
return api.init(node);
|
|
15063
|
-
case 2:
|
|
15064
|
-
_context.next = 4;
|
|
15065
|
-
return api.getBalanceNative(address);
|
|
15066
|
-
case 4:
|
|
15067
|
-
return _context.abrupt("return", _context.sent);
|
|
15068
|
-
case 5:
|
|
15069
|
-
case "end":
|
|
15070
|
-
return _context.stop();
|
|
15071
|
-
}
|
|
15072
|
-
}, _callee);
|
|
15073
|
-
})();
|
|
15074
|
-
});
|
|
15075
|
-
};
|
|
15076
|
-
var getBalanceNative$1 = function getBalanceNative(options) {
|
|
15077
|
-
return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
15078
|
-
var api;
|
|
15079
|
-
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
15080
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
15081
|
-
case 0:
|
|
15082
|
-
api = options.api;
|
|
15083
|
-
_context2.prev = 1;
|
|
15084
|
-
_context2.next = 4;
|
|
15085
|
-
return getBalanceNativeInternal(options);
|
|
15086
|
-
case 4:
|
|
15087
|
-
return _context2.abrupt("return", _context2.sent);
|
|
15088
|
-
case 5:
|
|
15089
|
-
_context2.prev = 5;
|
|
15090
|
-
_context2.next = 8;
|
|
15091
|
-
return api.disconnect();
|
|
15092
|
-
case 8:
|
|
15093
|
-
return _context2.finish(5);
|
|
15094
|
-
case 9:
|
|
15095
|
-
case "end":
|
|
15096
|
-
return _context2.stop();
|
|
15097
|
-
}
|
|
15098
|
-
}, _callee2, null, [[1,, 5, 9]]);
|
|
15099
|
-
}));
|
|
15100
|
-
};
|
|
15101
|
-
|
|
15102
15476
|
var AssetHubPolkadot = {
|
|
15103
15477
|
defaultPallet: "PolkadotXcm",
|
|
15104
15478
|
supportedPallets: [
|
|
@@ -15935,46 +16309,43 @@ var getBalanceForeignPolkadotXcm = function getBalanceForeignPolkadotXcm(api, no
|
|
|
15935
16309
|
while (1) switch (_context.prev = _context.next) {
|
|
15936
16310
|
case 0:
|
|
15937
16311
|
if (!(node === 'Mythos')) {
|
|
15938
|
-
_context.next =
|
|
16312
|
+
_context.next = 2;
|
|
15939
16313
|
break;
|
|
15940
16314
|
}
|
|
15941
|
-
_context.
|
|
15942
|
-
|
|
15943
|
-
case 3:
|
|
15944
|
-
return _context.abrupt("return", _context.sent);
|
|
15945
|
-
case 4:
|
|
16315
|
+
return _context.abrupt("return", api.getMythosForeignBalance(address));
|
|
16316
|
+
case 2:
|
|
15946
16317
|
if (isForeignAsset(asset)) {
|
|
15947
|
-
_context.next =
|
|
16318
|
+
_context.next = 4;
|
|
15948
16319
|
break;
|
|
15949
16320
|
}
|
|
15950
16321
|
throw new InvalidCurrencyError("Asset ".concat(JSON.stringify(asset), " is not a foreign asset"));
|
|
15951
|
-
case
|
|
16322
|
+
case 4:
|
|
15952
16323
|
if (!(node === 'Polimec')) {
|
|
15953
|
-
_context.next =
|
|
16324
|
+
_context.next = 8;
|
|
15954
16325
|
break;
|
|
15955
16326
|
}
|
|
15956
16327
|
if (!(asset.assetId === undefined)) {
|
|
15957
|
-
_context.next =
|
|
16328
|
+
_context.next = 7;
|
|
15958
16329
|
break;
|
|
15959
16330
|
}
|
|
15960
16331
|
throw new InvalidCurrencyError("Asset ".concat(JSON.stringify(asset), " has no assetId"));
|
|
15961
|
-
case
|
|
16332
|
+
case 7:
|
|
15962
16333
|
return _context.abrupt("return", api.getForeignAssetsByIdBalance(address, asset.assetId));
|
|
15963
|
-
case
|
|
16334
|
+
case 8:
|
|
15964
16335
|
if (!(node === 'AssetHubPolkadot')) {
|
|
15965
|
-
_context.next =
|
|
16336
|
+
_context.next = 14;
|
|
15966
16337
|
break;
|
|
15967
16338
|
}
|
|
15968
16339
|
if (!asset.multiLocation) {
|
|
15969
|
-
_context.next =
|
|
16340
|
+
_context.next = 13;
|
|
15970
16341
|
break;
|
|
15971
16342
|
}
|
|
15972
16343
|
return _context.abrupt("return", api.getAssetHubForeignBalance(address, asset.multiLocation));
|
|
15973
|
-
case
|
|
16344
|
+
case 13:
|
|
15974
16345
|
return _context.abrupt("return", api.getBalanceForeignAssetsAccount(address, Number(asset.assetId)));
|
|
15975
|
-
case
|
|
16346
|
+
case 14:
|
|
15976
16347
|
return _context.abrupt("return", api.getBalanceForeignPolkadotXcm(address, asset.assetId));
|
|
15977
|
-
case
|
|
16348
|
+
case 15:
|
|
15978
16349
|
case "end":
|
|
15979
16350
|
return _context.stop();
|
|
15980
16351
|
}
|
|
@@ -16037,25 +16408,19 @@ var getBalanceForeignInternal = function getBalanceForeignInternal(_a) {
|
|
|
16037
16408
|
case 5:
|
|
16038
16409
|
defaultPallet = getDefaultPallet(node);
|
|
16039
16410
|
if (!(defaultPallet === 'XTokens')) {
|
|
16040
|
-
_context.next =
|
|
16411
|
+
_context.next = 10;
|
|
16041
16412
|
break;
|
|
16042
16413
|
}
|
|
16043
|
-
_context.
|
|
16044
|
-
|
|
16045
|
-
case 9:
|
|
16046
|
-
return _context.abrupt("return", _context.sent);
|
|
16047
|
-
case 12:
|
|
16414
|
+
return _context.abrupt("return", getBalanceForeignXTokens(api, node, address, asset));
|
|
16415
|
+
case 10:
|
|
16048
16416
|
if (!(defaultPallet === 'PolkadotXcm')) {
|
|
16049
|
-
_context.next =
|
|
16417
|
+
_context.next = 12;
|
|
16050
16418
|
break;
|
|
16051
16419
|
}
|
|
16052
|
-
_context.
|
|
16053
|
-
|
|
16054
|
-
case 15:
|
|
16055
|
-
return _context.abrupt("return", _context.sent);
|
|
16056
|
-
case 16:
|
|
16420
|
+
return _context.abrupt("return", getBalanceForeignPolkadotXcm(api, node, address, asset));
|
|
16421
|
+
case 12:
|
|
16057
16422
|
throw new Error('Unsupported pallet');
|
|
16058
|
-
case
|
|
16423
|
+
case 13:
|
|
16059
16424
|
case "end":
|
|
16060
16425
|
return _context.stop();
|
|
16061
16426
|
}
|
|
@@ -16089,6 +16454,66 @@ var getBalanceForeign$1 = function getBalanceForeign(options) {
|
|
|
16089
16454
|
}));
|
|
16090
16455
|
};
|
|
16091
16456
|
|
|
16457
|
+
var getBalanceNativeInternal = function getBalanceNativeInternal(_a) {
|
|
16458
|
+
return __awaiter(void 0, [_a], void 0, function (_ref) {
|
|
16459
|
+
var address = _ref.address,
|
|
16460
|
+
node = _ref.node,
|
|
16461
|
+
api = _ref.api;
|
|
16462
|
+
return /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
16463
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
16464
|
+
while (1) switch (_context.prev = _context.next) {
|
|
16465
|
+
case 0:
|
|
16466
|
+
_context.next = 2;
|
|
16467
|
+
return api.init(node);
|
|
16468
|
+
case 2:
|
|
16469
|
+
if (!(node === 'Interlay')) {
|
|
16470
|
+
_context.next = 4;
|
|
16471
|
+
break;
|
|
16472
|
+
}
|
|
16473
|
+
return _context.abrupt("return", getBalanceForeignInternal({
|
|
16474
|
+
address: address,
|
|
16475
|
+
node: node,
|
|
16476
|
+
api: api,
|
|
16477
|
+
currency: {
|
|
16478
|
+
symbol: getAssetsObject(node).nativeAssetSymbol
|
|
16479
|
+
}
|
|
16480
|
+
}));
|
|
16481
|
+
case 4:
|
|
16482
|
+
return _context.abrupt("return", api.getBalanceNative(address));
|
|
16483
|
+
case 5:
|
|
16484
|
+
case "end":
|
|
16485
|
+
return _context.stop();
|
|
16486
|
+
}
|
|
16487
|
+
}, _callee);
|
|
16488
|
+
})();
|
|
16489
|
+
});
|
|
16490
|
+
};
|
|
16491
|
+
var getBalanceNative$1 = function getBalanceNative(options) {
|
|
16492
|
+
return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
16493
|
+
var api;
|
|
16494
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
16495
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
16496
|
+
case 0:
|
|
16497
|
+
api = options.api;
|
|
16498
|
+
_context2.prev = 1;
|
|
16499
|
+
_context2.next = 4;
|
|
16500
|
+
return getBalanceNativeInternal(options);
|
|
16501
|
+
case 4:
|
|
16502
|
+
return _context2.abrupt("return", _context2.sent);
|
|
16503
|
+
case 5:
|
|
16504
|
+
_context2.prev = 5;
|
|
16505
|
+
_context2.next = 8;
|
|
16506
|
+
return api.disconnect();
|
|
16507
|
+
case 8:
|
|
16508
|
+
return _context2.finish(5);
|
|
16509
|
+
case 9:
|
|
16510
|
+
case "end":
|
|
16511
|
+
return _context2.stop();
|
|
16512
|
+
}
|
|
16513
|
+
}, _callee2, null, [[1,, 5, 9]]);
|
|
16514
|
+
}));
|
|
16515
|
+
};
|
|
16516
|
+
|
|
16092
16517
|
var getAssetBalanceInternal = function getAssetBalanceInternal(_a) {
|
|
16093
16518
|
return __awaiter(void 0, [_a], void 0, function (_ref) {
|
|
16094
16519
|
var address = _ref.address,
|
|
@@ -16104,7 +16529,7 @@ var getAssetBalanceInternal = function getAssetBalanceInternal(_a) {
|
|
|
16104
16529
|
return api.init(node);
|
|
16105
16530
|
case 2:
|
|
16106
16531
|
isNativeSymbol = 'symbol' in currency ? getNativeAssetSymbol(node) === currency.symbol : false;
|
|
16107
|
-
if (!isNativeSymbol) {
|
|
16532
|
+
if (!(isNativeSymbol && node !== 'Interlay')) {
|
|
16108
16533
|
_context.next = 9;
|
|
16109
16534
|
break;
|
|
16110
16535
|
}
|
|
@@ -16318,42 +16743,14 @@ var RelayToParaBuilder = /*#__PURE__*/function () {
|
|
|
16318
16743
|
while (1) switch (_context.prev = _context.next) {
|
|
16319
16744
|
case 0:
|
|
16320
16745
|
options = this.buildOptions();
|
|
16321
|
-
_context.
|
|
16322
|
-
|
|
16323
|
-
case 3:
|
|
16324
|
-
return _context.abrupt("return", _context.sent);
|
|
16325
|
-
case 4:
|
|
16746
|
+
return _context.abrupt("return", transferRelayToPara$1(options));
|
|
16747
|
+
case 2:
|
|
16326
16748
|
case "end":
|
|
16327
16749
|
return _context.stop();
|
|
16328
16750
|
}
|
|
16329
16751
|
}, _callee, this);
|
|
16330
16752
|
}));
|
|
16331
16753
|
}
|
|
16332
|
-
/**
|
|
16333
|
-
* Builds and returns a serialized API call for the transfer.
|
|
16334
|
-
*
|
|
16335
|
-
* @returns A Promise that resolves to the serialized API call.
|
|
16336
|
-
*/
|
|
16337
|
-
}, {
|
|
16338
|
-
key: "buildSerializedApiCall",
|
|
16339
|
-
value: function buildSerializedApiCall() {
|
|
16340
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
16341
|
-
var options;
|
|
16342
|
-
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
16343
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
16344
|
-
case 0:
|
|
16345
|
-
options = this.buildOptions();
|
|
16346
|
-
_context2.next = 3;
|
|
16347
|
-
return transferRelayToParaSerializedApiCall$1(options);
|
|
16348
|
-
case 3:
|
|
16349
|
-
return _context2.abrupt("return", _context2.sent);
|
|
16350
|
-
case 4:
|
|
16351
|
-
case "end":
|
|
16352
|
-
return _context2.stop();
|
|
16353
|
-
}
|
|
16354
|
-
}, _callee2, this);
|
|
16355
|
-
}));
|
|
16356
|
-
}
|
|
16357
16754
|
}], [{
|
|
16358
16755
|
key: "create",
|
|
16359
16756
|
value: function create(api, to, batchManager, paraIdTo) {
|
|
@@ -16499,28 +16896,6 @@ var ParaToParaBuilder = /*#__PURE__*/function () {
|
|
|
16499
16896
|
}, _callee, this);
|
|
16500
16897
|
}));
|
|
16501
16898
|
}
|
|
16502
|
-
/**
|
|
16503
|
-
* Builds and returns a serialized API call for the transfer.
|
|
16504
|
-
*
|
|
16505
|
-
* @returns A Promise that resolves to the serialized API call.
|
|
16506
|
-
*/
|
|
16507
|
-
}, {
|
|
16508
|
-
key: "buildSerializedApiCall",
|
|
16509
|
-
value: function buildSerializedApiCall() {
|
|
16510
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
16511
|
-
var options;
|
|
16512
|
-
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
16513
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
16514
|
-
case 0:
|
|
16515
|
-
options = this.buildOptions();
|
|
16516
|
-
return _context2.abrupt("return", sendSerializedApiCall$1(options));
|
|
16517
|
-
case 2:
|
|
16518
|
-
case "end":
|
|
16519
|
-
return _context2.stop();
|
|
16520
|
-
}
|
|
16521
|
-
}, _callee2, this);
|
|
16522
|
-
}));
|
|
16523
|
-
}
|
|
16524
16899
|
}], [{
|
|
16525
16900
|
key: "createParaToPara",
|
|
16526
16901
|
value: function createParaToPara(api, from, to, currency, batchManager, paraIdTo) {
|
|
@@ -16596,37 +16971,14 @@ var ParaToRelayBuilder = /*#__PURE__*/function () {
|
|
|
16596
16971
|
while (1) switch (_context.prev = _context.next) {
|
|
16597
16972
|
case 0:
|
|
16598
16973
|
options = this.buildOptions();
|
|
16599
|
-
_context.
|
|
16600
|
-
|
|
16601
|
-
case 3:
|
|
16602
|
-
return _context.abrupt("return", _context.sent);
|
|
16603
|
-
case 4:
|
|
16974
|
+
return _context.abrupt("return", send$1(options));
|
|
16975
|
+
case 2:
|
|
16604
16976
|
case "end":
|
|
16605
16977
|
return _context.stop();
|
|
16606
16978
|
}
|
|
16607
16979
|
}, _callee, this);
|
|
16608
16980
|
}));
|
|
16609
16981
|
}
|
|
16610
|
-
}, {
|
|
16611
|
-
key: "buildSerializedApiCall",
|
|
16612
|
-
value: function buildSerializedApiCall() {
|
|
16613
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
16614
|
-
var options;
|
|
16615
|
-
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
16616
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
16617
|
-
case 0:
|
|
16618
|
-
options = this.buildOptions();
|
|
16619
|
-
_context2.next = 3;
|
|
16620
|
-
return sendSerializedApiCall$1(options);
|
|
16621
|
-
case 3:
|
|
16622
|
-
return _context2.abrupt("return", _context2.sent);
|
|
16623
|
-
case 4:
|
|
16624
|
-
case "end":
|
|
16625
|
-
return _context2.stop();
|
|
16626
|
-
}
|
|
16627
|
-
}, _callee2, this);
|
|
16628
|
-
}));
|
|
16629
|
-
}
|
|
16630
16982
|
}], [{
|
|
16631
16983
|
key: "create",
|
|
16632
16984
|
value: function create(api, from, amount, batchManager, feeAsset) {
|
|
@@ -16674,11 +17026,11 @@ var buildClaimAssetsInput = function buildClaimAssetsInput(_ref) {
|
|
|
16674
17026
|
|
|
16675
17027
|
var claimAssets$1 = function claimAssets(options) {
|
|
16676
17028
|
return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
16677
|
-
var api, node,
|
|
17029
|
+
var api, node, args, module, call;
|
|
16678
17030
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
16679
17031
|
while (1) switch (_context.prev = _context.next) {
|
|
16680
17032
|
case 0:
|
|
16681
|
-
api = options.api, node = options.node
|
|
17033
|
+
api = options.api, node = options.node;
|
|
16682
17034
|
_context.next = 3;
|
|
16683
17035
|
return api.init(node);
|
|
16684
17036
|
case 3:
|
|
@@ -16690,30 +17042,22 @@ var claimAssets$1 = function claimAssets(options) {
|
|
|
16690
17042
|
section: 'claim_assets',
|
|
16691
17043
|
parameters: args
|
|
16692
17044
|
};
|
|
16693
|
-
if (!(serializedApiCallEnabled === true)) {
|
|
16694
|
-
_context.next = 9;
|
|
16695
|
-
break;
|
|
16696
|
-
}
|
|
16697
|
-
return _context.abrupt("return", Object.assign(Object.assign({}, call), {
|
|
16698
|
-
parameters: Object.values(args)
|
|
16699
|
-
}));
|
|
16700
|
-
case 9:
|
|
16701
17045
|
return _context.abrupt("return", api.callTxMethod(call));
|
|
16702
|
-
case
|
|
16703
|
-
_context.prev =
|
|
17046
|
+
case 8:
|
|
17047
|
+
_context.prev = 8;
|
|
16704
17048
|
if (!isPjsClient(api)) {
|
|
16705
|
-
_context.next =
|
|
17049
|
+
_context.next = 12;
|
|
16706
17050
|
break;
|
|
16707
17051
|
}
|
|
16708
|
-
_context.next =
|
|
17052
|
+
_context.next = 12;
|
|
16709
17053
|
return api.disconnect();
|
|
16710
|
-
case
|
|
16711
|
-
return _context.finish(
|
|
16712
|
-
case
|
|
17054
|
+
case 12:
|
|
17055
|
+
return _context.finish(8);
|
|
17056
|
+
case 13:
|
|
16713
17057
|
case "end":
|
|
16714
17058
|
return _context.stop();
|
|
16715
17059
|
}
|
|
16716
|
-
}, _callee, null, [[3,,
|
|
17060
|
+
}, _callee, null, [[3,, 8, 13]]);
|
|
16717
17061
|
}));
|
|
16718
17062
|
};
|
|
16719
17063
|
|
|
@@ -16799,30 +17143,6 @@ var AssetClaimBuilder = /*#__PURE__*/function () {
|
|
|
16799
17143
|
}, _callee, this);
|
|
16800
17144
|
}));
|
|
16801
17145
|
}
|
|
16802
|
-
/**
|
|
16803
|
-
* Builds and returns a serialized API call for the asset claim.
|
|
16804
|
-
*
|
|
16805
|
-
* @returns A Promise that resolves to the serialized API call.
|
|
16806
|
-
*/
|
|
16807
|
-
}, {
|
|
16808
|
-
key: "buildSerializedApiCall",
|
|
16809
|
-
value: function buildSerializedApiCall() {
|
|
16810
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
16811
|
-
var options;
|
|
16812
|
-
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
16813
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
16814
|
-
case 0:
|
|
16815
|
-
options = this.buildOptions();
|
|
16816
|
-
return _context2.abrupt("return", claimAssets$1(Object.assign(Object.assign({}, options), {
|
|
16817
|
-
serializedApiCallEnabled: true
|
|
16818
|
-
})));
|
|
16819
|
-
case 2:
|
|
16820
|
-
case "end":
|
|
16821
|
-
return _context2.stop();
|
|
16822
|
-
}
|
|
16823
|
-
}, _callee2, this);
|
|
16824
|
-
}));
|
|
16825
|
-
}
|
|
16826
17146
|
}], [{
|
|
16827
17147
|
key: "create",
|
|
16828
17148
|
value: function create(api, node) {
|
|
@@ -17091,8 +17411,7 @@ var createContext = function createContext(executionUrl, config) {
|
|
|
17091
17411
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17092
17412
|
while (1) switch (_context.prev = _context.next) {
|
|
17093
17413
|
case 0:
|
|
17094
|
-
_context.
|
|
17095
|
-
return contextFactory({
|
|
17414
|
+
return _context.abrupt("return", contextFactory({
|
|
17096
17415
|
ethereum: {
|
|
17097
17416
|
execution_url: executionUrl,
|
|
17098
17417
|
beacon_url: config.BEACON_HTTP_API
|
|
@@ -17109,10 +17428,8 @@ var createContext = function createContext(executionUrl, config) {
|
|
|
17109
17428
|
gateway: config.GATEWAY_CONTRACT,
|
|
17110
17429
|
beefy: config.BEEFY_CONTRACT
|
|
17111
17430
|
}
|
|
17112
|
-
});
|
|
17113
|
-
case
|
|
17114
|
-
return _context.abrupt("return", _context.sent);
|
|
17115
|
-
case 3:
|
|
17431
|
+
}));
|
|
17432
|
+
case 1:
|
|
17116
17433
|
case "end":
|
|
17117
17434
|
return _context.stop();
|
|
17118
17435
|
}
|
|
@@ -17306,28 +17623,19 @@ var createTx$1 = function createTx(api, address, amount, currency, originNode, d
|
|
|
17306
17623
|
while (1) switch (_context.prev = _context.next) {
|
|
17307
17624
|
case 0:
|
|
17308
17625
|
if (!isRelayChain(originNode)) {
|
|
17309
|
-
_context.next =
|
|
17626
|
+
_context.next = 4;
|
|
17310
17627
|
break;
|
|
17311
17628
|
}
|
|
17312
|
-
_context.
|
|
17313
|
-
|
|
17314
|
-
case 3:
|
|
17315
|
-
return _context.abrupt("return", _context.sent);
|
|
17316
|
-
case 6:
|
|
17629
|
+
return _context.abrupt("return", Builder$1(api).to(destNode).amount(amount).address(address).build());
|
|
17630
|
+
case 4:
|
|
17317
17631
|
if (!isRelayChain(destNode)) {
|
|
17318
|
-
_context.next =
|
|
17632
|
+
_context.next = 8;
|
|
17319
17633
|
break;
|
|
17320
17634
|
}
|
|
17321
|
-
_context.
|
|
17322
|
-
|
|
17635
|
+
return _context.abrupt("return", Builder$1(api).from(originNode).amount(amount).address(address).build());
|
|
17636
|
+
case 8:
|
|
17637
|
+
return _context.abrupt("return", Builder$1(api).from(originNode).to(destNode).currency(currency).amount(amount).address(address).build());
|
|
17323
17638
|
case 9:
|
|
17324
|
-
return _context.abrupt("return", _context.sent);
|
|
17325
|
-
case 12:
|
|
17326
|
-
_context.next = 14;
|
|
17327
|
-
return Builder$1(api).from(originNode).to(destNode).currency(currency).amount(amount).address(address).build();
|
|
17328
|
-
case 14:
|
|
17329
|
-
return _context.abrupt("return", _context.sent);
|
|
17330
|
-
case 15:
|
|
17331
17639
|
case "end":
|
|
17332
17640
|
return _context.stop();
|
|
17333
17641
|
}
|
|
@@ -17608,8 +17916,170 @@ var getSupportedAssets = function getSupportedAssets(origin, destination) {
|
|
|
17608
17916
|
symbol: "".concat(wethAsset.symbol, ".e")
|
|
17609
17917
|
});
|
|
17610
17918
|
}
|
|
17611
|
-
return supportedAssets;
|
|
17612
|
-
};
|
|
17919
|
+
return supportedAssets;
|
|
17920
|
+
};
|
|
17921
|
+
|
|
17922
|
+
var isPrimitive = function isPrimitive(obj) {
|
|
17923
|
+
return obj !== Object(obj);
|
|
17924
|
+
};
|
|
17925
|
+
var _deepEqual = function deepEqual(obj1, obj2) {
|
|
17926
|
+
if (obj1 === obj2) return true;
|
|
17927
|
+
if (isPrimitive(obj1) && isPrimitive(obj2)) return obj1 === obj2;
|
|
17928
|
+
if (_typeof(obj1) !== 'object' || obj1 === null || _typeof(obj2) !== 'object' || obj2 === null) {
|
|
17929
|
+
return false;
|
|
17930
|
+
}
|
|
17931
|
+
if (Array.isArray(obj1) !== Array.isArray(obj2)) {
|
|
17932
|
+
return false;
|
|
17933
|
+
}
|
|
17934
|
+
var obj1Keys = Object.keys(obj1).map(function (key) {
|
|
17935
|
+
return key.toLowerCase();
|
|
17936
|
+
});
|
|
17937
|
+
var obj2Keys = Object.keys(obj2).map(function (key) {
|
|
17938
|
+
return key.toLowerCase();
|
|
17939
|
+
});
|
|
17940
|
+
if (obj1Keys.length !== obj2Keys.length) return false;
|
|
17941
|
+
var _iterator = _createForOfIteratorHelper(obj1Keys),
|
|
17942
|
+
_step;
|
|
17943
|
+
try {
|
|
17944
|
+
var _loop = function _loop() {
|
|
17945
|
+
var key = _step.value;
|
|
17946
|
+
var keyInObj2 = obj2Keys.find(function (k) {
|
|
17947
|
+
return k === key;
|
|
17948
|
+
});
|
|
17949
|
+
if (!keyInObj2) return {
|
|
17950
|
+
v: false
|
|
17951
|
+
};
|
|
17952
|
+
var obj1Value = obj1[Object.keys(obj1).find(function (k) {
|
|
17953
|
+
return k.toLowerCase() === key;
|
|
17954
|
+
})];
|
|
17955
|
+
var obj2Value = obj2[Object.keys(obj2).find(function (k) {
|
|
17956
|
+
return k.toLowerCase() === key;
|
|
17957
|
+
})];
|
|
17958
|
+
if (!_deepEqual(obj1Value, obj2Value)) return {
|
|
17959
|
+
v: false
|
|
17960
|
+
};
|
|
17961
|
+
},
|
|
17962
|
+
_ret;
|
|
17963
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
17964
|
+
_ret = _loop();
|
|
17965
|
+
if (_ret) return _ret.v;
|
|
17966
|
+
}
|
|
17967
|
+
} catch (err) {
|
|
17968
|
+
_iterator.e(err);
|
|
17969
|
+
} finally {
|
|
17970
|
+
_iterator.f();
|
|
17971
|
+
}
|
|
17972
|
+
return true;
|
|
17973
|
+
};
|
|
17974
|
+
|
|
17975
|
+
var getFees = function getFees(scenario) {
|
|
17976
|
+
if (scenario === 'ParaToRelay') {
|
|
17977
|
+
return 4600000000;
|
|
17978
|
+
} else if (scenario === 'ParaToPara') {
|
|
17979
|
+
return 399600000000;
|
|
17980
|
+
}
|
|
17981
|
+
throw new Error("Fees for scenario ".concat(scenario, " are not defined."));
|
|
17982
|
+
};
|
|
17983
|
+
|
|
17984
|
+
/**
|
|
17985
|
+
* Retrieves the node instance for a given node.
|
|
17986
|
+
*
|
|
17987
|
+
* @param node - The node identifier.
|
|
17988
|
+
* @returns The node instance
|
|
17989
|
+
*/
|
|
17990
|
+
var getNode = function getNode(node) {
|
|
17991
|
+
var nodeMap = nodes();
|
|
17992
|
+
return nodeMap[node];
|
|
17993
|
+
};
|
|
17994
|
+
|
|
17995
|
+
var createApiInstanceForNode$1 = function createApiInstanceForNode(api, node) {
|
|
17996
|
+
return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
17997
|
+
var wsUrl;
|
|
17998
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17999
|
+
while (1) switch (_context.prev = _context.next) {
|
|
18000
|
+
case 0:
|
|
18001
|
+
if (!(node === 'Polkadot' || node === 'Kusama')) {
|
|
18002
|
+
_context.next = 3;
|
|
18003
|
+
break;
|
|
18004
|
+
}
|
|
18005
|
+
wsUrl = getNodeProvider(node);
|
|
18006
|
+
return _context.abrupt("return", api.createApiInstance(wsUrl));
|
|
18007
|
+
case 3:
|
|
18008
|
+
return _context.abrupt("return", getNode(node).createApiInstance(api));
|
|
18009
|
+
case 4:
|
|
18010
|
+
case "end":
|
|
18011
|
+
return _context.stop();
|
|
18012
|
+
}
|
|
18013
|
+
}, _callee);
|
|
18014
|
+
}));
|
|
18015
|
+
};
|
|
18016
|
+
|
|
18017
|
+
var determineRelayChainSymbol = function determineRelayChainSymbol(node) {
|
|
18018
|
+
if (node === 'Polkadot') {
|
|
18019
|
+
return 'DOT';
|
|
18020
|
+
} else if (node === 'Kusama') {
|
|
18021
|
+
return 'KSM';
|
|
18022
|
+
} else {
|
|
18023
|
+
return getRelayChainSymbol(node);
|
|
18024
|
+
}
|
|
18025
|
+
};
|
|
18026
|
+
|
|
18027
|
+
// Contains important call creation utils (Selection of fees,formating of header and more.. )
|
|
18028
|
+
/**
|
|
18029
|
+
* Determines the relay chain for a given node.
|
|
18030
|
+
*
|
|
18031
|
+
* @param node - The node for which to determine the relay chain.
|
|
18032
|
+
* @returns 'Kusama' if the node's relay chain symbol is 'KSM'; otherwise, 'Polkadot'.
|
|
18033
|
+
*/
|
|
18034
|
+
var determineRelayChain = function determineRelayChain(node) {
|
|
18035
|
+
return getRelayChainSymbol(node) === 'KSM' ? 'Kusama' : 'Polkadot';
|
|
18036
|
+
};
|
|
18037
|
+
/**
|
|
18038
|
+
* Determines whether a given node is a relay chain (Polkadot or Kusama).
|
|
18039
|
+
*
|
|
18040
|
+
* @param node - The node to check.
|
|
18041
|
+
* @returns True if the node is 'Polkadot' or 'Kusama'; otherwise, false.
|
|
18042
|
+
*/
|
|
18043
|
+
var isRelayChain = function isRelayChain(node) {
|
|
18044
|
+
return node === 'Polkadot' || node === 'Kusama';
|
|
18045
|
+
};
|
|
18046
|
+
|
|
18047
|
+
var validateDestinationAddress = function validateDestinationAddress(address, destination) {
|
|
18048
|
+
if (typeof address === 'string' && destination && !isTMultiLocation(destination)) {
|
|
18049
|
+
var isDestinationEvm = isNodeEvm(destination);
|
|
18050
|
+
var isEthereumAddress = ethers.isAddress(address);
|
|
18051
|
+
if (isDestinationEvm) {
|
|
18052
|
+
if (!isEthereumAddress) {
|
|
18053
|
+
throw new InvalidAddressError('Destination node is an EVM chain, but the address provided is not a valid Ethereum address.');
|
|
18054
|
+
}
|
|
18055
|
+
} else {
|
|
18056
|
+
if (isEthereumAddress) {
|
|
18057
|
+
throw new InvalidAddressError('EVM address provided but destination is not an EVM chain.');
|
|
18058
|
+
}
|
|
18059
|
+
}
|
|
18060
|
+
}
|
|
18061
|
+
};
|
|
18062
|
+
|
|
18063
|
+
var determineAssetCheckEnabled = function determineAssetCheckEnabled(origin, currency, isBridge) {
|
|
18064
|
+
var originNode = getNode(origin);
|
|
18065
|
+
return 'multiasset' in currency || 'multilocation' in currency && isOverrideMultiLocationSpecifier(currency.multilocation) || isBridge ? false : originNode.assetCheckEnabled;
|
|
18066
|
+
};
|
|
18067
|
+
|
|
18068
|
+
var isBridgeTransfer = function isBridgeTransfer(origin, destination) {
|
|
18069
|
+
return origin === 'AssetHubPolkadot' && destination === 'AssetHubKusama' || origin === 'AssetHubKusama' && destination === 'AssetHubPolkadot';
|
|
18070
|
+
};
|
|
18071
|
+
|
|
18072
|
+
var KeepAliveError = /*#__PURE__*/function (_Error) {
|
|
18073
|
+
function KeepAliveError(message) {
|
|
18074
|
+
var _this;
|
|
18075
|
+
_classCallCheck(this, KeepAliveError);
|
|
18076
|
+
_this = _callSuper(this, KeepAliveError, [message]);
|
|
18077
|
+
_this.name = 'KeepAliveError';
|
|
18078
|
+
return _this;
|
|
18079
|
+
}
|
|
18080
|
+
_inherits(KeepAliveError, _Error);
|
|
18081
|
+
return _createClass(KeepAliveError);
|
|
18082
|
+
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
17613
18083
|
|
|
17614
18084
|
var createTx = function createTx(originApi, destApi, address, amount, currencySymbol, originNode, destNode) {
|
|
17615
18085
|
return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
@@ -17617,36 +18087,27 @@ var createTx = function createTx(originApi, destApi, address, amount, currencySy
|
|
|
17617
18087
|
while (1) switch (_context.prev = _context.next) {
|
|
17618
18088
|
case 0:
|
|
17619
18089
|
if (!(originNode !== undefined && destNode !== undefined)) {
|
|
17620
|
-
_context.next =
|
|
18090
|
+
_context.next = 2;
|
|
17621
18091
|
break;
|
|
17622
18092
|
}
|
|
17623
|
-
_context.
|
|
17624
|
-
return Builder$1(destApi).from(destNode).to(originNode).currency({
|
|
18093
|
+
return _context.abrupt("return", Builder$1(destApi).from(destNode).to(originNode).currency({
|
|
17625
18094
|
symbol: currencySymbol
|
|
17626
|
-
}).amount(amount).address(address).build();
|
|
17627
|
-
case
|
|
17628
|
-
return _context.abrupt("return", _context.sent);
|
|
17629
|
-
case 4:
|
|
18095
|
+
}).amount(amount).address(address).build());
|
|
18096
|
+
case 2:
|
|
17630
18097
|
if (!(originNode === undefined && destNode !== undefined)) {
|
|
17631
|
-
_context.next =
|
|
18098
|
+
_context.next = 6;
|
|
17632
18099
|
break;
|
|
17633
18100
|
}
|
|
17634
|
-
_context.
|
|
17635
|
-
|
|
17636
|
-
case 7:
|
|
17637
|
-
return _context.abrupt("return", _context.sent);
|
|
17638
|
-
case 10:
|
|
18101
|
+
return _context.abrupt("return", Builder$1(originApi).to(destNode).amount(amount).address(address).build());
|
|
18102
|
+
case 6:
|
|
17639
18103
|
if (!(originNode !== undefined && destNode === undefined)) {
|
|
17640
|
-
_context.next =
|
|
18104
|
+
_context.next = 10;
|
|
17641
18105
|
break;
|
|
17642
18106
|
}
|
|
17643
|
-
_context.
|
|
17644
|
-
|
|
17645
|
-
case 13:
|
|
17646
|
-
return _context.abrupt("return", _context.sent);
|
|
17647
|
-
case 16:
|
|
18107
|
+
return _context.abrupt("return", Builder$1(destApi).to(originNode).amount(amount).address(address).build());
|
|
18108
|
+
case 10:
|
|
17648
18109
|
return _context.abrupt("return", null);
|
|
17649
|
-
case
|
|
18110
|
+
case 11:
|
|
17650
18111
|
case "end":
|
|
17651
18112
|
return _context.stop();
|
|
17652
18113
|
}
|
|
@@ -17749,174 +18210,62 @@ var checkKeepAlive = function checkKeepAlive(_a) {
|
|
|
17749
18210
|
});
|
|
17750
18211
|
};
|
|
17751
18212
|
|
|
17752
|
-
var
|
|
17753
|
-
|
|
17754
|
-
|
|
17755
|
-
|
|
17756
|
-
|
|
17757
|
-
|
|
18213
|
+
var performKeepAliveCheck = function performKeepAliveCheck(_a, asset_1) {
|
|
18214
|
+
return __awaiter(void 0, [_a, asset_1], void 0, function (_ref, asset) {
|
|
18215
|
+
var api = _ref.api,
|
|
18216
|
+
origin = _ref.origin,
|
|
18217
|
+
destApiForKeepAlive = _ref.destApiForKeepAlive,
|
|
18218
|
+
amount = _ref.amount,
|
|
18219
|
+
currency = _ref.currency,
|
|
18220
|
+
address = _ref.address,
|
|
18221
|
+
destination = _ref.destination;
|
|
17758
18222
|
return /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
17759
|
-
var
|
|
18223
|
+
var amountStr;
|
|
17760
18224
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17761
18225
|
while (1) switch (_context.prev = _context.next) {
|
|
17762
18226
|
case 0:
|
|
17763
|
-
api = options.api, origin = options.origin, currency = options.currency, amount = options.amount, address = options.address, destination = options.destination, paraIdTo = options.paraIdTo, destApiForKeepAlive = options.destApiForKeepAlive, feeAsset = options.feeAsset, version = options.version, ahAddress = options.ahAddress;
|
|
17764
|
-
if (!((!('multiasset' in currency) || 'multilocation' in currency) && amount === null)) {
|
|
17765
|
-
_context.next = 3;
|
|
17766
|
-
break;
|
|
17767
|
-
}
|
|
17768
|
-
throw new Error('Amount is required');
|
|
17769
|
-
case 3:
|
|
17770
|
-
if (!('multilocation' in currency && (feeAsset === 0 || feeAsset !== undefined))) {
|
|
17771
|
-
_context.next = 5;
|
|
17772
|
-
break;
|
|
17773
|
-
}
|
|
17774
|
-
throw new InvalidCurrencyError('Overrided single multi asset cannot be used with fee asset');
|
|
17775
|
-
case 5:
|
|
17776
|
-
if (!('multiasset' in currency)) {
|
|
17777
|
-
_context.next = 15;
|
|
17778
|
-
break;
|
|
17779
|
-
}
|
|
17780
|
-
if (amount !== null) {
|
|
17781
|
-
console.warn('Amount is ignored when using overriding currency using multiple multi locations. Please set it to null.');
|
|
17782
|
-
}
|
|
17783
|
-
if (!(currency.multiasset.length === 0)) {
|
|
17784
|
-
_context.next = 9;
|
|
17785
|
-
break;
|
|
17786
|
-
}
|
|
17787
|
-
throw new InvalidCurrencyError('Overrided multi assets cannot be empty');
|
|
17788
|
-
case 9:
|
|
17789
|
-
if (!(currency.multiasset.length === 1 && (feeAsset === 0 || feeAsset !== undefined))) {
|
|
17790
|
-
_context.next = 11;
|
|
17791
|
-
break;
|
|
17792
|
-
}
|
|
17793
|
-
throw new InvalidCurrencyError('Overrided single multi asset cannot be used with fee asset');
|
|
17794
|
-
case 11:
|
|
17795
|
-
if (!(currency.multiasset.length > 1 && feeAsset === undefined)) {
|
|
17796
|
-
_context.next = 13;
|
|
17797
|
-
break;
|
|
17798
|
-
}
|
|
17799
|
-
throw new InvalidCurrencyError('Overrided multi assets cannot be used without specifying fee asset');
|
|
17800
|
-
case 13:
|
|
17801
|
-
if (!(currency.multiasset.length > 1 && feeAsset !== undefined && (feeAsset < 0 || feeAsset >= currency.multiasset.length))) {
|
|
17802
|
-
_context.next = 15;
|
|
17803
|
-
break;
|
|
17804
|
-
}
|
|
17805
|
-
throw new InvalidCurrencyError('Fee asset index is out of bounds. Please provide a valid index.');
|
|
17806
|
-
case 15:
|
|
17807
|
-
if (!(destination === 'Ethereum' && origin !== 'AssetHubPolkadot' && origin !== 'Hydration')) {
|
|
17808
|
-
_context.next = 17;
|
|
17809
|
-
break;
|
|
17810
|
-
}
|
|
17811
|
-
throw new IncompatibleNodesError('Transfers to Ethereum are only supported from AssetHubPolkadot and Hydration.');
|
|
17812
|
-
case 17:
|
|
17813
|
-
isMultiLocationDestination = _typeof(destination) === 'object';
|
|
17814
|
-
isBridge = origin === 'AssetHubPolkadot' && destination === 'AssetHubKusama' || origin === 'AssetHubKusama' && destination === 'AssetHubPolkadot';
|
|
17815
|
-
isRelayDestination = destination === undefined;
|
|
17816
|
-
if (!(!isRelayDestination && !isMultiLocationDestination)) {
|
|
17817
|
-
_context.next = 25;
|
|
17818
|
-
break;
|
|
17819
|
-
}
|
|
17820
|
-
originRelayChainSymbol = getRelayChainSymbol(origin);
|
|
17821
|
-
destinationRelayChainSymbol = getRelayChainSymbol(destination);
|
|
17822
|
-
if (!(!isBridge && originRelayChainSymbol !== destinationRelayChainSymbol)) {
|
|
17823
|
-
_context.next = 25;
|
|
17824
|
-
break;
|
|
17825
|
-
}
|
|
17826
|
-
throw new IncompatibleNodesError();
|
|
17827
|
-
case 25:
|
|
17828
|
-
originNode = getNode(origin);
|
|
17829
|
-
assetCheckEnabled = 'multiasset' in currency || 'multilocation' in currency && isOverrideMultiLocationSpecifier(currency.multilocation) || isBridge ? false : originNode.assetCheckEnabled;
|
|
17830
|
-
isDestAssetHub = destination === 'AssetHubPolkadot' || destination === 'AssetHubKusama';
|
|
17831
|
-
pallet = getDefaultPallet(origin);
|
|
17832
|
-
isBifrost = origin === 'BifrostPolkadot' || origin === 'BifrostKusama';
|
|
17833
|
-
if (!(!assetCheckEnabled && 'symbol' in currency && isSymbolSpecifier(currency.symbol))) {
|
|
17834
|
-
_context.next = 32;
|
|
17835
|
-
break;
|
|
17836
|
-
}
|
|
17837
|
-
throw new InvalidCurrencyError('Symbol specifier is not supported when asset check is disabled. Please use normal symbol instead.');
|
|
17838
|
-
case 32:
|
|
17839
|
-
if (!(!assetCheckEnabled && 'id' in currency)) {
|
|
17840
|
-
_context.next = 34;
|
|
17841
|
-
break;
|
|
17842
|
-
}
|
|
17843
|
-
throw new InvalidCurrencyError('Asset ID is not supported when asset check is disabled. Please use normal symbol instead');
|
|
17844
|
-
case 34:
|
|
17845
|
-
asset = assetCheckEnabled ? getAssetBySymbolOrId(origin, currency, isRelayDestination ? determineRelayChain(origin) : !isTMultiLocation(destination) ? destination : null) : null;
|
|
17846
|
-
if (!(!isBridge && isDestAssetHub && pallet === 'XTokens' && !isBifrost)) {
|
|
17847
|
-
_context.next = 40;
|
|
17848
|
-
break;
|
|
17849
|
-
}
|
|
17850
|
-
nativeAssets = getNativeAssets(destination);
|
|
17851
|
-
if (origin === 'Hydration') {
|
|
17852
|
-
nativeAssets = nativeAssets.filter(function (nativeAsset) {
|
|
17853
|
-
return nativeAsset.symbol !== 'DOT';
|
|
17854
|
-
});
|
|
17855
|
-
}
|
|
17856
|
-
if (!('symbol' in currency && nativeAssets.some(function (nativeAsset) {
|
|
17857
|
-
var _a;
|
|
17858
|
-
return nativeAsset.symbol.toLowerCase() === ((_a = asset === null || asset === void 0 ? void 0 : asset.symbol) === null || _a === void 0 ? void 0 : _a.toLowerCase());
|
|
17859
|
-
}))) {
|
|
17860
|
-
_context.next = 40;
|
|
17861
|
-
break;
|
|
17862
|
-
}
|
|
17863
|
-
throw new InvalidCurrencyError("".concat(JSON.stringify(asset === null || asset === void 0 ? void 0 : asset.symbol), " is not supported for transfers to ").concat(destination, "."));
|
|
17864
|
-
case 40:
|
|
17865
|
-
if (!isBridge && asset === null && assetCheckEnabled) {
|
|
17866
|
-
throwUnsupportedCurrency(currency, origin);
|
|
17867
|
-
}
|
|
17868
|
-
if (!(!isBridge && !isRelayDestination && !isMultiLocationDestination && (asset === null || asset === void 0 ? void 0 : asset.symbol) !== undefined && assetCheckEnabled && !('id' in currency) && !hasSupportForAsset(destination, asset.symbol))) {
|
|
17869
|
-
_context.next = 43;
|
|
17870
|
-
break;
|
|
17871
|
-
}
|
|
17872
|
-
throw new InvalidCurrencyError("Destination node ".concat(destination, " does not support currency ").concat(JSON.stringify(currency), "."));
|
|
17873
|
-
case 43:
|
|
17874
|
-
_context.next = 45;
|
|
17875
|
-
return api.init(origin);
|
|
17876
|
-
case 45:
|
|
17877
|
-
_context.prev = 45;
|
|
17878
18227
|
amountStr = amount === null || amount === void 0 ? void 0 : amount.toString();
|
|
17879
18228
|
if (!('multilocation' in currency || 'multiasset' in currency)) {
|
|
17880
|
-
_context.next =
|
|
18229
|
+
_context.next = 5;
|
|
17881
18230
|
break;
|
|
17882
18231
|
}
|
|
17883
18232
|
console.warn('Keep alive check is not supported when using MultiLocation as currency.');
|
|
17884
|
-
_context.next =
|
|
18233
|
+
_context.next = 23;
|
|
17885
18234
|
break;
|
|
17886
|
-
case
|
|
18235
|
+
case 5:
|
|
17887
18236
|
if (!(_typeof(address) === 'object')) {
|
|
17888
|
-
_context.next =
|
|
18237
|
+
_context.next = 9;
|
|
17889
18238
|
break;
|
|
17890
18239
|
}
|
|
17891
18240
|
console.warn('Keep alive check is not supported when using MultiLocation as address.');
|
|
17892
|
-
_context.next =
|
|
18241
|
+
_context.next = 23;
|
|
17893
18242
|
break;
|
|
17894
|
-
case
|
|
18243
|
+
case 9:
|
|
17895
18244
|
if (!(_typeof(destination) === 'object')) {
|
|
17896
|
-
_context.next =
|
|
18245
|
+
_context.next = 13;
|
|
17897
18246
|
break;
|
|
17898
18247
|
}
|
|
17899
18248
|
console.warn('Keep alive check is not supported when using MultiLocation as destination.');
|
|
17900
|
-
_context.next =
|
|
18249
|
+
_context.next = 23;
|
|
17901
18250
|
break;
|
|
17902
|
-
case
|
|
18251
|
+
case 13:
|
|
17903
18252
|
if (!(destination === 'Ethereum')) {
|
|
17904
|
-
_context.next =
|
|
18253
|
+
_context.next = 17;
|
|
17905
18254
|
break;
|
|
17906
18255
|
}
|
|
17907
18256
|
console.warn('Keep alive check is not supported when using Ethereum as origin or destination.');
|
|
17908
|
-
_context.next =
|
|
18257
|
+
_context.next = 23;
|
|
17909
18258
|
break;
|
|
17910
|
-
case
|
|
18259
|
+
case 17:
|
|
17911
18260
|
if (asset) {
|
|
17912
|
-
_context.next =
|
|
18261
|
+
_context.next = 21;
|
|
17913
18262
|
break;
|
|
17914
18263
|
}
|
|
17915
18264
|
console.warn('Keep alive check is not supported when asset check is disabled.');
|
|
17916
|
-
_context.next =
|
|
18265
|
+
_context.next = 23;
|
|
17917
18266
|
break;
|
|
17918
|
-
case
|
|
17919
|
-
_context.next =
|
|
18267
|
+
case 21:
|
|
18268
|
+
_context.next = 23;
|
|
17920
18269
|
return checkKeepAlive({
|
|
17921
18270
|
originApi: api,
|
|
17922
18271
|
address: address,
|
|
@@ -17926,182 +18275,230 @@ var sendCommon = function sendCommon(options_1) {
|
|
|
17926
18275
|
asset: asset,
|
|
17927
18276
|
destNode: destination
|
|
17928
18277
|
});
|
|
17929
|
-
case
|
|
17930
|
-
// In case asset check is disabled, we create asset object from currency symbol
|
|
17931
|
-
resolvedAsset = asset !== null && asset !== void 0 ? asset : {
|
|
17932
|
-
symbol: 'symbol' in currency ? currency.symbol : undefined
|
|
17933
|
-
};
|
|
17934
|
-
return _context.abrupt("return", originNode.transfer({
|
|
17935
|
-
api: api,
|
|
17936
|
-
asset: resolvedAsset,
|
|
17937
|
-
amount: amountStr !== null && amountStr !== void 0 ? amountStr : '',
|
|
17938
|
-
address: address,
|
|
17939
|
-
destination: destination,
|
|
17940
|
-
paraIdTo: paraIdTo,
|
|
17941
|
-
overridedCurrencyMultiLocation: 'multilocation' in currency && isOverrideMultiLocationSpecifier(currency.multilocation) ? currency.multilocation.value : 'multiasset' in currency ? currency.multiasset : undefined,
|
|
17942
|
-
feeAsset: feeAsset,
|
|
17943
|
-
version: version,
|
|
17944
|
-
destApiForKeepAlive: destApiForKeepAlive,
|
|
17945
|
-
serializedApiCallEnabled: serializedApiCallEnabled,
|
|
17946
|
-
ahAddress: ahAddress
|
|
17947
|
-
}));
|
|
17948
|
-
case 71:
|
|
17949
|
-
_context.prev = 71;
|
|
17950
|
-
if (!isPjsClient(api)) {
|
|
17951
|
-
_context.next = 75;
|
|
17952
|
-
break;
|
|
17953
|
-
}
|
|
17954
|
-
_context.next = 75;
|
|
17955
|
-
return api.disconnect();
|
|
17956
|
-
case 75:
|
|
17957
|
-
return _context.finish(71);
|
|
17958
|
-
case 76:
|
|
18278
|
+
case 23:
|
|
17959
18279
|
case "end":
|
|
17960
18280
|
return _context.stop();
|
|
17961
18281
|
}
|
|
17962
|
-
}, _callee
|
|
18282
|
+
}, _callee);
|
|
17963
18283
|
})();
|
|
17964
18284
|
});
|
|
17965
18285
|
};
|
|
17966
|
-
|
|
17967
|
-
|
|
17968
|
-
|
|
17969
|
-
|
|
17970
|
-
case 0:
|
|
17971
|
-
return _context2.abrupt("return", sendCommon(options, true));
|
|
17972
|
-
case 1:
|
|
17973
|
-
case "end":
|
|
17974
|
-
return _context2.stop();
|
|
17975
|
-
}
|
|
17976
|
-
}, _callee2);
|
|
17977
|
-
}));
|
|
18286
|
+
|
|
18287
|
+
var resolveAsset = function resolveAsset(currency, origin, destination, assetCheckEnabled) {
|
|
18288
|
+
var isRelayDestination = destination === undefined;
|
|
18289
|
+
return assetCheckEnabled ? getAssetBySymbolOrId(origin, currency, isRelayDestination ? determineRelayChain(origin) : !isTMultiLocation(destination) ? destination : null) : null;
|
|
17978
18290
|
};
|
|
17979
|
-
|
|
17980
|
-
|
|
17981
|
-
|
|
17982
|
-
|
|
17983
|
-
|
|
17984
|
-
|
|
17985
|
-
|
|
17986
|
-
|
|
17987
|
-
|
|
17988
|
-
|
|
17989
|
-
|
|
17990
|
-
|
|
18291
|
+
|
|
18292
|
+
var validateCurrency = function validateCurrency(currency, amount, feeAsset) {
|
|
18293
|
+
if ((!('multiasset' in currency) || 'multilocation' in currency) && amount === null) {
|
|
18294
|
+
throw new Error('Amount is required');
|
|
18295
|
+
}
|
|
18296
|
+
if ('multiasset' in currency) {
|
|
18297
|
+
if (amount !== null) {
|
|
18298
|
+
console.warn('Amount is ignored when using overriding currency using multiple multi locations. Please set it to null.');
|
|
18299
|
+
}
|
|
18300
|
+
if (currency.multiasset.length === 0) {
|
|
18301
|
+
throw new InvalidCurrencyError('Overrided multi assets cannot be empty');
|
|
18302
|
+
}
|
|
18303
|
+
if (currency.multiasset.length === 1 && (feeAsset === 0 || feeAsset !== undefined)) {
|
|
18304
|
+
throw new InvalidCurrencyError('Overrided single multi asset cannot be used with fee asset');
|
|
18305
|
+
}
|
|
18306
|
+
if (currency.multiasset.length > 1 && feeAsset === undefined) {
|
|
18307
|
+
throw new InvalidCurrencyError('Overrided multi assets cannot be used without specifying fee asset');
|
|
18308
|
+
}
|
|
18309
|
+
if (currency.multiasset.length > 1 && feeAsset !== undefined && (feeAsset < 0 || feeAsset >= currency.multiasset.length)) {
|
|
18310
|
+
throw new InvalidCurrencyError('Fee asset index is out of bounds. Please provide a valid index.');
|
|
18311
|
+
}
|
|
18312
|
+
}
|
|
17991
18313
|
};
|
|
17992
|
-
var
|
|
17993
|
-
|
|
17994
|
-
|
|
18314
|
+
var validateDestination = function validateDestination(origin, destination) {
|
|
18315
|
+
if (destination === 'Ethereum' && origin !== 'AssetHubPolkadot' && origin !== 'Hydration') {
|
|
18316
|
+
throw new IncompatibleNodesError('Transfers to Ethereum are only supported from AssetHubPolkadot and Hydration.');
|
|
18317
|
+
}
|
|
18318
|
+
var isMultiLocationDestination = _typeof(destination) === 'object';
|
|
18319
|
+
var isBridge = isBridgeTransfer(origin, destination);
|
|
18320
|
+
var isRelayDestination = destination === undefined;
|
|
18321
|
+
if (!isRelayDestination && !isMultiLocationDestination) {
|
|
18322
|
+
var originRelayChainSymbol = getRelayChainSymbol(origin);
|
|
18323
|
+
var destinationRelayChainSymbol = getRelayChainSymbol(destination);
|
|
18324
|
+
if (!isBridge && originRelayChainSymbol !== destinationRelayChainSymbol) {
|
|
18325
|
+
throw new IncompatibleNodesError();
|
|
18326
|
+
}
|
|
17995
18327
|
}
|
|
17996
|
-
return __awaiter(void 0, [options_1].concat(args_1), void 0, function (options) {
|
|
17997
|
-
var serializedApiCallEnabled = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
17998
|
-
return /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
17999
|
-
var api, destination, amount, address, paraIdTo, destApiForKeepAlive, version, isMultiLocationDestination, isAddressMultiLocation, amountStr, serializedApiCall;
|
|
18000
|
-
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
18001
|
-
while (1) switch (_context4.prev = _context4.next) {
|
|
18002
|
-
case 0:
|
|
18003
|
-
api = options.api, destination = options.destination, amount = options.amount, address = options.address, paraIdTo = options.paraIdTo, destApiForKeepAlive = options.destApiForKeepAlive, version = options.version;
|
|
18004
|
-
isMultiLocationDestination = _typeof(destination) === 'object';
|
|
18005
|
-
isAddressMultiLocation = _typeof(address) === 'object';
|
|
18006
|
-
if (!(api === undefined && isMultiLocationDestination)) {
|
|
18007
|
-
_context4.next = 5;
|
|
18008
|
-
break;
|
|
18009
|
-
}
|
|
18010
|
-
throw new Error('API is required when using MultiLocation as destination.');
|
|
18011
|
-
case 5:
|
|
18012
|
-
_context4.next = 7;
|
|
18013
|
-
return api.init(determineRelayChain(destination));
|
|
18014
|
-
case 7:
|
|
18015
|
-
_context4.prev = 7;
|
|
18016
|
-
amountStr = amount.toString();
|
|
18017
|
-
if (!isMultiLocationDestination) {
|
|
18018
|
-
_context4.next = 13;
|
|
18019
|
-
break;
|
|
18020
|
-
}
|
|
18021
|
-
console.warn('Keep alive check is not supported when using MultiLocation as destination.');
|
|
18022
|
-
_context4.next = 19;
|
|
18023
|
-
break;
|
|
18024
|
-
case 13:
|
|
18025
|
-
if (!isAddressMultiLocation) {
|
|
18026
|
-
_context4.next = 17;
|
|
18027
|
-
break;
|
|
18028
|
-
}
|
|
18029
|
-
console.warn('Keep alive check is not supported when using MultiLocation as address.');
|
|
18030
|
-
_context4.next = 19;
|
|
18031
|
-
break;
|
|
18032
|
-
case 17:
|
|
18033
|
-
_context4.next = 19;
|
|
18034
|
-
return checkKeepAlive({
|
|
18035
|
-
originApi: api,
|
|
18036
|
-
address: address,
|
|
18037
|
-
amount: amountStr,
|
|
18038
|
-
destApi: destApiForKeepAlive,
|
|
18039
|
-
asset: {
|
|
18040
|
-
symbol: getRelayChainSymbol(destination)
|
|
18041
|
-
},
|
|
18042
|
-
destNode: destination
|
|
18043
|
-
});
|
|
18044
|
-
case 19:
|
|
18045
|
-
serializedApiCall = getNode(isMultiLocationDestination ? resolveTNodeFromMultiLocation(destination) : destination).transferRelayToPara({
|
|
18046
|
-
api: api,
|
|
18047
|
-
destination: destination,
|
|
18048
|
-
address: address,
|
|
18049
|
-
amount: amountStr,
|
|
18050
|
-
paraIdTo: paraIdTo,
|
|
18051
|
-
destApiForKeepAlive: destApiForKeepAlive,
|
|
18052
|
-
version: version
|
|
18053
|
-
});
|
|
18054
|
-
if (!serializedApiCallEnabled) {
|
|
18055
|
-
_context4.next = 22;
|
|
18056
|
-
break;
|
|
18057
|
-
}
|
|
18058
|
-
return _context4.abrupt("return", Object.assign(Object.assign({}, serializedApiCall), {
|
|
18059
|
-
parameters: Object.values(serializedApiCall.parameters)
|
|
18060
|
-
}));
|
|
18061
|
-
case 22:
|
|
18062
|
-
return _context4.abrupt("return", api.callTxMethod(serializedApiCall));
|
|
18063
|
-
case 23:
|
|
18064
|
-
_context4.prev = 23;
|
|
18065
|
-
if (!isPjsClient(api)) {
|
|
18066
|
-
_context4.next = 27;
|
|
18067
|
-
break;
|
|
18068
|
-
}
|
|
18069
|
-
_context4.next = 27;
|
|
18070
|
-
return api.disconnect();
|
|
18071
|
-
case 27:
|
|
18072
|
-
return _context4.finish(23);
|
|
18073
|
-
case 28:
|
|
18074
|
-
case "end":
|
|
18075
|
-
return _context4.stop();
|
|
18076
|
-
}
|
|
18077
|
-
}, _callee4, null, [[7,, 23, 28]]);
|
|
18078
|
-
})();
|
|
18079
|
-
});
|
|
18080
18328
|
};
|
|
18081
|
-
var
|
|
18082
|
-
|
|
18083
|
-
|
|
18084
|
-
|
|
18329
|
+
var validateAssetSpecifiers = function validateAssetSpecifiers(assetCheckEnabled, currency) {
|
|
18330
|
+
if (!assetCheckEnabled && 'symbol' in currency && isSymbolSpecifier(currency.symbol)) {
|
|
18331
|
+
throw new InvalidCurrencyError('Symbol specifier is not supported when asset check is disabled. Please use normal symbol instead.');
|
|
18332
|
+
}
|
|
18333
|
+
if (!assetCheckEnabled && 'id' in currency) {
|
|
18334
|
+
throw new InvalidCurrencyError('Asset ID is not supported when asset check is disabled. Please use normal symbol instead');
|
|
18335
|
+
}
|
|
18336
|
+
};
|
|
18337
|
+
var validateAssetSupport = function validateAssetSupport(_ref, assetCheckEnabled, isBridge, asset) {
|
|
18338
|
+
var origin = _ref.origin,
|
|
18339
|
+
destination = _ref.destination,
|
|
18340
|
+
currency = _ref.currency;
|
|
18341
|
+
var isRelayDestination = destination === undefined;
|
|
18342
|
+
var isMultiLocationDestination = _typeof(destination) === 'object';
|
|
18343
|
+
var isDestAssetHub = destination === 'AssetHubPolkadot' || destination === 'AssetHubKusama';
|
|
18344
|
+
var pallet = getDefaultPallet(origin);
|
|
18345
|
+
var isBifrost = origin === 'BifrostPolkadot' || origin === 'BifrostKusama';
|
|
18346
|
+
if (!isBridge && isDestAssetHub && pallet === 'XTokens' && !isBifrost) {
|
|
18347
|
+
var nativeAssets = getNativeAssets(destination);
|
|
18348
|
+
if (origin === 'Hydration') {
|
|
18349
|
+
nativeAssets = nativeAssets.filter(function (nativeAsset) {
|
|
18350
|
+
return nativeAsset.symbol !== 'DOT';
|
|
18351
|
+
});
|
|
18352
|
+
}
|
|
18353
|
+
if ('symbol' in currency && nativeAssets.some(function (nativeAsset) {
|
|
18354
|
+
var _a;
|
|
18355
|
+
return nativeAsset.symbol.toLowerCase() === ((_a = asset === null || asset === void 0 ? void 0 : asset.symbol) === null || _a === void 0 ? void 0 : _a.toLowerCase());
|
|
18356
|
+
})) {
|
|
18357
|
+
throw new InvalidCurrencyError("".concat(JSON.stringify(asset === null || asset === void 0 ? void 0 : asset.symbol), " is not supported for transfers to ").concat(destination, "."));
|
|
18358
|
+
}
|
|
18359
|
+
}
|
|
18360
|
+
if (!isBridge && !isRelayDestination && !isMultiLocationDestination && (asset === null || asset === void 0 ? void 0 : asset.symbol) !== undefined && assetCheckEnabled && !('id' in currency) && !hasSupportForAsset(destination, asset.symbol)) {
|
|
18361
|
+
throw new InvalidCurrencyError("Destination node ".concat(destination, " does not support currency ").concat(JSON.stringify(currency), "."));
|
|
18362
|
+
}
|
|
18363
|
+
if (!isBridge && asset === null && assetCheckEnabled) {
|
|
18364
|
+
throwUnsupportedCurrency(currency, origin);
|
|
18365
|
+
}
|
|
18366
|
+
};
|
|
18367
|
+
|
|
18368
|
+
var send$1 = function send(options) {
|
|
18369
|
+
return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
18370
|
+
var _a, api, origin, currency, amount, address, destination, paraIdTo, destApiForKeepAlive, feeAsset, version, ahAddress, originNode, isBridge, assetCheckEnabled, asset, resolvedAsset;
|
|
18371
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18372
|
+
while (1) switch (_context.prev = _context.next) {
|
|
18085
18373
|
case 0:
|
|
18086
|
-
|
|
18087
|
-
|
|
18374
|
+
api = options.api, origin = options.origin, currency = options.currency, amount = options.amount, address = options.address, destination = options.destination, paraIdTo = options.paraIdTo, destApiForKeepAlive = options.destApiForKeepAlive, feeAsset = options.feeAsset, version = options.version, ahAddress = options.ahAddress;
|
|
18375
|
+
validateCurrency(currency, amount, feeAsset);
|
|
18376
|
+
validateDestination(origin, destination);
|
|
18377
|
+
validateDestinationAddress(address, destination);
|
|
18378
|
+
originNode = getNode(origin);
|
|
18379
|
+
isBridge = isBridgeTransfer(origin, destination);
|
|
18380
|
+
assetCheckEnabled = determineAssetCheckEnabled(origin, currency, isBridge);
|
|
18381
|
+
validateAssetSpecifiers(assetCheckEnabled, currency);
|
|
18382
|
+
asset = resolveAsset(currency, origin, destination, assetCheckEnabled);
|
|
18383
|
+
validateAssetSupport(options, assetCheckEnabled, isBridge, asset);
|
|
18384
|
+
_context.next = 12;
|
|
18385
|
+
return api.init(origin);
|
|
18386
|
+
case 12:
|
|
18387
|
+
_context.prev = 12;
|
|
18388
|
+
_context.next = 15;
|
|
18389
|
+
return performKeepAliveCheck(options, asset);
|
|
18390
|
+
case 15:
|
|
18391
|
+
// In case asset check is disabled, we create asset object from currency symbol
|
|
18392
|
+
resolvedAsset = asset !== null && asset !== void 0 ? asset : {
|
|
18393
|
+
symbol: 'symbol' in currency ? currency.symbol : undefined
|
|
18394
|
+
};
|
|
18395
|
+
_context.next = 18;
|
|
18396
|
+
return originNode.transfer({
|
|
18397
|
+
api: api,
|
|
18398
|
+
asset: resolvedAsset,
|
|
18399
|
+
amount: (_a = amount === null || amount === void 0 ? void 0 : amount.toString()) !== null && _a !== void 0 ? _a : '',
|
|
18400
|
+
address: address,
|
|
18401
|
+
destination: destination,
|
|
18402
|
+
paraIdTo: paraIdTo,
|
|
18403
|
+
overridedCurrencyMultiLocation: 'multilocation' in currency && isOverrideMultiLocationSpecifier(currency.multilocation) ? currency.multilocation.value : 'multiasset' in currency ? currency.multiasset : undefined,
|
|
18404
|
+
feeAsset: feeAsset,
|
|
18405
|
+
version: version,
|
|
18406
|
+
destApiForKeepAlive: destApiForKeepAlive,
|
|
18407
|
+
ahAddress: ahAddress
|
|
18408
|
+
});
|
|
18409
|
+
case 18:
|
|
18410
|
+
return _context.abrupt("return", _context.sent);
|
|
18411
|
+
case 19:
|
|
18412
|
+
_context.prev = 19;
|
|
18413
|
+
if (!isPjsClient(api)) {
|
|
18414
|
+
_context.next = 23;
|
|
18415
|
+
break;
|
|
18416
|
+
}
|
|
18417
|
+
_context.next = 23;
|
|
18418
|
+
return api.disconnect();
|
|
18419
|
+
case 23:
|
|
18420
|
+
return _context.finish(19);
|
|
18421
|
+
case 24:
|
|
18088
18422
|
case "end":
|
|
18089
|
-
return
|
|
18423
|
+
return _context.stop();
|
|
18090
18424
|
}
|
|
18091
|
-
},
|
|
18425
|
+
}, _callee, null, [[12,, 19, 24]]);
|
|
18092
18426
|
}));
|
|
18093
18427
|
};
|
|
18094
|
-
|
|
18095
|
-
|
|
18096
|
-
|
|
18097
|
-
|
|
18428
|
+
|
|
18429
|
+
var transferRelayToPara$1 = function transferRelayToPara(options) {
|
|
18430
|
+
return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
18431
|
+
var api, destination, amount, address, paraIdTo, destApiForKeepAlive, version, isMultiLocationDestination, isAddressMultiLocation, amountStr, serializedApiCall;
|
|
18432
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18433
|
+
while (1) switch (_context.prev = _context.next) {
|
|
18098
18434
|
case 0:
|
|
18099
|
-
|
|
18100
|
-
|
|
18435
|
+
api = options.api, destination = options.destination, amount = options.amount, address = options.address, paraIdTo = options.paraIdTo, destApiForKeepAlive = options.destApiForKeepAlive, version = options.version;
|
|
18436
|
+
isMultiLocationDestination = _typeof(destination) === 'object';
|
|
18437
|
+
isAddressMultiLocation = _typeof(address) === 'object';
|
|
18438
|
+
if (!(api.getApiOrUrl() === undefined && isMultiLocationDestination)) {
|
|
18439
|
+
_context.next = 5;
|
|
18440
|
+
break;
|
|
18441
|
+
}
|
|
18442
|
+
throw new Error('API is required when using MultiLocation as destination.');
|
|
18443
|
+
case 5:
|
|
18444
|
+
_context.next = 7;
|
|
18445
|
+
return api.init(determineRelayChain(destination));
|
|
18446
|
+
case 7:
|
|
18447
|
+
_context.prev = 7;
|
|
18448
|
+
amountStr = amount.toString();
|
|
18449
|
+
if (!isMultiLocationDestination) {
|
|
18450
|
+
_context.next = 13;
|
|
18451
|
+
break;
|
|
18452
|
+
}
|
|
18453
|
+
console.warn('Keep alive check is not supported when using MultiLocation as destination.');
|
|
18454
|
+
_context.next = 19;
|
|
18455
|
+
break;
|
|
18456
|
+
case 13:
|
|
18457
|
+
if (!isAddressMultiLocation) {
|
|
18458
|
+
_context.next = 17;
|
|
18459
|
+
break;
|
|
18460
|
+
}
|
|
18461
|
+
console.warn('Keep alive check is not supported when using MultiLocation as address.');
|
|
18462
|
+
_context.next = 19;
|
|
18463
|
+
break;
|
|
18464
|
+
case 17:
|
|
18465
|
+
_context.next = 19;
|
|
18466
|
+
return checkKeepAlive({
|
|
18467
|
+
originApi: api,
|
|
18468
|
+
address: address,
|
|
18469
|
+
amount: amountStr,
|
|
18470
|
+
destApi: destApiForKeepAlive,
|
|
18471
|
+
asset: {
|
|
18472
|
+
symbol: getRelayChainSymbol(destination)
|
|
18473
|
+
},
|
|
18474
|
+
destNode: destination
|
|
18475
|
+
});
|
|
18476
|
+
case 19:
|
|
18477
|
+
serializedApiCall = getNode(isMultiLocationDestination ? resolveTNodeFromMultiLocation(destination) : destination).transferRelayToPara({
|
|
18478
|
+
api: api,
|
|
18479
|
+
destination: destination,
|
|
18480
|
+
address: address,
|
|
18481
|
+
amount: amountStr,
|
|
18482
|
+
paraIdTo: paraIdTo,
|
|
18483
|
+
destApiForKeepAlive: destApiForKeepAlive,
|
|
18484
|
+
version: version
|
|
18485
|
+
});
|
|
18486
|
+
return _context.abrupt("return", api.callTxMethod(serializedApiCall));
|
|
18487
|
+
case 21:
|
|
18488
|
+
_context.prev = 21;
|
|
18489
|
+
if (!isPjsClient(api)) {
|
|
18490
|
+
_context.next = 25;
|
|
18491
|
+
break;
|
|
18492
|
+
}
|
|
18493
|
+
_context.next = 25;
|
|
18494
|
+
return api.disconnect();
|
|
18495
|
+
case 25:
|
|
18496
|
+
return _context.finish(21);
|
|
18497
|
+
case 26:
|
|
18101
18498
|
case "end":
|
|
18102
|
-
return
|
|
18499
|
+
return _context.stop();
|
|
18103
18500
|
}
|
|
18104
|
-
},
|
|
18501
|
+
}, _callee, null, [[7,, 21, 26]]);
|
|
18105
18502
|
}));
|
|
18106
18503
|
};
|
|
18107
18504
|
|
|
@@ -18124,6 +18521,11 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
18124
18521
|
value: function setApi(api) {
|
|
18125
18522
|
this._api = api;
|
|
18126
18523
|
}
|
|
18524
|
+
}, {
|
|
18525
|
+
key: "getApiOrUrl",
|
|
18526
|
+
value: function getApiOrUrl() {
|
|
18527
|
+
return this._api;
|
|
18528
|
+
}
|
|
18127
18529
|
}, {
|
|
18128
18530
|
key: "getApi",
|
|
18129
18531
|
value: function getApi() {
|
|
@@ -18570,16 +18972,6 @@ var transferRelayToPara = function transferRelayToPara(options) {
|
|
|
18570
18972
|
destApiForKeepAlive: destPjsApi
|
|
18571
18973
|
}));
|
|
18572
18974
|
};
|
|
18573
|
-
var transferRelayToParaSerializedApiCall = function transferRelayToParaSerializedApiCall(options) {
|
|
18574
|
-
var pjsApi = new PolkadotJsApi();
|
|
18575
|
-
pjsApi.setApi(options.api);
|
|
18576
|
-
var destPjsApi = new PolkadotJsApi();
|
|
18577
|
-
destPjsApi.setApi(options.destApiForKeepAlive);
|
|
18578
|
-
return transferRelayToParaSerializedApiCall$1(Object.assign(Object.assign({}, options), {
|
|
18579
|
-
api: pjsApi,
|
|
18580
|
-
destApiForKeepAlive: destPjsApi
|
|
18581
|
-
}));
|
|
18582
|
-
};
|
|
18583
18975
|
/**
|
|
18584
18976
|
* Transfers assets from parachain to another parachain or relay chain.
|
|
18585
18977
|
* @param options - The transfer options.
|
|
@@ -18595,24 +18987,12 @@ var send = function send(options) {
|
|
|
18595
18987
|
destApiForKeepAlive: destPjsApi
|
|
18596
18988
|
}));
|
|
18597
18989
|
};
|
|
18598
|
-
var sendSerializedApiCall = function sendSerializedApiCall(options) {
|
|
18599
|
-
var pjsApi = new PolkadotJsApi();
|
|
18600
|
-
pjsApi.setApi(options.api);
|
|
18601
|
-
var destPjsApi = new PolkadotJsApi();
|
|
18602
|
-
destPjsApi.setApi(options.destApiForKeepAlive);
|
|
18603
|
-
return sendSerializedApiCall$1(Object.assign(Object.assign({}, options), {
|
|
18604
|
-
api: pjsApi,
|
|
18605
|
-
destApiForKeepAlive: destPjsApi
|
|
18606
|
-
}));
|
|
18607
|
-
};
|
|
18608
18990
|
|
|
18609
18991
|
var transfer = /*#__PURE__*/Object.freeze({
|
|
18610
18992
|
__proto__: null,
|
|
18611
18993
|
buildEthTransferOptions: buildEthTransferOptions,
|
|
18612
18994
|
send: send,
|
|
18613
|
-
|
|
18614
|
-
transferRelayToPara: transferRelayToPara,
|
|
18615
|
-
transferRelayToParaSerializedApiCall: transferRelayToParaSerializedApiCall
|
|
18995
|
+
transferRelayToPara: transferRelayToPara
|
|
18616
18996
|
});
|
|
18617
18997
|
|
|
18618
18998
|
var createApiInstanceForNode = function createApiInstanceForNode(node) {
|
|
@@ -18697,7 +19077,8 @@ var assets = /*#__PURE__*/Object.freeze({
|
|
|
18697
19077
|
getSupportedAssets: getSupportedAssets,
|
|
18698
19078
|
getTNode: getTNode,
|
|
18699
19079
|
getTransferInfo: getTransferInfo,
|
|
18700
|
-
hasSupportForAsset: hasSupportForAsset
|
|
19080
|
+
hasSupportForAsset: hasSupportForAsset,
|
|
19081
|
+
isNodeEvm: isNodeEvm
|
|
18701
19082
|
});
|
|
18702
19083
|
|
|
18703
19084
|
/**
|
|
@@ -18713,4 +19094,4 @@ var Builder = function Builder(api) {
|
|
|
18713
19094
|
};
|
|
18714
19095
|
var GeneralBuilder = GeneralBuilder$1;
|
|
18715
19096
|
|
|
18716
|
-
export { BatchMode, Builder, DuplicateAssetError, DuplicateAssetIdError, EvmBuilder, Foreign, ForeignAbstract, GeneralBuilder, IncompatibleNodesError, InvalidCurrencyError, NODES_WITH_RELAY_CHAINS, NODES_WITH_RELAY_CHAINS_DOT_KSM, NODE_NAMES, NODE_NAMES_DOT_KSM, Native, NoXCMSupportImplementedError, NodeNotSupportedError, Override, Parents, SUPPORTED_PALLETS, ScenarioNotSupportedError, Version, assets, buildEthTransferOptions, claimAssets, createApiInstanceForNode, createPolkadotJsApiCall, determineRelayChain, getAllAssetsSymbols, getAssetBalance, getAssetDecimals, getAssetId, getAssets, getAssetsObject, getBalanceForeign, getBalanceNative, getDefaultPallet, getExistentialDeposit$1 as getExistentialDeposit, getNativeAssetSymbol, getNativeAssets, getNode, getNodeConfig, getNodeProvider, getNodeProviders, getOriginFeeDetails, getOtherAssets, getParaId, getRelayChainSymbol, getSupportedAssets, getSupportedPallets, getTNode, getTransferInfo, hasSupportForAsset, isForeignAsset, isRelayChain, send,
|
|
19097
|
+
export { BatchMode, Builder, DuplicateAssetError, DuplicateAssetIdError, EvmBuilder, Foreign, ForeignAbstract, GeneralBuilder, IncompatibleNodesError, InvalidAddressError, InvalidCurrencyError, NODES_WITH_RELAY_CHAINS, NODES_WITH_RELAY_CHAINS_DOT_KSM, NODE_NAMES, NODE_NAMES_DOT_KSM, Native, NoXCMSupportImplementedError, NodeNotSupportedError, Override, Parents, SUPPORTED_PALLETS, ScenarioNotSupportedError, Version, assets, buildEthTransferOptions, claimAssets, createApiInstanceForNode, createPolkadotJsApiCall, determineRelayChain, getAllAssetsSymbols, getAssetBalance, getAssetDecimals, getAssetId, getAssets, getAssetsObject, getBalanceForeign, getBalanceNative, getDefaultPallet, getExistentialDeposit$1 as getExistentialDeposit, getNativeAssetSymbol, getNativeAssets, getNode, getNodeConfig, getNodeProvider, getNodeProviders, getOriginFeeDetails, getOtherAssets, getParaId, getRelayChainSymbol, getSupportedAssets, getSupportedPallets, getTNode, getTransferInfo, hasSupportForAsset, isForeignAsset, isNodeEvm, isRelayChain, send, transferRelayToPara, transfer as xcmPallet };
|