@paraspell/sdk 11.12.4 → 11.12.6

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
@@ -1011,6 +1011,12 @@ var PapiApi = /*#__PURE__*/function () {
1011
1011
  value: function getMethod(tx) {
1012
1012
  return tx.decodedCall.value.type;
1013
1013
  }
1014
+ }, {
1015
+ key: "getTypeThenAssetCount",
1016
+ value: function getTypeThenAssetCount(tx) {
1017
+ if (this.getMethod(tx) !== 'transfer_assets_using_type_and_then') return undefined;
1018
+ return tx.decodedCall.value.value.assets.value.length;
1019
+ }
1014
1020
  }, {
1015
1021
  key: "calculateTransactionFee",
1016
1022
  value: function () {
package/dist/index.mjs CHANGED
@@ -1010,6 +1010,12 @@ var PapiApi = /*#__PURE__*/function () {
1010
1010
  value: function getMethod(tx) {
1011
1011
  return tx.decodedCall.value.type;
1012
1012
  }
1013
+ }, {
1014
+ key: "getTypeThenAssetCount",
1015
+ value: function getTypeThenAssetCount(tx) {
1016
+ if (this.getMethod(tx) !== 'transfer_assets_using_type_and_then') return undefined;
1017
+ return tx.decodedCall.value.value.assets.value.length;
1018
+ }
1013
1019
  }, {
1014
1020
  key: "calculateTransactionFee",
1015
1021
  value: function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paraspell/sdk",
3
- "version": "11.12.4",
3
+ "version": "11.12.6",
4
4
  "description": "SDK for ParaSpell XCM/XCMP tool for developers",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,7 +26,7 @@
26
26
  "@noble/hashes": "^1.8.0",
27
27
  "@polkadot-api/legacy-provider": "^0.3.3",
28
28
  "viem": "^2.37.9",
29
- "@paraspell/sdk-core": "11.12.4"
29
+ "@paraspell/sdk-core": "11.12.6"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "polkadot-api": ">= 1.20.0 < 2"