@typus/typus-sdk 1.1.14 → 1.1.16
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) {
|
|
@@ -143,6 +143,12 @@ function parseTxHistory(datas, originPackage, vaults) {
|
|
|
143
143
|
break;
|
|
144
144
|
}
|
|
145
145
|
break;
|
|
146
|
+
case "2":
|
|
147
|
+
optionType = "Call Spread";
|
|
148
|
+
case "3":
|
|
149
|
+
optionType = "Put Spread";
|
|
150
|
+
case "4":
|
|
151
|
+
optionType = "Capped Call";
|
|
146
152
|
default:
|
|
147
153
|
optionType = "";
|
|
148
154
|
break;
|
|
@@ -230,6 +236,11 @@ function parseTxHistory(datas, originPackage, vaults) {
|
|
|
230
236
|
return [2 /*return*/, txHistory];
|
|
231
237
|
}
|
|
232
238
|
break;
|
|
239
|
+
case "TransferBidReceiptEvent":
|
|
240
|
+
amount = Number(event.parsedJson.amount) / Math.pow(10, Number(event.parsedJson.decimal));
|
|
241
|
+
Action = "Transfer Receipt";
|
|
242
|
+
Amount = "".concat(amount, " ").concat(o_token);
|
|
243
|
+
break;
|
|
233
244
|
case "ExerciseEvent":
|
|
234
245
|
token = (0, token_1.typeArgToAsset)("0x" + event.parsedJson.token.name);
|
|
235
246
|
amount = Number(event.parsedJson.amount) / Math.pow(10, Number(event.parsedJson.decimal));
|