@typus/typus-sdk 1.3.29-tails-staking → 1.3.30-tails-staking
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/config.json
CHANGED
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"MFUD": "0x7755ff79f0f27256c73e6c197e25b407ef6d4b9bd6e1af8cdd50fef28f84712c",
|
|
70
70
|
"NFT": "0x0f5162014f18686640b8d0adefd60c3fe5b377413ec4f1e77001c67d96f8501a",
|
|
71
71
|
"ORACLE": "0x71fbc7acaf513561dabdeb846e7dd5288108e56edb0b6de8d4999c4dfce21f66",
|
|
72
|
-
"TYPUS": "
|
|
72
|
+
"TYPUS": "0x88124ef8caf346cc19bf7447e72cf540fb6f228f16806effdc3dafccee747264"
|
|
73
73
|
},
|
|
74
74
|
"REGISTRY": {
|
|
75
75
|
"AIRDROP": "0xfb2fbf261f6050d100bcd026ffa0076e088506b1bec26313947239303e2a0224",
|
|
@@ -87,7 +87,8 @@
|
|
|
87
87
|
"MFUD": "0x7755ff79f0f27256c73e6c197e25b407ef6d4b9bd6e1af8cdd50fef28f84712c::mfud::MFUD",
|
|
88
88
|
"SUI": "0x2::sui::SUI",
|
|
89
89
|
"TGLD": "0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277::tgld::TGLD",
|
|
90
|
-
"USDT": "0xa38dad920880f81ea514de6db007d3a84e9116a29c60b3e69bbe418c2d9f553c::usdt::USDT"
|
|
90
|
+
"USDT": "0xa38dad920880f81ea514de6db007d3a84e9116a29c60b3e69bbe418c2d9f553c::usdt::USDT",
|
|
91
|
+
"AFSUI": "0xd31923b6821fb7ba32d23e514b43d307da6ef991f9ef1af2cc4e26a0992ac87a::afsui::AFSUI"
|
|
91
92
|
},
|
|
92
93
|
"ORACLE": {
|
|
93
94
|
"AFSUI": "0xacd75f051b8be445226f92d873fbf9bbc26fe25cec5708b1aeec44286dbbef5b",
|
|
@@ -152,7 +152,7 @@ function parseTxHistory(datas, originPackage, vaults) {
|
|
|
152
152
|
}
|
|
153
153
|
})
|
|
154
154
|
.reduce(function (promise, event) { return __awaiter(_this, void 0, void 0, function () {
|
|
155
|
-
var txHistory, functionType, action, Action, Amount, Index, Period, Vault, RiskLevel, Tails, Exp, d_token, b_token, o_token, i, i, i, token, amount, token, amount, amount, token, amount, token, amount, token, amount, b_token_name, b_token_amount, i_token_name, i_token_amount, token, amount, token, amount, deposit_amount, deposit_amount, balance, balance, profit, profit, token, amount, amount, token, amount, size, token, amount, token, amount, size, bidder_balance;
|
|
155
|
+
var txHistory, functionType, action, Action, Amount, Index, Period, Vault, RiskLevel, Tails, Exp, d_token, b_token, o_token, token, amount, i, i, i, token, amount, token, amount, amount, token, amount, token, amount, token, amount, b_token_name, b_token_amount, i_token_name, i_token_amount, token, amount, token, amount, deposit_amount, deposit_amount, balance, balance, profit, profit, token, amount, amount, token, amount, size, token, amount, token, amount, size, bidder_balance;
|
|
156
156
|
var _a, _b, _c;
|
|
157
157
|
var _d;
|
|
158
158
|
return __generator(this, function (_e) {
|
|
@@ -204,6 +204,15 @@ function parseTxHistory(datas, originPackage, vaults) {
|
|
|
204
204
|
Tails = "#".concat(event.parsedJson.log[0]);
|
|
205
205
|
}
|
|
206
206
|
break;
|
|
207
|
+
case "ClaimProfitSharingEvent":
|
|
208
|
+
if (event.parsedJson.profit_asset) {
|
|
209
|
+
token = (0, token_1.typeArgToAsset)("0x" + event.parsedJson.profit_asset.name);
|
|
210
|
+
amount = Number(event.parsedJson.log[0]) / Math.pow(10, (0, token_1.assetToDecimal)(token));
|
|
211
|
+
Action = "Harvest Dice Profit";
|
|
212
|
+
Tails = event.parsedJson.tails.map(function (num) { return "#".concat(num); }).join(" ");
|
|
213
|
+
Amount = "".concat((0, bignumber_js_1.default)(amount).toFixed(), " ").concat(token);
|
|
214
|
+
}
|
|
215
|
+
break;
|
|
207
216
|
// old version events
|
|
208
217
|
case "StakeNftEvent":
|
|
209
218
|
Action = "Stake";
|