@paraspell/sdk 10.3.1 → 10.4.1
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/README.md +1 -0
- package/dist/index.cjs +5 -5
- package/dist/index.mjs +5 -5
- package/package.json +2 -2
package/README.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -770,7 +770,7 @@ var PapiApi = /*#__PURE__*/function () {
|
|
|
770
770
|
while (1) switch (_context3.n) {
|
|
771
771
|
case 0:
|
|
772
772
|
clientTtlMs = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : DEFAULT_TTL_MS;
|
|
773
|
-
if (!this.initialized) {
|
|
773
|
+
if (!(this.initialized || node === 'Ethereum')) {
|
|
774
774
|
_context3.n = 1;
|
|
775
775
|
break;
|
|
776
776
|
}
|
|
@@ -858,16 +858,16 @@ var PapiApi = /*#__PURE__*/function () {
|
|
|
858
858
|
key: "callTxMethod",
|
|
859
859
|
value: function callTxMethod(_ref4) {
|
|
860
860
|
var module = _ref4.module,
|
|
861
|
-
|
|
861
|
+
method = _ref4.method,
|
|
862
862
|
parameters = _ref4.parameters;
|
|
863
863
|
var transformedParameters = _transform(parameters);
|
|
864
|
-
return this.api.getUnsafeApi().tx[module][
|
|
864
|
+
return this.api.getUnsafeApi().tx[module][method](transformedParameters);
|
|
865
865
|
}
|
|
866
866
|
}, {
|
|
867
867
|
key: "callBatchMethod",
|
|
868
868
|
value: function callBatchMethod(calls, mode) {
|
|
869
|
-
var
|
|
870
|
-
return this.api.getUnsafeApi().tx.Utility[
|
|
869
|
+
var method = mode === sdkCore.BatchMode.BATCH_ALL ? 'batch_all' : 'batch';
|
|
870
|
+
return this.api.getUnsafeApi().tx.Utility[method]({
|
|
871
871
|
calls: calls.map(function (call) {
|
|
872
872
|
return call.decodedCall;
|
|
873
873
|
})
|
package/dist/index.mjs
CHANGED
|
@@ -769,7 +769,7 @@ var PapiApi = /*#__PURE__*/function () {
|
|
|
769
769
|
while (1) switch (_context3.n) {
|
|
770
770
|
case 0:
|
|
771
771
|
clientTtlMs = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : DEFAULT_TTL_MS;
|
|
772
|
-
if (!this.initialized) {
|
|
772
|
+
if (!(this.initialized || node === 'Ethereum')) {
|
|
773
773
|
_context3.n = 1;
|
|
774
774
|
break;
|
|
775
775
|
}
|
|
@@ -857,16 +857,16 @@ var PapiApi = /*#__PURE__*/function () {
|
|
|
857
857
|
key: "callTxMethod",
|
|
858
858
|
value: function callTxMethod(_ref4) {
|
|
859
859
|
var module = _ref4.module,
|
|
860
|
-
|
|
860
|
+
method = _ref4.method,
|
|
861
861
|
parameters = _ref4.parameters;
|
|
862
862
|
var transformedParameters = _transform(parameters);
|
|
863
|
-
return this.api.getUnsafeApi().tx[module][
|
|
863
|
+
return this.api.getUnsafeApi().tx[module][method](transformedParameters);
|
|
864
864
|
}
|
|
865
865
|
}, {
|
|
866
866
|
key: "callBatchMethod",
|
|
867
867
|
value: function callBatchMethod(calls, mode) {
|
|
868
|
-
var
|
|
869
|
-
return this.api.getUnsafeApi().tx.Utility[
|
|
868
|
+
var method = mode === BatchMode.BATCH_ALL ? 'batch_all' : 'batch';
|
|
869
|
+
return this.api.getUnsafeApi().tx.Utility[method]({
|
|
870
870
|
calls: calls.map(function (call) {
|
|
871
871
|
return call.decodedCall;
|
|
872
872
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paraspell/sdk",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.4.1",
|
|
4
4
|
"description": "SDK for ParaSpell XCM/XCMP tool for developers",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@noble/hashes": "^1.8.0",
|
|
27
27
|
"viem": "^2.30.5",
|
|
28
|
-
"@paraspell/sdk-core": "10.
|
|
28
|
+
"@paraspell/sdk-core": "10.4.1"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"polkadot-api": ">= 1.13.0 < 2"
|