@typus/typus-sdk 1.4.66 → 1.4.67-testing-suilend-a
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.
|
@@ -39,6 +39,8 @@ function typeArgToAsset(typeArg) {
|
|
|
39
39
|
return "USDY";
|
|
40
40
|
case "0x8993129d72e733985f7f1a00396cbd055bad6f817fee36576ce483c8bbb8b87b":
|
|
41
41
|
return "HIPPO";
|
|
42
|
+
case "0x83556891f4a0f233ce7b05cfe7f957d4020492a34f5405b2cb9377d060bef4bf":
|
|
43
|
+
return "sSUI";
|
|
42
44
|
case "0x949572061c09bbedef3ac4ffc42e58632291616f0605117cec86d840e09bf519":
|
|
43
45
|
if (typeArgs[1] === "usdc") {
|
|
44
46
|
return "wUSDC";
|
|
@@ -71,7 +71,7 @@ function getFromSentio(event, userAddress, startTimestamp) {
|
|
|
71
71
|
apiUrl = "https://app.sentio.xyz/api/v1/analytics/typus/typus_v2/sql/execute";
|
|
72
72
|
requestData = {
|
|
73
73
|
sqlQuery: {
|
|
74
|
-
sql: "\n SELECT *\n FROM ".concat(event, "\n WHERE distinct_id = '").concat(userAddress, "'
|
|
74
|
+
sql: "\n SELECT *\n FROM ".concat(event, "\n WHERE distinct_id = '").concat(userAddress, "' AND timestamp >= ").concat(startTimestamp, "\n ORDER BY timestamp DESC;\n "),
|
|
75
75
|
size: 1000,
|
|
76
76
|
},
|
|
77
77
|
};
|
|
@@ -101,7 +101,7 @@ function getFromSentioWithExpUp(event, userAddress, startTimestamp) {
|
|
|
101
101
|
apiUrl = "https://app.sentio.xyz/api/v1/analytics/typus/typus_v2/sql/execute";
|
|
102
102
|
requestData = {
|
|
103
103
|
sqlQuery: {
|
|
104
|
-
sql: "\n SELECT *\n FROM ".concat(event, " N\n LEFT JOIN (\n SELECT number, distinct_id, exp_earn, transaction_hash, log_index\n FROM ExpUp\n ) S ON N.transaction_hash = S.transaction_hash
|
|
104
|
+
sql: "\n SELECT *\n FROM ".concat(event, " N\n LEFT JOIN (\n SELECT number, distinct_id, exp_earn, transaction_hash, log_index\n FROM ExpUp\n ) S ON N.transaction_hash = S.transaction_hash AND N.log_index + 1 = S.log_index\n WHERE N.distinct_id = '").concat(userAddress, "' AND N.timestamp >= ").concat(startTimestamp, "\n ORDER BY N.timestamp DESC;\n "),
|
|
105
105
|
size: 1000,
|
|
106
106
|
},
|
|
107
107
|
};
|
|
@@ -74,10 +74,10 @@ function getExpLeaderBoard(startTimestamp, endTimestamp) {
|
|
|
74
74
|
// GROUP BY number
|
|
75
75
|
// )
|
|
76
76
|
// ) S ON E.number = S.number
|
|
77
|
-
// WHERE E.timestamp >= ${startTimestamp}
|
|
77
|
+
// WHERE E.timestamp >= ${startTimestamp} AND E.timestamp < ${_endTimestamp}
|
|
78
78
|
// GROUP BY owner
|
|
79
79
|
// ORDER BY total_exp_earn DESC;`,
|
|
80
|
-
sql: "\n SELECT E.nft_id as nft_id, SUM(E.exp_earn) as total_exp_earn\n FROM ExpUp E\n WHERE E.timestamp >= ".concat(startTimestamp, "
|
|
80
|
+
sql: "\n SELECT E.nft_id as nft_id, SUM(E.exp_earn) as total_exp_earn\n FROM ExpUp E\n WHERE E.timestamp >= ".concat(startTimestamp, " AND E.timestamp < ").concat(_endTimestamp, "\n GROUP BY nft_id\n ORDER BY total_exp_earn DESC;\n "),
|
|
81
81
|
size: 200,
|
|
82
82
|
},
|
|
83
83
|
};
|
|
@@ -47,7 +47,7 @@ var TypusConfig = /** @class */ (function () {
|
|
|
47
47
|
TypusConfig.default = function (network_1, customRpcEndpoint_1) {
|
|
48
48
|
return __awaiter(this, arguments, void 0, function (network, customRpcEndpoint, branch) {
|
|
49
49
|
var _a, typusConfig, _b, _c, _d, _e, _f, typusConfig, _g, _h, _j, _k, _l;
|
|
50
|
-
if (branch === void 0) { branch = "
|
|
50
|
+
if (branch === void 0) { branch = "feat/testing_mainnet"; }
|
|
51
51
|
return __generator(this, function (_m) {
|
|
52
52
|
switch (_m.label) {
|
|
53
53
|
case 0:
|