@merkl/api 0.10.303 → 0.10.305

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,9 +39,7 @@ export const RewardController = new Elysia({ prefix: "/rewards", detail: { tags:
39
39
  query.address = throwOnInvalidRequiredAddress(query.address);
40
40
  throwOnUnsupportedChainId(query.chainId);
41
41
  },
42
- detail: {
43
- description: "Returns the all the address that received rewards for a given token, sorted by descending amounts",
44
- },
42
+ detail: { hide: true },
45
43
  })
46
44
  // ─── Get Total Amount Rewarded For Token ───────────────────────────
47
45
  .get("/token/total", async ({ query }) => await RewardService.totalForToken(query), {
@@ -50,7 +48,7 @@ export const RewardController = new Elysia({ prefix: "/rewards", detail: { tags:
50
48
  query.address = throwOnInvalidRequiredAddress(query.address);
51
49
  throwOnUnsupportedChainId(query.chainId);
52
50
  },
53
- detail: { description: "Returns the total amount distributed for a given token" },
51
+ detail: { hide: true },
54
52
  })
55
53
  // ─── Get Reward Count By Chain And Root For Token ───────────────────
56
54
  .get("/token/count", async ({ query }) => await RewardService.countForToken(query), {
@@ -325,6 +325,8 @@ export class RewardRepository {
325
325
  "RewardBreakdown" rb
326
326
  INNER JOIN
327
327
  "Reward" r ON rb."rewardId" = r."id"
328
+ INNER JOIN
329
+ "Token" t ON r."rewardTokenId" = t."id"
328
330
  WHERE
329
331
  r."root" = $1 AND r."rewardTokenId" = $2
330
332
  ORDER BY