@merkl/api 0.10.115 → 0.10.116

Sign up to get free protection for your applications and to get access to all the features.
@@ -634,7 +634,7 @@ export namespace Prisma {
634
634
 
635
635
  /**
636
636
  * Prisma Client JS version: 5.18.0
637
- * Query Engine version: 4c784e32044a8a016d99474bd02a3b6123742169
637
+ * Query Engine version: 605197351a3c8bdd595af2d2a9bc3025bca48ea2
638
638
  */
639
639
  export type PrismaVersion = {
640
640
  client: string
@@ -373,7 +373,7 @@ export namespace Prisma {
373
373
 
374
374
  /**
375
375
  * Prisma Client JS version: 5.18.0
376
- * Query Engine version: 4c784e32044a8a016d99474bd02a3b6123742169
376
+ * Query Engine version: 605197351a3c8bdd595af2d2a9bc3025bca48ea2
377
377
  */
378
378
  export type PrismaVersion = {
379
379
  client: string
@@ -765,6 +765,20 @@ declare const eden: {
765
765
  count: number;
766
766
  } | null;
767
767
  }>>;
768
+ chains: {
769
+ get: (options: {
770
+ headers: {
771
+ authorization: string;
772
+ };
773
+ query?: Record<string, unknown> | undefined;
774
+ fetch?: RequestInit | undefined;
775
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
776
+ 200: Record<string, {
777
+ breakdown: number;
778
+ rewards: Record<string, number>;
779
+ }>;
780
+ }>>;
781
+ };
768
782
  };
769
783
  };
770
784
  chains: ((params: {
@@ -998,7 +1012,9 @@ declare const eden: {
998
1012
  query?: Record<string, unknown> | undefined;
999
1013
  fetch?: RequestInit | undefined;
1000
1014
  } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1001
- 200: string[];
1015
+ 200: {
1016
+ [address: string]: boolean;
1017
+ };
1002
1018
  }>>;
1003
1019
  };
1004
1020
  check: ((params: {
@@ -1525,11 +1541,13 @@ declare const eden: {
1525
1541
  token: ((params: {
1526
1542
  tokenAddress: string | number;
1527
1543
  }) => {
1528
- get: (options?: {
1529
- headers?: Record<string, unknown> | undefined;
1544
+ get: (options: {
1545
+ headers: {
1546
+ authorization: string;
1547
+ };
1530
1548
  query?: Record<string, unknown> | undefined;
1531
1549
  fetch?: RequestInit | undefined;
1532
- } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1550
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1533
1551
  200: {
1534
1552
  tvl: number;
1535
1553
  totalSupply: number;
@@ -2600,6 +2618,27 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
2600
2618
  };
2601
2619
  };
2602
2620
  };
2621
+ } & {
2622
+ rewards: {
2623
+ count: {
2624
+ chains: {
2625
+ get: {
2626
+ body: unknown;
2627
+ params: Record<never, string>;
2628
+ query: unknown;
2629
+ headers: {
2630
+ authorization: string;
2631
+ };
2632
+ response: {
2633
+ 200: Record<string, {
2634
+ breakdown: number;
2635
+ rewards: Record<string, number>;
2636
+ }>;
2637
+ };
2638
+ };
2639
+ };
2640
+ };
2641
+ };
2603
2642
  };
2604
2643
  } & {
2605
2644
  v4: {
@@ -2886,7 +2925,9 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
2886
2925
  query: unknown;
2887
2926
  headers: unknown;
2888
2927
  response: {
2889
- 200: string[];
2928
+ 200: {
2929
+ [address: string]: boolean;
2930
+ };
2890
2931
  };
2891
2932
  };
2892
2933
  };
@@ -3586,11 +3627,13 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
3586
3627
  get: {
3587
3628
  body: unknown;
3588
3629
  params: {
3589
- chainId: string;
3630
+ chainId: number;
3590
3631
  tokenAddress: string;
3591
3632
  };
3592
3633
  query: unknown;
3593
- headers: unknown;
3634
+ headers: {
3635
+ authorization: string;
3636
+ };
3594
3637
  response: {
3595
3638
  200: {
3596
3639
  tvl: number;
@@ -4547,6 +4590,20 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
4547
4590
  count: number;
4548
4591
  } | null;
4549
4592
  }>>;
4593
+ chains: {
4594
+ get: (options: {
4595
+ headers: {
4596
+ authorization: string;
4597
+ };
4598
+ query?: Record<string, unknown> | undefined;
4599
+ fetch?: RequestInit | undefined;
4600
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4601
+ 200: Record<string, {
4602
+ breakdown: number;
4603
+ rewards: Record<string, number>;
4604
+ }>;
4605
+ }>>;
4606
+ };
4550
4607
  };
4551
4608
  };
4552
4609
  chains: ((params: {
@@ -4780,7 +4837,9 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
4780
4837
  query?: Record<string, unknown> | undefined;
4781
4838
  fetch?: RequestInit | undefined;
4782
4839
  } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4783
- 200: string[];
4840
+ 200: {
4841
+ [address: string]: boolean;
4842
+ };
4784
4843
  }>>;
4785
4844
  };
4786
4845
  check: ((params: {
@@ -5307,11 +5366,13 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
5307
5366
  token: ((params: {
5308
5367
  tokenAddress: string | number;
5309
5368
  }) => {
5310
- get: (options?: {
5311
- headers?: Record<string, unknown> | undefined;
5369
+ get: (options: {
5370
+ headers: {
5371
+ authorization: string;
5372
+ };
5312
5373
  query?: Record<string, unknown> | undefined;
5313
5374
  fetch?: RequestInit | undefined;
5314
- } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
5375
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
5315
5376
  200: {
5316
5377
  tvl: number;
5317
5378
  totalSupply: number;
@@ -917,6 +917,27 @@ declare const app: Elysia<"", false, {
917
917
  };
918
918
  };
919
919
  };
920
+ } & {
921
+ rewards: {
922
+ count: {
923
+ chains: {
924
+ get: {
925
+ body: unknown;
926
+ params: Record<never, string>;
927
+ query: unknown;
928
+ headers: {
929
+ authorization: string;
930
+ };
931
+ response: {
932
+ 200: Record<string, {
933
+ breakdown: number;
934
+ rewards: Record<string, number>;
935
+ }>;
936
+ };
937
+ };
938
+ };
939
+ };
940
+ };
920
941
  };
921
942
  } & {
922
943
  v4: {
@@ -1203,7 +1224,9 @@ declare const app: Elysia<"", false, {
1203
1224
  query: unknown;
1204
1225
  headers: unknown;
1205
1226
  response: {
1206
- 200: string[];
1227
+ 200: {
1228
+ [address: string]: boolean;
1229
+ };
1207
1230
  };
1208
1231
  };
1209
1232
  };
@@ -1903,11 +1926,13 @@ declare const app: Elysia<"", false, {
1903
1926
  get: {
1904
1927
  body: unknown;
1905
1928
  params: {
1906
- chainId: string;
1929
+ chainId: number;
1907
1930
  tokenAddress: string;
1908
1931
  };
1909
1932
  query: unknown;
1910
- headers: unknown;
1933
+ headers: {
1934
+ authorization: string;
1935
+ };
1911
1936
  response: {
1912
1937
  200: {
1913
1938
  tvl: number;
@@ -40,7 +40,9 @@ export declare const BlacklistController: Elysia<"/blacklists", false, {
40
40
  query: unknown;
41
41
  headers: unknown;
42
42
  response: {
43
- 200: string[];
43
+ 200: {
44
+ [address: string]: boolean;
45
+ };
44
46
  };
45
47
  };
46
48
  };
@@ -2,7 +2,9 @@ import type { ChainId } from "@sdk";
2
2
  import type { AddBlacklistModel } from ".";
3
3
  export declare class BlacklistService {
4
4
  static hashId(chainId: ChainId, userAddress: string, poolAddress: string): string;
5
- static getMany(): Promise<string[]>;
5
+ static getMany(): Promise<{
6
+ [address: string]: boolean;
7
+ }>;
6
8
  static findMany(): Promise<{
7
9
  id: string;
8
10
  chainId: number;
@@ -19,11 +19,13 @@ export declare const DynamicDataController: Elysia<"/dynamicData", false, {
19
19
  get: {
20
20
  body: unknown;
21
21
  params: {
22
- chainId: string;
22
+ chainId: number;
23
23
  tokenAddress: string;
24
24
  };
25
25
  query: unknown;
26
- headers: unknown;
26
+ headers: {
27
+ authorization: string;
28
+ };
27
29
  response: {
28
30
  200: {
29
31
  tvl: number;
@@ -1,5 +1,5 @@
1
1
  export declare const DynamicDataSourceIdentifier: import("@sinclair/typebox").TObject<{
2
- chainId: import("@sinclair/typebox").TString;
2
+ chainId: import("@sinclair/typebox").TNumber;
3
3
  tokenAddress: import("@sinclair/typebox").TString;
4
4
  }>;
5
- export type PriceSourceIdentifierModel = typeof DynamicDataSourceIdentifier.static;
5
+ export type DynamicDataSourceModel = typeof DynamicDataSourceIdentifier.static;
@@ -1,3 +1,4 @@
1
+ import { type ChainId } from "@sdk";
1
2
  type output = {
2
3
  tvl: number;
3
4
  totalSupply: number;
@@ -7,6 +8,6 @@ type output = {
7
8
  };
8
9
  export declare class DynamicDataService {
9
10
  /** Fetches a single price */
10
- static queryERC20DynamicData(chainId: string, tokenAddress: string): Promise<output>;
11
+ static queryERC20DynamicData(chainId: ChainId, tokenAddress: string): Promise<output>;
11
12
  }
12
13
  export {};
@@ -159,6 +159,27 @@ export declare const RewardController: Elysia<"/rewards", false, {
159
159
  };
160
160
  };
161
161
  };
162
+ } & {
163
+ rewards: {
164
+ count: {
165
+ chains: {
166
+ get: {
167
+ body: unknown;
168
+ params: Record<never, string>;
169
+ query: unknown;
170
+ headers: {
171
+ authorization: string;
172
+ };
173
+ response: {
174
+ 200: Record<string, {
175
+ breakdown: number;
176
+ rewards: Record<string, number>;
177
+ }>;
178
+ };
179
+ };
180
+ };
181
+ };
182
+ };
162
183
  }, {
163
184
  derive: {};
164
185
  resolve: {};
@@ -432,7 +432,7 @@ export declare abstract class RewardService {
432
432
  }[];
433
433
  })[];
434
434
  })[];
435
- static findManyRootsOnChain(chainId: ChainId): Promise<any>;
435
+ static findManyRootsOnChain(chainId: ChainId): Promise<string[]>;
436
436
  static checkLastClaim(chainId: number, user: string, roots: CacheKeys["CurrentRoot"]["returns"], rewards: Awaited<ReturnType<typeof RewardService.getByRecipient>>): Promise<({
437
437
  RewardToken: {
438
438
  id: string;
@@ -899,6 +899,27 @@ export declare const v4: Elysia<"/v4", false, {
899
899
  };
900
900
  };
901
901
  };
902
+ } & {
903
+ rewards: {
904
+ count: {
905
+ chains: {
906
+ get: {
907
+ body: unknown;
908
+ params: Record<never, string>;
909
+ query: unknown;
910
+ headers: {
911
+ authorization: string;
912
+ };
913
+ response: {
914
+ 200: Record<string, {
915
+ breakdown: number;
916
+ rewards: Record<string, number>;
917
+ }>;
918
+ };
919
+ };
920
+ };
921
+ };
922
+ };
902
923
  };
903
924
  } & {
904
925
  v4: {
@@ -1185,7 +1206,9 @@ export declare const v4: Elysia<"/v4", false, {
1185
1206
  query: unknown;
1186
1207
  headers: unknown;
1187
1208
  response: {
1188
- 200: string[];
1209
+ 200: {
1210
+ [address: string]: boolean;
1211
+ };
1189
1212
  };
1190
1213
  };
1191
1214
  };
@@ -1885,11 +1908,13 @@ export declare const v4: Elysia<"/v4", false, {
1885
1908
  get: {
1886
1909
  body: unknown;
1887
1910
  params: {
1888
- chainId: string;
1911
+ chainId: number;
1889
1912
  tokenAddress: string;
1890
1913
  };
1891
1914
  query: unknown;
1892
- headers: unknown;
1915
+ headers: {
1916
+ authorization: string;
1917
+ };
1893
1918
  response: {
1894
1919
  200: {
1895
1920
  tvl: number;
@@ -925,6 +925,27 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
925
925
  };
926
926
  };
927
927
  };
928
+ } & {
929
+ rewards: {
930
+ count: {
931
+ chains: {
932
+ get: {
933
+ body: unknown;
934
+ params: Record<never, string>;
935
+ query: unknown;
936
+ headers: {
937
+ authorization: string;
938
+ };
939
+ response: {
940
+ 200: Record<string, {
941
+ breakdown: number;
942
+ rewards: Record<string, number>;
943
+ }>;
944
+ };
945
+ };
946
+ };
947
+ };
948
+ };
928
949
  };
929
950
  } & {
930
951
  v4: {
@@ -1211,7 +1232,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1211
1232
  query: unknown;
1212
1233
  headers: unknown;
1213
1234
  response: {
1214
- 200: string[];
1235
+ 200: {
1236
+ [address: string]: boolean;
1237
+ };
1215
1238
  };
1216
1239
  };
1217
1240
  };
@@ -1911,11 +1934,13 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1911
1934
  get: {
1912
1935
  body: unknown;
1913
1936
  params: {
1914
- chainId: string;
1937
+ chainId: number;
1915
1938
  tokenAddress: string;
1916
1939
  };
1917
1940
  query: unknown;
1918
- headers: unknown;
1941
+ headers: {
1942
+ authorization: string;
1943
+ };
1919
1944
  response: {
1920
1945
  200: {
1921
1946
  tvl: number;
@@ -923,6 +923,27 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
923
923
  };
924
924
  };
925
925
  };
926
+ } & {
927
+ rewards: {
928
+ count: {
929
+ chains: {
930
+ get: {
931
+ body: unknown;
932
+ params: Record<never, string>;
933
+ query: unknown;
934
+ headers: {
935
+ authorization: string;
936
+ };
937
+ response: {
938
+ 200: Record<string, {
939
+ breakdown: number;
940
+ rewards: Record<string, number>;
941
+ }>;
942
+ };
943
+ };
944
+ };
945
+ };
946
+ };
926
947
  };
927
948
  } & {
928
949
  v4: {
@@ -1209,7 +1230,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1209
1230
  query: unknown;
1210
1231
  headers: unknown;
1211
1232
  response: {
1212
- 200: string[];
1233
+ 200: {
1234
+ [address: string]: boolean;
1235
+ };
1213
1236
  };
1214
1237
  };
1215
1238
  };
@@ -1909,11 +1932,13 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1909
1932
  get: {
1910
1933
  body: unknown;
1911
1934
  params: {
1912
- chainId: string;
1935
+ chainId: number;
1913
1936
  tokenAddress: string;
1914
1937
  };
1915
1938
  query: unknown;
1916
- headers: unknown;
1939
+ headers: {
1940
+ authorization: string;
1941
+ };
1917
1942
  response: {
1918
1943
  200: {
1919
1944
  tvl: number;
@@ -926,6 +926,27 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
926
926
  };
927
927
  };
928
928
  };
929
+ } & {
930
+ rewards: {
931
+ count: {
932
+ chains: {
933
+ get: {
934
+ body: unknown;
935
+ params: Record<never, string>;
936
+ query: unknown;
937
+ headers: {
938
+ authorization: string;
939
+ };
940
+ response: {
941
+ 200: Record<string, {
942
+ breakdown: number;
943
+ rewards: Record<string, number>;
944
+ }>;
945
+ };
946
+ };
947
+ };
948
+ };
949
+ };
929
950
  };
930
951
  } & {
931
952
  v4: {
@@ -1212,7 +1233,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1212
1233
  query: unknown;
1213
1234
  headers: unknown;
1214
1235
  response: {
1215
- 200: string[];
1236
+ 200: {
1237
+ [address: string]: boolean;
1238
+ };
1216
1239
  };
1217
1240
  };
1218
1241
  };
@@ -1912,11 +1935,13 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1912
1935
  get: {
1913
1936
  body: unknown;
1914
1937
  params: {
1915
- chainId: string;
1938
+ chainId: number;
1916
1939
  tokenAddress: string;
1917
1940
  };
1918
1941
  query: unknown;
1919
- headers: unknown;
1942
+ headers: {
1943
+ authorization: string;
1944
+ };
1920
1945
  response: {
1921
1946
  200: {
1922
1947
  tvl: number;
@@ -917,6 +917,27 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
917
917
  };
918
918
  };
919
919
  };
920
+ } & {
921
+ rewards: {
922
+ count: {
923
+ chains: {
924
+ get: {
925
+ body: unknown;
926
+ params: Record<never, string>;
927
+ query: unknown;
928
+ headers: {
929
+ authorization: string;
930
+ };
931
+ response: {
932
+ 200: Record<string, {
933
+ breakdown: number;
934
+ rewards: Record<string, number>;
935
+ }>;
936
+ };
937
+ };
938
+ };
939
+ };
940
+ };
920
941
  };
921
942
  } & {
922
943
  v4: {
@@ -1203,7 +1224,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1203
1224
  query: unknown;
1204
1225
  headers: unknown;
1205
1226
  response: {
1206
- 200: string[];
1227
+ 200: {
1228
+ [address: string]: boolean;
1229
+ };
1207
1230
  };
1208
1231
  };
1209
1232
  };
@@ -1903,11 +1926,13 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1903
1926
  get: {
1904
1927
  body: unknown;
1905
1928
  params: {
1906
- chainId: string;
1929
+ chainId: number;
1907
1930
  tokenAddress: string;
1908
1931
  };
1909
1932
  query: unknown;
1910
- headers: unknown;
1933
+ headers: {
1934
+ authorization: string;
1935
+ };
1911
1936
  response: {
1912
1937
  200: {
1913
1938
  tvl: number;
@@ -922,6 +922,27 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
922
922
  };
923
923
  };
924
924
  };
925
+ } & {
926
+ rewards: {
927
+ count: {
928
+ chains: {
929
+ get: {
930
+ body: unknown;
931
+ params: Record<never, string>;
932
+ query: unknown;
933
+ headers: {
934
+ authorization: string;
935
+ };
936
+ response: {
937
+ 200: Record<string, {
938
+ breakdown: number;
939
+ rewards: Record<string, number>;
940
+ }>;
941
+ };
942
+ };
943
+ };
944
+ };
945
+ };
925
946
  };
926
947
  } & {
927
948
  v4: {
@@ -1208,7 +1229,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1208
1229
  query: unknown;
1209
1230
  headers: unknown;
1210
1231
  response: {
1211
- 200: string[];
1232
+ 200: {
1233
+ [address: string]: boolean;
1234
+ };
1212
1235
  };
1213
1236
  };
1214
1237
  };
@@ -1908,11 +1931,13 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1908
1931
  get: {
1909
1932
  body: unknown;
1910
1933
  params: {
1911
- chainId: string;
1934
+ chainId: number;
1912
1935
  tokenAddress: string;
1913
1936
  };
1914
1937
  query: unknown;
1915
- headers: unknown;
1938
+ headers: {
1939
+ authorization: string;
1940
+ };
1916
1941
  response: {
1917
1942
  200: {
1918
1943
  tvl: number;