@paraspell/sdk 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
|
@@ -1437,7 +1437,7 @@ var PapiApi = /*#__PURE__*/function () {
|
|
|
1437
1437
|
value: function () {
|
|
1438
1438
|
var _getDryRunCall = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee17(_ref6) {
|
|
1439
1439
|
var _this$api$getUnsafeAp;
|
|
1440
|
-
var tx, address, node, supportsDryRunApi,
|
|
1440
|
+
var tx, address, node, supportsDryRunApi, needsVersionParam, DEFAULT_XCM_VERSION, result, isSuccess, failureReason, executionFee, fee, actualWeight, weight, forwardedXcms, destParaId;
|
|
1441
1441
|
return _regeneratorRuntime().wrap(function _callee17$(_context17) {
|
|
1442
1442
|
while (1) switch (_context17.prev = _context17.next) {
|
|
1443
1443
|
case 0:
|
|
@@ -1449,8 +1449,7 @@ var PapiApi = /*#__PURE__*/function () {
|
|
|
1449
1449
|
}
|
|
1450
1450
|
throw new sdkCore.NodeNotSupportedError("DryRunApi is not available on node ".concat(node));
|
|
1451
1451
|
case 4:
|
|
1452
|
-
|
|
1453
|
-
isBifrost = node === 'BifrostPolkadot' || node === 'BifrostKusama' || node === 'AssetHubKusama';
|
|
1452
|
+
needsVersionParam = node === 'BifrostPolkadot' || node === 'BifrostKusama' || node === 'AssetHubKusama' || node === 'Kusama';
|
|
1454
1453
|
DEFAULT_XCM_VERSION = 3;
|
|
1455
1454
|
_context17.next = 8;
|
|
1456
1455
|
return (_this$api$getUnsafeAp = this.api.getUnsafeApi().apis.DryRunApi).dry_run_call.apply(_this$api$getUnsafeAp, [{
|
|
@@ -1459,7 +1458,7 @@ var PapiApi = /*#__PURE__*/function () {
|
|
|
1459
1458
|
type: 'Signed',
|
|
1460
1459
|
value: address
|
|
1461
1460
|
}
|
|
1462
|
-
}, tx.decodedCall].concat(_toConsumableArray(
|
|
1461
|
+
}, tx.decodedCall].concat(_toConsumableArray(needsVersionParam ? [DEFAULT_XCM_VERSION] : [])));
|
|
1463
1462
|
case 8:
|
|
1464
1463
|
result = _context17.sent;
|
|
1465
1464
|
isSuccess = result.success && result.value.execution_result.success;
|
package/dist/index.mjs
CHANGED
|
@@ -1436,7 +1436,7 @@ var PapiApi = /*#__PURE__*/function () {
|
|
|
1436
1436
|
value: function () {
|
|
1437
1437
|
var _getDryRunCall = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee17(_ref6) {
|
|
1438
1438
|
var _this$api$getUnsafeAp;
|
|
1439
|
-
var tx, address, node, supportsDryRunApi,
|
|
1439
|
+
var tx, address, node, supportsDryRunApi, needsVersionParam, DEFAULT_XCM_VERSION, result, isSuccess, failureReason, executionFee, fee, actualWeight, weight, forwardedXcms, destParaId;
|
|
1440
1440
|
return _regeneratorRuntime().wrap(function _callee17$(_context17) {
|
|
1441
1441
|
while (1) switch (_context17.prev = _context17.next) {
|
|
1442
1442
|
case 0:
|
|
@@ -1448,8 +1448,7 @@ var PapiApi = /*#__PURE__*/function () {
|
|
|
1448
1448
|
}
|
|
1449
1449
|
throw new NodeNotSupportedError("DryRunApi is not available on node ".concat(node));
|
|
1450
1450
|
case 4:
|
|
1451
|
-
|
|
1452
|
-
isBifrost = node === 'BifrostPolkadot' || node === 'BifrostKusama' || node === 'AssetHubKusama';
|
|
1451
|
+
needsVersionParam = node === 'BifrostPolkadot' || node === 'BifrostKusama' || node === 'AssetHubKusama' || node === 'Kusama';
|
|
1453
1452
|
DEFAULT_XCM_VERSION = 3;
|
|
1454
1453
|
_context17.next = 8;
|
|
1455
1454
|
return (_this$api$getUnsafeAp = this.api.getUnsafeApi().apis.DryRunApi).dry_run_call.apply(_this$api$getUnsafeAp, [{
|
|
@@ -1458,7 +1457,7 @@ var PapiApi = /*#__PURE__*/function () {
|
|
|
1458
1457
|
type: 'Signed',
|
|
1459
1458
|
value: address
|
|
1460
1459
|
}
|
|
1461
|
-
}, tx.decodedCall].concat(_toConsumableArray(
|
|
1460
|
+
}, tx.decodedCall].concat(_toConsumableArray(needsVersionParam ? [DEFAULT_XCM_VERSION] : [])));
|
|
1462
1461
|
case 8:
|
|
1463
1462
|
result = _context17.sent;
|
|
1464
1463
|
isSuccess = result.success && result.value.execution_result.success;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paraspell/sdk",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.1.1",
|
|
4
4
|
"description": "SDK for ParaSpell XCM/XCMP tool for developers",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"ethers": "^6.13.7",
|
|
28
28
|
"quick-lru": "^7.0.1",
|
|
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": ">= 1.10.2 < 2"
|