@paraspell/sdk-pjs 13.8.0 → 13.9.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.
Files changed (2) hide show
  1. package/dist/index.mjs +7 -2
  2. package/package.json +3 -3
package/dist/index.mjs CHANGED
@@ -1012,6 +1012,7 @@ var PolkadotJsApi = /*#__PURE__*/function (_PolkadotApi) {
1012
1012
  success: false,
1013
1013
  failureReason: failureErr.failureReason,
1014
1014
  failureSubReason: failureErr.failureSubReason,
1015
+ failureIndex: failureErr.failureIndex,
1015
1016
  asset: resolvedFeeAsset.asset
1016
1017
  });
1017
1018
  case 14:
@@ -1023,6 +1024,7 @@ var PolkadotJsApi = /*#__PURE__*/function (_PolkadotApi) {
1023
1024
  success: false,
1024
1025
  failureReason: failureErr.failureReason || 'Unknown error',
1025
1026
  failureSubReason: failureErr.failureSubReason,
1027
+ failureIndex: failureErr.failureIndex,
1026
1028
  asset: resolvedFeeAsset.asset
1027
1029
  });
1028
1030
  case 15:
@@ -1317,7 +1319,7 @@ var PolkadotJsApi = /*#__PURE__*/function (_PolkadotApi) {
1317
1319
  value: function () {
1318
1320
  var _getDryRunXcm = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee13(_ref1) {
1319
1321
  var _ref11, _ref12, _ref13;
1320
- var originLocation, xcm, asset, chain, version, origin, supportsDryRunApi, response, result, resultJson, isSuccess, _result$Ok, _execRes$Incomplete$e, _execRes$Incomplete, _execRes$Error, execRes, error, failureReason, forwardedXcms, actualWeight, weight, destParaId, _fee, emitted, reversedEvents, palletsWithIssued, feeEvent, feeAmount, fee;
1322
+ var originLocation, xcm, asset, chain, version, origin, supportsDryRunApi, response, result, resultJson, isSuccess, _result$Ok, _execRes$Incomplete$e, _execRes$Incomplete, _execRes$Error, execRes, error, isInstructionError, failureReason, failureIndex, forwardedXcms, actualWeight, weight, destParaId, _fee, emitted, reversedEvents, palletsWithIssued, feeEvent, feeAmount, fee;
1321
1323
  return _regenerator().w(function (_context13) {
1322
1324
  while (1) switch (_context13.n) {
1323
1325
  case 0:
@@ -1342,10 +1344,13 @@ var PolkadotJsApi = /*#__PURE__*/function (_PolkadotApi) {
1342
1344
  }
1343
1345
  execRes = (_result$Ok = result.Ok) === null || _result$Ok === void 0 ? void 0 : _result$Ok.executionResult;
1344
1346
  error = (_execRes$Incomplete$e = execRes === null || execRes === void 0 || (_execRes$Incomplete = execRes.Incomplete) === null || _execRes$Incomplete === void 0 ? void 0 : _execRes$Incomplete.error) !== null && _execRes$Incomplete$e !== void 0 ? _execRes$Incomplete$e : execRes === null || execRes === void 0 || (_execRes$Error = execRes.Error) === null || _execRes$Error === void 0 ? void 0 : _execRes$Error.error;
1345
- failureReason = typeof error === 'string' ? error : error.error;
1347
+ isInstructionError = typeof error !== 'string';
1348
+ failureReason = isInstructionError ? error.error : error;
1349
+ failureIndex = isInstructionError && (error === null || error === void 0 ? void 0 : error.index) != null ? Number(error.index) : undefined;
1346
1350
  return _context13.a(2, {
1347
1351
  success: false,
1348
1352
  failureReason: failureReason,
1353
+ failureIndex: failureIndex,
1349
1354
  asset: asset
1350
1355
  });
1351
1356
  case 3:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paraspell/sdk-pjs",
3
- "version": "13.8.0",
3
+ "version": "13.9.0",
4
4
  "description": "Polkadot.js based SDK for ParaSpell XCM/XCMP tool for developers",
5
5
  "repository": {
6
6
  "type": "git",
@@ -29,8 +29,8 @@
29
29
  "@snowbridge/registry": "^1.1.6",
30
30
  "ethers": "^6.16.0",
31
31
  "viem": "^2.51.3",
32
- "@paraspell/sdk-common": "13.8.0",
33
- "@paraspell/sdk-core": "13.8.0"
32
+ "@paraspell/sdk-common": "13.9.0",
33
+ "@paraspell/sdk-core": "13.9.0"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "@polkadot/api": ">= 16.0 < 17",