@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/papi/index.cjs
CHANGED
|
@@ -586,163 +586,10 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
586
586
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
587
587
|
};
|
|
588
588
|
|
|
589
|
-
/**
|
|
590
|
-
* Used to inform user, that currency they wish to use is not registered on either origin or destination Parachain
|
|
591
|
-
*/
|
|
592
|
-
var InvalidCurrencyError = /*#__PURE__*/function (_Error) {
|
|
593
|
-
/**
|
|
594
|
-
* Constructs a new InvalidCurrencyError.
|
|
595
|
-
*
|
|
596
|
-
* @param message - The error message.
|
|
597
|
-
*/
|
|
598
|
-
function InvalidCurrencyError(message) {
|
|
599
|
-
var _this;
|
|
600
|
-
_classCallCheck(this, InvalidCurrencyError);
|
|
601
|
-
_this = _callSuper(this, InvalidCurrencyError, [message]);
|
|
602
|
-
_this.name = 'InvalidCurrencyError';
|
|
603
|
-
return _this;
|
|
604
|
-
}
|
|
605
|
-
_inherits(InvalidCurrencyError, _Error);
|
|
606
|
-
return _createClass(InvalidCurrencyError);
|
|
607
|
-
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
608
|
-
|
|
609
|
-
/**
|
|
610
|
-
* Used to inform user, that Parachain they wish to use is not supported yet
|
|
611
|
-
*/
|
|
612
|
-
var NodeNotSupportedError = /*#__PURE__*/function (_Error) {
|
|
613
|
-
/**
|
|
614
|
-
* Constructs a new NodeNotSupportedError.
|
|
615
|
-
*
|
|
616
|
-
* @param message - Optional custom error message.
|
|
617
|
-
*/
|
|
618
|
-
function NodeNotSupportedError(message) {
|
|
619
|
-
var _this;
|
|
620
|
-
_classCallCheck(this, NodeNotSupportedError);
|
|
621
|
-
_this = _callSuper(this, NodeNotSupportedError, [message !== null && message !== void 0 ? message : 'These nodes do not support XCM transfers from Relay / to Relay chain.']);
|
|
622
|
-
_this.name = 'NodeNotSupported';
|
|
623
|
-
return _this;
|
|
624
|
-
}
|
|
625
|
-
_inherits(NodeNotSupportedError, _Error);
|
|
626
|
-
return _createClass(NodeNotSupportedError);
|
|
627
|
-
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
628
|
-
|
|
629
|
-
/**
|
|
630
|
-
* Used to inform user, that Parachain they wish to use has not yet implemented full XCM Support
|
|
631
|
-
*/
|
|
632
|
-
var NoXCMSupportImplementedError = /*#__PURE__*/function (_Error) {
|
|
633
|
-
/**
|
|
634
|
-
* Constructs a new NoXCMSupportImplementedError.
|
|
635
|
-
*
|
|
636
|
-
* @param node - The node for which XCM support is not implemented.
|
|
637
|
-
*/
|
|
638
|
-
function NoXCMSupportImplementedError(node) {
|
|
639
|
-
var _this;
|
|
640
|
-
_classCallCheck(this, NoXCMSupportImplementedError);
|
|
641
|
-
_this = _callSuper(this, NoXCMSupportImplementedError, ["No XCM support implemented for ".concat(node, " node yet.")]);
|
|
642
|
-
_this.name = 'NoXCMSupportImplemented';
|
|
643
|
-
return _this;
|
|
644
|
-
}
|
|
645
|
-
_inherits(NoXCMSupportImplementedError, _Error);
|
|
646
|
-
return _createClass(NoXCMSupportImplementedError);
|
|
647
|
-
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
648
|
-
|
|
649
|
-
/**
|
|
650
|
-
* Used to inform user, that Parachain they wish to use does not support scenario they wish to use yet
|
|
651
|
-
*/
|
|
652
|
-
var ScenarioNotSupportedError = /*#__PURE__*/function (_Error) {
|
|
653
|
-
/**
|
|
654
|
-
* Constructs a new ScenarioNotSupportedError.
|
|
655
|
-
*
|
|
656
|
-
* @param node - The node where the scenario is not supported.
|
|
657
|
-
* @param scenario - The scenario that is not supported.
|
|
658
|
-
* @param message - Optional custom error message.
|
|
659
|
-
*/
|
|
660
|
-
function ScenarioNotSupportedError(node, scenario, message) {
|
|
661
|
-
var _this;
|
|
662
|
-
_classCallCheck(this, ScenarioNotSupportedError);
|
|
663
|
-
_this = _callSuper(this, ScenarioNotSupportedError, [message !== null && message !== void 0 ? message : "Scenario ".concat(scenario, " not supported for node ").concat(node)]);
|
|
664
|
-
_this.name = 'ScenarioNotSupported';
|
|
665
|
-
return _this;
|
|
666
|
-
}
|
|
667
|
-
_inherits(ScenarioNotSupportedError, _Error);
|
|
668
|
-
return _createClass(ScenarioNotSupportedError);
|
|
669
|
-
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
670
|
-
|
|
671
|
-
/**
|
|
672
|
-
* Error thrown when nodes from different relay chains are incompatible.
|
|
673
|
-
*/
|
|
674
|
-
var IncompatibleNodesError = /*#__PURE__*/function (_Error) {
|
|
675
|
-
/**
|
|
676
|
-
* Constructs a new IncompatibleNodesError.
|
|
677
|
-
*
|
|
678
|
-
* @param message - Optional custom error message.
|
|
679
|
-
*/
|
|
680
|
-
function IncompatibleNodesError(message) {
|
|
681
|
-
var _this;
|
|
682
|
-
_classCallCheck(this, IncompatibleNodesError);
|
|
683
|
-
_this = _callSuper(this, IncompatibleNodesError, [message !== null && message !== void 0 ? message : 'Transactions between nodes on different relaychains are not yet possible.']);
|
|
684
|
-
_this.name = 'IncompatibleNodes';
|
|
685
|
-
return _this;
|
|
686
|
-
}
|
|
687
|
-
_inherits(IncompatibleNodesError, _Error);
|
|
688
|
-
return _createClass(IncompatibleNodesError);
|
|
689
|
-
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
690
|
-
|
|
691
|
-
/**
|
|
692
|
-
* Error thrown when multiple assets with the same symbol are found.
|
|
693
|
-
*/
|
|
694
|
-
var DuplicateAssetError = /*#__PURE__*/function (_Error) {
|
|
695
|
-
/**
|
|
696
|
-
* Constructs a new DuplicateAssetError.
|
|
697
|
-
*
|
|
698
|
-
* @param symbol - The symbol of the asset causing the duplication error.
|
|
699
|
-
*/
|
|
700
|
-
function DuplicateAssetError(msg) {
|
|
701
|
-
var _this;
|
|
702
|
-
_classCallCheck(this, DuplicateAssetError);
|
|
703
|
-
_this = _callSuper(this, DuplicateAssetError, [msg]);
|
|
704
|
-
_this.name = 'DuplicateAsset';
|
|
705
|
-
return _this;
|
|
706
|
-
}
|
|
707
|
-
_inherits(DuplicateAssetError, _Error);
|
|
708
|
-
return _createClass(DuplicateAssetError);
|
|
709
|
-
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
710
|
-
|
|
711
|
-
/**
|
|
712
|
-
* Error thrown when multiple assets with the same symbol are found.
|
|
713
|
-
*/
|
|
714
|
-
var DuplicateAssetIdError = /*#__PURE__*/function (_Error) {
|
|
715
|
-
/**
|
|
716
|
-
* Constructs a new DuplicateAssetError.
|
|
717
|
-
*
|
|
718
|
-
* @param symbol - The symbol of the asset causing the duplication error.
|
|
719
|
-
*/
|
|
720
|
-
function DuplicateAssetIdError(id) {
|
|
721
|
-
var _this;
|
|
722
|
-
_classCallCheck(this, DuplicateAssetIdError);
|
|
723
|
-
_this = _callSuper(this, DuplicateAssetIdError, ["Multiple assets found with the same ID: ".concat(id, ". Please specify asset directly by symbol using .currency({symbol: <ASSET_SYMBOL>})")]);
|
|
724
|
-
_this.name = 'DuplicateAssetId';
|
|
725
|
-
return _this;
|
|
726
|
-
}
|
|
727
|
-
_inherits(DuplicateAssetIdError, _Error);
|
|
728
|
-
return _createClass(DuplicateAssetIdError);
|
|
729
|
-
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
730
|
-
|
|
731
|
-
var KeepAliveError = /*#__PURE__*/function (_Error) {
|
|
732
|
-
function KeepAliveError(message) {
|
|
733
|
-
var _this;
|
|
734
|
-
_classCallCheck(this, KeepAliveError);
|
|
735
|
-
_this = _callSuper(this, KeepAliveError, [message]);
|
|
736
|
-
_this.name = 'KeepAliveError';
|
|
737
|
-
return _this;
|
|
738
|
-
}
|
|
739
|
-
_inherits(KeepAliveError, _Error);
|
|
740
|
-
return _createClass(KeepAliveError);
|
|
741
|
-
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
742
|
-
|
|
743
589
|
var Polkadot$2 = {
|
|
744
590
|
relayChainAssetSymbol: "DOT",
|
|
745
591
|
nativeAssetSymbol: "DOT",
|
|
592
|
+
isEVM: false,
|
|
746
593
|
nativeAssets: [
|
|
747
594
|
{
|
|
748
595
|
symbol: "DOT",
|
|
@@ -755,6 +602,7 @@ var Polkadot$2 = {
|
|
|
755
602
|
var Kusama$2 = {
|
|
756
603
|
relayChainAssetSymbol: "KSM",
|
|
757
604
|
nativeAssetSymbol: "KSM",
|
|
605
|
+
isEVM: false,
|
|
758
606
|
nativeAssets: [
|
|
759
607
|
{
|
|
760
608
|
symbol: "KSM",
|
|
@@ -767,6 +615,7 @@ var Kusama$2 = {
|
|
|
767
615
|
var Polimec$4 = {
|
|
768
616
|
relayChainAssetSymbol: "DOT",
|
|
769
617
|
nativeAssetSymbol: "PLMC",
|
|
618
|
+
isEVM: false,
|
|
770
619
|
nativeAssets: [
|
|
771
620
|
{
|
|
772
621
|
symbol: "PLMC",
|
|
@@ -826,6 +675,7 @@ var Polimec$4 = {
|
|
|
826
675
|
var Acala$4 = {
|
|
827
676
|
relayChainAssetSymbol: "DOT",
|
|
828
677
|
nativeAssetSymbol: "ACA",
|
|
678
|
+
isEVM: false,
|
|
829
679
|
nativeAssets: [
|
|
830
680
|
{
|
|
831
681
|
symbol: "ACA",
|
|
@@ -1006,7 +856,10 @@ var Acala$4 = {
|
|
|
1006
856
|
Parachain: 2011
|
|
1007
857
|
},
|
|
1008
858
|
{
|
|
1009
|
-
GeneralKey:
|
|
859
|
+
GeneralKey: {
|
|
860
|
+
length: 3,
|
|
861
|
+
data: "0x6571640000000000000000000000000000000000000000000000000000000000"
|
|
862
|
+
}
|
|
1010
863
|
}
|
|
1011
864
|
]
|
|
1012
865
|
}
|
|
@@ -1037,7 +890,10 @@ var Acala$4 = {
|
|
|
1037
890
|
Parachain: 2012
|
|
1038
891
|
},
|
|
1039
892
|
{
|
|
1040
|
-
GeneralKey:
|
|
893
|
+
GeneralKey: {
|
|
894
|
+
length: 4,
|
|
895
|
+
data: "0x5041524100000000000000000000000000000000000000000000000000000000"
|
|
896
|
+
}
|
|
1041
897
|
}
|
|
1042
898
|
]
|
|
1043
899
|
}
|
|
@@ -1055,7 +911,10 @@ var Acala$4 = {
|
|
|
1055
911
|
Parachain: 2031
|
|
1056
912
|
},
|
|
1057
913
|
{
|
|
1058
|
-
GeneralKey:
|
|
914
|
+
GeneralKey: {
|
|
915
|
+
length: 2,
|
|
916
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
917
|
+
}
|
|
1059
918
|
}
|
|
1060
919
|
]
|
|
1061
920
|
}
|
|
@@ -1073,7 +932,10 @@ var Acala$4 = {
|
|
|
1073
932
|
Parachain: 2032
|
|
1074
933
|
},
|
|
1075
934
|
{
|
|
1076
|
-
GeneralKey:
|
|
935
|
+
GeneralKey: {
|
|
936
|
+
length: 2,
|
|
937
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
938
|
+
}
|
|
1077
939
|
}
|
|
1078
940
|
]
|
|
1079
941
|
}
|
|
@@ -1091,7 +953,10 @@ var Acala$4 = {
|
|
|
1091
953
|
Parachain: 2032
|
|
1092
954
|
},
|
|
1093
955
|
{
|
|
1094
|
-
GeneralKey:
|
|
956
|
+
GeneralKey: {
|
|
957
|
+
length: 2,
|
|
958
|
+
data: "0x0002000000000000000000000000000000000000000000000000000000000000"
|
|
959
|
+
}
|
|
1095
960
|
}
|
|
1096
961
|
]
|
|
1097
962
|
}
|
|
@@ -1159,6 +1024,7 @@ var Acala$4 = {
|
|
|
1159
1024
|
var BridgeHubPolkadot$4 = {
|
|
1160
1025
|
relayChainAssetSymbol: "DOT",
|
|
1161
1026
|
nativeAssetSymbol: "DOT",
|
|
1027
|
+
isEVM: false,
|
|
1162
1028
|
nativeAssets: [
|
|
1163
1029
|
{
|
|
1164
1030
|
symbol: "DOT",
|
|
@@ -1171,6 +1037,7 @@ var BridgeHubPolkadot$4 = {
|
|
|
1171
1037
|
var BridgeHubKusama$4 = {
|
|
1172
1038
|
relayChainAssetSymbol: "KSM",
|
|
1173
1039
|
nativeAssetSymbol: "KSM",
|
|
1040
|
+
isEVM: false,
|
|
1174
1041
|
nativeAssets: [
|
|
1175
1042
|
{
|
|
1176
1043
|
symbol: "KSM",
|
|
@@ -1183,6 +1050,7 @@ var BridgeHubKusama$4 = {
|
|
|
1183
1050
|
var Astar$4 = {
|
|
1184
1051
|
relayChainAssetSymbol: "DOT",
|
|
1185
1052
|
nativeAssetSymbol: "ASTR",
|
|
1053
|
+
isEVM: false,
|
|
1186
1054
|
nativeAssets: [
|
|
1187
1055
|
{
|
|
1188
1056
|
symbol: "ASTR",
|
|
@@ -1276,7 +1144,10 @@ var Astar$4 = {
|
|
|
1276
1144
|
Parachain: 2000
|
|
1277
1145
|
},
|
|
1278
1146
|
{
|
|
1279
|
-
GeneralKey:
|
|
1147
|
+
GeneralKey: {
|
|
1148
|
+
length: 2,
|
|
1149
|
+
data: "0x0003000000000000000000000000000000000000000000000000000000000000"
|
|
1150
|
+
}
|
|
1280
1151
|
}
|
|
1281
1152
|
]
|
|
1282
1153
|
}
|
|
@@ -1294,7 +1165,10 @@ var Astar$4 = {
|
|
|
1294
1165
|
Parachain: 2000
|
|
1295
1166
|
},
|
|
1296
1167
|
{
|
|
1297
|
-
GeneralKey:
|
|
1168
|
+
GeneralKey: {
|
|
1169
|
+
length: 2,
|
|
1170
|
+
data: "0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
1171
|
+
}
|
|
1298
1172
|
}
|
|
1299
1173
|
]
|
|
1300
1174
|
}
|
|
@@ -1312,7 +1186,10 @@ var Astar$4 = {
|
|
|
1312
1186
|
Parachain: 2000
|
|
1313
1187
|
},
|
|
1314
1188
|
{
|
|
1315
|
-
GeneralKey:
|
|
1189
|
+
GeneralKey: {
|
|
1190
|
+
length: 2,
|
|
1191
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
1192
|
+
}
|
|
1316
1193
|
}
|
|
1317
1194
|
]
|
|
1318
1195
|
}
|
|
@@ -1361,7 +1238,10 @@ var Astar$4 = {
|
|
|
1361
1238
|
Parachain: 2011
|
|
1362
1239
|
},
|
|
1363
1240
|
{
|
|
1364
|
-
GeneralKey:
|
|
1241
|
+
GeneralKey: {
|
|
1242
|
+
length: 3,
|
|
1243
|
+
data: "0x6571640000000000000000000000000000000000000000000000000000000000"
|
|
1244
|
+
}
|
|
1365
1245
|
}
|
|
1366
1246
|
]
|
|
1367
1247
|
}
|
|
@@ -1392,7 +1272,10 @@ var Astar$4 = {
|
|
|
1392
1272
|
Parachain: 2030
|
|
1393
1273
|
},
|
|
1394
1274
|
{
|
|
1395
|
-
GeneralKey:
|
|
1275
|
+
GeneralKey: {
|
|
1276
|
+
length: 2,
|
|
1277
|
+
data: "0x0804000000000000000000000000000000000000000000000000000000000000"
|
|
1278
|
+
}
|
|
1396
1279
|
}
|
|
1397
1280
|
]
|
|
1398
1281
|
}
|
|
@@ -1410,7 +1293,10 @@ var Astar$4 = {
|
|
|
1410
1293
|
Parachain: 2030
|
|
1411
1294
|
},
|
|
1412
1295
|
{
|
|
1413
|
-
GeneralKey:
|
|
1296
|
+
GeneralKey: {
|
|
1297
|
+
length: 2,
|
|
1298
|
+
data: "0x0403000000000000000000000000000000000000000000000000000000000000"
|
|
1299
|
+
}
|
|
1414
1300
|
}
|
|
1415
1301
|
]
|
|
1416
1302
|
}
|
|
@@ -1428,7 +1314,10 @@ var Astar$4 = {
|
|
|
1428
1314
|
Parachain: 2030
|
|
1429
1315
|
},
|
|
1430
1316
|
{
|
|
1431
|
-
GeneralKey:
|
|
1317
|
+
GeneralKey: {
|
|
1318
|
+
length: 2,
|
|
1319
|
+
data: "0x0908000000000000000000000000000000000000000000000000000000000000"
|
|
1320
|
+
}
|
|
1432
1321
|
}
|
|
1433
1322
|
]
|
|
1434
1323
|
}
|
|
@@ -1446,7 +1335,10 @@ var Astar$4 = {
|
|
|
1446
1335
|
Parachain: 2030
|
|
1447
1336
|
},
|
|
1448
1337
|
{
|
|
1449
|
-
GeneralKey:
|
|
1338
|
+
GeneralKey: {
|
|
1339
|
+
length: 2,
|
|
1340
|
+
data: "0x0900000000000000000000000000000000000000000000000000000000000000"
|
|
1341
|
+
}
|
|
1450
1342
|
}
|
|
1451
1343
|
]
|
|
1452
1344
|
}
|
|
@@ -1464,7 +1356,10 @@ var Astar$4 = {
|
|
|
1464
1356
|
Parachain: 2030
|
|
1465
1357
|
},
|
|
1466
1358
|
{
|
|
1467
|
-
GeneralKey:
|
|
1359
|
+
GeneralKey: {
|
|
1360
|
+
length: 2,
|
|
1361
|
+
data: "0x0904000000000000000000000000000000000000000000000000000000000000"
|
|
1362
|
+
}
|
|
1468
1363
|
}
|
|
1469
1364
|
]
|
|
1470
1365
|
}
|
|
@@ -1482,7 +1377,10 @@ var Astar$4 = {
|
|
|
1482
1377
|
Parachain: 2030
|
|
1483
1378
|
},
|
|
1484
1379
|
{
|
|
1485
|
-
GeneralKey:
|
|
1380
|
+
GeneralKey: {
|
|
1381
|
+
length: 2,
|
|
1382
|
+
data: "0x0903000000000000000000000000000000000000000000000000000000000000"
|
|
1383
|
+
}
|
|
1486
1384
|
}
|
|
1487
1385
|
]
|
|
1488
1386
|
}
|
|
@@ -1500,7 +1398,10 @@ var Astar$4 = {
|
|
|
1500
1398
|
Parachain: 2030
|
|
1501
1399
|
},
|
|
1502
1400
|
{
|
|
1503
|
-
GeneralKey:
|
|
1401
|
+
GeneralKey: {
|
|
1402
|
+
length: 2,
|
|
1403
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
1404
|
+
}
|
|
1504
1405
|
}
|
|
1505
1406
|
]
|
|
1506
1407
|
}
|
|
@@ -1518,7 +1419,10 @@ var Astar$4 = {
|
|
|
1518
1419
|
Parachain: 2030
|
|
1519
1420
|
},
|
|
1520
1421
|
{
|
|
1521
|
-
GeneralKey:
|
|
1422
|
+
GeneralKey: {
|
|
1423
|
+
length: 2,
|
|
1424
|
+
data: "0x0901000000000000000000000000000000000000000000000000000000000000"
|
|
1425
|
+
}
|
|
1522
1426
|
}
|
|
1523
1427
|
]
|
|
1524
1428
|
}
|
|
@@ -1536,7 +1440,10 @@ var Astar$4 = {
|
|
|
1536
1440
|
Parachain: 2032
|
|
1537
1441
|
},
|
|
1538
1442
|
{
|
|
1539
|
-
GeneralKey:
|
|
1443
|
+
GeneralKey: {
|
|
1444
|
+
length: 2,
|
|
1445
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
1446
|
+
}
|
|
1540
1447
|
}
|
|
1541
1448
|
]
|
|
1542
1449
|
}
|
|
@@ -1554,7 +1461,10 @@ var Astar$4 = {
|
|
|
1554
1461
|
Parachain: 2032
|
|
1555
1462
|
},
|
|
1556
1463
|
{
|
|
1557
|
-
GeneralKey:
|
|
1464
|
+
GeneralKey: {
|
|
1465
|
+
length: 2,
|
|
1466
|
+
data: "0x0002000000000000000000000000000000000000000000000000000000000000"
|
|
1467
|
+
}
|
|
1558
1468
|
}
|
|
1559
1469
|
]
|
|
1560
1470
|
}
|
|
@@ -1640,10 +1550,16 @@ var Astar$4 = {
|
|
|
1640
1550
|
GeneralIndex: 2
|
|
1641
1551
|
},
|
|
1642
1552
|
{
|
|
1643
|
-
GeneralKey:
|
|
1553
|
+
GeneralKey: {
|
|
1554
|
+
length: 4,
|
|
1555
|
+
data: "0x4555524300000000000000000000000000000000000000000000000000000000"
|
|
1556
|
+
}
|
|
1644
1557
|
},
|
|
1645
1558
|
{
|
|
1646
|
-
GeneralKey:
|
|
1559
|
+
GeneralKey: {
|
|
1560
|
+
length: 32,
|
|
1561
|
+
data: "0x2112ee863867e4e219fe254c0918b00bc9ea400775bfc3ab4430971ce505877c"
|
|
1562
|
+
}
|
|
1647
1563
|
}
|
|
1648
1564
|
]
|
|
1649
1565
|
}
|
|
@@ -1693,6 +1609,7 @@ var Astar$4 = {
|
|
|
1693
1609
|
var BifrostPolkadot$4 = {
|
|
1694
1610
|
relayChainAssetSymbol: "DOT",
|
|
1695
1611
|
nativeAssetSymbol: "BNC",
|
|
1612
|
+
isEVM: false,
|
|
1696
1613
|
nativeAssets: [
|
|
1697
1614
|
{
|
|
1698
1615
|
symbol: "BNC",
|
|
@@ -1712,7 +1629,10 @@ var BifrostPolkadot$4 = {
|
|
|
1712
1629
|
Parachain: 2032
|
|
1713
1630
|
},
|
|
1714
1631
|
{
|
|
1715
|
-
GeneralKey:
|
|
1632
|
+
GeneralKey: {
|
|
1633
|
+
length: 2,
|
|
1634
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
1635
|
+
}
|
|
1716
1636
|
}
|
|
1717
1637
|
]
|
|
1718
1638
|
}
|
|
@@ -2046,7 +1966,10 @@ var BifrostPolkadot$4 = {
|
|
|
2046
1966
|
Parachain: 2030
|
|
2047
1967
|
},
|
|
2048
1968
|
{
|
|
2049
|
-
GeneralKey:
|
|
1969
|
+
GeneralKey: {
|
|
1970
|
+
length: 2,
|
|
1971
|
+
data: "0x0403000000000000000000000000000000000000000000000000000000000000"
|
|
1972
|
+
}
|
|
2050
1973
|
}
|
|
2051
1974
|
]
|
|
2052
1975
|
}
|
|
@@ -2064,7 +1987,10 @@ var BifrostPolkadot$4 = {
|
|
|
2064
1987
|
Parachain: 2032
|
|
2065
1988
|
},
|
|
2066
1989
|
{
|
|
2067
|
-
GeneralKey:
|
|
1990
|
+
GeneralKey: {
|
|
1991
|
+
length: 2,
|
|
1992
|
+
data: "0x0002000000000000000000000000000000000000000000000000000000000000"
|
|
1993
|
+
}
|
|
2068
1994
|
}
|
|
2069
1995
|
]
|
|
2070
1996
|
}
|
|
@@ -2088,6 +2014,7 @@ var BifrostPolkadot$4 = {
|
|
|
2088
2014
|
var Bitgreen$4 = {
|
|
2089
2015
|
relayChainAssetSymbol: "DOT",
|
|
2090
2016
|
nativeAssetSymbol: "BBB",
|
|
2017
|
+
isEVM: false,
|
|
2091
2018
|
nativeAssets: [
|
|
2092
2019
|
{
|
|
2093
2020
|
symbol: "BBB",
|
|
@@ -2100,6 +2027,7 @@ var Bitgreen$4 = {
|
|
|
2100
2027
|
var Centrifuge$4 = {
|
|
2101
2028
|
relayChainAssetSymbol: "DOT",
|
|
2102
2029
|
nativeAssetSymbol: "CFG",
|
|
2030
|
+
isEVM: false,
|
|
2103
2031
|
nativeAssets: [
|
|
2104
2032
|
{
|
|
2105
2033
|
symbol: "CFG",
|
|
@@ -2172,7 +2100,10 @@ var Centrifuge$4 = {
|
|
|
2172
2100
|
Parachain: 2000
|
|
2173
2101
|
},
|
|
2174
2102
|
{
|
|
2175
|
-
GeneralKey:
|
|
2103
|
+
GeneralKey: {
|
|
2104
|
+
length: 2,
|
|
2105
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
2106
|
+
}
|
|
2176
2107
|
}
|
|
2177
2108
|
]
|
|
2178
2109
|
}
|
|
@@ -2301,7 +2232,10 @@ var Centrifuge$4 = {
|
|
|
2301
2232
|
Parachain: 2031
|
|
2302
2233
|
},
|
|
2303
2234
|
{
|
|
2304
|
-
GeneralKey:
|
|
2235
|
+
GeneralKey: {
|
|
2236
|
+
length: 2,
|
|
2237
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
2238
|
+
}
|
|
2305
2239
|
}
|
|
2306
2240
|
]
|
|
2307
2241
|
}
|
|
@@ -2405,6 +2339,7 @@ var Centrifuge$4 = {
|
|
|
2405
2339
|
var Subsocial$4 = {
|
|
2406
2340
|
relayChainAssetSymbol: "DOT",
|
|
2407
2341
|
nativeAssetSymbol: "SUB",
|
|
2342
|
+
isEVM: false,
|
|
2408
2343
|
nativeAssets: [
|
|
2409
2344
|
{
|
|
2410
2345
|
symbol: "SUB",
|
|
@@ -2417,6 +2352,7 @@ var Subsocial$4 = {
|
|
|
2417
2352
|
var ComposableFinance$4 = {
|
|
2418
2353
|
relayChainAssetSymbol: "DOT",
|
|
2419
2354
|
nativeAssetSymbol: "LAYR",
|
|
2355
|
+
isEVM: false,
|
|
2420
2356
|
nativeAssets: [
|
|
2421
2357
|
{
|
|
2422
2358
|
symbol: "LAYR",
|
|
@@ -2556,6 +2492,7 @@ var ComposableFinance$4 = {
|
|
|
2556
2492
|
var Darwinia$4 = {
|
|
2557
2493
|
relayChainAssetSymbol: "DOT",
|
|
2558
2494
|
nativeAssetSymbol: "RING",
|
|
2495
|
+
isEVM: true,
|
|
2559
2496
|
nativeAssets: [
|
|
2560
2497
|
{
|
|
2561
2498
|
symbol: "RING",
|
|
@@ -2621,6 +2558,7 @@ var Darwinia$4 = {
|
|
|
2621
2558
|
var Hydration$4 = {
|
|
2622
2559
|
relayChainAssetSymbol: "DOT",
|
|
2623
2560
|
nativeAssetSymbol: "HDX",
|
|
2561
|
+
isEVM: false,
|
|
2624
2562
|
nativeAssets: [
|
|
2625
2563
|
{
|
|
2626
2564
|
symbol: "HDX",
|
|
@@ -2843,7 +2781,10 @@ var Hydration$4 = {
|
|
|
2843
2781
|
Parachain: 2000
|
|
2844
2782
|
},
|
|
2845
2783
|
{
|
|
2846
|
-
GeneralKey:
|
|
2784
|
+
GeneralKey: {
|
|
2785
|
+
length: 21,
|
|
2786
|
+
data: "0x025a4d6acdc4e3e5ab15717f407afe957f7a2425780000000000000000000000"
|
|
2787
|
+
}
|
|
2847
2788
|
}
|
|
2848
2789
|
]
|
|
2849
2790
|
}
|
|
@@ -2862,7 +2803,10 @@ var Hydration$4 = {
|
|
|
2862
2803
|
Parachain: 2000
|
|
2863
2804
|
},
|
|
2864
2805
|
{
|
|
2865
|
-
GeneralKey:
|
|
2806
|
+
GeneralKey: {
|
|
2807
|
+
length: 2,
|
|
2808
|
+
data: "0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
2809
|
+
}
|
|
2866
2810
|
}
|
|
2867
2811
|
]
|
|
2868
2812
|
}
|
|
@@ -2880,7 +2824,10 @@ var Hydration$4 = {
|
|
|
2880
2824
|
Parachain: 2000
|
|
2881
2825
|
},
|
|
2882
2826
|
{
|
|
2883
|
-
GeneralKey:
|
|
2827
|
+
GeneralKey: {
|
|
2828
|
+
length: 21,
|
|
2829
|
+
data: "0x02f4c723e61709d90f89939c1852f516e373d418a80000000000000000000000"
|
|
2830
|
+
}
|
|
2884
2831
|
}
|
|
2885
2832
|
]
|
|
2886
2833
|
}
|
|
@@ -2898,7 +2845,10 @@ var Hydration$4 = {
|
|
|
2898
2845
|
Parachain: 2000
|
|
2899
2846
|
},
|
|
2900
2847
|
{
|
|
2901
|
-
GeneralKey:
|
|
2848
|
+
GeneralKey: {
|
|
2849
|
+
length: 21,
|
|
2850
|
+
data: "0x0254a37a01cd75b616d63e0ab665bffdb0143c52ae0000000000000000000000"
|
|
2851
|
+
}
|
|
2902
2852
|
}
|
|
2903
2853
|
]
|
|
2904
2854
|
}
|
|
@@ -2917,7 +2867,10 @@ var Hydration$4 = {
|
|
|
2917
2867
|
Parachain: 2000
|
|
2918
2868
|
},
|
|
2919
2869
|
{
|
|
2920
|
-
GeneralKey:
|
|
2870
|
+
GeneralKey: {
|
|
2871
|
+
length: 21,
|
|
2872
|
+
data: "0x0207df96d1341a7d16ba1ad431e2c847d978bc2bce0000000000000000000000"
|
|
2873
|
+
}
|
|
2921
2874
|
}
|
|
2922
2875
|
]
|
|
2923
2876
|
}
|
|
@@ -2936,7 +2889,10 @@ var Hydration$4 = {
|
|
|
2936
2889
|
Parachain: 2000
|
|
2937
2890
|
},
|
|
2938
2891
|
{
|
|
2939
|
-
GeneralKey:
|
|
2892
|
+
GeneralKey: {
|
|
2893
|
+
length: 2,
|
|
2894
|
+
data: "0x0003000000000000000000000000000000000000000000000000000000000000"
|
|
2895
|
+
}
|
|
2940
2896
|
}
|
|
2941
2897
|
]
|
|
2942
2898
|
}
|
|
@@ -2954,7 +2910,10 @@ var Hydration$4 = {
|
|
|
2954
2910
|
Parachain: 2000
|
|
2955
2911
|
},
|
|
2956
2912
|
{
|
|
2957
|
-
GeneralKey:
|
|
2913
|
+
GeneralKey: {
|
|
2914
|
+
length: 21,
|
|
2915
|
+
data: "0x02c80084af223c8b598536178d9361dc55bfda68180000000000000000000000"
|
|
2916
|
+
}
|
|
2958
2917
|
}
|
|
2959
2918
|
]
|
|
2960
2919
|
}
|
|
@@ -3160,7 +3119,10 @@ var Hydration$4 = {
|
|
|
3160
3119
|
Parachain: 2030
|
|
3161
3120
|
},
|
|
3162
3121
|
{
|
|
3163
|
-
GeneralKey:
|
|
3122
|
+
GeneralKey: {
|
|
3123
|
+
length: 2,
|
|
3124
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
3125
|
+
}
|
|
3164
3126
|
}
|
|
3165
3127
|
]
|
|
3166
3128
|
}
|
|
@@ -3178,7 +3140,10 @@ var Hydration$4 = {
|
|
|
3178
3140
|
Parachain: 2030
|
|
3179
3141
|
},
|
|
3180
3142
|
{
|
|
3181
|
-
GeneralKey:
|
|
3143
|
+
GeneralKey: {
|
|
3144
|
+
length: 2,
|
|
3145
|
+
data: "0x0903000000000000000000000000000000000000000000000000000000000000"
|
|
3146
|
+
}
|
|
3182
3147
|
}
|
|
3183
3148
|
]
|
|
3184
3149
|
}
|
|
@@ -3196,7 +3161,10 @@ var Hydration$4 = {
|
|
|
3196
3161
|
Parachain: 2030
|
|
3197
3162
|
},
|
|
3198
3163
|
{
|
|
3199
|
-
GeneralKey:
|
|
3164
|
+
GeneralKey: {
|
|
3165
|
+
length: 2,
|
|
3166
|
+
data: "0x0900000000000000000000000000000000000000000000000000000000000000"
|
|
3167
|
+
}
|
|
3200
3168
|
}
|
|
3201
3169
|
]
|
|
3202
3170
|
}
|
|
@@ -3214,7 +3182,10 @@ var Hydration$4 = {
|
|
|
3214
3182
|
Parachain: 2031
|
|
3215
3183
|
},
|
|
3216
3184
|
{
|
|
3217
|
-
GeneralKey:
|
|
3185
|
+
GeneralKey: {
|
|
3186
|
+
length: 2,
|
|
3187
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
3188
|
+
}
|
|
3218
3189
|
}
|
|
3219
3190
|
]
|
|
3220
3191
|
}
|
|
@@ -3232,7 +3203,10 @@ var Hydration$4 = {
|
|
|
3232
3203
|
Parachain: 2032
|
|
3233
3204
|
},
|
|
3234
3205
|
{
|
|
3235
|
-
GeneralKey:
|
|
3206
|
+
GeneralKey: {
|
|
3207
|
+
length: 2,
|
|
3208
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
3209
|
+
}
|
|
3236
3210
|
}
|
|
3237
3211
|
]
|
|
3238
3212
|
}
|
|
@@ -3250,7 +3224,10 @@ var Hydration$4 = {
|
|
|
3250
3224
|
Parachain: 2032
|
|
3251
3225
|
},
|
|
3252
3226
|
{
|
|
3253
|
-
GeneralKey:
|
|
3227
|
+
GeneralKey: {
|
|
3228
|
+
length: 2,
|
|
3229
|
+
data: "0x0002000000000000000000000000000000000000000000000000000000000000"
|
|
3230
|
+
}
|
|
3254
3231
|
}
|
|
3255
3232
|
]
|
|
3256
3233
|
}
|
|
@@ -3312,7 +3289,10 @@ var Hydration$4 = {
|
|
|
3312
3289
|
Parachain: 2051
|
|
3313
3290
|
},
|
|
3314
3291
|
{
|
|
3315
|
-
GeneralKey:
|
|
3292
|
+
GeneralKey: {
|
|
3293
|
+
length: 4,
|
|
3294
|
+
data: "0x414a554e00000000000000000000000000000000000000000000000000000000"
|
|
3295
|
+
}
|
|
3316
3296
|
}
|
|
3317
3297
|
]
|
|
3318
3298
|
}
|
|
@@ -3343,7 +3323,10 @@ var Hydration$4 = {
|
|
|
3343
3323
|
Parachain: 2092
|
|
3344
3324
|
},
|
|
3345
3325
|
{
|
|
3346
|
-
GeneralKey:
|
|
3326
|
+
GeneralKey: {
|
|
3327
|
+
length: 2,
|
|
3328
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
3329
|
+
}
|
|
3347
3330
|
}
|
|
3348
3331
|
]
|
|
3349
3332
|
}
|
|
@@ -3411,6 +3394,7 @@ var Hydration$4 = {
|
|
|
3411
3394
|
var Interlay$4 = {
|
|
3412
3395
|
relayChainAssetSymbol: "DOT",
|
|
3413
3396
|
nativeAssetSymbol: "INTR",
|
|
3397
|
+
isEVM: false,
|
|
3414
3398
|
nativeAssets: [
|
|
3415
3399
|
{
|
|
3416
3400
|
symbol: "INTR",
|
|
@@ -3492,7 +3476,10 @@ var Interlay$4 = {
|
|
|
3492
3476
|
Parachain: 2000
|
|
3493
3477
|
},
|
|
3494
3478
|
{
|
|
3495
|
-
GeneralKey:
|
|
3479
|
+
GeneralKey: {
|
|
3480
|
+
length: 2,
|
|
3481
|
+
data: "0x0003000000000000000000000000000000000000000000000000000000000000"
|
|
3482
|
+
}
|
|
3496
3483
|
}
|
|
3497
3484
|
]
|
|
3498
3485
|
}
|
|
@@ -3696,7 +3683,10 @@ var Interlay$4 = {
|
|
|
3696
3683
|
Parachain: 2030
|
|
3697
3684
|
},
|
|
3698
3685
|
{
|
|
3699
|
-
GeneralKey:
|
|
3686
|
+
GeneralKey: {
|
|
3687
|
+
length: 2,
|
|
3688
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
3689
|
+
}
|
|
3700
3690
|
}
|
|
3701
3691
|
]
|
|
3702
3692
|
}
|
|
@@ -3714,7 +3704,10 @@ var Interlay$4 = {
|
|
|
3714
3704
|
Parachain: 2030
|
|
3715
3705
|
},
|
|
3716
3706
|
{
|
|
3717
|
-
GeneralKey:
|
|
3707
|
+
GeneralKey: {
|
|
3708
|
+
length: 2,
|
|
3709
|
+
data: "0x0900000000000000000000000000000000000000000000000000000000000000"
|
|
3710
|
+
}
|
|
3718
3711
|
}
|
|
3719
3712
|
]
|
|
3720
3713
|
}
|
|
@@ -3756,6 +3749,7 @@ var Interlay$4 = {
|
|
|
3756
3749
|
var Litentry$4 = {
|
|
3757
3750
|
relayChainAssetSymbol: "DOT",
|
|
3758
3751
|
nativeAssetSymbol: "LIT",
|
|
3752
|
+
isEVM: false,
|
|
3759
3753
|
nativeAssets: [
|
|
3760
3754
|
{
|
|
3761
3755
|
symbol: "LIT",
|
|
@@ -3768,6 +3762,7 @@ var Litentry$4 = {
|
|
|
3768
3762
|
var Moonbeam$4 = {
|
|
3769
3763
|
relayChainAssetSymbol: "DOT",
|
|
3770
3764
|
nativeAssetSymbol: "GLMR",
|
|
3765
|
+
isEVM: true,
|
|
3771
3766
|
nativeAssets: [
|
|
3772
3767
|
{
|
|
3773
3768
|
symbol: "GLMR",
|
|
@@ -4020,7 +4015,10 @@ var Moonbeam$4 = {
|
|
|
4020
4015
|
Parachain: 2000
|
|
4021
4016
|
},
|
|
4022
4017
|
{
|
|
4023
|
-
GeneralKey:
|
|
4018
|
+
GeneralKey: {
|
|
4019
|
+
length: 2,
|
|
4020
|
+
data: "0x0003000000000000000000000000000000000000000000000000000000000000"
|
|
4021
|
+
}
|
|
4024
4022
|
}
|
|
4025
4023
|
]
|
|
4026
4024
|
}
|
|
@@ -4038,7 +4036,10 @@ var Moonbeam$4 = {
|
|
|
4038
4036
|
Parachain: 2000
|
|
4039
4037
|
},
|
|
4040
4038
|
{
|
|
4041
|
-
GeneralKey:
|
|
4039
|
+
GeneralKey: {
|
|
4040
|
+
length: 2,
|
|
4041
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
4042
|
+
}
|
|
4042
4043
|
}
|
|
4043
4044
|
]
|
|
4044
4045
|
}
|
|
@@ -4056,7 +4057,10 @@ var Moonbeam$4 = {
|
|
|
4056
4057
|
Parachain: 2000
|
|
4057
4058
|
},
|
|
4058
4059
|
{
|
|
4059
|
-
GeneralKey:
|
|
4060
|
+
GeneralKey: {
|
|
4061
|
+
length: 2,
|
|
4062
|
+
data: "0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
4063
|
+
}
|
|
4060
4064
|
}
|
|
4061
4065
|
]
|
|
4062
4066
|
}
|
|
@@ -4087,7 +4091,10 @@ var Moonbeam$4 = {
|
|
|
4087
4091
|
Parachain: 2011
|
|
4088
4092
|
},
|
|
4089
4093
|
{
|
|
4090
|
-
GeneralKey:
|
|
4094
|
+
GeneralKey: {
|
|
4095
|
+
length: 3,
|
|
4096
|
+
data: "0x6571640000000000000000000000000000000000000000000000000000000000"
|
|
4097
|
+
}
|
|
4091
4098
|
}
|
|
4092
4099
|
]
|
|
4093
4100
|
}
|
|
@@ -4118,7 +4125,10 @@ var Moonbeam$4 = {
|
|
|
4118
4125
|
Parachain: 2012
|
|
4119
4126
|
},
|
|
4120
4127
|
{
|
|
4121
|
-
GeneralKey:
|
|
4128
|
+
GeneralKey: {
|
|
4129
|
+
length: 4,
|
|
4130
|
+
data: "0x5041524100000000000000000000000000000000000000000000000000000000"
|
|
4131
|
+
}
|
|
4122
4132
|
}
|
|
4123
4133
|
]
|
|
4124
4134
|
}
|
|
@@ -4280,7 +4290,10 @@ var Moonbeam$4 = {
|
|
|
4280
4290
|
Parachain: 2030
|
|
4281
4291
|
},
|
|
4282
4292
|
{
|
|
4283
|
-
GeneralKey:
|
|
4293
|
+
GeneralKey: {
|
|
4294
|
+
length: 2,
|
|
4295
|
+
data: "0x0804000000000000000000000000000000000000000000000000000000000000"
|
|
4296
|
+
}
|
|
4284
4297
|
}
|
|
4285
4298
|
]
|
|
4286
4299
|
}
|
|
@@ -4298,7 +4311,10 @@ var Moonbeam$4 = {
|
|
|
4298
4311
|
Parachain: 2030
|
|
4299
4312
|
},
|
|
4300
4313
|
{
|
|
4301
|
-
GeneralKey:
|
|
4314
|
+
GeneralKey: {
|
|
4315
|
+
length: 2,
|
|
4316
|
+
data: "0x0900000000000000000000000000000000000000000000000000000000000000"
|
|
4317
|
+
}
|
|
4302
4318
|
}
|
|
4303
4319
|
]
|
|
4304
4320
|
}
|
|
@@ -4316,7 +4332,10 @@ var Moonbeam$4 = {
|
|
|
4316
4332
|
Parachain: 2030
|
|
4317
4333
|
},
|
|
4318
4334
|
{
|
|
4319
|
-
GeneralKey:
|
|
4335
|
+
GeneralKey: {
|
|
4336
|
+
length: 2,
|
|
4337
|
+
data: "0x0809000000000000000000000000000000000000000000000000000000000000"
|
|
4338
|
+
}
|
|
4320
4339
|
}
|
|
4321
4340
|
]
|
|
4322
4341
|
}
|
|
@@ -4334,7 +4353,10 @@ var Moonbeam$4 = {
|
|
|
4334
4353
|
Parachain: 2030
|
|
4335
4354
|
},
|
|
4336
4355
|
{
|
|
4337
|
-
GeneralKey:
|
|
4356
|
+
GeneralKey: {
|
|
4357
|
+
length: 2,
|
|
4358
|
+
data: "0x0901000000000000000000000000000000000000000000000000000000000000"
|
|
4359
|
+
}
|
|
4338
4360
|
}
|
|
4339
4361
|
]
|
|
4340
4362
|
}
|
|
@@ -4352,7 +4374,10 @@ var Moonbeam$4 = {
|
|
|
4352
4374
|
Parachain: 2030
|
|
4353
4375
|
},
|
|
4354
4376
|
{
|
|
4355
|
-
GeneralKey:
|
|
4377
|
+
GeneralKey: {
|
|
4378
|
+
length: 2,
|
|
4379
|
+
data: "0x0908000000000000000000000000000000000000000000000000000000000000"
|
|
4380
|
+
}
|
|
4356
4381
|
}
|
|
4357
4382
|
]
|
|
4358
4383
|
}
|
|
@@ -4370,7 +4395,10 @@ var Moonbeam$4 = {
|
|
|
4370
4395
|
Parachain: 2030
|
|
4371
4396
|
},
|
|
4372
4397
|
{
|
|
4373
|
-
GeneralKey:
|
|
4398
|
+
GeneralKey: {
|
|
4399
|
+
length: 2,
|
|
4400
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
4401
|
+
}
|
|
4374
4402
|
}
|
|
4375
4403
|
]
|
|
4376
4404
|
}
|
|
@@ -4388,7 +4416,10 @@ var Moonbeam$4 = {
|
|
|
4388
4416
|
Parachain: 2030
|
|
4389
4417
|
},
|
|
4390
4418
|
{
|
|
4391
|
-
GeneralKey:
|
|
4419
|
+
GeneralKey: {
|
|
4420
|
+
length: 2,
|
|
4421
|
+
data: "0x0904000000000000000000000000000000000000000000000000000000000000"
|
|
4422
|
+
}
|
|
4392
4423
|
}
|
|
4393
4424
|
]
|
|
4394
4425
|
}
|
|
@@ -4406,7 +4437,10 @@ var Moonbeam$4 = {
|
|
|
4406
4437
|
Parachain: 2030
|
|
4407
4438
|
},
|
|
4408
4439
|
{
|
|
4409
|
-
GeneralKey:
|
|
4440
|
+
GeneralKey: {
|
|
4441
|
+
length: 2,
|
|
4442
|
+
data: "0x0903000000000000000000000000000000000000000000000000000000000000"
|
|
4443
|
+
}
|
|
4410
4444
|
}
|
|
4411
4445
|
]
|
|
4412
4446
|
}
|
|
@@ -4424,7 +4458,10 @@ var Moonbeam$4 = {
|
|
|
4424
4458
|
Parachain: 2031
|
|
4425
4459
|
},
|
|
4426
4460
|
{
|
|
4427
|
-
GeneralKey:
|
|
4461
|
+
GeneralKey: {
|
|
4462
|
+
length: 2,
|
|
4463
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
4464
|
+
}
|
|
4428
4465
|
}
|
|
4429
4466
|
]
|
|
4430
4467
|
}
|
|
@@ -4442,7 +4479,10 @@ var Moonbeam$4 = {
|
|
|
4442
4479
|
Parachain: 2032
|
|
4443
4480
|
},
|
|
4444
4481
|
{
|
|
4445
|
-
GeneralKey:
|
|
4482
|
+
GeneralKey: {
|
|
4483
|
+
length: 2,
|
|
4484
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
4485
|
+
}
|
|
4446
4486
|
}
|
|
4447
4487
|
]
|
|
4448
4488
|
}
|
|
@@ -4460,7 +4500,10 @@ var Moonbeam$4 = {
|
|
|
4460
4500
|
Parachain: 2032
|
|
4461
4501
|
},
|
|
4462
4502
|
{
|
|
4463
|
-
GeneralKey:
|
|
4503
|
+
GeneralKey: {
|
|
4504
|
+
length: 2,
|
|
4505
|
+
data: "0x0002000000000000000000000000000000000000000000000000000000000000"
|
|
4506
|
+
}
|
|
4464
4507
|
}
|
|
4465
4508
|
]
|
|
4466
4509
|
}
|
|
@@ -4571,7 +4614,10 @@ var Moonbeam$4 = {
|
|
|
4571
4614
|
Parachain: 2092
|
|
4572
4615
|
},
|
|
4573
4616
|
{
|
|
4574
|
-
GeneralKey:
|
|
4617
|
+
GeneralKey: {
|
|
4618
|
+
length: 2,
|
|
4619
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
4620
|
+
}
|
|
4575
4621
|
}
|
|
4576
4622
|
]
|
|
4577
4623
|
}
|
|
@@ -4639,6 +4685,7 @@ var Moonbeam$4 = {
|
|
|
4639
4685
|
var Parallel$4 = {
|
|
4640
4686
|
relayChainAssetSymbol: "DOT",
|
|
4641
4687
|
nativeAssetSymbol: "PARA",
|
|
4688
|
+
isEVM: false,
|
|
4642
4689
|
nativeAssets: [
|
|
4643
4690
|
{
|
|
4644
4691
|
symbol: "PARA",
|
|
@@ -4690,7 +4737,10 @@ var Parallel$4 = {
|
|
|
4690
4737
|
Parachain: 2000
|
|
4691
4738
|
},
|
|
4692
4739
|
{
|
|
4693
|
-
GeneralKey:
|
|
4740
|
+
GeneralKey: {
|
|
4741
|
+
length: 2,
|
|
4742
|
+
data: "0x0003000000000000000000000000000000000000000000000000000000000000"
|
|
4743
|
+
}
|
|
4694
4744
|
}
|
|
4695
4745
|
]
|
|
4696
4746
|
}
|
|
@@ -4708,7 +4758,10 @@ var Parallel$4 = {
|
|
|
4708
4758
|
Parachain: 2000
|
|
4709
4759
|
},
|
|
4710
4760
|
{
|
|
4711
|
-
GeneralKey:
|
|
4761
|
+
GeneralKey: {
|
|
4762
|
+
length: 2,
|
|
4763
|
+
data: "0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
4764
|
+
}
|
|
4712
4765
|
}
|
|
4713
4766
|
]
|
|
4714
4767
|
}
|
|
@@ -4726,7 +4779,10 @@ var Parallel$4 = {
|
|
|
4726
4779
|
Parachain: 2000
|
|
4727
4780
|
},
|
|
4728
4781
|
{
|
|
4729
|
-
GeneralKey:
|
|
4782
|
+
GeneralKey: {
|
|
4783
|
+
length: 5,
|
|
4784
|
+
data: "0x040d000000000000000000000000000000000000000000000000000000000000"
|
|
4785
|
+
}
|
|
4730
4786
|
}
|
|
4731
4787
|
]
|
|
4732
4788
|
}
|
|
@@ -4775,7 +4831,10 @@ var Parallel$4 = {
|
|
|
4775
4831
|
Parachain: 2012
|
|
4776
4832
|
},
|
|
4777
4833
|
{
|
|
4778
|
-
GeneralKey:
|
|
4834
|
+
GeneralKey: {
|
|
4835
|
+
length: 4,
|
|
4836
|
+
data: "0x73444f5400000000000000000000000000000000000000000000000000000000"
|
|
4837
|
+
}
|
|
4779
4838
|
}
|
|
4780
4839
|
]
|
|
4781
4840
|
}
|
|
@@ -4898,7 +4957,10 @@ var Parallel$4 = {
|
|
|
4898
4957
|
Parachain: 2032
|
|
4899
4958
|
},
|
|
4900
4959
|
{
|
|
4901
|
-
GeneralKey:
|
|
4960
|
+
GeneralKey: {
|
|
4961
|
+
length: 2,
|
|
4962
|
+
data: "0x0002000000000000000000000000000000000000000000000000000000000000"
|
|
4963
|
+
}
|
|
4902
4964
|
}
|
|
4903
4965
|
]
|
|
4904
4966
|
}
|
|
@@ -4916,7 +4978,10 @@ var Parallel$4 = {
|
|
|
4916
4978
|
Parachain: 2032
|
|
4917
4979
|
},
|
|
4918
4980
|
{
|
|
4919
|
-
GeneralKey:
|
|
4981
|
+
GeneralKey: {
|
|
4982
|
+
length: 2,
|
|
4983
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
4984
|
+
}
|
|
4920
4985
|
}
|
|
4921
4986
|
]
|
|
4922
4987
|
}
|
|
@@ -4940,6 +5005,7 @@ var Parallel$4 = {
|
|
|
4940
5005
|
var AssetHubPolkadot$4 = {
|
|
4941
5006
|
relayChainAssetSymbol: "DOT",
|
|
4942
5007
|
nativeAssetSymbol: "DOT",
|
|
5008
|
+
isEVM: false,
|
|
4943
5009
|
nativeAssets: [
|
|
4944
5010
|
{
|
|
4945
5011
|
symbol: "DOT",
|
|
@@ -5129,9 +5195,11 @@ var AssetHubPolkadot$4 = {
|
|
|
5129
5195
|
multiLocation: {
|
|
5130
5196
|
parents: 1,
|
|
5131
5197
|
interior: {
|
|
5132
|
-
X1:
|
|
5133
|
-
|
|
5134
|
-
|
|
5198
|
+
X1: [
|
|
5199
|
+
{
|
|
5200
|
+
Parachain: 2011
|
|
5201
|
+
}
|
|
5202
|
+
]
|
|
5135
5203
|
}
|
|
5136
5204
|
}
|
|
5137
5205
|
},
|
|
@@ -5165,11 +5233,27 @@ var AssetHubPolkadot$4 = {
|
|
|
5165
5233
|
multiLocation: {
|
|
5166
5234
|
parents: 2,
|
|
5167
5235
|
interior: {
|
|
5168
|
-
X1:
|
|
5169
|
-
|
|
5170
|
-
|
|
5236
|
+
X1: [
|
|
5237
|
+
{
|
|
5238
|
+
GlobalConsensus: {
|
|
5239
|
+
kusama: null
|
|
5240
|
+
}
|
|
5171
5241
|
}
|
|
5172
|
-
|
|
5242
|
+
]
|
|
5243
|
+
}
|
|
5244
|
+
}
|
|
5245
|
+
},
|
|
5246
|
+
{
|
|
5247
|
+
symbol: "TEER",
|
|
5248
|
+
decimals: 12,
|
|
5249
|
+
multiLocation: {
|
|
5250
|
+
parents: 1,
|
|
5251
|
+
interior: {
|
|
5252
|
+
X1: [
|
|
5253
|
+
{
|
|
5254
|
+
Parachain: 2039
|
|
5255
|
+
}
|
|
5256
|
+
]
|
|
5173
5257
|
}
|
|
5174
5258
|
}
|
|
5175
5259
|
},
|
|
@@ -5236,9 +5320,11 @@ var AssetHubPolkadot$4 = {
|
|
|
5236
5320
|
multiLocation: {
|
|
5237
5321
|
parents: 1,
|
|
5238
5322
|
interior: {
|
|
5239
|
-
X1:
|
|
5240
|
-
|
|
5241
|
-
|
|
5323
|
+
X1: [
|
|
5324
|
+
{
|
|
5325
|
+
Parachain: 3369
|
|
5326
|
+
}
|
|
5327
|
+
]
|
|
5242
5328
|
}
|
|
5243
5329
|
}
|
|
5244
5330
|
},
|
|
@@ -5285,9 +5371,11 @@ var AssetHubPolkadot$4 = {
|
|
|
5285
5371
|
multiLocation: {
|
|
5286
5372
|
parents: 1,
|
|
5287
5373
|
interior: {
|
|
5288
|
-
X1:
|
|
5289
|
-
|
|
5290
|
-
|
|
5374
|
+
X1: [
|
|
5375
|
+
{
|
|
5376
|
+
Parachain: 2051
|
|
5377
|
+
}
|
|
5378
|
+
]
|
|
5291
5379
|
}
|
|
5292
5380
|
}
|
|
5293
5381
|
}
|
|
@@ -5296,6 +5384,7 @@ var AssetHubPolkadot$4 = {
|
|
|
5296
5384
|
var Altair$4 = {
|
|
5297
5385
|
relayChainAssetSymbol: "KSM",
|
|
5298
5386
|
nativeAssetSymbol: "AIR",
|
|
5387
|
+
isEVM: false,
|
|
5299
5388
|
nativeAssets: [
|
|
5300
5389
|
{
|
|
5301
5390
|
symbol: "AIR",
|
|
@@ -5347,7 +5436,10 @@ var Altair$4 = {
|
|
|
5347
5436
|
Parachain: 2000
|
|
5348
5437
|
},
|
|
5349
5438
|
{
|
|
5350
|
-
GeneralKey:
|
|
5439
|
+
GeneralKey: {
|
|
5440
|
+
length: 2,
|
|
5441
|
+
data: "0x0081000000000000000000000000000000000000000000000000000000000000"
|
|
5442
|
+
}
|
|
5351
5443
|
}
|
|
5352
5444
|
]
|
|
5353
5445
|
}
|
|
@@ -5365,7 +5457,10 @@ var Altair$4 = {
|
|
|
5365
5457
|
Parachain: 2088
|
|
5366
5458
|
},
|
|
5367
5459
|
{
|
|
5368
|
-
GeneralKey:
|
|
5460
|
+
GeneralKey: {
|
|
5461
|
+
length: 2,
|
|
5462
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
5463
|
+
}
|
|
5369
5464
|
}
|
|
5370
5465
|
]
|
|
5371
5466
|
}
|
|
@@ -5376,6 +5471,7 @@ var Altair$4 = {
|
|
|
5376
5471
|
var Amplitude$4 = {
|
|
5377
5472
|
relayChainAssetSymbol: "KSM",
|
|
5378
5473
|
nativeAssetSymbol: "AMPE",
|
|
5474
|
+
isEVM: false,
|
|
5379
5475
|
nativeAssets: [
|
|
5380
5476
|
{
|
|
5381
5477
|
symbol: "AMPE",
|
|
@@ -5403,6 +5499,7 @@ var Amplitude$4 = {
|
|
|
5403
5499
|
var Bajun$4 = {
|
|
5404
5500
|
relayChainAssetSymbol: "KSM",
|
|
5405
5501
|
nativeAssetSymbol: "BAJU",
|
|
5502
|
+
isEVM: false,
|
|
5406
5503
|
nativeAssets: [
|
|
5407
5504
|
{
|
|
5408
5505
|
symbol: "BAJU",
|
|
@@ -5415,6 +5512,7 @@ var Bajun$4 = {
|
|
|
5415
5512
|
var Basilisk$4 = {
|
|
5416
5513
|
relayChainAssetSymbol: "KSM",
|
|
5417
5514
|
nativeAssetSymbol: "BSX",
|
|
5515
|
+
isEVM: false,
|
|
5418
5516
|
nativeAssets: [
|
|
5419
5517
|
{
|
|
5420
5518
|
symbol: "BSX",
|
|
@@ -5466,7 +5564,10 @@ var Basilisk$4 = {
|
|
|
5466
5564
|
Parachain: 2000
|
|
5467
5565
|
},
|
|
5468
5566
|
{
|
|
5469
|
-
GeneralKey:
|
|
5567
|
+
GeneralKey: {
|
|
5568
|
+
length: 21,
|
|
5569
|
+
data: "0x024bb6afb5fa2b07a5d1c499e1c3ddb5a15e709a710000000000000000000000"
|
|
5570
|
+
}
|
|
5470
5571
|
}
|
|
5471
5572
|
]
|
|
5472
5573
|
}
|
|
@@ -5484,7 +5585,10 @@ var Basilisk$4 = {
|
|
|
5484
5585
|
Parachain: 2000
|
|
5485
5586
|
},
|
|
5486
5587
|
{
|
|
5487
|
-
GeneralKey:
|
|
5588
|
+
GeneralKey: {
|
|
5589
|
+
length: 21,
|
|
5590
|
+
data: "0x021f3a10587a20114ea25ba1b388ee2dd4a337ce270000000000000000000000"
|
|
5591
|
+
}
|
|
5488
5592
|
}
|
|
5489
5593
|
]
|
|
5490
5594
|
}
|
|
@@ -5502,7 +5606,10 @@ var Basilisk$4 = {
|
|
|
5502
5606
|
Parachain: 2000
|
|
5503
5607
|
},
|
|
5504
5608
|
{
|
|
5505
|
-
GeneralKey:
|
|
5609
|
+
GeneralKey: {
|
|
5610
|
+
length: 2,
|
|
5611
|
+
data: "0x0081000000000000000000000000000000000000000000000000000000000000"
|
|
5612
|
+
}
|
|
5506
5613
|
}
|
|
5507
5614
|
]
|
|
5508
5615
|
}
|
|
@@ -5520,7 +5627,10 @@ var Basilisk$4 = {
|
|
|
5520
5627
|
Parachain: 2000
|
|
5521
5628
|
},
|
|
5522
5629
|
{
|
|
5523
|
-
GeneralKey:
|
|
5630
|
+
GeneralKey: {
|
|
5631
|
+
length: 21,
|
|
5632
|
+
data: "0x02ece0cc38021e734bef1d5da071b027ac2f71181f0000000000000000000000"
|
|
5633
|
+
}
|
|
5524
5634
|
}
|
|
5525
5635
|
]
|
|
5526
5636
|
}
|
|
@@ -5538,7 +5648,10 @@ var Basilisk$4 = {
|
|
|
5538
5648
|
Parachain: 2000
|
|
5539
5649
|
},
|
|
5540
5650
|
{
|
|
5541
|
-
GeneralKey:
|
|
5651
|
+
GeneralKey: {
|
|
5652
|
+
length: 21,
|
|
5653
|
+
data: "0x0266291c7d88d2ed9a708147bae4e0814a76705e2f0000000000000000000000"
|
|
5654
|
+
}
|
|
5542
5655
|
}
|
|
5543
5656
|
]
|
|
5544
5657
|
}
|
|
@@ -5556,7 +5669,10 @@ var Basilisk$4 = {
|
|
|
5556
5669
|
Parachain: 2000
|
|
5557
5670
|
},
|
|
5558
5671
|
{
|
|
5559
|
-
GeneralKey:
|
|
5672
|
+
GeneralKey: {
|
|
5673
|
+
length: 21,
|
|
5674
|
+
data: "0x0254e183e533fd3c6e72debb2d1cab451d017faf720000000000000000000000"
|
|
5675
|
+
}
|
|
5560
5676
|
}
|
|
5561
5677
|
]
|
|
5562
5678
|
}
|
|
@@ -5598,6 +5714,7 @@ var Basilisk$4 = {
|
|
|
5598
5714
|
var BifrostKusama$4 = {
|
|
5599
5715
|
relayChainAssetSymbol: "KSM",
|
|
5600
5716
|
nativeAssetSymbol: "BNC",
|
|
5717
|
+
isEVM: false,
|
|
5601
5718
|
nativeAssets: [
|
|
5602
5719
|
{
|
|
5603
5720
|
symbol: "BNC",
|
|
@@ -5670,7 +5787,10 @@ var BifrostKusama$4 = {
|
|
|
5670
5787
|
Parachain: 2092
|
|
5671
5788
|
},
|
|
5672
5789
|
{
|
|
5673
|
-
GeneralKey:
|
|
5790
|
+
GeneralKey: {
|
|
5791
|
+
length: 2,
|
|
5792
|
+
data: "0x000b000000000000000000000000000000000000000000000000000000000000"
|
|
5793
|
+
}
|
|
5674
5794
|
}
|
|
5675
5795
|
]
|
|
5676
5796
|
}
|
|
@@ -5688,7 +5808,10 @@ var BifrostKusama$4 = {
|
|
|
5688
5808
|
Parachain: 2092
|
|
5689
5809
|
},
|
|
5690
5810
|
{
|
|
5691
|
-
GeneralKey:
|
|
5811
|
+
GeneralKey: {
|
|
5812
|
+
length: 2,
|
|
5813
|
+
data: "0x000c000000000000000000000000000000000000000000000000000000000000"
|
|
5814
|
+
}
|
|
5692
5815
|
}
|
|
5693
5816
|
]
|
|
5694
5817
|
}
|
|
@@ -5706,7 +5829,10 @@ var BifrostKusama$4 = {
|
|
|
5706
5829
|
Parachain: 2110
|
|
5707
5830
|
},
|
|
5708
5831
|
{
|
|
5709
|
-
GeneralKey:
|
|
5832
|
+
GeneralKey: {
|
|
5833
|
+
length: 4,
|
|
5834
|
+
data: "0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
5835
|
+
}
|
|
5710
5836
|
}
|
|
5711
5837
|
]
|
|
5712
5838
|
}
|
|
@@ -5730,6 +5856,7 @@ var BifrostKusama$4 = {
|
|
|
5730
5856
|
var Calamari$4 = {
|
|
5731
5857
|
relayChainAssetSymbol: "KSM",
|
|
5732
5858
|
nativeAssetSymbol: "KMA",
|
|
5859
|
+
isEVM: false,
|
|
5733
5860
|
nativeAssets: [
|
|
5734
5861
|
{
|
|
5735
5862
|
symbol: "KMA",
|
|
@@ -5781,7 +5908,10 @@ var Calamari$4 = {
|
|
|
5781
5908
|
Parachain: 2000
|
|
5782
5909
|
},
|
|
5783
5910
|
{
|
|
5784
|
-
GeneralKey:
|
|
5911
|
+
GeneralKey: {
|
|
5912
|
+
length: 21,
|
|
5913
|
+
data: "0x02e278651e8ff8e2efa83d7f84205084ebc90688be0000000000000000000000"
|
|
5914
|
+
}
|
|
5785
5915
|
}
|
|
5786
5916
|
]
|
|
5787
5917
|
}
|
|
@@ -5799,7 +5929,10 @@ var Calamari$4 = {
|
|
|
5799
5929
|
Parachain: 2000
|
|
5800
5930
|
},
|
|
5801
5931
|
{
|
|
5802
|
-
GeneralKey:
|
|
5932
|
+
GeneralKey: {
|
|
5933
|
+
length: 21,
|
|
5934
|
+
data: "0x0266291c7d88d2ed9a708147bae4e0814a76705e2f0000000000000000000000"
|
|
5935
|
+
}
|
|
5803
5936
|
}
|
|
5804
5937
|
]
|
|
5805
5938
|
}
|
|
@@ -5817,7 +5950,10 @@ var Calamari$4 = {
|
|
|
5817
5950
|
Parachain: 2000
|
|
5818
5951
|
},
|
|
5819
5952
|
{
|
|
5820
|
-
GeneralKey:
|
|
5953
|
+
GeneralKey: {
|
|
5954
|
+
length: 21,
|
|
5955
|
+
data: "0x021f3a10587a20114ea25ba1b388ee2dd4a337ce270000000000000000000000"
|
|
5956
|
+
}
|
|
5821
5957
|
}
|
|
5822
5958
|
]
|
|
5823
5959
|
}
|
|
@@ -5835,7 +5971,10 @@ var Calamari$4 = {
|
|
|
5835
5971
|
Parachain: 2000
|
|
5836
5972
|
},
|
|
5837
5973
|
{
|
|
5838
|
-
GeneralKey:
|
|
5974
|
+
GeneralKey: {
|
|
5975
|
+
length: 21,
|
|
5976
|
+
data: "0x02577f6a0718a468e8a995f6075f2325f86a07c83b0000000000000000000000"
|
|
5977
|
+
}
|
|
5839
5978
|
}
|
|
5840
5979
|
]
|
|
5841
5980
|
}
|
|
@@ -5853,7 +5992,10 @@ var Calamari$4 = {
|
|
|
5853
5992
|
Parachain: 2000
|
|
5854
5993
|
},
|
|
5855
5994
|
{
|
|
5856
|
-
GeneralKey:
|
|
5995
|
+
GeneralKey: {
|
|
5996
|
+
length: 2,
|
|
5997
|
+
data: "0x0081000000000000000000000000000000000000000000000000000000000000"
|
|
5998
|
+
}
|
|
5857
5999
|
}
|
|
5858
6000
|
]
|
|
5859
6001
|
}
|
|
@@ -5871,7 +6013,10 @@ var Calamari$4 = {
|
|
|
5871
6013
|
Parachain: 2000
|
|
5872
6014
|
},
|
|
5873
6015
|
{
|
|
5874
|
-
GeneralKey:
|
|
6016
|
+
GeneralKey: {
|
|
6017
|
+
length: 21,
|
|
6018
|
+
data: "0x02b4ce1f6109854243d1af13b8ea34ed28542f31e00000000000000000000000"
|
|
6019
|
+
}
|
|
5875
6020
|
}
|
|
5876
6021
|
]
|
|
5877
6022
|
}
|
|
@@ -5889,7 +6034,10 @@ var Calamari$4 = {
|
|
|
5889
6034
|
Parachain: 2000
|
|
5890
6035
|
},
|
|
5891
6036
|
{
|
|
5892
|
-
GeneralKey:
|
|
6037
|
+
GeneralKey: {
|
|
6038
|
+
length: 21,
|
|
6039
|
+
data: "0x02a2a37aaf4730aeedada5aa8ee20a4451cb8b1c4e0000000000000000000000"
|
|
6040
|
+
}
|
|
5893
6041
|
}
|
|
5894
6042
|
]
|
|
5895
6043
|
}
|
|
@@ -5907,7 +6055,10 @@ var Calamari$4 = {
|
|
|
5907
6055
|
Parachain: 2000
|
|
5908
6056
|
},
|
|
5909
6057
|
{
|
|
5910
|
-
GeneralKey:
|
|
6058
|
+
GeneralKey: {
|
|
6059
|
+
length: 2,
|
|
6060
|
+
data: "0x0080000000000000000000000000000000000000000000000000000000000000"
|
|
6061
|
+
}
|
|
5911
6062
|
}
|
|
5912
6063
|
]
|
|
5913
6064
|
}
|
|
@@ -5925,7 +6076,10 @@ var Calamari$4 = {
|
|
|
5925
6076
|
Parachain: 2000
|
|
5926
6077
|
},
|
|
5927
6078
|
{
|
|
5928
|
-
GeneralKey:
|
|
6079
|
+
GeneralKey: {
|
|
6080
|
+
length: 2,
|
|
6081
|
+
data: "0x0083000000000000000000000000000000000000000000000000000000000000"
|
|
6082
|
+
}
|
|
5929
6083
|
}
|
|
5930
6084
|
]
|
|
5931
6085
|
}
|
|
@@ -5943,7 +6097,10 @@ var Calamari$4 = {
|
|
|
5943
6097
|
Parachain: 2000
|
|
5944
6098
|
},
|
|
5945
6099
|
{
|
|
5946
|
-
GeneralKey:
|
|
6100
|
+
GeneralKey: {
|
|
6101
|
+
length: 21,
|
|
6102
|
+
data: "0x02c621abc3afa3f24886ea278fffa7e10e8969d7550000000000000000000000"
|
|
6103
|
+
}
|
|
5947
6104
|
}
|
|
5948
6105
|
]
|
|
5949
6106
|
}
|
|
@@ -5961,7 +6118,10 @@ var Calamari$4 = {
|
|
|
5961
6118
|
Parachain: 2000
|
|
5962
6119
|
},
|
|
5963
6120
|
{
|
|
5964
|
-
GeneralKey:
|
|
6121
|
+
GeneralKey: {
|
|
6122
|
+
length: 21,
|
|
6123
|
+
data: "0x0230b1f4ba0b07789be9986fa090a57e0fe5631ebb0000000000000000000000"
|
|
6124
|
+
}
|
|
5965
6125
|
}
|
|
5966
6126
|
]
|
|
5967
6127
|
}
|
|
@@ -5979,7 +6139,10 @@ var Calamari$4 = {
|
|
|
5979
6139
|
Parachain: 2000
|
|
5980
6140
|
},
|
|
5981
6141
|
{
|
|
5982
|
-
GeneralKey:
|
|
6142
|
+
GeneralKey: {
|
|
6143
|
+
length: 21,
|
|
6144
|
+
data: "0x0277cf14f938cb97308d752647d554439d99b39a3f0000000000000000000000"
|
|
6145
|
+
}
|
|
5983
6146
|
}
|
|
5984
6147
|
]
|
|
5985
6148
|
}
|
|
@@ -5997,7 +6160,10 @@ var Calamari$4 = {
|
|
|
5997
6160
|
Parachain: 2000
|
|
5998
6161
|
},
|
|
5999
6162
|
{
|
|
6000
|
-
GeneralKey:
|
|
6163
|
+
GeneralKey: {
|
|
6164
|
+
length: 21,
|
|
6165
|
+
data: "0x022c7de70b32cf5f20e02329a88d2e3b00ef85eb900000000000000000000000"
|
|
6166
|
+
}
|
|
6001
6167
|
}
|
|
6002
6168
|
]
|
|
6003
6169
|
}
|
|
@@ -6015,7 +6181,10 @@ var Calamari$4 = {
|
|
|
6015
6181
|
Parachain: 2000
|
|
6016
6182
|
},
|
|
6017
6183
|
{
|
|
6018
|
-
GeneralKey:
|
|
6184
|
+
GeneralKey: {
|
|
6185
|
+
length: 21,
|
|
6186
|
+
data: "0x029759ca009cbcd75a84786ac19bb5d02f8e68bcd90000000000000000000000"
|
|
6187
|
+
}
|
|
6019
6188
|
}
|
|
6020
6189
|
]
|
|
6021
6190
|
}
|
|
@@ -6033,7 +6202,10 @@ var Calamari$4 = {
|
|
|
6033
6202
|
Parachain: 2000
|
|
6034
6203
|
},
|
|
6035
6204
|
{
|
|
6036
|
-
GeneralKey:
|
|
6205
|
+
GeneralKey: {
|
|
6206
|
+
length: 21,
|
|
6207
|
+
data: "0x02ece0cc38021e734bef1d5da071b027ac2f71181f0000000000000000000000"
|
|
6208
|
+
}
|
|
6037
6209
|
}
|
|
6038
6210
|
]
|
|
6039
6211
|
}
|
|
@@ -6051,7 +6223,10 @@ var Calamari$4 = {
|
|
|
6051
6223
|
Parachain: 2000
|
|
6052
6224
|
},
|
|
6053
6225
|
{
|
|
6054
|
-
GeneralKey:
|
|
6226
|
+
GeneralKey: {
|
|
6227
|
+
length: 21,
|
|
6228
|
+
data: "0x024bb6afb5fa2b07a5d1c499e1c3ddb5a15e709a710000000000000000000000"
|
|
6229
|
+
}
|
|
6055
6230
|
}
|
|
6056
6231
|
]
|
|
6057
6232
|
}
|
|
@@ -6093,6 +6268,7 @@ var Calamari$4 = {
|
|
|
6093
6268
|
var Crab$4 = {
|
|
6094
6269
|
relayChainAssetSymbol: "KSM",
|
|
6095
6270
|
nativeAssetSymbol: "CRAB",
|
|
6271
|
+
isEVM: true,
|
|
6096
6272
|
nativeAssets: [
|
|
6097
6273
|
{
|
|
6098
6274
|
symbol: "CRAB",
|
|
@@ -6110,6 +6286,7 @@ var Crab$4 = {
|
|
|
6110
6286
|
var CrustShadow$4 = {
|
|
6111
6287
|
relayChainAssetSymbol: "KSM",
|
|
6112
6288
|
nativeAssetSymbol: "CSM",
|
|
6289
|
+
isEVM: false,
|
|
6113
6290
|
nativeAssets: [
|
|
6114
6291
|
{
|
|
6115
6292
|
symbol: "CSM",
|
|
@@ -6157,6 +6334,7 @@ var CrustShadow$4 = {
|
|
|
6157
6334
|
var Encointer$4 = {
|
|
6158
6335
|
relayChainAssetSymbol: "KSM",
|
|
6159
6336
|
nativeAssetSymbol: "KSM",
|
|
6337
|
+
isEVM: false,
|
|
6160
6338
|
nativeAssets: [
|
|
6161
6339
|
{
|
|
6162
6340
|
symbol: "KSM",
|
|
@@ -6169,6 +6347,7 @@ var Encointer$4 = {
|
|
|
6169
6347
|
var Imbue$4 = {
|
|
6170
6348
|
relayChainAssetSymbol: "KSM",
|
|
6171
6349
|
nativeAssetSymbol: "IMBU",
|
|
6350
|
+
isEVM: false,
|
|
6172
6351
|
nativeAssets: [
|
|
6173
6352
|
{
|
|
6174
6353
|
symbol: "IMBU",
|
|
@@ -6181,6 +6360,7 @@ var Imbue$4 = {
|
|
|
6181
6360
|
var KiltSpiritnet$4 = {
|
|
6182
6361
|
relayChainAssetSymbol: "DOT",
|
|
6183
6362
|
nativeAssetSymbol: "KILT",
|
|
6363
|
+
isEVM: false,
|
|
6184
6364
|
nativeAssets: [
|
|
6185
6365
|
{
|
|
6186
6366
|
symbol: "KILT",
|
|
@@ -6193,6 +6373,7 @@ var KiltSpiritnet$4 = {
|
|
|
6193
6373
|
var Integritee$4 = {
|
|
6194
6374
|
relayChainAssetSymbol: "KSM",
|
|
6195
6375
|
nativeAssetSymbol: "TEER",
|
|
6376
|
+
isEVM: false,
|
|
6196
6377
|
nativeAssets: [
|
|
6197
6378
|
{
|
|
6198
6379
|
symbol: "TEER",
|
|
@@ -6205,6 +6386,7 @@ var Integritee$4 = {
|
|
|
6205
6386
|
var InvArchTinker$4 = {
|
|
6206
6387
|
relayChainAssetSymbol: "KSM",
|
|
6207
6388
|
nativeAssetSymbol: "TNKR",
|
|
6389
|
+
isEVM: false,
|
|
6208
6390
|
nativeAssets: [
|
|
6209
6391
|
{
|
|
6210
6392
|
symbol: "TNKR",
|
|
@@ -6217,6 +6399,7 @@ var InvArchTinker$4 = {
|
|
|
6217
6399
|
var Curio$4 = {
|
|
6218
6400
|
relayChainAssetSymbol: "KSM",
|
|
6219
6401
|
nativeAssetSymbol: "CGT",
|
|
6402
|
+
isEVM: false,
|
|
6220
6403
|
nativeAssets: [
|
|
6221
6404
|
{
|
|
6222
6405
|
symbol: "CGT",
|
|
@@ -6253,6 +6436,7 @@ var Curio$4 = {
|
|
|
6253
6436
|
var Karura$4 = {
|
|
6254
6437
|
relayChainAssetSymbol: "KSM",
|
|
6255
6438
|
nativeAssetSymbol: "KAR",
|
|
6439
|
+
isEVM: false,
|
|
6256
6440
|
nativeAssets: [
|
|
6257
6441
|
{
|
|
6258
6442
|
symbol: "KAR",
|
|
@@ -6397,7 +6581,10 @@ var Karura$4 = {
|
|
|
6397
6581
|
Parachain: 2015
|
|
6398
6582
|
},
|
|
6399
6583
|
{
|
|
6400
|
-
GeneralKey:
|
|
6584
|
+
GeneralKey: {
|
|
6585
|
+
length: 4,
|
|
6586
|
+
data: "0x5445455200000000000000000000000000000000000000000000000000000000"
|
|
6587
|
+
}
|
|
6401
6588
|
}
|
|
6402
6589
|
]
|
|
6403
6590
|
}
|
|
@@ -6446,7 +6633,10 @@ var Karura$4 = {
|
|
|
6446
6633
|
Parachain: 2024
|
|
6447
6634
|
},
|
|
6448
6635
|
{
|
|
6449
|
-
GeneralKey:
|
|
6636
|
+
GeneralKey: {
|
|
6637
|
+
length: 3,
|
|
6638
|
+
data: "0x6571640000000000000000000000000000000000000000000000000000000000"
|
|
6639
|
+
}
|
|
6450
6640
|
}
|
|
6451
6641
|
]
|
|
6452
6642
|
}
|
|
@@ -6477,7 +6667,10 @@ var Karura$4 = {
|
|
|
6477
6667
|
Parachain: 2085
|
|
6478
6668
|
},
|
|
6479
6669
|
{
|
|
6480
|
-
GeneralKey:
|
|
6670
|
+
GeneralKey: {
|
|
6671
|
+
length: 3,
|
|
6672
|
+
data: "0x484b4f0000000000000000000000000000000000000000000000000000000000"
|
|
6673
|
+
}
|
|
6481
6674
|
}
|
|
6482
6675
|
]
|
|
6483
6676
|
}
|
|
@@ -6495,7 +6688,10 @@ var Karura$4 = {
|
|
|
6495
6688
|
Parachain: 2088
|
|
6496
6689
|
},
|
|
6497
6690
|
{
|
|
6498
|
-
GeneralKey:
|
|
6691
|
+
GeneralKey: {
|
|
6692
|
+
length: 2,
|
|
6693
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
6694
|
+
}
|
|
6499
6695
|
}
|
|
6500
6696
|
]
|
|
6501
6697
|
}
|
|
@@ -6544,7 +6740,10 @@ var Karura$4 = {
|
|
|
6544
6740
|
Parachain: 2096
|
|
6545
6741
|
},
|
|
6546
6742
|
{
|
|
6547
|
-
GeneralKey:
|
|
6743
|
+
GeneralKey: {
|
|
6744
|
+
length: 9,
|
|
6745
|
+
data: "0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
6746
|
+
}
|
|
6548
6747
|
}
|
|
6549
6748
|
]
|
|
6550
6749
|
}
|
|
@@ -6562,7 +6761,10 @@ var Karura$4 = {
|
|
|
6562
6761
|
Parachain: 2102
|
|
6563
6762
|
},
|
|
6564
6763
|
{
|
|
6565
|
-
GeneralKey:
|
|
6764
|
+
GeneralKey: {
|
|
6765
|
+
length: 4,
|
|
6766
|
+
data: "0x5043485500000000000000000000000000000000000000000000000000000000"
|
|
6767
|
+
}
|
|
6566
6768
|
}
|
|
6567
6769
|
]
|
|
6568
6770
|
}
|
|
@@ -6616,7 +6818,10 @@ var Karura$4 = {
|
|
|
6616
6818
|
Parachain: 2107
|
|
6617
6819
|
},
|
|
6618
6820
|
{
|
|
6619
|
-
GeneralKey:
|
|
6821
|
+
GeneralKey: {
|
|
6822
|
+
length: 4,
|
|
6823
|
+
data: "0x4b49434f00000000000000000000000000000000000000000000000000000000"
|
|
6824
|
+
}
|
|
6620
6825
|
}
|
|
6621
6826
|
]
|
|
6622
6827
|
}
|
|
@@ -6647,7 +6852,10 @@ var Karura$4 = {
|
|
|
6647
6852
|
Parachain: 2118
|
|
6648
6853
|
},
|
|
6649
6854
|
{
|
|
6650
|
-
GeneralKey:
|
|
6855
|
+
GeneralKey: {
|
|
6856
|
+
length: 2,
|
|
6857
|
+
data: "0x4c54000000000000000000000000000000000000000000000000000000000000"
|
|
6858
|
+
}
|
|
6651
6859
|
}
|
|
6652
6860
|
]
|
|
6653
6861
|
}
|
|
@@ -6658,6 +6866,7 @@ var Karura$4 = {
|
|
|
6658
6866
|
var Kintsugi$4 = {
|
|
6659
6867
|
relayChainAssetSymbol: "KSM",
|
|
6660
6868
|
nativeAssetSymbol: "KINT",
|
|
6869
|
+
isEVM: false,
|
|
6661
6870
|
nativeAssets: [
|
|
6662
6871
|
{
|
|
6663
6872
|
symbol: "KINT",
|
|
@@ -6718,7 +6927,10 @@ var Kintsugi$4 = {
|
|
|
6718
6927
|
Parachain: 2000
|
|
6719
6928
|
},
|
|
6720
6929
|
{
|
|
6721
|
-
GeneralKey:
|
|
6930
|
+
GeneralKey: {
|
|
6931
|
+
length: 2,
|
|
6932
|
+
data: "0x0081000000000000000000000000000000000000000000000000000000000000"
|
|
6933
|
+
}
|
|
6722
6934
|
}
|
|
6723
6935
|
]
|
|
6724
6936
|
}
|
|
@@ -6736,7 +6948,10 @@ var Kintsugi$4 = {
|
|
|
6736
6948
|
Parachain: 2000
|
|
6737
6949
|
},
|
|
6738
6950
|
{
|
|
6739
|
-
GeneralKey:
|
|
6951
|
+
GeneralKey: {
|
|
6952
|
+
length: 2,
|
|
6953
|
+
data: "0x0083000000000000000000000000000000000000000000000000000000000000"
|
|
6954
|
+
}
|
|
6740
6955
|
}
|
|
6741
6956
|
]
|
|
6742
6957
|
}
|
|
@@ -6754,7 +6969,10 @@ var Kintsugi$4 = {
|
|
|
6754
6969
|
Parachain: 2001
|
|
6755
6970
|
},
|
|
6756
6971
|
{
|
|
6757
|
-
GeneralKey:
|
|
6972
|
+
GeneralKey: {
|
|
6973
|
+
length: 2,
|
|
6974
|
+
data: "0x0104000000000000000000000000000000000000000000000000000000000000"
|
|
6975
|
+
}
|
|
6758
6976
|
}
|
|
6759
6977
|
]
|
|
6760
6978
|
}
|
|
@@ -6816,6 +7034,7 @@ var Litmus = {
|
|
|
6816
7034
|
var Moonriver$4 = {
|
|
6817
7035
|
relayChainAssetSymbol: "KSM",
|
|
6818
7036
|
nativeAssetSymbol: "MOVR",
|
|
7037
|
+
isEVM: true,
|
|
6819
7038
|
nativeAssets: [
|
|
6820
7039
|
{
|
|
6821
7040
|
symbol: "MOVR",
|
|
@@ -6888,7 +7107,10 @@ var Moonriver$4 = {
|
|
|
6888
7107
|
Parachain: 2000
|
|
6889
7108
|
},
|
|
6890
7109
|
{
|
|
6891
|
-
GeneralKey:
|
|
7110
|
+
GeneralKey: {
|
|
7111
|
+
length: 2,
|
|
7112
|
+
data: "0x0081000000000000000000000000000000000000000000000000000000000000"
|
|
7113
|
+
}
|
|
6892
7114
|
}
|
|
6893
7115
|
]
|
|
6894
7116
|
}
|
|
@@ -6906,7 +7128,10 @@ var Moonriver$4 = {
|
|
|
6906
7128
|
Parachain: 2000
|
|
6907
7129
|
},
|
|
6908
7130
|
{
|
|
6909
|
-
GeneralKey:
|
|
7131
|
+
GeneralKey: {
|
|
7132
|
+
length: 2,
|
|
7133
|
+
data: "0x0080000000000000000000000000000000000000000000000000000000000000"
|
|
7134
|
+
}
|
|
6910
7135
|
}
|
|
6911
7136
|
]
|
|
6912
7137
|
}
|
|
@@ -6924,7 +7149,10 @@ var Moonriver$4 = {
|
|
|
6924
7149
|
Parachain: 2001
|
|
6925
7150
|
},
|
|
6926
7151
|
{
|
|
6927
|
-
GeneralKey:
|
|
7152
|
+
GeneralKey: {
|
|
7153
|
+
length: 2,
|
|
7154
|
+
data: "0x0104000000000000000000000000000000000000000000000000000000000000"
|
|
7155
|
+
}
|
|
6928
7156
|
}
|
|
6929
7157
|
]
|
|
6930
7158
|
}
|
|
@@ -6942,7 +7170,10 @@ var Moonriver$4 = {
|
|
|
6942
7170
|
Parachain: 2001
|
|
6943
7171
|
},
|
|
6944
7172
|
{
|
|
6945
|
-
GeneralKey:
|
|
7173
|
+
GeneralKey: {
|
|
7174
|
+
length: 2,
|
|
7175
|
+
data: "0x0101000000000000000000000000000000000000000000000000000000000000"
|
|
7176
|
+
}
|
|
6946
7177
|
}
|
|
6947
7178
|
]
|
|
6948
7179
|
}
|
|
@@ -6960,7 +7191,10 @@ var Moonriver$4 = {
|
|
|
6960
7191
|
Parachain: 2001
|
|
6961
7192
|
},
|
|
6962
7193
|
{
|
|
6963
|
-
GeneralKey:
|
|
7194
|
+
GeneralKey: {
|
|
7195
|
+
length: 2,
|
|
7196
|
+
data: "0x010a000000000000000000000000000000000000000000000000000000000000"
|
|
7197
|
+
}
|
|
6964
7198
|
}
|
|
6965
7199
|
]
|
|
6966
7200
|
}
|
|
@@ -6978,7 +7212,10 @@ var Moonriver$4 = {
|
|
|
6978
7212
|
Parachain: 2001
|
|
6979
7213
|
},
|
|
6980
7214
|
{
|
|
6981
|
-
GeneralKey:
|
|
7215
|
+
GeneralKey: {
|
|
7216
|
+
length: 2,
|
|
7217
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
7218
|
+
}
|
|
6982
7219
|
}
|
|
6983
7220
|
]
|
|
6984
7221
|
}
|
|
@@ -7035,7 +7272,10 @@ var Moonriver$4 = {
|
|
|
7035
7272
|
Parachain: 2015
|
|
7036
7273
|
},
|
|
7037
7274
|
{
|
|
7038
|
-
GeneralKey:
|
|
7275
|
+
GeneralKey: {
|
|
7276
|
+
length: 4,
|
|
7277
|
+
data: "0x5445455200000000000000000000000000000000000000000000000000000000"
|
|
7278
|
+
}
|
|
7039
7279
|
}
|
|
7040
7280
|
]
|
|
7041
7281
|
}
|
|
@@ -7079,7 +7319,10 @@ var Moonriver$4 = {
|
|
|
7079
7319
|
Parachain: 2085
|
|
7080
7320
|
},
|
|
7081
7321
|
{
|
|
7082
|
-
GeneralKey:
|
|
7322
|
+
GeneralKey: {
|
|
7323
|
+
length: 3,
|
|
7324
|
+
data: "0x484b4f0000000000000000000000000000000000000000000000000000000000"
|
|
7325
|
+
}
|
|
7083
7326
|
}
|
|
7084
7327
|
]
|
|
7085
7328
|
}
|
|
@@ -7110,7 +7353,10 @@ var Moonriver$4 = {
|
|
|
7110
7353
|
Parachain: 2092
|
|
7111
7354
|
},
|
|
7112
7355
|
{
|
|
7113
|
-
GeneralKey:
|
|
7356
|
+
GeneralKey: {
|
|
7357
|
+
length: 2,
|
|
7358
|
+
data: "0x000b000000000000000000000000000000000000000000000000000000000000"
|
|
7359
|
+
}
|
|
7114
7360
|
}
|
|
7115
7361
|
]
|
|
7116
7362
|
}
|
|
@@ -7128,7 +7374,10 @@ var Moonriver$4 = {
|
|
|
7128
7374
|
Parachain: 2092
|
|
7129
7375
|
},
|
|
7130
7376
|
{
|
|
7131
|
-
GeneralKey:
|
|
7377
|
+
GeneralKey: {
|
|
7378
|
+
length: 2,
|
|
7379
|
+
data: "0x000c000000000000000000000000000000000000000000000000000000000000"
|
|
7380
|
+
}
|
|
7132
7381
|
}
|
|
7133
7382
|
]
|
|
7134
7383
|
}
|
|
@@ -7182,7 +7431,10 @@ var Moonriver$4 = {
|
|
|
7182
7431
|
Parachain: 2110
|
|
7183
7432
|
},
|
|
7184
7433
|
{
|
|
7185
|
-
GeneralKey:
|
|
7434
|
+
GeneralKey: {
|
|
7435
|
+
length: 4,
|
|
7436
|
+
data: "0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
7437
|
+
}
|
|
7186
7438
|
}
|
|
7187
7439
|
]
|
|
7188
7440
|
}
|
|
@@ -7224,6 +7476,7 @@ var Moonriver$4 = {
|
|
|
7224
7476
|
var ParallelHeiko$4 = {
|
|
7225
7477
|
relayChainAssetSymbol: "KSM",
|
|
7226
7478
|
nativeAssetSymbol: "HKO",
|
|
7479
|
+
isEVM: false,
|
|
7227
7480
|
nativeAssets: [
|
|
7228
7481
|
{
|
|
7229
7482
|
symbol: "HKO",
|
|
@@ -7275,7 +7528,10 @@ var ParallelHeiko$4 = {
|
|
|
7275
7528
|
Parachain: 2000
|
|
7276
7529
|
},
|
|
7277
7530
|
{
|
|
7278
|
-
GeneralKey:
|
|
7531
|
+
GeneralKey: {
|
|
7532
|
+
length: 2,
|
|
7533
|
+
data: "0x0083000000000000000000000000000000000000000000000000000000000000"
|
|
7534
|
+
}
|
|
7279
7535
|
}
|
|
7280
7536
|
]
|
|
7281
7537
|
}
|
|
@@ -7293,7 +7549,10 @@ var ParallelHeiko$4 = {
|
|
|
7293
7549
|
Parachain: 2000
|
|
7294
7550
|
},
|
|
7295
7551
|
{
|
|
7296
|
-
GeneralKey:
|
|
7552
|
+
GeneralKey: {
|
|
7553
|
+
length: 2,
|
|
7554
|
+
data: "0x0080000000000000000000000000000000000000000000000000000000000000"
|
|
7555
|
+
}
|
|
7297
7556
|
}
|
|
7298
7557
|
]
|
|
7299
7558
|
}
|
|
@@ -7363,7 +7622,10 @@ var ParallelHeiko$4 = {
|
|
|
7363
7622
|
Parachain: 2092
|
|
7364
7623
|
},
|
|
7365
7624
|
{
|
|
7366
|
-
GeneralKey:
|
|
7625
|
+
GeneralKey: {
|
|
7626
|
+
length: 2,
|
|
7627
|
+
data: "0x000b000000000000000000000000000000000000000000000000000000000000"
|
|
7628
|
+
}
|
|
7367
7629
|
}
|
|
7368
7630
|
]
|
|
7369
7631
|
}
|
|
@@ -7381,7 +7643,10 @@ var ParallelHeiko$4 = {
|
|
|
7381
7643
|
Parachain: 2092
|
|
7382
7644
|
},
|
|
7383
7645
|
{
|
|
7384
|
-
GeneralKey:
|
|
7646
|
+
GeneralKey: {
|
|
7647
|
+
length: 2,
|
|
7648
|
+
data: "0x000c000000000000000000000000000000000000000000000000000000000000"
|
|
7649
|
+
}
|
|
7385
7650
|
}
|
|
7386
7651
|
]
|
|
7387
7652
|
}
|
|
@@ -7392,6 +7657,7 @@ var ParallelHeiko$4 = {
|
|
|
7392
7657
|
var Picasso$4 = {
|
|
7393
7658
|
relayChainAssetSymbol: "KSM",
|
|
7394
7659
|
nativeAssetSymbol: "PICA",
|
|
7660
|
+
isEVM: false,
|
|
7395
7661
|
nativeAssets: [
|
|
7396
7662
|
{
|
|
7397
7663
|
symbol: "PICA",
|
|
@@ -7754,6 +8020,7 @@ var Picasso$4 = {
|
|
|
7754
8020
|
var Pioneer$4 = {
|
|
7755
8021
|
relayChainAssetSymbol: "KSM",
|
|
7756
8022
|
nativeAssetSymbol: "NEER",
|
|
8023
|
+
isEVM: false,
|
|
7757
8024
|
nativeAssets: [
|
|
7758
8025
|
{
|
|
7759
8026
|
symbol: "NEER",
|
|
@@ -7766,6 +8033,7 @@ var Pioneer$4 = {
|
|
|
7766
8033
|
var Quartz$4 = {
|
|
7767
8034
|
relayChainAssetSymbol: "KSM",
|
|
7768
8035
|
nativeAssetSymbol: "QTZ",
|
|
8036
|
+
isEVM: false,
|
|
7769
8037
|
nativeAssets: [
|
|
7770
8038
|
{
|
|
7771
8039
|
symbol: "QTZ",
|
|
@@ -7778,6 +8046,7 @@ var Quartz$4 = {
|
|
|
7778
8046
|
var RobonomicsKusama$4 = {
|
|
7779
8047
|
relayChainAssetSymbol: "KSM",
|
|
7780
8048
|
nativeAssetSymbol: "XRT",
|
|
8049
|
+
isEVM: false,
|
|
7781
8050
|
nativeAssets: [
|
|
7782
8051
|
{
|
|
7783
8052
|
symbol: "XRT",
|
|
@@ -7790,6 +8059,7 @@ var RobonomicsKusama$4 = {
|
|
|
7790
8059
|
var RobonomicsPolkadot$4 = {
|
|
7791
8060
|
relayChainAssetSymbol: "DOT",
|
|
7792
8061
|
nativeAssetSymbol: "XRT",
|
|
8062
|
+
isEVM: false,
|
|
7793
8063
|
nativeAssets: [
|
|
7794
8064
|
{
|
|
7795
8065
|
symbol: "XRT",
|
|
@@ -7807,6 +8077,7 @@ var RobonomicsPolkadot$4 = {
|
|
|
7807
8077
|
var PeopleKusama$4 = {
|
|
7808
8078
|
relayChainAssetSymbol: "KSM",
|
|
7809
8079
|
nativeAssetSymbol: "KSM",
|
|
8080
|
+
isEVM: false,
|
|
7810
8081
|
nativeAssets: [
|
|
7811
8082
|
{
|
|
7812
8083
|
symbol: "KSM",
|
|
@@ -7819,6 +8090,7 @@ var PeopleKusama$4 = {
|
|
|
7819
8090
|
var PeoplePolkadot$4 = {
|
|
7820
8091
|
relayChainAssetSymbol: "DOT",
|
|
7821
8092
|
nativeAssetSymbol: "DOT",
|
|
8093
|
+
isEVM: false,
|
|
7822
8094
|
nativeAssets: [
|
|
7823
8095
|
{
|
|
7824
8096
|
symbol: "DOT",
|
|
@@ -7831,6 +8103,7 @@ var PeoplePolkadot$4 = {
|
|
|
7831
8103
|
var Shiden$4 = {
|
|
7832
8104
|
relayChainAssetSymbol: "KSM",
|
|
7833
8105
|
nativeAssetSymbol: "SDN",
|
|
8106
|
+
isEVM: false,
|
|
7834
8107
|
nativeAssets: [
|
|
7835
8108
|
{
|
|
7836
8109
|
symbol: "SDN",
|
|
@@ -7903,7 +8176,10 @@ var Shiden$4 = {
|
|
|
7903
8176
|
Parachain: 2000
|
|
7904
8177
|
},
|
|
7905
8178
|
{
|
|
7906
|
-
GeneralKey:
|
|
8179
|
+
GeneralKey: {
|
|
8180
|
+
length: 2,
|
|
8181
|
+
data: "0x0080000000000000000000000000000000000000000000000000000000000000"
|
|
8182
|
+
}
|
|
7907
8183
|
}
|
|
7908
8184
|
]
|
|
7909
8185
|
}
|
|
@@ -7921,7 +8197,10 @@ var Shiden$4 = {
|
|
|
7921
8197
|
Parachain: 2000
|
|
7922
8198
|
},
|
|
7923
8199
|
{
|
|
7924
|
-
GeneralKey:
|
|
8200
|
+
GeneralKey: {
|
|
8201
|
+
length: 2,
|
|
8202
|
+
data: "0x0083000000000000000000000000000000000000000000000000000000000000"
|
|
8203
|
+
}
|
|
7925
8204
|
}
|
|
7926
8205
|
]
|
|
7927
8206
|
}
|
|
@@ -7939,7 +8218,10 @@ var Shiden$4 = {
|
|
|
7939
8218
|
Parachain: 2000
|
|
7940
8219
|
},
|
|
7941
8220
|
{
|
|
7942
|
-
GeneralKey:
|
|
8221
|
+
GeneralKey: {
|
|
8222
|
+
length: 2,
|
|
8223
|
+
data: "0x0081000000000000000000000000000000000000000000000000000000000000"
|
|
8224
|
+
}
|
|
7943
8225
|
}
|
|
7944
8226
|
]
|
|
7945
8227
|
}
|
|
@@ -7957,7 +8239,10 @@ var Shiden$4 = {
|
|
|
7957
8239
|
Parachain: 2001
|
|
7958
8240
|
},
|
|
7959
8241
|
{
|
|
7960
|
-
GeneralKey:
|
|
8242
|
+
GeneralKey: {
|
|
8243
|
+
length: 2,
|
|
8244
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
8245
|
+
}
|
|
7961
8246
|
}
|
|
7962
8247
|
]
|
|
7963
8248
|
}
|
|
@@ -7975,7 +8260,10 @@ var Shiden$4 = {
|
|
|
7975
8260
|
Parachain: 2001
|
|
7976
8261
|
},
|
|
7977
8262
|
{
|
|
7978
|
-
GeneralKey:
|
|
8263
|
+
GeneralKey: {
|
|
8264
|
+
length: 2,
|
|
8265
|
+
data: "0x0404000000000000000000000000000000000000000000000000000000000000"
|
|
8266
|
+
}
|
|
7979
8267
|
}
|
|
7980
8268
|
]
|
|
7981
8269
|
}
|
|
@@ -7993,7 +8281,10 @@ var Shiden$4 = {
|
|
|
7993
8281
|
Parachain: 2001
|
|
7994
8282
|
},
|
|
7995
8283
|
{
|
|
7996
|
-
GeneralKey:
|
|
8284
|
+
GeneralKey: {
|
|
8285
|
+
length: 2,
|
|
8286
|
+
data: "0x0104000000000000000000000000000000000000000000000000000000000000"
|
|
8287
|
+
}
|
|
7997
8288
|
}
|
|
7998
8289
|
]
|
|
7999
8290
|
}
|
|
@@ -8068,7 +8359,10 @@ var Shiden$4 = {
|
|
|
8068
8359
|
Parachain: 2092
|
|
8069
8360
|
},
|
|
8070
8361
|
{
|
|
8071
|
-
GeneralKey:
|
|
8362
|
+
GeneralKey: {
|
|
8363
|
+
length: 2,
|
|
8364
|
+
data: "0x000b000000000000000000000000000000000000000000000000000000000000"
|
|
8365
|
+
}
|
|
8072
8366
|
}
|
|
8073
8367
|
]
|
|
8074
8368
|
}
|
|
@@ -8086,7 +8380,10 @@ var Shiden$4 = {
|
|
|
8086
8380
|
Parachain: 2092
|
|
8087
8381
|
},
|
|
8088
8382
|
{
|
|
8089
|
-
GeneralKey:
|
|
8383
|
+
GeneralKey: {
|
|
8384
|
+
length: 2,
|
|
8385
|
+
data: "0x000c000000000000000000000000000000000000000000000000000000000000"
|
|
8386
|
+
}
|
|
8090
8387
|
}
|
|
8091
8388
|
]
|
|
8092
8389
|
}
|
|
@@ -8128,6 +8425,7 @@ var Shiden$4 = {
|
|
|
8128
8425
|
var AssetHubKusama$4 = {
|
|
8129
8426
|
relayChainAssetSymbol: "KSM",
|
|
8130
8427
|
nativeAssetSymbol: "KSM",
|
|
8428
|
+
isEVM: false,
|
|
8131
8429
|
nativeAssets: [
|
|
8132
8430
|
{
|
|
8133
8431
|
symbol: "KSM",
|
|
@@ -8222,11 +8520,13 @@ var AssetHubKusama$4 = {
|
|
|
8222
8520
|
multiLocation: {
|
|
8223
8521
|
parents: 2,
|
|
8224
8522
|
interior: {
|
|
8225
|
-
X1:
|
|
8226
|
-
|
|
8227
|
-
|
|
8523
|
+
X1: [
|
|
8524
|
+
{
|
|
8525
|
+
GlobalConsensus: {
|
|
8526
|
+
polkadot: null
|
|
8527
|
+
}
|
|
8228
8528
|
}
|
|
8229
|
-
|
|
8529
|
+
]
|
|
8230
8530
|
}
|
|
8231
8531
|
}
|
|
8232
8532
|
},
|
|
@@ -8253,9 +8553,11 @@ var AssetHubKusama$4 = {
|
|
|
8253
8553
|
multiLocation: {
|
|
8254
8554
|
parents: 1,
|
|
8255
8555
|
interior: {
|
|
8256
|
-
X1:
|
|
8257
|
-
|
|
8258
|
-
|
|
8556
|
+
X1: [
|
|
8557
|
+
{
|
|
8558
|
+
Parachain: 2123
|
|
8559
|
+
}
|
|
8560
|
+
]
|
|
8259
8561
|
}
|
|
8260
8562
|
}
|
|
8261
8563
|
},
|
|
@@ -8275,12 +8577,27 @@ var AssetHubKusama$4 = {
|
|
|
8275
8577
|
]
|
|
8276
8578
|
}
|
|
8277
8579
|
}
|
|
8580
|
+
},
|
|
8581
|
+
{
|
|
8582
|
+
symbol: "TEER",
|
|
8583
|
+
decimals: 12,
|
|
8584
|
+
multiLocation: {
|
|
8585
|
+
parents: 1,
|
|
8586
|
+
interior: {
|
|
8587
|
+
X1: [
|
|
8588
|
+
{
|
|
8589
|
+
Parachain: 2015
|
|
8590
|
+
}
|
|
8591
|
+
]
|
|
8592
|
+
}
|
|
8593
|
+
}
|
|
8278
8594
|
}
|
|
8279
8595
|
]
|
|
8280
8596
|
};
|
|
8281
8597
|
var CoretimeKusama$4 = {
|
|
8282
8598
|
relayChainAssetSymbol: "KSM",
|
|
8283
8599
|
nativeAssetSymbol: "KSM",
|
|
8600
|
+
isEVM: false,
|
|
8284
8601
|
nativeAssets: [
|
|
8285
8602
|
{
|
|
8286
8603
|
symbol: "KSM",
|
|
@@ -8293,6 +8610,7 @@ var CoretimeKusama$4 = {
|
|
|
8293
8610
|
var CoretimePolkadot$4 = {
|
|
8294
8611
|
relayChainAssetSymbol: "DOT",
|
|
8295
8612
|
nativeAssetSymbol: "DOT",
|
|
8613
|
+
isEVM: false,
|
|
8296
8614
|
nativeAssets: [
|
|
8297
8615
|
{
|
|
8298
8616
|
symbol: "DOT",
|
|
@@ -8305,6 +8623,7 @@ var CoretimePolkadot$4 = {
|
|
|
8305
8623
|
var Turing$4 = {
|
|
8306
8624
|
relayChainAssetSymbol: "KSM",
|
|
8307
8625
|
nativeAssetSymbol: "TUR",
|
|
8626
|
+
isEVM: false,
|
|
8308
8627
|
nativeAssets: [
|
|
8309
8628
|
{
|
|
8310
8629
|
symbol: "TUR",
|
|
@@ -8335,7 +8654,10 @@ var Turing$4 = {
|
|
|
8335
8654
|
Parachain: 2000
|
|
8336
8655
|
},
|
|
8337
8656
|
{
|
|
8338
|
-
GeneralKey:
|
|
8657
|
+
GeneralKey: {
|
|
8658
|
+
length: 2,
|
|
8659
|
+
data: "0x0081000000000000000000000000000000000000000000000000000000000000"
|
|
8660
|
+
}
|
|
8339
8661
|
}
|
|
8340
8662
|
]
|
|
8341
8663
|
}
|
|
@@ -8353,7 +8675,10 @@ var Turing$4 = {
|
|
|
8353
8675
|
Parachain: 2000
|
|
8354
8676
|
},
|
|
8355
8677
|
{
|
|
8356
|
-
GeneralKey:
|
|
8678
|
+
GeneralKey: {
|
|
8679
|
+
length: 2,
|
|
8680
|
+
data: "0x0080000000000000000000000000000000000000000000000000000000000000"
|
|
8681
|
+
}
|
|
8357
8682
|
}
|
|
8358
8683
|
]
|
|
8359
8684
|
}
|
|
@@ -8371,7 +8696,10 @@ var Turing$4 = {
|
|
|
8371
8696
|
Parachain: 2000
|
|
8372
8697
|
},
|
|
8373
8698
|
{
|
|
8374
|
-
GeneralKey:
|
|
8699
|
+
GeneralKey: {
|
|
8700
|
+
length: 2,
|
|
8701
|
+
data: "0x0083000000000000000000000000000000000000000000000000000000000000"
|
|
8702
|
+
}
|
|
8375
8703
|
}
|
|
8376
8704
|
]
|
|
8377
8705
|
}
|
|
@@ -8433,7 +8761,10 @@ var Turing$4 = {
|
|
|
8433
8761
|
Parachain: 2085
|
|
8434
8762
|
},
|
|
8435
8763
|
{
|
|
8436
|
-
GeneralKey:
|
|
8764
|
+
GeneralKey: {
|
|
8765
|
+
length: 3,
|
|
8766
|
+
data: "0x484b4f0000000000000000000000000000000000000000000000000000000000"
|
|
8767
|
+
}
|
|
8437
8768
|
}
|
|
8438
8769
|
]
|
|
8439
8770
|
}
|
|
@@ -8451,7 +8782,10 @@ var Turing$4 = {
|
|
|
8451
8782
|
Parachain: 2085
|
|
8452
8783
|
},
|
|
8453
8784
|
{
|
|
8454
|
-
GeneralKey:
|
|
8785
|
+
GeneralKey: {
|
|
8786
|
+
length: 4,
|
|
8787
|
+
data: "0x734b534d00000000000000000000000000000000000000000000000000000000"
|
|
8788
|
+
}
|
|
8455
8789
|
}
|
|
8456
8790
|
]
|
|
8457
8791
|
}
|
|
@@ -8469,7 +8803,10 @@ var Turing$4 = {
|
|
|
8469
8803
|
Parachain: 2110
|
|
8470
8804
|
},
|
|
8471
8805
|
{
|
|
8472
|
-
GeneralKey:
|
|
8806
|
+
GeneralKey: {
|
|
8807
|
+
length: 4,
|
|
8808
|
+
data: "0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
8809
|
+
}
|
|
8473
8810
|
}
|
|
8474
8811
|
]
|
|
8475
8812
|
}
|
|
@@ -8493,6 +8830,7 @@ var Turing$4 = {
|
|
|
8493
8830
|
var Unique$4 = {
|
|
8494
8831
|
relayChainAssetSymbol: "DOT",
|
|
8495
8832
|
nativeAssetSymbol: "UNQ",
|
|
8833
|
+
isEVM: false,
|
|
8496
8834
|
nativeAssets: [
|
|
8497
8835
|
{
|
|
8498
8836
|
symbol: "UNQ",
|
|
@@ -8505,6 +8843,7 @@ var Unique$4 = {
|
|
|
8505
8843
|
var Crust$4 = {
|
|
8506
8844
|
relayChainAssetSymbol: "DOT",
|
|
8507
8845
|
nativeAssetSymbol: "CRU",
|
|
8846
|
+
isEVM: false,
|
|
8508
8847
|
nativeAssets: [
|
|
8509
8848
|
{
|
|
8510
8849
|
symbol: "CRU",
|
|
@@ -8527,6 +8866,7 @@ var Crust$4 = {
|
|
|
8527
8866
|
var Manta$4 = {
|
|
8528
8867
|
relayChainAssetSymbol: "DOT",
|
|
8529
8868
|
nativeAssetSymbol: "MANTA",
|
|
8869
|
+
isEVM: false,
|
|
8530
8870
|
nativeAssets: [
|
|
8531
8871
|
{
|
|
8532
8872
|
symbol: "MANTA",
|
|
@@ -8699,6 +9039,7 @@ var Manta$4 = {
|
|
|
8699
9039
|
var Nodle$4 = {
|
|
8700
9040
|
relayChainAssetSymbol: "DOT",
|
|
8701
9041
|
nativeAssetSymbol: "NODL",
|
|
9042
|
+
isEVM: false,
|
|
8702
9043
|
nativeAssets: [
|
|
8703
9044
|
{
|
|
8704
9045
|
symbol: "NODL",
|
|
@@ -8711,6 +9052,7 @@ var Nodle$4 = {
|
|
|
8711
9052
|
var NeuroWeb$4 = {
|
|
8712
9053
|
relayChainAssetSymbol: "DOT",
|
|
8713
9054
|
nativeAssetSymbol: "NEURO",
|
|
9055
|
+
isEVM: false,
|
|
8714
9056
|
nativeAssets: [
|
|
8715
9057
|
{
|
|
8716
9058
|
symbol: "NEURO",
|
|
@@ -8728,6 +9070,7 @@ var NeuroWeb$4 = {
|
|
|
8728
9070
|
var Pendulum$4 = {
|
|
8729
9071
|
relayChainAssetSymbol: "DOT",
|
|
8730
9072
|
nativeAssetSymbol: "PEN",
|
|
9073
|
+
isEVM: false,
|
|
8731
9074
|
nativeAssets: [
|
|
8732
9075
|
{
|
|
8733
9076
|
symbol: "PEN",
|
|
@@ -8900,7 +9243,10 @@ var Pendulum$4 = {
|
|
|
8900
9243
|
Parachain: 2030
|
|
8901
9244
|
},
|
|
8902
9245
|
{
|
|
8903
|
-
GeneralKey:
|
|
9246
|
+
GeneralKey: {
|
|
9247
|
+
length: 2,
|
|
9248
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
9249
|
+
}
|
|
8904
9250
|
}
|
|
8905
9251
|
]
|
|
8906
9252
|
}
|
|
@@ -8918,7 +9264,10 @@ var Pendulum$4 = {
|
|
|
8918
9264
|
Parachain: 2030
|
|
8919
9265
|
},
|
|
8920
9266
|
{
|
|
8921
|
-
GeneralKey:
|
|
9267
|
+
GeneralKey: {
|
|
9268
|
+
length: 2,
|
|
9269
|
+
data: "0x0900000000000000000000000000000000000000000000000000000000000000"
|
|
9270
|
+
}
|
|
8922
9271
|
}
|
|
8923
9272
|
]
|
|
8924
9273
|
}
|
|
@@ -8978,6 +9327,7 @@ var Pendulum$4 = {
|
|
|
8978
9327
|
var Polkadex$4 = {
|
|
8979
9328
|
relayChainAssetSymbol: "DOT",
|
|
8980
9329
|
nativeAssetSymbol: "PDEX",
|
|
9330
|
+
isEVM: false,
|
|
8981
9331
|
nativeAssets: [
|
|
8982
9332
|
{
|
|
8983
9333
|
symbol: "PDEX",
|
|
@@ -9049,6 +9399,7 @@ var Polkadex$4 = {
|
|
|
9049
9399
|
var Zeitgeist$4 = {
|
|
9050
9400
|
relayChainAssetSymbol: "DOT",
|
|
9051
9401
|
nativeAssetSymbol: "ZTG",
|
|
9402
|
+
isEVM: false,
|
|
9052
9403
|
nativeAssets: [
|
|
9053
9404
|
{
|
|
9054
9405
|
symbol: "ZTG",
|
|
@@ -9128,6 +9479,7 @@ var Zeitgeist$4 = {
|
|
|
9128
9479
|
var Collectives$4 = {
|
|
9129
9480
|
relayChainAssetSymbol: "DOT",
|
|
9130
9481
|
nativeAssetSymbol: "DOT",
|
|
9482
|
+
isEVM: false,
|
|
9131
9483
|
nativeAssets: [
|
|
9132
9484
|
{
|
|
9133
9485
|
symbol: "DOT",
|
|
@@ -9140,6 +9492,7 @@ var Collectives$4 = {
|
|
|
9140
9492
|
var Phala$4 = {
|
|
9141
9493
|
relayChainAssetSymbol: "DOT",
|
|
9142
9494
|
nativeAssetSymbol: "PHA",
|
|
9495
|
+
isEVM: false,
|
|
9143
9496
|
nativeAssets: [
|
|
9144
9497
|
{
|
|
9145
9498
|
symbol: "PHA",
|
|
@@ -9191,7 +9544,10 @@ var Phala$4 = {
|
|
|
9191
9544
|
Parachain: 2000
|
|
9192
9545
|
},
|
|
9193
9546
|
{
|
|
9194
|
-
GeneralKey:
|
|
9547
|
+
GeneralKey: {
|
|
9548
|
+
length: 2,
|
|
9549
|
+
data: "0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
9550
|
+
}
|
|
9195
9551
|
}
|
|
9196
9552
|
]
|
|
9197
9553
|
}
|
|
@@ -9209,7 +9565,10 @@ var Phala$4 = {
|
|
|
9209
9565
|
Parachain: 2000
|
|
9210
9566
|
},
|
|
9211
9567
|
{
|
|
9212
|
-
GeneralKey:
|
|
9568
|
+
GeneralKey: {
|
|
9569
|
+
length: 2,
|
|
9570
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
9571
|
+
}
|
|
9213
9572
|
}
|
|
9214
9573
|
]
|
|
9215
9574
|
}
|
|
@@ -9227,7 +9586,10 @@ var Phala$4 = {
|
|
|
9227
9586
|
Parachain: 2000
|
|
9228
9587
|
},
|
|
9229
9588
|
{
|
|
9230
|
-
GeneralKey:
|
|
9589
|
+
GeneralKey: {
|
|
9590
|
+
length: 2,
|
|
9591
|
+
data: "0x0003000000000000000000000000000000000000000000000000000000000000"
|
|
9592
|
+
}
|
|
9231
9593
|
}
|
|
9232
9594
|
]
|
|
9233
9595
|
}
|
|
@@ -9289,7 +9651,10 @@ var Phala$4 = {
|
|
|
9289
9651
|
Parachain: 2011
|
|
9290
9652
|
},
|
|
9291
9653
|
{
|
|
9292
|
-
GeneralKey:
|
|
9654
|
+
GeneralKey: {
|
|
9655
|
+
length: 3,
|
|
9656
|
+
data: "0x6571640000000000000000000000000000000000000000000000000000000000"
|
|
9657
|
+
}
|
|
9293
9658
|
}
|
|
9294
9659
|
]
|
|
9295
9660
|
}
|
|
@@ -9307,7 +9672,10 @@ var Phala$4 = {
|
|
|
9307
9672
|
Parachain: 2012
|
|
9308
9673
|
},
|
|
9309
9674
|
{
|
|
9310
|
-
GeneralKey:
|
|
9675
|
+
GeneralKey: {
|
|
9676
|
+
length: 4,
|
|
9677
|
+
data: "0x5041524100000000000000000000000000000000000000000000000000000000"
|
|
9678
|
+
}
|
|
9311
9679
|
}
|
|
9312
9680
|
]
|
|
9313
9681
|
}
|
|
@@ -9325,7 +9693,10 @@ var Phala$4 = {
|
|
|
9325
9693
|
Parachain: 2030
|
|
9326
9694
|
},
|
|
9327
9695
|
{
|
|
9328
|
-
GeneralKey:
|
|
9696
|
+
GeneralKey: {
|
|
9697
|
+
length: 2,
|
|
9698
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
9699
|
+
}
|
|
9329
9700
|
}
|
|
9330
9701
|
]
|
|
9331
9702
|
}
|
|
@@ -9343,7 +9714,10 @@ var Phala$4 = {
|
|
|
9343
9714
|
Parachain: 2032
|
|
9344
9715
|
},
|
|
9345
9716
|
{
|
|
9346
|
-
GeneralKey:
|
|
9717
|
+
GeneralKey: {
|
|
9718
|
+
length: 2,
|
|
9719
|
+
data: "0x0002000000000000000000000000000000000000000000000000000000000000"
|
|
9720
|
+
}
|
|
9347
9721
|
}
|
|
9348
9722
|
]
|
|
9349
9723
|
}
|
|
@@ -9361,7 +9735,10 @@ var Phala$4 = {
|
|
|
9361
9735
|
Parachain: 2032
|
|
9362
9736
|
},
|
|
9363
9737
|
{
|
|
9364
|
-
GeneralKey:
|
|
9738
|
+
GeneralKey: {
|
|
9739
|
+
length: 2,
|
|
9740
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
9741
|
+
}
|
|
9365
9742
|
}
|
|
9366
9743
|
]
|
|
9367
9744
|
}
|
|
@@ -9406,6 +9783,7 @@ var Phala$4 = {
|
|
|
9406
9783
|
]
|
|
9407
9784
|
};
|
|
9408
9785
|
var Ethereum = {
|
|
9786
|
+
isEVM: true,
|
|
9409
9787
|
relayChainAssetSymbol: "DOT",
|
|
9410
9788
|
nativeAssetSymbol: "ETH",
|
|
9411
9789
|
nativeAssets: [
|
|
@@ -9673,6 +10051,7 @@ var Ethereum = {
|
|
|
9673
10051
|
var Khala$4 = {
|
|
9674
10052
|
relayChainAssetSymbol: "KSM",
|
|
9675
10053
|
nativeAssetSymbol: "PHA",
|
|
10054
|
+
isEVM: false,
|
|
9676
10055
|
nativeAssets: [
|
|
9677
10056
|
{
|
|
9678
10057
|
symbol: "PHA",
|
|
@@ -9703,7 +10082,10 @@ var Khala$4 = {
|
|
|
9703
10082
|
Parachain: 2000
|
|
9704
10083
|
},
|
|
9705
10084
|
{
|
|
9706
|
-
GeneralKey:
|
|
10085
|
+
GeneralKey: {
|
|
10086
|
+
length: 2,
|
|
10087
|
+
data: "0x0080000000000000000000000000000000000000000000000000000000000000"
|
|
10088
|
+
}
|
|
9707
10089
|
}
|
|
9708
10090
|
]
|
|
9709
10091
|
}
|
|
@@ -9721,7 +10103,10 @@ var Khala$4 = {
|
|
|
9721
10103
|
Parachain: 2000
|
|
9722
10104
|
},
|
|
9723
10105
|
{
|
|
9724
|
-
GeneralKey:
|
|
10106
|
+
GeneralKey: {
|
|
10107
|
+
length: 2,
|
|
10108
|
+
data: "0x0081000000000000000000000000000000000000000000000000000000000000"
|
|
10109
|
+
}
|
|
9725
10110
|
}
|
|
9726
10111
|
]
|
|
9727
10112
|
}
|
|
@@ -9739,7 +10124,10 @@ var Khala$4 = {
|
|
|
9739
10124
|
Parachain: 2001
|
|
9740
10125
|
},
|
|
9741
10126
|
{
|
|
9742
|
-
GeneralKey:
|
|
10127
|
+
GeneralKey: {
|
|
10128
|
+
length: 2,
|
|
10129
|
+
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
10130
|
+
}
|
|
9743
10131
|
}
|
|
9744
10132
|
]
|
|
9745
10133
|
}
|
|
@@ -9757,7 +10145,10 @@ var Khala$4 = {
|
|
|
9757
10145
|
Parachain: 2001
|
|
9758
10146
|
},
|
|
9759
10147
|
{
|
|
9760
|
-
GeneralKey:
|
|
10148
|
+
GeneralKey: {
|
|
10149
|
+
length: 2,
|
|
10150
|
+
data: "0x0207000000000000000000000000000000000000000000000000000000000000"
|
|
10151
|
+
}
|
|
9761
10152
|
}
|
|
9762
10153
|
]
|
|
9763
10154
|
}
|
|
@@ -9819,7 +10210,10 @@ var Khala$4 = {
|
|
|
9819
10210
|
Parachain: 2085
|
|
9820
10211
|
},
|
|
9821
10212
|
{
|
|
9822
|
-
GeneralKey:
|
|
10213
|
+
GeneralKey: {
|
|
10214
|
+
length: 3,
|
|
10215
|
+
data: "0x484b4f0000000000000000000000000000000000000000000000000000000000"
|
|
10216
|
+
}
|
|
9823
10217
|
}
|
|
9824
10218
|
]
|
|
9825
10219
|
}
|
|
@@ -9850,7 +10244,10 @@ var Khala$4 = {
|
|
|
9850
10244
|
Parachain: 2090
|
|
9851
10245
|
},
|
|
9852
10246
|
{
|
|
9853
|
-
GeneralKey:
|
|
10247
|
+
GeneralKey: {
|
|
10248
|
+
length: 4,
|
|
10249
|
+
data: "0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
10250
|
+
}
|
|
9854
10251
|
}
|
|
9855
10252
|
]
|
|
9856
10253
|
}
|
|
@@ -9888,7 +10285,10 @@ var Khala$4 = {
|
|
|
9888
10285
|
Parachain: 2096
|
|
9889
10286
|
},
|
|
9890
10287
|
{
|
|
9891
|
-
GeneralKey:
|
|
10288
|
+
GeneralKey: {
|
|
10289
|
+
length: 9,
|
|
10290
|
+
data: "0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
10291
|
+
}
|
|
9892
10292
|
}
|
|
9893
10293
|
]
|
|
9894
10294
|
}
|
|
@@ -9906,7 +10306,10 @@ var Khala$4 = {
|
|
|
9906
10306
|
Parachain: 2096
|
|
9907
10307
|
},
|
|
9908
10308
|
{
|
|
9909
|
-
GeneralKey:
|
|
10309
|
+
GeneralKey: {
|
|
10310
|
+
length: 9,
|
|
10311
|
+
data: "0x0200000000000000000000000000000000000000000000000000000000000000"
|
|
10312
|
+
}
|
|
9910
10313
|
}
|
|
9911
10314
|
]
|
|
9912
10315
|
}
|
|
@@ -9948,6 +10351,7 @@ var Khala$4 = {
|
|
|
9948
10351
|
var Mythos$4 = {
|
|
9949
10352
|
relayChainAssetSymbol: "DOT",
|
|
9950
10353
|
nativeAssetSymbol: "MYTH",
|
|
10354
|
+
isEVM: true,
|
|
9951
10355
|
nativeAssets: [
|
|
9952
10356
|
{
|
|
9953
10357
|
symbol: "MYTH",
|
|
@@ -9960,6 +10364,7 @@ var Mythos$4 = {
|
|
|
9960
10364
|
var Peaq$4 = {
|
|
9961
10365
|
relayChainAssetSymbol: "DOT",
|
|
9962
10366
|
nativeAssetSymbol: "PEAQ",
|
|
10367
|
+
isEVM: false,
|
|
9963
10368
|
nativeAssets: [
|
|
9964
10369
|
{
|
|
9965
10370
|
symbol: "PEAQ",
|
|
@@ -11586,6 +11991,77 @@ var getNodeProviders = function getNodeProviders(node) {
|
|
|
11586
11991
|
});
|
|
11587
11992
|
};
|
|
11588
11993
|
|
|
11994
|
+
var getNodeProvider = function getNodeProvider(node) {
|
|
11995
|
+
if (isRelayChain(node)) {
|
|
11996
|
+
var _getNodeConfig = getNodeConfig(node),
|
|
11997
|
+
providers = _getNodeConfig.providers;
|
|
11998
|
+
if (providers.length === 0) {
|
|
11999
|
+
throw new Error("No providers found for node ".concat(node));
|
|
12000
|
+
}
|
|
12001
|
+
return providers[0].endpoint;
|
|
12002
|
+
}
|
|
12003
|
+
return getNode(node).getProvider();
|
|
12004
|
+
};
|
|
12005
|
+
|
|
12006
|
+
/**
|
|
12007
|
+
* Retrieves the parachain ID for a specified node.
|
|
12008
|
+
*
|
|
12009
|
+
* @param node - The node for which to get the paraId.
|
|
12010
|
+
* @returns The parachain ID of the node.
|
|
12011
|
+
*/
|
|
12012
|
+
var getParaId = function getParaId(node) {
|
|
12013
|
+
return getNodeConfig(node).paraId;
|
|
12014
|
+
};
|
|
12015
|
+
|
|
12016
|
+
/**
|
|
12017
|
+
* Used to inform user, that Parachain they wish to use has not yet implemented full XCM Support
|
|
12018
|
+
*/
|
|
12019
|
+
var NoXCMSupportImplementedError = /*#__PURE__*/function (_Error) {
|
|
12020
|
+
/**
|
|
12021
|
+
* Constructs a new NoXCMSupportImplementedError.
|
|
12022
|
+
*
|
|
12023
|
+
* @param node - The node for which XCM support is not implemented.
|
|
12024
|
+
*/
|
|
12025
|
+
function NoXCMSupportImplementedError(node) {
|
|
12026
|
+
var _this;
|
|
12027
|
+
_classCallCheck(this, NoXCMSupportImplementedError);
|
|
12028
|
+
_this = _callSuper(this, NoXCMSupportImplementedError, ["No XCM support implemented for ".concat(node, " node yet.")]);
|
|
12029
|
+
_this.name = 'NoXCMSupportImplemented';
|
|
12030
|
+
return _this;
|
|
12031
|
+
}
|
|
12032
|
+
_inherits(NoXCMSupportImplementedError, _Error);
|
|
12033
|
+
return _createClass(NoXCMSupportImplementedError);
|
|
12034
|
+
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
12035
|
+
|
|
12036
|
+
var findParachainJunction = function findParachainJunction(multilocation) {
|
|
12037
|
+
var interior = multilocation.interior;
|
|
12038
|
+
if (interior === 'Here') {
|
|
12039
|
+
return null;
|
|
12040
|
+
}
|
|
12041
|
+
for (var key in interior) {
|
|
12042
|
+
var junctions = interior[key];
|
|
12043
|
+
if (Array.isArray(junctions)) {
|
|
12044
|
+
var _iterator = _createForOfIteratorHelper(junctions),
|
|
12045
|
+
_step;
|
|
12046
|
+
try {
|
|
12047
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
12048
|
+
var junction = _step.value;
|
|
12049
|
+
if ('Parachain' in junction) {
|
|
12050
|
+
return Number(junction.Parachain);
|
|
12051
|
+
}
|
|
12052
|
+
}
|
|
12053
|
+
} catch (err) {
|
|
12054
|
+
_iterator.e(err);
|
|
12055
|
+
} finally {
|
|
12056
|
+
_iterator.f();
|
|
12057
|
+
}
|
|
12058
|
+
} else if (_typeof(junctions) === 'object' && junctions !== null && 'Parachain' in junctions) {
|
|
12059
|
+
return Number(junctions.Parachain);
|
|
12060
|
+
}
|
|
12061
|
+
}
|
|
12062
|
+
return null;
|
|
12063
|
+
};
|
|
12064
|
+
|
|
11589
12065
|
var createX1Payload = function createX1Payload(version, junction) {
|
|
11590
12066
|
return version === exports.Version.V4 ? {
|
|
11591
12067
|
X1: [junction]
|
|
@@ -11594,282 +12070,147 @@ var createX1Payload = function createX1Payload(version, junction) {
|
|
|
11594
12070
|
};
|
|
11595
12071
|
};
|
|
11596
12072
|
|
|
11597
|
-
|
|
11598
|
-
|
|
11599
|
-
|
|
11600
|
-
var
|
|
11601
|
-
|
|
11602
|
-
|
|
11603
|
-
|
|
11604
|
-
|
|
11605
|
-
|
|
11606
|
-
|
|
11607
|
-
|
|
11608
|
-
|
|
11609
|
-
|
|
11610
|
-
|
|
11611
|
-
|
|
11612
|
-
var obj2Keys = Object.keys(obj2).map(function (key) {
|
|
11613
|
-
return key.toLowerCase();
|
|
11614
|
-
});
|
|
11615
|
-
if (obj1Keys.length !== obj2Keys.length) return false;
|
|
11616
|
-
var _iterator = _createForOfIteratorHelper(obj1Keys),
|
|
11617
|
-
_step;
|
|
11618
|
-
try {
|
|
11619
|
-
var _loop = function _loop() {
|
|
11620
|
-
var key = _step.value;
|
|
11621
|
-
var keyInObj2 = obj2Keys.find(function (k) {
|
|
11622
|
-
return k === key;
|
|
11623
|
-
});
|
|
11624
|
-
if (!keyInObj2) return {
|
|
11625
|
-
v: false
|
|
11626
|
-
};
|
|
11627
|
-
var obj1Value = obj1[Object.keys(obj1).find(function (k) {
|
|
11628
|
-
return k.toLowerCase() === key;
|
|
11629
|
-
})];
|
|
11630
|
-
var obj2Value = obj2[Object.keys(obj2).find(function (k) {
|
|
11631
|
-
return k.toLowerCase() === key;
|
|
11632
|
-
})];
|
|
11633
|
-
if (!_deepEqual(obj1Value, obj2Value)) return {
|
|
11634
|
-
v: false
|
|
11635
|
-
};
|
|
11636
|
-
},
|
|
11637
|
-
_ret;
|
|
11638
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
11639
|
-
_ret = _loop();
|
|
11640
|
-
if (_ret) return _ret.v;
|
|
11641
|
-
}
|
|
11642
|
-
} catch (err) {
|
|
11643
|
-
_iterator.e(err);
|
|
11644
|
-
} finally {
|
|
11645
|
-
_iterator.f();
|
|
11646
|
-
}
|
|
11647
|
-
return true;
|
|
11648
|
-
};
|
|
11649
|
-
|
|
11650
|
-
var generateAddressMultiLocationV4 = function generateAddressMultiLocationV4(api, address) {
|
|
11651
|
-
var isMultiLocation = _typeof(address) === 'object';
|
|
11652
|
-
if (isMultiLocation) {
|
|
11653
|
-
return _defineProperty({}, exports.Version.V4, address);
|
|
12073
|
+
/**
|
|
12074
|
+
* Used to inform user, that currency they wish to use is not registered on either origin or destination Parachain
|
|
12075
|
+
*/
|
|
12076
|
+
var InvalidCurrencyError = /*#__PURE__*/function (_Error) {
|
|
12077
|
+
/**
|
|
12078
|
+
* Constructs a new InvalidCurrencyError.
|
|
12079
|
+
*
|
|
12080
|
+
* @param message - The error message.
|
|
12081
|
+
*/
|
|
12082
|
+
function InvalidCurrencyError(message) {
|
|
12083
|
+
var _this;
|
|
12084
|
+
_classCallCheck(this, InvalidCurrencyError);
|
|
12085
|
+
_this = _callSuper(this, InvalidCurrencyError, [message]);
|
|
12086
|
+
_this.name = 'InvalidCurrencyError';
|
|
12087
|
+
return _this;
|
|
11654
12088
|
}
|
|
11655
|
-
|
|
11656
|
-
return
|
|
11657
|
-
|
|
11658
|
-
interior: {
|
|
11659
|
-
X1: [isEthAddress ? {
|
|
11660
|
-
AccountKey20: {
|
|
11661
|
-
key: address
|
|
11662
|
-
}
|
|
11663
|
-
} : {
|
|
11664
|
-
AccountId32: {
|
|
11665
|
-
id: api.createAccountId(address),
|
|
11666
|
-
network: null
|
|
11667
|
-
}
|
|
11668
|
-
}]
|
|
11669
|
-
}
|
|
11670
|
-
});
|
|
11671
|
-
};
|
|
12089
|
+
_inherits(InvalidCurrencyError, _Error);
|
|
12090
|
+
return _createClass(InvalidCurrencyError);
|
|
12091
|
+
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
11672
12092
|
|
|
11673
|
-
|
|
11674
|
-
|
|
11675
|
-
|
|
11676
|
-
|
|
11677
|
-
|
|
11678
|
-
|
|
11679
|
-
|
|
11680
|
-
|
|
11681
|
-
|
|
11682
|
-
|
|
11683
|
-
|
|
11684
|
-
|
|
11685
|
-
|
|
11686
|
-
|
|
11687
|
-
|
|
11688
|
-
})
|
|
11689
|
-
});
|
|
11690
|
-
}
|
|
11691
|
-
if (scenario === 'ParaToPara' && pallet === 'XTokens') {
|
|
11692
|
-
return _defineProperty({}, version, {
|
|
11693
|
-
parents: exports.Parents.ONE,
|
|
11694
|
-
interior: {
|
|
11695
|
-
X2: [{
|
|
11696
|
-
Parachain: nodeId
|
|
11697
|
-
}, isEthAddress ? {
|
|
11698
|
-
AccountKey20: Object.assign(Object.assign({}, (version === exports.Version.V1 || version === exports.Version.V2) && {
|
|
11699
|
-
network: 'any'
|
|
11700
|
-
}), {
|
|
11701
|
-
key: recipientAddress
|
|
11702
|
-
})
|
|
11703
|
-
} : {
|
|
11704
|
-
AccountId32: Object.assign(Object.assign({}, (version === exports.Version.V1 || version === exports.Version.V2) && {
|
|
11705
|
-
network: 'any'
|
|
11706
|
-
}), {
|
|
11707
|
-
id: api.createAccountId(recipientAddress)
|
|
11708
|
-
})
|
|
11709
|
-
}]
|
|
11710
|
-
}
|
|
11711
|
-
});
|
|
11712
|
-
}
|
|
11713
|
-
if (scenario === 'ParaToPara' && pallet === 'PolkadotXcm') {
|
|
11714
|
-
return _defineProperty({}, version, {
|
|
11715
|
-
parents: exports.Parents.ZERO,
|
|
11716
|
-
interior: createX1Payload(version, isEthAddress ? {
|
|
11717
|
-
AccountKey20: Object.assign(Object.assign({}, (version === exports.Version.V1 || version === exports.Version.V2) && {
|
|
11718
|
-
network: 'any'
|
|
11719
|
-
}), {
|
|
11720
|
-
key: recipientAddress
|
|
11721
|
-
})
|
|
11722
|
-
} : {
|
|
11723
|
-
AccountId32: Object.assign(Object.assign({}, (version === exports.Version.V1 || version === exports.Version.V2) && {
|
|
11724
|
-
network: 'any'
|
|
11725
|
-
}), {
|
|
11726
|
-
id: api.createAccountId(recipientAddress)
|
|
11727
|
-
})
|
|
11728
|
-
})
|
|
11729
|
-
});
|
|
12093
|
+
/**
|
|
12094
|
+
* Used to inform user, that Parachain they wish to use is not supported yet
|
|
12095
|
+
*/
|
|
12096
|
+
var NodeNotSupportedError = /*#__PURE__*/function (_Error) {
|
|
12097
|
+
/**
|
|
12098
|
+
* Constructs a new NodeNotSupportedError.
|
|
12099
|
+
*
|
|
12100
|
+
* @param message - Optional custom error message.
|
|
12101
|
+
*/
|
|
12102
|
+
function NodeNotSupportedError(message) {
|
|
12103
|
+
var _this;
|
|
12104
|
+
_classCallCheck(this, NodeNotSupportedError);
|
|
12105
|
+
_this = _callSuper(this, NodeNotSupportedError, [message !== null && message !== void 0 ? message : 'These nodes do not support XCM transfers from Relay / to Relay chain.']);
|
|
12106
|
+
_this.name = 'NodeNotSupported';
|
|
12107
|
+
return _this;
|
|
11730
12108
|
}
|
|
11731
|
-
|
|
11732
|
-
|
|
11733
|
-
|
|
11734
|
-
AccountKey20: {
|
|
11735
|
-
key: recipientAddress
|
|
11736
|
-
}
|
|
11737
|
-
} : {
|
|
11738
|
-
AccountId32: {
|
|
11739
|
-
id: api.createAccountId(recipientAddress)
|
|
11740
|
-
}
|
|
11741
|
-
})
|
|
11742
|
-
});
|
|
11743
|
-
};
|
|
12109
|
+
_inherits(NodeNotSupportedError, _Error);
|
|
12110
|
+
return _createClass(NodeNotSupportedError);
|
|
12111
|
+
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
11744
12112
|
|
|
11745
|
-
|
|
11746
|
-
|
|
11747
|
-
|
|
11748
|
-
|
|
11749
|
-
|
|
12113
|
+
/**
|
|
12114
|
+
* Used to inform user, that Parachain they wish to use does not support scenario they wish to use yet
|
|
12115
|
+
*/
|
|
12116
|
+
var ScenarioNotSupportedError = /*#__PURE__*/function (_Error) {
|
|
12117
|
+
/**
|
|
12118
|
+
* Constructs a new ScenarioNotSupportedError.
|
|
12119
|
+
*
|
|
12120
|
+
* @param node - The node where the scenario is not supported.
|
|
12121
|
+
* @param scenario - The scenario that is not supported.
|
|
12122
|
+
* @param message - Optional custom error message.
|
|
12123
|
+
*/
|
|
12124
|
+
function ScenarioNotSupportedError(node, scenario, message) {
|
|
12125
|
+
var _this;
|
|
12126
|
+
_classCallCheck(this, ScenarioNotSupportedError);
|
|
12127
|
+
_this = _callSuper(this, ScenarioNotSupportedError, [message !== null && message !== void 0 ? message : "Scenario ".concat(scenario, " not supported for node ").concat(node)]);
|
|
12128
|
+
_this.name = 'ScenarioNotSupported';
|
|
12129
|
+
return _this;
|
|
11750
12130
|
}
|
|
11751
|
-
|
|
11752
|
-
|
|
12131
|
+
_inherits(ScenarioNotSupportedError, _Error);
|
|
12132
|
+
return _createClass(ScenarioNotSupportedError);
|
|
12133
|
+
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
11753
12134
|
|
|
11754
12135
|
/**
|
|
11755
|
-
*
|
|
11756
|
-
*
|
|
11757
|
-
* @param node - The node identifier.
|
|
11758
|
-
* @returns The node instance
|
|
12136
|
+
* Error thrown when nodes from different relay chains are incompatible.
|
|
11759
12137
|
*/
|
|
11760
|
-
var
|
|
11761
|
-
|
|
11762
|
-
|
|
11763
|
-
|
|
11764
|
-
|
|
11765
|
-
|
|
11766
|
-
|
|
11767
|
-
var
|
|
11768
|
-
|
|
11769
|
-
|
|
11770
|
-
|
|
11771
|
-
|
|
11772
|
-
_context.next = 5;
|
|
11773
|
-
break;
|
|
11774
|
-
}
|
|
11775
|
-
wsUrl = getNodeProvider(node);
|
|
11776
|
-
_context.next = 4;
|
|
11777
|
-
return api.createApiInstance(wsUrl);
|
|
11778
|
-
case 4:
|
|
11779
|
-
return _context.abrupt("return", _context.sent);
|
|
11780
|
-
case 5:
|
|
11781
|
-
_context.next = 7;
|
|
11782
|
-
return getNode(node).createApiInstance(api);
|
|
11783
|
-
case 7:
|
|
11784
|
-
return _context.abrupt("return", _context.sent);
|
|
11785
|
-
case 8:
|
|
11786
|
-
case "end":
|
|
11787
|
-
return _context.stop();
|
|
11788
|
-
}
|
|
11789
|
-
}, _callee);
|
|
11790
|
-
}));
|
|
11791
|
-
};
|
|
11792
|
-
|
|
11793
|
-
var determineRelayChainSymbol = function determineRelayChainSymbol(node) {
|
|
11794
|
-
if (node === 'Polkadot') {
|
|
11795
|
-
return 'DOT';
|
|
11796
|
-
} else if (node === 'Kusama') {
|
|
11797
|
-
return 'KSM';
|
|
11798
|
-
} else {
|
|
11799
|
-
return getRelayChainSymbol(node);
|
|
12138
|
+
var IncompatibleNodesError = /*#__PURE__*/function (_Error) {
|
|
12139
|
+
/**
|
|
12140
|
+
* Constructs a new IncompatibleNodesError.
|
|
12141
|
+
*
|
|
12142
|
+
* @param message - Optional custom error message.
|
|
12143
|
+
*/
|
|
12144
|
+
function IncompatibleNodesError(message) {
|
|
12145
|
+
var _this;
|
|
12146
|
+
_classCallCheck(this, IncompatibleNodesError);
|
|
12147
|
+
_this = _callSuper(this, IncompatibleNodesError, [message !== null && message !== void 0 ? message : 'Transactions between nodes on different relaychains are not yet possible.']);
|
|
12148
|
+
_this.name = 'IncompatibleNodes';
|
|
12149
|
+
return _this;
|
|
11800
12150
|
}
|
|
11801
|
-
|
|
12151
|
+
_inherits(IncompatibleNodesError, _Error);
|
|
12152
|
+
return _createClass(IncompatibleNodesError);
|
|
12153
|
+
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
11802
12154
|
|
|
11803
|
-
// Contains important call creation utils (Selection of fees,formating of header and more.. )
|
|
11804
12155
|
/**
|
|
11805
|
-
*
|
|
11806
|
-
*
|
|
11807
|
-
* @param node - The node for which to determine the relay chain.
|
|
11808
|
-
* @returns 'Kusama' if the node's relay chain symbol is 'KSM'; otherwise, 'Polkadot'.
|
|
12156
|
+
* Error thrown when multiple assets with the same symbol are found.
|
|
11809
12157
|
*/
|
|
11810
|
-
var
|
|
11811
|
-
|
|
11812
|
-
|
|
12158
|
+
var DuplicateAssetError = /*#__PURE__*/function (_Error) {
|
|
12159
|
+
/**
|
|
12160
|
+
* Constructs a new DuplicateAssetError.
|
|
12161
|
+
*
|
|
12162
|
+
* @param symbol - The symbol of the asset causing the duplication error.
|
|
12163
|
+
*/
|
|
12164
|
+
function DuplicateAssetError(msg) {
|
|
12165
|
+
var _this;
|
|
12166
|
+
_classCallCheck(this, DuplicateAssetError);
|
|
12167
|
+
_this = _callSuper(this, DuplicateAssetError, [msg]);
|
|
12168
|
+
_this.name = 'DuplicateAsset';
|
|
12169
|
+
return _this;
|
|
12170
|
+
}
|
|
12171
|
+
_inherits(DuplicateAssetError, _Error);
|
|
12172
|
+
return _createClass(DuplicateAssetError);
|
|
12173
|
+
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
12174
|
+
|
|
11813
12175
|
/**
|
|
11814
|
-
*
|
|
11815
|
-
*
|
|
11816
|
-
* @param node - The node to check.
|
|
11817
|
-
* @returns True if the node is 'Polkadot' or 'Kusama'; otherwise, false.
|
|
12176
|
+
* Error thrown when multiple assets with the same symbol are found.
|
|
11818
12177
|
*/
|
|
11819
|
-
var
|
|
11820
|
-
|
|
11821
|
-
|
|
11822
|
-
|
|
11823
|
-
|
|
11824
|
-
|
|
11825
|
-
|
|
11826
|
-
|
|
11827
|
-
|
|
11828
|
-
|
|
11829
|
-
|
|
11830
|
-
return
|
|
12178
|
+
var DuplicateAssetIdError = /*#__PURE__*/function (_Error) {
|
|
12179
|
+
/**
|
|
12180
|
+
* Constructs a new DuplicateAssetError.
|
|
12181
|
+
*
|
|
12182
|
+
* @param symbol - The symbol of the asset causing the duplication error.
|
|
12183
|
+
*/
|
|
12184
|
+
function DuplicateAssetIdError(id) {
|
|
12185
|
+
var _this;
|
|
12186
|
+
_classCallCheck(this, DuplicateAssetIdError);
|
|
12187
|
+
_this = _callSuper(this, DuplicateAssetIdError, ["Multiple assets found with the same ID: ".concat(id, ". Please specify asset directly by symbol using .currency({symbol: <ASSET_SYMBOL>})")]);
|
|
12188
|
+
_this.name = 'DuplicateAssetId';
|
|
12189
|
+
return _this;
|
|
11831
12190
|
}
|
|
11832
|
-
|
|
11833
|
-
|
|
12191
|
+
_inherits(DuplicateAssetIdError, _Error);
|
|
12192
|
+
return _createClass(DuplicateAssetIdError);
|
|
12193
|
+
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
11834
12194
|
|
|
11835
12195
|
/**
|
|
11836
|
-
*
|
|
11837
|
-
*
|
|
11838
|
-
* @param node - The node for which to get the paraId.
|
|
11839
|
-
* @returns The parachain ID of the node.
|
|
12196
|
+
* Error thrown when an invalid address is provided.
|
|
11840
12197
|
*/
|
|
11841
|
-
var
|
|
11842
|
-
|
|
11843
|
-
|
|
11844
|
-
|
|
11845
|
-
|
|
11846
|
-
|
|
11847
|
-
|
|
11848
|
-
|
|
11849
|
-
|
|
11850
|
-
|
|
11851
|
-
|
|
11852
|
-
|
|
11853
|
-
var _iterator = _createForOfIteratorHelper(junctions),
|
|
11854
|
-
_step;
|
|
11855
|
-
try {
|
|
11856
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
11857
|
-
var junction = _step.value;
|
|
11858
|
-
if ('Parachain' in junction) {
|
|
11859
|
-
return Number(junction.Parachain);
|
|
11860
|
-
}
|
|
11861
|
-
}
|
|
11862
|
-
} catch (err) {
|
|
11863
|
-
_iterator.e(err);
|
|
11864
|
-
} finally {
|
|
11865
|
-
_iterator.f();
|
|
11866
|
-
}
|
|
11867
|
-
} else if (_typeof(junctions) === 'object' && junctions !== null && 'Parachain' in junctions) {
|
|
11868
|
-
return Number(junctions.Parachain);
|
|
11869
|
-
}
|
|
12198
|
+
var InvalidAddressError = /*#__PURE__*/function (_Error) {
|
|
12199
|
+
/**
|
|
12200
|
+
* Constructs a new InvalidAddressError.
|
|
12201
|
+
*
|
|
12202
|
+
* @param message - The error message.
|
|
12203
|
+
*/
|
|
12204
|
+
function InvalidAddressError(message) {
|
|
12205
|
+
var _this;
|
|
12206
|
+
_classCallCheck(this, InvalidAddressError);
|
|
12207
|
+
_this = _callSuper(this, InvalidAddressError, [message]);
|
|
12208
|
+
_this.name = 'InvalidAddressError';
|
|
12209
|
+
return _this;
|
|
11870
12210
|
}
|
|
11871
|
-
|
|
11872
|
-
|
|
12211
|
+
_inherits(InvalidAddressError, _Error);
|
|
12212
|
+
return _createClass(InvalidAddressError);
|
|
12213
|
+
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
11873
12214
|
|
|
11874
12215
|
var DEFAULT_FEE_ASSET = 0;
|
|
11875
12216
|
var ETH_CHAIN_ID = BigInt(1);
|
|
@@ -11891,7 +12232,10 @@ var constructRelayToParaParameters = function constructRelayToParaParameters(_re
|
|
|
11891
12232
|
address = _ref.address,
|
|
11892
12233
|
amount = _ref.amount,
|
|
11893
12234
|
paraIdTo = _ref.paraIdTo;
|
|
11894
|
-
var
|
|
12235
|
+
var _ref2 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {
|
|
12236
|
+
includeFee: false
|
|
12237
|
+
},
|
|
12238
|
+
includeFee = _ref2.includeFee;
|
|
11895
12239
|
// Handle the case when a destination is a multi-location
|
|
11896
12240
|
var paraId = destination !== undefined && _typeof(destination) !== 'object' ? paraIdTo !== null && paraIdTo !== void 0 ? paraIdTo : getParaId(destination) : undefined;
|
|
11897
12241
|
return Object.assign({
|
|
@@ -12112,8 +12456,7 @@ var XTokensTransferImpl = /*#__PURE__*/function () {
|
|
|
12112
12456
|
addressSelection = input.addressSelection,
|
|
12113
12457
|
destination = input.destination,
|
|
12114
12458
|
scenario = input.scenario,
|
|
12115
|
-
feeAsset = input.feeAsset
|
|
12116
|
-
serializedApiCallEnabled = input.serializedApiCallEnabled;
|
|
12459
|
+
feeAsset = input.feeAsset;
|
|
12117
12460
|
var isMultiLocationDestination = _typeof(destination) === 'object';
|
|
12118
12461
|
if (isMultiLocationDestination) {
|
|
12119
12462
|
throw new Error('Multilocation destinations are not supported for specific transfer you are trying to create. In special cases such as xTokens or xTransfer pallet try using address multilocation instead (for both destination and address in same multilocation set (eg. X2 - Parachain, Address). For further assistance please open issue in our repository.');
|
|
@@ -12130,11 +12473,6 @@ var XTokensTransferImpl = /*#__PURE__*/function () {
|
|
|
12130
12473
|
section: section,
|
|
12131
12474
|
parameters: parameters
|
|
12132
12475
|
};
|
|
12133
|
-
if (serializedApiCallEnabled === true) {
|
|
12134
|
-
return Object.assign(Object.assign({}, call), {
|
|
12135
|
-
parameters: Object.values(parameters)
|
|
12136
|
-
});
|
|
12137
|
-
}
|
|
12138
12476
|
return api.callTxMethod(call);
|
|
12139
12477
|
}
|
|
12140
12478
|
}]);
|
|
@@ -12192,11 +12530,11 @@ var ParachainNode = /*#__PURE__*/function () {
|
|
|
12192
12530
|
key: "transfer",
|
|
12193
12531
|
value: function transfer(options) {
|
|
12194
12532
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
12195
|
-
var api, asset, amount, address, destination, paraIdTo, overridedCurrencyMultiLocation, feeAsset, version, ahAddress,
|
|
12533
|
+
var api, asset, amount, address, destination, paraIdTo, overridedCurrencyMultiLocation, feeAsset, version, ahAddress, scenario, paraId, versionOrDefault, isBifrostOrigin, isAssetHubDest, shouldUseMultiasset, input;
|
|
12196
12534
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
12197
12535
|
while (1) switch (_context.prev = _context.next) {
|
|
12198
12536
|
case 0:
|
|
12199
|
-
api = options.api, asset = options.asset, amount = options.amount, address = options.address, destination = options.destination, paraIdTo = options.paraIdTo, overridedCurrencyMultiLocation = options.overridedCurrencyMultiLocation, feeAsset = options.feeAsset, version = options.version, ahAddress = options.ahAddress
|
|
12537
|
+
api = options.api, asset = options.asset, amount = options.amount, address = options.address, destination = options.destination, paraIdTo = options.paraIdTo, overridedCurrencyMultiLocation = options.overridedCurrencyMultiLocation, feeAsset = options.feeAsset, version = options.version, ahAddress = options.ahAddress;
|
|
12200
12538
|
scenario = destination !== undefined ? 'ParaToPara' : 'ParaToRelay';
|
|
12201
12539
|
paraId = destination !== undefined && _typeof(destination) !== 'object' && destination !== 'Ethereum' ? paraIdTo !== null && paraIdTo !== void 0 ? paraIdTo : getParaId(destination) : undefined;
|
|
12202
12540
|
if (!(destination === 'Polimec' && this.node !== 'AssetHubPolkadot')) {
|
|
@@ -12224,8 +12562,7 @@ var ParachainNode = /*#__PURE__*/function () {
|
|
|
12224
12562
|
paraIdTo: paraId,
|
|
12225
12563
|
destination: destination,
|
|
12226
12564
|
overridedCurrencyMultiLocation: overridedCurrencyMultiLocation,
|
|
12227
|
-
feeAsset: feeAsset
|
|
12228
|
-
serializedApiCallEnabled: serializedApiCallEnabled
|
|
12565
|
+
feeAsset: feeAsset
|
|
12229
12566
|
};
|
|
12230
12567
|
if (!shouldUseMultiasset) {
|
|
12231
12568
|
_context.next = 13;
|
|
@@ -12247,16 +12584,14 @@ var ParachainNode = /*#__PURE__*/function () {
|
|
|
12247
12584
|
paraId: paraId,
|
|
12248
12585
|
origin: this.node,
|
|
12249
12586
|
destination: destination,
|
|
12250
|
-
overridedCurrencyMultiLocation: overridedCurrencyMultiLocation
|
|
12251
|
-
serializedApiCallEnabled: serializedApiCallEnabled
|
|
12587
|
+
overridedCurrencyMultiLocation: overridedCurrencyMultiLocation
|
|
12252
12588
|
}));
|
|
12253
12589
|
case 20:
|
|
12254
12590
|
if (!supportsPolkadotXCM(this)) {
|
|
12255
|
-
_context.next =
|
|
12591
|
+
_context.next = 24;
|
|
12256
12592
|
break;
|
|
12257
12593
|
}
|
|
12258
|
-
_context.
|
|
12259
|
-
return this.transferPolkadotXCM({
|
|
12594
|
+
return _context.abrupt("return", this.transferPolkadotXCM({
|
|
12260
12595
|
api: api,
|
|
12261
12596
|
header: this.createPolkadotXcmHeader(scenario, versionOrDefault, destination, paraId),
|
|
12262
12597
|
addressSelection: generateAddressPayload(api, scenario, 'PolkadotXcm', address, versionOrDefault, paraId),
|
|
@@ -12269,30 +12604,40 @@ var ParachainNode = /*#__PURE__*/function () {
|
|
|
12269
12604
|
destination: destination,
|
|
12270
12605
|
paraIdTo: paraId,
|
|
12271
12606
|
overridedCurrency: overridedCurrencyMultiLocation,
|
|
12272
|
-
serializedApiCallEnabled: serializedApiCallEnabled,
|
|
12273
12607
|
version: version,
|
|
12274
12608
|
ahAddress: ahAddress
|
|
12275
|
-
});
|
|
12276
|
-
case
|
|
12277
|
-
return _context.abrupt("return", _context.sent);
|
|
12278
|
-
case 26:
|
|
12609
|
+
}));
|
|
12610
|
+
case 24:
|
|
12279
12611
|
throw new NoXCMSupportImplementedError(this._node);
|
|
12280
|
-
case
|
|
12612
|
+
case 25:
|
|
12281
12613
|
case "end":
|
|
12282
12614
|
return _context.stop();
|
|
12283
12615
|
}
|
|
12284
12616
|
}, _callee, this);
|
|
12285
12617
|
}));
|
|
12286
12618
|
}
|
|
12619
|
+
}, {
|
|
12620
|
+
key: "getRelayToParaOverrides",
|
|
12621
|
+
value: function getRelayToParaOverrides() {
|
|
12622
|
+
return {
|
|
12623
|
+
section: 'reserve_transfer_assets',
|
|
12624
|
+
includeFee: false
|
|
12625
|
+
};
|
|
12626
|
+
}
|
|
12287
12627
|
}, {
|
|
12288
12628
|
key: "transferRelayToPara",
|
|
12289
12629
|
value: function transferRelayToPara(options) {
|
|
12290
12630
|
var _options$version = options.version,
|
|
12291
12631
|
version = _options$version === void 0 ? exports.Version.V3 : _options$version;
|
|
12632
|
+
var _this$getRelayToParaO = this.getRelayToParaOverrides(),
|
|
12633
|
+
section = _this$getRelayToParaO.section,
|
|
12634
|
+
includeFee = _this$getRelayToParaO.includeFee;
|
|
12292
12635
|
return {
|
|
12293
12636
|
module: 'XcmPallet',
|
|
12294
|
-
section:
|
|
12295
|
-
parameters: constructRelayToParaParameters(options, version
|
|
12637
|
+
section: section,
|
|
12638
|
+
parameters: constructRelayToParaParameters(options, version, {
|
|
12639
|
+
includeFee: includeFee
|
|
12640
|
+
})
|
|
12296
12641
|
};
|
|
12297
12642
|
}
|
|
12298
12643
|
}, {
|
|
@@ -12425,8 +12770,7 @@ var PolkadotXCMTransferImpl = /*#__PURE__*/function () {
|
|
|
12425
12770
|
addressSelection = _ref.addressSelection,
|
|
12426
12771
|
currencySelection = _ref.currencySelection,
|
|
12427
12772
|
_ref$feeAsset = _ref.feeAsset,
|
|
12428
|
-
feeAsset = _ref$feeAsset === void 0 ? DEFAULT_FEE_ASSET : _ref$feeAsset
|
|
12429
|
-
serializedApiCallEnabled = _ref.serializedApiCallEnabled;
|
|
12773
|
+
feeAsset = _ref$feeAsset === void 0 ? DEFAULT_FEE_ASSET : _ref$feeAsset;
|
|
12430
12774
|
var fees = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
|
|
12431
12775
|
var module = 'PolkadotXcm';
|
|
12432
12776
|
var call = {
|
|
@@ -12441,12 +12785,6 @@ var PolkadotXCMTransferImpl = /*#__PURE__*/function () {
|
|
|
12441
12785
|
weight_limit: fees
|
|
12442
12786
|
} : {})
|
|
12443
12787
|
};
|
|
12444
|
-
if (serializedApiCallEnabled === true) {
|
|
12445
|
-
// Keep compatible with old serialized call type
|
|
12446
|
-
return Object.assign(Object.assign({}, call), {
|
|
12447
|
-
parameters: Object.values(call.parameters)
|
|
12448
|
-
});
|
|
12449
|
-
}
|
|
12450
12788
|
return api.callTxMethod(call);
|
|
12451
12789
|
}
|
|
12452
12790
|
}]);
|
|
@@ -12861,7 +13199,7 @@ var Hydration$2 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
12861
13199
|
key: "getProvider",
|
|
12862
13200
|
value: function getProvider() {
|
|
12863
13201
|
// Return the second WebSocket URL because the first one is sometimes unreliable.
|
|
12864
|
-
return getNodeProviders(this.node)[
|
|
13202
|
+
return getNodeProviders(this.node)[3];
|
|
12865
13203
|
}
|
|
12866
13204
|
}]);
|
|
12867
13205
|
}(ParachainNode);
|
|
@@ -12909,32 +13247,42 @@ var Moonbeam$2 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
12909
13247
|
}
|
|
12910
13248
|
_inherits(Moonbeam, _ParachainNode);
|
|
12911
13249
|
return _createClass(Moonbeam, [{
|
|
12912
|
-
key: "
|
|
12913
|
-
value: function
|
|
12914
|
-
if (
|
|
12915
|
-
if (
|
|
12916
|
-
|
|
12917
|
-
|
|
12918
|
-
|
|
12919
|
-
|
|
13250
|
+
key: "getJunctions",
|
|
13251
|
+
value: function getJunctions(asset, scenario) {
|
|
13252
|
+
if (scenario === 'ParaToRelay') return DOT_MULTILOCATION;
|
|
13253
|
+
if (asset.symbol === this.getNativeAssetSymbol()) return {
|
|
13254
|
+
parents: exports.Parents.ZERO,
|
|
13255
|
+
interior: {
|
|
13256
|
+
X1: {
|
|
13257
|
+
PalletInstance: 10
|
|
13258
|
+
}
|
|
13259
|
+
}
|
|
12920
13260
|
};
|
|
13261
|
+
if (!isForeignAsset(asset)) {
|
|
13262
|
+
throw new InvalidCurrencyError('throw new InvalidCurrencyError(`Asset ${JSON.stringify(asset)} has no assetId`)');
|
|
13263
|
+
}
|
|
13264
|
+
return asset.multiLocation;
|
|
12921
13265
|
}
|
|
12922
13266
|
}, {
|
|
12923
|
-
key: "
|
|
12924
|
-
value: function
|
|
12925
|
-
var asset = input.asset
|
|
12926
|
-
|
|
12927
|
-
|
|
13267
|
+
key: "transferPolkadotXCM",
|
|
13268
|
+
value: function transferPolkadotXCM(input) {
|
|
13269
|
+
var asset = input.asset,
|
|
13270
|
+
amount = input.amount,
|
|
13271
|
+
scenario = input.scenario,
|
|
13272
|
+
_input$version = input.version,
|
|
13273
|
+
version = _input$version === void 0 ? this.version : _input$version,
|
|
13274
|
+
overridedCurrency = input.overridedCurrency;
|
|
13275
|
+
var multiLocation = this.getJunctions(asset, scenario);
|
|
13276
|
+
return Promise.resolve(PolkadotXCMTransferImpl.transferPolkadotXCM(Object.assign(Object.assign({}, input), {
|
|
13277
|
+
currencySelection: createCurrencySpec(amount, version, multiLocation.parents, overridedCurrency, multiLocation.interior)
|
|
13278
|
+
}), 'transfer_assets', 'Unlimited'));
|
|
12928
13279
|
}
|
|
12929
13280
|
}, {
|
|
12930
|
-
key: "
|
|
12931
|
-
value: function
|
|
12932
|
-
var _options$version = options.version,
|
|
12933
|
-
version = _options$version === void 0 ? exports.Version.V3 : _options$version;
|
|
13281
|
+
key: "getRelayToParaOverrides",
|
|
13282
|
+
value: function getRelayToParaOverrides() {
|
|
12934
13283
|
return {
|
|
12935
|
-
module: 'XcmPallet',
|
|
12936
13284
|
section: 'limited_reserve_transfer_assets',
|
|
12937
|
-
|
|
13285
|
+
includeFee: true
|
|
12938
13286
|
};
|
|
12939
13287
|
}
|
|
12940
13288
|
}, {
|
|
@@ -13157,32 +13505,42 @@ var Moonriver$2 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
13157
13505
|
}
|
|
13158
13506
|
_inherits(Moonriver, _ParachainNode);
|
|
13159
13507
|
return _createClass(Moonriver, [{
|
|
13160
|
-
key: "
|
|
13161
|
-
value: function
|
|
13162
|
-
if (
|
|
13163
|
-
if (
|
|
13164
|
-
|
|
13165
|
-
|
|
13166
|
-
|
|
13167
|
-
|
|
13508
|
+
key: "getJunctions",
|
|
13509
|
+
value: function getJunctions(asset, scenario) {
|
|
13510
|
+
if (scenario === 'ParaToRelay') return DOT_MULTILOCATION;
|
|
13511
|
+
if (asset.symbol === this.getNativeAssetSymbol()) return {
|
|
13512
|
+
parents: exports.Parents.ZERO,
|
|
13513
|
+
interior: {
|
|
13514
|
+
X1: {
|
|
13515
|
+
PalletInstance: 10
|
|
13516
|
+
}
|
|
13517
|
+
}
|
|
13168
13518
|
};
|
|
13519
|
+
if (!isForeignAsset(asset)) {
|
|
13520
|
+
throw new InvalidCurrencyError('throw new InvalidCurrencyError(`Asset ${JSON.stringify(asset)} has no assetId`)');
|
|
13521
|
+
}
|
|
13522
|
+
return asset.multiLocation;
|
|
13169
13523
|
}
|
|
13170
13524
|
}, {
|
|
13171
|
-
key: "
|
|
13172
|
-
value: function
|
|
13173
|
-
var asset = input.asset
|
|
13174
|
-
|
|
13175
|
-
|
|
13525
|
+
key: "transferPolkadotXCM",
|
|
13526
|
+
value: function transferPolkadotXCM(input) {
|
|
13527
|
+
var asset = input.asset,
|
|
13528
|
+
amount = input.amount,
|
|
13529
|
+
scenario = input.scenario,
|
|
13530
|
+
_input$version = input.version,
|
|
13531
|
+
version = _input$version === void 0 ? this.version : _input$version,
|
|
13532
|
+
overridedCurrency = input.overridedCurrency;
|
|
13533
|
+
var multiLocation = this.getJunctions(asset, scenario);
|
|
13534
|
+
return Promise.resolve(PolkadotXCMTransferImpl.transferPolkadotXCM(Object.assign(Object.assign({}, input), {
|
|
13535
|
+
currencySelection: createCurrencySpec(amount, version, multiLocation.parents, overridedCurrency, multiLocation.interior)
|
|
13536
|
+
}), 'transfer_assets', 'Unlimited'));
|
|
13176
13537
|
}
|
|
13177
13538
|
}, {
|
|
13178
|
-
key: "
|
|
13179
|
-
value: function
|
|
13180
|
-
var _options$version = options.version,
|
|
13181
|
-
version = _options$version === void 0 ? exports.Version.V3 : _options$version;
|
|
13539
|
+
key: "getRelayToParaOverrides",
|
|
13540
|
+
value: function getRelayToParaOverrides() {
|
|
13182
13541
|
return {
|
|
13183
|
-
module: 'XcmPallet',
|
|
13184
13542
|
section: 'limited_reserve_transfer_assets',
|
|
13185
|
-
|
|
13543
|
+
includeFee: true
|
|
13186
13544
|
};
|
|
13187
13545
|
}
|
|
13188
13546
|
}, {
|
|
@@ -13314,30 +13672,125 @@ var InvArchTinker$2 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
13314
13672
|
if (!isForeignAsset(asset) || !asset.assetId) {
|
|
13315
13673
|
throw new InvalidCurrencyError("Asset ".concat(JSON.stringify(asset), " has no assetId"));
|
|
13316
13674
|
}
|
|
13317
|
-
return XTokensTransferImpl.transferXTokens(input, BigInt(asset.assetId));
|
|
13318
|
-
}
|
|
13319
|
-
}]);
|
|
13320
|
-
}(ParachainNode);
|
|
13321
|
-
|
|
13322
|
-
var Karura$2 = /*#__PURE__*/function (_ParachainNode) {
|
|
13323
|
-
function Karura() {
|
|
13324
|
-
_classCallCheck(this, Karura);
|
|
13325
|
-
return _callSuper(this, Karura, ['Karura', 'karura', 'kusama', exports.Version.V3]);
|
|
13675
|
+
return XTokensTransferImpl.transferXTokens(input, BigInt(asset.assetId));
|
|
13676
|
+
}
|
|
13677
|
+
}]);
|
|
13678
|
+
}(ParachainNode);
|
|
13679
|
+
|
|
13680
|
+
var Karura$2 = /*#__PURE__*/function (_ParachainNode) {
|
|
13681
|
+
function Karura() {
|
|
13682
|
+
_classCallCheck(this, Karura);
|
|
13683
|
+
return _callSuper(this, Karura, ['Karura', 'karura', 'kusama', exports.Version.V3]);
|
|
13684
|
+
}
|
|
13685
|
+
_inherits(Karura, _ParachainNode);
|
|
13686
|
+
return _createClass(Karura, [{
|
|
13687
|
+
key: "transferXTokens",
|
|
13688
|
+
value: function transferXTokens(input) {
|
|
13689
|
+
return getNode('Acala').transferXTokens(input);
|
|
13690
|
+
}
|
|
13691
|
+
}, {
|
|
13692
|
+
key: "getProvider",
|
|
13693
|
+
value: function getProvider() {
|
|
13694
|
+
// Return the second WebSocket URL because the first one is sometimes unreliable.
|
|
13695
|
+
return getNodeProviders(this.node)[4];
|
|
13696
|
+
}
|
|
13697
|
+
}]);
|
|
13698
|
+
}(ParachainNode);
|
|
13699
|
+
|
|
13700
|
+
var generateAddressMultiLocationV4 = function generateAddressMultiLocationV4(api, address) {
|
|
13701
|
+
var isMultiLocation = _typeof(address) === 'object';
|
|
13702
|
+
if (isMultiLocation) {
|
|
13703
|
+
return _defineProperty({}, exports.Version.V4, address);
|
|
13704
|
+
}
|
|
13705
|
+
var isEthAddress = ethers.ethers.isAddress(address);
|
|
13706
|
+
return _defineProperty({}, exports.Version.V4, {
|
|
13707
|
+
parents: exports.Parents.ZERO,
|
|
13708
|
+
interior: {
|
|
13709
|
+
X1: [isEthAddress ? {
|
|
13710
|
+
AccountKey20: {
|
|
13711
|
+
key: address
|
|
13712
|
+
}
|
|
13713
|
+
} : {
|
|
13714
|
+
AccountId32: {
|
|
13715
|
+
id: api.createAccountId(address),
|
|
13716
|
+
network: null
|
|
13717
|
+
}
|
|
13718
|
+
}]
|
|
13719
|
+
}
|
|
13720
|
+
});
|
|
13721
|
+
};
|
|
13722
|
+
|
|
13723
|
+
var generateAddressPayload = function generateAddressPayload(api, scenario, pallet, recipientAddress, version, nodeId) {
|
|
13724
|
+
var isMultiLocation = _typeof(recipientAddress) === 'object';
|
|
13725
|
+
if (isMultiLocation) {
|
|
13726
|
+
return _defineProperty({}, version, recipientAddress);
|
|
13727
|
+
}
|
|
13728
|
+
var isEthAddress = ethers.ethers.isAddress(recipientAddress);
|
|
13729
|
+
if (scenario === 'ParaToRelay') {
|
|
13730
|
+
return _defineProperty({}, version, {
|
|
13731
|
+
parents: pallet === 'XTokens' ? exports.Parents.ONE : exports.Parents.ZERO,
|
|
13732
|
+
interior: createX1Payload(version, {
|
|
13733
|
+
AccountId32: Object.assign(Object.assign({}, version === exports.Version.V1 && {
|
|
13734
|
+
network: 'any'
|
|
13735
|
+
}), {
|
|
13736
|
+
id: api.createAccountId(recipientAddress)
|
|
13737
|
+
})
|
|
13738
|
+
})
|
|
13739
|
+
});
|
|
13740
|
+
}
|
|
13741
|
+
if (scenario === 'ParaToPara' && pallet === 'XTokens') {
|
|
13742
|
+
return _defineProperty({}, version, {
|
|
13743
|
+
parents: exports.Parents.ONE,
|
|
13744
|
+
interior: {
|
|
13745
|
+
X2: [{
|
|
13746
|
+
Parachain: nodeId
|
|
13747
|
+
}, isEthAddress ? {
|
|
13748
|
+
AccountKey20: Object.assign(Object.assign({}, (version === exports.Version.V1 || version === exports.Version.V2) && {
|
|
13749
|
+
network: 'any'
|
|
13750
|
+
}), {
|
|
13751
|
+
key: recipientAddress
|
|
13752
|
+
})
|
|
13753
|
+
} : {
|
|
13754
|
+
AccountId32: Object.assign(Object.assign({}, (version === exports.Version.V1 || version === exports.Version.V2) && {
|
|
13755
|
+
network: 'any'
|
|
13756
|
+
}), {
|
|
13757
|
+
id: api.createAccountId(recipientAddress)
|
|
13758
|
+
})
|
|
13759
|
+
}]
|
|
13760
|
+
}
|
|
13761
|
+
});
|
|
13326
13762
|
}
|
|
13327
|
-
|
|
13328
|
-
|
|
13329
|
-
|
|
13330
|
-
|
|
13331
|
-
|
|
13332
|
-
|
|
13333
|
-
|
|
13334
|
-
|
|
13335
|
-
|
|
13336
|
-
|
|
13337
|
-
|
|
13338
|
-
|
|
13339
|
-
|
|
13340
|
-
|
|
13763
|
+
if (scenario === 'ParaToPara' && pallet === 'PolkadotXcm') {
|
|
13764
|
+
return _defineProperty({}, version, {
|
|
13765
|
+
parents: exports.Parents.ZERO,
|
|
13766
|
+
interior: createX1Payload(version, isEthAddress ? {
|
|
13767
|
+
AccountKey20: Object.assign(Object.assign({}, (version === exports.Version.V1 || version === exports.Version.V2) && {
|
|
13768
|
+
network: 'any'
|
|
13769
|
+
}), {
|
|
13770
|
+
key: recipientAddress
|
|
13771
|
+
})
|
|
13772
|
+
} : {
|
|
13773
|
+
AccountId32: Object.assign(Object.assign({}, (version === exports.Version.V1 || version === exports.Version.V2) && {
|
|
13774
|
+
network: 'any'
|
|
13775
|
+
}), {
|
|
13776
|
+
id: api.createAccountId(recipientAddress)
|
|
13777
|
+
})
|
|
13778
|
+
})
|
|
13779
|
+
});
|
|
13780
|
+
}
|
|
13781
|
+
return _defineProperty({}, version, {
|
|
13782
|
+
parents: exports.Parents.ZERO,
|
|
13783
|
+
interior: createX1Payload(version, isEthAddress ? {
|
|
13784
|
+
AccountKey20: {
|
|
13785
|
+
key: recipientAddress
|
|
13786
|
+
}
|
|
13787
|
+
} : {
|
|
13788
|
+
AccountId32: {
|
|
13789
|
+
id: api.createAccountId(recipientAddress)
|
|
13790
|
+
}
|
|
13791
|
+
})
|
|
13792
|
+
});
|
|
13793
|
+
};
|
|
13341
13794
|
|
|
13342
13795
|
var createCustomXcmToBifrost = function createCustomXcmToBifrost(_ref, version) {
|
|
13343
13796
|
var api = _ref.api,
|
|
@@ -13544,14 +13997,11 @@ var AssetHubPolkadot$2 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
13544
13997
|
return Promise.resolve(PolkadotXCMTransferImpl.transferPolkadotXCM(modifiedInput, section, 'Unlimited'));
|
|
13545
13998
|
}
|
|
13546
13999
|
}, {
|
|
13547
|
-
key: "
|
|
13548
|
-
value: function
|
|
13549
|
-
var _options$version = options.version,
|
|
13550
|
-
version = _options$version === void 0 ? exports.Version.V3 : _options$version;
|
|
14000
|
+
key: "getRelayToParaOverrides",
|
|
14001
|
+
value: function getRelayToParaOverrides() {
|
|
13551
14002
|
return {
|
|
13552
|
-
module: 'XcmPallet',
|
|
13553
14003
|
section: 'limited_teleport_assets',
|
|
13554
|
-
|
|
14004
|
+
includeFee: true
|
|
13555
14005
|
};
|
|
13556
14006
|
}
|
|
13557
14007
|
}, {
|
|
@@ -13572,6 +14022,12 @@ var AssetHubPolkadot$2 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
13572
14022
|
return _superPropGet(AssetHubPolkadot, "createCurrencySpec", this, 3)([amount, scenario, version, asset]);
|
|
13573
14023
|
}
|
|
13574
14024
|
}
|
|
14025
|
+
}, {
|
|
14026
|
+
key: "getProvider",
|
|
14027
|
+
value: function getProvider() {
|
|
14028
|
+
// Return the second WebSocket URL because the first one is sometimes unreliable.
|
|
14029
|
+
return getNodeProviders(this.node)[1];
|
|
14030
|
+
}
|
|
13575
14031
|
}]);
|
|
13576
14032
|
}(ParachainNode);
|
|
13577
14033
|
|
|
@@ -13602,14 +14058,11 @@ var AssetHubKusama$2 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
13602
14058
|
return Promise.resolve(PolkadotXCMTransferImpl.transferPolkadotXCM(input, section, 'Unlimited'));
|
|
13603
14059
|
}
|
|
13604
14060
|
}, {
|
|
13605
|
-
key: "
|
|
13606
|
-
value: function
|
|
13607
|
-
var _options$version = options.version,
|
|
13608
|
-
version = _options$version === void 0 ? exports.Version.V3 : _options$version;
|
|
14061
|
+
key: "getRelayToParaOverrides",
|
|
14062
|
+
value: function getRelayToParaOverrides() {
|
|
13609
14063
|
return {
|
|
13610
|
-
module: 'XcmPallet',
|
|
13611
14064
|
section: 'limited_teleport_assets',
|
|
13612
|
-
|
|
14065
|
+
includeFee: true
|
|
13613
14066
|
};
|
|
13614
14067
|
}
|
|
13615
14068
|
}, {
|
|
@@ -13638,16 +14091,11 @@ var CoretimeKusama$2 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
13638
14091
|
return Promise.resolve(PolkadotXCMTransferImpl.transferPolkadotXCM(input, section, 'Unlimited'));
|
|
13639
14092
|
}
|
|
13640
14093
|
}, {
|
|
13641
|
-
key: "
|
|
13642
|
-
value: function
|
|
13643
|
-
// TESTED block hash on Rococo: 0x28929f7b2aeadbf3333f05d35bed18214a4b23dd270bd072f99e8a0131d22456
|
|
13644
|
-
// https://rococo.subscan.io/extrinsic/0x469eec7dccb22696b0c95cf4f5eec4b367ad3dc23243a346cc2aad3cc9522800
|
|
13645
|
-
var _options$version = options.version,
|
|
13646
|
-
version = _options$version === void 0 ? exports.Version.V3 : _options$version;
|
|
14094
|
+
key: "getRelayToParaOverrides",
|
|
14095
|
+
value: function getRelayToParaOverrides() {
|
|
13647
14096
|
return {
|
|
13648
|
-
module: 'XcmPallet',
|
|
13649
14097
|
section: 'limited_teleport_assets',
|
|
13650
|
-
|
|
14098
|
+
includeFee: true
|
|
13651
14099
|
};
|
|
13652
14100
|
}
|
|
13653
14101
|
}]);
|
|
@@ -13670,14 +14118,11 @@ var CoretimePolkadot$2 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
13670
14118
|
return Promise.resolve(PolkadotXCMTransferImpl.transferPolkadotXCM(input, section, 'Unlimited'));
|
|
13671
14119
|
}
|
|
13672
14120
|
}, {
|
|
13673
|
-
key: "
|
|
13674
|
-
value: function
|
|
13675
|
-
var _options$version = options.version,
|
|
13676
|
-
version = _options$version === void 0 ? exports.Version.V3 : _options$version;
|
|
14121
|
+
key: "getRelayToParaOverrides",
|
|
14122
|
+
value: function getRelayToParaOverrides() {
|
|
13677
14123
|
return {
|
|
13678
|
-
module: 'XcmPallet',
|
|
13679
14124
|
section: 'limited_teleport_assets',
|
|
13680
|
-
|
|
14125
|
+
includeFee: true
|
|
13681
14126
|
};
|
|
13682
14127
|
}
|
|
13683
14128
|
}]);
|
|
@@ -13700,14 +14145,11 @@ var Encointer$2 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
13700
14145
|
throw new ScenarioNotSupportedError(this.node, input.scenario);
|
|
13701
14146
|
}
|
|
13702
14147
|
}, {
|
|
13703
|
-
key: "
|
|
13704
|
-
value: function
|
|
13705
|
-
var _options$version = options.version,
|
|
13706
|
-
version = _options$version === void 0 ? exports.Version.V1 : _options$version;
|
|
14148
|
+
key: "getRelayToParaOverrides",
|
|
14149
|
+
value: function getRelayToParaOverrides() {
|
|
13707
14150
|
return {
|
|
13708
|
-
module: 'XcmPallet',
|
|
13709
14151
|
section: 'limited_teleport_assets',
|
|
13710
|
-
|
|
14152
|
+
includeFee: true
|
|
13711
14153
|
};
|
|
13712
14154
|
}
|
|
13713
14155
|
}]);
|
|
@@ -13758,14 +14200,11 @@ var PeoplePolkadot$2 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
13758
14200
|
return Promise.resolve(PolkadotXCMTransferImpl.transferPolkadotXCM(input, section, 'Unlimited'));
|
|
13759
14201
|
}
|
|
13760
14202
|
}, {
|
|
13761
|
-
key: "
|
|
13762
|
-
value: function
|
|
13763
|
-
var _options$version = options.version,
|
|
13764
|
-
version = _options$version === void 0 ? exports.Version.V3 : _options$version;
|
|
14203
|
+
key: "getRelayToParaOverrides",
|
|
14204
|
+
value: function getRelayToParaOverrides() {
|
|
13765
14205
|
return {
|
|
13766
|
-
module: 'XcmPallet',
|
|
13767
14206
|
section: 'limited_teleport_assets',
|
|
13768
|
-
|
|
14207
|
+
includeFee: true
|
|
13769
14208
|
};
|
|
13770
14209
|
}
|
|
13771
14210
|
}]);
|
|
@@ -13788,14 +14227,11 @@ var PeopleKusama$2 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
13788
14227
|
return Promise.resolve(PolkadotXCMTransferImpl.transferPolkadotXCM(input, section, 'Unlimited'));
|
|
13789
14228
|
}
|
|
13790
14229
|
}, {
|
|
13791
|
-
key: "
|
|
13792
|
-
value: function
|
|
13793
|
-
var _options$version = options.version,
|
|
13794
|
-
version = _options$version === void 0 ? exports.Version.V3 : _options$version;
|
|
14230
|
+
key: "getRelayToParaOverrides",
|
|
14231
|
+
value: function getRelayToParaOverrides() {
|
|
13795
14232
|
return {
|
|
13796
|
-
module: 'XcmPallet',
|
|
13797
14233
|
section: 'limited_teleport_assets',
|
|
13798
|
-
|
|
14234
|
+
includeFee: true
|
|
13799
14235
|
};
|
|
13800
14236
|
}
|
|
13801
14237
|
}]);
|
|
@@ -14118,14 +14554,11 @@ var Collectives$2 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
14118
14554
|
return Promise.resolve(PolkadotXCMTransferImpl.transferPolkadotXCM(input, 'limited_teleport_assets', 'Unlimited'));
|
|
14119
14555
|
}
|
|
14120
14556
|
}, {
|
|
14121
|
-
key: "
|
|
14122
|
-
value: function
|
|
14123
|
-
var _options$version = options.version,
|
|
14124
|
-
version = _options$version === void 0 ? exports.Version.V3 : _options$version;
|
|
14557
|
+
key: "getRelayToParaOverrides",
|
|
14558
|
+
value: function getRelayToParaOverrides() {
|
|
14125
14559
|
return {
|
|
14126
|
-
module: 'XcmPallet',
|
|
14127
14560
|
section: 'limited_teleport_assets',
|
|
14128
|
-
|
|
14561
|
+
includeFee: true
|
|
14129
14562
|
};
|
|
14130
14563
|
}
|
|
14131
14564
|
}, {
|
|
@@ -14195,7 +14628,6 @@ var XTransferTransferImpl = /*#__PURE__*/function () {
|
|
|
14195
14628
|
amount = input.amount,
|
|
14196
14629
|
origin = input.origin,
|
|
14197
14630
|
destination = input.destination,
|
|
14198
|
-
serializedApiCallEnabled = input.serializedApiCallEnabled,
|
|
14199
14631
|
overridedCurrencyMultiLocation = input.overridedCurrencyMultiLocation;
|
|
14200
14632
|
var isMultiLocationDestination = _typeof(destination) === 'object';
|
|
14201
14633
|
if (isMultiLocationDestination) {
|
|
@@ -14214,11 +14646,6 @@ var XTransferTransferImpl = /*#__PURE__*/function () {
|
|
|
14214
14646
|
dest_weight: destWeight
|
|
14215
14647
|
}
|
|
14216
14648
|
};
|
|
14217
|
-
if (serializedApiCallEnabled === true) {
|
|
14218
|
-
return Object.assign(Object.assign({}, call), {
|
|
14219
|
-
parameters: Object.values(call.parameters)
|
|
14220
|
-
});
|
|
14221
|
-
}
|
|
14222
14649
|
return api.callTxMethod(call);
|
|
14223
14650
|
}
|
|
14224
14651
|
}]);
|
|
@@ -14350,14 +14777,11 @@ var BridgeHubPolkadot$2 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
14350
14777
|
return Promise.resolve(PolkadotXCMTransferImpl.transferPolkadotXCM(input, section, 'Unlimited'));
|
|
14351
14778
|
}
|
|
14352
14779
|
}, {
|
|
14353
|
-
key: "
|
|
14354
|
-
value: function
|
|
14355
|
-
var _options$version = options.version,
|
|
14356
|
-
version = _options$version === void 0 ? exports.Version.V3 : _options$version;
|
|
14780
|
+
key: "getRelayToParaOverrides",
|
|
14781
|
+
value: function getRelayToParaOverrides() {
|
|
14357
14782
|
return {
|
|
14358
|
-
module: 'XcmPallet',
|
|
14359
14783
|
section: 'limited_teleport_assets',
|
|
14360
|
-
|
|
14784
|
+
includeFee: true
|
|
14361
14785
|
};
|
|
14362
14786
|
}
|
|
14363
14787
|
}]);
|
|
@@ -14383,14 +14807,11 @@ var BridgeHubKusama$2 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
14383
14807
|
return Promise.resolve(PolkadotXCMTransferImpl.transferPolkadotXCM(input, section, 'Unlimited'));
|
|
14384
14808
|
}
|
|
14385
14809
|
}, {
|
|
14386
|
-
key: "
|
|
14387
|
-
value: function
|
|
14388
|
-
var _options$version = options.version,
|
|
14389
|
-
version = _options$version === void 0 ? exports.Version.V3 : _options$version;
|
|
14810
|
+
key: "getRelayToParaOverrides",
|
|
14811
|
+
value: function getRelayToParaOverrides() {
|
|
14390
14812
|
return {
|
|
14391
|
-
module: 'XcmPallet',
|
|
14392
14813
|
section: 'limited_teleport_assets',
|
|
14393
|
-
|
|
14814
|
+
includeFee: true
|
|
14394
14815
|
};
|
|
14395
14816
|
}
|
|
14396
14817
|
}]);
|
|
@@ -14502,7 +14923,7 @@ var Polimec$2 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
14502
14923
|
_classCallCheck(this, Polimec);
|
|
14503
14924
|
_this = _callSuper(this, Polimec, ['Polimec', 'polimec', 'polkadot', exports.Version.V3]);
|
|
14504
14925
|
_this.getAssetMultiLocation = function (asset) {
|
|
14505
|
-
if (
|
|
14926
|
+
if (asset.symbol === 'DOT') {
|
|
14506
14927
|
return DOT_MULTILOCATION;
|
|
14507
14928
|
}
|
|
14508
14929
|
if (isForeignAsset(asset) && asset.multiLocation !== undefined) {
|
|
@@ -14698,6 +15119,9 @@ var assetsMap = assetsMapJson;
|
|
|
14698
15119
|
var getAssetsObject = function getAssetsObject(node) {
|
|
14699
15120
|
return assetsMap[node];
|
|
14700
15121
|
};
|
|
15122
|
+
var isNodeEvm = function isNodeEvm(node) {
|
|
15123
|
+
return assetsMap[node].isEVM;
|
|
15124
|
+
};
|
|
14701
15125
|
/**
|
|
14702
15126
|
* Retrieves the asset ID for a given symbol on a specified node.
|
|
14703
15127
|
*
|
|
@@ -15051,56 +15475,6 @@ var getExistentialDeposit$1 = function getExistentialDeposit(node) {
|
|
|
15051
15475
|
return edMap[node];
|
|
15052
15476
|
};
|
|
15053
15477
|
|
|
15054
|
-
var getBalanceNativeInternal = function getBalanceNativeInternal(_a) {
|
|
15055
|
-
return __awaiter(void 0, [_a], void 0, function (_ref) {
|
|
15056
|
-
var address = _ref.address,
|
|
15057
|
-
node = _ref.node,
|
|
15058
|
-
api = _ref.api;
|
|
15059
|
-
return /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
15060
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
15061
|
-
while (1) switch (_context.prev = _context.next) {
|
|
15062
|
-
case 0:
|
|
15063
|
-
_context.next = 2;
|
|
15064
|
-
return api.init(node);
|
|
15065
|
-
case 2:
|
|
15066
|
-
_context.next = 4;
|
|
15067
|
-
return api.getBalanceNative(address);
|
|
15068
|
-
case 4:
|
|
15069
|
-
return _context.abrupt("return", _context.sent);
|
|
15070
|
-
case 5:
|
|
15071
|
-
case "end":
|
|
15072
|
-
return _context.stop();
|
|
15073
|
-
}
|
|
15074
|
-
}, _callee);
|
|
15075
|
-
})();
|
|
15076
|
-
});
|
|
15077
|
-
};
|
|
15078
|
-
var getBalanceNative$1 = function getBalanceNative(options) {
|
|
15079
|
-
return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
15080
|
-
var api;
|
|
15081
|
-
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
15082
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
15083
|
-
case 0:
|
|
15084
|
-
api = options.api;
|
|
15085
|
-
_context2.prev = 1;
|
|
15086
|
-
_context2.next = 4;
|
|
15087
|
-
return getBalanceNativeInternal(options);
|
|
15088
|
-
case 4:
|
|
15089
|
-
return _context2.abrupt("return", _context2.sent);
|
|
15090
|
-
case 5:
|
|
15091
|
-
_context2.prev = 5;
|
|
15092
|
-
_context2.next = 8;
|
|
15093
|
-
return api.disconnect();
|
|
15094
|
-
case 8:
|
|
15095
|
-
return _context2.finish(5);
|
|
15096
|
-
case 9:
|
|
15097
|
-
case "end":
|
|
15098
|
-
return _context2.stop();
|
|
15099
|
-
}
|
|
15100
|
-
}, _callee2, null, [[1,, 5, 9]]);
|
|
15101
|
-
}));
|
|
15102
|
-
};
|
|
15103
|
-
|
|
15104
15478
|
var AssetHubPolkadot = {
|
|
15105
15479
|
defaultPallet: "PolkadotXcm",
|
|
15106
15480
|
supportedPallets: [
|
|
@@ -15937,46 +16311,43 @@ var getBalanceForeignPolkadotXcm = function getBalanceForeignPolkadotXcm(api, no
|
|
|
15937
16311
|
while (1) switch (_context.prev = _context.next) {
|
|
15938
16312
|
case 0:
|
|
15939
16313
|
if (!(node === 'Mythos')) {
|
|
15940
|
-
_context.next =
|
|
16314
|
+
_context.next = 2;
|
|
15941
16315
|
break;
|
|
15942
16316
|
}
|
|
15943
|
-
_context.
|
|
15944
|
-
|
|
15945
|
-
case 3:
|
|
15946
|
-
return _context.abrupt("return", _context.sent);
|
|
15947
|
-
case 4:
|
|
16317
|
+
return _context.abrupt("return", api.getMythosForeignBalance(address));
|
|
16318
|
+
case 2:
|
|
15948
16319
|
if (isForeignAsset(asset)) {
|
|
15949
|
-
_context.next =
|
|
16320
|
+
_context.next = 4;
|
|
15950
16321
|
break;
|
|
15951
16322
|
}
|
|
15952
16323
|
throw new InvalidCurrencyError("Asset ".concat(JSON.stringify(asset), " is not a foreign asset"));
|
|
15953
|
-
case
|
|
16324
|
+
case 4:
|
|
15954
16325
|
if (!(node === 'Polimec')) {
|
|
15955
|
-
_context.next =
|
|
16326
|
+
_context.next = 8;
|
|
15956
16327
|
break;
|
|
15957
16328
|
}
|
|
15958
16329
|
if (!(asset.assetId === undefined)) {
|
|
15959
|
-
_context.next =
|
|
16330
|
+
_context.next = 7;
|
|
15960
16331
|
break;
|
|
15961
16332
|
}
|
|
15962
16333
|
throw new InvalidCurrencyError("Asset ".concat(JSON.stringify(asset), " has no assetId"));
|
|
15963
|
-
case
|
|
16334
|
+
case 7:
|
|
15964
16335
|
return _context.abrupt("return", api.getForeignAssetsByIdBalance(address, asset.assetId));
|
|
15965
|
-
case
|
|
16336
|
+
case 8:
|
|
15966
16337
|
if (!(node === 'AssetHubPolkadot')) {
|
|
15967
|
-
_context.next =
|
|
16338
|
+
_context.next = 14;
|
|
15968
16339
|
break;
|
|
15969
16340
|
}
|
|
15970
16341
|
if (!asset.multiLocation) {
|
|
15971
|
-
_context.next =
|
|
16342
|
+
_context.next = 13;
|
|
15972
16343
|
break;
|
|
15973
16344
|
}
|
|
15974
16345
|
return _context.abrupt("return", api.getAssetHubForeignBalance(address, asset.multiLocation));
|
|
15975
|
-
case
|
|
16346
|
+
case 13:
|
|
15976
16347
|
return _context.abrupt("return", api.getBalanceForeignAssetsAccount(address, Number(asset.assetId)));
|
|
15977
|
-
case
|
|
16348
|
+
case 14:
|
|
15978
16349
|
return _context.abrupt("return", api.getBalanceForeignPolkadotXcm(address, asset.assetId));
|
|
15979
|
-
case
|
|
16350
|
+
case 15:
|
|
15980
16351
|
case "end":
|
|
15981
16352
|
return _context.stop();
|
|
15982
16353
|
}
|
|
@@ -16039,25 +16410,79 @@ var getBalanceForeignInternal = function getBalanceForeignInternal(_a) {
|
|
|
16039
16410
|
case 5:
|
|
16040
16411
|
defaultPallet = getDefaultPallet(node);
|
|
16041
16412
|
if (!(defaultPallet === 'XTokens')) {
|
|
16413
|
+
_context.next = 10;
|
|
16414
|
+
break;
|
|
16415
|
+
}
|
|
16416
|
+
return _context.abrupt("return", getBalanceForeignXTokens(api, node, address, asset));
|
|
16417
|
+
case 10:
|
|
16418
|
+
if (!(defaultPallet === 'PolkadotXcm')) {
|
|
16042
16419
|
_context.next = 12;
|
|
16043
16420
|
break;
|
|
16044
16421
|
}
|
|
16045
|
-
_context.
|
|
16046
|
-
return getBalanceForeignXTokens(api, node, address, asset);
|
|
16047
|
-
case 9:
|
|
16048
|
-
return _context.abrupt("return", _context.sent);
|
|
16422
|
+
return _context.abrupt("return", getBalanceForeignPolkadotXcm(api, node, address, asset));
|
|
16049
16423
|
case 12:
|
|
16050
|
-
|
|
16051
|
-
|
|
16424
|
+
throw new Error('Unsupported pallet');
|
|
16425
|
+
case 13:
|
|
16426
|
+
case "end":
|
|
16427
|
+
return _context.stop();
|
|
16428
|
+
}
|
|
16429
|
+
}, _callee);
|
|
16430
|
+
})();
|
|
16431
|
+
});
|
|
16432
|
+
};
|
|
16433
|
+
var getBalanceForeign$1 = function getBalanceForeign(options) {
|
|
16434
|
+
return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
16435
|
+
var api;
|
|
16436
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
16437
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
16438
|
+
case 0:
|
|
16439
|
+
api = options.api;
|
|
16440
|
+
_context2.prev = 1;
|
|
16441
|
+
_context2.next = 4;
|
|
16442
|
+
return getBalanceForeignInternal(options);
|
|
16443
|
+
case 4:
|
|
16444
|
+
return _context2.abrupt("return", _context2.sent);
|
|
16445
|
+
case 5:
|
|
16446
|
+
_context2.prev = 5;
|
|
16447
|
+
_context2.next = 8;
|
|
16448
|
+
return api.disconnect();
|
|
16449
|
+
case 8:
|
|
16450
|
+
return _context2.finish(5);
|
|
16451
|
+
case 9:
|
|
16452
|
+
case "end":
|
|
16453
|
+
return _context2.stop();
|
|
16454
|
+
}
|
|
16455
|
+
}, _callee2, null, [[1,, 5, 9]]);
|
|
16456
|
+
}));
|
|
16457
|
+
};
|
|
16458
|
+
|
|
16459
|
+
var getBalanceNativeInternal = function getBalanceNativeInternal(_a) {
|
|
16460
|
+
return __awaiter(void 0, [_a], void 0, function (_ref) {
|
|
16461
|
+
var address = _ref.address,
|
|
16462
|
+
node = _ref.node,
|
|
16463
|
+
api = _ref.api;
|
|
16464
|
+
return /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
16465
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
16466
|
+
while (1) switch (_context.prev = _context.next) {
|
|
16467
|
+
case 0:
|
|
16468
|
+
_context.next = 2;
|
|
16469
|
+
return api.init(node);
|
|
16470
|
+
case 2:
|
|
16471
|
+
if (!(node === 'Interlay')) {
|
|
16472
|
+
_context.next = 4;
|
|
16052
16473
|
break;
|
|
16053
16474
|
}
|
|
16054
|
-
_context.
|
|
16055
|
-
|
|
16056
|
-
|
|
16057
|
-
|
|
16058
|
-
|
|
16059
|
-
|
|
16060
|
-
|
|
16475
|
+
return _context.abrupt("return", getBalanceForeignInternal({
|
|
16476
|
+
address: address,
|
|
16477
|
+
node: node,
|
|
16478
|
+
api: api,
|
|
16479
|
+
currency: {
|
|
16480
|
+
symbol: getAssetsObject(node).nativeAssetSymbol
|
|
16481
|
+
}
|
|
16482
|
+
}));
|
|
16483
|
+
case 4:
|
|
16484
|
+
return _context.abrupt("return", api.getBalanceNative(address));
|
|
16485
|
+
case 5:
|
|
16061
16486
|
case "end":
|
|
16062
16487
|
return _context.stop();
|
|
16063
16488
|
}
|
|
@@ -16065,7 +16490,7 @@ var getBalanceForeignInternal = function getBalanceForeignInternal(_a) {
|
|
|
16065
16490
|
})();
|
|
16066
16491
|
});
|
|
16067
16492
|
};
|
|
16068
|
-
var
|
|
16493
|
+
var getBalanceNative$1 = function getBalanceNative(options) {
|
|
16069
16494
|
return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
16070
16495
|
var api;
|
|
16071
16496
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
@@ -16074,7 +16499,7 @@ var getBalanceForeign$1 = function getBalanceForeign(options) {
|
|
|
16074
16499
|
api = options.api;
|
|
16075
16500
|
_context2.prev = 1;
|
|
16076
16501
|
_context2.next = 4;
|
|
16077
|
-
return
|
|
16502
|
+
return getBalanceNativeInternal(options);
|
|
16078
16503
|
case 4:
|
|
16079
16504
|
return _context2.abrupt("return", _context2.sent);
|
|
16080
16505
|
case 5:
|
|
@@ -16106,7 +16531,7 @@ var getAssetBalanceInternal = function getAssetBalanceInternal(_a) {
|
|
|
16106
16531
|
return api.init(node);
|
|
16107
16532
|
case 2:
|
|
16108
16533
|
isNativeSymbol = 'symbol' in currency ? getNativeAssetSymbol(node) === currency.symbol : false;
|
|
16109
|
-
if (!isNativeSymbol) {
|
|
16534
|
+
if (!(isNativeSymbol && node !== 'Interlay')) {
|
|
16110
16535
|
_context.next = 9;
|
|
16111
16536
|
break;
|
|
16112
16537
|
}
|
|
@@ -16320,42 +16745,14 @@ var RelayToParaBuilder = /*#__PURE__*/function () {
|
|
|
16320
16745
|
while (1) switch (_context.prev = _context.next) {
|
|
16321
16746
|
case 0:
|
|
16322
16747
|
options = this.buildOptions();
|
|
16323
|
-
_context.
|
|
16324
|
-
|
|
16325
|
-
case 3:
|
|
16326
|
-
return _context.abrupt("return", _context.sent);
|
|
16327
|
-
case 4:
|
|
16748
|
+
return _context.abrupt("return", transferRelayToPara(options));
|
|
16749
|
+
case 2:
|
|
16328
16750
|
case "end":
|
|
16329
16751
|
return _context.stop();
|
|
16330
16752
|
}
|
|
16331
16753
|
}, _callee, this);
|
|
16332
16754
|
}));
|
|
16333
16755
|
}
|
|
16334
|
-
/**
|
|
16335
|
-
* Builds and returns a serialized API call for the transfer.
|
|
16336
|
-
*
|
|
16337
|
-
* @returns A Promise that resolves to the serialized API call.
|
|
16338
|
-
*/
|
|
16339
|
-
}, {
|
|
16340
|
-
key: "buildSerializedApiCall",
|
|
16341
|
-
value: function buildSerializedApiCall() {
|
|
16342
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
16343
|
-
var options;
|
|
16344
|
-
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
16345
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
16346
|
-
case 0:
|
|
16347
|
-
options = this.buildOptions();
|
|
16348
|
-
_context2.next = 3;
|
|
16349
|
-
return transferRelayToParaSerializedApiCall(options);
|
|
16350
|
-
case 3:
|
|
16351
|
-
return _context2.abrupt("return", _context2.sent);
|
|
16352
|
-
case 4:
|
|
16353
|
-
case "end":
|
|
16354
|
-
return _context2.stop();
|
|
16355
|
-
}
|
|
16356
|
-
}, _callee2, this);
|
|
16357
|
-
}));
|
|
16358
|
-
}
|
|
16359
16756
|
}], [{
|
|
16360
16757
|
key: "create",
|
|
16361
16758
|
value: function create(api, to, batchManager, paraIdTo) {
|
|
@@ -16501,28 +16898,6 @@ var ParaToParaBuilder = /*#__PURE__*/function () {
|
|
|
16501
16898
|
}, _callee, this);
|
|
16502
16899
|
}));
|
|
16503
16900
|
}
|
|
16504
|
-
/**
|
|
16505
|
-
* Builds and returns a serialized API call for the transfer.
|
|
16506
|
-
*
|
|
16507
|
-
* @returns A Promise that resolves to the serialized API call.
|
|
16508
|
-
*/
|
|
16509
|
-
}, {
|
|
16510
|
-
key: "buildSerializedApiCall",
|
|
16511
|
-
value: function buildSerializedApiCall() {
|
|
16512
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
16513
|
-
var options;
|
|
16514
|
-
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
16515
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
16516
|
-
case 0:
|
|
16517
|
-
options = this.buildOptions();
|
|
16518
|
-
return _context2.abrupt("return", sendSerializedApiCall(options));
|
|
16519
|
-
case 2:
|
|
16520
|
-
case "end":
|
|
16521
|
-
return _context2.stop();
|
|
16522
|
-
}
|
|
16523
|
-
}, _callee2, this);
|
|
16524
|
-
}));
|
|
16525
|
-
}
|
|
16526
16901
|
}], [{
|
|
16527
16902
|
key: "createParaToPara",
|
|
16528
16903
|
value: function createParaToPara(api, from, to, currency, batchManager, paraIdTo) {
|
|
@@ -16598,37 +16973,14 @@ var ParaToRelayBuilder = /*#__PURE__*/function () {
|
|
|
16598
16973
|
while (1) switch (_context.prev = _context.next) {
|
|
16599
16974
|
case 0:
|
|
16600
16975
|
options = this.buildOptions();
|
|
16601
|
-
_context.
|
|
16602
|
-
|
|
16603
|
-
case 3:
|
|
16604
|
-
return _context.abrupt("return", _context.sent);
|
|
16605
|
-
case 4:
|
|
16976
|
+
return _context.abrupt("return", send(options));
|
|
16977
|
+
case 2:
|
|
16606
16978
|
case "end":
|
|
16607
16979
|
return _context.stop();
|
|
16608
16980
|
}
|
|
16609
16981
|
}, _callee, this);
|
|
16610
16982
|
}));
|
|
16611
16983
|
}
|
|
16612
|
-
}, {
|
|
16613
|
-
key: "buildSerializedApiCall",
|
|
16614
|
-
value: function buildSerializedApiCall() {
|
|
16615
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
16616
|
-
var options;
|
|
16617
|
-
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
16618
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
16619
|
-
case 0:
|
|
16620
|
-
options = this.buildOptions();
|
|
16621
|
-
_context2.next = 3;
|
|
16622
|
-
return sendSerializedApiCall(options);
|
|
16623
|
-
case 3:
|
|
16624
|
-
return _context2.abrupt("return", _context2.sent);
|
|
16625
|
-
case 4:
|
|
16626
|
-
case "end":
|
|
16627
|
-
return _context2.stop();
|
|
16628
|
-
}
|
|
16629
|
-
}, _callee2, this);
|
|
16630
|
-
}));
|
|
16631
|
-
}
|
|
16632
16984
|
}], [{
|
|
16633
16985
|
key: "create",
|
|
16634
16986
|
value: function create(api, from, amount, batchManager, feeAsset) {
|
|
@@ -16676,11 +17028,11 @@ var buildClaimAssetsInput = function buildClaimAssetsInput(_ref) {
|
|
|
16676
17028
|
|
|
16677
17029
|
var claimAssets$1 = function claimAssets(options) {
|
|
16678
17030
|
return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
16679
|
-
var api, node,
|
|
17031
|
+
var api, node, args, module, call;
|
|
16680
17032
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
16681
17033
|
while (1) switch (_context.prev = _context.next) {
|
|
16682
17034
|
case 0:
|
|
16683
|
-
api = options.api, node = options.node
|
|
17035
|
+
api = options.api, node = options.node;
|
|
16684
17036
|
_context.next = 3;
|
|
16685
17037
|
return api.init(node);
|
|
16686
17038
|
case 3:
|
|
@@ -16692,30 +17044,22 @@ var claimAssets$1 = function claimAssets(options) {
|
|
|
16692
17044
|
section: 'claim_assets',
|
|
16693
17045
|
parameters: args
|
|
16694
17046
|
};
|
|
16695
|
-
if (!(serializedApiCallEnabled === true)) {
|
|
16696
|
-
_context.next = 9;
|
|
16697
|
-
break;
|
|
16698
|
-
}
|
|
16699
|
-
return _context.abrupt("return", Object.assign(Object.assign({}, call), {
|
|
16700
|
-
parameters: Object.values(args)
|
|
16701
|
-
}));
|
|
16702
|
-
case 9:
|
|
16703
17047
|
return _context.abrupt("return", api.callTxMethod(call));
|
|
16704
|
-
case
|
|
16705
|
-
_context.prev =
|
|
17048
|
+
case 8:
|
|
17049
|
+
_context.prev = 8;
|
|
16706
17050
|
if (!isPjsClient(api)) {
|
|
16707
|
-
_context.next =
|
|
17051
|
+
_context.next = 12;
|
|
16708
17052
|
break;
|
|
16709
17053
|
}
|
|
16710
|
-
_context.next =
|
|
17054
|
+
_context.next = 12;
|
|
16711
17055
|
return api.disconnect();
|
|
16712
|
-
case
|
|
16713
|
-
return _context.finish(
|
|
16714
|
-
case
|
|
17056
|
+
case 12:
|
|
17057
|
+
return _context.finish(8);
|
|
17058
|
+
case 13:
|
|
16715
17059
|
case "end":
|
|
16716
17060
|
return _context.stop();
|
|
16717
17061
|
}
|
|
16718
|
-
}, _callee, null, [[3,,
|
|
17062
|
+
}, _callee, null, [[3,, 8, 13]]);
|
|
16719
17063
|
}));
|
|
16720
17064
|
};
|
|
16721
17065
|
|
|
@@ -16801,30 +17145,6 @@ var AssetClaimBuilder = /*#__PURE__*/function () {
|
|
|
16801
17145
|
}, _callee, this);
|
|
16802
17146
|
}));
|
|
16803
17147
|
}
|
|
16804
|
-
/**
|
|
16805
|
-
* Builds and returns a serialized API call for the asset claim.
|
|
16806
|
-
*
|
|
16807
|
-
* @returns A Promise that resolves to the serialized API call.
|
|
16808
|
-
*/
|
|
16809
|
-
}, {
|
|
16810
|
-
key: "buildSerializedApiCall",
|
|
16811
|
-
value: function buildSerializedApiCall() {
|
|
16812
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
16813
|
-
var options;
|
|
16814
|
-
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
16815
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
16816
|
-
case 0:
|
|
16817
|
-
options = this.buildOptions();
|
|
16818
|
-
return _context2.abrupt("return", claimAssets$1(Object.assign(Object.assign({}, options), {
|
|
16819
|
-
serializedApiCallEnabled: true
|
|
16820
|
-
})));
|
|
16821
|
-
case 2:
|
|
16822
|
-
case "end":
|
|
16823
|
-
return _context2.stop();
|
|
16824
|
-
}
|
|
16825
|
-
}, _callee2, this);
|
|
16826
|
-
}));
|
|
16827
|
-
}
|
|
16828
17148
|
}], [{
|
|
16829
17149
|
key: "create",
|
|
16830
17150
|
value: function create(api, node) {
|
|
@@ -17093,8 +17413,7 @@ var createContext = function createContext(executionUrl, config) {
|
|
|
17093
17413
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17094
17414
|
while (1) switch (_context.prev = _context.next) {
|
|
17095
17415
|
case 0:
|
|
17096
|
-
_context.
|
|
17097
|
-
return api.contextFactory({
|
|
17416
|
+
return _context.abrupt("return", api.contextFactory({
|
|
17098
17417
|
ethereum: {
|
|
17099
17418
|
execution_url: executionUrl,
|
|
17100
17419
|
beacon_url: config.BEACON_HTTP_API
|
|
@@ -17111,10 +17430,8 @@ var createContext = function createContext(executionUrl, config) {
|
|
|
17111
17430
|
gateway: config.GATEWAY_CONTRACT,
|
|
17112
17431
|
beefy: config.BEEFY_CONTRACT
|
|
17113
17432
|
}
|
|
17114
|
-
});
|
|
17115
|
-
case
|
|
17116
|
-
return _context.abrupt("return", _context.sent);
|
|
17117
|
-
case 3:
|
|
17433
|
+
}));
|
|
17434
|
+
case 1:
|
|
17118
17435
|
case "end":
|
|
17119
17436
|
return _context.stop();
|
|
17120
17437
|
}
|
|
@@ -17308,28 +17625,19 @@ var createTx$1 = function createTx(api, address, amount, currency, originNode, d
|
|
|
17308
17625
|
while (1) switch (_context.prev = _context.next) {
|
|
17309
17626
|
case 0:
|
|
17310
17627
|
if (!isRelayChain(originNode)) {
|
|
17311
|
-
_context.next =
|
|
17628
|
+
_context.next = 4;
|
|
17312
17629
|
break;
|
|
17313
17630
|
}
|
|
17314
|
-
_context.
|
|
17315
|
-
|
|
17316
|
-
case 3:
|
|
17317
|
-
return _context.abrupt("return", _context.sent);
|
|
17318
|
-
case 6:
|
|
17631
|
+
return _context.abrupt("return", Builder$1(api).to(destNode).amount(amount).address(address).build());
|
|
17632
|
+
case 4:
|
|
17319
17633
|
if (!isRelayChain(destNode)) {
|
|
17320
|
-
_context.next =
|
|
17634
|
+
_context.next = 8;
|
|
17321
17635
|
break;
|
|
17322
17636
|
}
|
|
17323
|
-
_context.
|
|
17324
|
-
|
|
17637
|
+
return _context.abrupt("return", Builder$1(api).from(originNode).amount(amount).address(address).build());
|
|
17638
|
+
case 8:
|
|
17639
|
+
return _context.abrupt("return", Builder$1(api).from(originNode).to(destNode).currency(currency).amount(amount).address(address).build());
|
|
17325
17640
|
case 9:
|
|
17326
|
-
return _context.abrupt("return", _context.sent);
|
|
17327
|
-
case 12:
|
|
17328
|
-
_context.next = 14;
|
|
17329
|
-
return Builder$1(api).from(originNode).to(destNode).currency(currency).amount(amount).address(address).build();
|
|
17330
|
-
case 14:
|
|
17331
|
-
return _context.abrupt("return", _context.sent);
|
|
17332
|
-
case 15:
|
|
17333
17641
|
case "end":
|
|
17334
17642
|
return _context.stop();
|
|
17335
17643
|
}
|
|
@@ -17610,45 +17918,198 @@ var getSupportedAssets = function getSupportedAssets(origin, destination) {
|
|
|
17610
17918
|
symbol: "".concat(wethAsset.symbol, ".e")
|
|
17611
17919
|
});
|
|
17612
17920
|
}
|
|
17613
|
-
return supportedAssets;
|
|
17921
|
+
return supportedAssets;
|
|
17922
|
+
};
|
|
17923
|
+
|
|
17924
|
+
var isPrimitive = function isPrimitive(obj) {
|
|
17925
|
+
return obj !== Object(obj);
|
|
17926
|
+
};
|
|
17927
|
+
var _deepEqual = function deepEqual(obj1, obj2) {
|
|
17928
|
+
if (obj1 === obj2) return true;
|
|
17929
|
+
if (isPrimitive(obj1) && isPrimitive(obj2)) return obj1 === obj2;
|
|
17930
|
+
if (_typeof(obj1) !== 'object' || obj1 === null || _typeof(obj2) !== 'object' || obj2 === null) {
|
|
17931
|
+
return false;
|
|
17932
|
+
}
|
|
17933
|
+
if (Array.isArray(obj1) !== Array.isArray(obj2)) {
|
|
17934
|
+
return false;
|
|
17935
|
+
}
|
|
17936
|
+
var obj1Keys = Object.keys(obj1).map(function (key) {
|
|
17937
|
+
return key.toLowerCase();
|
|
17938
|
+
});
|
|
17939
|
+
var obj2Keys = Object.keys(obj2).map(function (key) {
|
|
17940
|
+
return key.toLowerCase();
|
|
17941
|
+
});
|
|
17942
|
+
if (obj1Keys.length !== obj2Keys.length) return false;
|
|
17943
|
+
var _iterator = _createForOfIteratorHelper(obj1Keys),
|
|
17944
|
+
_step;
|
|
17945
|
+
try {
|
|
17946
|
+
var _loop = function _loop() {
|
|
17947
|
+
var key = _step.value;
|
|
17948
|
+
var keyInObj2 = obj2Keys.find(function (k) {
|
|
17949
|
+
return k === key;
|
|
17950
|
+
});
|
|
17951
|
+
if (!keyInObj2) return {
|
|
17952
|
+
v: false
|
|
17953
|
+
};
|
|
17954
|
+
var obj1Value = obj1[Object.keys(obj1).find(function (k) {
|
|
17955
|
+
return k.toLowerCase() === key;
|
|
17956
|
+
})];
|
|
17957
|
+
var obj2Value = obj2[Object.keys(obj2).find(function (k) {
|
|
17958
|
+
return k.toLowerCase() === key;
|
|
17959
|
+
})];
|
|
17960
|
+
if (!_deepEqual(obj1Value, obj2Value)) return {
|
|
17961
|
+
v: false
|
|
17962
|
+
};
|
|
17963
|
+
},
|
|
17964
|
+
_ret;
|
|
17965
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
17966
|
+
_ret = _loop();
|
|
17967
|
+
if (_ret) return _ret.v;
|
|
17968
|
+
}
|
|
17969
|
+
} catch (err) {
|
|
17970
|
+
_iterator.e(err);
|
|
17971
|
+
} finally {
|
|
17972
|
+
_iterator.f();
|
|
17973
|
+
}
|
|
17974
|
+
return true;
|
|
17975
|
+
};
|
|
17976
|
+
|
|
17977
|
+
var getFees = function getFees(scenario) {
|
|
17978
|
+
if (scenario === 'ParaToRelay') {
|
|
17979
|
+
return 4600000000;
|
|
17980
|
+
} else if (scenario === 'ParaToPara') {
|
|
17981
|
+
return 399600000000;
|
|
17982
|
+
}
|
|
17983
|
+
throw new Error("Fees for scenario ".concat(scenario, " are not defined."));
|
|
17984
|
+
};
|
|
17985
|
+
|
|
17986
|
+
/**
|
|
17987
|
+
* Retrieves the node instance for a given node.
|
|
17988
|
+
*
|
|
17989
|
+
* @param node - The node identifier.
|
|
17990
|
+
* @returns The node instance
|
|
17991
|
+
*/
|
|
17992
|
+
var getNode = function getNode(node) {
|
|
17993
|
+
var nodeMap = nodes();
|
|
17994
|
+
return nodeMap[node];
|
|
17995
|
+
};
|
|
17996
|
+
|
|
17997
|
+
var createApiInstanceForNode$1 = function createApiInstanceForNode(api, node) {
|
|
17998
|
+
return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
17999
|
+
var wsUrl;
|
|
18000
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18001
|
+
while (1) switch (_context.prev = _context.next) {
|
|
18002
|
+
case 0:
|
|
18003
|
+
if (!(node === 'Polkadot' || node === 'Kusama')) {
|
|
18004
|
+
_context.next = 3;
|
|
18005
|
+
break;
|
|
18006
|
+
}
|
|
18007
|
+
wsUrl = getNodeProvider(node);
|
|
18008
|
+
return _context.abrupt("return", api.createApiInstance(wsUrl));
|
|
18009
|
+
case 3:
|
|
18010
|
+
return _context.abrupt("return", getNode(node).createApiInstance(api));
|
|
18011
|
+
case 4:
|
|
18012
|
+
case "end":
|
|
18013
|
+
return _context.stop();
|
|
18014
|
+
}
|
|
18015
|
+
}, _callee);
|
|
18016
|
+
}));
|
|
18017
|
+
};
|
|
18018
|
+
|
|
18019
|
+
var determineRelayChainSymbol = function determineRelayChainSymbol(node) {
|
|
18020
|
+
if (node === 'Polkadot') {
|
|
18021
|
+
return 'DOT';
|
|
18022
|
+
} else if (node === 'Kusama') {
|
|
18023
|
+
return 'KSM';
|
|
18024
|
+
} else {
|
|
18025
|
+
return getRelayChainSymbol(node);
|
|
18026
|
+
}
|
|
18027
|
+
};
|
|
18028
|
+
|
|
18029
|
+
// Contains important call creation utils (Selection of fees,formating of header and more.. )
|
|
18030
|
+
/**
|
|
18031
|
+
* Determines the relay chain for a given node.
|
|
18032
|
+
*
|
|
18033
|
+
* @param node - The node for which to determine the relay chain.
|
|
18034
|
+
* @returns 'Kusama' if the node's relay chain symbol is 'KSM'; otherwise, 'Polkadot'.
|
|
18035
|
+
*/
|
|
18036
|
+
var determineRelayChain = function determineRelayChain(node) {
|
|
18037
|
+
return getRelayChainSymbol(node) === 'KSM' ? 'Kusama' : 'Polkadot';
|
|
18038
|
+
};
|
|
18039
|
+
/**
|
|
18040
|
+
* Determines whether a given node is a relay chain (Polkadot or Kusama).
|
|
18041
|
+
*
|
|
18042
|
+
* @param node - The node to check.
|
|
18043
|
+
* @returns True if the node is 'Polkadot' or 'Kusama'; otherwise, false.
|
|
18044
|
+
*/
|
|
18045
|
+
var isRelayChain = function isRelayChain(node) {
|
|
18046
|
+
return node === 'Polkadot' || node === 'Kusama';
|
|
18047
|
+
};
|
|
18048
|
+
|
|
18049
|
+
var validateDestinationAddress = function validateDestinationAddress(address, destination) {
|
|
18050
|
+
if (typeof address === 'string' && destination && !isTMultiLocation(destination)) {
|
|
18051
|
+
var isDestinationEvm = isNodeEvm(destination);
|
|
18052
|
+
var isEthereumAddress = ethers.ethers.isAddress(address);
|
|
18053
|
+
if (isDestinationEvm) {
|
|
18054
|
+
if (!isEthereumAddress) {
|
|
18055
|
+
throw new InvalidAddressError('Destination node is an EVM chain, but the address provided is not a valid Ethereum address.');
|
|
18056
|
+
}
|
|
18057
|
+
} else {
|
|
18058
|
+
if (isEthereumAddress) {
|
|
18059
|
+
throw new InvalidAddressError('EVM address provided but destination is not an EVM chain.');
|
|
18060
|
+
}
|
|
18061
|
+
}
|
|
18062
|
+
}
|
|
18063
|
+
};
|
|
18064
|
+
|
|
18065
|
+
var determineAssetCheckEnabled = function determineAssetCheckEnabled(origin, currency, isBridge) {
|
|
18066
|
+
var originNode = getNode(origin);
|
|
18067
|
+
return 'multiasset' in currency || 'multilocation' in currency && isOverrideMultiLocationSpecifier(currency.multilocation) || isBridge ? false : originNode.assetCheckEnabled;
|
|
18068
|
+
};
|
|
18069
|
+
|
|
18070
|
+
var isBridgeTransfer = function isBridgeTransfer(origin, destination) {
|
|
18071
|
+
return origin === 'AssetHubPolkadot' && destination === 'AssetHubKusama' || origin === 'AssetHubKusama' && destination === 'AssetHubPolkadot';
|
|
17614
18072
|
};
|
|
17615
18073
|
|
|
18074
|
+
var KeepAliveError = /*#__PURE__*/function (_Error) {
|
|
18075
|
+
function KeepAliveError(message) {
|
|
18076
|
+
var _this;
|
|
18077
|
+
_classCallCheck(this, KeepAliveError);
|
|
18078
|
+
_this = _callSuper(this, KeepAliveError, [message]);
|
|
18079
|
+
_this.name = 'KeepAliveError';
|
|
18080
|
+
return _this;
|
|
18081
|
+
}
|
|
18082
|
+
_inherits(KeepAliveError, _Error);
|
|
18083
|
+
return _createClass(KeepAliveError);
|
|
18084
|
+
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
18085
|
+
|
|
17616
18086
|
var createTx = function createTx(originApi, destApi, address, amount, currencySymbol, originNode, destNode) {
|
|
17617
18087
|
return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
17618
18088
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17619
18089
|
while (1) switch (_context.prev = _context.next) {
|
|
17620
18090
|
case 0:
|
|
17621
18091
|
if (!(originNode !== undefined && destNode !== undefined)) {
|
|
17622
|
-
_context.next =
|
|
18092
|
+
_context.next = 2;
|
|
17623
18093
|
break;
|
|
17624
18094
|
}
|
|
17625
|
-
_context.
|
|
17626
|
-
return Builder$1(destApi).from(destNode).to(originNode).currency({
|
|
18095
|
+
return _context.abrupt("return", Builder$1(destApi).from(destNode).to(originNode).currency({
|
|
17627
18096
|
symbol: currencySymbol
|
|
17628
|
-
}).amount(amount).address(address).build();
|
|
17629
|
-
case
|
|
17630
|
-
return _context.abrupt("return", _context.sent);
|
|
17631
|
-
case 4:
|
|
18097
|
+
}).amount(amount).address(address).build());
|
|
18098
|
+
case 2:
|
|
17632
18099
|
if (!(originNode === undefined && destNode !== undefined)) {
|
|
17633
|
-
_context.next =
|
|
18100
|
+
_context.next = 6;
|
|
17634
18101
|
break;
|
|
17635
18102
|
}
|
|
17636
|
-
_context.
|
|
17637
|
-
|
|
17638
|
-
case 7:
|
|
17639
|
-
return _context.abrupt("return", _context.sent);
|
|
17640
|
-
case 10:
|
|
18103
|
+
return _context.abrupt("return", Builder$1(originApi).to(destNode).amount(amount).address(address).build());
|
|
18104
|
+
case 6:
|
|
17641
18105
|
if (!(originNode !== undefined && destNode === undefined)) {
|
|
17642
|
-
_context.next =
|
|
18106
|
+
_context.next = 10;
|
|
17643
18107
|
break;
|
|
17644
18108
|
}
|
|
17645
|
-
_context.
|
|
17646
|
-
|
|
17647
|
-
case 13:
|
|
17648
|
-
return _context.abrupt("return", _context.sent);
|
|
17649
|
-
case 16:
|
|
18109
|
+
return _context.abrupt("return", Builder$1(destApi).to(originNode).amount(amount).address(address).build());
|
|
18110
|
+
case 10:
|
|
17650
18111
|
return _context.abrupt("return", null);
|
|
17651
|
-
case
|
|
18112
|
+
case 11:
|
|
17652
18113
|
case "end":
|
|
17653
18114
|
return _context.stop();
|
|
17654
18115
|
}
|
|
@@ -17751,174 +18212,62 @@ var checkKeepAlive = function checkKeepAlive(_a) {
|
|
|
17751
18212
|
});
|
|
17752
18213
|
};
|
|
17753
18214
|
|
|
17754
|
-
var
|
|
17755
|
-
|
|
17756
|
-
|
|
17757
|
-
|
|
17758
|
-
|
|
17759
|
-
|
|
18215
|
+
var performKeepAliveCheck = function performKeepAliveCheck(_a, asset_1) {
|
|
18216
|
+
return __awaiter(void 0, [_a, asset_1], void 0, function (_ref, asset) {
|
|
18217
|
+
var api = _ref.api,
|
|
18218
|
+
origin = _ref.origin,
|
|
18219
|
+
destApiForKeepAlive = _ref.destApiForKeepAlive,
|
|
18220
|
+
amount = _ref.amount,
|
|
18221
|
+
currency = _ref.currency,
|
|
18222
|
+
address = _ref.address,
|
|
18223
|
+
destination = _ref.destination;
|
|
17760
18224
|
return /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
17761
|
-
var
|
|
18225
|
+
var amountStr;
|
|
17762
18226
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17763
18227
|
while (1) switch (_context.prev = _context.next) {
|
|
17764
18228
|
case 0:
|
|
17765
|
-
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;
|
|
17766
|
-
if (!((!('multiasset' in currency) || 'multilocation' in currency) && amount === null)) {
|
|
17767
|
-
_context.next = 3;
|
|
17768
|
-
break;
|
|
17769
|
-
}
|
|
17770
|
-
throw new Error('Amount is required');
|
|
17771
|
-
case 3:
|
|
17772
|
-
if (!('multilocation' in currency && (feeAsset === 0 || feeAsset !== undefined))) {
|
|
17773
|
-
_context.next = 5;
|
|
17774
|
-
break;
|
|
17775
|
-
}
|
|
17776
|
-
throw new InvalidCurrencyError('Overrided single multi asset cannot be used with fee asset');
|
|
17777
|
-
case 5:
|
|
17778
|
-
if (!('multiasset' in currency)) {
|
|
17779
|
-
_context.next = 15;
|
|
17780
|
-
break;
|
|
17781
|
-
}
|
|
17782
|
-
if (amount !== null) {
|
|
17783
|
-
console.warn('Amount is ignored when using overriding currency using multiple multi locations. Please set it to null.');
|
|
17784
|
-
}
|
|
17785
|
-
if (!(currency.multiasset.length === 0)) {
|
|
17786
|
-
_context.next = 9;
|
|
17787
|
-
break;
|
|
17788
|
-
}
|
|
17789
|
-
throw new InvalidCurrencyError('Overrided multi assets cannot be empty');
|
|
17790
|
-
case 9:
|
|
17791
|
-
if (!(currency.multiasset.length === 1 && (feeAsset === 0 || feeAsset !== undefined))) {
|
|
17792
|
-
_context.next = 11;
|
|
17793
|
-
break;
|
|
17794
|
-
}
|
|
17795
|
-
throw new InvalidCurrencyError('Overrided single multi asset cannot be used with fee asset');
|
|
17796
|
-
case 11:
|
|
17797
|
-
if (!(currency.multiasset.length > 1 && feeAsset === undefined)) {
|
|
17798
|
-
_context.next = 13;
|
|
17799
|
-
break;
|
|
17800
|
-
}
|
|
17801
|
-
throw new InvalidCurrencyError('Overrided multi assets cannot be used without specifying fee asset');
|
|
17802
|
-
case 13:
|
|
17803
|
-
if (!(currency.multiasset.length > 1 && feeAsset !== undefined && (feeAsset < 0 || feeAsset >= currency.multiasset.length))) {
|
|
17804
|
-
_context.next = 15;
|
|
17805
|
-
break;
|
|
17806
|
-
}
|
|
17807
|
-
throw new InvalidCurrencyError('Fee asset index is out of bounds. Please provide a valid index.');
|
|
17808
|
-
case 15:
|
|
17809
|
-
if (!(destination === 'Ethereum' && origin !== 'AssetHubPolkadot' && origin !== 'Hydration')) {
|
|
17810
|
-
_context.next = 17;
|
|
17811
|
-
break;
|
|
17812
|
-
}
|
|
17813
|
-
throw new IncompatibleNodesError('Transfers to Ethereum are only supported from AssetHubPolkadot and Hydration.');
|
|
17814
|
-
case 17:
|
|
17815
|
-
isMultiLocationDestination = _typeof(destination) === 'object';
|
|
17816
|
-
isBridge = origin === 'AssetHubPolkadot' && destination === 'AssetHubKusama' || origin === 'AssetHubKusama' && destination === 'AssetHubPolkadot';
|
|
17817
|
-
isRelayDestination = destination === undefined;
|
|
17818
|
-
if (!(!isRelayDestination && !isMultiLocationDestination)) {
|
|
17819
|
-
_context.next = 25;
|
|
17820
|
-
break;
|
|
17821
|
-
}
|
|
17822
|
-
originRelayChainSymbol = getRelayChainSymbol(origin);
|
|
17823
|
-
destinationRelayChainSymbol = getRelayChainSymbol(destination);
|
|
17824
|
-
if (!(!isBridge && originRelayChainSymbol !== destinationRelayChainSymbol)) {
|
|
17825
|
-
_context.next = 25;
|
|
17826
|
-
break;
|
|
17827
|
-
}
|
|
17828
|
-
throw new IncompatibleNodesError();
|
|
17829
|
-
case 25:
|
|
17830
|
-
originNode = getNode(origin);
|
|
17831
|
-
assetCheckEnabled = 'multiasset' in currency || 'multilocation' in currency && isOverrideMultiLocationSpecifier(currency.multilocation) || isBridge ? false : originNode.assetCheckEnabled;
|
|
17832
|
-
isDestAssetHub = destination === 'AssetHubPolkadot' || destination === 'AssetHubKusama';
|
|
17833
|
-
pallet = getDefaultPallet(origin);
|
|
17834
|
-
isBifrost = origin === 'BifrostPolkadot' || origin === 'BifrostKusama';
|
|
17835
|
-
if (!(!assetCheckEnabled && 'symbol' in currency && isSymbolSpecifier(currency.symbol))) {
|
|
17836
|
-
_context.next = 32;
|
|
17837
|
-
break;
|
|
17838
|
-
}
|
|
17839
|
-
throw new InvalidCurrencyError('Symbol specifier is not supported when asset check is disabled. Please use normal symbol instead.');
|
|
17840
|
-
case 32:
|
|
17841
|
-
if (!(!assetCheckEnabled && 'id' in currency)) {
|
|
17842
|
-
_context.next = 34;
|
|
17843
|
-
break;
|
|
17844
|
-
}
|
|
17845
|
-
throw new InvalidCurrencyError('Asset ID is not supported when asset check is disabled. Please use normal symbol instead');
|
|
17846
|
-
case 34:
|
|
17847
|
-
asset = assetCheckEnabled ? getAssetBySymbolOrId(origin, currency, isRelayDestination ? determineRelayChain(origin) : !isTMultiLocation(destination) ? destination : null) : null;
|
|
17848
|
-
if (!(!isBridge && isDestAssetHub && pallet === 'XTokens' && !isBifrost)) {
|
|
17849
|
-
_context.next = 40;
|
|
17850
|
-
break;
|
|
17851
|
-
}
|
|
17852
|
-
nativeAssets = getNativeAssets(destination);
|
|
17853
|
-
if (origin === 'Hydration') {
|
|
17854
|
-
nativeAssets = nativeAssets.filter(function (nativeAsset) {
|
|
17855
|
-
return nativeAsset.symbol !== 'DOT';
|
|
17856
|
-
});
|
|
17857
|
-
}
|
|
17858
|
-
if (!('symbol' in currency && nativeAssets.some(function (nativeAsset) {
|
|
17859
|
-
var _a;
|
|
17860
|
-
return nativeAsset.symbol.toLowerCase() === ((_a = asset === null || asset === void 0 ? void 0 : asset.symbol) === null || _a === void 0 ? void 0 : _a.toLowerCase());
|
|
17861
|
-
}))) {
|
|
17862
|
-
_context.next = 40;
|
|
17863
|
-
break;
|
|
17864
|
-
}
|
|
17865
|
-
throw new InvalidCurrencyError("".concat(JSON.stringify(asset === null || asset === void 0 ? void 0 : asset.symbol), " is not supported for transfers to ").concat(destination, "."));
|
|
17866
|
-
case 40:
|
|
17867
|
-
if (!isBridge && asset === null && assetCheckEnabled) {
|
|
17868
|
-
throwUnsupportedCurrency(currency, origin);
|
|
17869
|
-
}
|
|
17870
|
-
if (!(!isBridge && !isRelayDestination && !isMultiLocationDestination && (asset === null || asset === void 0 ? void 0 : asset.symbol) !== undefined && assetCheckEnabled && !('id' in currency) && !hasSupportForAsset(destination, asset.symbol))) {
|
|
17871
|
-
_context.next = 43;
|
|
17872
|
-
break;
|
|
17873
|
-
}
|
|
17874
|
-
throw new InvalidCurrencyError("Destination node ".concat(destination, " does not support currency ").concat(JSON.stringify(currency), "."));
|
|
17875
|
-
case 43:
|
|
17876
|
-
_context.next = 45;
|
|
17877
|
-
return api.init(origin);
|
|
17878
|
-
case 45:
|
|
17879
|
-
_context.prev = 45;
|
|
17880
18229
|
amountStr = amount === null || amount === void 0 ? void 0 : amount.toString();
|
|
17881
18230
|
if (!('multilocation' in currency || 'multiasset' in currency)) {
|
|
17882
|
-
_context.next =
|
|
18231
|
+
_context.next = 5;
|
|
17883
18232
|
break;
|
|
17884
18233
|
}
|
|
17885
18234
|
console.warn('Keep alive check is not supported when using MultiLocation as currency.');
|
|
17886
|
-
_context.next =
|
|
18235
|
+
_context.next = 23;
|
|
17887
18236
|
break;
|
|
17888
|
-
case
|
|
18237
|
+
case 5:
|
|
17889
18238
|
if (!(_typeof(address) === 'object')) {
|
|
17890
|
-
_context.next =
|
|
18239
|
+
_context.next = 9;
|
|
17891
18240
|
break;
|
|
17892
18241
|
}
|
|
17893
18242
|
console.warn('Keep alive check is not supported when using MultiLocation as address.');
|
|
17894
|
-
_context.next =
|
|
18243
|
+
_context.next = 23;
|
|
17895
18244
|
break;
|
|
17896
|
-
case
|
|
18245
|
+
case 9:
|
|
17897
18246
|
if (!(_typeof(destination) === 'object')) {
|
|
17898
|
-
_context.next =
|
|
18247
|
+
_context.next = 13;
|
|
17899
18248
|
break;
|
|
17900
18249
|
}
|
|
17901
18250
|
console.warn('Keep alive check is not supported when using MultiLocation as destination.');
|
|
17902
|
-
_context.next =
|
|
18251
|
+
_context.next = 23;
|
|
17903
18252
|
break;
|
|
17904
|
-
case
|
|
18253
|
+
case 13:
|
|
17905
18254
|
if (!(destination === 'Ethereum')) {
|
|
17906
|
-
_context.next =
|
|
18255
|
+
_context.next = 17;
|
|
17907
18256
|
break;
|
|
17908
18257
|
}
|
|
17909
18258
|
console.warn('Keep alive check is not supported when using Ethereum as origin or destination.');
|
|
17910
|
-
_context.next =
|
|
18259
|
+
_context.next = 23;
|
|
17911
18260
|
break;
|
|
17912
|
-
case
|
|
18261
|
+
case 17:
|
|
17913
18262
|
if (asset) {
|
|
17914
|
-
_context.next =
|
|
18263
|
+
_context.next = 21;
|
|
17915
18264
|
break;
|
|
17916
18265
|
}
|
|
17917
18266
|
console.warn('Keep alive check is not supported when asset check is disabled.');
|
|
17918
|
-
_context.next =
|
|
18267
|
+
_context.next = 23;
|
|
17919
18268
|
break;
|
|
17920
|
-
case
|
|
17921
|
-
_context.next =
|
|
18269
|
+
case 21:
|
|
18270
|
+
_context.next = 23;
|
|
17922
18271
|
return checkKeepAlive({
|
|
17923
18272
|
originApi: api,
|
|
17924
18273
|
address: address,
|
|
@@ -17928,182 +18277,230 @@ var sendCommon = function sendCommon(options_1) {
|
|
|
17928
18277
|
asset: asset,
|
|
17929
18278
|
destNode: destination
|
|
17930
18279
|
});
|
|
17931
|
-
case
|
|
17932
|
-
// In case asset check is disabled, we create asset object from currency symbol
|
|
17933
|
-
resolvedAsset = asset !== null && asset !== void 0 ? asset : {
|
|
17934
|
-
symbol: 'symbol' in currency ? currency.symbol : undefined
|
|
17935
|
-
};
|
|
17936
|
-
return _context.abrupt("return", originNode.transfer({
|
|
17937
|
-
api: api,
|
|
17938
|
-
asset: resolvedAsset,
|
|
17939
|
-
amount: amountStr !== null && amountStr !== void 0 ? amountStr : '',
|
|
17940
|
-
address: address,
|
|
17941
|
-
destination: destination,
|
|
17942
|
-
paraIdTo: paraIdTo,
|
|
17943
|
-
overridedCurrencyMultiLocation: 'multilocation' in currency && isOverrideMultiLocationSpecifier(currency.multilocation) ? currency.multilocation.value : 'multiasset' in currency ? currency.multiasset : undefined,
|
|
17944
|
-
feeAsset: feeAsset,
|
|
17945
|
-
version: version,
|
|
17946
|
-
destApiForKeepAlive: destApiForKeepAlive,
|
|
17947
|
-
serializedApiCallEnabled: serializedApiCallEnabled,
|
|
17948
|
-
ahAddress: ahAddress
|
|
17949
|
-
}));
|
|
17950
|
-
case 71:
|
|
17951
|
-
_context.prev = 71;
|
|
17952
|
-
if (!isPjsClient(api)) {
|
|
17953
|
-
_context.next = 75;
|
|
17954
|
-
break;
|
|
17955
|
-
}
|
|
17956
|
-
_context.next = 75;
|
|
17957
|
-
return api.disconnect();
|
|
17958
|
-
case 75:
|
|
17959
|
-
return _context.finish(71);
|
|
17960
|
-
case 76:
|
|
18280
|
+
case 23:
|
|
17961
18281
|
case "end":
|
|
17962
18282
|
return _context.stop();
|
|
17963
18283
|
}
|
|
17964
|
-
}, _callee
|
|
18284
|
+
}, _callee);
|
|
17965
18285
|
})();
|
|
17966
18286
|
});
|
|
17967
18287
|
};
|
|
17968
|
-
|
|
17969
|
-
|
|
17970
|
-
|
|
17971
|
-
|
|
17972
|
-
case 0:
|
|
17973
|
-
return _context2.abrupt("return", sendCommon(options, true));
|
|
17974
|
-
case 1:
|
|
17975
|
-
case "end":
|
|
17976
|
-
return _context2.stop();
|
|
17977
|
-
}
|
|
17978
|
-
}, _callee2);
|
|
17979
|
-
}));
|
|
18288
|
+
|
|
18289
|
+
var resolveAsset = function resolveAsset(currency, origin, destination, assetCheckEnabled) {
|
|
18290
|
+
var isRelayDestination = destination === undefined;
|
|
18291
|
+
return assetCheckEnabled ? getAssetBySymbolOrId(origin, currency, isRelayDestination ? determineRelayChain(origin) : !isTMultiLocation(destination) ? destination : null) : null;
|
|
17980
18292
|
};
|
|
17981
|
-
|
|
17982
|
-
|
|
17983
|
-
|
|
17984
|
-
|
|
17985
|
-
|
|
17986
|
-
|
|
17987
|
-
|
|
17988
|
-
|
|
17989
|
-
|
|
17990
|
-
|
|
17991
|
-
|
|
17992
|
-
|
|
18293
|
+
|
|
18294
|
+
var validateCurrency = function validateCurrency(currency, amount, feeAsset) {
|
|
18295
|
+
if ((!('multiasset' in currency) || 'multilocation' in currency) && amount === null) {
|
|
18296
|
+
throw new Error('Amount is required');
|
|
18297
|
+
}
|
|
18298
|
+
if ('multiasset' in currency) {
|
|
18299
|
+
if (amount !== null) {
|
|
18300
|
+
console.warn('Amount is ignored when using overriding currency using multiple multi locations. Please set it to null.');
|
|
18301
|
+
}
|
|
18302
|
+
if (currency.multiasset.length === 0) {
|
|
18303
|
+
throw new InvalidCurrencyError('Overrided multi assets cannot be empty');
|
|
18304
|
+
}
|
|
18305
|
+
if (currency.multiasset.length === 1 && (feeAsset === 0 || feeAsset !== undefined)) {
|
|
18306
|
+
throw new InvalidCurrencyError('Overrided single multi asset cannot be used with fee asset');
|
|
18307
|
+
}
|
|
18308
|
+
if (currency.multiasset.length > 1 && feeAsset === undefined) {
|
|
18309
|
+
throw new InvalidCurrencyError('Overrided multi assets cannot be used without specifying fee asset');
|
|
18310
|
+
}
|
|
18311
|
+
if (currency.multiasset.length > 1 && feeAsset !== undefined && (feeAsset < 0 || feeAsset >= currency.multiasset.length)) {
|
|
18312
|
+
throw new InvalidCurrencyError('Fee asset index is out of bounds. Please provide a valid index.');
|
|
18313
|
+
}
|
|
18314
|
+
}
|
|
17993
18315
|
};
|
|
17994
|
-
var
|
|
17995
|
-
|
|
17996
|
-
|
|
18316
|
+
var validateDestination = function validateDestination(origin, destination) {
|
|
18317
|
+
if (destination === 'Ethereum' && origin !== 'AssetHubPolkadot' && origin !== 'Hydration') {
|
|
18318
|
+
throw new IncompatibleNodesError('Transfers to Ethereum are only supported from AssetHubPolkadot and Hydration.');
|
|
18319
|
+
}
|
|
18320
|
+
var isMultiLocationDestination = _typeof(destination) === 'object';
|
|
18321
|
+
var isBridge = isBridgeTransfer(origin, destination);
|
|
18322
|
+
var isRelayDestination = destination === undefined;
|
|
18323
|
+
if (!isRelayDestination && !isMultiLocationDestination) {
|
|
18324
|
+
var originRelayChainSymbol = getRelayChainSymbol(origin);
|
|
18325
|
+
var destinationRelayChainSymbol = getRelayChainSymbol(destination);
|
|
18326
|
+
if (!isBridge && originRelayChainSymbol !== destinationRelayChainSymbol) {
|
|
18327
|
+
throw new IncompatibleNodesError();
|
|
18328
|
+
}
|
|
17997
18329
|
}
|
|
17998
|
-
return __awaiter(void 0, [options_1].concat(args_1), void 0, function (options) {
|
|
17999
|
-
var serializedApiCallEnabled = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
18000
|
-
return /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
18001
|
-
var api, destination, amount, address, paraIdTo, destApiForKeepAlive, version, isMultiLocationDestination, isAddressMultiLocation, amountStr, serializedApiCall;
|
|
18002
|
-
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
18003
|
-
while (1) switch (_context4.prev = _context4.next) {
|
|
18004
|
-
case 0:
|
|
18005
|
-
api = options.api, destination = options.destination, amount = options.amount, address = options.address, paraIdTo = options.paraIdTo, destApiForKeepAlive = options.destApiForKeepAlive, version = options.version;
|
|
18006
|
-
isMultiLocationDestination = _typeof(destination) === 'object';
|
|
18007
|
-
isAddressMultiLocation = _typeof(address) === 'object';
|
|
18008
|
-
if (!(api === undefined && isMultiLocationDestination)) {
|
|
18009
|
-
_context4.next = 5;
|
|
18010
|
-
break;
|
|
18011
|
-
}
|
|
18012
|
-
throw new Error('API is required when using MultiLocation as destination.');
|
|
18013
|
-
case 5:
|
|
18014
|
-
_context4.next = 7;
|
|
18015
|
-
return api.init(determineRelayChain(destination));
|
|
18016
|
-
case 7:
|
|
18017
|
-
_context4.prev = 7;
|
|
18018
|
-
amountStr = amount.toString();
|
|
18019
|
-
if (!isMultiLocationDestination) {
|
|
18020
|
-
_context4.next = 13;
|
|
18021
|
-
break;
|
|
18022
|
-
}
|
|
18023
|
-
console.warn('Keep alive check is not supported when using MultiLocation as destination.');
|
|
18024
|
-
_context4.next = 19;
|
|
18025
|
-
break;
|
|
18026
|
-
case 13:
|
|
18027
|
-
if (!isAddressMultiLocation) {
|
|
18028
|
-
_context4.next = 17;
|
|
18029
|
-
break;
|
|
18030
|
-
}
|
|
18031
|
-
console.warn('Keep alive check is not supported when using MultiLocation as address.');
|
|
18032
|
-
_context4.next = 19;
|
|
18033
|
-
break;
|
|
18034
|
-
case 17:
|
|
18035
|
-
_context4.next = 19;
|
|
18036
|
-
return checkKeepAlive({
|
|
18037
|
-
originApi: api,
|
|
18038
|
-
address: address,
|
|
18039
|
-
amount: amountStr,
|
|
18040
|
-
destApi: destApiForKeepAlive,
|
|
18041
|
-
asset: {
|
|
18042
|
-
symbol: getRelayChainSymbol(destination)
|
|
18043
|
-
},
|
|
18044
|
-
destNode: destination
|
|
18045
|
-
});
|
|
18046
|
-
case 19:
|
|
18047
|
-
serializedApiCall = getNode(isMultiLocationDestination ? resolveTNodeFromMultiLocation(destination) : destination).transferRelayToPara({
|
|
18048
|
-
api: api,
|
|
18049
|
-
destination: destination,
|
|
18050
|
-
address: address,
|
|
18051
|
-
amount: amountStr,
|
|
18052
|
-
paraIdTo: paraIdTo,
|
|
18053
|
-
destApiForKeepAlive: destApiForKeepAlive,
|
|
18054
|
-
version: version
|
|
18055
|
-
});
|
|
18056
|
-
if (!serializedApiCallEnabled) {
|
|
18057
|
-
_context4.next = 22;
|
|
18058
|
-
break;
|
|
18059
|
-
}
|
|
18060
|
-
return _context4.abrupt("return", Object.assign(Object.assign({}, serializedApiCall), {
|
|
18061
|
-
parameters: Object.values(serializedApiCall.parameters)
|
|
18062
|
-
}));
|
|
18063
|
-
case 22:
|
|
18064
|
-
return _context4.abrupt("return", api.callTxMethod(serializedApiCall));
|
|
18065
|
-
case 23:
|
|
18066
|
-
_context4.prev = 23;
|
|
18067
|
-
if (!isPjsClient(api)) {
|
|
18068
|
-
_context4.next = 27;
|
|
18069
|
-
break;
|
|
18070
|
-
}
|
|
18071
|
-
_context4.next = 27;
|
|
18072
|
-
return api.disconnect();
|
|
18073
|
-
case 27:
|
|
18074
|
-
return _context4.finish(23);
|
|
18075
|
-
case 28:
|
|
18076
|
-
case "end":
|
|
18077
|
-
return _context4.stop();
|
|
18078
|
-
}
|
|
18079
|
-
}, _callee4, null, [[7,, 23, 28]]);
|
|
18080
|
-
})();
|
|
18081
|
-
});
|
|
18082
18330
|
};
|
|
18083
|
-
var
|
|
18084
|
-
|
|
18085
|
-
|
|
18086
|
-
|
|
18331
|
+
var validateAssetSpecifiers = function validateAssetSpecifiers(assetCheckEnabled, currency) {
|
|
18332
|
+
if (!assetCheckEnabled && 'symbol' in currency && isSymbolSpecifier(currency.symbol)) {
|
|
18333
|
+
throw new InvalidCurrencyError('Symbol specifier is not supported when asset check is disabled. Please use normal symbol instead.');
|
|
18334
|
+
}
|
|
18335
|
+
if (!assetCheckEnabled && 'id' in currency) {
|
|
18336
|
+
throw new InvalidCurrencyError('Asset ID is not supported when asset check is disabled. Please use normal symbol instead');
|
|
18337
|
+
}
|
|
18338
|
+
};
|
|
18339
|
+
var validateAssetSupport = function validateAssetSupport(_ref, assetCheckEnabled, isBridge, asset) {
|
|
18340
|
+
var origin = _ref.origin,
|
|
18341
|
+
destination = _ref.destination,
|
|
18342
|
+
currency = _ref.currency;
|
|
18343
|
+
var isRelayDestination = destination === undefined;
|
|
18344
|
+
var isMultiLocationDestination = _typeof(destination) === 'object';
|
|
18345
|
+
var isDestAssetHub = destination === 'AssetHubPolkadot' || destination === 'AssetHubKusama';
|
|
18346
|
+
var pallet = getDefaultPallet(origin);
|
|
18347
|
+
var isBifrost = origin === 'BifrostPolkadot' || origin === 'BifrostKusama';
|
|
18348
|
+
if (!isBridge && isDestAssetHub && pallet === 'XTokens' && !isBifrost) {
|
|
18349
|
+
var nativeAssets = getNativeAssets(destination);
|
|
18350
|
+
if (origin === 'Hydration') {
|
|
18351
|
+
nativeAssets = nativeAssets.filter(function (nativeAsset) {
|
|
18352
|
+
return nativeAsset.symbol !== 'DOT';
|
|
18353
|
+
});
|
|
18354
|
+
}
|
|
18355
|
+
if ('symbol' in currency && nativeAssets.some(function (nativeAsset) {
|
|
18356
|
+
var _a;
|
|
18357
|
+
return nativeAsset.symbol.toLowerCase() === ((_a = asset === null || asset === void 0 ? void 0 : asset.symbol) === null || _a === void 0 ? void 0 : _a.toLowerCase());
|
|
18358
|
+
})) {
|
|
18359
|
+
throw new InvalidCurrencyError("".concat(JSON.stringify(asset === null || asset === void 0 ? void 0 : asset.symbol), " is not supported for transfers to ").concat(destination, "."));
|
|
18360
|
+
}
|
|
18361
|
+
}
|
|
18362
|
+
if (!isBridge && !isRelayDestination && !isMultiLocationDestination && (asset === null || asset === void 0 ? void 0 : asset.symbol) !== undefined && assetCheckEnabled && !('id' in currency) && !hasSupportForAsset(destination, asset.symbol)) {
|
|
18363
|
+
throw new InvalidCurrencyError("Destination node ".concat(destination, " does not support currency ").concat(JSON.stringify(currency), "."));
|
|
18364
|
+
}
|
|
18365
|
+
if (!isBridge && asset === null && assetCheckEnabled) {
|
|
18366
|
+
throwUnsupportedCurrency(currency, origin);
|
|
18367
|
+
}
|
|
18368
|
+
};
|
|
18369
|
+
|
|
18370
|
+
var send = function send(options) {
|
|
18371
|
+
return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
18372
|
+
var _a, api, origin, currency, amount, address, destination, paraIdTo, destApiForKeepAlive, feeAsset, version, ahAddress, originNode, isBridge, assetCheckEnabled, asset, resolvedAsset;
|
|
18373
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18374
|
+
while (1) switch (_context.prev = _context.next) {
|
|
18087
18375
|
case 0:
|
|
18088
|
-
|
|
18089
|
-
|
|
18376
|
+
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;
|
|
18377
|
+
validateCurrency(currency, amount, feeAsset);
|
|
18378
|
+
validateDestination(origin, destination);
|
|
18379
|
+
validateDestinationAddress(address, destination);
|
|
18380
|
+
originNode = getNode(origin);
|
|
18381
|
+
isBridge = isBridgeTransfer(origin, destination);
|
|
18382
|
+
assetCheckEnabled = determineAssetCheckEnabled(origin, currency, isBridge);
|
|
18383
|
+
validateAssetSpecifiers(assetCheckEnabled, currency);
|
|
18384
|
+
asset = resolveAsset(currency, origin, destination, assetCheckEnabled);
|
|
18385
|
+
validateAssetSupport(options, assetCheckEnabled, isBridge, asset);
|
|
18386
|
+
_context.next = 12;
|
|
18387
|
+
return api.init(origin);
|
|
18388
|
+
case 12:
|
|
18389
|
+
_context.prev = 12;
|
|
18390
|
+
_context.next = 15;
|
|
18391
|
+
return performKeepAliveCheck(options, asset);
|
|
18392
|
+
case 15:
|
|
18393
|
+
// In case asset check is disabled, we create asset object from currency symbol
|
|
18394
|
+
resolvedAsset = asset !== null && asset !== void 0 ? asset : {
|
|
18395
|
+
symbol: 'symbol' in currency ? currency.symbol : undefined
|
|
18396
|
+
};
|
|
18397
|
+
_context.next = 18;
|
|
18398
|
+
return originNode.transfer({
|
|
18399
|
+
api: api,
|
|
18400
|
+
asset: resolvedAsset,
|
|
18401
|
+
amount: (_a = amount === null || amount === void 0 ? void 0 : amount.toString()) !== null && _a !== void 0 ? _a : '',
|
|
18402
|
+
address: address,
|
|
18403
|
+
destination: destination,
|
|
18404
|
+
paraIdTo: paraIdTo,
|
|
18405
|
+
overridedCurrencyMultiLocation: 'multilocation' in currency && isOverrideMultiLocationSpecifier(currency.multilocation) ? currency.multilocation.value : 'multiasset' in currency ? currency.multiasset : undefined,
|
|
18406
|
+
feeAsset: feeAsset,
|
|
18407
|
+
version: version,
|
|
18408
|
+
destApiForKeepAlive: destApiForKeepAlive,
|
|
18409
|
+
ahAddress: ahAddress
|
|
18410
|
+
});
|
|
18411
|
+
case 18:
|
|
18412
|
+
return _context.abrupt("return", _context.sent);
|
|
18413
|
+
case 19:
|
|
18414
|
+
_context.prev = 19;
|
|
18415
|
+
if (!isPjsClient(api)) {
|
|
18416
|
+
_context.next = 23;
|
|
18417
|
+
break;
|
|
18418
|
+
}
|
|
18419
|
+
_context.next = 23;
|
|
18420
|
+
return api.disconnect();
|
|
18421
|
+
case 23:
|
|
18422
|
+
return _context.finish(19);
|
|
18423
|
+
case 24:
|
|
18090
18424
|
case "end":
|
|
18091
|
-
return
|
|
18425
|
+
return _context.stop();
|
|
18092
18426
|
}
|
|
18093
|
-
},
|
|
18427
|
+
}, _callee, null, [[12,, 19, 24]]);
|
|
18094
18428
|
}));
|
|
18095
18429
|
};
|
|
18096
|
-
|
|
18097
|
-
|
|
18098
|
-
|
|
18099
|
-
|
|
18430
|
+
|
|
18431
|
+
var transferRelayToPara = function transferRelayToPara(options) {
|
|
18432
|
+
return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
18433
|
+
var api, destination, amount, address, paraIdTo, destApiForKeepAlive, version, isMultiLocationDestination, isAddressMultiLocation, amountStr, serializedApiCall;
|
|
18434
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18435
|
+
while (1) switch (_context.prev = _context.next) {
|
|
18100
18436
|
case 0:
|
|
18101
|
-
|
|
18102
|
-
|
|
18437
|
+
api = options.api, destination = options.destination, amount = options.amount, address = options.address, paraIdTo = options.paraIdTo, destApiForKeepAlive = options.destApiForKeepAlive, version = options.version;
|
|
18438
|
+
isMultiLocationDestination = _typeof(destination) === 'object';
|
|
18439
|
+
isAddressMultiLocation = _typeof(address) === 'object';
|
|
18440
|
+
if (!(api.getApiOrUrl() === undefined && isMultiLocationDestination)) {
|
|
18441
|
+
_context.next = 5;
|
|
18442
|
+
break;
|
|
18443
|
+
}
|
|
18444
|
+
throw new Error('API is required when using MultiLocation as destination.');
|
|
18445
|
+
case 5:
|
|
18446
|
+
_context.next = 7;
|
|
18447
|
+
return api.init(determineRelayChain(destination));
|
|
18448
|
+
case 7:
|
|
18449
|
+
_context.prev = 7;
|
|
18450
|
+
amountStr = amount.toString();
|
|
18451
|
+
if (!isMultiLocationDestination) {
|
|
18452
|
+
_context.next = 13;
|
|
18453
|
+
break;
|
|
18454
|
+
}
|
|
18455
|
+
console.warn('Keep alive check is not supported when using MultiLocation as destination.');
|
|
18456
|
+
_context.next = 19;
|
|
18457
|
+
break;
|
|
18458
|
+
case 13:
|
|
18459
|
+
if (!isAddressMultiLocation) {
|
|
18460
|
+
_context.next = 17;
|
|
18461
|
+
break;
|
|
18462
|
+
}
|
|
18463
|
+
console.warn('Keep alive check is not supported when using MultiLocation as address.');
|
|
18464
|
+
_context.next = 19;
|
|
18465
|
+
break;
|
|
18466
|
+
case 17:
|
|
18467
|
+
_context.next = 19;
|
|
18468
|
+
return checkKeepAlive({
|
|
18469
|
+
originApi: api,
|
|
18470
|
+
address: address,
|
|
18471
|
+
amount: amountStr,
|
|
18472
|
+
destApi: destApiForKeepAlive,
|
|
18473
|
+
asset: {
|
|
18474
|
+
symbol: getRelayChainSymbol(destination)
|
|
18475
|
+
},
|
|
18476
|
+
destNode: destination
|
|
18477
|
+
});
|
|
18478
|
+
case 19:
|
|
18479
|
+
serializedApiCall = getNode(isMultiLocationDestination ? resolveTNodeFromMultiLocation(destination) : destination).transferRelayToPara({
|
|
18480
|
+
api: api,
|
|
18481
|
+
destination: destination,
|
|
18482
|
+
address: address,
|
|
18483
|
+
amount: amountStr,
|
|
18484
|
+
paraIdTo: paraIdTo,
|
|
18485
|
+
destApiForKeepAlive: destApiForKeepAlive,
|
|
18486
|
+
version: version
|
|
18487
|
+
});
|
|
18488
|
+
return _context.abrupt("return", api.callTxMethod(serializedApiCall));
|
|
18489
|
+
case 21:
|
|
18490
|
+
_context.prev = 21;
|
|
18491
|
+
if (!isPjsClient(api)) {
|
|
18492
|
+
_context.next = 25;
|
|
18493
|
+
break;
|
|
18494
|
+
}
|
|
18495
|
+
_context.next = 25;
|
|
18496
|
+
return api.disconnect();
|
|
18497
|
+
case 25:
|
|
18498
|
+
return _context.finish(21);
|
|
18499
|
+
case 26:
|
|
18103
18500
|
case "end":
|
|
18104
|
-
return
|
|
18501
|
+
return _context.stop();
|
|
18105
18502
|
}
|
|
18106
|
-
},
|
|
18503
|
+
}, _callee, null, [[7,, 21, 26]]);
|
|
18107
18504
|
}));
|
|
18108
18505
|
};
|
|
18109
18506
|
|
|
@@ -18163,10 +18560,7 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
18163
18560
|
__proto__: null,
|
|
18164
18561
|
buildEthTransferOptions: buildEthTransferOptions,
|
|
18165
18562
|
send: send,
|
|
18166
|
-
|
|
18167
|
-
transferRelayToPara: transferRelayToPara,
|
|
18168
|
-
transferRelayToParaCommon: transferRelayToParaCommon,
|
|
18169
|
-
transferRelayToParaSerializedApiCall: transferRelayToParaSerializedApiCall
|
|
18563
|
+
transferRelayToPara: transferRelayToPara
|
|
18170
18564
|
});
|
|
18171
18565
|
|
|
18172
18566
|
var checkAndConvertToNumberOrBigInt = function checkAndConvertToNumberOrBigInt(input) {
|
|
@@ -18284,7 +18678,7 @@ var _transform = function transform(obj) {
|
|
|
18284
18678
|
newObj[k] = undefined;
|
|
18285
18679
|
continue;
|
|
18286
18680
|
}
|
|
18287
|
-
if (
|
|
18681
|
+
if (typeof v === 'string' && v.startsWith('0x')) {
|
|
18288
18682
|
newObj[k] = polkadotApi.FixedSizeBinary.fromHex(v);
|
|
18289
18683
|
} else if (typeof v === 'string') {
|
|
18290
18684
|
newObj[k] = {
|
|
@@ -18319,6 +18713,11 @@ var PapiApi = /*#__PURE__*/function () {
|
|
|
18319
18713
|
value: function setApi(api) {
|
|
18320
18714
|
this._api = api;
|
|
18321
18715
|
}
|
|
18716
|
+
}, {
|
|
18717
|
+
key: "getApiOrUrl",
|
|
18718
|
+
value: function getApiOrUrl() {
|
|
18719
|
+
return this._api;
|
|
18720
|
+
}
|
|
18322
18721
|
}, {
|
|
18323
18722
|
key: "getApi",
|
|
18324
18723
|
value: function getApi() {
|
|
@@ -18619,11 +19018,8 @@ var PapiApi = /*#__PURE__*/function () {
|
|
|
18619
19018
|
return _regeneratorRuntime().wrap(function _callee12$(_context12) {
|
|
18620
19019
|
while (1) switch (_context12.prev = _context12.next) {
|
|
18621
19020
|
case 0:
|
|
18622
|
-
_context12.
|
|
18623
|
-
|
|
18624
|
-
case 2:
|
|
18625
|
-
return _context12.abrupt("return", _context12.sent);
|
|
18626
|
-
case 3:
|
|
19021
|
+
return _context12.abrupt("return", this.api._request('state_getStorage', [key]));
|
|
19022
|
+
case 1:
|
|
18627
19023
|
case "end":
|
|
18628
19024
|
return _context12.stop();
|
|
18629
19025
|
}
|
|
@@ -18760,7 +19156,8 @@ var assets = /*#__PURE__*/Object.freeze({
|
|
|
18760
19156
|
getSupportedAssets: getSupportedAssets,
|
|
18761
19157
|
getTNode: getTNode,
|
|
18762
19158
|
getTransferInfo: getTransferInfo,
|
|
18763
|
-
hasSupportForAsset: hasSupportForAsset
|
|
19159
|
+
hasSupportForAsset: hasSupportForAsset,
|
|
19160
|
+
isNodeEvm: isNodeEvm
|
|
18764
19161
|
});
|
|
18765
19162
|
|
|
18766
19163
|
/**
|
|
@@ -18784,6 +19181,7 @@ exports.Foreign = Foreign;
|
|
|
18784
19181
|
exports.ForeignAbstract = ForeignAbstract;
|
|
18785
19182
|
exports.GeneralBuilder = GeneralBuilder;
|
|
18786
19183
|
exports.IncompatibleNodesError = IncompatibleNodesError;
|
|
19184
|
+
exports.InvalidAddressError = InvalidAddressError;
|
|
18787
19185
|
exports.InvalidCurrencyError = InvalidCurrencyError;
|
|
18788
19186
|
exports.NODES_WITH_RELAY_CHAINS = NODES_WITH_RELAY_CHAINS;
|
|
18789
19187
|
exports.NODES_WITH_RELAY_CHAINS_DOT_KSM = NODES_WITH_RELAY_CHAINS_DOT_KSM;
|
|
@@ -18827,10 +19225,8 @@ exports.getTNode = getTNode;
|
|
|
18827
19225
|
exports.getTransferInfo = getTransferInfo;
|
|
18828
19226
|
exports.hasSupportForAsset = hasSupportForAsset;
|
|
18829
19227
|
exports.isForeignAsset = isForeignAsset;
|
|
19228
|
+
exports.isNodeEvm = isNodeEvm;
|
|
18830
19229
|
exports.isRelayChain = isRelayChain;
|
|
18831
19230
|
exports.send = send;
|
|
18832
|
-
exports.sendSerializedApiCall = sendSerializedApiCall;
|
|
18833
19231
|
exports.transferRelayToPara = transferRelayToPara;
|
|
18834
|
-
exports.transferRelayToParaCommon = transferRelayToParaCommon;
|
|
18835
|
-
exports.transferRelayToParaSerializedApiCall = transferRelayToParaSerializedApiCall;
|
|
18836
19232
|
exports.xcmPallet = index;
|