@typus/typus-sdk 1.1.57 → 1.1.59
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.
- package/lib/mainnet.json +67 -0
- package/lib/utils/auto-bid/user-entry.d.ts +27 -0
- package/lib/utils/auto-bid/user-entry.js +102 -0
- package/lib/utils/auto-bid/view-function.d.ts +33 -0
- package/lib/utils/auto-bid/view-function.js +215 -0
- package/lib/utils/nft-staking/authorized-entry.d.ts +2 -2
- package/lib/utils/nft-staking/authorized-entry.js +29 -9
- package/lib/utils/nft-staking/user-entry.d.ts +3 -3
- package/lib/utils/nft-staking/user-entry.js +6 -6
- package/lib/utils/price.d.ts +2 -0
- package/lib/utils/price.js +101 -1
- package/lib/utils/recap2023.d.ts +1 -0
- package/lib/utils/recap2023.js +176 -0
- package/lib/utils/tails-exp-dice/fetch.d.ts +1 -0
- package/lib/utils/tails-exp-dice/fetch.js +9 -6
- package/lib/utils/token.js +4 -0
- package/lib/utils/typus-dov-single-v2/authorized-entry.d.ts +1 -0
- package/lib/utils/typus-dov-single-v2/authorized-entry.js +1 -0
- package/lib/utils/typus-dov-single-v2/mfud-user-entry.d.ts +125 -0
- package/lib/utils/typus-dov-single-v2/mfud-user-entry.js +270 -0
- package/lib/utils/typus-dov-single-v2/user-entry.d.ts +133 -30
- package/lib/utils/typus-dov-single-v2/user-entry.js +334 -253
- package/lib/utils/typus-dov-single-v2/user-history.js +8 -1
- package/package.json +1 -1
|
@@ -89,7 +89,7 @@ function parseTxHistory(datas, originPackage, vaults) {
|
|
|
89
89
|
return type.startsWith(originPackage) || type.includes("typus_nft::First") || type.includes("typus_nft::ExpUpEvent");
|
|
90
90
|
})
|
|
91
91
|
.reduce(function (promise, event) { return __awaiter(_this, void 0, void 0, function () {
|
|
92
|
-
var txHistory, functionType, action, Action, Amount, Index, Period, 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;
|
|
92
|
+
var txHistory, functionType, action, Action, Amount, Index, Period, Vault, RiskLevel, Tails, Exp, o_token, v, period, optionType, i, i, token, amount, amount, token, amount, size, token, amount, token, amount, i, b_token, size, bidder_balance;
|
|
93
93
|
var _a;
|
|
94
94
|
return __generator(this, function (_b) {
|
|
95
95
|
switch (_b.label) {
|
|
@@ -282,6 +282,13 @@ function parseTxHistory(datas, originPackage, vaults) {
|
|
|
282
282
|
Action = "Rebate";
|
|
283
283
|
Amount = "".concat((0, bignumber_js_1.default)(amount).toFixed(), " ").concat(token);
|
|
284
284
|
break;
|
|
285
|
+
case "ClaimProfitSharingEvent":
|
|
286
|
+
token = (0, token_1.typeArgToAsset)("0x" + event.parsedJson.token.name);
|
|
287
|
+
amount = Number(event.parsedJson.value) / Math.pow(10, (0, token_1.assetToDecimal)(token));
|
|
288
|
+
Action = "Claim Profit Sharing";
|
|
289
|
+
Amount = "".concat((0, bignumber_js_1.default)(amount).toFixed(), " ").concat(token);
|
|
290
|
+
Tails = "#".concat(event.parsedJson.number);
|
|
291
|
+
break;
|
|
285
292
|
case "NewBidEvent":
|
|
286
293
|
i = txHistory.findIndex(function (x) { return x.txDigest == event.id.txDigest; });
|
|
287
294
|
o_token = (0, token_1.typeArgToAsset)("0x" + event.parsedJson.o_token.name);
|