@merkl/api 0.20.158 → 0.20.159

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.
Files changed (69) hide show
  1. package/dist/src/eden/index.d.ts +747 -747
  2. package/dist/src/engine/deprecated/dynamicData/factory.js +1 -0
  3. package/dist/src/engine/deprecated/dynamicData/implementations/EventBased.js +29 -5
  4. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/processorMapping.d.ts +1 -3
  5. package/dist/src/engine/implementations/JsonAirdrop/metadata.d.ts +2 -2
  6. package/dist/src/engine/implementations/Locker/metadata.d.ts +24 -0
  7. package/dist/src/engine/implementations/Locker/metadata.js +36 -0
  8. package/dist/src/engine/implementations/Locker/tvl.d.ts +7 -0
  9. package/dist/src/engine/implementations/Locker/tvl.js +21 -0
  10. package/dist/src/engine/implementations/MultiLog/tvl.d.ts +1 -12
  11. package/dist/src/engine/implementations/MultiLog/tvl.js +1 -61
  12. package/dist/src/engine/metadata/factory.js +1 -0
  13. package/dist/src/engine/tvl/logStates.d.ts +17 -0
  14. package/dist/src/engine/tvl/logStates.js +106 -0
  15. package/dist/src/index.d.ts +255 -255
  16. package/dist/src/index.js +2 -2
  17. package/dist/src/modules/v4/boost/boost.controller.d.ts +1 -1
  18. package/dist/src/modules/v4/bucket/bucket.service.d.ts +2 -0
  19. package/dist/src/modules/v4/bucket/bucket.service.js +3 -0
  20. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +41 -41
  21. package/dist/src/modules/v4/campaign/campaign.controller.js +0 -1
  22. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +36 -36
  23. package/dist/src/modules/v4/campaign/campaign.service.d.ts +76 -76
  24. package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +18 -18
  25. package/dist/src/modules/v4/chain/chain.controller.d.ts +11 -11
  26. package/dist/src/modules/v4/chain/chain.repository.d.ts +13 -13
  27. package/dist/src/modules/v4/chain/chain.service.d.ts +14 -14
  28. package/dist/src/modules/v4/computedValue/computedValue.controller.d.ts +1 -1
  29. package/dist/src/modules/v4/computedValue/computedValue.repository.d.ts +1 -1
  30. package/dist/src/modules/v4/computedValue/computedValue.service.d.ts +1 -1
  31. package/dist/src/modules/v4/creator/creator.controller.d.ts +5 -5
  32. package/dist/src/modules/v4/creator/creator.repository.d.ts +5 -5
  33. package/dist/src/modules/v4/creator/creator.service.d.ts +4 -4
  34. package/dist/src/modules/v4/enso/enso.service.d.ts +2 -2
  35. package/dist/src/modules/v4/explorer/explorer.controller.d.ts +3 -3
  36. package/dist/src/modules/v4/explorer/explorer.repository.d.ts +4 -4
  37. package/dist/src/modules/v4/explorer/explorer.service.d.ts +5 -5
  38. package/dist/src/modules/v4/interaction/interaction.controller.d.ts +2 -2
  39. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +105 -105
  40. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +3 -3
  41. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +117 -117
  42. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +122 -122
  43. package/dist/src/modules/v4/price/price.controller.d.ts +4 -4
  44. package/dist/src/modules/v4/price/price.repository.d.ts +5 -5
  45. package/dist/src/modules/v4/price/price.service.d.ts +4 -4
  46. package/dist/src/modules/v4/programPayload/programPayload.model.d.ts +18 -1
  47. package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +14 -7
  48. package/dist/src/modules/v4/programPayload/programPayload.repository.js +128 -8
  49. package/dist/src/modules/v4/protocol/protocol.controller.d.ts +24 -24
  50. package/dist/src/modules/v4/protocol/protocol.model.d.ts +1 -1
  51. package/dist/src/modules/v4/protocol/protocol.model.js +1 -0
  52. package/dist/src/modules/v4/protocol/protocol.repository.d.ts +14 -14
  53. package/dist/src/modules/v4/protocol/protocol.service.d.ts +6 -6
  54. package/dist/src/modules/v4/reward/reward.controller.d.ts +1 -1
  55. package/dist/src/modules/v4/reward/reward.controller.js +0 -1
  56. package/dist/src/modules/v4/reward/reward.repository.d.ts +12 -12
  57. package/dist/src/modules/v4/reward/reward.service.d.ts +82 -82
  58. package/dist/src/modules/v4/router.d.ts +255 -255
  59. package/dist/src/modules/v4/status/status.controller.d.ts +5 -5
  60. package/dist/src/modules/v4/status/status.repository.d.ts +11 -11
  61. package/dist/src/modules/v4/status/status.service.d.ts +7 -7
  62. package/dist/src/modules/v4/token/token.controller.d.ts +11 -11
  63. package/dist/src/modules/v4/token/token.repository.d.ts +4 -4
  64. package/dist/src/modules/v4/token/token.service.d.ts +14 -14
  65. package/dist/src/modules/v4/token/token.service.js +3 -3
  66. package/dist/src/modules/v4/uniswap/uniswap.repository.d.ts +1 -1
  67. package/dist/src/modules/v4/user/user.controller.d.ts +24 -24
  68. package/dist/tsconfig.package.tsbuildinfo +1 -1
  69. package/package.json +3 -3
@@ -12,8 +12,8 @@ export declare abstract class OpportunityRepository {
12
12
  }, upsert?: boolean): Promise<{
13
13
  Tokens: {
14
14
  symbol: string;
15
- id: string;
16
15
  name: string | null;
16
+ id: string;
17
17
  icon: string;
18
18
  address: string;
19
19
  chainId: number;
@@ -27,19 +27,19 @@ export declare abstract class OpportunityRepository {
27
27
  price: number | null;
28
28
  }[];
29
29
  Protocols: {
30
- id: string;
31
- name: string;
32
30
  url: string;
31
+ name: string;
33
32
  description: string;
33
+ id: string;
34
34
  tags: string[];
35
35
  icon: string;
36
36
  }[];
37
37
  } & {
38
- id: string;
39
- name: string;
40
- type: string;
41
38
  status: import("@db/api").$Enums.Status;
39
+ type: string;
40
+ name: string;
42
41
  description: string;
42
+ id: string;
43
43
  tags: string[];
44
44
  identifier: string;
45
45
  action: import("@db/api").$Enums.OpportunityAction;
@@ -56,15 +56,15 @@ export declare abstract class OpportunityRepository {
56
56
  }>;
57
57
  static findUnique(id: string): Promise<({
58
58
  Chain: {
59
- id: number;
60
59
  name: string;
60
+ id: number;
61
61
  icon: string;
62
62
  };
63
63
  Campaigns: ({
64
64
  RewardToken: {
65
65
  symbol: string;
66
- id: string;
67
66
  name: string | null;
67
+ id: string;
68
68
  icon: string;
69
69
  address: string;
70
70
  chainId: number;
@@ -78,9 +78,9 @@ export declare abstract class OpportunityRepository {
78
78
  price: number | null;
79
79
  };
80
80
  } & {
81
- id: string;
82
81
  type: string;
83
82
  description: string | null;
83
+ id: string;
84
84
  params: Prisma.JsonValue;
85
85
  subType: number | null;
86
86
  computeChainId: number;
@@ -98,8 +98,8 @@ export declare abstract class OpportunityRepository {
98
98
  })[];
99
99
  Tokens: {
100
100
  symbol: string;
101
- id: string;
102
101
  name: string | null;
102
+ id: string;
103
103
  icon: string;
104
104
  address: string;
105
105
  chainId: number;
@@ -113,39 +113,39 @@ export declare abstract class OpportunityRepository {
113
113
  price: number | null;
114
114
  }[];
115
115
  Protocols: {
116
- id: string;
117
- name: string;
118
116
  url: string;
117
+ name: string;
119
118
  description: string;
119
+ id: string;
120
120
  tags: string[];
121
121
  icon: string;
122
122
  }[];
123
123
  MainProtocol: {
124
- id: string;
125
- name: string;
126
124
  url: string;
125
+ name: string;
127
126
  description: string;
127
+ id: string;
128
128
  tags: string[];
129
129
  icon: string;
130
130
  } | null;
131
131
  TvlRecords: ({
132
132
  TvlBreakdown: {
133
- id: string;
134
133
  type: import("@db/api").$Enums.TvlType;
134
+ id: string;
135
135
  identifier: string;
136
136
  value: number;
137
137
  tvlRecordId: string;
138
138
  }[];
139
139
  } & {
140
- id: string;
141
140
  total: number;
141
+ id: string;
142
142
  opportunityId: string;
143
143
  timestamp: bigint;
144
144
  })[];
145
145
  AprRecords: ({
146
146
  AprBreakdown: {
147
- id: string;
148
147
  type: import("@db/api").$Enums.AprType;
148
+ id: string;
149
149
  identifier: string;
150
150
  value: number;
151
151
  aprRecordId: string;
@@ -166,8 +166,8 @@ export declare abstract class OpportunityRepository {
166
166
  endTimestamp: bigint;
167
167
  RewardToken: {
168
168
  symbol: string;
169
- id: string;
170
169
  name: string | null;
170
+ id: string;
171
171
  icon: string;
172
172
  address: string;
173
173
  chainId: number;
@@ -181,8 +181,8 @@ export declare abstract class OpportunityRepository {
181
181
  price: number | null;
182
182
  };
183
183
  CampaignStatus: {
184
- error: string;
185
184
  status: import("@db/api").$Enums.RunStatus;
185
+ error: string;
186
186
  details: Prisma.JsonValue;
187
187
  campaignId: string;
188
188
  computedUntil: bigint;
@@ -196,17 +196,17 @@ export declare abstract class OpportunityRepository {
196
196
  dailyRewardsRecordId: string;
197
197
  })[];
198
198
  } & {
199
- id: string;
200
199
  total: number;
200
+ id: string;
201
201
  opportunityId: string;
202
202
  timestamp: bigint;
203
203
  })[];
204
204
  } & {
205
- id: string;
206
- name: string;
207
- type: string;
208
205
  status: import("@db/api").$Enums.Status;
206
+ type: string;
207
+ name: string;
209
208
  description: string;
209
+ id: string;
210
210
  tags: string[];
211
211
  identifier: string;
212
212
  action: import("@db/api").$Enums.OpportunityAction;
@@ -223,14 +223,14 @@ export declare abstract class OpportunityRepository {
223
223
  }) | null>;
224
224
  static findUniqueOrThrow(id: string, withTest?: boolean, withPoints?: boolean, withCampaigns?: boolean): Promise<{
225
225
  Chain: {
226
- id: number;
227
226
  name: string;
227
+ id: number;
228
228
  icon: string;
229
229
  };
230
230
  Campaigns: {
231
- id: string;
232
231
  type: string;
233
232
  description: string | null;
233
+ id: string;
234
234
  params: Prisma.JsonValue;
235
235
  subType: number | null;
236
236
  computeChainId: number;
@@ -248,8 +248,8 @@ export declare abstract class OpportunityRepository {
248
248
  }[];
249
249
  Tokens: {
250
250
  symbol: string;
251
- id: string;
252
251
  name: string | null;
252
+ id: string;
253
253
  icon: string;
254
254
  address: string;
255
255
  chainId: number;
@@ -263,39 +263,39 @@ export declare abstract class OpportunityRepository {
263
263
  price: number | null;
264
264
  }[];
265
265
  Protocols: {
266
- id: string;
267
- name: string;
268
266
  url: string;
267
+ name: string;
269
268
  description: string;
269
+ id: string;
270
270
  tags: string[];
271
271
  icon: string;
272
272
  }[];
273
273
  MainProtocol: {
274
- id: string;
275
- name: string;
276
274
  url: string;
275
+ name: string;
277
276
  description: string;
277
+ id: string;
278
278
  tags: string[];
279
279
  icon: string;
280
280
  } | null;
281
281
  TvlRecords: ({
282
282
  TvlBreakdown: {
283
- id: string;
284
283
  type: import("@db/api").$Enums.TvlType;
284
+ id: string;
285
285
  identifier: string;
286
286
  value: number;
287
287
  tvlRecordId: string;
288
288
  }[];
289
289
  } & {
290
- id: string;
291
290
  total: number;
291
+ id: string;
292
292
  opportunityId: string;
293
293
  timestamp: bigint;
294
294
  })[];
295
295
  AprRecords: ({
296
296
  AprBreakdown: {
297
- id: string;
298
297
  type: import("@db/api").$Enums.AprType;
298
+ id: string;
299
299
  identifier: string;
300
300
  value: number;
301
301
  aprRecordId: string;
@@ -316,8 +316,8 @@ export declare abstract class OpportunityRepository {
316
316
  endTimestamp: bigint;
317
317
  RewardToken: {
318
318
  symbol: string;
319
- id: string;
320
319
  name: string | null;
320
+ id: string;
321
321
  icon: string;
322
322
  address: string;
323
323
  chainId: number;
@@ -331,8 +331,8 @@ export declare abstract class OpportunityRepository {
331
331
  price: number | null;
332
332
  };
333
333
  CampaignStatus: {
334
- error: string;
335
334
  status: import("@db/api").$Enums.RunStatus;
335
+ error: string;
336
336
  details: Prisma.JsonValue;
337
337
  campaignId: string;
338
338
  computedUntil: bigint;
@@ -346,17 +346,17 @@ export declare abstract class OpportunityRepository {
346
346
  dailyRewardsRecordId: string;
347
347
  })[];
348
348
  } & {
349
- id: string;
350
349
  total: number;
350
+ id: string;
351
351
  opportunityId: string;
352
352
  timestamp: bigint;
353
353
  })[];
354
354
  } & {
355
- id: string;
356
- name: string;
357
- type: string;
358
355
  status: import("@db/api").$Enums.Status;
356
+ type: string;
357
+ name: string;
359
358
  description: string;
359
+ id: string;
360
360
  tags: string[];
361
361
  identifier: string;
362
362
  action: import("@db/api").$Enums.OpportunityAction;
@@ -379,38 +379,38 @@ export declare abstract class OpportunityRepository {
379
379
  static findManyByCampaigns(where: Campaign["action"]["findMany"]["args"]["where"]): Promise<({
380
380
  Chain: {
381
381
  Explorer: {
382
- id: string;
383
- type: import("@db/api").$Enums.ExplorerType;
384
382
  url: string;
383
+ type: import("@db/api").$Enums.ExplorerType;
384
+ id: string;
385
385
  chainId: number;
386
386
  }[];
387
387
  } & {
388
- id: number;
389
388
  name: string;
389
+ id: number;
390
390
  icon: string;
391
391
  };
392
392
  Campaigns: ({
393
393
  ComputeChain: {
394
- id: number;
395
394
  name: string;
395
+ id: number;
396
396
  icon: string;
397
397
  };
398
398
  DistributionChain: {
399
399
  Explorer: {
400
- id: string;
401
- type: import("@db/api").$Enums.ExplorerType;
402
400
  url: string;
401
+ type: import("@db/api").$Enums.ExplorerType;
402
+ id: string;
403
403
  chainId: number;
404
404
  }[];
405
405
  } & {
406
- id: number;
407
406
  name: string;
407
+ id: number;
408
408
  icon: string;
409
409
  };
410
410
  RewardToken: {
411
411
  symbol: string;
412
- id: string;
413
412
  name: string | null;
413
+ id: string;
414
414
  icon: string;
415
415
  address: string;
416
416
  chainId: number;
@@ -429,17 +429,17 @@ export declare abstract class OpportunityRepository {
429
429
  creatorId: string | null;
430
430
  };
431
431
  CampaignStatus: {
432
- error: string;
433
432
  status: import("@db/api").$Enums.RunStatus;
433
+ error: string;
434
434
  details: Prisma.JsonValue;
435
435
  campaignId: string;
436
436
  computedUntil: bigint;
437
437
  processingStarted: bigint;
438
438
  }[];
439
439
  } & {
440
- id: string;
441
440
  type: string;
442
441
  description: string | null;
442
+ id: string;
443
443
  params: Prisma.JsonValue;
444
444
  subType: number | null;
445
445
  computeChainId: number;
@@ -457,8 +457,8 @@ export declare abstract class OpportunityRepository {
457
457
  })[];
458
458
  Tokens: {
459
459
  symbol: string;
460
- id: string;
461
460
  name: string | null;
461
+ id: string;
462
462
  icon: string;
463
463
  address: string;
464
464
  chainId: number;
@@ -472,39 +472,39 @@ export declare abstract class OpportunityRepository {
472
472
  price: number | null;
473
473
  }[];
474
474
  Protocols: {
475
- id: string;
476
- name: string;
477
475
  url: string;
476
+ name: string;
478
477
  description: string;
478
+ id: string;
479
479
  tags: string[];
480
480
  icon: string;
481
481
  }[];
482
482
  MainProtocol: {
483
- id: string;
484
- name: string;
485
483
  url: string;
484
+ name: string;
486
485
  description: string;
486
+ id: string;
487
487
  tags: string[];
488
488
  icon: string;
489
489
  } | null;
490
490
  TvlRecords: ({
491
491
  TvlBreakdown: {
492
- id: string;
493
492
  type: import("@db/api").$Enums.TvlType;
493
+ id: string;
494
494
  identifier: string;
495
495
  value: number;
496
496
  tvlRecordId: string;
497
497
  }[];
498
498
  } & {
499
- id: string;
500
499
  total: number;
500
+ id: string;
501
501
  opportunityId: string;
502
502
  timestamp: bigint;
503
503
  })[];
504
504
  AprRecords: ({
505
505
  AprBreakdown: {
506
- id: string;
507
506
  type: import("@db/api").$Enums.AprType;
507
+ id: string;
508
508
  identifier: string;
509
509
  value: number;
510
510
  aprRecordId: string;
@@ -525,8 +525,8 @@ export declare abstract class OpportunityRepository {
525
525
  endTimestamp: bigint;
526
526
  RewardToken: {
527
527
  symbol: string;
528
- id: string;
529
528
  name: string | null;
529
+ id: string;
530
530
  icon: string;
531
531
  address: string;
532
532
  chainId: number;
@@ -540,8 +540,8 @@ export declare abstract class OpportunityRepository {
540
540
  price: number | null;
541
541
  };
542
542
  CampaignStatus: {
543
- error: string;
544
543
  status: import("@db/api").$Enums.RunStatus;
544
+ error: string;
545
545
  details: Prisma.JsonValue;
546
546
  campaignId: string;
547
547
  computedUntil: bigint;
@@ -555,17 +555,17 @@ export declare abstract class OpportunityRepository {
555
555
  dailyRewardsRecordId: string;
556
556
  })[];
557
557
  } & {
558
- id: string;
559
558
  total: number;
559
+ id: string;
560
560
  opportunityId: string;
561
561
  timestamp: bigint;
562
562
  })[];
563
563
  } & {
564
- id: string;
565
- name: string;
566
- type: string;
567
564
  status: import("@db/api").$Enums.Status;
565
+ type: string;
566
+ name: string;
568
567
  description: string;
568
+ id: string;
569
569
  tags: string[];
570
570
  identifier: string;
571
571
  action: import("@db/api").$Enums.OpportunityAction;
@@ -583,20 +583,20 @@ export declare abstract class OpportunityRepository {
583
583
  static findMany(query: GetOpportunitiesQueryModel): Promise<({
584
584
  Chain: {
585
585
  Explorer: {
586
- id: string;
587
- type: import("@db/api").$Enums.ExplorerType;
588
586
  url: string;
587
+ type: import("@db/api").$Enums.ExplorerType;
588
+ id: string;
589
589
  chainId: number;
590
590
  }[];
591
591
  } & {
592
- id: number;
593
592
  name: string;
593
+ id: number;
594
594
  icon: string;
595
595
  };
596
596
  Campaigns: {
597
- id: string;
598
597
  type: string;
599
598
  description: string | null;
599
+ id: string;
600
600
  params: Prisma.JsonValue;
601
601
  subType: number | null;
602
602
  computeChainId: number;
@@ -614,8 +614,8 @@ export declare abstract class OpportunityRepository {
614
614
  }[];
615
615
  Tokens: {
616
616
  symbol: string;
617
- id: string;
618
617
  name: string | null;
618
+ id: string;
619
619
  icon: string;
620
620
  address: string;
621
621
  chainId: number;
@@ -629,39 +629,39 @@ export declare abstract class OpportunityRepository {
629
629
  price: number | null;
630
630
  }[];
631
631
  Protocols: {
632
- id: string;
633
- name: string;
634
632
  url: string;
633
+ name: string;
635
634
  description: string;
635
+ id: string;
636
636
  tags: string[];
637
637
  icon: string;
638
638
  }[];
639
639
  MainProtocol: {
640
- id: string;
641
- name: string;
642
640
  url: string;
641
+ name: string;
643
642
  description: string;
643
+ id: string;
644
644
  tags: string[];
645
645
  icon: string;
646
646
  } | null;
647
647
  TvlRecords: ({
648
648
  TvlBreakdown: {
649
- id: string;
650
649
  type: import("@db/api").$Enums.TvlType;
650
+ id: string;
651
651
  identifier: string;
652
652
  value: number;
653
653
  tvlRecordId: string;
654
654
  }[];
655
655
  } & {
656
- id: string;
657
656
  total: number;
657
+ id: string;
658
658
  opportunityId: string;
659
659
  timestamp: bigint;
660
660
  })[];
661
661
  AprRecords: ({
662
662
  AprBreakdown: {
663
- id: string;
664
663
  type: import("@db/api").$Enums.AprType;
664
+ id: string;
665
665
  identifier: string;
666
666
  value: number;
667
667
  aprRecordId: string;
@@ -682,8 +682,8 @@ export declare abstract class OpportunityRepository {
682
682
  endTimestamp: bigint;
683
683
  RewardToken: {
684
684
  symbol: string;
685
- id: string;
686
685
  name: string | null;
686
+ id: string;
687
687
  icon: string;
688
688
  address: string;
689
689
  chainId: number;
@@ -697,8 +697,8 @@ export declare abstract class OpportunityRepository {
697
697
  price: number | null;
698
698
  };
699
699
  CampaignStatus: {
700
- error: string;
701
700
  status: import("@db/api").$Enums.RunStatus;
701
+ error: string;
702
702
  details: Prisma.JsonValue;
703
703
  campaignId: string;
704
704
  computedUntil: bigint;
@@ -712,17 +712,17 @@ export declare abstract class OpportunityRepository {
712
712
  dailyRewardsRecordId: string;
713
713
  })[];
714
714
  } & {
715
- id: string;
716
715
  total: number;
716
+ id: string;
717
717
  opportunityId: string;
718
718
  timestamp: bigint;
719
719
  })[];
720
720
  } & {
721
- id: string;
722
- name: string;
723
- type: string;
724
721
  status: import("@db/api").$Enums.Status;
722
+ type: string;
723
+ name: string;
725
724
  description: string;
725
+ id: string;
726
726
  tags: string[];
727
727
  identifier: string;
728
728
  action: import("@db/api").$Enums.OpportunityAction;
@@ -747,38 +747,38 @@ export declare abstract class OpportunityRepository {
747
747
  static findLiveWithCampaigns(chainId: MerklChainId, take?: number): Promise<({
748
748
  Chain: {
749
749
  Explorer: {
750
- id: string;
751
- type: import("@db/api").$Enums.ExplorerType;
752
750
  url: string;
751
+ type: import("@db/api").$Enums.ExplorerType;
752
+ id: string;
753
753
  chainId: number;
754
754
  }[];
755
755
  } & {
756
- id: number;
757
756
  name: string;
757
+ id: number;
758
758
  icon: string;
759
759
  };
760
760
  Campaigns: ({
761
761
  ComputeChain: {
762
- id: number;
763
762
  name: string;
763
+ id: number;
764
764
  icon: string;
765
765
  };
766
766
  DistributionChain: {
767
767
  Explorer: {
768
- id: string;
769
- type: import("@db/api").$Enums.ExplorerType;
770
768
  url: string;
769
+ type: import("@db/api").$Enums.ExplorerType;
770
+ id: string;
771
771
  chainId: number;
772
772
  }[];
773
773
  } & {
774
- id: number;
775
774
  name: string;
775
+ id: number;
776
776
  icon: string;
777
777
  };
778
778
  RewardToken: {
779
779
  symbol: string;
780
- id: string;
781
780
  name: string | null;
781
+ id: string;
782
782
  icon: string;
783
783
  address: string;
784
784
  chainId: number;
@@ -797,17 +797,17 @@ export declare abstract class OpportunityRepository {
797
797
  creatorId: string | null;
798
798
  };
799
799
  CampaignStatus: {
800
- error: string;
801
800
  status: import("@db/api").$Enums.RunStatus;
801
+ error: string;
802
802
  details: Prisma.JsonValue;
803
803
  campaignId: string;
804
804
  computedUntil: bigint;
805
805
  processingStarted: bigint;
806
806
  }[];
807
807
  } & {
808
- id: string;
809
808
  type: string;
810
809
  description: string | null;
810
+ id: string;
811
811
  params: Prisma.JsonValue;
812
812
  subType: number | null;
813
813
  computeChainId: number;
@@ -825,8 +825,8 @@ export declare abstract class OpportunityRepository {
825
825
  })[];
826
826
  Tokens: {
827
827
  symbol: string;
828
- id: string;
829
828
  name: string | null;
829
+ id: string;
830
830
  icon: string;
831
831
  address: string;
832
832
  chainId: number;
@@ -840,39 +840,39 @@ export declare abstract class OpportunityRepository {
840
840
  price: number | null;
841
841
  }[];
842
842
  Protocols: {
843
- id: string;
844
- name: string;
845
843
  url: string;
844
+ name: string;
846
845
  description: string;
846
+ id: string;
847
847
  tags: string[];
848
848
  icon: string;
849
849
  }[];
850
850
  MainProtocol: {
851
- id: string;
852
- name: string;
853
851
  url: string;
852
+ name: string;
854
853
  description: string;
854
+ id: string;
855
855
  tags: string[];
856
856
  icon: string;
857
857
  } | null;
858
858
  TvlRecords: ({
859
859
  TvlBreakdown: {
860
- id: string;
861
860
  type: import("@db/api").$Enums.TvlType;
861
+ id: string;
862
862
  identifier: string;
863
863
  value: number;
864
864
  tvlRecordId: string;
865
865
  }[];
866
866
  } & {
867
- id: string;
868
867
  total: number;
868
+ id: string;
869
869
  opportunityId: string;
870
870
  timestamp: bigint;
871
871
  })[];
872
872
  AprRecords: ({
873
873
  AprBreakdown: {
874
- id: string;
875
874
  type: import("@db/api").$Enums.AprType;
875
+ id: string;
876
876
  identifier: string;
877
877
  value: number;
878
878
  aprRecordId: string;
@@ -893,8 +893,8 @@ export declare abstract class OpportunityRepository {
893
893
  endTimestamp: bigint;
894
894
  RewardToken: {
895
895
  symbol: string;
896
- id: string;
897
896
  name: string | null;
897
+ id: string;
898
898
  icon: string;
899
899
  address: string;
900
900
  chainId: number;
@@ -908,8 +908,8 @@ export declare abstract class OpportunityRepository {
908
908
  price: number | null;
909
909
  };
910
910
  CampaignStatus: {
911
- error: string;
912
911
  status: import("@db/api").$Enums.RunStatus;
912
+ error: string;
913
913
  details: Prisma.JsonValue;
914
914
  campaignId: string;
915
915
  computedUntil: bigint;
@@ -923,17 +923,17 @@ export declare abstract class OpportunityRepository {
923
923
  dailyRewardsRecordId: string;
924
924
  })[];
925
925
  } & {
926
- id: string;
927
926
  total: number;
927
+ id: string;
928
928
  opportunityId: string;
929
929
  timestamp: bigint;
930
930
  })[];
931
931
  } & {
932
- id: string;
933
- name: string;
934
- type: string;
935
932
  status: import("@db/api").$Enums.Status;
933
+ type: string;
934
+ name: string;
936
935
  description: string;
936
+ id: string;
937
937
  tags: string[];
938
938
  identifier: string;
939
939
  action: import("@db/api").$Enums.OpportunityAction;
@@ -965,15 +965,15 @@ export declare abstract class OpportunityRepository {
965
965
  };
966
966
  tvlRecord: {
967
967
  TvlBreakdown: {
968
- id: string;
969
968
  type: import("@db/api").$Enums.TvlType;
969
+ id: string;
970
970
  identifier: string;
971
971
  value: number;
972
972
  tvlRecordId: string;
973
973
  }[];
974
974
  } & {
975
- id: string;
976
975
  total: number;
976
+ id: string;
977
977
  opportunityId: string;
978
978
  timestamp: bigint;
979
979
  };
@@ -985,17 +985,17 @@ export declare abstract class OpportunityRepository {
985
985
  dailyRewardsRecordId: string;
986
986
  }[];
987
987
  } & {
988
- id: string;
989
988
  total: number;
989
+ id: string;
990
990
  opportunityId: string;
991
991
  timestamp: bigint;
992
992
  };
993
993
  opportunity: {
994
- id: string;
995
- name: string;
996
- type: string;
997
994
  status: import("@db/api").$Enums.Status;
995
+ type: string;
996
+ name: string;
998
997
  description: string;
998
+ id: string;
999
999
  tags: string[];
1000
1000
  identifier: string;
1001
1001
  action: import("@db/api").$Enums.OpportunityAction;
@@ -1012,11 +1012,11 @@ export declare abstract class OpportunityRepository {
1012
1012
  };
1013
1013
  }>;
1014
1014
  static updateStatus(id: string, status: Status): Promise<{
1015
- id: string;
1016
- name: string;
1017
- type: string;
1018
1015
  status: import("@db/api").$Enums.Status;
1016
+ type: string;
1017
+ name: string;
1019
1018
  description: string;
1019
+ id: string;
1020
1020
  tags: string[];
1021
1021
  identifier: string;
1022
1022
  action: import("@db/api").$Enums.OpportunityAction;
@@ -1032,11 +1032,11 @@ export declare abstract class OpportunityRepository {
1032
1032
  lastCampaignCreatedAt: Date;
1033
1033
  }>;
1034
1034
  static update(id: string, data: Partial<Opportunity["raw"]>): Promise<{
1035
- id: string;
1036
- name: string;
1037
- type: string;
1038
1035
  status: import("@db/api").$Enums.Status;
1036
+ type: string;
1037
+ name: string;
1039
1038
  description: string;
1039
+ id: string;
1040
1040
  tags: string[];
1041
1041
  identifier: string;
1042
1042
  action: import("@db/api").$Enums.OpportunityAction;