@merkl/api 0.10.294 → 0.10.296

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.
@@ -2229,8 +2229,10 @@ declare const eden: {
2229
2229
  query?: Record<string, unknown> | undefined;
2230
2230
  fetch?: RequestInit | undefined;
2231
2231
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
2232
- [x: string]: any;
2233
- 200: any;
2232
+ 200: {
2233
+ address: string;
2234
+ boost: string;
2235
+ }[];
2234
2236
  }>>;
2235
2237
  };
2236
2238
  };
@@ -5597,8 +5599,10 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
5597
5599
  authorization: string;
5598
5600
  };
5599
5601
  response: {
5600
- [x: string]: any;
5601
- 200: any;
5602
+ 200: {
5603
+ address: string;
5604
+ boost: string;
5605
+ }[];
5602
5606
  };
5603
5607
  };
5604
5608
  };
@@ -8593,8 +8597,10 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8593
8597
  query?: Record<string, unknown> | undefined;
8594
8598
  fetch?: RequestInit | undefined;
8595
8599
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
8596
- [x: string]: any;
8597
- 200: any;
8600
+ 200: {
8601
+ address: string;
8602
+ boost: string;
8603
+ }[];
8598
8604
  }>>;
8599
8605
  };
8600
8606
  };
@@ -2778,8 +2778,10 @@ declare const app: Elysia<"", false, {
2778
2778
  authorization: string;
2779
2779
  };
2780
2780
  response: {
2781
- [x: string]: any;
2782
- 200: any;
2781
+ 200: {
2782
+ address: string;
2783
+ boost: string;
2784
+ }[];
2783
2785
  };
2784
2786
  };
2785
2787
  };
@@ -27,8 +27,10 @@ export declare const BoostController: Elysia<"/boosts", false, {
27
27
  authorization: string;
28
28
  };
29
29
  response: {
30
- [x: string]: any;
31
- 200: any;
30
+ 200: {
31
+ address: string;
32
+ boost: string;
33
+ }[];
32
34
  };
33
35
  };
34
36
  };
@@ -1,3 +1,6 @@
1
1
  export declare class BoostService {
2
- static getEulerBoost(): Promise<any>;
2
+ static getEulerBoost(): Promise<{
3
+ address: string;
4
+ boost: string;
5
+ }[]>;
3
6
  }
@@ -1,6 +1,6 @@
1
1
  import axios from "axios";
2
2
  export class BoostService {
3
3
  static async getEulerBoost() {
4
- return (await axios.get("https://points.euler.finance/integrations/merkl/usd0multipliers")).data;
4
+ return (await axios.get("https://points.euler.finance/integrations/merkl/usd0multipliers")).data.map(({ address, score }) => ({ address, boost: score }));
5
5
  }
6
6
  }
@@ -4,7 +4,7 @@ import { ClaimRepository } from "./claims.repository";
4
4
  export class ClaimService {
5
5
  // ─── Get Historical Claims ─────────────────────────────────────────────────
6
6
  static async getHistoricalClaims(params, chainFilter = []) {
7
- const roots = (await MerklRootService.fetchAll()).map(r => r.live);
7
+ const roots = Object.values(await MerklRootService.fetchAll()).map(r => r.live);
8
8
  const rewards = await RewardService.getByRecipient(params.address, roots, true, true, chainFilter);
9
9
  const filteredRewards = chainFilter.length
10
10
  ? rewards.filter(reward => chainFilter.includes(reward.RewardToken.chainId))
@@ -2656,8 +2656,10 @@ export declare const v4: Elysia<"/v4", false, {
2656
2656
  authorization: string;
2657
2657
  };
2658
2658
  response: {
2659
- [x: string]: any;
2660
- 200: any;
2659
+ 200: {
2660
+ address: string;
2661
+ boost: string;
2662
+ }[];
2661
2663
  };
2662
2664
  };
2663
2665
  };