@paraspell/sdk 13.7.2 → 13.8.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.
Files changed (2) hide show
  1. package/dist/index.mjs +36 -22
  2. package/package.json +3 -5
package/dist/index.mjs CHANGED
@@ -693,6 +693,37 @@ var _transform = function transform(obj) {
693
693
  }
694
694
  };
695
695
 
696
+ var fetchPalletList = /*#__PURE__*/function () {
697
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(client) {
698
+ var _yield$client$getFina, hash, bytes, meta;
699
+ return _regenerator().w(function (_context) {
700
+ while (1) switch (_context.n) {
701
+ case 0:
702
+ _context.n = 1;
703
+ return client.getFinalizedBlock();
704
+ case 1:
705
+ _yield$client$getFina = _context.v;
706
+ hash = _yield$client$getFina.hash;
707
+ _context.n = 2;
708
+ return client.getMetadata(hash);
709
+ case 2:
710
+ bytes = _context.v;
711
+ meta = unifyMetadata(decAnyMetadata(bytes));
712
+ return _context.a(2, meta.pallets.map(function (p) {
713
+ return {
714
+ name: p.name,
715
+ index: p.index,
716
+ hasExtrinsics: p.calls !== undefined
717
+ };
718
+ }));
719
+ }
720
+ }, _callee);
721
+ }));
722
+ return function fetchPalletList(_x) {
723
+ return _ref.apply(this, arguments);
724
+ };
725
+ }();
726
+
696
727
  var clientPool = createClientCache(MAX_CLIENTS, /*#__PURE__*/function () {
697
728
  var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(client) {
698
729
  return _regenerator().w(function (_context) {
@@ -1005,35 +1036,18 @@ var PapiApi = /*#__PURE__*/function (_PolkadotApi) {
1005
1036
  }, {
1006
1037
  key: "fetchPalletList",
1007
1038
  value: function () {
1008
- var _fetchPalletList = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7() {
1009
- var _yield$this$api$getFi2, hash, bytes, meta;
1039
+ var _fetchPalletList2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7() {
1010
1040
  return _regenerator().w(function (_context7) {
1011
1041
  while (1) switch (_context7.n) {
1012
1042
  case 0:
1013
- _context7.n = 1;
1014
- return this.api.getFinalizedBlock();
1015
- case 1:
1016
- _yield$this$api$getFi2 = _context7.v;
1017
- hash = _yield$this$api$getFi2.hash;
1018
- _context7.n = 2;
1019
- return this.api.getMetadata(hash);
1020
- case 2:
1021
- bytes = _context7.v;
1022
- meta = unifyMetadata(decAnyMetadata(bytes));
1023
- return _context7.a(2, meta.pallets.map(function (p) {
1024
- return {
1025
- name: p.name,
1026
- index: p.index,
1027
- hasExtrinsics: p.calls !== undefined
1028
- };
1029
- }));
1043
+ return _context7.a(2, fetchPalletList(this.api));
1030
1044
  }
1031
1045
  }, _callee7, this);
1032
1046
  }));
1033
- function fetchPalletList() {
1034
- return _fetchPalletList.apply(this, arguments);
1047
+ function fetchPalletList$1() {
1048
+ return _fetchPalletList2.apply(this, arguments);
1035
1049
  }
1036
- return fetchPalletList;
1050
+ return fetchPalletList$1;
1037
1051
  }()
1038
1052
  }, {
1039
1053
  key: "getMethod",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paraspell/sdk",
3
- "version": "13.7.2",
3
+ "version": "13.8.0",
4
4
  "description": "SDK for ParaSpell XCM/XCMP tool for developers",
5
5
  "repository": {
6
6
  "type": "git",
@@ -27,7 +27,7 @@
27
27
  "@polkadot-labs/hdkd": "^0.0.28",
28
28
  "@polkadot-labs/hdkd-helpers": "^0.0.30",
29
29
  "viem": "^2.51.3",
30
- "@paraspell/sdk-core": "13.7.2"
30
+ "@paraspell/sdk-core": "13.8.0"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "polkadot-api": ">= 2 < 3"
@@ -44,11 +44,9 @@
44
44
  "@scure/bip32": "^2.2.0",
45
45
  "@scure/bip39": "^2.2.0",
46
46
  "@vitest/coverage-v8": "^4.1.7",
47
- "axios": "^1.16.1",
48
47
  "dotenv": "^17.4.2",
49
48
  "rollup": "^4.60.4",
50
- "rollup-plugin-dts": "^6.4.1",
51
- "tslib": "^2.8.1"
49
+ "rollup-plugin-dts": "^6.4.1"
52
50
  },
53
51
  "scripts": {
54
52
  "compile": "tsc --noEmit",