@airgap/serializer 0.13.7-beta.21 → 0.13.7-beta.22

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.
@@ -209769,14 +209769,12 @@ var TezosSaplingProtocol = /** @class */ (function (_super) {
209769
209769
  });
209770
209770
  };
209771
209771
  TezosSaplingProtocol.prototype.getTransactionDetailsFromSigned = function (transaction, data) {
209772
+ var _a;
209772
209773
  return __awaiter(this, void 0, void 0, function () {
209773
- var airGapTxs, tx, defaultDetails, partialDetails, wrappedOperation, _a, _b, _c, _d, partialDetails;
209774
- return __generator(this, function (_e) {
209775
- switch (_e.label) {
209774
+ var airGapTxs, tx, defaultDetails, partialDetails, wrappedOperation, _b, _c, _d, _e, partialDetails;
209775
+ return __generator(this, function (_f) {
209776
+ switch (_f.label) {
209776
209777
  case 0:
209777
- if (this.contract === undefined) {
209778
- throw new errors_1.PropertyUndefinedError(coinlib_error_1.Domain.TEZOS, 'Contract address not set.');
209779
- }
209780
209778
  airGapTxs = [];
209781
209779
  tx = transaction.transaction;
209782
209780
  defaultDetails = {
@@ -209788,28 +209786,28 @@ var TezosSaplingProtocol = /** @class */ (function (_super) {
209788
209786
  protocolIdentifier: this.identifier,
209789
209787
  network: this.options.network
209790
209788
  };
209791
- if (!this.contract.areValidParameters(tx)) return [3 /*break*/, 2];
209789
+ if (!((_a = this.contract) === null || _a === void 0 ? void 0 : _a.areValidParameters(tx))) return [3 /*break*/, 2];
209792
209790
  return [4 /*yield*/, this.getPartialDetailsFromContractParameters(tx, data === null || data === void 0 ? void 0 : data.knownViewingKeys)];
209793
209791
  case 1:
209794
- partialDetails = _e.sent();
209792
+ partialDetails = _f.sent();
209795
209793
  airGapTxs.push.apply(airGapTxs, partialDetails.map(function (partial) { return (__assign(__assign({}, defaultDetails), partial)); }));
209796
209794
  return [3 /*break*/, 7];
209797
209795
  case 2:
209798
- _e.trys.push([2, 5, , 7]);
209796
+ _f.trys.push([2, 5, , 7]);
209799
209797
  return [4 /*yield*/, this.tezosProtocol.unforgeSignedTezosWrappedOperation(tx)];
209800
209798
  case 3:
209801
- wrappedOperation = _e.sent();
209802
- _b = (_a = airGapTxs.push).apply;
209803
- _c = [airGapTxs];
209799
+ wrappedOperation = _f.sent();
209800
+ _c = (_b = airGapTxs.push).apply;
209801
+ _d = [airGapTxs];
209804
209802
  return [4 /*yield*/, this.getTransactionDetailsFromWrappedOperation(wrappedOperation, data === null || data === void 0 ? void 0 : data.knownViewingKeys)];
209805
209803
  case 4:
209806
- _b.apply(_a, _c.concat([(_e.sent())]));
209804
+ _c.apply(_b, _d.concat([(_f.sent())]));
209807
209805
  return [3 /*break*/, 7];
209808
209806
  case 5:
209809
- _d = _e.sent();
209807
+ _e = _f.sent();
209810
209808
  return [4 /*yield*/, this.bookkeeper.getTransactionsPartialDetails([tx], data === null || data === void 0 ? void 0 : data.knownViewingKeys)];
209811
209809
  case 6:
209812
- partialDetails = _e.sent();
209810
+ partialDetails = _f.sent();
209813
209811
  airGapTxs.push.apply(airGapTxs, partialDetails.map(function (partial) { return (__assign(__assign({}, defaultDetails), partial)); }));
209814
209812
  return [3 /*break*/, 7];
209815
209813
  case 7: return [2 /*return*/, this.filterOutPaybacks(airGapTxs)];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@airgap/serializer",
3
- "version": "0.13.7-beta.21",
3
+ "version": "0.13.7-beta.22",
4
4
  "description": "The @airgap/serializer provides serializers used in AirGap applications.",
5
5
  "keywords": [
6
6
  "airgap",