@merkl/api 0.10.116 → 0.10.118

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. package/dist/database/api/.generated/default.d.ts +1 -1
  2. package/dist/database/api/.generated/edge.d.ts +1 -1
  3. package/dist/database/api/.generated/index.d.ts +335 -311
  4. package/dist/database/api/.generated/libquery_engine-debian-openssl-1.1.x.so.node +0 -0
  5. package/dist/database/api/.generated/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0 -0
  6. package/dist/database/api/.generated/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
  7. package/dist/database/api/.generated/package.json +15 -2
  8. package/dist/database/api/.generated/runtime/library.d.ts +195 -79
  9. package/dist/database/api/.generated/schema.prisma +1 -1
  10. package/dist/database/api/.generated/wasm.d.ts +1 -1
  11. package/dist/database/engine/.generated/default.d.ts +1 -1
  12. package/dist/database/engine/.generated/edge.d.ts +1 -1
  13. package/dist/database/engine/.generated/index.d.ts +16 -104
  14. package/dist/database/engine/.generated/libquery_engine-debian-openssl-1.1.x.so.node +0 -0
  15. package/dist/database/engine/.generated/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0 -0
  16. package/dist/database/engine/.generated/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
  17. package/dist/database/engine/.generated/package.json +14 -1
  18. package/dist/database/engine/.generated/runtime/library.d.ts +195 -79
  19. package/dist/database/engine/.generated/wasm.d.ts +1 -1
  20. package/dist/src/eden/index.d.ts +552 -411
  21. package/dist/src/index.d.ts +194 -137
  22. package/dist/src/modules/v4/accounting/accounting.controller.d.ts +1 -1
  23. package/dist/src/modules/v4/accounting/accounting.repository.d.ts +8 -8
  24. package/dist/src/modules/v4/accounting/accounting.service.d.ts +1 -1
  25. package/dist/src/modules/v4/blacklist/blacklist.controller.d.ts +2 -2
  26. package/dist/src/modules/v4/blacklist/blacklist.repository.d.ts +2 -2
  27. package/dist/src/modules/v4/blacklist/blacklist.service.d.ts +2 -2
  28. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +14 -14
  29. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +27 -27
  30. package/dist/src/modules/v4/campaign/campaign.service.d.ts +28 -28
  31. package/dist/src/modules/v4/chain/chain.controller.d.ts +5 -5
  32. package/dist/src/modules/v4/chain/chain.repository.d.ts +6 -6
  33. package/dist/src/modules/v4/chain/chain.service.d.ts +5 -5
  34. package/dist/src/modules/v4/explorer/explorer.repository.d.ts +2 -2
  35. package/dist/src/modules/v4/explorer/explorer.service.d.ts +2 -2
  36. package/dist/src/modules/v4/merklRoot/merklRoot.controller.d.ts +21 -3
  37. package/dist/src/modules/v4/merklRoot/merklRoot.repository.d.ts +4 -4
  38. package/dist/src/modules/v4/merklRoot/merklRoot.service.d.ts +8 -9
  39. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +36 -36
  40. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +94 -94
  41. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +57 -57
  42. package/dist/src/modules/v4/price/price.controller.d.ts +8 -8
  43. package/dist/src/modules/v4/price/price.repository.d.ts +10 -10
  44. package/dist/src/modules/v4/price/price.service.d.ts +8 -8
  45. package/dist/src/modules/v4/protocol/protocol.repository.d.ts +12 -12
  46. package/dist/src/modules/v4/reward/reward.controller.d.ts +11 -8
  47. package/dist/src/modules/v4/reward/reward.model.d.ts +9 -9
  48. package/dist/src/modules/v4/reward/reward.repository.d.ts +42 -39
  49. package/dist/src/modules/v4/reward/reward.service.d.ts +133 -130
  50. package/dist/src/modules/v4/router.d.ts +194 -137
  51. package/dist/src/modules/v4/status/status.controller.d.ts +17 -17
  52. package/dist/src/modules/v4/status/status.repository.d.ts +32 -32
  53. package/dist/src/modules/v4/status/status.service.d.ts +20 -20
  54. package/dist/src/modules/v4/user/user.controller.d.ts +79 -43
  55. package/dist/src/modules/v4/user/user.repository.d.ts +7 -2
  56. package/dist/src/modules/v4/user/user.service.d.ts +10 -4
  57. package/dist/src/routes/v3/ERC20Campaigns.d.ts +194 -137
  58. package/dist/src/routes/v3/blacklist.d.ts +194 -137
  59. package/dist/src/routes/v3/campaigns.d.ts +194 -137
  60. package/dist/src/routes/v3/campaignsInfo.d.ts +194 -137
  61. package/dist/src/routes/v3/multiChainPositions.d.ts +194 -137
  62. package/dist/src/routes/v3/opportunity.d.ts +194 -137
  63. package/dist/src/routes/v3/positions.d.ts +194 -137
  64. package/dist/src/routes/v3/rewards.d.ts +194 -137
  65. package/dist/src/routes/v3/rootForTimestamp.d.ts +2 -2
  66. package/dist/src/routes/v3/updates.d.ts +194 -137
  67. package/dist/src/routes/v3/userRewards.d.ts +194 -137
  68. package/dist/tsconfig.package.tsbuildinfo +1 -1
  69. package/package.json +3 -3
  70. package/dist/src/libs/campaigns/getRewards.d.ts +0 -29
@@ -3,9 +3,9 @@ import type { Explorer } from "./explorer.model";
3
3
  export declare abstract class ExplorerService {
4
4
  static hashId(type: ExplorerType, chainId: number): string;
5
5
  static getByChainId(chainId: number): Promise<{
6
- id: string;
7
6
  type: import("../../../../database/api/.generated").$Enums.ExplorerType;
8
7
  url: string;
8
+ id: string;
9
9
  chainId: number;
10
10
  }>;
11
11
  static format(explorer: Explorer["raw"]): {
@@ -20,9 +20,9 @@ export declare abstract class ExplorerService {
20
20
  * @param url base url without / suffix
21
21
  */
22
22
  static create(chainId: number, type: ExplorerType, url: string): Promise<{
23
- id: string;
24
23
  type: import("../../../../database/api/.generated").$Enums.ExplorerType;
25
24
  url: string;
25
+ id: string;
26
26
  chainId: number;
27
27
  }>;
28
28
  }
@@ -12,7 +12,7 @@ export declare const MerklRootController: Elysia<"/roots", false, {
12
12
  macro: {};
13
13
  }, {
14
14
  roots: {
15
- index: {
15
+ timestamps: {
16
16
  get: {
17
17
  body: unknown;
18
18
  params: Record<never, string>;
@@ -24,10 +24,28 @@ export declare const MerklRootController: Elysia<"/roots", false, {
24
24
  headers: unknown;
25
25
  response: {
26
26
  200: {
27
- root: string;
27
+ timestamp: bigint;
28
28
  chainId: number;
29
+ root: string;
29
30
  epoch: number;
30
- timestamp: bigint;
31
+ }[];
32
+ };
33
+ };
34
+ };
35
+ };
36
+ } & {
37
+ roots: {
38
+ index: {
39
+ get: {
40
+ body: unknown;
41
+ params: Record<never, string>;
42
+ query: unknown;
43
+ headers: unknown;
44
+ response: {
45
+ 200: {
46
+ live: string;
47
+ tree: string;
48
+ lastTree: string;
31
49
  }[];
32
50
  };
33
51
  };
@@ -2,16 +2,16 @@ import { type ChainId } from "@sdk";
2
2
  import type { RootByTimestampModel } from "./merklRoot.model";
3
3
  export declare class MerklRootRepository {
4
4
  static firstRoot(chainId: ChainId): Promise<{
5
- root: string;
5
+ timestamp: bigint;
6
6
  chainId: number;
7
+ root: string;
7
8
  epoch: number;
8
- timestamp: bigint;
9
9
  } | null>;
10
10
  static rootForTimestamp(x: RootByTimestampModel): Promise<{
11
- root: string;
11
+ timestamp: bigint;
12
12
  chainId: number;
13
+ root: string;
13
14
  epoch: number;
14
- timestamp: bigint;
15
15
  }[]>;
16
16
  static fetch(chainId: ChainId): Promise<{
17
17
  live: any;
@@ -3,16 +3,16 @@ import type { ChainId } from "@sdk";
3
3
  import type { RootByTimestampModel } from "./merklRoot.model";
4
4
  export declare class MerklRootService {
5
5
  static firstRoot(chainId: ChainId): Promise<{
6
- root: string;
6
+ timestamp: bigint;
7
7
  chainId: number;
8
+ root: string;
8
9
  epoch: number;
9
- timestamp: bigint;
10
10
  } | null>;
11
11
  static rootForTimestamp(x: RootByTimestampModel): Promise<{
12
- root: string;
12
+ timestamp: bigint;
13
13
  chainId: number;
14
+ root: string;
14
15
  epoch: number;
15
- timestamp: bigint;
16
16
  }[]>;
17
17
  /**
18
18
  * Fetch roots for the provided chain
@@ -26,9 +26,8 @@ export declare class MerklRootService {
26
26
  * @returns record of chains to object with live and last tree roots
27
27
  */
28
28
  static fetchAll(chainIds?: ChainId[]): Promise<{
29
- [chainId: number]: {
30
- live: string;
31
- lastTree: string;
32
- };
33
- }>;
29
+ live: string;
30
+ tree: string;
31
+ lastTree: string;
32
+ }[]>;
34
33
  }
@@ -55,9 +55,9 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
55
55
  cumulated: number;
56
56
  timestamp: bigint;
57
57
  breakdowns: {
58
+ type: import("../../../../database/api/.generated").$Enums.AprType;
58
59
  id: number;
59
60
  identifier: string;
60
- type: import("../../../../database/api/.generated").$Enums.AprType;
61
61
  value: number;
62
62
  aprRecordId: string;
63
63
  }[];
@@ -67,9 +67,9 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
67
67
  total: number;
68
68
  timestamp: bigint;
69
69
  breakdowns: {
70
+ type: import("../../../../database/api/.generated").$Enums.TvlType;
70
71
  id: number;
71
72
  identifier: string;
72
- type: import("../../../../database/api/.generated").$Enums.TvlType;
73
73
  value: number;
74
74
  tvlRecordId: string;
75
75
  }[];
@@ -87,27 +87,27 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
87
87
  };
88
88
  id: string;
89
89
  tokens: {
90
- id: string;
90
+ symbol: string;
91
91
  name: string | null;
92
+ id: string;
92
93
  chainId: number;
93
94
  address: string;
94
- decimals: number;
95
- symbol: string;
96
95
  icon: string;
96
+ decimals: number;
97
97
  verified: boolean;
98
98
  price: number | null;
99
99
  }[];
100
100
  chain: {
101
- id: number;
102
101
  name: string;
102
+ id: number;
103
103
  icon: string;
104
104
  };
105
105
  protocol: {
106
- id: string;
107
- tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
108
106
  name: string;
109
- description: string;
110
107
  url: string;
108
+ description: string;
109
+ id: string;
110
+ tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
111
111
  icon: string;
112
112
  } | undefined;
113
113
  name: string;
@@ -142,9 +142,9 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
142
142
  cumulated: number;
143
143
  timestamp: bigint;
144
144
  breakdowns: {
145
+ type: import("../../../../database/api/.generated").$Enums.AprType;
145
146
  id: number;
146
147
  identifier: string;
147
- type: import("../../../../database/api/.generated").$Enums.AprType;
148
148
  value: number;
149
149
  aprRecordId: string;
150
150
  }[];
@@ -154,9 +154,9 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
154
154
  total: number;
155
155
  timestamp: bigint;
156
156
  breakdowns: {
157
+ type: import("../../../../database/api/.generated").$Enums.TvlType;
157
158
  id: number;
158
159
  identifier: string;
159
- type: import("../../../../database/api/.generated").$Enums.TvlType;
160
160
  value: number;
161
161
  tvlRecordId: string;
162
162
  }[];
@@ -174,27 +174,27 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
174
174
  };
175
175
  id: string;
176
176
  tokens: {
177
- id: string;
177
+ symbol: string;
178
178
  name: string | null;
179
+ id: string;
179
180
  chainId: number;
180
181
  address: string;
181
- decimals: number;
182
- symbol: string;
183
182
  icon: string;
183
+ decimals: number;
184
184
  verified: boolean;
185
185
  price: number | null;
186
186
  }[];
187
187
  chain: {
188
- id: number;
189
188
  name: string;
189
+ id: number;
190
190
  icon: string;
191
191
  };
192
192
  protocol: {
193
- id: string;
194
- tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
195
193
  name: string;
196
- description: string;
197
194
  url: string;
195
+ description: string;
196
+ id: string;
197
+ tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
198
198
  icon: string;
199
199
  } | undefined;
200
200
  name: string;
@@ -211,37 +211,37 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
211
211
  campaigns: ({
212
212
  params: any;
213
213
  chain: {
214
- id: number;
215
214
  name: string;
215
+ id: number;
216
216
  icon: string;
217
217
  };
218
218
  rewardToken: {
219
- id: string;
219
+ symbol: string;
220
220
  name: string | null;
221
+ id: string;
221
222
  chainId: number;
222
223
  address: string;
223
- decimals: number;
224
- symbol: string;
225
224
  icon: string;
225
+ decimals: number;
226
226
  verified: boolean;
227
227
  price: number | null;
228
228
  };
229
229
  distributionChain: {
230
- id: number;
231
230
  name: string;
231
+ id: number;
232
232
  icon: string;
233
233
  } | undefined;
234
+ type: import("../../../../database/api/.generated").$Enums.CampaignType;
234
235
  id: string;
236
+ subType: number | null;
237
+ startTimestamp: bigint;
238
+ endTimestamp: bigint;
235
239
  computeChainId: number;
236
240
  distributionChainId: number;
237
241
  campaignId: string;
238
- type: import("../../../../database/api/.generated").$Enums.CampaignType;
239
- subType: number | null;
240
242
  rewardTokenId: string;
241
243
  amount: string;
242
244
  opportunityId: string;
243
- startTimestamp: bigint;
244
- endTimestamp: bigint;
245
245
  creatorAddress: string;
246
246
  } | null)[];
247
247
  }) | null | undefined;
@@ -276,9 +276,9 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
276
276
  cumulated: number;
277
277
  timestamp: bigint;
278
278
  breakdowns: {
279
+ type: import("../../../../database/api/.generated").$Enums.AprType;
279
280
  id: number;
280
281
  identifier: string;
281
- type: import("../../../../database/api/.generated").$Enums.AprType;
282
282
  value: number;
283
283
  aprRecordId: string;
284
284
  }[];
@@ -288,9 +288,9 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
288
288
  total: number;
289
289
  timestamp: bigint;
290
290
  breakdowns: {
291
+ type: import("../../../../database/api/.generated").$Enums.TvlType;
291
292
  id: number;
292
293
  identifier: string;
293
- type: import("../../../../database/api/.generated").$Enums.TvlType;
294
294
  value: number;
295
295
  tvlRecordId: string;
296
296
  }[];
@@ -308,27 +308,27 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
308
308
  };
309
309
  id: string;
310
310
  tokens: {
311
- id: string;
311
+ symbol: string;
312
312
  name: string | null;
313
+ id: string;
313
314
  chainId: number;
314
315
  address: string;
315
- decimals: number;
316
- symbol: string;
317
316
  icon: string;
317
+ decimals: number;
318
318
  verified: boolean;
319
319
  price: number | null;
320
320
  }[];
321
321
  chain: {
322
- id: number;
323
322
  name: string;
323
+ id: number;
324
324
  icon: string;
325
325
  };
326
326
  protocol: {
327
- id: string;
328
- tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
329
327
  name: string;
330
- description: string;
331
328
  url: string;
329
+ description: string;
330
+ id: string;
331
+ tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
332
332
  icon: string;
333
333
  } | undefined;
334
334
  name: string;