@paraspell/sdk 7.2.1 → 7.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -726,6 +726,26 @@ var DuplicateAssetIdError = /*#__PURE__*/function (_Error) {
726
726
  return _createClass(DuplicateAssetIdError);
727
727
  }(/*#__PURE__*/_wrapNativeSuper(Error));
728
728
 
729
+ /**
730
+ * Error thrown when an invalid address is provided.
731
+ */
732
+ var InvalidAddressError = /*#__PURE__*/function (_Error) {
733
+ /**
734
+ * Constructs a new InvalidAddressError.
735
+ *
736
+ * @param message - The error message.
737
+ */
738
+ function InvalidAddressError(message) {
739
+ var _this;
740
+ _classCallCheck(this, InvalidAddressError);
741
+ _this = _callSuper(this, InvalidAddressError, [message]);
742
+ _this.name = 'InvalidAddressError';
743
+ return _this;
744
+ }
745
+ _inherits(InvalidAddressError, _Error);
746
+ return _createClass(InvalidAddressError);
747
+ }(/*#__PURE__*/_wrapNativeSuper(Error));
748
+
729
749
  var KeepAliveError = /*#__PURE__*/function (_Error) {
730
750
  function KeepAliveError(message) {
731
751
  var _this;
@@ -741,6 +761,7 @@ var KeepAliveError = /*#__PURE__*/function (_Error) {
741
761
  var Polkadot$2 = {
742
762
  relayChainAssetSymbol: "DOT",
743
763
  nativeAssetSymbol: "DOT",
764
+ isEVM: false,
744
765
  nativeAssets: [
745
766
  {
746
767
  symbol: "DOT",
@@ -753,6 +774,7 @@ var Polkadot$2 = {
753
774
  var Kusama$2 = {
754
775
  relayChainAssetSymbol: "KSM",
755
776
  nativeAssetSymbol: "KSM",
777
+ isEVM: false,
756
778
  nativeAssets: [
757
779
  {
758
780
  symbol: "KSM",
@@ -765,6 +787,7 @@ var Kusama$2 = {
765
787
  var Polimec$4 = {
766
788
  relayChainAssetSymbol: "DOT",
767
789
  nativeAssetSymbol: "PLMC",
790
+ isEVM: false,
768
791
  nativeAssets: [
769
792
  {
770
793
  symbol: "PLMC",
@@ -824,6 +847,7 @@ var Polimec$4 = {
824
847
  var Acala$4 = {
825
848
  relayChainAssetSymbol: "DOT",
826
849
  nativeAssetSymbol: "ACA",
850
+ isEVM: false,
827
851
  nativeAssets: [
828
852
  {
829
853
  symbol: "ACA",
@@ -1004,7 +1028,10 @@ var Acala$4 = {
1004
1028
  Parachain: 2011
1005
1029
  },
1006
1030
  {
1007
- GeneralKey: "0x657164"
1031
+ GeneralKey: {
1032
+ length: 3,
1033
+ data: "0x6571640000000000000000000000000000000000000000000000000000000000"
1034
+ }
1008
1035
  }
1009
1036
  ]
1010
1037
  }
@@ -1035,7 +1062,10 @@ var Acala$4 = {
1035
1062
  Parachain: 2012
1036
1063
  },
1037
1064
  {
1038
- GeneralKey: "0x50415241"
1065
+ GeneralKey: {
1066
+ length: 4,
1067
+ data: "0x5041524100000000000000000000000000000000000000000000000000000000"
1068
+ }
1039
1069
  }
1040
1070
  ]
1041
1071
  }
@@ -1053,7 +1083,10 @@ var Acala$4 = {
1053
1083
  Parachain: 2031
1054
1084
  },
1055
1085
  {
1056
- GeneralKey: "0x0001"
1086
+ GeneralKey: {
1087
+ length: 2,
1088
+ data: "0x0001000000000000000000000000000000000000000000000000000000000000"
1089
+ }
1057
1090
  }
1058
1091
  ]
1059
1092
  }
@@ -1071,7 +1104,10 @@ var Acala$4 = {
1071
1104
  Parachain: 2032
1072
1105
  },
1073
1106
  {
1074
- GeneralKey: "0x0001"
1107
+ GeneralKey: {
1108
+ length: 2,
1109
+ data: "0x0001000000000000000000000000000000000000000000000000000000000000"
1110
+ }
1075
1111
  }
1076
1112
  ]
1077
1113
  }
@@ -1089,7 +1125,10 @@ var Acala$4 = {
1089
1125
  Parachain: 2032
1090
1126
  },
1091
1127
  {
1092
- GeneralKey: "0x0002"
1128
+ GeneralKey: {
1129
+ length: 2,
1130
+ data: "0x0002000000000000000000000000000000000000000000000000000000000000"
1131
+ }
1093
1132
  }
1094
1133
  ]
1095
1134
  }
@@ -1157,6 +1196,7 @@ var Acala$4 = {
1157
1196
  var BridgeHubPolkadot$4 = {
1158
1197
  relayChainAssetSymbol: "DOT",
1159
1198
  nativeAssetSymbol: "DOT",
1199
+ isEVM: false,
1160
1200
  nativeAssets: [
1161
1201
  {
1162
1202
  symbol: "DOT",
@@ -1169,6 +1209,7 @@ var BridgeHubPolkadot$4 = {
1169
1209
  var BridgeHubKusama$4 = {
1170
1210
  relayChainAssetSymbol: "KSM",
1171
1211
  nativeAssetSymbol: "KSM",
1212
+ isEVM: false,
1172
1213
  nativeAssets: [
1173
1214
  {
1174
1215
  symbol: "KSM",
@@ -1181,6 +1222,7 @@ var BridgeHubKusama$4 = {
1181
1222
  var Astar$4 = {
1182
1223
  relayChainAssetSymbol: "DOT",
1183
1224
  nativeAssetSymbol: "ASTR",
1225
+ isEVM: false,
1184
1226
  nativeAssets: [
1185
1227
  {
1186
1228
  symbol: "ASTR",
@@ -1274,7 +1316,10 @@ var Astar$4 = {
1274
1316
  Parachain: 2000
1275
1317
  },
1276
1318
  {
1277
- GeneralKey: "0x0003"
1319
+ GeneralKey: {
1320
+ length: 2,
1321
+ data: "0x0003000000000000000000000000000000000000000000000000000000000000"
1322
+ }
1278
1323
  }
1279
1324
  ]
1280
1325
  }
@@ -1292,7 +1337,10 @@ var Astar$4 = {
1292
1337
  Parachain: 2000
1293
1338
  },
1294
1339
  {
1295
- GeneralKey: "0x0000"
1340
+ GeneralKey: {
1341
+ length: 2,
1342
+ data: "0x0000000000000000000000000000000000000000000000000000000000000000"
1343
+ }
1296
1344
  }
1297
1345
  ]
1298
1346
  }
@@ -1310,7 +1358,10 @@ var Astar$4 = {
1310
1358
  Parachain: 2000
1311
1359
  },
1312
1360
  {
1313
- GeneralKey: "0x0001"
1361
+ GeneralKey: {
1362
+ length: 2,
1363
+ data: "0x0001000000000000000000000000000000000000000000000000000000000000"
1364
+ }
1314
1365
  }
1315
1366
  ]
1316
1367
  }
@@ -1359,7 +1410,10 @@ var Astar$4 = {
1359
1410
  Parachain: 2011
1360
1411
  },
1361
1412
  {
1362
- GeneralKey: "0x657164"
1413
+ GeneralKey: {
1414
+ length: 3,
1415
+ data: "0x6571640000000000000000000000000000000000000000000000000000000000"
1416
+ }
1363
1417
  }
1364
1418
  ]
1365
1419
  }
@@ -1390,7 +1444,10 @@ var Astar$4 = {
1390
1444
  Parachain: 2030
1391
1445
  },
1392
1446
  {
1393
- GeneralKey: "0x0804"
1447
+ GeneralKey: {
1448
+ length: 2,
1449
+ data: "0x0804000000000000000000000000000000000000000000000000000000000000"
1450
+ }
1394
1451
  }
1395
1452
  ]
1396
1453
  }
@@ -1408,7 +1465,10 @@ var Astar$4 = {
1408
1465
  Parachain: 2030
1409
1466
  },
1410
1467
  {
1411
- GeneralKey: "0x0403"
1468
+ GeneralKey: {
1469
+ length: 2,
1470
+ data: "0x0403000000000000000000000000000000000000000000000000000000000000"
1471
+ }
1412
1472
  }
1413
1473
  ]
1414
1474
  }
@@ -1426,7 +1486,10 @@ var Astar$4 = {
1426
1486
  Parachain: 2030
1427
1487
  },
1428
1488
  {
1429
- GeneralKey: "0x0908"
1489
+ GeneralKey: {
1490
+ length: 2,
1491
+ data: "0x0908000000000000000000000000000000000000000000000000000000000000"
1492
+ }
1430
1493
  }
1431
1494
  ]
1432
1495
  }
@@ -1444,7 +1507,10 @@ var Astar$4 = {
1444
1507
  Parachain: 2030
1445
1508
  },
1446
1509
  {
1447
- GeneralKey: "0x0900"
1510
+ GeneralKey: {
1511
+ length: 2,
1512
+ data: "0x0900000000000000000000000000000000000000000000000000000000000000"
1513
+ }
1448
1514
  }
1449
1515
  ]
1450
1516
  }
@@ -1462,7 +1528,10 @@ var Astar$4 = {
1462
1528
  Parachain: 2030
1463
1529
  },
1464
1530
  {
1465
- GeneralKey: "0x0904"
1531
+ GeneralKey: {
1532
+ length: 2,
1533
+ data: "0x0904000000000000000000000000000000000000000000000000000000000000"
1534
+ }
1466
1535
  }
1467
1536
  ]
1468
1537
  }
@@ -1480,7 +1549,10 @@ var Astar$4 = {
1480
1549
  Parachain: 2030
1481
1550
  },
1482
1551
  {
1483
- GeneralKey: "0x0903"
1552
+ GeneralKey: {
1553
+ length: 2,
1554
+ data: "0x0903000000000000000000000000000000000000000000000000000000000000"
1555
+ }
1484
1556
  }
1485
1557
  ]
1486
1558
  }
@@ -1498,7 +1570,10 @@ var Astar$4 = {
1498
1570
  Parachain: 2030
1499
1571
  },
1500
1572
  {
1501
- GeneralKey: "0x0001"
1573
+ GeneralKey: {
1574
+ length: 2,
1575
+ data: "0x0001000000000000000000000000000000000000000000000000000000000000"
1576
+ }
1502
1577
  }
1503
1578
  ]
1504
1579
  }
@@ -1516,7 +1591,10 @@ var Astar$4 = {
1516
1591
  Parachain: 2030
1517
1592
  },
1518
1593
  {
1519
- GeneralKey: "0x0901"
1594
+ GeneralKey: {
1595
+ length: 2,
1596
+ data: "0x0901000000000000000000000000000000000000000000000000000000000000"
1597
+ }
1520
1598
  }
1521
1599
  ]
1522
1600
  }
@@ -1534,7 +1612,10 @@ var Astar$4 = {
1534
1612
  Parachain: 2032
1535
1613
  },
1536
1614
  {
1537
- GeneralKey: "0x0001"
1615
+ GeneralKey: {
1616
+ length: 2,
1617
+ data: "0x0001000000000000000000000000000000000000000000000000000000000000"
1618
+ }
1538
1619
  }
1539
1620
  ]
1540
1621
  }
@@ -1552,7 +1633,10 @@ var Astar$4 = {
1552
1633
  Parachain: 2032
1553
1634
  },
1554
1635
  {
1555
- GeneralKey: "0x0002"
1636
+ GeneralKey: {
1637
+ length: 2,
1638
+ data: "0x0002000000000000000000000000000000000000000000000000000000000000"
1639
+ }
1556
1640
  }
1557
1641
  ]
1558
1642
  }
@@ -1638,10 +1722,16 @@ var Astar$4 = {
1638
1722
  GeneralIndex: 2
1639
1723
  },
1640
1724
  {
1641
- GeneralKey: "0x45555243"
1725
+ GeneralKey: {
1726
+ length: 4,
1727
+ data: "0x4555524300000000000000000000000000000000000000000000000000000000"
1728
+ }
1642
1729
  },
1643
1730
  {
1644
- GeneralKey: "0x2112ee863867e4e219fe254c0918b00bc9ea400775bfc3ab4430971ce505877c"
1731
+ GeneralKey: {
1732
+ length: 32,
1733
+ data: "0x2112ee863867e4e219fe254c0918b00bc9ea400775bfc3ab4430971ce505877c"
1734
+ }
1645
1735
  }
1646
1736
  ]
1647
1737
  }
@@ -1691,6 +1781,7 @@ var Astar$4 = {
1691
1781
  var BifrostPolkadot$4 = {
1692
1782
  relayChainAssetSymbol: "DOT",
1693
1783
  nativeAssetSymbol: "BNC",
1784
+ isEVM: false,
1694
1785
  nativeAssets: [
1695
1786
  {
1696
1787
  symbol: "BNC",
@@ -1710,7 +1801,10 @@ var BifrostPolkadot$4 = {
1710
1801
  Parachain: 2032
1711
1802
  },
1712
1803
  {
1713
- GeneralKey: "0x0001"
1804
+ GeneralKey: {
1805
+ length: 2,
1806
+ data: "0x0001000000000000000000000000000000000000000000000000000000000000"
1807
+ }
1714
1808
  }
1715
1809
  ]
1716
1810
  }
@@ -2044,7 +2138,10 @@ var BifrostPolkadot$4 = {
2044
2138
  Parachain: 2030
2045
2139
  },
2046
2140
  {
2047
- GeneralKey: "0x0403"
2141
+ GeneralKey: {
2142
+ length: 2,
2143
+ data: "0x0403000000000000000000000000000000000000000000000000000000000000"
2144
+ }
2048
2145
  }
2049
2146
  ]
2050
2147
  }
@@ -2062,7 +2159,10 @@ var BifrostPolkadot$4 = {
2062
2159
  Parachain: 2032
2063
2160
  },
2064
2161
  {
2065
- GeneralKey: "0x0002"
2162
+ GeneralKey: {
2163
+ length: 2,
2164
+ data: "0x0002000000000000000000000000000000000000000000000000000000000000"
2165
+ }
2066
2166
  }
2067
2167
  ]
2068
2168
  }
@@ -2086,6 +2186,7 @@ var BifrostPolkadot$4 = {
2086
2186
  var Bitgreen$4 = {
2087
2187
  relayChainAssetSymbol: "DOT",
2088
2188
  nativeAssetSymbol: "BBB",
2189
+ isEVM: false,
2089
2190
  nativeAssets: [
2090
2191
  {
2091
2192
  symbol: "BBB",
@@ -2098,6 +2199,7 @@ var Bitgreen$4 = {
2098
2199
  var Centrifuge$4 = {
2099
2200
  relayChainAssetSymbol: "DOT",
2100
2201
  nativeAssetSymbol: "CFG",
2202
+ isEVM: false,
2101
2203
  nativeAssets: [
2102
2204
  {
2103
2205
  symbol: "CFG",
@@ -2170,7 +2272,10 @@ var Centrifuge$4 = {
2170
2272
  Parachain: 2000
2171
2273
  },
2172
2274
  {
2173
- GeneralKey: "0x0001"
2275
+ GeneralKey: {
2276
+ length: 2,
2277
+ data: "0x0001000000000000000000000000000000000000000000000000000000000000"
2278
+ }
2174
2279
  }
2175
2280
  ]
2176
2281
  }
@@ -2299,7 +2404,10 @@ var Centrifuge$4 = {
2299
2404
  Parachain: 2031
2300
2405
  },
2301
2406
  {
2302
- GeneralKey: "0x0001"
2407
+ GeneralKey: {
2408
+ length: 2,
2409
+ data: "0x0001000000000000000000000000000000000000000000000000000000000000"
2410
+ }
2303
2411
  }
2304
2412
  ]
2305
2413
  }
@@ -2403,6 +2511,7 @@ var Centrifuge$4 = {
2403
2511
  var Subsocial$4 = {
2404
2512
  relayChainAssetSymbol: "DOT",
2405
2513
  nativeAssetSymbol: "SUB",
2514
+ isEVM: false,
2406
2515
  nativeAssets: [
2407
2516
  {
2408
2517
  symbol: "SUB",
@@ -2415,6 +2524,7 @@ var Subsocial$4 = {
2415
2524
  var ComposableFinance$4 = {
2416
2525
  relayChainAssetSymbol: "DOT",
2417
2526
  nativeAssetSymbol: "LAYR",
2527
+ isEVM: false,
2418
2528
  nativeAssets: [
2419
2529
  {
2420
2530
  symbol: "LAYR",
@@ -2554,6 +2664,7 @@ var ComposableFinance$4 = {
2554
2664
  var Darwinia$4 = {
2555
2665
  relayChainAssetSymbol: "DOT",
2556
2666
  nativeAssetSymbol: "RING",
2667
+ isEVM: true,
2557
2668
  nativeAssets: [
2558
2669
  {
2559
2670
  symbol: "RING",
@@ -2619,6 +2730,7 @@ var Darwinia$4 = {
2619
2730
  var Hydration$4 = {
2620
2731
  relayChainAssetSymbol: "DOT",
2621
2732
  nativeAssetSymbol: "HDX",
2733
+ isEVM: false,
2622
2734
  nativeAssets: [
2623
2735
  {
2624
2736
  symbol: "HDX",
@@ -2841,7 +2953,10 @@ var Hydration$4 = {
2841
2953
  Parachain: 2000
2842
2954
  },
2843
2955
  {
2844
- GeneralKey: "0x025a4d6acdc4e3e5ab15717f407afe957f7a242578"
2956
+ GeneralKey: {
2957
+ length: 21,
2958
+ data: "0x025a4d6acdc4e3e5ab15717f407afe957f7a2425780000000000000000000000"
2959
+ }
2845
2960
  }
2846
2961
  ]
2847
2962
  }
@@ -2860,7 +2975,10 @@ var Hydration$4 = {
2860
2975
  Parachain: 2000
2861
2976
  },
2862
2977
  {
2863
- GeneralKey: "0x0000"
2978
+ GeneralKey: {
2979
+ length: 2,
2980
+ data: "0x0000000000000000000000000000000000000000000000000000000000000000"
2981
+ }
2864
2982
  }
2865
2983
  ]
2866
2984
  }
@@ -2878,7 +2996,10 @@ var Hydration$4 = {
2878
2996
  Parachain: 2000
2879
2997
  },
2880
2998
  {
2881
- GeneralKey: "0x02f4c723e61709d90f89939c1852f516e373d418a8"
2999
+ GeneralKey: {
3000
+ length: 21,
3001
+ data: "0x02f4c723e61709d90f89939c1852f516e373d418a80000000000000000000000"
3002
+ }
2882
3003
  }
2883
3004
  ]
2884
3005
  }
@@ -2896,7 +3017,10 @@ var Hydration$4 = {
2896
3017
  Parachain: 2000
2897
3018
  },
2898
3019
  {
2899
- GeneralKey: "0x0254a37a01cd75b616d63e0ab665bffdb0143c52ae"
3020
+ GeneralKey: {
3021
+ length: 21,
3022
+ data: "0x0254a37a01cd75b616d63e0ab665bffdb0143c52ae0000000000000000000000"
3023
+ }
2900
3024
  }
2901
3025
  ]
2902
3026
  }
@@ -2915,7 +3039,10 @@ var Hydration$4 = {
2915
3039
  Parachain: 2000
2916
3040
  },
2917
3041
  {
2918
- GeneralKey: "0x0207df96d1341a7d16ba1ad431e2c847d978bc2bce"
3042
+ GeneralKey: {
3043
+ length: 21,
3044
+ data: "0x0207df96d1341a7d16ba1ad431e2c847d978bc2bce0000000000000000000000"
3045
+ }
2919
3046
  }
2920
3047
  ]
2921
3048
  }
@@ -2934,7 +3061,10 @@ var Hydration$4 = {
2934
3061
  Parachain: 2000
2935
3062
  },
2936
3063
  {
2937
- GeneralKey: "0x0003"
3064
+ GeneralKey: {
3065
+ length: 2,
3066
+ data: "0x0003000000000000000000000000000000000000000000000000000000000000"
3067
+ }
2938
3068
  }
2939
3069
  ]
2940
3070
  }
@@ -2952,7 +3082,10 @@ var Hydration$4 = {
2952
3082
  Parachain: 2000
2953
3083
  },
2954
3084
  {
2955
- GeneralKey: "0x02c80084af223c8b598536178d9361dc55bfda6818"
3085
+ GeneralKey: {
3086
+ length: 21,
3087
+ data: "0x02c80084af223c8b598536178d9361dc55bfda68180000000000000000000000"
3088
+ }
2956
3089
  }
2957
3090
  ]
2958
3091
  }
@@ -3158,7 +3291,10 @@ var Hydration$4 = {
3158
3291
  Parachain: 2030
3159
3292
  },
3160
3293
  {
3161
- GeneralKey: "0x0001"
3294
+ GeneralKey: {
3295
+ length: 2,
3296
+ data: "0x0001000000000000000000000000000000000000000000000000000000000000"
3297
+ }
3162
3298
  }
3163
3299
  ]
3164
3300
  }
@@ -3176,7 +3312,10 @@ var Hydration$4 = {
3176
3312
  Parachain: 2030
3177
3313
  },
3178
3314
  {
3179
- GeneralKey: "0x0903"
3315
+ GeneralKey: {
3316
+ length: 2,
3317
+ data: "0x0903000000000000000000000000000000000000000000000000000000000000"
3318
+ }
3180
3319
  }
3181
3320
  ]
3182
3321
  }
@@ -3194,7 +3333,10 @@ var Hydration$4 = {
3194
3333
  Parachain: 2030
3195
3334
  },
3196
3335
  {
3197
- GeneralKey: "0x0900"
3336
+ GeneralKey: {
3337
+ length: 2,
3338
+ data: "0x0900000000000000000000000000000000000000000000000000000000000000"
3339
+ }
3198
3340
  }
3199
3341
  ]
3200
3342
  }
@@ -3212,7 +3354,10 @@ var Hydration$4 = {
3212
3354
  Parachain: 2031
3213
3355
  },
3214
3356
  {
3215
- GeneralKey: "0x0001"
3357
+ GeneralKey: {
3358
+ length: 2,
3359
+ data: "0x0001000000000000000000000000000000000000000000000000000000000000"
3360
+ }
3216
3361
  }
3217
3362
  ]
3218
3363
  }
@@ -3230,7 +3375,10 @@ var Hydration$4 = {
3230
3375
  Parachain: 2032
3231
3376
  },
3232
3377
  {
3233
- GeneralKey: "0x0001"
3378
+ GeneralKey: {
3379
+ length: 2,
3380
+ data: "0x0001000000000000000000000000000000000000000000000000000000000000"
3381
+ }
3234
3382
  }
3235
3383
  ]
3236
3384
  }
@@ -3248,7 +3396,10 @@ var Hydration$4 = {
3248
3396
  Parachain: 2032
3249
3397
  },
3250
3398
  {
3251
- GeneralKey: "0x0002"
3399
+ GeneralKey: {
3400
+ length: 2,
3401
+ data: "0x0002000000000000000000000000000000000000000000000000000000000000"
3402
+ }
3252
3403
  }
3253
3404
  ]
3254
3405
  }
@@ -3310,7 +3461,10 @@ var Hydration$4 = {
3310
3461
  Parachain: 2051
3311
3462
  },
3312
3463
  {
3313
- GeneralKey: "0x414a554e"
3464
+ GeneralKey: {
3465
+ length: 4,
3466
+ data: "0x414a554e00000000000000000000000000000000000000000000000000000000"
3467
+ }
3314
3468
  }
3315
3469
  ]
3316
3470
  }
@@ -3341,7 +3495,10 @@ var Hydration$4 = {
3341
3495
  Parachain: 2092
3342
3496
  },
3343
3497
  {
3344
- GeneralKey: "0x0001"
3498
+ GeneralKey: {
3499
+ length: 2,
3500
+ data: "0x0001000000000000000000000000000000000000000000000000000000000000"
3501
+ }
3345
3502
  }
3346
3503
  ]
3347
3504
  }
@@ -3409,6 +3566,7 @@ var Hydration$4 = {
3409
3566
  var Interlay$4 = {
3410
3567
  relayChainAssetSymbol: "DOT",
3411
3568
  nativeAssetSymbol: "INTR",
3569
+ isEVM: false,
3412
3570
  nativeAssets: [
3413
3571
  {
3414
3572
  symbol: "INTR",
@@ -3490,7 +3648,10 @@ var Interlay$4 = {
3490
3648
  Parachain: 2000
3491
3649
  },
3492
3650
  {
3493
- GeneralKey: "0x0003"
3651
+ GeneralKey: {
3652
+ length: 2,
3653
+ data: "0x0003000000000000000000000000000000000000000000000000000000000000"
3654
+ }
3494
3655
  }
3495
3656
  ]
3496
3657
  }
@@ -3694,7 +3855,10 @@ var Interlay$4 = {
3694
3855
  Parachain: 2030
3695
3856
  },
3696
3857
  {
3697
- GeneralKey: "0x0001"
3858
+ GeneralKey: {
3859
+ length: 2,
3860
+ data: "0x0001000000000000000000000000000000000000000000000000000000000000"
3861
+ }
3698
3862
  }
3699
3863
  ]
3700
3864
  }
@@ -3712,7 +3876,10 @@ var Interlay$4 = {
3712
3876
  Parachain: 2030
3713
3877
  },
3714
3878
  {
3715
- GeneralKey: "0x0900"
3879
+ GeneralKey: {
3880
+ length: 2,
3881
+ data: "0x0900000000000000000000000000000000000000000000000000000000000000"
3882
+ }
3716
3883
  }
3717
3884
  ]
3718
3885
  }
@@ -3754,6 +3921,7 @@ var Interlay$4 = {
3754
3921
  var Litentry$4 = {
3755
3922
  relayChainAssetSymbol: "DOT",
3756
3923
  nativeAssetSymbol: "LIT",
3924
+ isEVM: false,
3757
3925
  nativeAssets: [
3758
3926
  {
3759
3927
  symbol: "LIT",
@@ -3766,6 +3934,7 @@ var Litentry$4 = {
3766
3934
  var Moonbeam$4 = {
3767
3935
  relayChainAssetSymbol: "DOT",
3768
3936
  nativeAssetSymbol: "GLMR",
3937
+ isEVM: true,
3769
3938
  nativeAssets: [
3770
3939
  {
3771
3940
  symbol: "GLMR",
@@ -4018,7 +4187,10 @@ var Moonbeam$4 = {
4018
4187
  Parachain: 2000
4019
4188
  },
4020
4189
  {
4021
- GeneralKey: "0x0003"
4190
+ GeneralKey: {
4191
+ length: 2,
4192
+ data: "0x0003000000000000000000000000000000000000000000000000000000000000"
4193
+ }
4022
4194
  }
4023
4195
  ]
4024
4196
  }
@@ -4036,7 +4208,10 @@ var Moonbeam$4 = {
4036
4208
  Parachain: 2000
4037
4209
  },
4038
4210
  {
4039
- GeneralKey: "0x0001"
4211
+ GeneralKey: {
4212
+ length: 2,
4213
+ data: "0x0001000000000000000000000000000000000000000000000000000000000000"
4214
+ }
4040
4215
  }
4041
4216
  ]
4042
4217
  }
@@ -4054,7 +4229,10 @@ var Moonbeam$4 = {
4054
4229
  Parachain: 2000
4055
4230
  },
4056
4231
  {
4057
- GeneralKey: "0x0000"
4232
+ GeneralKey: {
4233
+ length: 2,
4234
+ data: "0x0000000000000000000000000000000000000000000000000000000000000000"
4235
+ }
4058
4236
  }
4059
4237
  ]
4060
4238
  }
@@ -4085,7 +4263,10 @@ var Moonbeam$4 = {
4085
4263
  Parachain: 2011
4086
4264
  },
4087
4265
  {
4088
- GeneralKey: "0x657164"
4266
+ GeneralKey: {
4267
+ length: 3,
4268
+ data: "0x6571640000000000000000000000000000000000000000000000000000000000"
4269
+ }
4089
4270
  }
4090
4271
  ]
4091
4272
  }
@@ -4116,7 +4297,10 @@ var Moonbeam$4 = {
4116
4297
  Parachain: 2012
4117
4298
  },
4118
4299
  {
4119
- GeneralKey: "0x50415241"
4300
+ GeneralKey: {
4301
+ length: 4,
4302
+ data: "0x5041524100000000000000000000000000000000000000000000000000000000"
4303
+ }
4120
4304
  }
4121
4305
  ]
4122
4306
  }
@@ -4278,7 +4462,10 @@ var Moonbeam$4 = {
4278
4462
  Parachain: 2030
4279
4463
  },
4280
4464
  {
4281
- GeneralKey: "0x0804"
4465
+ GeneralKey: {
4466
+ length: 2,
4467
+ data: "0x0804000000000000000000000000000000000000000000000000000000000000"
4468
+ }
4282
4469
  }
4283
4470
  ]
4284
4471
  }
@@ -4296,7 +4483,10 @@ var Moonbeam$4 = {
4296
4483
  Parachain: 2030
4297
4484
  },
4298
4485
  {
4299
- GeneralKey: "0x0900"
4486
+ GeneralKey: {
4487
+ length: 2,
4488
+ data: "0x0900000000000000000000000000000000000000000000000000000000000000"
4489
+ }
4300
4490
  }
4301
4491
  ]
4302
4492
  }
@@ -4314,7 +4504,10 @@ var Moonbeam$4 = {
4314
4504
  Parachain: 2030
4315
4505
  },
4316
4506
  {
4317
- GeneralKey: "0x0809"
4507
+ GeneralKey: {
4508
+ length: 2,
4509
+ data: "0x0809000000000000000000000000000000000000000000000000000000000000"
4510
+ }
4318
4511
  }
4319
4512
  ]
4320
4513
  }
@@ -4332,7 +4525,10 @@ var Moonbeam$4 = {
4332
4525
  Parachain: 2030
4333
4526
  },
4334
4527
  {
4335
- GeneralKey: "0x0901"
4528
+ GeneralKey: {
4529
+ length: 2,
4530
+ data: "0x0901000000000000000000000000000000000000000000000000000000000000"
4531
+ }
4336
4532
  }
4337
4533
  ]
4338
4534
  }
@@ -4350,7 +4546,10 @@ var Moonbeam$4 = {
4350
4546
  Parachain: 2030
4351
4547
  },
4352
4548
  {
4353
- GeneralKey: "0x0908"
4549
+ GeneralKey: {
4550
+ length: 2,
4551
+ data: "0x0908000000000000000000000000000000000000000000000000000000000000"
4552
+ }
4354
4553
  }
4355
4554
  ]
4356
4555
  }
@@ -4368,7 +4567,10 @@ var Moonbeam$4 = {
4368
4567
  Parachain: 2030
4369
4568
  },
4370
4569
  {
4371
- GeneralKey: "0x0001"
4570
+ GeneralKey: {
4571
+ length: 2,
4572
+ data: "0x0001000000000000000000000000000000000000000000000000000000000000"
4573
+ }
4372
4574
  }
4373
4575
  ]
4374
4576
  }
@@ -4386,7 +4588,10 @@ var Moonbeam$4 = {
4386
4588
  Parachain: 2030
4387
4589
  },
4388
4590
  {
4389
- GeneralKey: "0x0904"
4591
+ GeneralKey: {
4592
+ length: 2,
4593
+ data: "0x0904000000000000000000000000000000000000000000000000000000000000"
4594
+ }
4390
4595
  }
4391
4596
  ]
4392
4597
  }
@@ -4404,7 +4609,10 @@ var Moonbeam$4 = {
4404
4609
  Parachain: 2030
4405
4610
  },
4406
4611
  {
4407
- GeneralKey: "0x0903"
4612
+ GeneralKey: {
4613
+ length: 2,
4614
+ data: "0x0903000000000000000000000000000000000000000000000000000000000000"
4615
+ }
4408
4616
  }
4409
4617
  ]
4410
4618
  }
@@ -4422,7 +4630,10 @@ var Moonbeam$4 = {
4422
4630
  Parachain: 2031
4423
4631
  },
4424
4632
  {
4425
- GeneralKey: "0x0001"
4633
+ GeneralKey: {
4634
+ length: 2,
4635
+ data: "0x0001000000000000000000000000000000000000000000000000000000000000"
4636
+ }
4426
4637
  }
4427
4638
  ]
4428
4639
  }
@@ -4440,7 +4651,10 @@ var Moonbeam$4 = {
4440
4651
  Parachain: 2032
4441
4652
  },
4442
4653
  {
4443
- GeneralKey: "0x0001"
4654
+ GeneralKey: {
4655
+ length: 2,
4656
+ data: "0x0001000000000000000000000000000000000000000000000000000000000000"
4657
+ }
4444
4658
  }
4445
4659
  ]
4446
4660
  }
@@ -4458,7 +4672,10 @@ var Moonbeam$4 = {
4458
4672
  Parachain: 2032
4459
4673
  },
4460
4674
  {
4461
- GeneralKey: "0x0002"
4675
+ GeneralKey: {
4676
+ length: 2,
4677
+ data: "0x0002000000000000000000000000000000000000000000000000000000000000"
4678
+ }
4462
4679
  }
4463
4680
  ]
4464
4681
  }
@@ -4569,7 +4786,10 @@ var Moonbeam$4 = {
4569
4786
  Parachain: 2092
4570
4787
  },
4571
4788
  {
4572
- GeneralKey: "0x0001"
4789
+ GeneralKey: {
4790
+ length: 2,
4791
+ data: "0x0001000000000000000000000000000000000000000000000000000000000000"
4792
+ }
4573
4793
  }
4574
4794
  ]
4575
4795
  }
@@ -4637,6 +4857,7 @@ var Moonbeam$4 = {
4637
4857
  var Parallel$4 = {
4638
4858
  relayChainAssetSymbol: "DOT",
4639
4859
  nativeAssetSymbol: "PARA",
4860
+ isEVM: false,
4640
4861
  nativeAssets: [
4641
4862
  {
4642
4863
  symbol: "PARA",
@@ -4688,7 +4909,10 @@ var Parallel$4 = {
4688
4909
  Parachain: 2000
4689
4910
  },
4690
4911
  {
4691
- GeneralKey: "0x0003"
4912
+ GeneralKey: {
4913
+ length: 2,
4914
+ data: "0x0003000000000000000000000000000000000000000000000000000000000000"
4915
+ }
4692
4916
  }
4693
4917
  ]
4694
4918
  }
@@ -4706,7 +4930,10 @@ var Parallel$4 = {
4706
4930
  Parachain: 2000
4707
4931
  },
4708
4932
  {
4709
- GeneralKey: "0x0000"
4933
+ GeneralKey: {
4934
+ length: 2,
4935
+ data: "0x0000000000000000000000000000000000000000000000000000000000000000"
4936
+ }
4710
4937
  }
4711
4938
  ]
4712
4939
  }
@@ -4724,7 +4951,10 @@ var Parallel$4 = {
4724
4951
  Parachain: 2000
4725
4952
  },
4726
4953
  {
4727
- GeneralKey: "0x040d000000"
4954
+ GeneralKey: {
4955
+ length: 5,
4956
+ data: "0x040d000000000000000000000000000000000000000000000000000000000000"
4957
+ }
4728
4958
  }
4729
4959
  ]
4730
4960
  }
@@ -4773,7 +5003,10 @@ var Parallel$4 = {
4773
5003
  Parachain: 2012
4774
5004
  },
4775
5005
  {
4776
- GeneralKey: "0x73444f54"
5006
+ GeneralKey: {
5007
+ length: 4,
5008
+ data: "0x73444f5400000000000000000000000000000000000000000000000000000000"
5009
+ }
4777
5010
  }
4778
5011
  ]
4779
5012
  }
@@ -4896,7 +5129,10 @@ var Parallel$4 = {
4896
5129
  Parachain: 2032
4897
5130
  },
4898
5131
  {
4899
- GeneralKey: "0x0002"
5132
+ GeneralKey: {
5133
+ length: 2,
5134
+ data: "0x0002000000000000000000000000000000000000000000000000000000000000"
5135
+ }
4900
5136
  }
4901
5137
  ]
4902
5138
  }
@@ -4914,7 +5150,10 @@ var Parallel$4 = {
4914
5150
  Parachain: 2032
4915
5151
  },
4916
5152
  {
4917
- GeneralKey: "0x0001"
5153
+ GeneralKey: {
5154
+ length: 2,
5155
+ data: "0x0001000000000000000000000000000000000000000000000000000000000000"
5156
+ }
4918
5157
  }
4919
5158
  ]
4920
5159
  }
@@ -4938,6 +5177,7 @@ var Parallel$4 = {
4938
5177
  var AssetHubPolkadot$4 = {
4939
5178
  relayChainAssetSymbol: "DOT",
4940
5179
  nativeAssetSymbol: "DOT",
5180
+ isEVM: false,
4941
5181
  nativeAssets: [
4942
5182
  {
4943
5183
  symbol: "DOT",
@@ -5127,9 +5367,11 @@ var AssetHubPolkadot$4 = {
5127
5367
  multiLocation: {
5128
5368
  parents: 1,
5129
5369
  interior: {
5130
- X1: {
5131
- Parachain: 2011
5132
- }
5370
+ X1: [
5371
+ {
5372
+ Parachain: 2011
5373
+ }
5374
+ ]
5133
5375
  }
5134
5376
  }
5135
5377
  },
@@ -5163,24 +5405,40 @@ var AssetHubPolkadot$4 = {
5163
5405
  multiLocation: {
5164
5406
  parents: 2,
5165
5407
  interior: {
5166
- X1: {
5167
- GlobalConsensus: {
5168
- kusama: null
5408
+ X1: [
5409
+ {
5410
+ GlobalConsensus: {
5411
+ kusama: null
5412
+ }
5169
5413
  }
5170
- }
5414
+ ]
5171
5415
  }
5172
5416
  }
5173
5417
  },
5174
5418
  {
5175
- symbol: "BNC",
5419
+ symbol: "TEER",
5176
5420
  decimals: 12,
5177
5421
  multiLocation: {
5178
5422
  parents: 1,
5179
5423
  interior: {
5180
- X2: [
5424
+ X1: [
5181
5425
  {
5182
- Parachain: 2030
5183
- },
5426
+ Parachain: 2039
5427
+ }
5428
+ ]
5429
+ }
5430
+ }
5431
+ },
5432
+ {
5433
+ symbol: "BNC",
5434
+ decimals: 12,
5435
+ multiLocation: {
5436
+ parents: 1,
5437
+ interior: {
5438
+ X2: [
5439
+ {
5440
+ Parachain: 2030
5441
+ },
5184
5442
  {
5185
5443
  GeneralKey: {
5186
5444
  length: 2,
@@ -5234,9 +5492,11 @@ var AssetHubPolkadot$4 = {
5234
5492
  multiLocation: {
5235
5493
  parents: 1,
5236
5494
  interior: {
5237
- X1: {
5238
- Parachain: 3369
5239
- }
5495
+ X1: [
5496
+ {
5497
+ Parachain: 3369
5498
+ }
5499
+ ]
5240
5500
  }
5241
5501
  }
5242
5502
  },
@@ -5283,9 +5543,11 @@ var AssetHubPolkadot$4 = {
5283
5543
  multiLocation: {
5284
5544
  parents: 1,
5285
5545
  interior: {
5286
- X1: {
5287
- Parachain: 2051
5288
- }
5546
+ X1: [
5547
+ {
5548
+ Parachain: 2051
5549
+ }
5550
+ ]
5289
5551
  }
5290
5552
  }
5291
5553
  }
@@ -5294,6 +5556,7 @@ var AssetHubPolkadot$4 = {
5294
5556
  var Altair$4 = {
5295
5557
  relayChainAssetSymbol: "KSM",
5296
5558
  nativeAssetSymbol: "AIR",
5559
+ isEVM: false,
5297
5560
  nativeAssets: [
5298
5561
  {
5299
5562
  symbol: "AIR",
@@ -5345,7 +5608,10 @@ var Altair$4 = {
5345
5608
  Parachain: 2000
5346
5609
  },
5347
5610
  {
5348
- GeneralKey: "0x0081"
5611
+ GeneralKey: {
5612
+ length: 2,
5613
+ data: "0x0081000000000000000000000000000000000000000000000000000000000000"
5614
+ }
5349
5615
  }
5350
5616
  ]
5351
5617
  }
@@ -5363,7 +5629,10 @@ var Altair$4 = {
5363
5629
  Parachain: 2088
5364
5630
  },
5365
5631
  {
5366
- GeneralKey: "0x0001"
5632
+ GeneralKey: {
5633
+ length: 2,
5634
+ data: "0x0001000000000000000000000000000000000000000000000000000000000000"
5635
+ }
5367
5636
  }
5368
5637
  ]
5369
5638
  }
@@ -5374,6 +5643,7 @@ var Altair$4 = {
5374
5643
  var Amplitude$4 = {
5375
5644
  relayChainAssetSymbol: "KSM",
5376
5645
  nativeAssetSymbol: "AMPE",
5646
+ isEVM: false,
5377
5647
  nativeAssets: [
5378
5648
  {
5379
5649
  symbol: "AMPE",
@@ -5401,6 +5671,7 @@ var Amplitude$4 = {
5401
5671
  var Bajun$4 = {
5402
5672
  relayChainAssetSymbol: "KSM",
5403
5673
  nativeAssetSymbol: "BAJU",
5674
+ isEVM: false,
5404
5675
  nativeAssets: [
5405
5676
  {
5406
5677
  symbol: "BAJU",
@@ -5413,6 +5684,7 @@ var Bajun$4 = {
5413
5684
  var Basilisk$4 = {
5414
5685
  relayChainAssetSymbol: "KSM",
5415
5686
  nativeAssetSymbol: "BSX",
5687
+ isEVM: false,
5416
5688
  nativeAssets: [
5417
5689
  {
5418
5690
  symbol: "BSX",
@@ -5464,7 +5736,10 @@ var Basilisk$4 = {
5464
5736
  Parachain: 2000
5465
5737
  },
5466
5738
  {
5467
- GeneralKey: "0x024bb6afb5fa2b07a5d1c499e1c3ddb5a15e709a71"
5739
+ GeneralKey: {
5740
+ length: 21,
5741
+ data: "0x024bb6afb5fa2b07a5d1c499e1c3ddb5a15e709a710000000000000000000000"
5742
+ }
5468
5743
  }
5469
5744
  ]
5470
5745
  }
@@ -5482,7 +5757,10 @@ var Basilisk$4 = {
5482
5757
  Parachain: 2000
5483
5758
  },
5484
5759
  {
5485
- GeneralKey: "0x021f3a10587a20114ea25ba1b388ee2dd4a337ce27"
5760
+ GeneralKey: {
5761
+ length: 21,
5762
+ data: "0x021f3a10587a20114ea25ba1b388ee2dd4a337ce270000000000000000000000"
5763
+ }
5486
5764
  }
5487
5765
  ]
5488
5766
  }
@@ -5500,7 +5778,10 @@ var Basilisk$4 = {
5500
5778
  Parachain: 2000
5501
5779
  },
5502
5780
  {
5503
- GeneralKey: "0x0081"
5781
+ GeneralKey: {
5782
+ length: 2,
5783
+ data: "0x0081000000000000000000000000000000000000000000000000000000000000"
5784
+ }
5504
5785
  }
5505
5786
  ]
5506
5787
  }
@@ -5518,7 +5799,10 @@ var Basilisk$4 = {
5518
5799
  Parachain: 2000
5519
5800
  },
5520
5801
  {
5521
- GeneralKey: "0x02ece0cc38021e734bef1d5da071b027ac2f71181f"
5802
+ GeneralKey: {
5803
+ length: 21,
5804
+ data: "0x02ece0cc38021e734bef1d5da071b027ac2f71181f0000000000000000000000"
5805
+ }
5522
5806
  }
5523
5807
  ]
5524
5808
  }
@@ -5536,7 +5820,10 @@ var Basilisk$4 = {
5536
5820
  Parachain: 2000
5537
5821
  },
5538
5822
  {
5539
- GeneralKey: "0x0266291c7d88d2ed9a708147bae4e0814a76705e2f"
5823
+ GeneralKey: {
5824
+ length: 21,
5825
+ data: "0x0266291c7d88d2ed9a708147bae4e0814a76705e2f0000000000000000000000"
5826
+ }
5540
5827
  }
5541
5828
  ]
5542
5829
  }
@@ -5554,7 +5841,10 @@ var Basilisk$4 = {
5554
5841
  Parachain: 2000
5555
5842
  },
5556
5843
  {
5557
- GeneralKey: "0x0254e183e533fd3c6e72debb2d1cab451d017faf72"
5844
+ GeneralKey: {
5845
+ length: 21,
5846
+ data: "0x0254e183e533fd3c6e72debb2d1cab451d017faf720000000000000000000000"
5847
+ }
5558
5848
  }
5559
5849
  ]
5560
5850
  }
@@ -5596,6 +5886,7 @@ var Basilisk$4 = {
5596
5886
  var BifrostKusama$4 = {
5597
5887
  relayChainAssetSymbol: "KSM",
5598
5888
  nativeAssetSymbol: "BNC",
5889
+ isEVM: false,
5599
5890
  nativeAssets: [
5600
5891
  {
5601
5892
  symbol: "BNC",
@@ -5668,7 +5959,10 @@ var BifrostKusama$4 = {
5668
5959
  Parachain: 2092
5669
5960
  },
5670
5961
  {
5671
- GeneralKey: "0x000b"
5962
+ GeneralKey: {
5963
+ length: 2,
5964
+ data: "0x000b000000000000000000000000000000000000000000000000000000000000"
5965
+ }
5672
5966
  }
5673
5967
  ]
5674
5968
  }
@@ -5686,7 +5980,10 @@ var BifrostKusama$4 = {
5686
5980
  Parachain: 2092
5687
5981
  },
5688
5982
  {
5689
- GeneralKey: "0x000c"
5983
+ GeneralKey: {
5984
+ length: 2,
5985
+ data: "0x000c000000000000000000000000000000000000000000000000000000000000"
5986
+ }
5690
5987
  }
5691
5988
  ]
5692
5989
  }
@@ -5704,7 +6001,10 @@ var BifrostKusama$4 = {
5704
6001
  Parachain: 2110
5705
6002
  },
5706
6003
  {
5707
- GeneralKey: "0x00000000"
6004
+ GeneralKey: {
6005
+ length: 4,
6006
+ data: "0x0000000000000000000000000000000000000000000000000000000000000000"
6007
+ }
5708
6008
  }
5709
6009
  ]
5710
6010
  }
@@ -5728,6 +6028,7 @@ var BifrostKusama$4 = {
5728
6028
  var Calamari$4 = {
5729
6029
  relayChainAssetSymbol: "KSM",
5730
6030
  nativeAssetSymbol: "KMA",
6031
+ isEVM: false,
5731
6032
  nativeAssets: [
5732
6033
  {
5733
6034
  symbol: "KMA",
@@ -5779,7 +6080,10 @@ var Calamari$4 = {
5779
6080
  Parachain: 2000
5780
6081
  },
5781
6082
  {
5782
- GeneralKey: "0x02e278651e8ff8e2efa83d7f84205084ebc90688be"
6083
+ GeneralKey: {
6084
+ length: 21,
6085
+ data: "0x02e278651e8ff8e2efa83d7f84205084ebc90688be0000000000000000000000"
6086
+ }
5783
6087
  }
5784
6088
  ]
5785
6089
  }
@@ -5797,7 +6101,10 @@ var Calamari$4 = {
5797
6101
  Parachain: 2000
5798
6102
  },
5799
6103
  {
5800
- GeneralKey: "0x0266291c7d88d2ed9a708147bae4e0814a76705e2f"
6104
+ GeneralKey: {
6105
+ length: 21,
6106
+ data: "0x0266291c7d88d2ed9a708147bae4e0814a76705e2f0000000000000000000000"
6107
+ }
5801
6108
  }
5802
6109
  ]
5803
6110
  }
@@ -5815,7 +6122,10 @@ var Calamari$4 = {
5815
6122
  Parachain: 2000
5816
6123
  },
5817
6124
  {
5818
- GeneralKey: "0x021f3a10587a20114ea25ba1b388ee2dd4a337ce27"
6125
+ GeneralKey: {
6126
+ length: 21,
6127
+ data: "0x021f3a10587a20114ea25ba1b388ee2dd4a337ce270000000000000000000000"
6128
+ }
5819
6129
  }
5820
6130
  ]
5821
6131
  }
@@ -5833,7 +6143,10 @@ var Calamari$4 = {
5833
6143
  Parachain: 2000
5834
6144
  },
5835
6145
  {
5836
- GeneralKey: "0x02577f6a0718a468e8a995f6075f2325f86a07c83b"
6146
+ GeneralKey: {
6147
+ length: 21,
6148
+ data: "0x02577f6a0718a468e8a995f6075f2325f86a07c83b0000000000000000000000"
6149
+ }
5837
6150
  }
5838
6151
  ]
5839
6152
  }
@@ -5851,7 +6164,10 @@ var Calamari$4 = {
5851
6164
  Parachain: 2000
5852
6165
  },
5853
6166
  {
5854
- GeneralKey: "0x0081"
6167
+ GeneralKey: {
6168
+ length: 2,
6169
+ data: "0x0081000000000000000000000000000000000000000000000000000000000000"
6170
+ }
5855
6171
  }
5856
6172
  ]
5857
6173
  }
@@ -5869,7 +6185,10 @@ var Calamari$4 = {
5869
6185
  Parachain: 2000
5870
6186
  },
5871
6187
  {
5872
- GeneralKey: "0x02b4ce1f6109854243d1af13b8ea34ed28542f31e0"
6188
+ GeneralKey: {
6189
+ length: 21,
6190
+ data: "0x02b4ce1f6109854243d1af13b8ea34ed28542f31e00000000000000000000000"
6191
+ }
5873
6192
  }
5874
6193
  ]
5875
6194
  }
@@ -5887,7 +6206,10 @@ var Calamari$4 = {
5887
6206
  Parachain: 2000
5888
6207
  },
5889
6208
  {
5890
- GeneralKey: "0x02a2a37aaf4730aeedada5aa8ee20a4451cb8b1c4e"
6209
+ GeneralKey: {
6210
+ length: 21,
6211
+ data: "0x02a2a37aaf4730aeedada5aa8ee20a4451cb8b1c4e0000000000000000000000"
6212
+ }
5891
6213
  }
5892
6214
  ]
5893
6215
  }
@@ -5905,7 +6227,10 @@ var Calamari$4 = {
5905
6227
  Parachain: 2000
5906
6228
  },
5907
6229
  {
5908
- GeneralKey: "0x0080"
6230
+ GeneralKey: {
6231
+ length: 2,
6232
+ data: "0x0080000000000000000000000000000000000000000000000000000000000000"
6233
+ }
5909
6234
  }
5910
6235
  ]
5911
6236
  }
@@ -5923,7 +6248,10 @@ var Calamari$4 = {
5923
6248
  Parachain: 2000
5924
6249
  },
5925
6250
  {
5926
- GeneralKey: "0x0083"
6251
+ GeneralKey: {
6252
+ length: 2,
6253
+ data: "0x0083000000000000000000000000000000000000000000000000000000000000"
6254
+ }
5927
6255
  }
5928
6256
  ]
5929
6257
  }
@@ -5941,7 +6269,10 @@ var Calamari$4 = {
5941
6269
  Parachain: 2000
5942
6270
  },
5943
6271
  {
5944
- GeneralKey: "0x02c621abc3afa3f24886ea278fffa7e10e8969d755"
6272
+ GeneralKey: {
6273
+ length: 21,
6274
+ data: "0x02c621abc3afa3f24886ea278fffa7e10e8969d7550000000000000000000000"
6275
+ }
5945
6276
  }
5946
6277
  ]
5947
6278
  }
@@ -5959,7 +6290,10 @@ var Calamari$4 = {
5959
6290
  Parachain: 2000
5960
6291
  },
5961
6292
  {
5962
- GeneralKey: "0x0230b1f4ba0b07789be9986fa090a57e0fe5631ebb"
6293
+ GeneralKey: {
6294
+ length: 21,
6295
+ data: "0x0230b1f4ba0b07789be9986fa090a57e0fe5631ebb0000000000000000000000"
6296
+ }
5963
6297
  }
5964
6298
  ]
5965
6299
  }
@@ -5977,7 +6311,10 @@ var Calamari$4 = {
5977
6311
  Parachain: 2000
5978
6312
  },
5979
6313
  {
5980
- GeneralKey: "0x0277cf14f938cb97308d752647d554439d99b39a3f"
6314
+ GeneralKey: {
6315
+ length: 21,
6316
+ data: "0x0277cf14f938cb97308d752647d554439d99b39a3f0000000000000000000000"
6317
+ }
5981
6318
  }
5982
6319
  ]
5983
6320
  }
@@ -5995,7 +6332,10 @@ var Calamari$4 = {
5995
6332
  Parachain: 2000
5996
6333
  },
5997
6334
  {
5998
- GeneralKey: "0x022c7de70b32cf5f20e02329a88d2e3b00ef85eb90"
6335
+ GeneralKey: {
6336
+ length: 21,
6337
+ data: "0x022c7de70b32cf5f20e02329a88d2e3b00ef85eb900000000000000000000000"
6338
+ }
5999
6339
  }
6000
6340
  ]
6001
6341
  }
@@ -6013,7 +6353,10 @@ var Calamari$4 = {
6013
6353
  Parachain: 2000
6014
6354
  },
6015
6355
  {
6016
- GeneralKey: "0x029759ca009cbcd75a84786ac19bb5d02f8e68bcd9"
6356
+ GeneralKey: {
6357
+ length: 21,
6358
+ data: "0x029759ca009cbcd75a84786ac19bb5d02f8e68bcd90000000000000000000000"
6359
+ }
6017
6360
  }
6018
6361
  ]
6019
6362
  }
@@ -6031,7 +6374,10 @@ var Calamari$4 = {
6031
6374
  Parachain: 2000
6032
6375
  },
6033
6376
  {
6034
- GeneralKey: "0x02ece0cc38021e734bef1d5da071b027ac2f71181f"
6377
+ GeneralKey: {
6378
+ length: 21,
6379
+ data: "0x02ece0cc38021e734bef1d5da071b027ac2f71181f0000000000000000000000"
6380
+ }
6035
6381
  }
6036
6382
  ]
6037
6383
  }
@@ -6049,7 +6395,10 @@ var Calamari$4 = {
6049
6395
  Parachain: 2000
6050
6396
  },
6051
6397
  {
6052
- GeneralKey: "0x024bb6afb5fa2b07a5d1c499e1c3ddb5a15e709a71"
6398
+ GeneralKey: {
6399
+ length: 21,
6400
+ data: "0x024bb6afb5fa2b07a5d1c499e1c3ddb5a15e709a710000000000000000000000"
6401
+ }
6053
6402
  }
6054
6403
  ]
6055
6404
  }
@@ -6091,6 +6440,7 @@ var Calamari$4 = {
6091
6440
  var Crab$4 = {
6092
6441
  relayChainAssetSymbol: "KSM",
6093
6442
  nativeAssetSymbol: "CRAB",
6443
+ isEVM: true,
6094
6444
  nativeAssets: [
6095
6445
  {
6096
6446
  symbol: "CRAB",
@@ -6108,6 +6458,7 @@ var Crab$4 = {
6108
6458
  var CrustShadow$4 = {
6109
6459
  relayChainAssetSymbol: "KSM",
6110
6460
  nativeAssetSymbol: "CSM",
6461
+ isEVM: false,
6111
6462
  nativeAssets: [
6112
6463
  {
6113
6464
  symbol: "CSM",
@@ -6155,6 +6506,7 @@ var CrustShadow$4 = {
6155
6506
  var Encointer$4 = {
6156
6507
  relayChainAssetSymbol: "KSM",
6157
6508
  nativeAssetSymbol: "KSM",
6509
+ isEVM: false,
6158
6510
  nativeAssets: [
6159
6511
  {
6160
6512
  symbol: "KSM",
@@ -6167,6 +6519,7 @@ var Encointer$4 = {
6167
6519
  var Imbue$4 = {
6168
6520
  relayChainAssetSymbol: "KSM",
6169
6521
  nativeAssetSymbol: "IMBU",
6522
+ isEVM: false,
6170
6523
  nativeAssets: [
6171
6524
  {
6172
6525
  symbol: "IMBU",
@@ -6179,6 +6532,7 @@ var Imbue$4 = {
6179
6532
  var KiltSpiritnet$4 = {
6180
6533
  relayChainAssetSymbol: "DOT",
6181
6534
  nativeAssetSymbol: "KILT",
6535
+ isEVM: false,
6182
6536
  nativeAssets: [
6183
6537
  {
6184
6538
  symbol: "KILT",
@@ -6191,6 +6545,7 @@ var KiltSpiritnet$4 = {
6191
6545
  var Integritee$4 = {
6192
6546
  relayChainAssetSymbol: "KSM",
6193
6547
  nativeAssetSymbol: "TEER",
6548
+ isEVM: false,
6194
6549
  nativeAssets: [
6195
6550
  {
6196
6551
  symbol: "TEER",
@@ -6203,6 +6558,7 @@ var Integritee$4 = {
6203
6558
  var InvArchTinker$4 = {
6204
6559
  relayChainAssetSymbol: "KSM",
6205
6560
  nativeAssetSymbol: "TNKR",
6561
+ isEVM: false,
6206
6562
  nativeAssets: [
6207
6563
  {
6208
6564
  symbol: "TNKR",
@@ -6215,6 +6571,7 @@ var InvArchTinker$4 = {
6215
6571
  var Curio$4 = {
6216
6572
  relayChainAssetSymbol: "KSM",
6217
6573
  nativeAssetSymbol: "CGT",
6574
+ isEVM: false,
6218
6575
  nativeAssets: [
6219
6576
  {
6220
6577
  symbol: "CGT",
@@ -6251,6 +6608,7 @@ var Curio$4 = {
6251
6608
  var Karura$4 = {
6252
6609
  relayChainAssetSymbol: "KSM",
6253
6610
  nativeAssetSymbol: "KAR",
6611
+ isEVM: false,
6254
6612
  nativeAssets: [
6255
6613
  {
6256
6614
  symbol: "KAR",
@@ -6395,7 +6753,10 @@ var Karura$4 = {
6395
6753
  Parachain: 2015
6396
6754
  },
6397
6755
  {
6398
- GeneralKey: "0x54454552"
6756
+ GeneralKey: {
6757
+ length: 4,
6758
+ data: "0x5445455200000000000000000000000000000000000000000000000000000000"
6759
+ }
6399
6760
  }
6400
6761
  ]
6401
6762
  }
@@ -6444,7 +6805,10 @@ var Karura$4 = {
6444
6805
  Parachain: 2024
6445
6806
  },
6446
6807
  {
6447
- GeneralKey: "0x657164"
6808
+ GeneralKey: {
6809
+ length: 3,
6810
+ data: "0x6571640000000000000000000000000000000000000000000000000000000000"
6811
+ }
6448
6812
  }
6449
6813
  ]
6450
6814
  }
@@ -6475,7 +6839,10 @@ var Karura$4 = {
6475
6839
  Parachain: 2085
6476
6840
  },
6477
6841
  {
6478
- GeneralKey: "0x484b4f"
6842
+ GeneralKey: {
6843
+ length: 3,
6844
+ data: "0x484b4f0000000000000000000000000000000000000000000000000000000000"
6845
+ }
6479
6846
  }
6480
6847
  ]
6481
6848
  }
@@ -6493,7 +6860,10 @@ var Karura$4 = {
6493
6860
  Parachain: 2088
6494
6861
  },
6495
6862
  {
6496
- GeneralKey: "0x0001"
6863
+ GeneralKey: {
6864
+ length: 2,
6865
+ data: "0x0001000000000000000000000000000000000000000000000000000000000000"
6866
+ }
6497
6867
  }
6498
6868
  ]
6499
6869
  }
@@ -6542,7 +6912,10 @@ var Karura$4 = {
6542
6912
  Parachain: 2096
6543
6913
  },
6544
6914
  {
6545
- GeneralKey: "0x000000000000000000"
6915
+ GeneralKey: {
6916
+ length: 9,
6917
+ data: "0x0000000000000000000000000000000000000000000000000000000000000000"
6918
+ }
6546
6919
  }
6547
6920
  ]
6548
6921
  }
@@ -6560,7 +6933,10 @@ var Karura$4 = {
6560
6933
  Parachain: 2102
6561
6934
  },
6562
6935
  {
6563
- GeneralKey: "0x50434855"
6936
+ GeneralKey: {
6937
+ length: 4,
6938
+ data: "0x5043485500000000000000000000000000000000000000000000000000000000"
6939
+ }
6564
6940
  }
6565
6941
  ]
6566
6942
  }
@@ -6614,7 +6990,10 @@ var Karura$4 = {
6614
6990
  Parachain: 2107
6615
6991
  },
6616
6992
  {
6617
- GeneralKey: "0x4b49434f"
6993
+ GeneralKey: {
6994
+ length: 4,
6995
+ data: "0x4b49434f00000000000000000000000000000000000000000000000000000000"
6996
+ }
6618
6997
  }
6619
6998
  ]
6620
6999
  }
@@ -6645,7 +7024,10 @@ var Karura$4 = {
6645
7024
  Parachain: 2118
6646
7025
  },
6647
7026
  {
6648
- GeneralKey: "0x4c54"
7027
+ GeneralKey: {
7028
+ length: 2,
7029
+ data: "0x4c54000000000000000000000000000000000000000000000000000000000000"
7030
+ }
6649
7031
  }
6650
7032
  ]
6651
7033
  }
@@ -6656,6 +7038,7 @@ var Karura$4 = {
6656
7038
  var Kintsugi$4 = {
6657
7039
  relayChainAssetSymbol: "KSM",
6658
7040
  nativeAssetSymbol: "KINT",
7041
+ isEVM: false,
6659
7042
  nativeAssets: [
6660
7043
  {
6661
7044
  symbol: "KINT",
@@ -6716,7 +7099,10 @@ var Kintsugi$4 = {
6716
7099
  Parachain: 2000
6717
7100
  },
6718
7101
  {
6719
- GeneralKey: "0x0081"
7102
+ GeneralKey: {
7103
+ length: 2,
7104
+ data: "0x0081000000000000000000000000000000000000000000000000000000000000"
7105
+ }
6720
7106
  }
6721
7107
  ]
6722
7108
  }
@@ -6734,7 +7120,10 @@ var Kintsugi$4 = {
6734
7120
  Parachain: 2000
6735
7121
  },
6736
7122
  {
6737
- GeneralKey: "0x0083"
7123
+ GeneralKey: {
7124
+ length: 2,
7125
+ data: "0x0083000000000000000000000000000000000000000000000000000000000000"
7126
+ }
6738
7127
  }
6739
7128
  ]
6740
7129
  }
@@ -6752,7 +7141,10 @@ var Kintsugi$4 = {
6752
7141
  Parachain: 2001
6753
7142
  },
6754
7143
  {
6755
- GeneralKey: "0x0104"
7144
+ GeneralKey: {
7145
+ length: 2,
7146
+ data: "0x0104000000000000000000000000000000000000000000000000000000000000"
7147
+ }
6756
7148
  }
6757
7149
  ]
6758
7150
  }
@@ -6814,6 +7206,7 @@ var Litmus = {
6814
7206
  var Moonriver$4 = {
6815
7207
  relayChainAssetSymbol: "KSM",
6816
7208
  nativeAssetSymbol: "MOVR",
7209
+ isEVM: true,
6817
7210
  nativeAssets: [
6818
7211
  {
6819
7212
  symbol: "MOVR",
@@ -6886,7 +7279,10 @@ var Moonriver$4 = {
6886
7279
  Parachain: 2000
6887
7280
  },
6888
7281
  {
6889
- GeneralKey: "0x0081"
7282
+ GeneralKey: {
7283
+ length: 2,
7284
+ data: "0x0081000000000000000000000000000000000000000000000000000000000000"
7285
+ }
6890
7286
  }
6891
7287
  ]
6892
7288
  }
@@ -6904,7 +7300,10 @@ var Moonriver$4 = {
6904
7300
  Parachain: 2000
6905
7301
  },
6906
7302
  {
6907
- GeneralKey: "0x0080"
7303
+ GeneralKey: {
7304
+ length: 2,
7305
+ data: "0x0080000000000000000000000000000000000000000000000000000000000000"
7306
+ }
6908
7307
  }
6909
7308
  ]
6910
7309
  }
@@ -6922,7 +7321,10 @@ var Moonriver$4 = {
6922
7321
  Parachain: 2001
6923
7322
  },
6924
7323
  {
6925
- GeneralKey: "0x0104"
7324
+ GeneralKey: {
7325
+ length: 2,
7326
+ data: "0x0104000000000000000000000000000000000000000000000000000000000000"
7327
+ }
6926
7328
  }
6927
7329
  ]
6928
7330
  }
@@ -6940,7 +7342,10 @@ var Moonriver$4 = {
6940
7342
  Parachain: 2001
6941
7343
  },
6942
7344
  {
6943
- GeneralKey: "0x0101"
7345
+ GeneralKey: {
7346
+ length: 2,
7347
+ data: "0x0101000000000000000000000000000000000000000000000000000000000000"
7348
+ }
6944
7349
  }
6945
7350
  ]
6946
7351
  }
@@ -6958,7 +7363,10 @@ var Moonriver$4 = {
6958
7363
  Parachain: 2001
6959
7364
  },
6960
7365
  {
6961
- GeneralKey: "0x010a"
7366
+ GeneralKey: {
7367
+ length: 2,
7368
+ data: "0x010a000000000000000000000000000000000000000000000000000000000000"
7369
+ }
6962
7370
  }
6963
7371
  ]
6964
7372
  }
@@ -6976,7 +7384,10 @@ var Moonriver$4 = {
6976
7384
  Parachain: 2001
6977
7385
  },
6978
7386
  {
6979
- GeneralKey: "0x0001"
7387
+ GeneralKey: {
7388
+ length: 2,
7389
+ data: "0x0001000000000000000000000000000000000000000000000000000000000000"
7390
+ }
6980
7391
  }
6981
7392
  ]
6982
7393
  }
@@ -7033,7 +7444,10 @@ var Moonriver$4 = {
7033
7444
  Parachain: 2015
7034
7445
  },
7035
7446
  {
7036
- GeneralKey: "0x54454552"
7447
+ GeneralKey: {
7448
+ length: 4,
7449
+ data: "0x5445455200000000000000000000000000000000000000000000000000000000"
7450
+ }
7037
7451
  }
7038
7452
  ]
7039
7453
  }
@@ -7077,7 +7491,10 @@ var Moonriver$4 = {
7077
7491
  Parachain: 2085
7078
7492
  },
7079
7493
  {
7080
- GeneralKey: "0x484b4f"
7494
+ GeneralKey: {
7495
+ length: 3,
7496
+ data: "0x484b4f0000000000000000000000000000000000000000000000000000000000"
7497
+ }
7081
7498
  }
7082
7499
  ]
7083
7500
  }
@@ -7108,7 +7525,10 @@ var Moonriver$4 = {
7108
7525
  Parachain: 2092
7109
7526
  },
7110
7527
  {
7111
- GeneralKey: "0x000b"
7528
+ GeneralKey: {
7529
+ length: 2,
7530
+ data: "0x000b000000000000000000000000000000000000000000000000000000000000"
7531
+ }
7112
7532
  }
7113
7533
  ]
7114
7534
  }
@@ -7126,7 +7546,10 @@ var Moonriver$4 = {
7126
7546
  Parachain: 2092
7127
7547
  },
7128
7548
  {
7129
- GeneralKey: "0x000c"
7549
+ GeneralKey: {
7550
+ length: 2,
7551
+ data: "0x000c000000000000000000000000000000000000000000000000000000000000"
7552
+ }
7130
7553
  }
7131
7554
  ]
7132
7555
  }
@@ -7180,7 +7603,10 @@ var Moonriver$4 = {
7180
7603
  Parachain: 2110
7181
7604
  },
7182
7605
  {
7183
- GeneralKey: "0x00000000"
7606
+ GeneralKey: {
7607
+ length: 4,
7608
+ data: "0x0000000000000000000000000000000000000000000000000000000000000000"
7609
+ }
7184
7610
  }
7185
7611
  ]
7186
7612
  }
@@ -7222,6 +7648,7 @@ var Moonriver$4 = {
7222
7648
  var ParallelHeiko$4 = {
7223
7649
  relayChainAssetSymbol: "KSM",
7224
7650
  nativeAssetSymbol: "HKO",
7651
+ isEVM: false,
7225
7652
  nativeAssets: [
7226
7653
  {
7227
7654
  symbol: "HKO",
@@ -7273,7 +7700,10 @@ var ParallelHeiko$4 = {
7273
7700
  Parachain: 2000
7274
7701
  },
7275
7702
  {
7276
- GeneralKey: "0x0083"
7703
+ GeneralKey: {
7704
+ length: 2,
7705
+ data: "0x0083000000000000000000000000000000000000000000000000000000000000"
7706
+ }
7277
7707
  }
7278
7708
  ]
7279
7709
  }
@@ -7291,7 +7721,10 @@ var ParallelHeiko$4 = {
7291
7721
  Parachain: 2000
7292
7722
  },
7293
7723
  {
7294
- GeneralKey: "0x0080"
7724
+ GeneralKey: {
7725
+ length: 2,
7726
+ data: "0x0080000000000000000000000000000000000000000000000000000000000000"
7727
+ }
7295
7728
  }
7296
7729
  ]
7297
7730
  }
@@ -7361,7 +7794,10 @@ var ParallelHeiko$4 = {
7361
7794
  Parachain: 2092
7362
7795
  },
7363
7796
  {
7364
- GeneralKey: "0x000b"
7797
+ GeneralKey: {
7798
+ length: 2,
7799
+ data: "0x000b000000000000000000000000000000000000000000000000000000000000"
7800
+ }
7365
7801
  }
7366
7802
  ]
7367
7803
  }
@@ -7379,7 +7815,10 @@ var ParallelHeiko$4 = {
7379
7815
  Parachain: 2092
7380
7816
  },
7381
7817
  {
7382
- GeneralKey: "0x000c"
7818
+ GeneralKey: {
7819
+ length: 2,
7820
+ data: "0x000c000000000000000000000000000000000000000000000000000000000000"
7821
+ }
7383
7822
  }
7384
7823
  ]
7385
7824
  }
@@ -7390,6 +7829,7 @@ var ParallelHeiko$4 = {
7390
7829
  var Picasso$4 = {
7391
7830
  relayChainAssetSymbol: "KSM",
7392
7831
  nativeAssetSymbol: "PICA",
7832
+ isEVM: false,
7393
7833
  nativeAssets: [
7394
7834
  {
7395
7835
  symbol: "PICA",
@@ -7752,6 +8192,7 @@ var Picasso$4 = {
7752
8192
  var Pioneer$4 = {
7753
8193
  relayChainAssetSymbol: "KSM",
7754
8194
  nativeAssetSymbol: "NEER",
8195
+ isEVM: false,
7755
8196
  nativeAssets: [
7756
8197
  {
7757
8198
  symbol: "NEER",
@@ -7764,6 +8205,7 @@ var Pioneer$4 = {
7764
8205
  var Quartz$4 = {
7765
8206
  relayChainAssetSymbol: "KSM",
7766
8207
  nativeAssetSymbol: "QTZ",
8208
+ isEVM: false,
7767
8209
  nativeAssets: [
7768
8210
  {
7769
8211
  symbol: "QTZ",
@@ -7776,6 +8218,7 @@ var Quartz$4 = {
7776
8218
  var RobonomicsKusama$4 = {
7777
8219
  relayChainAssetSymbol: "KSM",
7778
8220
  nativeAssetSymbol: "XRT",
8221
+ isEVM: false,
7779
8222
  nativeAssets: [
7780
8223
  {
7781
8224
  symbol: "XRT",
@@ -7788,6 +8231,7 @@ var RobonomicsKusama$4 = {
7788
8231
  var RobonomicsPolkadot$4 = {
7789
8232
  relayChainAssetSymbol: "DOT",
7790
8233
  nativeAssetSymbol: "XRT",
8234
+ isEVM: false,
7791
8235
  nativeAssets: [
7792
8236
  {
7793
8237
  symbol: "XRT",
@@ -7805,6 +8249,7 @@ var RobonomicsPolkadot$4 = {
7805
8249
  var PeopleKusama$4 = {
7806
8250
  relayChainAssetSymbol: "KSM",
7807
8251
  nativeAssetSymbol: "KSM",
8252
+ isEVM: false,
7808
8253
  nativeAssets: [
7809
8254
  {
7810
8255
  symbol: "KSM",
@@ -7817,6 +8262,7 @@ var PeopleKusama$4 = {
7817
8262
  var PeoplePolkadot$4 = {
7818
8263
  relayChainAssetSymbol: "DOT",
7819
8264
  nativeAssetSymbol: "DOT",
8265
+ isEVM: false,
7820
8266
  nativeAssets: [
7821
8267
  {
7822
8268
  symbol: "DOT",
@@ -7829,6 +8275,7 @@ var PeoplePolkadot$4 = {
7829
8275
  var Shiden$4 = {
7830
8276
  relayChainAssetSymbol: "KSM",
7831
8277
  nativeAssetSymbol: "SDN",
8278
+ isEVM: false,
7832
8279
  nativeAssets: [
7833
8280
  {
7834
8281
  symbol: "SDN",
@@ -7901,7 +8348,10 @@ var Shiden$4 = {
7901
8348
  Parachain: 2000
7902
8349
  },
7903
8350
  {
7904
- GeneralKey: "0x0080"
8351
+ GeneralKey: {
8352
+ length: 2,
8353
+ data: "0x0080000000000000000000000000000000000000000000000000000000000000"
8354
+ }
7905
8355
  }
7906
8356
  ]
7907
8357
  }
@@ -7919,7 +8369,10 @@ var Shiden$4 = {
7919
8369
  Parachain: 2000
7920
8370
  },
7921
8371
  {
7922
- GeneralKey: "0x0083"
8372
+ GeneralKey: {
8373
+ length: 2,
8374
+ data: "0x0083000000000000000000000000000000000000000000000000000000000000"
8375
+ }
7923
8376
  }
7924
8377
  ]
7925
8378
  }
@@ -7937,7 +8390,10 @@ var Shiden$4 = {
7937
8390
  Parachain: 2000
7938
8391
  },
7939
8392
  {
7940
- GeneralKey: "0x0081"
8393
+ GeneralKey: {
8394
+ length: 2,
8395
+ data: "0x0081000000000000000000000000000000000000000000000000000000000000"
8396
+ }
7941
8397
  }
7942
8398
  ]
7943
8399
  }
@@ -7955,7 +8411,10 @@ var Shiden$4 = {
7955
8411
  Parachain: 2001
7956
8412
  },
7957
8413
  {
7958
- GeneralKey: "0x0001"
8414
+ GeneralKey: {
8415
+ length: 2,
8416
+ data: "0x0001000000000000000000000000000000000000000000000000000000000000"
8417
+ }
7959
8418
  }
7960
8419
  ]
7961
8420
  }
@@ -7973,7 +8432,10 @@ var Shiden$4 = {
7973
8432
  Parachain: 2001
7974
8433
  },
7975
8434
  {
7976
- GeneralKey: "0x0404"
8435
+ GeneralKey: {
8436
+ length: 2,
8437
+ data: "0x0404000000000000000000000000000000000000000000000000000000000000"
8438
+ }
7977
8439
  }
7978
8440
  ]
7979
8441
  }
@@ -7991,7 +8453,10 @@ var Shiden$4 = {
7991
8453
  Parachain: 2001
7992
8454
  },
7993
8455
  {
7994
- GeneralKey: "0x0104"
8456
+ GeneralKey: {
8457
+ length: 2,
8458
+ data: "0x0104000000000000000000000000000000000000000000000000000000000000"
8459
+ }
7995
8460
  }
7996
8461
  ]
7997
8462
  }
@@ -8066,7 +8531,10 @@ var Shiden$4 = {
8066
8531
  Parachain: 2092
8067
8532
  },
8068
8533
  {
8069
- GeneralKey: "0x000b"
8534
+ GeneralKey: {
8535
+ length: 2,
8536
+ data: "0x000b000000000000000000000000000000000000000000000000000000000000"
8537
+ }
8070
8538
  }
8071
8539
  ]
8072
8540
  }
@@ -8084,7 +8552,10 @@ var Shiden$4 = {
8084
8552
  Parachain: 2092
8085
8553
  },
8086
8554
  {
8087
- GeneralKey: "0x000c"
8555
+ GeneralKey: {
8556
+ length: 2,
8557
+ data: "0x000c000000000000000000000000000000000000000000000000000000000000"
8558
+ }
8088
8559
  }
8089
8560
  ]
8090
8561
  }
@@ -8126,6 +8597,7 @@ var Shiden$4 = {
8126
8597
  var AssetHubKusama$4 = {
8127
8598
  relayChainAssetSymbol: "KSM",
8128
8599
  nativeAssetSymbol: "KSM",
8600
+ isEVM: false,
8129
8601
  nativeAssets: [
8130
8602
  {
8131
8603
  symbol: "KSM",
@@ -8220,11 +8692,13 @@ var AssetHubKusama$4 = {
8220
8692
  multiLocation: {
8221
8693
  parents: 2,
8222
8694
  interior: {
8223
- X1: {
8224
- GlobalConsensus: {
8225
- polkadot: null
8695
+ X1: [
8696
+ {
8697
+ GlobalConsensus: {
8698
+ polkadot: null
8699
+ }
8226
8700
  }
8227
- }
8701
+ ]
8228
8702
  }
8229
8703
  }
8230
8704
  },
@@ -8251,9 +8725,11 @@ var AssetHubKusama$4 = {
8251
8725
  multiLocation: {
8252
8726
  parents: 1,
8253
8727
  interior: {
8254
- X1: {
8255
- Parachain: 2123
8256
- }
8728
+ X1: [
8729
+ {
8730
+ Parachain: 2123
8731
+ }
8732
+ ]
8257
8733
  }
8258
8734
  }
8259
8735
  },
@@ -8273,12 +8749,27 @@ var AssetHubKusama$4 = {
8273
8749
  ]
8274
8750
  }
8275
8751
  }
8752
+ },
8753
+ {
8754
+ symbol: "TEER",
8755
+ decimals: 12,
8756
+ multiLocation: {
8757
+ parents: 1,
8758
+ interior: {
8759
+ X1: [
8760
+ {
8761
+ Parachain: 2015
8762
+ }
8763
+ ]
8764
+ }
8765
+ }
8276
8766
  }
8277
8767
  ]
8278
8768
  };
8279
8769
  var CoretimeKusama$4 = {
8280
8770
  relayChainAssetSymbol: "KSM",
8281
8771
  nativeAssetSymbol: "KSM",
8772
+ isEVM: false,
8282
8773
  nativeAssets: [
8283
8774
  {
8284
8775
  symbol: "KSM",
@@ -8291,6 +8782,7 @@ var CoretimeKusama$4 = {
8291
8782
  var CoretimePolkadot$4 = {
8292
8783
  relayChainAssetSymbol: "DOT",
8293
8784
  nativeAssetSymbol: "DOT",
8785
+ isEVM: false,
8294
8786
  nativeAssets: [
8295
8787
  {
8296
8788
  symbol: "DOT",
@@ -8303,6 +8795,7 @@ var CoretimePolkadot$4 = {
8303
8795
  var Turing$4 = {
8304
8796
  relayChainAssetSymbol: "KSM",
8305
8797
  nativeAssetSymbol: "TUR",
8798
+ isEVM: false,
8306
8799
  nativeAssets: [
8307
8800
  {
8308
8801
  symbol: "TUR",
@@ -8333,7 +8826,10 @@ var Turing$4 = {
8333
8826
  Parachain: 2000
8334
8827
  },
8335
8828
  {
8336
- GeneralKey: "0x0081"
8829
+ GeneralKey: {
8830
+ length: 2,
8831
+ data: "0x0081000000000000000000000000000000000000000000000000000000000000"
8832
+ }
8337
8833
  }
8338
8834
  ]
8339
8835
  }
@@ -8351,7 +8847,10 @@ var Turing$4 = {
8351
8847
  Parachain: 2000
8352
8848
  },
8353
8849
  {
8354
- GeneralKey: "0x0080"
8850
+ GeneralKey: {
8851
+ length: 2,
8852
+ data: "0x0080000000000000000000000000000000000000000000000000000000000000"
8853
+ }
8355
8854
  }
8356
8855
  ]
8357
8856
  }
@@ -8369,7 +8868,10 @@ var Turing$4 = {
8369
8868
  Parachain: 2000
8370
8869
  },
8371
8870
  {
8372
- GeneralKey: "0x0083"
8871
+ GeneralKey: {
8872
+ length: 2,
8873
+ data: "0x0083000000000000000000000000000000000000000000000000000000000000"
8874
+ }
8373
8875
  }
8374
8876
  ]
8375
8877
  }
@@ -8431,7 +8933,10 @@ var Turing$4 = {
8431
8933
  Parachain: 2085
8432
8934
  },
8433
8935
  {
8434
- GeneralKey: "0x484b4f"
8936
+ GeneralKey: {
8937
+ length: 3,
8938
+ data: "0x484b4f0000000000000000000000000000000000000000000000000000000000"
8939
+ }
8435
8940
  }
8436
8941
  ]
8437
8942
  }
@@ -8449,7 +8954,10 @@ var Turing$4 = {
8449
8954
  Parachain: 2085
8450
8955
  },
8451
8956
  {
8452
- GeneralKey: "0x734b534d"
8957
+ GeneralKey: {
8958
+ length: 4,
8959
+ data: "0x734b534d00000000000000000000000000000000000000000000000000000000"
8960
+ }
8453
8961
  }
8454
8962
  ]
8455
8963
  }
@@ -8467,7 +8975,10 @@ var Turing$4 = {
8467
8975
  Parachain: 2110
8468
8976
  },
8469
8977
  {
8470
- GeneralKey: "0x00000000"
8978
+ GeneralKey: {
8979
+ length: 4,
8980
+ data: "0x0000000000000000000000000000000000000000000000000000000000000000"
8981
+ }
8471
8982
  }
8472
8983
  ]
8473
8984
  }
@@ -8491,6 +9002,7 @@ var Turing$4 = {
8491
9002
  var Unique$4 = {
8492
9003
  relayChainAssetSymbol: "DOT",
8493
9004
  nativeAssetSymbol: "UNQ",
9005
+ isEVM: false,
8494
9006
  nativeAssets: [
8495
9007
  {
8496
9008
  symbol: "UNQ",
@@ -8503,6 +9015,7 @@ var Unique$4 = {
8503
9015
  var Crust$4 = {
8504
9016
  relayChainAssetSymbol: "DOT",
8505
9017
  nativeAssetSymbol: "CRU",
9018
+ isEVM: false,
8506
9019
  nativeAssets: [
8507
9020
  {
8508
9021
  symbol: "CRU",
@@ -8525,6 +9038,7 @@ var Crust$4 = {
8525
9038
  var Manta$4 = {
8526
9039
  relayChainAssetSymbol: "DOT",
8527
9040
  nativeAssetSymbol: "MANTA",
9041
+ isEVM: false,
8528
9042
  nativeAssets: [
8529
9043
  {
8530
9044
  symbol: "MANTA",
@@ -8697,6 +9211,7 @@ var Manta$4 = {
8697
9211
  var Nodle$4 = {
8698
9212
  relayChainAssetSymbol: "DOT",
8699
9213
  nativeAssetSymbol: "NODL",
9214
+ isEVM: false,
8700
9215
  nativeAssets: [
8701
9216
  {
8702
9217
  symbol: "NODL",
@@ -8709,6 +9224,7 @@ var Nodle$4 = {
8709
9224
  var NeuroWeb$4 = {
8710
9225
  relayChainAssetSymbol: "DOT",
8711
9226
  nativeAssetSymbol: "NEURO",
9227
+ isEVM: false,
8712
9228
  nativeAssets: [
8713
9229
  {
8714
9230
  symbol: "NEURO",
@@ -8726,6 +9242,7 @@ var NeuroWeb$4 = {
8726
9242
  var Pendulum$4 = {
8727
9243
  relayChainAssetSymbol: "DOT",
8728
9244
  nativeAssetSymbol: "PEN",
9245
+ isEVM: false,
8729
9246
  nativeAssets: [
8730
9247
  {
8731
9248
  symbol: "PEN",
@@ -8898,7 +9415,10 @@ var Pendulum$4 = {
8898
9415
  Parachain: 2030
8899
9416
  },
8900
9417
  {
8901
- GeneralKey: "0x0001"
9418
+ GeneralKey: {
9419
+ length: 2,
9420
+ data: "0x0001000000000000000000000000000000000000000000000000000000000000"
9421
+ }
8902
9422
  }
8903
9423
  ]
8904
9424
  }
@@ -8916,7 +9436,10 @@ var Pendulum$4 = {
8916
9436
  Parachain: 2030
8917
9437
  },
8918
9438
  {
8919
- GeneralKey: "0x0900"
9439
+ GeneralKey: {
9440
+ length: 2,
9441
+ data: "0x0900000000000000000000000000000000000000000000000000000000000000"
9442
+ }
8920
9443
  }
8921
9444
  ]
8922
9445
  }
@@ -8976,6 +9499,7 @@ var Pendulum$4 = {
8976
9499
  var Polkadex$4 = {
8977
9500
  relayChainAssetSymbol: "DOT",
8978
9501
  nativeAssetSymbol: "PDEX",
9502
+ isEVM: false,
8979
9503
  nativeAssets: [
8980
9504
  {
8981
9505
  symbol: "PDEX",
@@ -9047,6 +9571,7 @@ var Polkadex$4 = {
9047
9571
  var Zeitgeist$4 = {
9048
9572
  relayChainAssetSymbol: "DOT",
9049
9573
  nativeAssetSymbol: "ZTG",
9574
+ isEVM: false,
9050
9575
  nativeAssets: [
9051
9576
  {
9052
9577
  symbol: "ZTG",
@@ -9126,6 +9651,7 @@ var Zeitgeist$4 = {
9126
9651
  var Collectives$4 = {
9127
9652
  relayChainAssetSymbol: "DOT",
9128
9653
  nativeAssetSymbol: "DOT",
9654
+ isEVM: false,
9129
9655
  nativeAssets: [
9130
9656
  {
9131
9657
  symbol: "DOT",
@@ -9138,6 +9664,7 @@ var Collectives$4 = {
9138
9664
  var Phala$4 = {
9139
9665
  relayChainAssetSymbol: "DOT",
9140
9666
  nativeAssetSymbol: "PHA",
9667
+ isEVM: false,
9141
9668
  nativeAssets: [
9142
9669
  {
9143
9670
  symbol: "PHA",
@@ -9189,7 +9716,10 @@ var Phala$4 = {
9189
9716
  Parachain: 2000
9190
9717
  },
9191
9718
  {
9192
- GeneralKey: "0x0000"
9719
+ GeneralKey: {
9720
+ length: 2,
9721
+ data: "0x0000000000000000000000000000000000000000000000000000000000000000"
9722
+ }
9193
9723
  }
9194
9724
  ]
9195
9725
  }
@@ -9207,7 +9737,10 @@ var Phala$4 = {
9207
9737
  Parachain: 2000
9208
9738
  },
9209
9739
  {
9210
- GeneralKey: "0x0001"
9740
+ GeneralKey: {
9741
+ length: 2,
9742
+ data: "0x0001000000000000000000000000000000000000000000000000000000000000"
9743
+ }
9211
9744
  }
9212
9745
  ]
9213
9746
  }
@@ -9225,7 +9758,10 @@ var Phala$4 = {
9225
9758
  Parachain: 2000
9226
9759
  },
9227
9760
  {
9228
- GeneralKey: "0x0003"
9761
+ GeneralKey: {
9762
+ length: 2,
9763
+ data: "0x0003000000000000000000000000000000000000000000000000000000000000"
9764
+ }
9229
9765
  }
9230
9766
  ]
9231
9767
  }
@@ -9287,7 +9823,10 @@ var Phala$4 = {
9287
9823
  Parachain: 2011
9288
9824
  },
9289
9825
  {
9290
- GeneralKey: "0x657164"
9826
+ GeneralKey: {
9827
+ length: 3,
9828
+ data: "0x6571640000000000000000000000000000000000000000000000000000000000"
9829
+ }
9291
9830
  }
9292
9831
  ]
9293
9832
  }
@@ -9305,7 +9844,10 @@ var Phala$4 = {
9305
9844
  Parachain: 2012
9306
9845
  },
9307
9846
  {
9308
- GeneralKey: "0x50415241"
9847
+ GeneralKey: {
9848
+ length: 4,
9849
+ data: "0x5041524100000000000000000000000000000000000000000000000000000000"
9850
+ }
9309
9851
  }
9310
9852
  ]
9311
9853
  }
@@ -9323,9 +9865,12 @@ var Phala$4 = {
9323
9865
  Parachain: 2030
9324
9866
  },
9325
9867
  {
9326
- GeneralKey: "0x0001"
9327
- }
9328
- ]
9868
+ GeneralKey: {
9869
+ length: 2,
9870
+ data: "0x0001000000000000000000000000000000000000000000000000000000000000"
9871
+ }
9872
+ }
9873
+ ]
9329
9874
  }
9330
9875
  }
9331
9876
  },
@@ -9341,7 +9886,10 @@ var Phala$4 = {
9341
9886
  Parachain: 2032
9342
9887
  },
9343
9888
  {
9344
- GeneralKey: "0x0002"
9889
+ GeneralKey: {
9890
+ length: 2,
9891
+ data: "0x0002000000000000000000000000000000000000000000000000000000000000"
9892
+ }
9345
9893
  }
9346
9894
  ]
9347
9895
  }
@@ -9359,7 +9907,10 @@ var Phala$4 = {
9359
9907
  Parachain: 2032
9360
9908
  },
9361
9909
  {
9362
- GeneralKey: "0x0001"
9910
+ GeneralKey: {
9911
+ length: 2,
9912
+ data: "0x0001000000000000000000000000000000000000000000000000000000000000"
9913
+ }
9363
9914
  }
9364
9915
  ]
9365
9916
  }
@@ -9404,6 +9955,7 @@ var Phala$4 = {
9404
9955
  ]
9405
9956
  };
9406
9957
  var Ethereum = {
9958
+ isEVM: true,
9407
9959
  relayChainAssetSymbol: "DOT",
9408
9960
  nativeAssetSymbol: "ETH",
9409
9961
  nativeAssets: [
@@ -9671,6 +10223,7 @@ var Ethereum = {
9671
10223
  var Khala$4 = {
9672
10224
  relayChainAssetSymbol: "KSM",
9673
10225
  nativeAssetSymbol: "PHA",
10226
+ isEVM: false,
9674
10227
  nativeAssets: [
9675
10228
  {
9676
10229
  symbol: "PHA",
@@ -9701,7 +10254,10 @@ var Khala$4 = {
9701
10254
  Parachain: 2000
9702
10255
  },
9703
10256
  {
9704
- GeneralKey: "0x0080"
10257
+ GeneralKey: {
10258
+ length: 2,
10259
+ data: "0x0080000000000000000000000000000000000000000000000000000000000000"
10260
+ }
9705
10261
  }
9706
10262
  ]
9707
10263
  }
@@ -9719,7 +10275,10 @@ var Khala$4 = {
9719
10275
  Parachain: 2000
9720
10276
  },
9721
10277
  {
9722
- GeneralKey: "0x0081"
10278
+ GeneralKey: {
10279
+ length: 2,
10280
+ data: "0x0081000000000000000000000000000000000000000000000000000000000000"
10281
+ }
9723
10282
  }
9724
10283
  ]
9725
10284
  }
@@ -9737,7 +10296,10 @@ var Khala$4 = {
9737
10296
  Parachain: 2001
9738
10297
  },
9739
10298
  {
9740
- GeneralKey: "0x0001"
10299
+ GeneralKey: {
10300
+ length: 2,
10301
+ data: "0x0001000000000000000000000000000000000000000000000000000000000000"
10302
+ }
9741
10303
  }
9742
10304
  ]
9743
10305
  }
@@ -9755,7 +10317,10 @@ var Khala$4 = {
9755
10317
  Parachain: 2001
9756
10318
  },
9757
10319
  {
9758
- GeneralKey: "0x0207"
10320
+ GeneralKey: {
10321
+ length: 2,
10322
+ data: "0x0207000000000000000000000000000000000000000000000000000000000000"
10323
+ }
9759
10324
  }
9760
10325
  ]
9761
10326
  }
@@ -9817,7 +10382,10 @@ var Khala$4 = {
9817
10382
  Parachain: 2085
9818
10383
  },
9819
10384
  {
9820
- GeneralKey: "0x484b4f"
10385
+ GeneralKey: {
10386
+ length: 3,
10387
+ data: "0x484b4f0000000000000000000000000000000000000000000000000000000000"
10388
+ }
9821
10389
  }
9822
10390
  ]
9823
10391
  }
@@ -9848,7 +10416,10 @@ var Khala$4 = {
9848
10416
  Parachain: 2090
9849
10417
  },
9850
10418
  {
9851
- GeneralKey: "0x00000000"
10419
+ GeneralKey: {
10420
+ length: 4,
10421
+ data: "0x0000000000000000000000000000000000000000000000000000000000000000"
10422
+ }
9852
10423
  }
9853
10424
  ]
9854
10425
  }
@@ -9886,7 +10457,10 @@ var Khala$4 = {
9886
10457
  Parachain: 2096
9887
10458
  },
9888
10459
  {
9889
- GeneralKey: "0x000000000000000000"
10460
+ GeneralKey: {
10461
+ length: 9,
10462
+ data: "0x0000000000000000000000000000000000000000000000000000000000000000"
10463
+ }
9890
10464
  }
9891
10465
  ]
9892
10466
  }
@@ -9904,7 +10478,10 @@ var Khala$4 = {
9904
10478
  Parachain: 2096
9905
10479
  },
9906
10480
  {
9907
- GeneralKey: "0x020000000000000000"
10481
+ GeneralKey: {
10482
+ length: 9,
10483
+ data: "0x0200000000000000000000000000000000000000000000000000000000000000"
10484
+ }
9908
10485
  }
9909
10486
  ]
9910
10487
  }
@@ -9946,6 +10523,7 @@ var Khala$4 = {
9946
10523
  var Mythos$4 = {
9947
10524
  relayChainAssetSymbol: "DOT",
9948
10525
  nativeAssetSymbol: "MYTH",
10526
+ isEVM: true,
9949
10527
  nativeAssets: [
9950
10528
  {
9951
10529
  symbol: "MYTH",
@@ -9958,6 +10536,7 @@ var Mythos$4 = {
9958
10536
  var Peaq$4 = {
9959
10537
  relayChainAssetSymbol: "DOT",
9960
10538
  nativeAssetSymbol: "PEAQ",
10539
+ isEVM: false,
9961
10540
  nativeAssets: [
9962
10541
  {
9963
10542
  symbol: "PEAQ",
@@ -11767,20 +12346,14 @@ var createApiInstanceForNode$1 = function createApiInstanceForNode(api, node) {
11767
12346
  while (1) switch (_context.prev = _context.next) {
11768
12347
  case 0:
11769
12348
  if (!(node === 'Polkadot' || node === 'Kusama')) {
11770
- _context.next = 5;
12349
+ _context.next = 3;
11771
12350
  break;
11772
12351
  }
11773
12352
  wsUrl = getNodeProvider(node);
11774
- _context.next = 4;
11775
- return api.createApiInstance(wsUrl);
12353
+ return _context.abrupt("return", api.createApiInstance(wsUrl));
12354
+ case 3:
12355
+ return _context.abrupt("return", getNode(node).createApiInstance(api));
11776
12356
  case 4:
11777
- return _context.abrupt("return", _context.sent);
11778
- case 5:
11779
- _context.next = 7;
11780
- return getNode(node).createApiInstance(api);
11781
- case 7:
11782
- return _context.abrupt("return", _context.sent);
11783
- case 8:
11784
12357
  case "end":
11785
12358
  return _context.stop();
11786
12359
  }
@@ -12110,8 +12683,7 @@ var XTokensTransferImpl = /*#__PURE__*/function () {
12110
12683
  addressSelection = input.addressSelection,
12111
12684
  destination = input.destination,
12112
12685
  scenario = input.scenario,
12113
- feeAsset = input.feeAsset,
12114
- serializedApiCallEnabled = input.serializedApiCallEnabled;
12686
+ feeAsset = input.feeAsset;
12115
12687
  var isMultiLocationDestination = _typeof(destination) === 'object';
12116
12688
  if (isMultiLocationDestination) {
12117
12689
  throw new Error('Multilocation destinations are not supported for specific transfer you are trying to create. In special cases such as xTokens or xTransfer pallet try using address multilocation instead (for both destination and address in same multilocation set (eg. X2 - Parachain, Address). For further assistance please open issue in our repository.');
@@ -12128,11 +12700,6 @@ var XTokensTransferImpl = /*#__PURE__*/function () {
12128
12700
  section: section,
12129
12701
  parameters: parameters
12130
12702
  };
12131
- if (serializedApiCallEnabled === true) {
12132
- return Object.assign(Object.assign({}, call), {
12133
- parameters: Object.values(parameters)
12134
- });
12135
- }
12136
12703
  return api.callTxMethod(call);
12137
12704
  }
12138
12705
  }]);
@@ -12190,11 +12757,11 @@ var ParachainNode = /*#__PURE__*/function () {
12190
12757
  key: "transfer",
12191
12758
  value: function transfer(options) {
12192
12759
  return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
12193
- var api, asset, amount, address, destination, paraIdTo, overridedCurrencyMultiLocation, feeAsset, version, ahAddress, _options$serializedAp, serializedApiCallEnabled, scenario, paraId, versionOrDefault, isBifrostOrigin, isAssetHubDest, shouldUseMultiasset, input;
12760
+ var api, asset, amount, address, destination, paraIdTo, overridedCurrencyMultiLocation, feeAsset, version, ahAddress, scenario, paraId, versionOrDefault, isBifrostOrigin, isAssetHubDest, shouldUseMultiasset, input;
12194
12761
  return _regeneratorRuntime().wrap(function _callee$(_context) {
12195
12762
  while (1) switch (_context.prev = _context.next) {
12196
12763
  case 0:
12197
- api = options.api, asset = options.asset, amount = options.amount, address = options.address, destination = options.destination, paraIdTo = options.paraIdTo, overridedCurrencyMultiLocation = options.overridedCurrencyMultiLocation, feeAsset = options.feeAsset, version = options.version, ahAddress = options.ahAddress, _options$serializedAp = options.serializedApiCallEnabled, serializedApiCallEnabled = _options$serializedAp === void 0 ? false : _options$serializedAp;
12764
+ api = options.api, asset = options.asset, amount = options.amount, address = options.address, destination = options.destination, paraIdTo = options.paraIdTo, overridedCurrencyMultiLocation = options.overridedCurrencyMultiLocation, feeAsset = options.feeAsset, version = options.version, ahAddress = options.ahAddress;
12198
12765
  scenario = destination !== undefined ? 'ParaToPara' : 'ParaToRelay';
12199
12766
  paraId = destination !== undefined && _typeof(destination) !== 'object' && destination !== 'Ethereum' ? paraIdTo !== null && paraIdTo !== void 0 ? paraIdTo : getParaId(destination) : undefined;
12200
12767
  if (!(destination === 'Polimec' && this.node !== 'AssetHubPolkadot')) {
@@ -12222,8 +12789,7 @@ var ParachainNode = /*#__PURE__*/function () {
12222
12789
  paraIdTo: paraId,
12223
12790
  destination: destination,
12224
12791
  overridedCurrencyMultiLocation: overridedCurrencyMultiLocation,
12225
- feeAsset: feeAsset,
12226
- serializedApiCallEnabled: serializedApiCallEnabled
12792
+ feeAsset: feeAsset
12227
12793
  };
12228
12794
  if (!shouldUseMultiasset) {
12229
12795
  _context.next = 13;
@@ -12245,16 +12811,14 @@ var ParachainNode = /*#__PURE__*/function () {
12245
12811
  paraId: paraId,
12246
12812
  origin: this.node,
12247
12813
  destination: destination,
12248
- overridedCurrencyMultiLocation: overridedCurrencyMultiLocation,
12249
- serializedApiCallEnabled: serializedApiCallEnabled
12814
+ overridedCurrencyMultiLocation: overridedCurrencyMultiLocation
12250
12815
  }));
12251
12816
  case 20:
12252
12817
  if (!supportsPolkadotXCM(this)) {
12253
- _context.next = 26;
12818
+ _context.next = 24;
12254
12819
  break;
12255
12820
  }
12256
- _context.next = 23;
12257
- return this.transferPolkadotXCM({
12821
+ return _context.abrupt("return", this.transferPolkadotXCM({
12258
12822
  api: api,
12259
12823
  header: this.createPolkadotXcmHeader(scenario, versionOrDefault, destination, paraId),
12260
12824
  addressSelection: generateAddressPayload(api, scenario, 'PolkadotXcm', address, versionOrDefault, paraId),
@@ -12267,15 +12831,12 @@ var ParachainNode = /*#__PURE__*/function () {
12267
12831
  destination: destination,
12268
12832
  paraIdTo: paraId,
12269
12833
  overridedCurrency: overridedCurrencyMultiLocation,
12270
- serializedApiCallEnabled: serializedApiCallEnabled,
12271
12834
  version: version,
12272
12835
  ahAddress: ahAddress
12273
- });
12274
- case 23:
12275
- return _context.abrupt("return", _context.sent);
12276
- case 26:
12836
+ }));
12837
+ case 24:
12277
12838
  throw new NoXCMSupportImplementedError(this._node);
12278
- case 27:
12839
+ case 25:
12279
12840
  case "end":
12280
12841
  return _context.stop();
12281
12842
  }
@@ -12423,8 +12984,7 @@ var PolkadotXCMTransferImpl = /*#__PURE__*/function () {
12423
12984
  addressSelection = _ref.addressSelection,
12424
12985
  currencySelection = _ref.currencySelection,
12425
12986
  _ref$feeAsset = _ref.feeAsset,
12426
- feeAsset = _ref$feeAsset === void 0 ? DEFAULT_FEE_ASSET : _ref$feeAsset,
12427
- serializedApiCallEnabled = _ref.serializedApiCallEnabled;
12987
+ feeAsset = _ref$feeAsset === void 0 ? DEFAULT_FEE_ASSET : _ref$feeAsset;
12428
12988
  var fees = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
12429
12989
  var module = 'PolkadotXcm';
12430
12990
  var call = {
@@ -12439,12 +12999,6 @@ var PolkadotXCMTransferImpl = /*#__PURE__*/function () {
12439
12999
  weight_limit: fees
12440
13000
  } : {})
12441
13001
  };
12442
- if (serializedApiCallEnabled === true) {
12443
- // Keep compatible with old serialized call type
12444
- return Object.assign(Object.assign({}, call), {
12445
- parameters: Object.values(call.parameters)
12446
- });
12447
- }
12448
13002
  return api.callTxMethod(call);
12449
13003
  }
12450
13004
  }]);
@@ -12859,7 +13413,7 @@ var Hydration$2 = /*#__PURE__*/function (_ParachainNode) {
12859
13413
  key: "getProvider",
12860
13414
  value: function getProvider() {
12861
13415
  // Return the second WebSocket URL because the first one is sometimes unreliable.
12862
- return getNodeProviders(this.node)[1];
13416
+ return getNodeProviders(this.node)[2];
12863
13417
  }
12864
13418
  }]);
12865
13419
  }(ParachainNode);
@@ -12907,22 +13461,35 @@ var Moonbeam$2 = /*#__PURE__*/function (_ParachainNode) {
12907
13461
  }
12908
13462
  _inherits(Moonbeam, _ParachainNode);
12909
13463
  return _createClass(Moonbeam, [{
12910
- key: "getCurrencySelection",
12911
- value: function getCurrencySelection(asset) {
12912
- if (asset.symbol === this.getNativeAssetSymbol()) return 'SelfReserve';
12913
- if (!isForeignAsset(asset) || !asset.assetId) {
12914
- throw new InvalidCurrencyError("Asset ".concat(JSON.stringify(asset), " has no assetId"));
12915
- }
12916
- return {
12917
- ForeignAsset: BigInt(asset.assetId)
13464
+ key: "getJunctions",
13465
+ value: function getJunctions(asset, scenario) {
13466
+ if (scenario === 'ParaToRelay') return DOT_MULTILOCATION;
13467
+ if (asset.symbol === this.getNativeAssetSymbol()) return {
13468
+ parents: Parents.ZERO,
13469
+ interior: {
13470
+ X1: {
13471
+ PalletInstance: 10
13472
+ }
13473
+ }
12918
13474
  };
13475
+ if (!isForeignAsset(asset)) {
13476
+ throw new InvalidCurrencyError('throw new InvalidCurrencyError(`Asset ${JSON.stringify(asset)} has no assetId`)');
13477
+ }
13478
+ return asset.multiLocation;
12919
13479
  }
12920
13480
  }, {
12921
- key: "transferXTokens",
12922
- value: function transferXTokens(input) {
12923
- var asset = input.asset;
12924
- var currencySelection = this.getCurrencySelection(asset);
12925
- return XTokensTransferImpl.transferXTokens(input, currencySelection);
13481
+ key: "transferPolkadotXCM",
13482
+ value: function transferPolkadotXCM(input) {
13483
+ var asset = input.asset,
13484
+ amount = input.amount,
13485
+ scenario = input.scenario,
13486
+ _input$version = input.version,
13487
+ version = _input$version === void 0 ? this.version : _input$version,
13488
+ overridedCurrency = input.overridedCurrency;
13489
+ var multiLocation = this.getJunctions(asset, scenario);
13490
+ return Promise.resolve(PolkadotXCMTransferImpl.transferPolkadotXCM(Object.assign(Object.assign({}, input), {
13491
+ currencySelection: createCurrencySpec(amount, version, multiLocation.parents, overridedCurrency, multiLocation.interior)
13492
+ }), 'transfer_assets', 'Unlimited'));
12926
13493
  }
12927
13494
  }, {
12928
13495
  key: "transferRelayToPara",
@@ -13155,22 +13722,35 @@ var Moonriver$2 = /*#__PURE__*/function (_ParachainNode) {
13155
13722
  }
13156
13723
  _inherits(Moonriver, _ParachainNode);
13157
13724
  return _createClass(Moonriver, [{
13158
- key: "getCurrencySelection",
13159
- value: function getCurrencySelection(asset) {
13160
- if (asset.symbol === this.getNativeAssetSymbol()) return 'SelfReserve';
13161
- if (!isForeignAsset(asset) || !asset.assetId) {
13162
- throw new InvalidCurrencyError("Asset ".concat(JSON.stringify(asset), " has no assetId"));
13163
- }
13164
- return {
13165
- ForeignAsset: BigInt(asset.assetId)
13725
+ key: "getJunctions",
13726
+ value: function getJunctions(asset, scenario) {
13727
+ if (scenario === 'ParaToRelay') return DOT_MULTILOCATION;
13728
+ if (asset.symbol === this.getNativeAssetSymbol()) return {
13729
+ parents: Parents.ZERO,
13730
+ interior: {
13731
+ X1: {
13732
+ PalletInstance: 10
13733
+ }
13734
+ }
13166
13735
  };
13736
+ if (!isForeignAsset(asset)) {
13737
+ throw new InvalidCurrencyError('throw new InvalidCurrencyError(`Asset ${JSON.stringify(asset)} has no assetId`)');
13738
+ }
13739
+ return asset.multiLocation;
13167
13740
  }
13168
13741
  }, {
13169
- key: "transferXTokens",
13170
- value: function transferXTokens(input) {
13171
- var asset = input.asset;
13172
- var currencySelection = this.getCurrencySelection(asset);
13173
- return XTokensTransferImpl.transferXTokens(input, currencySelection);
13742
+ key: "transferPolkadotXCM",
13743
+ value: function transferPolkadotXCM(input) {
13744
+ var asset = input.asset,
13745
+ amount = input.amount,
13746
+ scenario = input.scenario,
13747
+ _input$version = input.version,
13748
+ version = _input$version === void 0 ? this.version : _input$version,
13749
+ overridedCurrency = input.overridedCurrency;
13750
+ var multiLocation = this.getJunctions(asset, scenario);
13751
+ return Promise.resolve(PolkadotXCMTransferImpl.transferPolkadotXCM(Object.assign(Object.assign({}, input), {
13752
+ currencySelection: createCurrencySpec(amount, version, multiLocation.parents, overridedCurrency, multiLocation.interior)
13753
+ }), 'transfer_assets', 'Unlimited'));
13174
13754
  }
13175
13755
  }, {
13176
13756
  key: "transferRelayToPara",
@@ -14193,7 +14773,6 @@ var XTransferTransferImpl = /*#__PURE__*/function () {
14193
14773
  amount = input.amount,
14194
14774
  origin = input.origin,
14195
14775
  destination = input.destination,
14196
- serializedApiCallEnabled = input.serializedApiCallEnabled,
14197
14776
  overridedCurrencyMultiLocation = input.overridedCurrencyMultiLocation;
14198
14777
  var isMultiLocationDestination = _typeof(destination) === 'object';
14199
14778
  if (isMultiLocationDestination) {
@@ -14212,11 +14791,6 @@ var XTransferTransferImpl = /*#__PURE__*/function () {
14212
14791
  dest_weight: destWeight
14213
14792
  }
14214
14793
  };
14215
- if (serializedApiCallEnabled === true) {
14216
- return Object.assign(Object.assign({}, call), {
14217
- parameters: Object.values(call.parameters)
14218
- });
14219
- }
14220
14794
  return api.callTxMethod(call);
14221
14795
  }
14222
14796
  }]);
@@ -14696,6 +15270,9 @@ var assetsMap = assetsMapJson;
14696
15270
  var getAssetsObject = function getAssetsObject(node) {
14697
15271
  return assetsMap[node];
14698
15272
  };
15273
+ var isNodeEvm = function isNodeEvm(node) {
15274
+ return assetsMap[node].isEVM;
15275
+ };
14699
15276
  /**
14700
15277
  * Retrieves the asset ID for a given symbol on a specified node.
14701
15278
  *
@@ -15049,31 +15626,6 @@ var getExistentialDeposit$1 = function getExistentialDeposit(node) {
15049
15626
  return edMap[node];
15050
15627
  };
15051
15628
 
15052
- var getBalanceNative$1 = function getBalanceNative(_a) {
15053
- return __awaiter(void 0, [_a], void 0, function (_ref) {
15054
- var address = _ref.address,
15055
- node = _ref.node,
15056
- api = _ref.api;
15057
- return /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
15058
- return _regeneratorRuntime().wrap(function _callee$(_context) {
15059
- while (1) switch (_context.prev = _context.next) {
15060
- case 0:
15061
- _context.next = 2;
15062
- return api.init(node);
15063
- case 2:
15064
- _context.next = 4;
15065
- return api.getBalanceNative(address);
15066
- case 4:
15067
- return _context.abrupt("return", _context.sent);
15068
- case 5:
15069
- case "end":
15070
- return _context.stop();
15071
- }
15072
- }, _callee);
15073
- })();
15074
- });
15075
- };
15076
-
15077
15629
  var AssetHubPolkadot = {
15078
15630
  defaultPallet: "PolkadotXcm",
15079
15631
  supportedPallets: [
@@ -15910,46 +16462,43 @@ var getBalanceForeignPolkadotXcm = function getBalanceForeignPolkadotXcm(api, no
15910
16462
  while (1) switch (_context.prev = _context.next) {
15911
16463
  case 0:
15912
16464
  if (!(node === 'Mythos')) {
15913
- _context.next = 4;
16465
+ _context.next = 2;
15914
16466
  break;
15915
16467
  }
15916
- _context.next = 3;
15917
- return api.getMythosForeignBalance(address);
15918
- case 3:
15919
- return _context.abrupt("return", _context.sent);
15920
- case 4:
16468
+ return _context.abrupt("return", api.getMythosForeignBalance(address));
16469
+ case 2:
15921
16470
  if (isForeignAsset(asset)) {
15922
- _context.next = 6;
16471
+ _context.next = 4;
15923
16472
  break;
15924
16473
  }
15925
16474
  throw new InvalidCurrencyError("Asset ".concat(JSON.stringify(asset), " is not a foreign asset"));
15926
- case 6:
16475
+ case 4:
15927
16476
  if (!(node === 'Polimec')) {
15928
- _context.next = 10;
16477
+ _context.next = 8;
15929
16478
  break;
15930
16479
  }
15931
16480
  if (!(asset.assetId === undefined)) {
15932
- _context.next = 9;
16481
+ _context.next = 7;
15933
16482
  break;
15934
16483
  }
15935
16484
  throw new InvalidCurrencyError("Asset ".concat(JSON.stringify(asset), " has no assetId"));
15936
- case 9:
16485
+ case 7:
15937
16486
  return _context.abrupt("return", api.getForeignAssetsByIdBalance(address, asset.assetId));
15938
- case 10:
16487
+ case 8:
15939
16488
  if (!(node === 'AssetHubPolkadot')) {
15940
- _context.next = 16;
16489
+ _context.next = 14;
15941
16490
  break;
15942
16491
  }
15943
16492
  if (!asset.multiLocation) {
15944
- _context.next = 15;
16493
+ _context.next = 13;
15945
16494
  break;
15946
16495
  }
15947
16496
  return _context.abrupt("return", api.getAssetHubForeignBalance(address, asset.multiLocation));
15948
- case 15:
16497
+ case 13:
15949
16498
  return _context.abrupt("return", api.getBalanceForeignAssetsAccount(address, Number(asset.assetId)));
15950
- case 16:
16499
+ case 14:
15951
16500
  return _context.abrupt("return", api.getBalanceForeignPolkadotXcm(address, asset.assetId));
15952
- case 17:
16501
+ case 15:
15953
16502
  case "end":
15954
16503
  return _context.stop();
15955
16504
  }
@@ -15989,14 +16538,14 @@ var getBalanceForeignXTokens = function getBalanceForeignXTokens(api, node, addr
15989
16538
  }));
15990
16539
  };
15991
16540
 
15992
- var getBalanceForeign$1 = function getBalanceForeign(_a) {
16541
+ var getBalanceForeignInternal = function getBalanceForeignInternal(_a) {
15993
16542
  return __awaiter(void 0, [_a], void 0, function (_ref) {
15994
16543
  var address = _ref.address,
15995
16544
  node = _ref.node,
15996
16545
  currency = _ref.currency,
15997
16546
  api = _ref.api;
15998
16547
  return /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
15999
- var _b, asset;
16548
+ var _b, asset, defaultPallet;
16000
16549
  return _regeneratorRuntime().wrap(function _callee$(_context) {
16001
16550
  while (1) switch (_context.prev = _context.next) {
16002
16551
  case 0:
@@ -16010,26 +16559,81 @@ var getBalanceForeign$1 = function getBalanceForeign(_a) {
16010
16559
  }
16011
16560
  throw new InvalidCurrencyError("Asset ".concat(JSON.stringify(currency), " not found on ").concat(node));
16012
16561
  case 5:
16013
- if (!(getDefaultPallet(node) === 'XTokens')) {
16014
- _context.next = 11;
16562
+ defaultPallet = getDefaultPallet(node);
16563
+ if (!(defaultPallet === 'XTokens')) {
16564
+ _context.next = 10;
16015
16565
  break;
16016
16566
  }
16017
- _context.next = 8;
16018
- return getBalanceForeignXTokens(api, node, address, asset);
16019
- case 8:
16020
- return _context.abrupt("return", _context.sent);
16021
- case 11:
16022
- if (!(getDefaultPallet(node) === 'PolkadotXcm')) {
16023
- _context.next = 15;
16567
+ return _context.abrupt("return", getBalanceForeignXTokens(api, node, address, asset));
16568
+ case 10:
16569
+ if (!(defaultPallet === 'PolkadotXcm')) {
16570
+ _context.next = 12;
16024
16571
  break;
16025
16572
  }
16026
- _context.next = 14;
16027
- return getBalanceForeignPolkadotXcm(api, node, address, asset);
16028
- case 14:
16029
- return _context.abrupt("return", _context.sent);
16030
- case 15:
16573
+ return _context.abrupt("return", getBalanceForeignPolkadotXcm(api, node, address, asset));
16574
+ case 12:
16031
16575
  throw new Error('Unsupported pallet');
16032
- case 16:
16576
+ case 13:
16577
+ case "end":
16578
+ return _context.stop();
16579
+ }
16580
+ }, _callee);
16581
+ })();
16582
+ });
16583
+ };
16584
+ var getBalanceForeign$1 = function getBalanceForeign(options) {
16585
+ return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
16586
+ var api;
16587
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
16588
+ while (1) switch (_context2.prev = _context2.next) {
16589
+ case 0:
16590
+ api = options.api;
16591
+ _context2.prev = 1;
16592
+ _context2.next = 4;
16593
+ return getBalanceForeignInternal(options);
16594
+ case 4:
16595
+ return _context2.abrupt("return", _context2.sent);
16596
+ case 5:
16597
+ _context2.prev = 5;
16598
+ _context2.next = 8;
16599
+ return api.disconnect();
16600
+ case 8:
16601
+ return _context2.finish(5);
16602
+ case 9:
16603
+ case "end":
16604
+ return _context2.stop();
16605
+ }
16606
+ }, _callee2, null, [[1,, 5, 9]]);
16607
+ }));
16608
+ };
16609
+
16610
+ var getBalanceNativeInternal = function getBalanceNativeInternal(_a) {
16611
+ return __awaiter(void 0, [_a], void 0, function (_ref) {
16612
+ var address = _ref.address,
16613
+ node = _ref.node,
16614
+ api = _ref.api;
16615
+ return /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
16616
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
16617
+ while (1) switch (_context.prev = _context.next) {
16618
+ case 0:
16619
+ _context.next = 2;
16620
+ return api.init(node);
16621
+ case 2:
16622
+ if (!(node === 'Interlay')) {
16623
+ _context.next = 4;
16624
+ break;
16625
+ }
16626
+ return _context.abrupt("return", getBalanceForeignInternal({
16627
+ address: address,
16628
+ node: node,
16629
+ api: api,
16630
+ currency: {
16631
+ symbol: getAssetsObject(node).nativeAssetSymbol
16632
+ }
16633
+ }));
16634
+ case 4:
16635
+ return _context.abrupt("return", api.getBalanceNative(address));
16636
+ case 5:
16033
16637
  case "end":
16034
16638
  return _context.stop();
16035
16639
  }
@@ -16037,8 +16641,33 @@ var getBalanceForeign$1 = function getBalanceForeign(_a) {
16037
16641
  })();
16038
16642
  });
16039
16643
  };
16644
+ var getBalanceNative$1 = function getBalanceNative(options) {
16645
+ return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
16646
+ var api;
16647
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
16648
+ while (1) switch (_context2.prev = _context2.next) {
16649
+ case 0:
16650
+ api = options.api;
16651
+ _context2.prev = 1;
16652
+ _context2.next = 4;
16653
+ return getBalanceNativeInternal(options);
16654
+ case 4:
16655
+ return _context2.abrupt("return", _context2.sent);
16656
+ case 5:
16657
+ _context2.prev = 5;
16658
+ _context2.next = 8;
16659
+ return api.disconnect();
16660
+ case 8:
16661
+ return _context2.finish(5);
16662
+ case 9:
16663
+ case "end":
16664
+ return _context2.stop();
16665
+ }
16666
+ }, _callee2, null, [[1,, 5, 9]]);
16667
+ }));
16668
+ };
16040
16669
 
16041
- var getAssetBalance$1 = function getAssetBalance(_a) {
16670
+ var getAssetBalanceInternal = function getAssetBalanceInternal(_a) {
16042
16671
  return __awaiter(void 0, [_a], void 0, function (_ref) {
16043
16672
  var address = _ref.address,
16044
16673
  node = _ref.node,
@@ -16053,12 +16682,12 @@ var getAssetBalance$1 = function getAssetBalance(_a) {
16053
16682
  return api.init(node);
16054
16683
  case 2:
16055
16684
  isNativeSymbol = 'symbol' in currency ? getNativeAssetSymbol(node) === currency.symbol : false;
16056
- if (!isNativeSymbol) {
16685
+ if (!(isNativeSymbol && node !== 'Interlay')) {
16057
16686
  _context.next = 9;
16058
16687
  break;
16059
16688
  }
16060
16689
  _context.next = 6;
16061
- return getBalanceNative$1({
16690
+ return getBalanceNativeInternal({
16062
16691
  address: address,
16063
16692
  node: node,
16064
16693
  api: api
@@ -16069,7 +16698,7 @@ var getAssetBalance$1 = function getAssetBalance(_a) {
16069
16698
  break;
16070
16699
  case 9:
16071
16700
  _context.next = 11;
16072
- return getBalanceForeign$1({
16701
+ return getBalanceForeignInternal({
16073
16702
  address: address,
16074
16703
  node: node,
16075
16704
  api: api,
@@ -16105,6 +16734,31 @@ var getAssetBalance$1 = function getAssetBalance(_a) {
16105
16734
  })();
16106
16735
  });
16107
16736
  };
16737
+ var getAssetBalance$1 = function getAssetBalance(options) {
16738
+ return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
16739
+ var api;
16740
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
16741
+ while (1) switch (_context2.prev = _context2.next) {
16742
+ case 0:
16743
+ api = options.api;
16744
+ _context2.prev = 1;
16745
+ _context2.next = 4;
16746
+ return getAssetBalanceInternal(options);
16747
+ case 4:
16748
+ return _context2.abrupt("return", _context2.sent);
16749
+ case 5:
16750
+ _context2.prev = 5;
16751
+ _context2.next = 8;
16752
+ return api.disconnect();
16753
+ case 8:
16754
+ return _context2.finish(5);
16755
+ case 9:
16756
+ case "end":
16757
+ return _context2.stop();
16758
+ }
16759
+ }, _callee2, null, [[1,, 5, 9]]);
16760
+ }));
16761
+ };
16108
16762
 
16109
16763
  var palletsMap = edsMapJson;
16110
16764
  var getExistentialDeposit = function getExistentialDeposit(node) {
@@ -16123,7 +16777,7 @@ var getMaxNativeTransferableAmount = function getMaxNativeTransferableAmount(api
16123
16777
  case 0:
16124
16778
  ed = getExistentialDeposit(node);
16125
16779
  _context.next = 3;
16126
- return getBalanceNative$1({
16780
+ return getBalanceNativeInternal({
16127
16781
  address: address,
16128
16782
  node: node,
16129
16783
  api: api
@@ -16242,42 +16896,14 @@ var RelayToParaBuilder = /*#__PURE__*/function () {
16242
16896
  while (1) switch (_context.prev = _context.next) {
16243
16897
  case 0:
16244
16898
  options = this.buildOptions();
16245
- _context.next = 3;
16246
- return transferRelayToPara$1(options);
16247
- case 3:
16248
- return _context.abrupt("return", _context.sent);
16249
- case 4:
16899
+ return _context.abrupt("return", transferRelayToPara$1(options));
16900
+ case 2:
16250
16901
  case "end":
16251
16902
  return _context.stop();
16252
16903
  }
16253
16904
  }, _callee, this);
16254
16905
  }));
16255
16906
  }
16256
- /**
16257
- * Builds and returns a serialized API call for the transfer.
16258
- *
16259
- * @returns A Promise that resolves to the serialized API call.
16260
- */
16261
- }, {
16262
- key: "buildSerializedApiCall",
16263
- value: function buildSerializedApiCall() {
16264
- return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
16265
- var options;
16266
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
16267
- while (1) switch (_context2.prev = _context2.next) {
16268
- case 0:
16269
- options = this.buildOptions();
16270
- _context2.next = 3;
16271
- return transferRelayToParaSerializedApiCall$1(options);
16272
- case 3:
16273
- return _context2.abrupt("return", _context2.sent);
16274
- case 4:
16275
- case "end":
16276
- return _context2.stop();
16277
- }
16278
- }, _callee2, this);
16279
- }));
16280
- }
16281
16907
  }], [{
16282
16908
  key: "create",
16283
16909
  value: function create(api, to, batchManager, paraIdTo) {
@@ -16423,28 +17049,6 @@ var ParaToParaBuilder = /*#__PURE__*/function () {
16423
17049
  }, _callee, this);
16424
17050
  }));
16425
17051
  }
16426
- /**
16427
- * Builds and returns a serialized API call for the transfer.
16428
- *
16429
- * @returns A Promise that resolves to the serialized API call.
16430
- */
16431
- }, {
16432
- key: "buildSerializedApiCall",
16433
- value: function buildSerializedApiCall() {
16434
- return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
16435
- var options;
16436
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
16437
- while (1) switch (_context2.prev = _context2.next) {
16438
- case 0:
16439
- options = this.buildOptions();
16440
- return _context2.abrupt("return", sendSerializedApiCall$1(options));
16441
- case 2:
16442
- case "end":
16443
- return _context2.stop();
16444
- }
16445
- }, _callee2, this);
16446
- }));
16447
- }
16448
17052
  }], [{
16449
17053
  key: "createParaToPara",
16450
17054
  value: function createParaToPara(api, from, to, currency, batchManager, paraIdTo) {
@@ -16520,37 +17124,14 @@ var ParaToRelayBuilder = /*#__PURE__*/function () {
16520
17124
  while (1) switch (_context.prev = _context.next) {
16521
17125
  case 0:
16522
17126
  options = this.buildOptions();
16523
- _context.next = 3;
16524
- return send$1(options);
16525
- case 3:
16526
- return _context.abrupt("return", _context.sent);
16527
- case 4:
17127
+ return _context.abrupt("return", send$1(options));
17128
+ case 2:
16528
17129
  case "end":
16529
17130
  return _context.stop();
16530
17131
  }
16531
17132
  }, _callee, this);
16532
17133
  }));
16533
17134
  }
16534
- }, {
16535
- key: "buildSerializedApiCall",
16536
- value: function buildSerializedApiCall() {
16537
- return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
16538
- var options;
16539
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
16540
- while (1) switch (_context2.prev = _context2.next) {
16541
- case 0:
16542
- options = this.buildOptions();
16543
- _context2.next = 3;
16544
- return sendSerializedApiCall$1(options);
16545
- case 3:
16546
- return _context2.abrupt("return", _context2.sent);
16547
- case 4:
16548
- case "end":
16549
- return _context2.stop();
16550
- }
16551
- }, _callee2, this);
16552
- }));
16553
- }
16554
17135
  }], [{
16555
17136
  key: "create",
16556
17137
  value: function create(api, from, amount, batchManager, feeAsset) {
@@ -16559,6 +17140,10 @@ var ParaToRelayBuilder = /*#__PURE__*/function () {
16559
17140
  }]);
16560
17141
  }();
16561
17142
 
17143
+ var isPjsClient = function isPjsClient(api) {
17144
+ return _typeof(api) === 'object' && api !== null && 'disconnect' in api && typeof api.disconnect === 'function';
17145
+ };
17146
+
16562
17147
  var buildBeneficiaryInput = function buildBeneficiaryInput(api, address) {
16563
17148
  if (isTMultiLocation(address)) {
16564
17149
  return address;
@@ -16594,14 +17179,15 @@ var buildClaimAssetsInput = function buildClaimAssetsInput(_ref) {
16594
17179
 
16595
17180
  var claimAssets$1 = function claimAssets(options) {
16596
17181
  return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
16597
- var api, node, serializedApiCallEnabled, args, module, call;
17182
+ var api, node, args, module, call;
16598
17183
  return _regeneratorRuntime().wrap(function _callee$(_context) {
16599
17184
  while (1) switch (_context.prev = _context.next) {
16600
17185
  case 0:
16601
- api = options.api, node = options.node, serializedApiCallEnabled = options.serializedApiCallEnabled;
17186
+ api = options.api, node = options.node;
16602
17187
  _context.next = 3;
16603
17188
  return api.init(node);
16604
17189
  case 3:
17190
+ _context.prev = 3;
16605
17191
  args = buildClaimAssetsInput(options);
16606
17192
  module = isRelayChain(node) ? 'XcmPallet' : 'PolkadotXcm';
16607
17193
  call = {
@@ -16609,21 +17195,22 @@ var claimAssets$1 = function claimAssets(options) {
16609
17195
  section: 'claim_assets',
16610
17196
  parameters: args
16611
17197
  };
16612
- if (!(serializedApiCallEnabled === true)) {
16613
- _context.next = 8;
17198
+ return _context.abrupt("return", api.callTxMethod(call));
17199
+ case 8:
17200
+ _context.prev = 8;
17201
+ if (!isPjsClient(api)) {
17202
+ _context.next = 12;
16614
17203
  break;
16615
17204
  }
16616
- return _context.abrupt("return", Object.assign(Object.assign({}, call), {
16617
- // Keep compatible with the old SerializedCall type
16618
- parameters: Object.values(args)
16619
- }));
16620
- case 8:
16621
- return _context.abrupt("return", api.callTxMethod(call));
16622
- case 9:
17205
+ _context.next = 12;
17206
+ return api.disconnect();
17207
+ case 12:
17208
+ return _context.finish(8);
17209
+ case 13:
16623
17210
  case "end":
16624
17211
  return _context.stop();
16625
17212
  }
16626
- }, _callee);
17213
+ }, _callee, null, [[3,, 8, 13]]);
16627
17214
  }));
16628
17215
  };
16629
17216
 
@@ -16709,30 +17296,6 @@ var AssetClaimBuilder = /*#__PURE__*/function () {
16709
17296
  }, _callee, this);
16710
17297
  }));
16711
17298
  }
16712
- /**
16713
- * Builds and returns a serialized API call for the asset claim.
16714
- *
16715
- * @returns A Promise that resolves to the serialized API call.
16716
- */
16717
- }, {
16718
- key: "buildSerializedApiCall",
16719
- value: function buildSerializedApiCall() {
16720
- return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
16721
- var options;
16722
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
16723
- while (1) switch (_context2.prev = _context2.next) {
16724
- case 0:
16725
- options = this.buildOptions();
16726
- return _context2.abrupt("return", claimAssets$1(Object.assign(Object.assign({}, options), {
16727
- serializedApiCallEnabled: true
16728
- })));
16729
- case 2:
16730
- case "end":
16731
- return _context2.stop();
16732
- }
16733
- }, _callee2, this);
16734
- }));
16735
- }
16736
17299
  }], [{
16737
17300
  key: "create",
16738
17301
  value: function create(api, node) {
@@ -17001,8 +17564,7 @@ var createContext = function createContext(executionUrl, config) {
17001
17564
  return _regeneratorRuntime().wrap(function _callee$(_context) {
17002
17565
  while (1) switch (_context.prev = _context.next) {
17003
17566
  case 0:
17004
- _context.next = 2;
17005
- return contextFactory({
17567
+ return _context.abrupt("return", contextFactory({
17006
17568
  ethereum: {
17007
17569
  execution_url: executionUrl,
17008
17570
  beacon_url: config.BEACON_HTTP_API
@@ -17019,10 +17581,8 @@ var createContext = function createContext(executionUrl, config) {
17019
17581
  gateway: config.GATEWAY_CONTRACT,
17020
17582
  beefy: config.BEEFY_CONTRACT
17021
17583
  }
17022
- });
17023
- case 2:
17024
- return _context.abrupt("return", _context.sent);
17025
- case 3:
17584
+ }));
17585
+ case 1:
17026
17586
  case "end":
17027
17587
  return _context.stop();
17028
17588
  }
@@ -17210,41 +17770,32 @@ var EvmBuilder = function EvmBuilder(provider) {
17210
17770
  return new EvmBuilderClass(provider);
17211
17771
  };
17212
17772
 
17213
- var createTx$1 = function createTx(originApi, address, amount, currency, originNode, destNode) {
17773
+ var createTx$1 = function createTx(api, address, amount, currency, originNode, destNode) {
17214
17774
  return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
17215
17775
  return _regeneratorRuntime().wrap(function _callee$(_context) {
17216
17776
  while (1) switch (_context.prev = _context.next) {
17217
17777
  case 0:
17218
17778
  if (!isRelayChain(originNode)) {
17219
- _context.next = 6;
17779
+ _context.next = 4;
17220
17780
  break;
17221
17781
  }
17222
- _context.next = 3;
17223
- return Builder$1(originApi).to(destNode).amount(amount).address(address).build();
17224
- case 3:
17225
- return _context.abrupt("return", _context.sent);
17226
- case 6:
17782
+ return _context.abrupt("return", Builder$1(api).to(destNode).amount(amount).address(address).build());
17783
+ case 4:
17227
17784
  if (!isRelayChain(destNode)) {
17228
- _context.next = 12;
17785
+ _context.next = 8;
17229
17786
  break;
17230
17787
  }
17231
- _context.next = 9;
17232
- return Builder$1(originApi).from(originNode).amount(amount).address(address).build();
17788
+ return _context.abrupt("return", Builder$1(api).from(originNode).amount(amount).address(address).build());
17789
+ case 8:
17790
+ return _context.abrupt("return", Builder$1(api).from(originNode).to(destNode).currency(currency).amount(amount).address(address).build());
17233
17791
  case 9:
17234
- return _context.abrupt("return", _context.sent);
17235
- case 12:
17236
- _context.next = 14;
17237
- return Builder$1(originApi).from(originNode).to(destNode).currency(currency).amount(amount).address(address).build();
17238
- case 14:
17239
- return _context.abrupt("return", _context.sent);
17240
- case 15:
17241
17792
  case "end":
17242
17793
  return _context.stop();
17243
17794
  }
17244
17795
  }, _callee);
17245
17796
  }));
17246
17797
  };
17247
- var getOriginFeeDetails$1 = function getOriginFeeDetails(_a) {
17798
+ var getOriginFeeDetailsInternal = function getOriginFeeDetailsInternal(_a) {
17248
17799
  return __awaiter(void 0, [_a], void 0, function (_ref) {
17249
17800
  var api = _ref.api,
17250
17801
  account = _ref.account,
@@ -17256,34 +17807,37 @@ var getOriginFeeDetails$1 = function getOriginFeeDetails(_a) {
17256
17807
  _ref$feeMarginPercent = _ref.feeMarginPercentage,
17257
17808
  feeMarginPercentage = _ref$feeMarginPercent === void 0 ? 10 : _ref$feeMarginPercent;
17258
17809
  return /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
17259
- var nativeBalance, minTransferableAmount, tx, xcmFee, xcmFeeWithMargin, sufficientForXCM;
17810
+ var tx, xcmFee, xcmFeeWithMargin, nativeBalance, minTransferableAmount, sufficientForXCM;
17260
17811
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
17261
17812
  while (1) switch (_context2.prev = _context2.next) {
17262
17813
  case 0:
17263
17814
  _context2.next = 2;
17264
- return getBalanceNative$1({
17265
- address: account,
17266
- node: origin,
17267
- api: api
17268
- });
17815
+ return api.init(origin);
17269
17816
  case 2:
17270
- nativeBalance = _context2.sent;
17271
- minTransferableAmount = getMinNativeTransferableAmount(origin);
17272
- _context2.next = 6;
17817
+ _context2.next = 4;
17273
17818
  return createTx$1(api, accountDestination, amount, currency, origin, destination);
17274
- case 6:
17819
+ case 4:
17275
17820
  tx = _context2.sent;
17276
- _context2.next = 9;
17821
+ _context2.next = 7;
17277
17822
  return api.calculateTransactionFee(tx, account);
17278
- case 9:
17823
+ case 7:
17279
17824
  xcmFee = _context2.sent;
17280
17825
  xcmFeeWithMargin = xcmFee + xcmFee / BigInt(feeMarginPercentage);
17826
+ _context2.next = 11;
17827
+ return getBalanceNativeInternal({
17828
+ address: account,
17829
+ node: origin,
17830
+ api: api
17831
+ });
17832
+ case 11:
17833
+ nativeBalance = _context2.sent;
17834
+ minTransferableAmount = getMinNativeTransferableAmount(origin);
17281
17835
  sufficientForXCM = nativeBalance - minTransferableAmount - xcmFeeWithMargin > 0;
17282
17836
  return _context2.abrupt("return", {
17283
17837
  sufficientForXCM: sufficientForXCM,
17284
17838
  xcmFee: xcmFee
17285
17839
  });
17286
- case 13:
17840
+ case 15:
17287
17841
  case "end":
17288
17842
  return _context2.stop();
17289
17843
  }
@@ -17291,6 +17845,33 @@ var getOriginFeeDetails$1 = function getOriginFeeDetails(_a) {
17291
17845
  })();
17292
17846
  });
17293
17847
  };
17848
+ var getOriginFeeDetails$1 = function getOriginFeeDetails(options) {
17849
+ return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
17850
+ var api;
17851
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
17852
+ while (1) switch (_context3.prev = _context3.next) {
17853
+ case 0:
17854
+ api = options.api;
17855
+ api.setDisconnectAllowed(false);
17856
+ _context3.prev = 2;
17857
+ _context3.next = 5;
17858
+ return getOriginFeeDetailsInternal(options);
17859
+ case 5:
17860
+ return _context3.abrupt("return", _context3.sent);
17861
+ case 6:
17862
+ _context3.prev = 6;
17863
+ api.setDisconnectAllowed(true);
17864
+ _context3.next = 10;
17865
+ return api.disconnect();
17866
+ case 10:
17867
+ return _context3.finish(6);
17868
+ case 11:
17869
+ case "end":
17870
+ return _context3.stop();
17871
+ }
17872
+ }, _callee3, null, [[2,, 6, 11]]);
17873
+ }));
17874
+ };
17294
17875
 
17295
17876
  var getTransferInfo$1 = function getTransferInfo(_a) {
17296
17877
  return __awaiter(void 0, [_a], void 0, function (_ref) {
@@ -17300,77 +17881,72 @@ var getTransferInfo$1 = function getTransferInfo(_a) {
17300
17881
  accountDestination = _ref.accountDestination,
17301
17882
  currency = _ref.currency,
17302
17883
  amount = _ref.amount,
17303
- originApi = _ref.api;
17884
+ api = _ref.api;
17304
17885
  return /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
17305
17886
  var _b, _c, _d, originBalance, xcmFeeDetails, expectedBalanceAfterXCMDelivery, asset;
17306
17887
  return _regeneratorRuntime().wrap(function _callee$(_context) {
17307
17888
  while (1) switch (_context.prev = _context.next) {
17308
17889
  case 0:
17309
17890
  _context.next = 2;
17310
- return originApi.init(origin);
17891
+ return api.init(origin);
17311
17892
  case 2:
17312
- _context.next = 4;
17313
- return getBalanceNative$1({
17893
+ api.setDisconnectAllowed(false);
17894
+ _context.prev = 3;
17895
+ _context.next = 6;
17896
+ return getBalanceNativeInternal({
17314
17897
  address: accountOrigin,
17315
17898
  node: origin,
17316
- api: originApi
17899
+ api: api
17317
17900
  });
17318
- case 4:
17901
+ case 6:
17319
17902
  originBalance = _context.sent;
17320
- _context.next = 7;
17321
- return getOriginFeeDetails$1({
17903
+ _context.next = 9;
17904
+ return getOriginFeeDetailsInternal({
17322
17905
  origin: origin,
17323
17906
  destination: destination,
17324
17907
  currency: currency,
17325
17908
  amount: amount,
17326
17909
  account: accountOrigin,
17327
17910
  accountDestination: accountDestination,
17328
- api: originApi
17911
+ api: api
17329
17912
  });
17330
- case 7:
17913
+ case 9:
17331
17914
  xcmFeeDetails = _context.sent;
17332
17915
  expectedBalanceAfterXCMDelivery = originBalance - xcmFeeDetails.xcmFee;
17333
17916
  asset = (_b = getAssetBySymbolOrId(origin, currency, destination)) !== null && _b !== void 0 ? _b : origin === 'AssetHubPolkadot' ? getAssetBySymbolOrId('Ethereum', currency, null) : null;
17334
17917
  if (asset) {
17335
- _context.next = 12;
17918
+ _context.next = 14;
17336
17919
  break;
17337
17920
  }
17338
17921
  throw new InvalidCurrencyError("Asset ".concat(JSON.stringify(currency), " not found on ").concat(origin));
17339
- case 12:
17922
+ case 14:
17340
17923
  _context.t0 = {
17341
17924
  origin: origin,
17342
17925
  destination: destination,
17343
17926
  ecosystem: determineRelayChainSymbol(origin)
17344
17927
  };
17345
- _context.next = 15;
17346
- return getAssetBalance$1({
17347
- api: originApi,
17928
+ _context.next = 17;
17929
+ return getAssetBalanceInternal({
17930
+ api: api,
17348
17931
  address: accountOrigin,
17349
17932
  node: origin,
17350
17933
  currency: currency
17351
17934
  });
17352
- case 15:
17935
+ case 17:
17353
17936
  _context.t1 = _context.sent;
17354
17937
  _context.t2 = (_c = asset === null || asset === void 0 ? void 0 : asset.symbol) !== null && _c !== void 0 ? _c : '';
17355
17938
  _context.t3 = {
17356
17939
  balance: _context.t1,
17357
17940
  currency: _context.t2
17358
17941
  };
17359
- _context.next = 20;
17360
- return getBalanceNative$1({
17361
- address: accountOrigin,
17362
- node: origin,
17363
- api: originApi
17364
- });
17365
- case 20:
17366
- _context.t4 = _context.sent;
17942
+ _context.t4 = originBalance;
17367
17943
  _context.t5 = expectedBalanceAfterXCMDelivery;
17368
17944
  _context.t6 = xcmFeeDetails;
17369
17945
  _context.t7 = BigInt((_d = getExistentialDeposit(origin)) !== null && _d !== void 0 ? _d : 0);
17370
17946
  _context.t8 = getNativeAssetSymbol(origin);
17371
17947
  _context.t9 = getMinNativeTransferableAmount(origin);
17372
17948
  _context.next = 28;
17373
- return getMaxNativeTransferableAmount(originApi, accountOrigin, origin);
17949
+ return getMaxNativeTransferableAmount(api, accountOrigin, origin);
17374
17950
  case 28:
17375
17951
  _context.t10 = _context.sent;
17376
17952
  _context.t11 = {
@@ -17383,10 +17959,10 @@ var getTransferInfo$1 = function getTransferInfo(_a) {
17383
17959
  maxNativeTransferableAmount: _context.t10
17384
17960
  };
17385
17961
  _context.next = 32;
17386
- return getBalanceNative$1({
17962
+ return getBalanceNativeInternal({
17387
17963
  address: accountDestination,
17388
17964
  node: destination,
17389
- api: originApi
17965
+ api: api
17390
17966
  });
17391
17967
  case 32:
17392
17968
  _context.t12 = _context.sent;
@@ -17404,10 +17980,17 @@ var getTransferInfo$1 = function getTransferInfo(_a) {
17404
17980
  destinationFeeBalance: _context.t15
17405
17981
  });
17406
17982
  case 37:
17983
+ _context.prev = 37;
17984
+ api.setDisconnectAllowed(true);
17985
+ _context.next = 41;
17986
+ return api.disconnect();
17987
+ case 41:
17988
+ return _context.finish(37);
17989
+ case 42:
17407
17990
  case "end":
17408
17991
  return _context.stop();
17409
17992
  }
17410
- }, _callee);
17993
+ }, _callee, null, [[3,, 37, 42]]);
17411
17994
  })();
17412
17995
  });
17413
17996
  };
@@ -17495,36 +18078,27 @@ var createTx = function createTx(originApi, destApi, address, amount, currencySy
17495
18078
  while (1) switch (_context.prev = _context.next) {
17496
18079
  case 0:
17497
18080
  if (!(originNode !== undefined && destNode !== undefined)) {
17498
- _context.next = 4;
18081
+ _context.next = 2;
17499
18082
  break;
17500
18083
  }
17501
- _context.next = 3;
17502
- return Builder$1(destApi).from(destNode).to(originNode).currency({
18084
+ return _context.abrupt("return", Builder$1(destApi).from(destNode).to(originNode).currency({
17503
18085
  symbol: currencySymbol
17504
- }).amount(amount).address(address).build();
17505
- case 3:
17506
- return _context.abrupt("return", _context.sent);
17507
- case 4:
18086
+ }).amount(amount).address(address).build());
18087
+ case 2:
17508
18088
  if (!(originNode === undefined && destNode !== undefined)) {
17509
- _context.next = 10;
18089
+ _context.next = 6;
17510
18090
  break;
17511
18091
  }
17512
- _context.next = 7;
17513
- return Builder$1(originApi).to(destNode).amount(amount).address(address).build();
17514
- case 7:
17515
- return _context.abrupt("return", _context.sent);
17516
- case 10:
18092
+ return _context.abrupt("return", Builder$1(originApi).to(destNode).amount(amount).address(address).build());
18093
+ case 6:
17517
18094
  if (!(originNode !== undefined && destNode === undefined)) {
17518
- _context.next = 16;
18095
+ _context.next = 10;
17519
18096
  break;
17520
18097
  }
17521
- _context.next = 13;
17522
- return Builder$1(destApi).to(originNode).amount(amount).address(address).build();
17523
- case 13:
17524
- return _context.abrupt("return", _context.sent);
17525
- case 16:
18098
+ return _context.abrupt("return", Builder$1(destApi).to(originNode).amount(amount).address(address).build());
18099
+ case 10:
17526
18100
  return _context.abrupt("return", null);
17527
- case 17:
18101
+ case 11:
17528
18102
  case "end":
17529
18103
  return _context.stop();
17530
18104
  }
@@ -17542,7 +18116,7 @@ var checkKeepAlive = function checkKeepAlive(_a) {
17542
18116
  asset = _ref.asset,
17543
18117
  destNode = _ref.destNode;
17544
18118
  return /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
17545
- var balance, balanceOrigin, amountBN, ed, edOrigin, tx, xcmFee, increasedFee, amountBNWithoutFee, amountOriginBNWithoutFee;
18119
+ var balance, balanceOrigin, amountBN, ed, edOrigin, oldDisconnectAllowed, tx, xcmFee, increasedFee, amountBNWithoutFee, amountOriginBNWithoutFee;
17546
18120
  return _regeneratorRuntime().wrap(function _callee$(_context) {
17547
18121
  while (1) switch (_context.prev = _context.next) {
17548
18122
  case 0:
@@ -17575,47 +18149,50 @@ var checkKeepAlive = function checkKeepAlive(_a) {
17575
18149
  amountBN = BigInt(amount);
17576
18150
  ed = getExistentialDeposit$1(destNode !== null && destNode !== void 0 ? destNode : determineRelayChain(originNode));
17577
18151
  edOrigin = getExistentialDeposit$1(originNode !== null && originNode !== void 0 ? originNode : determineRelayChain(destNode));
17578
- _context.next = 17;
18152
+ oldDisconnectAllowed = originApi.getDisconnectAllowed();
18153
+ originApi.setDisconnectAllowed(false);
18154
+ _context.next = 19;
17579
18155
  return createTx(originApi, destApi, address, amount, asset.symbol, originNode, destNode);
17580
- case 17:
18156
+ case 19:
17581
18157
  tx = _context.sent;
18158
+ originApi.setDisconnectAllowed(oldDisconnectAllowed);
17582
18159
  if (!(tx === null)) {
17583
- _context.next = 20;
18160
+ _context.next = 23;
17584
18161
  break;
17585
18162
  }
17586
18163
  throw new KeepAliveError('Transaction for XCM fee calculation could not be created.');
17587
- case 20:
17588
- _context.next = 22;
18164
+ case 23:
18165
+ _context.next = 25;
17589
18166
  return originApi.calculateTransactionFee(tx, address);
17590
- case 22:
18167
+ case 25:
17591
18168
  xcmFee = _context.sent;
17592
18169
  if (!(ed === null)) {
17593
- _context.next = 25;
18170
+ _context.next = 28;
17594
18171
  break;
17595
18172
  }
17596
18173
  throw new KeepAliveError('Existential deposit not found for destination parachain.');
17597
- case 25:
18174
+ case 28:
17598
18175
  if (!(edOrigin === null)) {
17599
- _context.next = 27;
18176
+ _context.next = 30;
17600
18177
  break;
17601
18178
  }
17602
18179
  throw new KeepAliveError('Existential deposit not found for origin parachain.');
17603
- case 27:
18180
+ case 30:
17604
18181
  increasedFee = xcmFee + xcmFee / BigInt(2);
17605
18182
  amountBNWithoutFee = amountBN - increasedFee;
17606
18183
  if (!(balance + amountBNWithoutFee < BigInt(ed))) {
17607
- _context.next = 31;
18184
+ _context.next = 34;
17608
18185
  break;
17609
18186
  }
17610
18187
  throw new KeepAliveError("Keep alive check failed: Sending ".concat(amount, " ").concat(asset.symbol, " to ").concat(destNode, " would result in an account balance below the required existential deposit.\n Please increase the amount to meet the minimum balance requirement of the destination chain."));
17611
- case 31:
18188
+ case 34:
17612
18189
  amountOriginBNWithoutFee = amountBN - (xcmFee + xcmFee / BigInt(2));
17613
18190
  if (!((asset.symbol === 'DOT' || asset.symbol === 'KSM') && balanceOrigin - amountOriginBNWithoutFee > BigInt(edOrigin))) {
17614
- _context.next = 34;
18191
+ _context.next = 37;
17615
18192
  break;
17616
18193
  }
17617
18194
  throw new KeepAliveError("Keep alive check failed: Sending ".concat(amount, " ").concat(asset.symbol, " to ").concat(destNode, " would result in an account balance below the required existential deposit on origin.\n Please decrease the amount to meet the minimum balance requirement of the origin chain."));
17618
- case 34:
18195
+ case 37:
17619
18196
  case "end":
17620
18197
  return _context.stop();
17621
18198
  }
@@ -17624,337 +18201,306 @@ var checkKeepAlive = function checkKeepAlive(_a) {
17624
18201
  });
17625
18202
  };
17626
18203
 
17627
- var sendCommon = function sendCommon(options_1) {
17628
- for (var _len = arguments.length, args_1 = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
17629
- args_1[_key - 1] = arguments[_key];
18204
+ var validateDestinationAddress = function validateDestinationAddress(address, destination) {
18205
+ if (typeof address === 'string' && destination && !isTMultiLocation(destination)) {
18206
+ var isDestinationEvm = isNodeEvm(destination);
18207
+ var isEthereumAddress = ethers.isAddress(address);
18208
+ if (isDestinationEvm) {
18209
+ if (!isEthereumAddress) {
18210
+ throw new InvalidAddressError('Destination node is an EVM chain, but the address provided is not a valid Ethereum address.');
18211
+ }
18212
+ } else {
18213
+ if (isEthereumAddress) {
18214
+ throw new InvalidAddressError('EVM address provided but destination is not an EVM chain.');
18215
+ }
18216
+ }
17630
18217
  }
17631
- return __awaiter(void 0, [options_1].concat(args_1), void 0, function (options) {
17632
- var serializedApiCallEnabled = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
17633
- return /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
17634
- var api, origin, currency, amount, address, destination, paraIdTo, destApiForKeepAlive, feeAsset, version, ahAddress, isMultiLocationDestination, isBridge, isRelayDestination, originRelayChainSymbol, destinationRelayChainSymbol, originNode, assetCheckEnabled, isDestAssetHub, pallet, isBifrost, asset, nativeAssets, amountStr, resolvedAsset;
17635
- return _regeneratorRuntime().wrap(function _callee$(_context) {
17636
- while (1) switch (_context.prev = _context.next) {
17637
- case 0:
17638
- 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;
17639
- if (!((!('multiasset' in currency) || 'multilocation' in currency) && amount === null)) {
17640
- _context.next = 3;
17641
- break;
17642
- }
17643
- throw new Error('Amount is required');
17644
- case 3:
17645
- if (!('multilocation' in currency && (feeAsset === 0 || feeAsset !== undefined))) {
17646
- _context.next = 5;
17647
- break;
17648
- }
17649
- throw new InvalidCurrencyError('Overrided single multi asset cannot be used with fee asset');
17650
- case 5:
17651
- if (!('multiasset' in currency)) {
17652
- _context.next = 15;
17653
- break;
17654
- }
17655
- if (amount !== null) {
17656
- console.warn('Amount is ignored when using overriding currency using multiple multi locations. Please set it to null.');
17657
- }
17658
- if (!(currency.multiasset.length === 0)) {
17659
- _context.next = 9;
17660
- break;
17661
- }
17662
- throw new InvalidCurrencyError('Overrided multi assets cannot be empty');
17663
- case 9:
17664
- if (!(currency.multiasset.length === 1 && (feeAsset === 0 || feeAsset !== undefined))) {
17665
- _context.next = 11;
17666
- break;
17667
- }
17668
- throw new InvalidCurrencyError('Overrided single multi asset cannot be used with fee asset');
17669
- case 11:
17670
- if (!(currency.multiasset.length > 1 && feeAsset === undefined)) {
17671
- _context.next = 13;
17672
- break;
17673
- }
17674
- throw new InvalidCurrencyError('Overrided multi assets cannot be used without specifying fee asset');
17675
- case 13:
17676
- if (!(currency.multiasset.length > 1 && feeAsset !== undefined && (feeAsset < 0 || feeAsset >= currency.multiasset.length))) {
17677
- _context.next = 15;
17678
- break;
17679
- }
17680
- throw new InvalidCurrencyError('Fee asset index is out of bounds. Please provide a valid index.');
17681
- case 15:
17682
- if (!(destination === 'Ethereum' && origin !== 'AssetHubPolkadot' && origin !== 'Hydration')) {
17683
- _context.next = 17;
17684
- break;
17685
- }
17686
- throw new IncompatibleNodesError('Transfers to Ethereum are only supported from AssetHubPolkadot and Hydration.');
17687
- case 17:
17688
- isMultiLocationDestination = _typeof(destination) === 'object';
17689
- isBridge = origin === 'AssetHubPolkadot' && destination === 'AssetHubKusama' || origin === 'AssetHubKusama' && destination === 'AssetHubPolkadot';
17690
- isRelayDestination = destination === undefined;
17691
- if (!(!isRelayDestination && !isMultiLocationDestination)) {
17692
- _context.next = 25;
17693
- break;
17694
- }
17695
- originRelayChainSymbol = getRelayChainSymbol(origin);
17696
- destinationRelayChainSymbol = getRelayChainSymbol(destination);
17697
- if (!(!isBridge && originRelayChainSymbol !== destinationRelayChainSymbol)) {
17698
- _context.next = 25;
17699
- break;
17700
- }
17701
- throw new IncompatibleNodesError();
17702
- case 25:
17703
- originNode = getNode(origin);
17704
- assetCheckEnabled = 'multiasset' in currency || 'multilocation' in currency && isOverrideMultiLocationSpecifier(currency.multilocation) || isBridge ? false : originNode.assetCheckEnabled;
17705
- isDestAssetHub = destination === 'AssetHubPolkadot' || destination === 'AssetHubKusama';
17706
- pallet = getDefaultPallet(origin);
17707
- isBifrost = origin === 'BifrostPolkadot' || origin === 'BifrostKusama';
17708
- if (!(!assetCheckEnabled && 'symbol' in currency && isSymbolSpecifier(currency.symbol))) {
17709
- _context.next = 32;
17710
- break;
17711
- }
17712
- throw new InvalidCurrencyError('Symbol specifier is not supported when asset check is disabled. Please use normal symbol instead.');
17713
- case 32:
17714
- if (!(!assetCheckEnabled && 'id' in currency)) {
17715
- _context.next = 34;
17716
- break;
17717
- }
17718
- throw new InvalidCurrencyError('Asset ID is not supported when asset check is disabled. Please use normal symbol instead');
17719
- case 34:
17720
- asset = assetCheckEnabled ? getAssetBySymbolOrId(origin, currency, isRelayDestination ? determineRelayChain(origin) : !isTMultiLocation(destination) ? destination : null) : null;
17721
- if (!(!isBridge && isDestAssetHub && pallet === 'XTokens' && !isBifrost)) {
17722
- _context.next = 40;
17723
- break;
17724
- }
17725
- nativeAssets = getNativeAssets(destination);
17726
- if (origin === 'Hydration') {
17727
- nativeAssets = nativeAssets.filter(function (nativeAsset) {
17728
- return nativeAsset.symbol !== 'DOT';
17729
- });
17730
- }
17731
- if (!('symbol' in currency && nativeAssets.some(function (nativeAsset) {
17732
- var _a;
17733
- return nativeAsset.symbol.toLowerCase() === ((_a = asset === null || asset === void 0 ? void 0 : asset.symbol) === null || _a === void 0 ? void 0 : _a.toLowerCase());
17734
- }))) {
17735
- _context.next = 40;
17736
- break;
17737
- }
17738
- throw new InvalidCurrencyError("".concat(JSON.stringify(asset === null || asset === void 0 ? void 0 : asset.symbol), " is not supported for transfers to ").concat(destination, "."));
17739
- case 40:
17740
- if (!isBridge && asset === null && assetCheckEnabled) {
17741
- throwUnsupportedCurrency(currency, origin);
17742
- }
17743
- if (!(!isBridge && !isRelayDestination && !isMultiLocationDestination && (asset === null || asset === void 0 ? void 0 : asset.symbol) !== undefined && assetCheckEnabled && !('id' in currency) && !hasSupportForAsset(destination, asset.symbol))) {
17744
- _context.next = 43;
17745
- break;
17746
- }
17747
- throw new InvalidCurrencyError("Destination node ".concat(destination, " does not support currency ").concat(JSON.stringify(currency), "."));
17748
- case 43:
17749
- _context.next = 45;
17750
- return api.init(origin);
17751
- case 45:
17752
- amountStr = amount === null || amount === void 0 ? void 0 : amount.toString();
17753
- if (!('multilocation' in currency || 'multiasset' in currency)) {
17754
- _context.next = 50;
17755
- break;
17756
- }
17757
- console.warn('Keep alive check is not supported when using MultiLocation as currency.');
17758
- _context.next = 68;
18218
+ };
18219
+
18220
+ var send$1 = function send(options) {
18221
+ return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
18222
+ var api, origin, currency, amount, address, destination, paraIdTo, destApiForKeepAlive, feeAsset, version, ahAddress, isMultiLocationDestination, isBridge, isRelayDestination, originRelayChainSymbol, destinationRelayChainSymbol, originNode, assetCheckEnabled, isDestAssetHub, pallet, isBifrost, asset, nativeAssets, amountStr, resolvedAsset;
18223
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
18224
+ while (1) switch (_context.prev = _context.next) {
18225
+ case 0:
18226
+ 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;
18227
+ if (!((!('multiasset' in currency) || 'multilocation' in currency) && amount === null)) {
18228
+ _context.next = 3;
17759
18229
  break;
17760
- case 50:
17761
- if (!(_typeof(address) === 'object')) {
17762
- _context.next = 54;
17763
- break;
17764
- }
17765
- console.warn('Keep alive check is not supported when using MultiLocation as address.');
17766
- _context.next = 68;
18230
+ }
18231
+ throw new Error('Amount is required');
18232
+ case 3:
18233
+ if (!('multilocation' in currency && (feeAsset === 0 || feeAsset !== undefined))) {
18234
+ _context.next = 5;
17767
18235
  break;
17768
- case 54:
17769
- if (!(_typeof(destination) === 'object')) {
17770
- _context.next = 58;
17771
- break;
17772
- }
17773
- console.warn('Keep alive check is not supported when using MultiLocation as destination.');
17774
- _context.next = 68;
18236
+ }
18237
+ throw new InvalidCurrencyError('Overrided single multi asset cannot be used with fee asset');
18238
+ case 5:
18239
+ if (!('multiasset' in currency)) {
18240
+ _context.next = 15;
17775
18241
  break;
17776
- case 58:
17777
- if (!(destination === 'Ethereum')) {
17778
- _context.next = 62;
17779
- break;
17780
- }
17781
- console.warn('Keep alive check is not supported when using Ethereum as origin or destination.');
17782
- _context.next = 68;
18242
+ }
18243
+ if (amount !== null) {
18244
+ console.warn('Amount is ignored when using overriding currency using multiple multi locations. Please set it to null.');
18245
+ }
18246
+ if (!(currency.multiasset.length === 0)) {
18247
+ _context.next = 9;
17783
18248
  break;
17784
- case 62:
17785
- if (asset) {
17786
- _context.next = 66;
17787
- break;
17788
- }
17789
- console.warn('Keep alive check is not supported when asset check is disabled.');
17790
- _context.next = 68;
18249
+ }
18250
+ throw new InvalidCurrencyError('Overrided multi assets cannot be empty');
18251
+ case 9:
18252
+ if (!(currency.multiasset.length === 1 && (feeAsset === 0 || feeAsset !== undefined))) {
18253
+ _context.next = 11;
17791
18254
  break;
17792
- case 66:
17793
- _context.next = 68;
17794
- return checkKeepAlive({
17795
- originApi: api,
17796
- address: address,
17797
- amount: amountStr !== null && amountStr !== void 0 ? amountStr : '',
17798
- originNode: origin,
17799
- destApi: destApiForKeepAlive,
17800
- asset: asset,
17801
- destNode: destination
17802
- });
17803
- case 68:
17804
- // In case asset check is disabled, we create asset object from currency symbol
17805
- resolvedAsset = asset !== null && asset !== void 0 ? asset : {
17806
- symbol: 'symbol' in currency ? currency.symbol : undefined
17807
- };
17808
- return _context.abrupt("return", originNode.transfer({
17809
- api: api,
17810
- asset: resolvedAsset,
17811
- amount: amountStr !== null && amountStr !== void 0 ? amountStr : '',
17812
- address: address,
17813
- destination: destination,
17814
- paraIdTo: paraIdTo,
17815
- overridedCurrencyMultiLocation: 'multilocation' in currency && isOverrideMultiLocationSpecifier(currency.multilocation) ? currency.multilocation.value : 'multiasset' in currency ? currency.multiasset : undefined,
17816
- feeAsset: feeAsset,
17817
- version: version,
17818
- destApiForKeepAlive: destApiForKeepAlive,
17819
- serializedApiCallEnabled: serializedApiCallEnabled,
17820
- ahAddress: ahAddress
17821
- }));
17822
- case 70:
17823
- case "end":
17824
- return _context.stop();
17825
- }
17826
- }, _callee);
17827
- })();
17828
- });
17829
- };
17830
- var sendSerializedApiCall$1 = function sendSerializedApiCall(options) {
17831
- return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
17832
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
17833
- while (1) switch (_context2.prev = _context2.next) {
17834
- case 0:
17835
- return _context2.abrupt("return", sendCommon(options, true));
17836
- case 1:
17837
- case "end":
17838
- return _context2.stop();
17839
- }
17840
- }, _callee2);
17841
- }));
17842
- };
17843
- var send$1 = function send(options) {
17844
- return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
17845
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
17846
- while (1) switch (_context3.prev = _context3.next) {
17847
- case 0:
17848
- return _context3.abrupt("return", sendCommon(options));
17849
- case 1:
17850
- case "end":
17851
- return _context3.stop();
17852
- }
17853
- }, _callee3);
17854
- }));
17855
- };
17856
- var transferRelayToParaCommon = function transferRelayToParaCommon(options_1) {
17857
- for (var _len2 = arguments.length, args_1 = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
17858
- args_1[_key2 - 1] = arguments[_key2];
17859
- }
17860
- return __awaiter(void 0, [options_1].concat(args_1), void 0, function (options) {
17861
- var serializedApiCallEnabled = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
17862
- return /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
17863
- var api, destination, amount, address, paraIdTo, destApiForKeepAlive, version, isMultiLocationDestination, isAddressMultiLocation, amountStr, serializedApiCall;
17864
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
17865
- while (1) switch (_context4.prev = _context4.next) {
17866
- case 0:
17867
- api = options.api, destination = options.destination, amount = options.amount, address = options.address, paraIdTo = options.paraIdTo, destApiForKeepAlive = options.destApiForKeepAlive, version = options.version;
17868
- isMultiLocationDestination = _typeof(destination) === 'object';
17869
- isAddressMultiLocation = _typeof(address) === 'object';
17870
- if (!(api === undefined && isMultiLocationDestination)) {
17871
- _context4.next = 5;
17872
- break;
17873
- }
17874
- throw new Error('API is required when using MultiLocation as destination.');
17875
- case 5:
17876
- _context4.next = 7;
17877
- return api.init(determineRelayChain(destination));
17878
- case 7:
17879
- amountStr = amount.toString();
17880
- if (!isMultiLocationDestination) {
17881
- _context4.next = 12;
17882
- break;
17883
- }
17884
- console.warn('Keep alive check is not supported when using MultiLocation as destination.');
17885
- _context4.next = 18;
18255
+ }
18256
+ throw new InvalidCurrencyError('Overrided single multi asset cannot be used with fee asset');
18257
+ case 11:
18258
+ if (!(currency.multiasset.length > 1 && feeAsset === undefined)) {
18259
+ _context.next = 13;
17886
18260
  break;
17887
- case 12:
17888
- if (!isAddressMultiLocation) {
17889
- _context4.next = 16;
17890
- break;
17891
- }
17892
- console.warn('Keep alive check is not supported when using MultiLocation as address.');
17893
- _context4.next = 18;
18261
+ }
18262
+ throw new InvalidCurrencyError('Overrided multi assets cannot be used without specifying fee asset');
18263
+ case 13:
18264
+ if (!(currency.multiasset.length > 1 && feeAsset !== undefined && (feeAsset < 0 || feeAsset >= currency.multiasset.length))) {
18265
+ _context.next = 15;
17894
18266
  break;
17895
- case 16:
17896
- _context4.next = 18;
17897
- return checkKeepAlive({
17898
- originApi: api,
17899
- address: address,
17900
- amount: amountStr,
17901
- destApi: destApiForKeepAlive,
17902
- asset: {
17903
- symbol: getRelayChainSymbol(destination)
17904
- },
17905
- destNode: destination
17906
- });
17907
- case 18:
17908
- serializedApiCall = getNode(isMultiLocationDestination ? resolveTNodeFromMultiLocation(destination) : destination).transferRelayToPara({
17909
- api: api,
17910
- destination: destination,
17911
- address: address,
17912
- amount: amountStr,
17913
- paraIdTo: paraIdTo,
17914
- destApiForKeepAlive: destApiForKeepAlive,
17915
- version: version
18267
+ }
18268
+ throw new InvalidCurrencyError('Fee asset index is out of bounds. Please provide a valid index.');
18269
+ case 15:
18270
+ if (!(destination === 'Ethereum' && origin !== 'AssetHubPolkadot' && origin !== 'Hydration')) {
18271
+ _context.next = 17;
18272
+ break;
18273
+ }
18274
+ throw new IncompatibleNodesError('Transfers to Ethereum are only supported from AssetHubPolkadot and Hydration.');
18275
+ case 17:
18276
+ isMultiLocationDestination = _typeof(destination) === 'object';
18277
+ isBridge = origin === 'AssetHubPolkadot' && destination === 'AssetHubKusama' || origin === 'AssetHubKusama' && destination === 'AssetHubPolkadot';
18278
+ isRelayDestination = destination === undefined;
18279
+ if (!(!isRelayDestination && !isMultiLocationDestination)) {
18280
+ _context.next = 25;
18281
+ break;
18282
+ }
18283
+ originRelayChainSymbol = getRelayChainSymbol(origin);
18284
+ destinationRelayChainSymbol = getRelayChainSymbol(destination);
18285
+ if (!(!isBridge && originRelayChainSymbol !== destinationRelayChainSymbol)) {
18286
+ _context.next = 25;
18287
+ break;
18288
+ }
18289
+ throw new IncompatibleNodesError();
18290
+ case 25:
18291
+ originNode = getNode(origin);
18292
+ assetCheckEnabled = 'multiasset' in currency || 'multilocation' in currency && isOverrideMultiLocationSpecifier(currency.multilocation) || isBridge ? false : originNode.assetCheckEnabled;
18293
+ validateDestinationAddress(address, destination);
18294
+ isDestAssetHub = destination === 'AssetHubPolkadot' || destination === 'AssetHubKusama';
18295
+ pallet = getDefaultPallet(origin);
18296
+ isBifrost = origin === 'BifrostPolkadot' || origin === 'BifrostKusama';
18297
+ if (!(!assetCheckEnabled && 'symbol' in currency && isSymbolSpecifier(currency.symbol))) {
18298
+ _context.next = 33;
18299
+ break;
18300
+ }
18301
+ throw new InvalidCurrencyError('Symbol specifier is not supported when asset check is disabled. Please use normal symbol instead.');
18302
+ case 33:
18303
+ if (!(!assetCheckEnabled && 'id' in currency)) {
18304
+ _context.next = 35;
18305
+ break;
18306
+ }
18307
+ throw new InvalidCurrencyError('Asset ID is not supported when asset check is disabled. Please use normal symbol instead');
18308
+ case 35:
18309
+ asset = assetCheckEnabled ? getAssetBySymbolOrId(origin, currency, isRelayDestination ? determineRelayChain(origin) : !isTMultiLocation(destination) ? destination : null) : null;
18310
+ if (!(!isBridge && isDestAssetHub && pallet === 'XTokens' && !isBifrost)) {
18311
+ _context.next = 41;
18312
+ break;
18313
+ }
18314
+ nativeAssets = getNativeAssets(destination);
18315
+ if (origin === 'Hydration') {
18316
+ nativeAssets = nativeAssets.filter(function (nativeAsset) {
18317
+ return nativeAsset.symbol !== 'DOT';
17916
18318
  });
17917
- if (!serializedApiCallEnabled) {
17918
- _context4.next = 21;
17919
- break;
17920
- }
17921
- return _context4.abrupt("return", Object.assign(Object.assign({}, serializedApiCall), {
17922
- parameters: Object.values(serializedApiCall.parameters)
17923
- }));
17924
- case 21:
17925
- return _context4.abrupt("return", api.callTxMethod(serializedApiCall));
17926
- case 22:
17927
- case "end":
17928
- return _context4.stop();
17929
- }
17930
- }, _callee4);
17931
- })();
17932
- });
17933
- };
17934
- var transferRelayToPara$1 = function transferRelayToPara(options) {
17935
- return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
17936
- return _regeneratorRuntime().wrap(function _callee5$(_context5) {
17937
- while (1) switch (_context5.prev = _context5.next) {
17938
- case 0:
17939
- return _context5.abrupt("return", transferRelayToParaCommon(options));
17940
- case 1:
18319
+ }
18320
+ if (!('symbol' in currency && nativeAssets.some(function (nativeAsset) {
18321
+ var _a;
18322
+ return nativeAsset.symbol.toLowerCase() === ((_a = asset === null || asset === void 0 ? void 0 : asset.symbol) === null || _a === void 0 ? void 0 : _a.toLowerCase());
18323
+ }))) {
18324
+ _context.next = 41;
18325
+ break;
18326
+ }
18327
+ throw new InvalidCurrencyError("".concat(JSON.stringify(asset === null || asset === void 0 ? void 0 : asset.symbol), " is not supported for transfers to ").concat(destination, "."));
18328
+ case 41:
18329
+ if (!isBridge && asset === null && assetCheckEnabled) {
18330
+ throwUnsupportedCurrency(currency, origin);
18331
+ }
18332
+ if (!(!isBridge && !isRelayDestination && !isMultiLocationDestination && (asset === null || asset === void 0 ? void 0 : asset.symbol) !== undefined && assetCheckEnabled && !('id' in currency) && !hasSupportForAsset(destination, asset.symbol))) {
18333
+ _context.next = 44;
18334
+ break;
18335
+ }
18336
+ throw new InvalidCurrencyError("Destination node ".concat(destination, " does not support currency ").concat(JSON.stringify(currency), "."));
18337
+ case 44:
18338
+ _context.next = 46;
18339
+ return api.init(origin);
18340
+ case 46:
18341
+ _context.prev = 46;
18342
+ amountStr = amount === null || amount === void 0 ? void 0 : amount.toString();
18343
+ if (!('multilocation' in currency || 'multiasset' in currency)) {
18344
+ _context.next = 52;
18345
+ break;
18346
+ }
18347
+ console.warn('Keep alive check is not supported when using MultiLocation as currency.');
18348
+ _context.next = 70;
18349
+ break;
18350
+ case 52:
18351
+ if (!(_typeof(address) === 'object')) {
18352
+ _context.next = 56;
18353
+ break;
18354
+ }
18355
+ console.warn('Keep alive check is not supported when using MultiLocation as address.');
18356
+ _context.next = 70;
18357
+ break;
18358
+ case 56:
18359
+ if (!(_typeof(destination) === 'object')) {
18360
+ _context.next = 60;
18361
+ break;
18362
+ }
18363
+ console.warn('Keep alive check is not supported when using MultiLocation as destination.');
18364
+ _context.next = 70;
18365
+ break;
18366
+ case 60:
18367
+ if (!(destination === 'Ethereum')) {
18368
+ _context.next = 64;
18369
+ break;
18370
+ }
18371
+ console.warn('Keep alive check is not supported when using Ethereum as origin or destination.');
18372
+ _context.next = 70;
18373
+ break;
18374
+ case 64:
18375
+ if (asset) {
18376
+ _context.next = 68;
18377
+ break;
18378
+ }
18379
+ console.warn('Keep alive check is not supported when asset check is disabled.');
18380
+ _context.next = 70;
18381
+ break;
18382
+ case 68:
18383
+ _context.next = 70;
18384
+ return checkKeepAlive({
18385
+ originApi: api,
18386
+ address: address,
18387
+ amount: amountStr !== null && amountStr !== void 0 ? amountStr : '',
18388
+ originNode: origin,
18389
+ destApi: destApiForKeepAlive,
18390
+ asset: asset,
18391
+ destNode: destination
18392
+ });
18393
+ case 70:
18394
+ // In case asset check is disabled, we create asset object from currency symbol
18395
+ resolvedAsset = asset !== null && asset !== void 0 ? asset : {
18396
+ symbol: 'symbol' in currency ? currency.symbol : undefined
18397
+ };
18398
+ _context.next = 73;
18399
+ return originNode.transfer({
18400
+ api: api,
18401
+ asset: resolvedAsset,
18402
+ amount: amountStr !== null && amountStr !== void 0 ? amountStr : '',
18403
+ address: address,
18404
+ destination: destination,
18405
+ paraIdTo: paraIdTo,
18406
+ overridedCurrencyMultiLocation: 'multilocation' in currency && isOverrideMultiLocationSpecifier(currency.multilocation) ? currency.multilocation.value : 'multiasset' in currency ? currency.multiasset : undefined,
18407
+ feeAsset: feeAsset,
18408
+ version: version,
18409
+ destApiForKeepAlive: destApiForKeepAlive,
18410
+ ahAddress: ahAddress
18411
+ });
18412
+ case 73:
18413
+ return _context.abrupt("return", _context.sent);
18414
+ case 74:
18415
+ _context.prev = 74;
18416
+ if (!isPjsClient(api)) {
18417
+ _context.next = 78;
18418
+ break;
18419
+ }
18420
+ _context.next = 78;
18421
+ return api.disconnect();
18422
+ case 78:
18423
+ return _context.finish(74);
18424
+ case 79:
17941
18425
  case "end":
17942
- return _context5.stop();
18426
+ return _context.stop();
17943
18427
  }
17944
- }, _callee5);
18428
+ }, _callee, null, [[46,, 74, 79]]);
17945
18429
  }));
17946
18430
  };
17947
- var transferRelayToParaSerializedApiCall$1 = function transferRelayToParaSerializedApiCall(options) {
17948
- return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
17949
- return _regeneratorRuntime().wrap(function _callee6$(_context6) {
17950
- while (1) switch (_context6.prev = _context6.next) {
18431
+ var transferRelayToPara$1 = function transferRelayToPara(options) {
18432
+ return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
18433
+ var api, destination, amount, address, paraIdTo, destApiForKeepAlive, version, isMultiLocationDestination, isAddressMultiLocation, amountStr, serializedApiCall;
18434
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
18435
+ while (1) switch (_context2.prev = _context2.next) {
17951
18436
  case 0:
17952
- return _context6.abrupt("return", transferRelayToParaCommon(options, true));
17953
- case 1:
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 === undefined && isMultiLocationDestination)) {
18441
+ _context2.next = 5;
18442
+ break;
18443
+ }
18444
+ throw new Error('API is required when using MultiLocation as destination.');
18445
+ case 5:
18446
+ _context2.next = 7;
18447
+ return api.init(determineRelayChain(destination));
18448
+ case 7:
18449
+ _context2.prev = 7;
18450
+ amountStr = amount.toString();
18451
+ if (!isMultiLocationDestination) {
18452
+ _context2.next = 13;
18453
+ break;
18454
+ }
18455
+ console.warn('Keep alive check is not supported when using MultiLocation as destination.');
18456
+ _context2.next = 19;
18457
+ break;
18458
+ case 13:
18459
+ if (!isAddressMultiLocation) {
18460
+ _context2.next = 17;
18461
+ break;
18462
+ }
18463
+ console.warn('Keep alive check is not supported when using MultiLocation as address.');
18464
+ _context2.next = 19;
18465
+ break;
18466
+ case 17:
18467
+ _context2.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 _context2.abrupt("return", api.callTxMethod(serializedApiCall));
18489
+ case 21:
18490
+ _context2.prev = 21;
18491
+ if (!isPjsClient(api)) {
18492
+ _context2.next = 25;
18493
+ break;
18494
+ }
18495
+ _context2.next = 25;
18496
+ return api.disconnect();
18497
+ case 25:
18498
+ return _context2.finish(21);
18499
+ case 26:
17954
18500
  case "end":
17955
- return _context6.stop();
18501
+ return _context2.stop();
17956
18502
  }
17957
- }, _callee6);
18503
+ }, _callee2, null, [[7,, 21, 26]]);
17958
18504
  }));
17959
18505
  };
17960
18506
 
@@ -17969,6 +18515,8 @@ var snakeToCamel = function snakeToCamel(str) {
17969
18515
  var PolkadotJsApi = /*#__PURE__*/function () {
17970
18516
  function PolkadotJsApi() {
17971
18517
  _classCallCheck(this, PolkadotJsApi);
18518
+ this.initialized = false;
18519
+ this.disconnectAllowed = true;
17972
18520
  }
17973
18521
  return _createClass(PolkadotJsApi, [{
17974
18522
  key: "setApi",
@@ -17988,32 +18536,40 @@ var PolkadotJsApi = /*#__PURE__*/function () {
17988
18536
  return _regeneratorRuntime().wrap(function _callee$(_context) {
17989
18537
  while (1) switch (_context.prev = _context.next) {
17990
18538
  case 0:
18539
+ if (!this.initialized) {
18540
+ _context.next = 2;
18541
+ break;
18542
+ }
18543
+ return _context.abrupt("return");
18544
+ case 2:
17991
18545
  if (!(typeof this._api === 'string')) {
17992
- _context.next = 6;
18546
+ _context.next = 8;
17993
18547
  break;
17994
18548
  }
17995
- _context.next = 3;
18549
+ _context.next = 5;
17996
18550
  return this.createApiInstance(this._api);
17997
- case 3:
18551
+ case 5:
17998
18552
  this.api = _context.sent;
17999
- _context.next = 14;
18553
+ _context.next = 16;
18000
18554
  break;
18001
- case 6:
18555
+ case 8:
18002
18556
  if (!((_a = this._api) !== null && _a !== void 0)) {
18003
- _context.next = 10;
18557
+ _context.next = 12;
18004
18558
  break;
18005
18559
  }
18006
18560
  _context.t0 = _a;
18007
- _context.next = 13;
18561
+ _context.next = 15;
18008
18562
  break;
18009
- case 10:
18010
- _context.next = 12;
18011
- return createApiInstanceForNode$1(this, node);
18012
18563
  case 12:
18564
+ _context.next = 14;
18565
+ return createApiInstanceForNode$1(this, node);
18566
+ case 14:
18013
18567
  _context.t0 = _context.sent;
18014
- case 13:
18568
+ case 15:
18015
18569
  this.api = _context.t0;
18016
- case 14:
18570
+ case 16:
18571
+ this.initialized = true;
18572
+ case 17:
18017
18573
  case "end":
18018
18574
  return _context.stop();
18019
18575
  }
@@ -18305,6 +18861,42 @@ var PolkadotJsApi = /*#__PURE__*/function () {
18305
18861
  }, _callee13);
18306
18862
  }));
18307
18863
  }
18864
+ }, {
18865
+ key: "setDisconnectAllowed",
18866
+ value: function setDisconnectAllowed(allowed) {
18867
+ this.disconnectAllowed = allowed;
18868
+ }
18869
+ }, {
18870
+ key: "getDisconnectAllowed",
18871
+ value: function getDisconnectAllowed() {
18872
+ return this.disconnectAllowed;
18873
+ }
18874
+ }, {
18875
+ key: "disconnect",
18876
+ value: function disconnect() {
18877
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee14() {
18878
+ return _regeneratorRuntime().wrap(function _callee14$(_context14) {
18879
+ while (1) switch (_context14.prev = _context14.next) {
18880
+ case 0:
18881
+ if (this.disconnectAllowed) {
18882
+ _context14.next = 2;
18883
+ break;
18884
+ }
18885
+ return _context14.abrupt("return");
18886
+ case 2:
18887
+ if (!(typeof this._api === 'string' || this._api === undefined)) {
18888
+ _context14.next = 5;
18889
+ break;
18890
+ }
18891
+ _context14.next = 5;
18892
+ return this.api.disconnect();
18893
+ case 5:
18894
+ case "end":
18895
+ return _context14.stop();
18896
+ }
18897
+ }, _callee14, this);
18898
+ }));
18899
+ }
18308
18900
  }]);
18309
18901
  }();
18310
18902
 
@@ -18377,16 +18969,6 @@ var transferRelayToPara = function transferRelayToPara(options) {
18377
18969
  destApiForKeepAlive: destPjsApi
18378
18970
  }));
18379
18971
  };
18380
- var transferRelayToParaSerializedApiCall = function transferRelayToParaSerializedApiCall(options) {
18381
- var pjsApi = new PolkadotJsApi();
18382
- pjsApi.setApi(options.api);
18383
- var destPjsApi = new PolkadotJsApi();
18384
- destPjsApi.setApi(options.destApiForKeepAlive);
18385
- return transferRelayToParaSerializedApiCall$1(Object.assign(Object.assign({}, options), {
18386
- api: pjsApi,
18387
- destApiForKeepAlive: destPjsApi
18388
- }));
18389
- };
18390
18972
  /**
18391
18973
  * Transfers assets from parachain to another parachain or relay chain.
18392
18974
  * @param options - The transfer options.
@@ -18402,24 +18984,12 @@ var send = function send(options) {
18402
18984
  destApiForKeepAlive: destPjsApi
18403
18985
  }));
18404
18986
  };
18405
- var sendSerializedApiCall = function sendSerializedApiCall(options) {
18406
- var pjsApi = new PolkadotJsApi();
18407
- pjsApi.setApi(options.api);
18408
- var destPjsApi = new PolkadotJsApi();
18409
- destPjsApi.setApi(options.destApiForKeepAlive);
18410
- return sendSerializedApiCall$1(Object.assign(Object.assign({}, options), {
18411
- api: pjsApi,
18412
- destApiForKeepAlive: destPjsApi
18413
- }));
18414
- };
18415
18987
 
18416
18988
  var transfer = /*#__PURE__*/Object.freeze({
18417
18989
  __proto__: null,
18418
18990
  buildEthTransferOptions: buildEthTransferOptions,
18419
18991
  send: send,
18420
- sendSerializedApiCall: sendSerializedApiCall,
18421
- transferRelayToPara: transferRelayToPara,
18422
- transferRelayToParaSerializedApiCall: transferRelayToParaSerializedApiCall
18992
+ transferRelayToPara: transferRelayToPara
18423
18993
  });
18424
18994
 
18425
18995
  var createApiInstanceForNode = function createApiInstanceForNode(node) {
@@ -18504,7 +19074,8 @@ var assets = /*#__PURE__*/Object.freeze({
18504
19074
  getSupportedAssets: getSupportedAssets,
18505
19075
  getTNode: getTNode,
18506
19076
  getTransferInfo: getTransferInfo,
18507
- hasSupportForAsset: hasSupportForAsset
19077
+ hasSupportForAsset: hasSupportForAsset,
19078
+ isNodeEvm: isNodeEvm
18508
19079
  });
18509
19080
 
18510
19081
  /**
@@ -18520,4 +19091,4 @@ var Builder = function Builder(api) {
18520
19091
  };
18521
19092
  var GeneralBuilder = GeneralBuilder$1;
18522
19093
 
18523
- export { BatchMode, Builder, DuplicateAssetError, DuplicateAssetIdError, EvmBuilder, Foreign, ForeignAbstract, GeneralBuilder, IncompatibleNodesError, InvalidCurrencyError, NODES_WITH_RELAY_CHAINS, NODES_WITH_RELAY_CHAINS_DOT_KSM, NODE_NAMES, NODE_NAMES_DOT_KSM, Native, NoXCMSupportImplementedError, NodeNotSupportedError, Override, Parents, SUPPORTED_PALLETS, ScenarioNotSupportedError, Version, assets, buildEthTransferOptions, claimAssets, createApiInstanceForNode, createPolkadotJsApiCall, determineRelayChain, getAllAssetsSymbols, getAssetBalance, getAssetDecimals, getAssetId, getAssets, getAssetsObject, getBalanceForeign, getBalanceNative, getDefaultPallet, getExistentialDeposit$1 as getExistentialDeposit, getNativeAssetSymbol, getNativeAssets, getNode, getNodeConfig, getNodeProvider, getNodeProviders, getOriginFeeDetails, getOtherAssets, getParaId, getRelayChainSymbol, getSupportedAssets, getSupportedPallets, getTNode, getTransferInfo, hasSupportForAsset, isForeignAsset, isRelayChain, send, sendSerializedApiCall, transferRelayToPara, transferRelayToParaSerializedApiCall, transfer as xcmPallet };
19094
+ export { BatchMode, Builder, DuplicateAssetError, DuplicateAssetIdError, EvmBuilder, Foreign, ForeignAbstract, GeneralBuilder, IncompatibleNodesError, InvalidAddressError, InvalidCurrencyError, NODES_WITH_RELAY_CHAINS, NODES_WITH_RELAY_CHAINS_DOT_KSM, NODE_NAMES, NODE_NAMES_DOT_KSM, Native, NoXCMSupportImplementedError, NodeNotSupportedError, Override, Parents, SUPPORTED_PALLETS, ScenarioNotSupportedError, Version, assets, buildEthTransferOptions, claimAssets, createApiInstanceForNode, createPolkadotJsApiCall, determineRelayChain, getAllAssetsSymbols, getAssetBalance, getAssetDecimals, getAssetId, getAssets, getAssetsObject, getBalanceForeign, getBalanceNative, getDefaultPallet, getExistentialDeposit$1 as getExistentialDeposit, getNativeAssetSymbol, getNativeAssets, getNode, getNodeConfig, getNodeProvider, getNodeProviders, getOriginFeeDetails, getOtherAssets, getParaId, getRelayChainSymbol, getSupportedAssets, getSupportedPallets, getTNode, getTransferInfo, hasSupportForAsset, isForeignAsset, isNodeEvm, isRelayChain, send, transferRelayToPara, transfer as xcmPallet };