@typus/typus-sdk 1.1.57 → 1.1.59

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.
@@ -89,7 +89,7 @@ function parseTxHistory(datas, originPackage, vaults) {
89
89
  return type.startsWith(originPackage) || type.includes("typus_nft::First") || type.includes("typus_nft::ExpUpEvent");
90
90
  })
91
91
  .reduce(function (promise, event) { return __awaiter(_this, void 0, void 0, function () {
92
- var txHistory, functionType, action, Action, Amount, Index, Period, 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;
92
+ var txHistory, functionType, action, Action, Amount, Index, Period, Vault, RiskLevel, Tails, Exp, o_token, v, period, optionType, i, i, token, amount, amount, token, amount, size, token, amount, token, amount, i, b_token, size, bidder_balance;
93
93
  var _a;
94
94
  return __generator(this, function (_b) {
95
95
  switch (_b.label) {
@@ -282,6 +282,13 @@ function parseTxHistory(datas, originPackage, vaults) {
282
282
  Action = "Rebate";
283
283
  Amount = "".concat((0, bignumber_js_1.default)(amount).toFixed(), " ").concat(token);
284
284
  break;
285
+ case "ClaimProfitSharingEvent":
286
+ token = (0, token_1.typeArgToAsset)("0x" + event.parsedJson.token.name);
287
+ amount = Number(event.parsedJson.value) / Math.pow(10, (0, token_1.assetToDecimal)(token));
288
+ Action = "Claim Profit Sharing";
289
+ Amount = "".concat((0, bignumber_js_1.default)(amount).toFixed(), " ").concat(token);
290
+ Tails = "#".concat(event.parsedJson.number);
291
+ break;
285
292
  case "NewBidEvent":
286
293
  i = txHistory.findIndex(function (x) { return x.txDigest == event.id.txDigest; });
287
294
  o_token = (0, token_1.typeArgToAsset)("0x" + event.parsedJson.o_token.name);
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.57",
5
+ "version": "1.1.59",
6
6
  "dependencies": {
7
7
  "@mysten/bcs": "^0.7.3",
8
8
  "@mysten/kiosk": "0.7.12",