@merkl/api 0.10.302 → 0.10.304

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), {
@@ -318,13 +318,13 @@ export class RewardRepository {
318
318
  rb."claimed",
319
319
  rb."pending",
320
320
  r."recipient",
321
+ r."campaignId",
322
+ r."reason",
321
323
  t."address" as "rewardTokenAddress"
322
324
  FROM
323
325
  "RewardBreakdown" rb
324
326
  INNER JOIN
325
327
  "Reward" r ON rb."rewardId" = r."id"
326
- INNER JOIN
327
- "Token" t ON r."rewardTokenId" = t."id"
328
328
  WHERE
329
329
  r."root" = $1 AND r."rewardTokenId" = $2
330
330
  ORDER BY