@typus/typus-sdk 1.1.14 → 1.1.15
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.
|
@@ -85,7 +85,7 @@ function parseTxHistory(datas, originPackage, vaults) {
|
|
|
85
85
|
return type.startsWith(originPackage) || type.includes("typus_nft::First") || type.includes("typus_nft::ExpUpEvent");
|
|
86
86
|
})
|
|
87
87
|
.reduce(function (promise, event) { return __awaiter(_this, void 0, void 0, function () {
|
|
88
|
-
var txHistory, functionType, action, Action, Amount, Vault, RiskLevel, Tails, Exp, o_token, v, period, optionType, i, i, token, amount, token, amount, size, token, amount, i, b_token, size, bidder_balance;
|
|
88
|
+
var txHistory, functionType, action, Action, Amount, 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;
|
|
89
89
|
var _a;
|
|
90
90
|
return __generator(this, function (_b) {
|
|
91
91
|
switch (_b.label) {
|
|
@@ -230,6 +230,11 @@ function parseTxHistory(datas, originPackage, vaults) {
|
|
|
230
230
|
return [2 /*return*/, txHistory];
|
|
231
231
|
}
|
|
232
232
|
break;
|
|
233
|
+
case "TransferBidReceiptEvent":
|
|
234
|
+
amount = Number(event.parsedJson.amount) / Math.pow(10, Number(event.parsedJson.decimal));
|
|
235
|
+
Action = "Transfer Receipt";
|
|
236
|
+
Amount = "".concat(amount, " ").concat(o_token);
|
|
237
|
+
break;
|
|
233
238
|
case "ExerciseEvent":
|
|
234
239
|
token = (0, token_1.typeArgToAsset)("0x" + event.parsedJson.token.name);
|
|
235
240
|
amount = Number(event.parsedJson.amount) / Math.pow(10, Number(event.parsedJson.decimal));
|