@typus/typus-sdk 1.3.26-tails-staking → 1.3.28-tails-staking

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.
@@ -180,7 +180,8 @@ function parseTxHistory(datas, originPackage, vaults) {
180
180
  break;
181
181
  case "DailySignUpEvent":
182
182
  Action = "Check In";
183
- Tails = "".concat(event.parsedJson.tails);
183
+ Tails = event.parsedJson.tails.map(function (num) { return "#".concat(num); }).join(" ");
184
+ Exp = event.parsedJson.log[0];
184
185
  break;
185
186
  case "TransferTailsEvent":
186
187
  Action = "Transfer";
@@ -192,14 +193,17 @@ function parseTxHistory(datas, originPackage, vaults) {
192
193
  Action = "Train Tail";
193
194
  Tails = "#".concat(event.parsedJson.log[0]);
194
195
  Exp = event.parsedJson.log[1];
195
- break;
196
+ if (Number(Exp) == 0) {
197
+ return [2 /*return*/, txHistory];
198
+ }
196
199
  }
200
+ break;
197
201
  case "LevelUpEvent":
198
202
  if (event.parsedJson.log) {
199
203
  Action = "Level Up to Level ".concat(event.parsedJson.log[1]);
200
204
  Tails = "#".concat(event.parsedJson.log[0]);
201
- break;
202
205
  }
206
+ break;
203
207
  // old version events
204
208
  case "StakeNftEvent":
205
209
  Action = "Stake";
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.3.26-tails-staking",
5
+ "version": "1.3.28-tails-staking",
6
6
  "dependencies": {
7
7
  "@mysten/bcs": "^0.11.1",
8
8
  "@mysten/kiosk": "0.8.10",