@paraspell/sdk-pjs 10.3.1 → 10.4.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/README.md CHANGED
@@ -75,6 +75,7 @@ NOTES:
75
75
  ```
76
76
  Latest news:
77
77
  - Transfer info queries are now all in Builder pattern and don't require any imports other than builder.
78
+ - You can now query Ethereum asset balances on Ethereum via balance query
78
79
  ```
79
80
 
80
81
  ### Sending XCM:
package/dist/index.cjs CHANGED
@@ -304,7 +304,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
304
304
  return _regenerator().w(function (_context) {
305
305
  while (1) switch (_context.n) {
306
306
  case 0:
307
- if (!this.initialized) {
307
+ if (!(this.initialized || node === 'Ethereum')) {
308
308
  _context.n = 1;
309
309
  break;
310
310
  }
@@ -385,18 +385,18 @@ var PolkadotJsApi = /*#__PURE__*/function () {
385
385
  value: function callTxMethod(_ref) {
386
386
  var _this$api$tx$moduleLo;
387
387
  var module = _ref.module,
388
- section = _ref.section,
388
+ method = _ref.method,
389
389
  parameters = _ref.parameters;
390
390
  var values = Object.values(parameters);
391
391
  var moduleLowerCase = lowercaseFirstLetter(module);
392
- var sectionCamelCase = snakeToCamel(section);
393
- return (_this$api$tx$moduleLo = this.api.tx[moduleLowerCase])[sectionCamelCase].apply(_this$api$tx$moduleLo, values);
392
+ var methodCamelCase = snakeToCamel(method);
393
+ return (_this$api$tx$moduleLo = this.api.tx[moduleLowerCase])[methodCamelCase].apply(_this$api$tx$moduleLo, values);
394
394
  }
395
395
  }, {
396
396
  key: "callBatchMethod",
397
397
  value: function callBatchMethod(calls, mode) {
398
- var section = mode === sdkCore.BatchMode.BATCH_ALL ? 'batchAll' : 'batch';
399
- return this.api.tx.utility[section](calls);
398
+ var method = mode === sdkCore.BatchMode.BATCH_ALL ? 'batchAll' : 'batch';
399
+ return this.api.tx.utility[method](calls);
400
400
  }
401
401
  }, {
402
402
  key: "objectToHex",
package/dist/index.mjs CHANGED
@@ -303,7 +303,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
303
303
  return _regenerator().w(function (_context) {
304
304
  while (1) switch (_context.n) {
305
305
  case 0:
306
- if (!this.initialized) {
306
+ if (!(this.initialized || node === 'Ethereum')) {
307
307
  _context.n = 1;
308
308
  break;
309
309
  }
@@ -384,18 +384,18 @@ var PolkadotJsApi = /*#__PURE__*/function () {
384
384
  value: function callTxMethod(_ref) {
385
385
  var _this$api$tx$moduleLo;
386
386
  var module = _ref.module,
387
- section = _ref.section,
387
+ method = _ref.method,
388
388
  parameters = _ref.parameters;
389
389
  var values = Object.values(parameters);
390
390
  var moduleLowerCase = lowercaseFirstLetter(module);
391
- var sectionCamelCase = snakeToCamel(section);
392
- return (_this$api$tx$moduleLo = this.api.tx[moduleLowerCase])[sectionCamelCase].apply(_this$api$tx$moduleLo, values);
391
+ var methodCamelCase = snakeToCamel(method);
392
+ return (_this$api$tx$moduleLo = this.api.tx[moduleLowerCase])[methodCamelCase].apply(_this$api$tx$moduleLo, values);
393
393
  }
394
394
  }, {
395
395
  key: "callBatchMethod",
396
396
  value: function callBatchMethod(calls, mode) {
397
- var section = mode === BatchMode.BATCH_ALL ? 'batchAll' : 'batch';
398
- return this.api.tx.utility[section](calls);
397
+ var method = mode === BatchMode.BATCH_ALL ? 'batchAll' : 'batch';
398
+ return this.api.tx.utility[method](calls);
399
399
  }
400
400
  }, {
401
401
  key: "objectToHex",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paraspell/sdk-pjs",
3
- "version": "10.3.1",
3
+ "version": "10.4.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.55",
28
28
  "ethers": "^6.14.3",
29
29
  "viem": "^2.30.5",
30
- "@paraspell/sdk-core": "10.3.1"
30
+ "@paraspell/sdk-core": "10.4.0"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@polkadot/api": ">= 16.0 < 17",