@typus/typus-sdk 1.4.81 → 1.4.82

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.
@@ -199,7 +199,7 @@ function parseTxHistory(datas) {
199
199
  }
200
200
  break;
201
201
  case "reduce_fund":
202
- totalWithdrawAmount = (0, bignumber_js_1.default)(log[2]).plus(log[3]).plus(log[4]);
202
+ totalWithdrawAmount = (0, bignumber_js_1.default)(log[2]).plus(log[4]);
203
203
  if (totalWithdrawAmount.gt(0)) {
204
204
  txHistory.push({
205
205
  Action: "Withdraw",
@@ -212,6 +212,18 @@ function parseTxHistory(datas) {
212
212
  log: log,
213
213
  });
214
214
  }
215
+ if (Number(log[3]) > 0) {
216
+ txHistory.push({
217
+ Action: "Unsubscribe",
218
+ Index: log[0],
219
+ Amount: divByDecimal(Number(log[3]), decimal),
220
+ Token: Token,
221
+ Exp: log[5],
222
+ Date: new Date(Number(event.timestampMs)),
223
+ txDigest: event.id.txDigest,
224
+ log: log,
225
+ });
226
+ }
215
227
  break;
216
228
  case "claim_reward":
217
229
  txHistory.push({
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.4.81",
5
+ "version": "1.4.82",
6
6
  "dependencies": {
7
7
  "@mysten/bcs": "^0.11.1",
8
8
  "@mysten/kiosk": "0.8.10",