@merkl/api 0.20.40 → 0.20.41

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.
@@ -3868,22 +3868,20 @@ declare const eden: {
3868
3868
  };
3869
3869
  };
3870
3870
  uniswap: {
3871
- v3: {
3872
- reward: {
3873
- get: (options: {
3874
- headers?: Record<string, unknown> | undefined;
3875
- query: {
3876
- poolAddress?: string | undefined;
3877
- positionId?: string | undefined;
3878
- address: string;
3879
- };
3880
- fetch?: RequestInit | undefined;
3881
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
3882
- 200: {
3883
- [x: string]: Record<string, any[]>;
3884
- };
3885
- }>>;
3886
- };
3871
+ reward: {
3872
+ get: (options: {
3873
+ headers?: Record<string, unknown> | undefined;
3874
+ query: {
3875
+ poolAddress?: string | undefined;
3876
+ positionId?: string | undefined;
3877
+ address: string;
3878
+ };
3879
+ fetch?: RequestInit | undefined;
3880
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
3881
+ 200: {
3882
+ [x: string]: Record<string, any[]>;
3883
+ };
3884
+ }>>;
3887
3885
  };
3888
3886
  v4: {
3889
3887
  pools: {
@@ -7689,22 +7687,20 @@ declare const eden: {
7689
7687
  };
7690
7688
  };
7691
7689
  uniswap: {
7692
- v3: {
7693
- reward: {
7694
- get: (options: {
7695
- headers?: Record<string, unknown> | undefined;
7696
- query: {
7697
- poolAddress?: string | undefined;
7698
- positionId?: string | undefined;
7699
- address: string;
7700
- };
7701
- fetch?: RequestInit | undefined;
7702
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
7703
- 200: {
7704
- [x: string]: Record<string, any[]>;
7705
- };
7706
- }>>;
7707
- };
7690
+ reward: {
7691
+ get: (options: {
7692
+ headers?: Record<string, unknown> | undefined;
7693
+ query: {
7694
+ poolAddress?: string | undefined;
7695
+ positionId?: string | undefined;
7696
+ address: string;
7697
+ };
7698
+ fetch?: RequestInit | undefined;
7699
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
7700
+ 200: {
7701
+ [x: string]: Record<string, any[]>;
7702
+ };
7703
+ }>>;
7708
7704
  };
7709
7705
  v4: {
7710
7706
  pools: {
@@ -13187,21 +13183,19 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
13187
13183
  } & {
13188
13184
  v4: {
13189
13185
  uniswap: {
13190
- v3: {
13191
- reward: {
13192
- get: {
13193
- body: unknown;
13194
- params: {};
13195
- query: {
13196
- poolAddress?: string | undefined;
13197
- positionId?: string | undefined;
13198
- address: string;
13199
- };
13200
- headers: unknown;
13201
- response: {
13202
- 200: {
13203
- [x: string]: Record<string, any[]>;
13204
- };
13186
+ reward: {
13187
+ get: {
13188
+ body: unknown;
13189
+ params: {};
13190
+ query: {
13191
+ poolAddress?: string | undefined;
13192
+ positionId?: string | undefined;
13193
+ address: string;
13194
+ };
13195
+ headers: unknown;
13196
+ response: {
13197
+ 200: {
13198
+ [x: string]: Record<string, any[]>;
13205
13199
  };
13206
13200
  };
13207
13201
  };
@@ -17918,22 +17912,20 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
17918
17912
  };
17919
17913
  };
17920
17914
  uniswap: {
17921
- v3: {
17922
- reward: {
17923
- get: (options: {
17924
- headers?: Record<string, unknown> | undefined;
17925
- query: {
17926
- poolAddress?: string | undefined;
17927
- positionId?: string | undefined;
17928
- address: string;
17929
- };
17930
- fetch?: RequestInit | undefined;
17931
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
17932
- 200: {
17933
- [x: string]: Record<string, any[]>;
17934
- };
17935
- }>>;
17936
- };
17915
+ reward: {
17916
+ get: (options: {
17917
+ headers?: Record<string, unknown> | undefined;
17918
+ query: {
17919
+ poolAddress?: string | undefined;
17920
+ positionId?: string | undefined;
17921
+ address: string;
17922
+ };
17923
+ fetch?: RequestInit | undefined;
17924
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
17925
+ 200: {
17926
+ [x: string]: Record<string, any[]>;
17927
+ };
17928
+ }>>;
17937
17929
  };
17938
17930
  v4: {
17939
17931
  pools: {
@@ -21739,22 +21731,20 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
21739
21731
  };
21740
21732
  };
21741
21733
  uniswap: {
21742
- v3: {
21743
- reward: {
21744
- get: (options: {
21745
- headers?: Record<string, unknown> | undefined;
21746
- query: {
21747
- poolAddress?: string | undefined;
21748
- positionId?: string | undefined;
21749
- address: string;
21750
- };
21751
- fetch?: RequestInit | undefined;
21752
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
21753
- 200: {
21754
- [x: string]: Record<string, any[]>;
21755
- };
21756
- }>>;
21757
- };
21734
+ reward: {
21735
+ get: (options: {
21736
+ headers?: Record<string, unknown> | undefined;
21737
+ query: {
21738
+ poolAddress?: string | undefined;
21739
+ positionId?: string | undefined;
21740
+ address: string;
21741
+ };
21742
+ fetch?: RequestInit | undefined;
21743
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
21744
+ 200: {
21745
+ [x: string]: Record<string, any[]>;
21746
+ };
21747
+ }>>;
21758
21748
  };
21759
21749
  v4: {
21760
21750
  pools: {
@@ -4834,21 +4834,19 @@ declare const app: Elysia<"", false, {
4834
4834
  } & {
4835
4835
  v4: {
4836
4836
  uniswap: {
4837
- v3: {
4838
- reward: {
4839
- get: {
4840
- body: unknown;
4841
- params: {};
4842
- query: {
4843
- poolAddress?: string | undefined;
4844
- positionId?: string | undefined;
4845
- address: string;
4846
- };
4847
- headers: unknown;
4848
- response: {
4849
- 200: {
4850
- [x: string]: Record<string, any[]>;
4851
- };
4837
+ reward: {
4838
+ get: {
4839
+ body: unknown;
4840
+ params: {};
4841
+ query: {
4842
+ poolAddress?: string | undefined;
4843
+ positionId?: string | undefined;
4844
+ address: string;
4845
+ };
4846
+ headers: unknown;
4847
+ response: {
4848
+ 200: {
4849
+ [x: string]: Record<string, any[]>;
4852
4850
  };
4853
4851
  };
4854
4852
  };
@@ -4704,21 +4704,19 @@ export declare const v4: Elysia<"/v4", false, {
4704
4704
  } & {
4705
4705
  v4: {
4706
4706
  uniswap: {
4707
- v3: {
4708
- reward: {
4709
- get: {
4710
- body: unknown;
4711
- params: {};
4712
- query: {
4713
- poolAddress?: string | undefined;
4714
- positionId?: string | undefined;
4715
- address: string;
4716
- };
4717
- headers: unknown;
4718
- response: {
4719
- 200: {
4720
- [x: string]: Record<string, any[]>;
4721
- };
4707
+ reward: {
4708
+ get: {
4709
+ body: unknown;
4710
+ params: {};
4711
+ query: {
4712
+ poolAddress?: string | undefined;
4713
+ positionId?: string | undefined;
4714
+ address: string;
4715
+ };
4716
+ headers: unknown;
4717
+ response: {
4718
+ 200: {
4719
+ [x: string]: Record<string, any[]>;
4722
4720
  };
4723
4721
  };
4724
4722
  };
@@ -13,21 +13,19 @@ export declare const UniswapController: Elysia<"uniswap", false, {
13
13
  macroFn: {};
14
14
  }, {
15
15
  uniswap: {
16
- v3: {
17
- reward: {
18
- get: {
19
- body: unknown;
20
- params: {};
21
- query: {
22
- poolAddress?: string | undefined;
23
- positionId?: string | undefined;
24
- address: string;
25
- };
26
- headers: unknown;
27
- response: {
28
- 200: {
29
- [x: string]: Record<string, any[]>;
30
- };
16
+ reward: {
17
+ get: {
18
+ body: unknown;
19
+ params: {};
20
+ query: {
21
+ poolAddress?: string | undefined;
22
+ positionId?: string | undefined;
23
+ address: string;
24
+ };
25
+ headers: unknown;
26
+ response: {
27
+ 200: {
28
+ [x: string]: Record<string, any[]>;
31
29
  };
32
30
  };
33
31
  };
@@ -6,8 +6,8 @@ export const UniswapController = new Elysia({
6
6
  prefix: "uniswap",
7
7
  detail: { tags: ["Uniswap"] },
8
8
  })
9
- .group("/v3", app => {
10
- return app.get("/reward", async ({ query }) => {
9
+ .group("/reward", app => {
10
+ return app.get("", async ({ query }) => {
11
11
  return await UniswapService.findV3RewardsPerPosition(query);
12
12
  }, {
13
13
  query: RewardsPerV3PositionDto,