@paraspell/sdk 11.12.8 → 11.12.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -314,7 +314,7 @@ function _unsupportedIterableToArray(r, a) {
314
314
  }
315
315
  }
316
316
 
317
- var LEGACY_CHAINS = ['ComposableFinance', 'Interlay', 'CrustShadow', 'Kintsugi', 'RobonomicsKusama', 'Pendulum', 'Subsocial'];
317
+ var LEGACY_CHAINS = ['ComposableFinance', 'Interlay', 'CrustShadow', 'Kintsugi', 'RobonomicsKusama', 'Pendulum'];
318
318
  // Cache settings
319
319
  var DEFAULT_TTL_MS = 60000; // 1 minute
320
320
  var MAX_CLIENTS = 100;
@@ -513,7 +513,7 @@ var _transform = function transform(obj) {
513
513
  newObj[k] = undefined;
514
514
  continue;
515
515
  }
516
- if ((k === 'dest' || k === 'who' || k === 'target') && typeof v === 'string') {
516
+ if (typeof v === 'string' && polkadotApi.getSs58AddressInfo(v).isValid) {
517
517
  newObj[k] = v;
518
518
  continue;
519
519
  }
@@ -1108,7 +1108,7 @@ var PapiApi = /*#__PURE__*/function () {
1108
1108
  case 2:
1109
1109
  sdkCore.assertHasId(asset);
1110
1110
  _context8.n = 3;
1111
- return this.api.getUnsafeApi().query.Assets.Account.getValue(chain === 'NeuroWeb' ? BigInt(asset.assetId) : asset.assetId, address);
1111
+ return this.api.getUnsafeApi().query.Assets.Account.getValue(chain.startsWith('NeuroWeb') ? BigInt(asset.assetId) : asset.assetId, address);
1112
1112
  case 3:
1113
1113
  res = _context8.v;
1114
1114
  return _context8.a(2, res && res.balance ? BigInt(res.balance) : 0n);
package/dist/index.mjs CHANGED
@@ -313,7 +313,7 @@ function _unsupportedIterableToArray(r, a) {
313
313
  }
314
314
  }
315
315
 
316
- var LEGACY_CHAINS = ['ComposableFinance', 'Interlay', 'CrustShadow', 'Kintsugi', 'RobonomicsKusama', 'Pendulum', 'Subsocial'];
316
+ var LEGACY_CHAINS = ['ComposableFinance', 'Interlay', 'CrustShadow', 'Kintsugi', 'RobonomicsKusama', 'Pendulum'];
317
317
  // Cache settings
318
318
  var DEFAULT_TTL_MS = 60000; // 1 minute
319
319
  var MAX_CLIENTS = 100;
@@ -512,7 +512,7 @@ var _transform = function transform(obj) {
512
512
  newObj[k] = undefined;
513
513
  continue;
514
514
  }
515
- if ((k === 'dest' || k === 'who' || k === 'target') && typeof v === 'string') {
515
+ if (typeof v === 'string' && getSs58AddressInfo(v).isValid) {
516
516
  newObj[k] = v;
517
517
  continue;
518
518
  }
@@ -1107,7 +1107,7 @@ var PapiApi = /*#__PURE__*/function () {
1107
1107
  case 2:
1108
1108
  assertHasId(asset);
1109
1109
  _context8.n = 3;
1110
- return this.api.getUnsafeApi().query.Assets.Account.getValue(chain === 'NeuroWeb' ? BigInt(asset.assetId) : asset.assetId, address);
1110
+ return this.api.getUnsafeApi().query.Assets.Account.getValue(chain.startsWith('NeuroWeb') ? BigInt(asset.assetId) : asset.assetId, address);
1111
1111
  case 3:
1112
1112
  res = _context8.v;
1113
1113
  return _context8.a(2, res && res.balance ? BigInt(res.balance) : 0n);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paraspell/sdk",
3
- "version": "11.12.8",
3
+ "version": "11.12.10",
4
4
  "description": "SDK for ParaSpell XCM/XCMP tool for developers",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,29 +25,29 @@
25
25
  "dependencies": {
26
26
  "@noble/hashes": "^1.8.0",
27
27
  "@polkadot-api/legacy-provider": "^0.3.3",
28
- "viem": "^2.37.9",
29
- "@paraspell/sdk-core": "11.12.8"
28
+ "viem": "^2.38.5",
29
+ "@paraspell/sdk-core": "11.12.10"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "polkadot-api": ">= 1.20.0 < 2"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@babel/plugin-syntax-import-attributes": "^7.27.1",
36
- "@babel/preset-env": "^7.28.3",
36
+ "@babel/preset-env": "^7.28.5",
37
37
  "@codecov/rollup-plugin": "^1.9.1",
38
38
  "@noble/curves": "^1.9.6",
39
39
  "@polkadot-labs/hdkd": "^0.0.25",
40
40
  "@polkadot-labs/hdkd-helpers": "^0.0.26",
41
- "@rollup/plugin-babel": "^6.0.4",
41
+ "@rollup/plugin-babel": "^6.1.0",
42
42
  "@rollup/plugin-json": "^6.1.0",
43
- "@rollup/plugin-typescript": "^12.1.4",
44
- "@scure/bip32": "^2.0.0",
45
- "@scure/bip39": "^2.0.0",
46
- "@vitest/coverage-v8": "^3.2.4",
47
- "axios": "^1.12.2",
43
+ "@rollup/plugin-typescript": "^12.3.0",
44
+ "@scure/bip32": "^2.0.1",
45
+ "@scure/bip39": "^2.0.1",
46
+ "@vitest/coverage-v8": "^4.0.6",
47
+ "axios": "^1.13.1",
48
48
  "dotenv": "^17.2.3",
49
49
  "prettier": "^3.6.2",
50
- "rollup": "^4.52.3",
50
+ "rollup": "^4.52.5",
51
51
  "rollup-plugin-dts": "^6.2.3",
52
52
  "tslib": "^2.8.1"
53
53
  },