@paraspell/sdk-pjs 11.12.5 → 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 +7 -0
- package/dist/index.mjs +7 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -714,6 +714,13 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
714
714
|
value: function getMethod(tx) {
|
|
715
715
|
return tx.method.toString();
|
|
716
716
|
}
|
|
717
|
+
}, {
|
|
718
|
+
key: "getTypeThenAssetCount",
|
|
719
|
+
value: function getTypeThenAssetCount(tx) {
|
|
720
|
+
if (this.getMethod(tx) !== 'transferAssetsUsingTypeAndThen') return undefined;
|
|
721
|
+
var human = tx.toHuman();
|
|
722
|
+
return Object.values(human.method.args.assets)[0].length;
|
|
723
|
+
}
|
|
717
724
|
}, {
|
|
718
725
|
key: "hasMethod",
|
|
719
726
|
value: function hasMethod(pallet, method) {
|
package/dist/index.mjs
CHANGED
|
@@ -713,6 +713,13 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
713
713
|
value: function getMethod(tx) {
|
|
714
714
|
return tx.method.toString();
|
|
715
715
|
}
|
|
716
|
+
}, {
|
|
717
|
+
key: "getTypeThenAssetCount",
|
|
718
|
+
value: function getTypeThenAssetCount(tx) {
|
|
719
|
+
if (this.getMethod(tx) !== 'transferAssetsUsingTypeAndThen') return undefined;
|
|
720
|
+
var human = tx.toHuman();
|
|
721
|
+
return Object.values(human.method.args.assets)[0].length;
|
|
722
|
+
}
|
|
716
723
|
}, {
|
|
717
724
|
key: "hasMethod",
|
|
718
725
|
value: function hasMethod(pallet, method) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paraspell/sdk-pjs",
|
|
3
|
-
"version": "11.12.
|
|
3
|
+
"version": "11.12.6",
|
|
4
4
|
"description": "Polkadot.js based SDK for ParaSpell XCM/XCMP tool for developers",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@snowbridge/contract-types": "0.2.0",
|
|
28
28
|
"ethers": "^6.15.0",
|
|
29
29
|
"viem": "^2.37.9",
|
|
30
|
-
"@paraspell/sdk-core": "11.12.
|
|
30
|
+
"@paraspell/sdk-core": "11.12.6"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@polkadot/api": ">= 16.0 < 17",
|