@paraspell/sdk-pjs 9.0.0 → 9.1.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/dist/index.cjs +3 -4
- package/dist/index.mjs +3 -4
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -931,7 +931,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
931
931
|
value: function () {
|
|
932
932
|
var _getDryRunCall = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee14(_ref4) {
|
|
933
933
|
var _this$api$call$dryRun;
|
|
934
|
-
var tx, address, node, supportsDryRunApi,
|
|
934
|
+
var tx, address, node, supportsDryRunApi, needsVersionParam, DEFAULT_XCM_VERSION, response, result, resultJson, isSuccess, moduleError, failureReason, executionFee, fee, actualWeight, weight, forwardedXcms, destParaId;
|
|
935
935
|
return _regeneratorRuntime().wrap(function _callee14$(_context14) {
|
|
936
936
|
while (1) switch (_context14.prev = _context14.next) {
|
|
937
937
|
case 0:
|
|
@@ -943,15 +943,14 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
943
943
|
}
|
|
944
944
|
throw new sdkCore.NodeNotSupportedError("DryRunApi is not available on node ".concat(node));
|
|
945
945
|
case 4:
|
|
946
|
-
|
|
947
|
-
isBifrost = node === 'BifrostPolkadot' || node === 'BifrostKusama' || node === 'AssetHubKusama';
|
|
946
|
+
needsVersionParam = node === 'BifrostPolkadot' || node === 'BifrostKusama' || node === 'AssetHubKusama' || node === 'Kusama';
|
|
948
947
|
DEFAULT_XCM_VERSION = 3;
|
|
949
948
|
_context14.next = 8;
|
|
950
949
|
return (_this$api$call$dryRun = this.api.call.dryRunApi).dryRunCall.apply(_this$api$call$dryRun, [{
|
|
951
950
|
system: {
|
|
952
951
|
Signed: address
|
|
953
952
|
}
|
|
954
|
-
}, tx].concat(_toConsumableArray(
|
|
953
|
+
}, tx].concat(_toConsumableArray(needsVersionParam ? [DEFAULT_XCM_VERSION] : [])));
|
|
955
954
|
case 8:
|
|
956
955
|
response = _context14.sent;
|
|
957
956
|
result = response.toHuman();
|
package/dist/index.mjs
CHANGED
|
@@ -930,7 +930,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
930
930
|
value: function () {
|
|
931
931
|
var _getDryRunCall = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee14(_ref4) {
|
|
932
932
|
var _this$api$call$dryRun;
|
|
933
|
-
var tx, address, node, supportsDryRunApi,
|
|
933
|
+
var tx, address, node, supportsDryRunApi, needsVersionParam, DEFAULT_XCM_VERSION, response, result, resultJson, isSuccess, moduleError, failureReason, executionFee, fee, actualWeight, weight, forwardedXcms, destParaId;
|
|
934
934
|
return _regeneratorRuntime().wrap(function _callee14$(_context14) {
|
|
935
935
|
while (1) switch (_context14.prev = _context14.next) {
|
|
936
936
|
case 0:
|
|
@@ -942,15 +942,14 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
942
942
|
}
|
|
943
943
|
throw new NodeNotSupportedError("DryRunApi is not available on node ".concat(node));
|
|
944
944
|
case 4:
|
|
945
|
-
|
|
946
|
-
isBifrost = node === 'BifrostPolkadot' || node === 'BifrostKusama' || node === 'AssetHubKusama';
|
|
945
|
+
needsVersionParam = node === 'BifrostPolkadot' || node === 'BifrostKusama' || node === 'AssetHubKusama' || node === 'Kusama';
|
|
947
946
|
DEFAULT_XCM_VERSION = 3;
|
|
948
947
|
_context14.next = 8;
|
|
949
948
|
return (_this$api$call$dryRun = this.api.call.dryRunApi).dryRunCall.apply(_this$api$call$dryRun, [{
|
|
950
949
|
system: {
|
|
951
950
|
Signed: address
|
|
952
951
|
}
|
|
953
|
-
}, tx].concat(_toConsumableArray(
|
|
952
|
+
}, tx].concat(_toConsumableArray(needsVersionParam ? [DEFAULT_XCM_VERSION] : [])));
|
|
954
953
|
case 8:
|
|
955
954
|
response = _context14.sent;
|
|
956
955
|
result = response.toHuman();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paraspell/sdk-pjs",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.1.1",
|
|
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.50",
|
|
28
28
|
"ethers": "^6.13.7",
|
|
29
29
|
"viem": "^2.28.1",
|
|
30
|
-
"@paraspell/sdk-core": "9.
|
|
30
|
+
"@paraspell/sdk-core": "9.1.1"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@polkadot/api": ">= 15.0 < 16",
|