@paraspell/sdk-pjs 11.1.0 → 11.2.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.
- package/dist/index.cjs +10 -0
- package/dist/index.mjs +10 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -417,6 +417,11 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
417
417
|
var method = mode === sdkCore.BatchMode.BATCH_ALL ? 'batchAll' : 'batch';
|
|
418
418
|
return this.api.tx.utility[method](calls);
|
|
419
419
|
}
|
|
420
|
+
}, {
|
|
421
|
+
key: "callDispatchAsMethod",
|
|
422
|
+
value: function callDispatchAsMethod(call, address) {
|
|
423
|
+
return this.api.tx.utility.dispatchAs(address, call);
|
|
424
|
+
}
|
|
420
425
|
}, {
|
|
421
426
|
key: "objectToHex",
|
|
422
427
|
value: function objectToHex(obj, typeName) {
|
|
@@ -478,6 +483,11 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
478
483
|
}
|
|
479
484
|
return quoteAhPrice;
|
|
480
485
|
}()
|
|
486
|
+
}, {
|
|
487
|
+
key: "getEvmStorage",
|
|
488
|
+
value: function getEvmStorage(contract, slot) {
|
|
489
|
+
return Promise.resolve(this.api.query.evm.accountStorages.key(contract, slot));
|
|
490
|
+
}
|
|
481
491
|
}, {
|
|
482
492
|
key: "getBalanceNative",
|
|
483
493
|
value: function () {
|
package/dist/index.mjs
CHANGED
|
@@ -416,6 +416,11 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
416
416
|
var method = mode === BatchMode.BATCH_ALL ? 'batchAll' : 'batch';
|
|
417
417
|
return this.api.tx.utility[method](calls);
|
|
418
418
|
}
|
|
419
|
+
}, {
|
|
420
|
+
key: "callDispatchAsMethod",
|
|
421
|
+
value: function callDispatchAsMethod(call, address) {
|
|
422
|
+
return this.api.tx.utility.dispatchAs(address, call);
|
|
423
|
+
}
|
|
419
424
|
}, {
|
|
420
425
|
key: "objectToHex",
|
|
421
426
|
value: function objectToHex(obj, typeName) {
|
|
@@ -477,6 +482,11 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
477
482
|
}
|
|
478
483
|
return quoteAhPrice;
|
|
479
484
|
}()
|
|
485
|
+
}, {
|
|
486
|
+
key: "getEvmStorage",
|
|
487
|
+
value: function getEvmStorage(contract, slot) {
|
|
488
|
+
return Promise.resolve(this.api.query.evm.accountStorages.key(contract, slot));
|
|
489
|
+
}
|
|
480
490
|
}, {
|
|
481
491
|
key: "getBalanceNative",
|
|
482
492
|
value: function () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paraspell/sdk-pjs",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.2.0",
|
|
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.1.64",
|
|
28
28
|
"ethers": "^6.15.0",
|
|
29
29
|
"viem": "^2.33.2",
|
|
30
|
-
"@paraspell/sdk-core": "11.
|
|
30
|
+
"@paraspell/sdk-core": "11.2.0"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@polkadot/api": ">= 16.0 < 17",
|