@typus/typus-sdk 1.2.35-exp → 1.2.36-exp

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.
@@ -281,7 +281,7 @@ function getExpLeaderBoard(startTimestamp, endTimestamp) {
281
281
  _endTimestamp = endTimestamp ? endTimestamp : "99999999999";
282
282
  requestData = {
283
283
  sqlQuery: {
284
- sql: "SELECT S.distinct_id as address, SUM(E.exp_earn) as total_exp_earn\nFROM ExpUp E\nJOIN StakeNft S ON E.number = S.number\nWHERE timestamp < ".concat(_endTimestamp, " && timestamp >= ").concat(startTimestamp, "\nGROUP BY address\nORDER BY total_exp_earn DESC;"),
284
+ sql: "SELECT S.distinct_id AS address, SUM(E.exp_earn) AS total_exp_earn\n FROM ExpUp E\n JOIN (\n SELECT number, distinct_id\n FROM StakeNft\n WHERE (number, timestamp) IN (\n SELECT number, MAX(timestamp) AS max_timestamp\n FROM StakeNft\n GROUP BY number\n )\n ) S ON E.number = S.number\n WHERE E.timestamp >= ".concat(startTimestamp, " && E.timestamp < ").concat(endTimestamp, "\n GROUP BY address\n ORDER BY total_exp_earn DESC;"),
285
285
  size: 100,
286
286
  },
287
287
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@typus/typus-sdk",
3
3
  "author": "Typus",
4
4
  "description": "typus sdk",
5
- "version": "1.2.35-exp",
5
+ "version": "1.2.36-exp",
6
6
  "dependencies": {
7
7
  "@mysten/bcs": "^0.7.3",
8
8
  "@mysten/kiosk": "0.7.12",