@typus/typus-sdk 1.6.21 → 1.6.23
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.
|
@@ -185,6 +185,40 @@ function parseTxHistory(datas) {
|
|
|
185
185
|
log: log,
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
|
+
if (Number(log[3]) > 0) {
|
|
189
|
+
txHistory.push({
|
|
190
|
+
Action: "Subscribe",
|
|
191
|
+
Index: log[0],
|
|
192
|
+
Amount: divByDecimal(Number(log[3]), decimal),
|
|
193
|
+
Token: Token,
|
|
194
|
+
Exp: log[6],
|
|
195
|
+
Date: new Date(Number(event.timestampMs)),
|
|
196
|
+
txDigest: event.id.txDigest,
|
|
197
|
+
log: log,
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
if (Number(log[4]) > 0) {
|
|
201
|
+
txHistory.push({
|
|
202
|
+
Action: "Withdraw",
|
|
203
|
+
Index: log[0],
|
|
204
|
+
Amount: divByDecimal(Number(log[4]), decimal),
|
|
205
|
+
Token: Token,
|
|
206
|
+
Exp: log[6],
|
|
207
|
+
Date: new Date(Number(event.timestampMs)),
|
|
208
|
+
txDigest: event.id.txDigest,
|
|
209
|
+
log: log,
|
|
210
|
+
});
|
|
211
|
+
txHistory.push({
|
|
212
|
+
Action: "Deposit",
|
|
213
|
+
Index: log[0],
|
|
214
|
+
Amount: divByDecimal(Number(log[4]), decimal),
|
|
215
|
+
Token: Token,
|
|
216
|
+
Exp: undefined,
|
|
217
|
+
Date: new Date(Number(event.timestampMs)),
|
|
218
|
+
txDigest: event.id.txDigest,
|
|
219
|
+
log: log,
|
|
220
|
+
});
|
|
221
|
+
}
|
|
188
222
|
if (Number(log[5]) > 0) {
|
|
189
223
|
txHistory.push({
|
|
190
224
|
Action: "Compound",
|