@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.
- package/dist/src/eden/index.d.ts +69 -79
- package/dist/src/index.d.ts +13 -15
- package/dist/src/modules/v4/router.d.ts +13 -15
- package/dist/src/modules/v4/uniswap/uniswap.controller.d.ts +13 -15
- package/dist/src/modules/v4/uniswap/uniswap.controller.js +2 -2
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/src/eden/index.d.ts
CHANGED
@@ -3868,22 +3868,20 @@ declare const eden: {
|
|
3868
3868
|
};
|
3869
3869
|
};
|
3870
3870
|
uniswap: {
|
3871
|
-
|
3872
|
-
|
3873
|
-
|
3874
|
-
|
3875
|
-
|
3876
|
-
|
3877
|
-
|
3878
|
-
|
3879
|
-
|
3880
|
-
|
3881
|
-
|
3882
|
-
|
3883
|
-
|
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
|
-
|
7693
|
-
|
7694
|
-
|
7695
|
-
|
7696
|
-
|
7697
|
-
|
7698
|
-
|
7699
|
-
|
7700
|
-
|
7701
|
-
|
7702
|
-
|
7703
|
-
|
7704
|
-
|
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
|
-
|
13191
|
-
|
13192
|
-
|
13193
|
-
|
13194
|
-
|
13195
|
-
|
13196
|
-
|
13197
|
-
|
13198
|
-
|
13199
|
-
|
13200
|
-
|
13201
|
-
|
13202
|
-
|
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
|
-
|
17922
|
-
|
17923
|
-
|
17924
|
-
|
17925
|
-
|
17926
|
-
|
17927
|
-
|
17928
|
-
|
17929
|
-
|
17930
|
-
|
17931
|
-
|
17932
|
-
|
17933
|
-
|
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
|
-
|
21743
|
-
|
21744
|
-
|
21745
|
-
|
21746
|
-
|
21747
|
-
|
21748
|
-
|
21749
|
-
|
21750
|
-
|
21751
|
-
|
21752
|
-
|
21753
|
-
|
21754
|
-
|
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: {
|
package/dist/src/index.d.ts
CHANGED
@@ -4834,21 +4834,19 @@ declare const app: Elysia<"", false, {
|
|
4834
4834
|
} & {
|
4835
4835
|
v4: {
|
4836
4836
|
uniswap: {
|
4837
|
-
|
4838
|
-
|
4839
|
-
|
4840
|
-
|
4841
|
-
|
4842
|
-
|
4843
|
-
|
4844
|
-
|
4845
|
-
|
4846
|
-
|
4847
|
-
|
4848
|
-
|
4849
|
-
|
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
|
-
|
4708
|
-
|
4709
|
-
|
4710
|
-
|
4711
|
-
|
4712
|
-
|
4713
|
-
|
4714
|
-
|
4715
|
-
|
4716
|
-
|
4717
|
-
|
4718
|
-
|
4719
|
-
|
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
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
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("/
|
10
|
-
return app.get("
|
9
|
+
.group("/reward", app => {
|
10
|
+
return app.get("", async ({ query }) => {
|
11
11
|
return await UniswapService.findV3RewardsPerPosition(query);
|
12
12
|
}, {
|
13
13
|
query: RewardsPerV3PositionDto,
|