@merkl/api 0.20.158 → 0.20.160

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 (80) hide show
  1. package/dist/database/api/.generated/edge.js +6 -2
  2. package/dist/database/api/.generated/index.js +10 -2
  3. package/dist/database/api/.generated/libquery_engine-linux-arm64-openssl-3.0.x.so.node +0 -0
  4. package/dist/database/api/.generated/package.json +1 -1
  5. package/dist/database/api/.generated/schema.prisma +1 -1
  6. package/dist/database/engine/.generated/edge.js +6 -2
  7. package/dist/database/engine/.generated/index.js +10 -2
  8. package/dist/database/engine/.generated/libquery_engine-linux-arm64-openssl-3.0.x.so.node +0 -0
  9. package/dist/database/engine/.generated/package.json +1 -1
  10. package/dist/database/engine/.generated/schema.prisma +1 -1
  11. package/dist/src/eden/index.d.ts +747 -747
  12. package/dist/src/engine/deprecated/dynamicData/factory.js +1 -0
  13. package/dist/src/engine/deprecated/dynamicData/implementations/EventBased.js +29 -5
  14. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/processorMapping.d.ts +1 -3
  15. package/dist/src/engine/implementations/Erc20/subTypes/implementations/lendleVaults/tvl.js +1 -2
  16. package/dist/src/engine/implementations/JsonAirdrop/metadata.d.ts +2 -2
  17. package/dist/src/engine/implementations/Locker/metadata.d.ts +24 -0
  18. package/dist/src/engine/implementations/Locker/metadata.js +36 -0
  19. package/dist/src/engine/implementations/Locker/tvl.d.ts +7 -0
  20. package/dist/src/engine/implementations/Locker/tvl.js +21 -0
  21. package/dist/src/engine/implementations/MultiLog/tvl.d.ts +1 -12
  22. package/dist/src/engine/implementations/MultiLog/tvl.js +1 -61
  23. package/dist/src/engine/metadata/factory.js +1 -0
  24. package/dist/src/engine/tvl/logStates.d.ts +17 -0
  25. package/dist/src/engine/tvl/logStates.js +106 -0
  26. package/dist/src/index.d.ts +255 -255
  27. package/dist/src/index.js +2 -2
  28. package/dist/src/modules/v4/boost/boost.controller.d.ts +1 -1
  29. package/dist/src/modules/v4/bucket/bucket.service.d.ts +2 -0
  30. package/dist/src/modules/v4/bucket/bucket.service.js +3 -0
  31. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +41 -41
  32. package/dist/src/modules/v4/campaign/campaign.controller.js +0 -1
  33. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +36 -36
  34. package/dist/src/modules/v4/campaign/campaign.service.d.ts +76 -76
  35. package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +18 -18
  36. package/dist/src/modules/v4/chain/chain.controller.d.ts +11 -11
  37. package/dist/src/modules/v4/chain/chain.repository.d.ts +13 -13
  38. package/dist/src/modules/v4/chain/chain.service.d.ts +14 -14
  39. package/dist/src/modules/v4/computedValue/computedValue.controller.d.ts +1 -1
  40. package/dist/src/modules/v4/computedValue/computedValue.repository.d.ts +1 -1
  41. package/dist/src/modules/v4/computedValue/computedValue.service.d.ts +1 -1
  42. package/dist/src/modules/v4/creator/creator.controller.d.ts +5 -5
  43. package/dist/src/modules/v4/creator/creator.repository.d.ts +5 -5
  44. package/dist/src/modules/v4/creator/creator.service.d.ts +4 -4
  45. package/dist/src/modules/v4/enso/enso.service.d.ts +2 -2
  46. package/dist/src/modules/v4/explorer/explorer.controller.d.ts +3 -3
  47. package/dist/src/modules/v4/explorer/explorer.repository.d.ts +4 -4
  48. package/dist/src/modules/v4/explorer/explorer.service.d.ts +5 -5
  49. package/dist/src/modules/v4/interaction/interaction.controller.d.ts +2 -2
  50. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +105 -105
  51. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +3 -3
  52. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +117 -117
  53. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +122 -122
  54. package/dist/src/modules/v4/price/price.controller.d.ts +4 -4
  55. package/dist/src/modules/v4/price/price.repository.d.ts +5 -5
  56. package/dist/src/modules/v4/price/price.service.d.ts +4 -4
  57. package/dist/src/modules/v4/programPayload/programPayload.model.d.ts +18 -1
  58. package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +14 -7
  59. package/dist/src/modules/v4/programPayload/programPayload.repository.js +128 -8
  60. package/dist/src/modules/v4/protocol/protocol.controller.d.ts +24 -24
  61. package/dist/src/modules/v4/protocol/protocol.model.d.ts +1 -1
  62. package/dist/src/modules/v4/protocol/protocol.model.js +1 -0
  63. package/dist/src/modules/v4/protocol/protocol.repository.d.ts +14 -14
  64. package/dist/src/modules/v4/protocol/protocol.service.d.ts +6 -6
  65. package/dist/src/modules/v4/reward/reward.controller.d.ts +1 -1
  66. package/dist/src/modules/v4/reward/reward.controller.js +0 -1
  67. package/dist/src/modules/v4/reward/reward.repository.d.ts +12 -12
  68. package/dist/src/modules/v4/reward/reward.service.d.ts +82 -82
  69. package/dist/src/modules/v4/router.d.ts +255 -255
  70. package/dist/src/modules/v4/status/status.controller.d.ts +5 -5
  71. package/dist/src/modules/v4/status/status.repository.d.ts +11 -11
  72. package/dist/src/modules/v4/status/status.service.d.ts +7 -7
  73. package/dist/src/modules/v4/token/token.controller.d.ts +11 -11
  74. package/dist/src/modules/v4/token/token.repository.d.ts +4 -4
  75. package/dist/src/modules/v4/token/token.service.d.ts +14 -14
  76. package/dist/src/modules/v4/token/token.service.js +3 -3
  77. package/dist/src/modules/v4/uniswap/uniswap.repository.d.ts +1 -1
  78. package/dist/src/modules/v4/user/user.controller.d.ts +24 -24
  79. package/dist/tsconfig.package.tsbuildinfo +1 -1
  80. package/package.json +3 -3
@@ -5,26 +5,26 @@ export declare abstract class ProtocolService {
5
5
  static countMany(query: GetProtocolsQueryModel): Promise<number>;
6
6
  static findUnique(id: ProtocolId | string): Promise<Protocol["model"] | null>;
7
7
  static create(data: CreateProtocolModel): Promise<{
8
- id: string;
9
- name: string;
10
8
  url: string;
9
+ name: string;
11
10
  description: string;
11
+ id: string;
12
12
  tags: string[];
13
13
  icon: string;
14
14
  }>;
15
15
  static upsert(data: CreateProtocolModel): Promise<{
16
- id: string;
17
- name: string;
18
16
  url: string;
17
+ name: string;
19
18
  description: string;
19
+ id: string;
20
20
  tags: string[];
21
21
  icon: string;
22
22
  }>;
23
23
  static update(id: string, data: UpdateProtocolModel): Promise<{
24
- id: string;
25
- name: string;
26
24
  url: string;
25
+ name: string;
27
26
  description: string;
27
+ id: string;
28
28
  tags: string[];
29
29
  icon: string;
30
30
  }>;
@@ -243,8 +243,8 @@ export declare const RewardController: Elysia<"/rewards", false, {
243
243
  rewardToken: string;
244
244
  breakdowns: {
245
245
  protocolId?: string | undefined;
246
- pending: string;
247
246
  reason: string;
247
+ pending: string;
248
248
  amount: string;
249
249
  recipient: string;
250
250
  claimed: string;
@@ -127,7 +127,6 @@ export const RewardController = new Elysia({ prefix: "/rewards", detail: { tags:
127
127
  .guard({
128
128
  query: t.Object({ since: t.Date() }),
129
129
  headers: AuthorizationHeadersDto,
130
- beforeHandle: BackOfficeGuard,
131
130
  detail: { hide: true },
132
131
  })
133
132
  .get("/total/distributed", async ({ query }) => await RewardService.getTotalDistributed(query.since.getTime() / 1000))
@@ -6,8 +6,8 @@ export declare abstract class RewardRepository {
6
6
  static getByRecipient(recipient: string, roots: string[], withToken: boolean, withTestTokens: boolean, chainFilter?: ChainId[] | null, reasonFilter?: string): Promise<({
7
7
  RewardToken: {
8
8
  symbol: string;
9
- id: string;
10
9
  name: string | null;
10
+ id: string;
11
11
  icon: string;
12
12
  address: string;
13
13
  chainId: number;
@@ -25,14 +25,14 @@ export declare abstract class RewardRepository {
25
25
  campaignId: string;
26
26
  Opportunity: {
27
27
  Chain: {
28
- id: number;
29
28
  name: string;
29
+ id: number;
30
30
  icon: string;
31
31
  };
32
32
  Tokens: {
33
33
  symbol: string;
34
- id: string;
35
34
  name: string | null;
35
+ id: string;
36
36
  icon: string;
37
37
  address: string;
38
38
  chainId: number;
@@ -46,27 +46,27 @@ export declare abstract class RewardRepository {
46
46
  price: number | null;
47
47
  }[];
48
48
  Protocols: {
49
- id: string;
50
- name: string;
51
49
  url: string;
50
+ name: string;
52
51
  description: string;
52
+ id: string;
53
53
  tags: string[];
54
54
  icon: string;
55
55
  }[];
56
56
  MainProtocol: {
57
- id: string;
58
- name: string;
59
57
  url: string;
58
+ name: string;
60
59
  description: string;
60
+ id: string;
61
61
  tags: string[];
62
62
  icon: string;
63
63
  } | null;
64
64
  } & {
65
- id: string;
66
- name: string;
67
- type: string;
68
65
  status: import("@db/api").$Enums.Status;
66
+ type: string;
67
+ name: string;
69
68
  description: string;
69
+ id: string;
70
70
  tags: string[];
71
71
  identifier: string;
72
72
  action: import("@db/api").$Enums.OpportunityAction;
@@ -83,9 +83,9 @@ export declare abstract class RewardRepository {
83
83
  };
84
84
  };
85
85
  } & {
86
+ reason: string;
86
87
  pending: string;
87
88
  id: string;
88
- reason: string;
89
89
  campaignId: string;
90
90
  amount: string;
91
91
  claimed: string;
@@ -108,9 +108,9 @@ export declare abstract class RewardRepository {
108
108
  campaignId: string;
109
109
  };
110
110
  } & {
111
+ reason: string;
111
112
  pending: string;
112
113
  id: string;
113
- reason: string;
114
114
  campaignId: string;
115
115
  amount: string;
116
116
  claimed: string;
@@ -33,8 +33,8 @@ export declare abstract class RewardService {
33
33
  total: number;
34
34
  timestamp: bigint;
35
35
  breakdowns: {
36
- id: string;
37
36
  type: import("@db/api").$Enums.TvlType;
37
+ id: string;
38
38
  identifier: string;
39
39
  value: number;
40
40
  tvlRecordId: string;
@@ -51,8 +51,8 @@ export declare abstract class RewardService {
51
51
  dailyRewardsRecordId: string;
52
52
  token: {
53
53
  symbol: string;
54
- id: string;
55
54
  name: string | null;
55
+ id: string;
56
56
  icon: string;
57
57
  address: string;
58
58
  chainId: number;
@@ -72,16 +72,16 @@ export declare abstract class RewardService {
72
72
  campaigns: {
73
73
  params: any;
74
74
  chain: {
75
- id: number;
76
75
  name: string;
76
+ id: number;
77
77
  icon: string;
78
78
  };
79
79
  endTimestamp: number;
80
80
  startTimestamp: number;
81
81
  rewardToken: {
82
82
  symbol: string;
83
- id: string;
84
83
  name: string | null;
84
+ id: string;
85
85
  icon: string;
86
86
  address: string;
87
87
  chainId: number;
@@ -95,15 +95,15 @@ export declare abstract class RewardService {
95
95
  price?: number | null | undefined;
96
96
  };
97
97
  distributionChain: {
98
- id: number;
99
98
  name: string;
99
+ id: number;
100
100
  icon: string;
101
101
  } | undefined;
102
102
  campaignStatus: {
103
103
  computedUntil: number;
104
104
  processingStarted: number;
105
- error: string;
106
105
  status: import("@db/api").$Enums.RunStatus;
106
+ error: string;
107
107
  details: import("database/api/.generated/runtime/library").JsonValue;
108
108
  campaignId: string;
109
109
  } | undefined;
@@ -116,11 +116,11 @@ export declare abstract class RewardService {
116
116
  createdAt: string;
117
117
  description: string | undefined;
118
118
  Opportunity: {
119
- id: string;
120
- name: string;
121
- type: string;
122
119
  status: import("@db/api").$Enums.Status;
120
+ type: string;
121
+ name: string;
123
122
  description: string;
123
+ id: string;
124
124
  tags: string[];
125
125
  identifier: string;
126
126
  action: import("@db/api").$Enums.OpportunityAction;
@@ -135,8 +135,8 @@ export declare abstract class RewardService {
135
135
  dailyRewards: number;
136
136
  lastCampaignCreatedAt: Date;
137
137
  };
138
- id: string;
139
138
  type: string;
139
+ id: string;
140
140
  subType: number | null;
141
141
  computeChainId: number;
142
142
  distributionChainId: number;
@@ -152,8 +152,8 @@ export declare abstract class RewardService {
152
152
  lastCampaignCreatedAt: string;
153
153
  tokens: ({
154
154
  symbol: string;
155
- id: string;
156
155
  name: string | null;
156
+ id: string;
157
157
  icon: string;
158
158
  address: string;
159
159
  chainId: number;
@@ -167,21 +167,21 @@ export declare abstract class RewardService {
167
167
  price?: number | null | undefined;
168
168
  })[];
169
169
  chain: {
170
- id: number;
171
170
  name: string;
171
+ id: number;
172
172
  icon: string;
173
173
  };
174
174
  protocol: {
175
- id: string;
176
- name: string;
177
175
  url: string;
176
+ name: string;
178
177
  description: string;
178
+ id: string;
179
179
  tags: string[];
180
180
  icon: string;
181
181
  } | undefined;
182
- name: string;
183
- type: string;
184
182
  status: import("@db/api").$Enums.Status;
183
+ type: string;
184
+ name: string;
185
185
  description: string;
186
186
  tags: string[];
187
187
  identifier: string;
@@ -204,14 +204,14 @@ export declare abstract class RewardService {
204
204
  campaignId: string;
205
205
  opportunity: {
206
206
  Chain: {
207
- id: number;
208
207
  name: string;
208
+ id: number;
209
209
  icon: string;
210
210
  };
211
211
  Tokens: {
212
212
  symbol: string;
213
- id: string;
214
213
  name: string | null;
214
+ id: string;
215
215
  icon: string;
216
216
  address: string;
217
217
  chainId: number;
@@ -225,27 +225,27 @@ export declare abstract class RewardService {
225
225
  price: number | null;
226
226
  }[];
227
227
  Protocols: {
228
- id: string;
229
- name: string;
230
228
  url: string;
229
+ name: string;
231
230
  description: string;
231
+ id: string;
232
232
  tags: string[];
233
233
  icon: string;
234
234
  }[];
235
235
  MainProtocol: {
236
- id: string;
237
- name: string;
238
236
  url: string;
237
+ name: string;
239
238
  description: string;
239
+ id: string;
240
240
  tags: string[];
241
241
  icon: string;
242
242
  } | null;
243
243
  } & {
244
- id: string;
245
- name: string;
246
- type: string;
247
244
  status: import("@db/api").$Enums.Status;
245
+ type: string;
246
+ name: string;
248
247
  description: string;
248
+ id: string;
249
249
  tags: string[];
250
250
  identifier: string;
251
251
  action: import("@db/api").$Enums.OpportunityAction;
@@ -260,8 +260,8 @@ export declare abstract class RewardService {
260
260
  dailyRewards: number;
261
261
  lastCampaignCreatedAt: Date;
262
262
  };
263
- pending: string;
264
263
  reason: string;
264
+ pending: string;
265
265
  amount: string;
266
266
  claimed: string;
267
267
  };
@@ -273,8 +273,8 @@ export declare abstract class RewardService {
273
273
  static format(rewards: Awaited<ReturnType<(typeof RewardRepository)["getByRecipient"]>>): {
274
274
  token: {
275
275
  symbol: string;
276
- id: string;
277
276
  name: string | null;
277
+ id: string;
278
278
  icon: string;
279
279
  address: string;
280
280
  chainId: number;
@@ -291,14 +291,14 @@ export declare abstract class RewardService {
291
291
  campaignId: string;
292
292
  opportunity: {
293
293
  Chain: {
294
- id: number;
295
294
  name: string;
295
+ id: number;
296
296
  icon: string;
297
297
  };
298
298
  Tokens: {
299
299
  symbol: string;
300
- id: string;
301
300
  name: string | null;
301
+ id: string;
302
302
  icon: string;
303
303
  address: string;
304
304
  chainId: number;
@@ -312,27 +312,27 @@ export declare abstract class RewardService {
312
312
  price: number | null;
313
313
  }[];
314
314
  Protocols: {
315
- id: string;
316
- name: string;
317
315
  url: string;
316
+ name: string;
318
317
  description: string;
318
+ id: string;
319
319
  tags: string[];
320
320
  icon: string;
321
321
  }[];
322
322
  MainProtocol: {
323
- id: string;
324
- name: string;
325
323
  url: string;
324
+ name: string;
326
325
  description: string;
326
+ id: string;
327
327
  tags: string[];
328
328
  icon: string;
329
329
  } | null;
330
330
  } & {
331
- id: string;
332
- name: string;
333
- type: string;
334
331
  status: import("@db/api").$Enums.Status;
332
+ type: string;
333
+ name: string;
335
334
  description: string;
335
+ id: string;
336
336
  tags: string[];
337
337
  identifier: string;
338
338
  action: import("@db/api").$Enums.OpportunityAction;
@@ -347,8 +347,8 @@ export declare abstract class RewardService {
347
347
  dailyRewards: number;
348
348
  lastCampaignCreatedAt: Date;
349
349
  };
350
- pending: string;
351
350
  reason: string;
351
+ pending: string;
352
352
  amount: string;
353
353
  claimed: string;
354
354
  }[];
@@ -363,8 +363,8 @@ export declare abstract class RewardService {
363
363
  static getByRecipient(recipient: string, roots: string[], withToken?: boolean, withTestTokens?: boolean, chainFilter?: ChainId[] | null, reasonFilter?: string): Promise<({
364
364
  RewardToken: {
365
365
  symbol: string;
366
- id: string;
367
366
  name: string | null;
367
+ id: string;
368
368
  icon: string;
369
369
  address: string;
370
370
  chainId: number;
@@ -382,14 +382,14 @@ export declare abstract class RewardService {
382
382
  campaignId: string;
383
383
  Opportunity: {
384
384
  Chain: {
385
- id: number;
386
385
  name: string;
386
+ id: number;
387
387
  icon: string;
388
388
  };
389
389
  Tokens: {
390
390
  symbol: string;
391
- id: string;
392
391
  name: string | null;
392
+ id: string;
393
393
  icon: string;
394
394
  address: string;
395
395
  chainId: number;
@@ -403,27 +403,27 @@ export declare abstract class RewardService {
403
403
  price: number | null;
404
404
  }[];
405
405
  Protocols: {
406
- id: string;
407
- name: string;
408
406
  url: string;
407
+ name: string;
409
408
  description: string;
409
+ id: string;
410
410
  tags: string[];
411
411
  icon: string;
412
412
  }[];
413
413
  MainProtocol: {
414
- id: string;
415
- name: string;
416
414
  url: string;
415
+ name: string;
417
416
  description: string;
417
+ id: string;
418
418
  tags: string[];
419
419
  icon: string;
420
420
  } | null;
421
421
  } & {
422
- id: string;
423
- name: string;
424
- type: string;
425
422
  status: import("@db/api").$Enums.Status;
423
+ type: string;
424
+ name: string;
426
425
  description: string;
426
+ id: string;
427
427
  tags: string[];
428
428
  identifier: string;
429
429
  action: import("@db/api").$Enums.OpportunityAction;
@@ -440,9 +440,9 @@ export declare abstract class RewardService {
440
440
  };
441
441
  };
442
442
  } & {
443
+ reason: string;
443
444
  pending: string;
444
445
  id: string;
445
- reason: string;
446
446
  campaignId: string;
447
447
  amount: string;
448
448
  claimed: string;
@@ -484,8 +484,8 @@ export declare abstract class RewardService {
484
484
  rewards: (Omit<{
485
485
  token: {
486
486
  symbol: string;
487
- id: string;
488
487
  name: string | null;
488
+ id: string;
489
489
  icon: string;
490
490
  address: string;
491
491
  chainId: number;
@@ -502,14 +502,14 @@ export declare abstract class RewardService {
502
502
  campaignId: string;
503
503
  opportunity: {
504
504
  Chain: {
505
- id: number;
506
505
  name: string;
506
+ id: number;
507
507
  icon: string;
508
508
  };
509
509
  Tokens: {
510
510
  symbol: string;
511
- id: string;
512
511
  name: string | null;
512
+ id: string;
513
513
  icon: string;
514
514
  address: string;
515
515
  chainId: number;
@@ -523,27 +523,27 @@ export declare abstract class RewardService {
523
523
  price: number | null;
524
524
  }[];
525
525
  Protocols: {
526
- id: string;
527
- name: string;
528
526
  url: string;
527
+ name: string;
529
528
  description: string;
529
+ id: string;
530
530
  tags: string[];
531
531
  icon: string;
532
532
  }[];
533
533
  MainProtocol: {
534
- id: string;
535
- name: string;
536
534
  url: string;
535
+ name: string;
537
536
  description: string;
537
+ id: string;
538
538
  tags: string[];
539
539
  icon: string;
540
540
  } | null;
541
541
  } & {
542
- id: string;
543
- name: string;
544
- type: string;
545
542
  status: import("@db/api").$Enums.Status;
543
+ type: string;
544
+ name: string;
546
545
  description: string;
546
+ id: string;
547
547
  tags: string[];
548
548
  identifier: string;
549
549
  action: import("@db/api").$Enums.OpportunityAction;
@@ -558,8 +558,8 @@ export declare abstract class RewardService {
558
558
  dailyRewards: number;
559
559
  lastCampaignCreatedAt: Date;
560
560
  };
561
- pending: string;
562
561
  reason: string;
562
+ pending: string;
563
563
  amount: string;
564
564
  claimed: string;
565
565
  }[];
@@ -586,8 +586,8 @@ export declare abstract class RewardService {
586
586
  rewards: (Omit<{
587
587
  token: {
588
588
  symbol: string;
589
- id: string;
590
589
  name: string | null;
590
+ id: string;
591
591
  icon: string;
592
592
  address: string;
593
593
  chainId: number;
@@ -604,14 +604,14 @@ export declare abstract class RewardService {
604
604
  campaignId: string;
605
605
  opportunity: {
606
606
  Chain: {
607
- id: number;
608
607
  name: string;
608
+ id: number;
609
609
  icon: string;
610
610
  };
611
611
  Tokens: {
612
612
  symbol: string;
613
- id: string;
614
613
  name: string | null;
614
+ id: string;
615
615
  icon: string;
616
616
  address: string;
617
617
  chainId: number;
@@ -625,27 +625,27 @@ export declare abstract class RewardService {
625
625
  price: number | null;
626
626
  }[];
627
627
  Protocols: {
628
- id: string;
629
- name: string;
630
628
  url: string;
629
+ name: string;
631
630
  description: string;
631
+ id: string;
632
632
  tags: string[];
633
633
  icon: string;
634
634
  }[];
635
635
  MainProtocol: {
636
- id: string;
637
- name: string;
638
636
  url: string;
637
+ name: string;
639
638
  description: string;
639
+ id: string;
640
640
  tags: string[];
641
641
  icon: string;
642
642
  } | null;
643
643
  } & {
644
- id: string;
645
- name: string;
646
- type: string;
647
644
  status: import("@db/api").$Enums.Status;
645
+ type: string;
646
+ name: string;
648
647
  description: string;
648
+ id: string;
649
649
  tags: string[];
650
650
  identifier: string;
651
651
  action: import("@db/api").$Enums.OpportunityAction;
@@ -660,8 +660,8 @@ export declare abstract class RewardService {
660
660
  dailyRewards: number;
661
661
  lastCampaignCreatedAt: Date;
662
662
  };
663
- pending: string;
664
663
  reason: string;
664
+ pending: string;
665
665
  amount: string;
666
666
  claimed: string;
667
667
  }[];
@@ -674,8 +674,8 @@ export declare abstract class RewardService {
674
674
  }, "breakdowns"> & {
675
675
  breakdowns: {
676
676
  campaignId: string;
677
- pending: string;
678
677
  reason: string;
678
+ pending: string;
679
679
  amount: string;
680
680
  claimed: string;
681
681
  }[];
@@ -685,8 +685,8 @@ export declare abstract class RewardService {
685
685
  static checkLastClaim(chainId: number, user: string, rewards: Awaited<ReturnType<(typeof RewardService)["getByRecipient"]>>): Promise<({
686
686
  RewardToken: {
687
687
  symbol: string;
688
- id: string;
689
688
  name: string | null;
689
+ id: string;
690
690
  icon: string;
691
691
  address: string;
692
692
  chainId: number;
@@ -704,14 +704,14 @@ export declare abstract class RewardService {
704
704
  campaignId: string;
705
705
  Opportunity: {
706
706
  Chain: {
707
- id: number;
708
707
  name: string;
708
+ id: number;
709
709
  icon: string;
710
710
  };
711
711
  Tokens: {
712
712
  symbol: string;
713
- id: string;
714
713
  name: string | null;
714
+ id: string;
715
715
  icon: string;
716
716
  address: string;
717
717
  chainId: number;
@@ -725,27 +725,27 @@ export declare abstract class RewardService {
725
725
  price: number | null;
726
726
  }[];
727
727
  Protocols: {
728
- id: string;
729
- name: string;
730
728
  url: string;
729
+ name: string;
731
730
  description: string;
731
+ id: string;
732
732
  tags: string[];
733
733
  icon: string;
734
734
  }[];
735
735
  MainProtocol: {
736
- id: string;
737
- name: string;
738
736
  url: string;
737
+ name: string;
739
738
  description: string;
739
+ id: string;
740
740
  tags: string[];
741
741
  icon: string;
742
742
  } | null;
743
743
  } & {
744
- id: string;
745
- name: string;
746
- type: string;
747
744
  status: import("@db/api").$Enums.Status;
745
+ type: string;
746
+ name: string;
748
747
  description: string;
748
+ id: string;
749
749
  tags: string[];
750
750
  identifier: string;
751
751
  action: import("@db/api").$Enums.OpportunityAction;
@@ -762,9 +762,9 @@ export declare abstract class RewardService {
762
762
  };
763
763
  };
764
764
  } & {
765
+ reason: string;
765
766
  pending: string;
766
767
  id: string;
767
- reason: string;
768
768
  campaignId: string;
769
769
  amount: string;
770
770
  claimed: string;