@paraspell/pallets 14.1.0-rc → 14.1.0

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.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { TSubstrateChain } from '@paraspell/sdk-common';
1
+ import { ParaSpellError, TSubstrateChain } from '@paraspell/sdk-common';
2
2
 
3
3
  declare const CROSSCHAIN_PALLETS: readonly ["XTokens", "PolkadotXcm", "XcmPallet"];
4
4
  declare const ASSETS_PALLETS: readonly ["Balances", "Tokens", "Currencies", "Assets", "ForeignAssets", "AssetManager", "System", "Fungibles", "OrmlTokens"];
@@ -10,7 +10,7 @@ declare const OTHER_ASSETS_PALLET_PRIORITY: readonly ["Currencies", "Tokens", "A
10
10
  /**
11
11
  * Used to inform user, that no XCM pallet was found on the specified chain.
12
12
  */
13
- declare class XcmPalletNotFoundError<TCustomChain extends string = never> extends Error {
13
+ declare class XcmPalletNotFoundError<TCustomChain extends string = never> extends ParaSpellError {
14
14
  /**
15
15
  * Constructs a new XcmPalletNotFoundError.
16
16
  *
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { isCustomChain } from '@paraspell/sdk-common';
1
+ import { ParaSpellError, isCustomChain } from '@paraspell/sdk-common';
2
2
 
3
3
  var CROSSCHAIN_PALLETS = ['XTokens', 'PolkadotXcm', 'XcmPallet'];
4
4
  var ASSETS_PALLETS = ['Balances', 'Tokens', 'Currencies', 'Assets', 'ForeignAssets', 'AssetManager', 'System', 'Fungibles', 'OrmlTokens'];
@@ -17,13 +17,6 @@ function _callSuper(t, o, e) {
17
17
  function _classCallCheck(a, n) {
18
18
  if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
19
19
  }
20
- function _construct(t, e, r) {
21
- if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
22
- var o = [null];
23
- o.push.apply(o, e);
24
- var p = new (t.bind.apply(t, o))();
25
- return r && _setPrototypeOf(p, r.prototype), p;
26
- }
27
20
  function _createClass(e, r, t) {
28
21
  return Object.defineProperty(e, "prototype", {
29
22
  writable: false
@@ -46,13 +39,6 @@ function _inherits(t, e) {
46
39
  writable: false
47
40
  }), e && _setPrototypeOf(t, e);
48
41
  }
49
- function _isNativeFunction(t) {
50
- try {
51
- return -1 !== Function.toString.call(t).indexOf("[native code]");
52
- } catch (n) {
53
- return "function" == typeof t;
54
- }
55
- }
56
42
  function _isNativeReflectConstruct() {
57
43
  try {
58
44
  var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
@@ -71,48 +57,23 @@ function _setPrototypeOf(t, e) {
71
57
  return t.__proto__ = e, t;
72
58
  }, _setPrototypeOf(t, e);
73
59
  }
74
- function _wrapNativeSuper(t) {
75
- var r = "function" == typeof Map ? new Map() : void 0;
76
- return _wrapNativeSuper = function (t) {
77
- if (null === t || !_isNativeFunction(t)) return t;
78
- if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function");
79
- if (void 0 !== r) {
80
- if (r.has(t)) return r.get(t);
81
- r.set(t, Wrapper);
82
- }
83
- function Wrapper() {
84
- return _construct(t, arguments, _getPrototypeOf(this).constructor);
85
- }
86
- return Wrapper.prototype = Object.create(t.prototype, {
87
- constructor: {
88
- value: Wrapper,
89
- enumerable: false,
90
- writable: true,
91
- configurable: true
92
- }
93
- }), _setPrototypeOf(Wrapper, t);
94
- }, _wrapNativeSuper(t);
95
- }
96
60
 
97
61
  /**
98
62
  * Used to inform user, that no XCM pallet was found on the specified chain.
99
63
  */
100
- var XcmPalletNotFoundError = /*#__PURE__*/function (_Error) {
64
+ var XcmPalletNotFoundError = /*#__PURE__*/function (_ParaSpellError) {
101
65
  /**
102
66
  * Constructs a new XcmPalletNotFoundError.
103
67
  *
104
68
  * @param chain - The chain for which no XCM pallet was found.
105
69
  */
106
70
  function XcmPalletNotFoundError(chain) {
107
- var _this;
108
71
  _classCallCheck(this, XcmPalletNotFoundError);
109
- _this = _callSuper(this, XcmPalletNotFoundError, ["No XCM pallet found on chain ".concat(chain)]);
110
- _this.name = 'XcmPalletNotFoundError';
111
- return _this;
72
+ return _callSuper(this, XcmPalletNotFoundError, ["No XCM pallet found on chain ".concat(chain)]);
112
73
  }
113
- _inherits(XcmPalletNotFoundError, _Error);
74
+ _inherits(XcmPalletNotFoundError, _ParaSpellError);
114
75
  return _createClass(XcmPalletNotFoundError);
115
- }(/*#__PURE__*/_wrapNativeSuper(Error));
76
+ }(ParaSpellError);
116
77
 
117
78
  var AssetHubPolkadot = {
118
79
  defaultPallet: "PolkadotXcm",
@@ -311,27 +272,6 @@ var Hydration = {
311
272
  "Tokens"
312
273
  ]
313
274
  };
314
- var Interlay = {
315
- defaultPallet: "XTokens",
316
- supportedPallets: [
317
- {
318
- name: "Tokens",
319
- index: 21
320
- },
321
- {
322
- name: "PolkadotXcm",
323
- index: 91
324
- },
325
- {
326
- name: "XTokens",
327
- index: 94
328
- }
329
- ],
330
- nativeAssets: "Tokens",
331
- otherAssets: [
332
- "Tokens"
333
- ]
334
- };
335
275
  var Heima = {
336
276
  defaultPallet: "PolkadotXcm",
337
277
  supportedPallets: [
@@ -358,23 +298,6 @@ var Heima = {
358
298
  "AssetManager"
359
299
  ]
360
300
  };
361
- var Moonbeam = {
362
- defaultPallet: "PolkadotXcm",
363
- supportedPallets: [
364
- {
365
- name: "Balances",
366
- index: 10
367
- },
368
- {
369
- name: "PolkadotXcm",
370
- index: 103
371
- }
372
- ],
373
- nativeAssets: "Balances",
374
- otherAssets: [
375
- "System"
376
- ]
377
- };
378
301
  var AssetHubKusama = {
379
302
  defaultPallet: "PolkadotXcm",
380
303
  supportedPallets: [
@@ -546,69 +469,6 @@ var Karura = {
546
469
  "Tokens"
547
470
  ]
548
471
  };
549
- var Kintsugi = {
550
- defaultPallet: "XTokens",
551
- supportedPallets: [
552
- {
553
- name: "Tokens",
554
- index: 21
555
- },
556
- {
557
- name: "PolkadotXcm",
558
- index: 91
559
- },
560
- {
561
- name: "XTokens",
562
- index: 94
563
- }
564
- ],
565
- nativeAssets: "Tokens",
566
- otherAssets: [
567
- "Tokens"
568
- ]
569
- };
570
- var Moonriver = {
571
- defaultPallet: "PolkadotXcm",
572
- supportedPallets: [
573
- {
574
- name: "Balances",
575
- index: 10
576
- },
577
- {
578
- name: "PolkadotXcm",
579
- index: 103
580
- }
581
- ],
582
- nativeAssets: "Balances",
583
- otherAssets: [
584
- "System"
585
- ]
586
- };
587
- var Quartz = {
588
- defaultPallet: "XTokens",
589
- supportedPallets: [
590
- {
591
- name: "Balances",
592
- index: 30
593
- },
594
- {
595
- name: "XTokens",
596
- index: 38
597
- },
598
- {
599
- name: "PolkadotXcm",
600
- index: 51
601
- },
602
- {
603
- name: "ForeignAssets",
604
- index: 80
605
- }
606
- ],
607
- nativeAssets: "Balances",
608
- otherAssets: [
609
- "ForeignAssets"
610
- ]
611
- };
612
472
  var Shiden = {
613
473
  defaultPallet: "XTokens",
614
474
  supportedPallets: [
@@ -745,32 +605,6 @@ var Pendulum = {
745
605
  "Tokens"
746
606
  ]
747
607
  };
748
- var Zeitgeist = {
749
- defaultPallet: "XTokens",
750
- supportedPallets: [
751
- {
752
- name: "Balances",
753
- index: 10
754
- },
755
- {
756
- name: "AssetManager",
757
- index: 40
758
- },
759
- {
760
- name: "PolkadotXcm",
761
- index: 122
762
- },
763
- {
764
- name: "XTokens",
765
- index: 126
766
- }
767
- ],
768
- nativeAssets: "Balances",
769
- otherAssets: [
770
- "AssetManager",
771
- "Tokens"
772
- ]
773
- };
774
608
  var Collectives = {
775
609
  defaultPallet: "PolkadotXcm",
776
610
  supportedPallets: [
@@ -1158,38 +992,6 @@ var AssetHubPaseo = {
1158
992
  "ForeignAssets"
1159
993
  ]
1160
994
  };
1161
- var BridgeHubPaseo = {
1162
- defaultPallet: "PolkadotXcm",
1163
- supportedPallets: [
1164
- {
1165
- name: "Balances",
1166
- index: 10
1167
- },
1168
- {
1169
- name: "PolkadotXcm",
1170
- index: 31
1171
- }
1172
- ],
1173
- nativeAssets: "Balances",
1174
- otherAssets: [
1175
- ]
1176
- };
1177
- var CoretimePaseo = {
1178
- defaultPallet: "PolkadotXcm",
1179
- supportedPallets: [
1180
- {
1181
- name: "Balances",
1182
- index: 10
1183
- },
1184
- {
1185
- name: "PolkadotXcm",
1186
- index: 31
1187
- }
1188
- ],
1189
- nativeAssets: "Balances",
1190
- otherAssets: [
1191
- ]
1192
- };
1193
995
  var PeoplePaseo = {
1194
996
  defaultPallet: "PolkadotXcm",
1195
997
  supportedPallets: [
@@ -1211,53 +1013,6 @@ var PeoplePaseo = {
1211
1013
  "Assets"
1212
1014
  ]
1213
1015
  };
1214
- var AjunaPaseo = {
1215
- defaultPallet: "XTokens",
1216
- supportedPallets: [
1217
- {
1218
- name: "Balances",
1219
- index: 15
1220
- },
1221
- {
1222
- name: "PolkadotXcm",
1223
- index: 31
1224
- },
1225
- {
1226
- name: "XTokens",
1227
- index: 35
1228
- },
1229
- {
1230
- name: "Assets",
1231
- index: 90
1232
- }
1233
- ],
1234
- nativeAssets: "Balances",
1235
- otherAssets: [
1236
- "Assets"
1237
- ]
1238
- };
1239
- var BifrostPaseo = {
1240
- defaultPallet: "PolkadotXcm",
1241
- supportedPallets: [
1242
- {
1243
- name: "Balances",
1244
- index: 10
1245
- },
1246
- {
1247
- name: "PolkadotXcm",
1248
- index: 41
1249
- },
1250
- {
1251
- name: "Tokens",
1252
- index: 71
1253
- }
1254
- ],
1255
- nativeAssets: "Balances",
1256
- otherAssets: [
1257
- "Tokens",
1258
- "Currencies"
1259
- ]
1260
- };
1261
1016
  var HeimaPaseo = {
1262
1017
  defaultPallet: "PolkadotXcm",
1263
1018
  supportedPallets: [
@@ -1340,32 +1095,6 @@ var NeuroWebPaseo = {
1340
1095
  "ForeignAssets"
1341
1096
  ]
1342
1097
  };
1343
- var ZeitgeistPaseo = {
1344
- defaultPallet: "XTokens",
1345
- supportedPallets: [
1346
- {
1347
- name: "Balances",
1348
- index: 10
1349
- },
1350
- {
1351
- name: "AssetManager",
1352
- index: 40
1353
- },
1354
- {
1355
- name: "PolkadotXcm",
1356
- index: 122
1357
- },
1358
- {
1359
- name: "XTokens",
1360
- index: 126
1361
- }
1362
- ],
1363
- nativeAssets: "Balances",
1364
- otherAssets: [
1365
- "AssetManager",
1366
- "Tokens"
1367
- ]
1368
- };
1369
1098
  var Westend = {
1370
1099
  defaultPallet: "XcmPallet",
1371
1100
  supportedPallets: [
@@ -1475,9 +1204,7 @@ var pallets = {
1475
1204
  Centrifuge: Centrifuge,
1476
1205
  Darwinia: Darwinia,
1477
1206
  Hydration: Hydration,
1478
- Interlay: Interlay,
1479
1207
  Heima: Heima,
1480
- Moonbeam: Moonbeam,
1481
1208
  AssetHubKusama: AssetHubKusama,
1482
1209
  Encointer: Encointer,
1483
1210
  Basilisk: Basilisk,
@@ -1485,15 +1212,11 @@ var pallets = {
1485
1212
  CrustShadow: CrustShadow,
1486
1213
  Crab: Crab,
1487
1214
  Karura: Karura,
1488
- Kintsugi: Kintsugi,
1489
- Moonriver: Moonriver,
1490
- Quartz: Quartz,
1491
1215
  Shiden: Shiden,
1492
1216
  Unique: Unique,
1493
1217
  Crust: Crust,
1494
1218
  NeuroWeb: NeuroWeb,
1495
1219
  Pendulum: Pendulum,
1496
- Zeitgeist: Zeitgeist,
1497
1220
  Collectives: Collectives,
1498
1221
  BridgeHubPolkadot: BridgeHubPolkadot,
1499
1222
  BridgeHubKusama: BridgeHubKusama,
@@ -1514,15 +1237,10 @@ var pallets = {
1514
1237
  PeopleWestend: PeopleWestend,
1515
1238
  Penpal: Penpal,
1516
1239
  AssetHubPaseo: AssetHubPaseo,
1517
- BridgeHubPaseo: BridgeHubPaseo,
1518
- CoretimePaseo: CoretimePaseo,
1519
1240
  PeoplePaseo: PeoplePaseo,
1520
- AjunaPaseo: AjunaPaseo,
1521
- BifrostPaseo: BifrostPaseo,
1522
1241
  HeimaPaseo: HeimaPaseo,
1523
1242
  HydrationPaseo: HydrationPaseo,
1524
1243
  NeuroWebPaseo: NeuroWebPaseo,
1525
- ZeitgeistPaseo: ZeitgeistPaseo,
1526
1244
  Westend: Westend,
1527
1245
  Paseo: Paseo,
1528
1246
  EnergyWebX: EnergyWebX,
@@ -1534,7 +1252,6 @@ var palletsMapJson = /*#__PURE__*/Object.freeze({
1534
1252
  __proto__: null,
1535
1253
  Acala: Acala,
1536
1254
  Ajuna: Ajuna,
1537
- AjunaPaseo: AjunaPaseo,
1538
1255
  AssetHubKusama: AssetHubKusama,
1539
1256
  AssetHubPaseo: AssetHubPaseo,
1540
1257
  AssetHubPolkadot: AssetHubPolkadot,
@@ -1542,17 +1259,14 @@ var palletsMapJson = /*#__PURE__*/Object.freeze({
1542
1259
  Astar: Astar,
1543
1260
  Basilisk: Basilisk,
1544
1261
  BifrostKusama: BifrostKusama,
1545
- BifrostPaseo: BifrostPaseo,
1546
1262
  BifrostPolkadot: BifrostPolkadot,
1547
1263
  BridgeHubKusama: BridgeHubKusama,
1548
- BridgeHubPaseo: BridgeHubPaseo,
1549
1264
  BridgeHubPolkadot: BridgeHubPolkadot,
1550
1265
  BridgeHubWestend: BridgeHubWestend,
1551
1266
  Centrifuge: Centrifuge,
1552
1267
  Collectives: Collectives,
1553
1268
  CollectivesWestend: CollectivesWestend,
1554
1269
  CoretimeKusama: CoretimeKusama,
1555
- CoretimePaseo: CoretimePaseo,
1556
1270
  CoretimePolkadot: CoretimePolkadot,
1557
1271
  CoretimeWestend: CoretimeWestend,
1558
1272
  Crab: Crab,
@@ -1566,13 +1280,9 @@ var palletsMapJson = /*#__PURE__*/Object.freeze({
1566
1280
  HeimaPaseo: HeimaPaseo,
1567
1281
  Hydration: Hydration,
1568
1282
  HydrationPaseo: HydrationPaseo,
1569
- Interlay: Interlay,
1570
1283
  Jamton: Jamton,
1571
1284
  Karura: Karura,
1572
- Kintsugi: Kintsugi,
1573
1285
  Kusama: Kusama,
1574
- Moonbeam: Moonbeam,
1575
- Moonriver: Moonriver,
1576
1286
  Mythos: Mythos,
1577
1287
  NeuroWeb: NeuroWeb,
1578
1288
  NeuroWebPaseo: NeuroWebPaseo,
@@ -1585,14 +1295,11 @@ var palletsMapJson = /*#__PURE__*/Object.freeze({
1585
1295
  PeoplePolkadot: PeoplePolkadot,
1586
1296
  PeopleWestend: PeopleWestend,
1587
1297
  Polkadot: Polkadot,
1588
- Quartz: Quartz,
1589
1298
  RobonomicsPolkadot: RobonomicsPolkadot,
1590
1299
  Shiden: Shiden,
1591
1300
  Unique: Unique,
1592
1301
  Westend: Westend,
1593
1302
  Xode: Xode,
1594
- Zeitgeist: Zeitgeist,
1595
- ZeitgeistPaseo: ZeitgeistPaseo,
1596
1303
  default: pallets
1597
1304
  });
1598
1305
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paraspell/pallets",
3
- "version": "14.1.0-rc",
3
+ "version": "14.1.0",
4
4
  "description": "Pallets for ParaSpell XCM/XCMP tool for developers",
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,7 +22,7 @@
22
22
  "dist"
23
23
  ],
24
24
  "dependencies": {
25
- "@paraspell/sdk-common": "14.1.0-rc"
25
+ "@paraspell/sdk-common": "14.1.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@babel/plugin-syntax-import-attributes": "^7.29.7",
@@ -31,11 +31,11 @@
31
31
  "@rollup/plugin-babel": "^7.1.0",
32
32
  "@rollup/plugin-json": "^6.1.0",
33
33
  "@rollup/plugin-typescript": "^12.3.0",
34
- "@vitest/coverage-v8": "^4.1.9",
34
+ "@vitest/coverage-v8": "^4.1.10",
35
35
  "dotenv": "^17.4.2",
36
- "rollup": "^4.62.2",
36
+ "rollup": "^4.62.3",
37
37
  "rollup-plugin-dts": "^6.4.1",
38
- "tsx": "^4.22.4"
38
+ "tsx": "^4.23.1"
39
39
  },
40
40
  "scripts": {
41
41
  "compile": "tsc --noEmit",