@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
@@ -8,64 +8,64 @@ export declare abstract class OpportunityRepository {
8
8
  static create(newOpp: CreateOpportunityModel): Promise<void>;
9
9
  static findUniqueOrThrow(id: string): Promise<{
10
10
  Chain: {
11
- id: number;
12
11
  name: string;
12
+ id: number;
13
13
  icon: string;
14
14
  };
15
15
  Tokens: {
16
- id: string;
16
+ symbol: string;
17
17
  name: string | null;
18
+ id: string;
18
19
  chainId: number;
19
20
  address: string;
20
- decimals: number;
21
- symbol: string;
22
21
  icon: string;
22
+ decimals: number;
23
23
  verified: boolean;
24
24
  price: number | null;
25
25
  }[];
26
26
  Protocols: {
27
- id: string;
28
- tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
29
27
  name: string;
30
- description: string;
31
28
  url: string;
29
+ description: string;
30
+ id: string;
31
+ tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
32
32
  icon: string;
33
33
  }[];
34
34
  MainProtocol: {
35
- id: string;
36
- tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
37
35
  name: string;
38
- description: string;
39
36
  url: string;
37
+ description: string;
38
+ id: string;
39
+ tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
40
40
  icon: string;
41
41
  } | null;
42
42
  TvlRecords: ({
43
43
  TvlBreakdown: {
44
+ type: import("../../../../database/api/.generated").$Enums.TvlType;
44
45
  id: number;
45
46
  identifier: string;
46
- type: import("../../../../database/api/.generated").$Enums.TvlType;
47
47
  value: number;
48
48
  tvlRecordId: string;
49
49
  }[];
50
50
  } & {
51
+ total: number;
51
52
  id: string;
52
53
  timestamp: bigint;
53
- total: number;
54
54
  opportunityId: string;
55
55
  })[];
56
56
  AprRecords: ({
57
57
  AprBreakdown: {
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
  }[];
64
64
  } & {
65
65
  id: string;
66
66
  timestamp: bigint;
67
- cumulated: number;
68
67
  opportunityId: string;
68
+ cumulated: number;
69
69
  })[];
70
70
  DailyRewardsRecords: ({
71
71
  DailyRewardsBreakdown: {
@@ -75,122 +75,122 @@ export declare abstract class OpportunityRepository {
75
75
  dailyRewardsRecordId: string;
76
76
  }[];
77
77
  } & {
78
+ total: number;
78
79
  id: string;
79
80
  timestamp: bigint;
80
- total: number;
81
81
  opportunityId: string;
82
82
  })[];
83
83
  } & {
84
- id: string;
85
- chainId: number;
86
- type: import("../../../../database/api/.generated").$Enums.CampaignType;
87
- identifier: string;
88
84
  name: string;
85
+ type: import("../../../../database/api/.generated").$Enums.CampaignType;
86
+ id: string;
89
87
  status: import("../../../../database/api/.generated").$Enums.Status;
88
+ tags: string[];
89
+ identifier: string;
90
+ chainId: number;
90
91
  action: import("../../../../database/api/.generated").$Enums.OpportunityAction;
91
92
  mainProtocolId: string | null;
92
93
  tvl: number;
93
94
  apr: number;
94
95
  dailyRewards: number;
95
- tags: string[];
96
96
  }>;
97
97
  static findUniqueOrThrowWithCampaigns(id: string): Promise<{
98
98
  Chain: {
99
- id: number;
100
99
  name: string;
100
+ id: number;
101
101
  icon: string;
102
102
  };
103
103
  Campaigns: ({
104
104
  ComputeChain: {
105
- id: number;
106
105
  name: string;
106
+ id: number;
107
107
  icon: string;
108
108
  };
109
109
  DistributionChain: {
110
- id: number;
111
110
  name: string;
111
+ id: number;
112
112
  icon: string;
113
113
  };
114
114
  RewardToken: {
115
- id: string;
115
+ symbol: string;
116
116
  name: string | null;
117
+ id: string;
117
118
  chainId: number;
118
119
  address: string;
119
- decimals: number;
120
- symbol: string;
121
120
  icon: string;
121
+ decimals: number;
122
122
  verified: boolean;
123
123
  price: number | null;
124
124
  };
125
125
  } & {
126
+ type: import("../../../../database/api/.generated").$Enums.CampaignType;
126
127
  id: string;
128
+ params: Prisma.JsonValue;
129
+ subType: number | null;
130
+ startTimestamp: bigint;
131
+ endTimestamp: bigint;
127
132
  computeChainId: number;
128
133
  distributionChainId: number;
129
134
  campaignId: string;
130
- type: import("../../../../database/api/.generated").$Enums.CampaignType;
131
- subType: number | null;
132
135
  rewardTokenId: string;
133
136
  amount: string;
134
137
  opportunityId: string;
135
- startTimestamp: bigint;
136
- endTimestamp: bigint;
137
- params: Prisma.JsonValue;
138
138
  creatorAddress: string;
139
139
  })[];
140
140
  Tokens: {
141
- id: string;
141
+ symbol: string;
142
142
  name: string | null;
143
+ id: string;
143
144
  chainId: number;
144
145
  address: string;
145
- decimals: number;
146
- symbol: string;
147
146
  icon: string;
147
+ decimals: number;
148
148
  verified: boolean;
149
149
  price: number | null;
150
150
  }[];
151
151
  Protocols: {
152
- id: string;
153
- tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
154
152
  name: string;
155
- description: string;
156
153
  url: string;
154
+ description: string;
155
+ id: string;
156
+ tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
157
157
  icon: string;
158
158
  }[];
159
159
  MainProtocol: {
160
- id: string;
161
- tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
162
160
  name: string;
163
- description: string;
164
161
  url: string;
162
+ description: string;
163
+ id: string;
164
+ tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
165
165
  icon: string;
166
166
  } | null;
167
167
  TvlRecords: ({
168
168
  TvlBreakdown: {
169
+ type: import("../../../../database/api/.generated").$Enums.TvlType;
169
170
  id: number;
170
171
  identifier: string;
171
- type: import("../../../../database/api/.generated").$Enums.TvlType;
172
172
  value: number;
173
173
  tvlRecordId: string;
174
174
  }[];
175
175
  } & {
176
+ total: number;
176
177
  id: string;
177
178
  timestamp: bigint;
178
- total: number;
179
179
  opportunityId: string;
180
180
  })[];
181
181
  AprRecords: ({
182
182
  AprBreakdown: {
183
+ type: import("../../../../database/api/.generated").$Enums.AprType;
183
184
  id: number;
184
185
  identifier: string;
185
- type: import("../../../../database/api/.generated").$Enums.AprType;
186
186
  value: number;
187
187
  aprRecordId: string;
188
188
  }[];
189
189
  } & {
190
190
  id: string;
191
191
  timestamp: bigint;
192
- cumulated: number;
193
192
  opportunityId: string;
193
+ cumulated: number;
194
194
  })[];
195
195
  DailyRewardsRecords: ({
196
196
  DailyRewardsBreakdown: {
@@ -200,115 +200,115 @@ export declare abstract class OpportunityRepository {
200
200
  dailyRewardsRecordId: string;
201
201
  }[];
202
202
  } & {
203
+ total: number;
203
204
  id: string;
204
205
  timestamp: bigint;
205
- total: number;
206
206
  opportunityId: string;
207
207
  })[];
208
208
  } & {
209
- id: string;
210
- chainId: number;
211
- type: import("../../../../database/api/.generated").$Enums.CampaignType;
212
- identifier: string;
213
209
  name: string;
210
+ type: import("../../../../database/api/.generated").$Enums.CampaignType;
211
+ id: string;
214
212
  status: import("../../../../database/api/.generated").$Enums.Status;
213
+ tags: string[];
214
+ identifier: string;
215
+ chainId: number;
215
216
  action: import("../../../../database/api/.generated").$Enums.OpportunityAction;
216
217
  mainProtocolId: string | null;
217
218
  tvl: number;
218
219
  apr: number;
219
220
  dailyRewards: number;
220
- tags: string[];
221
221
  }>;
222
222
  static findManyWithCampaigns(filters: Prisma.OpportunityFindManyArgs): Promise<({
223
223
  Campaigns: {
224
+ type: import("../../../../database/api/.generated").$Enums.CampaignType;
224
225
  id: string;
226
+ params: Prisma.JsonValue;
227
+ subType: number | null;
228
+ startTimestamp: bigint;
229
+ endTimestamp: bigint;
225
230
  computeChainId: number;
226
231
  distributionChainId: number;
227
232
  campaignId: string;
228
- type: import("../../../../database/api/.generated").$Enums.CampaignType;
229
- subType: number | null;
230
233
  rewardTokenId: string;
231
234
  amount: string;
232
235
  opportunityId: string;
233
- startTimestamp: bigint;
234
- endTimestamp: bigint;
235
- params: Prisma.JsonValue;
236
236
  creatorAddress: string;
237
237
  }[];
238
238
  } & {
239
- id: string;
240
- chainId: number;
241
- type: import("../../../../database/api/.generated").$Enums.CampaignType;
242
- identifier: string;
243
239
  name: string;
240
+ type: import("../../../../database/api/.generated").$Enums.CampaignType;
241
+ id: string;
244
242
  status: import("../../../../database/api/.generated").$Enums.Status;
243
+ tags: string[];
244
+ identifier: string;
245
+ chainId: number;
245
246
  action: import("../../../../database/api/.generated").$Enums.OpportunityAction;
246
247
  mainProtocolId: string | null;
247
248
  tvl: number;
248
249
  apr: number;
249
250
  dailyRewards: number;
250
- tags: string[];
251
251
  })[]>;
252
252
  static findMany(query: GetOpportunitiesQueryEntity): Promise<({
253
253
  Chain: {
254
- id: number;
255
254
  name: string;
255
+ id: number;
256
256
  icon: string;
257
257
  };
258
258
  Tokens: {
259
- id: string;
259
+ symbol: string;
260
260
  name: string | null;
261
+ id: string;
261
262
  chainId: number;
262
263
  address: string;
263
- decimals: number;
264
- symbol: string;
265
264
  icon: string;
265
+ decimals: number;
266
266
  verified: boolean;
267
267
  price: number | null;
268
268
  }[];
269
269
  Protocols: {
270
- id: string;
271
- tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
272
270
  name: string;
273
- description: string;
274
271
  url: string;
272
+ description: string;
273
+ id: string;
274
+ tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
275
275
  icon: string;
276
276
  }[];
277
277
  MainProtocol: {
278
- id: string;
279
- tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
280
278
  name: string;
281
- description: string;
282
279
  url: string;
280
+ description: string;
281
+ id: string;
282
+ tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
283
283
  icon: string;
284
284
  } | null;
285
285
  TvlRecords: ({
286
286
  TvlBreakdown: {
287
+ type: import("../../../../database/api/.generated").$Enums.TvlType;
287
288
  id: number;
288
289
  identifier: string;
289
- type: import("../../../../database/api/.generated").$Enums.TvlType;
290
290
  value: number;
291
291
  tvlRecordId: string;
292
292
  }[];
293
293
  } & {
294
+ total: number;
294
295
  id: string;
295
296
  timestamp: bigint;
296
- total: number;
297
297
  opportunityId: string;
298
298
  })[];
299
299
  AprRecords: ({
300
300
  AprBreakdown: {
301
+ type: import("../../../../database/api/.generated").$Enums.AprType;
301
302
  id: number;
302
303
  identifier: string;
303
- type: import("../../../../database/api/.generated").$Enums.AprType;
304
304
  value: number;
305
305
  aprRecordId: string;
306
306
  }[];
307
307
  } & {
308
308
  id: string;
309
309
  timestamp: bigint;
310
- cumulated: number;
311
310
  opportunityId: string;
311
+ cumulated: number;
312
312
  })[];
313
313
  DailyRewardsRecords: ({
314
314
  DailyRewardsBreakdown: {
@@ -318,24 +318,24 @@ export declare abstract class OpportunityRepository {
318
318
  dailyRewardsRecordId: string;
319
319
  }[];
320
320
  } & {
321
+ total: number;
321
322
  id: string;
322
323
  timestamp: bigint;
323
- total: number;
324
324
  opportunityId: string;
325
325
  })[];
326
326
  } & {
327
- id: string;
328
- chainId: number;
329
- type: import("../../../../database/api/.generated").$Enums.CampaignType;
330
- identifier: string;
331
327
  name: string;
328
+ type: import("../../../../database/api/.generated").$Enums.CampaignType;
329
+ id: string;
332
330
  status: import("../../../../database/api/.generated").$Enums.Status;
331
+ tags: string[];
332
+ identifier: string;
333
+ chainId: number;
333
334
  action: import("../../../../database/api/.generated").$Enums.OpportunityAction;
334
335
  mainProtocolId: string | null;
335
336
  tvl: number;
336
337
  apr: number;
337
338
  dailyRewards: number;
338
- tags: string[];
339
339
  })[]>;
340
340
  static countMany(query: GetOpportunitiesQueryEntity): Promise<number>;
341
341
  static getAllIdsForDynamicOpp(): Promise<{
@@ -352,21 +352,21 @@ export declare abstract class OpportunityRepository {
352
352
  aprRecord: {
353
353
  id: string;
354
354
  timestamp: bigint;
355
- cumulated: number;
356
355
  opportunityId: string;
356
+ cumulated: number;
357
357
  };
358
358
  tvlRecord: {
359
359
  TvlBreakdown: {
360
+ type: import("../../../../database/api/.generated").$Enums.TvlType;
360
361
  id: number;
361
362
  identifier: string;
362
- type: import("../../../../database/api/.generated").$Enums.TvlType;
363
363
  value: number;
364
364
  tvlRecordId: string;
365
365
  }[];
366
366
  } & {
367
+ total: number;
367
368
  id: string;
368
369
  timestamp: bigint;
369
- total: number;
370
370
  opportunityId: string;
371
371
  };
372
372
  dailyRewardsRecord: {
@@ -377,38 +377,38 @@ export declare abstract class OpportunityRepository {
377
377
  dailyRewardsRecordId: string;
378
378
  }[];
379
379
  } & {
380
+ total: number;
380
381
  id: string;
381
382
  timestamp: bigint;
382
- total: number;
383
383
  opportunityId: string;
384
384
  };
385
385
  opportunity: {
386
- id: string;
387
- chainId: number;
388
- type: import("../../../../database/api/.generated").$Enums.CampaignType;
389
- identifier: string;
390
386
  name: string;
387
+ type: import("../../../../database/api/.generated").$Enums.CampaignType;
388
+ id: string;
391
389
  status: import("../../../../database/api/.generated").$Enums.Status;
390
+ tags: string[];
391
+ identifier: string;
392
+ chainId: number;
392
393
  action: import("../../../../database/api/.generated").$Enums.OpportunityAction;
393
394
  mainProtocolId: string | null;
394
395
  tvl: number;
395
396
  apr: number;
396
397
  dailyRewards: number;
397
- tags: string[];
398
398
  };
399
399
  }>;
400
400
  static updateStatus(id: string, status: Status): Promise<{
401
- id: string;
402
- chainId: number;
403
- type: import("../../../../database/api/.generated").$Enums.CampaignType;
404
- identifier: string;
405
401
  name: string;
402
+ type: import("../../../../database/api/.generated").$Enums.CampaignType;
403
+ id: string;
406
404
  status: import("../../../../database/api/.generated").$Enums.Status;
405
+ tags: string[];
406
+ identifier: string;
407
+ chainId: number;
407
408
  action: import("../../../../database/api/.generated").$Enums.OpportunityAction;
408
409
  mainProtocolId: string | null;
409
410
  tvl: number;
410
411
  apr: number;
411
412
  dailyRewards: number;
412
- tags: string[];
413
413
  }>;
414
414
  }