@typus/typus-sdk 1.6.21 → 1.6.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.
@@ -173,11 +173,23 @@ function parseTxHistory(datas) {
173
173
  case "raise_fund":
174
174
  // balance_value, deactivating_value, inactive_value,
175
175
  // Number(log[2]) + Number(log[3]) + Number(log[4])
176
- if (Number(log[2]) > 0) {
176
+ if (Number(log[2]) + Number(log[4]) > 0) {
177
177
  txHistory.push({
178
178
  Action: "Deposit",
179
179
  Index: log[0],
180
- Amount: divByDecimal(Number(log[2]), decimal),
180
+ Amount: divByDecimal(Number(log[2]) + Number(log[4]), decimal),
181
+ Token: Token,
182
+ Exp: log[6],
183
+ Date: new Date(Number(event.timestampMs)),
184
+ txDigest: event.id.txDigest,
185
+ log: log,
186
+ });
187
+ }
188
+ if (Number(log[3]) > 0) {
189
+ txHistory.push({
190
+ Action: "Subscribe",
191
+ Index: log[0],
192
+ Amount: divByDecimal(Number(log[3]), decimal),
181
193
  Token: Token,
182
194
  Exp: log[6],
183
195
  Date: new Date(Number(event.timestampMs)),
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.6.21",
5
+ "version": "1.6.22",
6
6
  "dependencies": {
7
7
  "@mysten/bcs": "^0.11.1",
8
8
  "@mysten/kiosk": "0.9.34",