@typus/typus-sdk 1.1.21 → 1.1.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.
@@ -90,12 +90,12 @@ function parseTxHistory(datas, originPackage, vaults) {
90
90
  })
91
91
  .reduce(function (promise, event) { return __awaiter(_this, void 0, void 0, function () {
92
92
  var txHistory, functionType, action, Action, Amount, Vault, RiskLevel, Tails, Exp, o_token, v, period, optionType, i, i, token, amount, amount, token, amount, size, token, amount, i, b_token, size, bidder_balance;
93
- var _a;
94
- return __generator(this, function (_b) {
95
- switch (_b.label) {
93
+ var _a, _b;
94
+ return __generator(this, function (_c) {
95
+ switch (_c.label) {
96
96
  case 0: return [4 /*yield*/, promise];
97
97
  case 1:
98
- txHistory = _b.sent();
98
+ txHistory = _c.sent();
99
99
  functionType = (_a = new RegExp("^([^::]+)::([^::]+)::([^<]+)").exec(event.type)) === null || _a === void 0 ? void 0 : _a.slice(1, 4);
100
100
  action = functionType[2];
101
101
  if (event.parsedJson.index) {
@@ -292,7 +292,7 @@ function parseTxHistory(datas, originPackage, vaults) {
292
292
  return [2 /*return*/, txHistory];
293
293
  }
294
294
  txHistory.push({
295
- Index: vaults[event.parsedJson.index].info.index,
295
+ Index: (_b = vaults[event.parsedJson.index]) === null || _b === void 0 ? void 0 : _b.info.index,
296
296
  Action: Action,
297
297
  Amount: Amount,
298
298
  Vault: Vault,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@typus/typus-sdk",
3
3
  "author": "Typus",
4
4
  "description": "typus sdk",
5
- "version": "1.1.21",
5
+ "version": "1.1.22",
6
6
  "dependencies": {
7
7
  "@mysten/bcs": "^0.7.3",
8
8
  "@mysten/kiosk": "^0.3.3",