@merkl/api 0.10.260 → 0.10.261

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.
@@ -549,6 +549,21 @@ declare const eden: {
549
549
  identifier: string;
550
550
  chainId: number;
551
551
  action: import("../../database/api/.generated").$Enums.OpportunityAction;
552
+ Campaigns: {
553
+ type: import("../../database/api/.generated").$Enums.CampaignType;
554
+ id: string;
555
+ params: import("database/api/.generated/runtime/library").JsonValue;
556
+ subType: number | null;
557
+ startTimestamp: bigint;
558
+ endTimestamp: bigint;
559
+ computeChainId: number;
560
+ distributionChainId: number;
561
+ campaignId: string;
562
+ rewardTokenId: string;
563
+ amount: string;
564
+ opportunityId: string;
565
+ creatorAddress: string;
566
+ }[];
552
567
  tvl: number;
553
568
  apr: number;
554
569
  dailyRewards: number;
@@ -3137,6 +3152,21 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
3137
3152
  identifier: string;
3138
3153
  chainId: number;
3139
3154
  action: import("../../database/api/.generated").$Enums.OpportunityAction;
3155
+ Campaigns: {
3156
+ type: import("../../database/api/.generated").$Enums.CampaignType;
3157
+ id: string;
3158
+ params: import("database/api/.generated/runtime/library").JsonValue;
3159
+ subType: number | null;
3160
+ startTimestamp: bigint;
3161
+ endTimestamp: bigint;
3162
+ computeChainId: number;
3163
+ distributionChainId: number;
3164
+ campaignId: string;
3165
+ rewardTokenId: string;
3166
+ amount: string;
3167
+ opportunityId: string;
3168
+ creatorAddress: string;
3169
+ }[];
3140
3170
  tvl: number;
3141
3171
  apr: number;
3142
3172
  dailyRewards: number;
@@ -6864,6 +6894,21 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
6864
6894
  identifier: string;
6865
6895
  chainId: number;
6866
6896
  action: import("../../database/api/.generated").$Enums.OpportunityAction;
6897
+ Campaigns: {
6898
+ type: import("../../database/api/.generated").$Enums.CampaignType;
6899
+ id: string;
6900
+ params: import("database/api/.generated/runtime/library").JsonValue;
6901
+ subType: number | null;
6902
+ startTimestamp: bigint;
6903
+ endTimestamp: bigint;
6904
+ computeChainId: number;
6905
+ distributionChainId: number;
6906
+ campaignId: string;
6907
+ rewardTokenId: string;
6908
+ amount: string;
6909
+ opportunityId: string;
6910
+ creatorAddress: string;
6911
+ }[];
6867
6912
  tvl: number;
6868
6913
  apr: number;
6869
6914
  dailyRewards: number;
@@ -337,6 +337,21 @@ declare const app: Elysia<"", false, {
337
337
  identifier: string;
338
338
  chainId: number;
339
339
  action: import("../database/api/.generated").$Enums.OpportunityAction;
340
+ Campaigns: {
341
+ type: import("../database/api/.generated").$Enums.CampaignType;
342
+ id: string;
343
+ params: import("database/api/.generated/runtime/library").JsonValue;
344
+ subType: number | null;
345
+ startTimestamp: bigint;
346
+ endTimestamp: bigint;
347
+ computeChainId: number;
348
+ distributionChainId: number;
349
+ campaignId: string;
350
+ rewardTokenId: string;
351
+ amount: string;
352
+ opportunityId: string;
353
+ creatorAddress: string;
354
+ }[];
340
355
  tvl: number;
341
356
  apr: number;
342
357
  dailyRewards: number;
@@ -206,6 +206,21 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
206
206
  identifier: string;
207
207
  chainId: number;
208
208
  action: import("../../../../database/api/.generated").$Enums.OpportunityAction;
209
+ Campaigns: {
210
+ type: import("../../../../database/api/.generated").$Enums.CampaignType;
211
+ id: string;
212
+ params: import("database/api/.generated/runtime/library").JsonValue;
213
+ subType: number | null;
214
+ startTimestamp: bigint;
215
+ endTimestamp: bigint;
216
+ computeChainId: number;
217
+ distributionChainId: number;
218
+ campaignId: string;
219
+ rewardTokenId: string;
220
+ amount: string;
221
+ opportunityId: string;
222
+ creatorAddress: string;
223
+ }[];
209
224
  tvl: number;
210
225
  apr: number;
211
226
  dailyRewards: number;
@@ -174,6 +174,21 @@ export declare abstract class OpportunityRepository {
174
174
  id: number;
175
175
  icon: string;
176
176
  };
177
+ Campaigns: {
178
+ type: import("../../../../database/api/.generated").$Enums.CampaignType;
179
+ id: string;
180
+ params: Prisma.JsonValue;
181
+ subType: number | null;
182
+ startTimestamp: bigint;
183
+ endTimestamp: bigint;
184
+ computeChainId: number;
185
+ distributionChainId: number;
186
+ campaignId: string;
187
+ rewardTokenId: string;
188
+ amount: string;
189
+ opportunityId: string;
190
+ creatorAddress: string;
191
+ }[];
177
192
  Tokens: {
178
193
  symbol: string;
179
194
  name: string | null;
@@ -133,6 +133,15 @@ export class OpportunityRepository {
133
133
  MainProtocol: true,
134
134
  Protocols: true,
135
135
  Tokens: true,
136
+ Campaigns: withTest
137
+ ? undefined
138
+ : {
139
+ where: {
140
+ RewardToken: {
141
+ isTest: false,
142
+ },
143
+ },
144
+ },
136
145
  },
137
146
  where: { id },
138
147
  });
@@ -171,6 +171,21 @@ export declare abstract class OpportunityService {
171
171
  identifier: string;
172
172
  chainId: number;
173
173
  action: import("../../../../database/api/.generated").$Enums.OpportunityAction;
174
+ Campaigns: {
175
+ type: import("../../../../database/api/.generated").$Enums.CampaignType;
176
+ id: string;
177
+ params: Prisma.JsonValue;
178
+ subType: number | null;
179
+ startTimestamp: bigint;
180
+ endTimestamp: bigint;
181
+ computeChainId: number;
182
+ distributionChainId: number;
183
+ campaignId: string;
184
+ rewardTokenId: string;
185
+ amount: string;
186
+ opportunityId: string;
187
+ creatorAddress: string;
188
+ }[];
174
189
  tvl: number;
175
190
  apr: number;
176
191
  dailyRewards: number;
@@ -259,6 +274,21 @@ export declare abstract class OpportunityService {
259
274
  identifier: string;
260
275
  chainId: number;
261
276
  action: import("../../../../database/api/.generated").$Enums.OpportunityAction;
277
+ Campaigns: {
278
+ type: import("../../../../database/api/.generated").$Enums.CampaignType;
279
+ id: string;
280
+ params: Prisma.JsonValue;
281
+ subType: number | null;
282
+ startTimestamp: bigint;
283
+ endTimestamp: bigint;
284
+ computeChainId: number;
285
+ distributionChainId: number;
286
+ campaignId: string;
287
+ rewardTokenId: string;
288
+ amount: string;
289
+ opportunityId: string;
290
+ creatorAddress: string;
291
+ }[];
262
292
  tvl: number;
263
293
  apr: number;
264
294
  dailyRewards: number;
@@ -404,6 +434,21 @@ export declare abstract class OpportunityService {
404
434
  identifier: string;
405
435
  chainId: number;
406
436
  action: import("../../../../database/api/.generated").$Enums.OpportunityAction;
437
+ Campaigns: {
438
+ type: import("../../../../database/api/.generated").$Enums.CampaignType;
439
+ id: string;
440
+ params: Prisma.JsonValue;
441
+ subType: number | null;
442
+ startTimestamp: bigint;
443
+ endTimestamp: bigint;
444
+ computeChainId: number;
445
+ distributionChainId: number;
446
+ campaignId: string;
447
+ rewardTokenId: string;
448
+ amount: string;
449
+ opportunityId: string;
450
+ creatorAddress: string;
451
+ }[];
407
452
  tvl: number;
408
453
  apr: number;
409
454
  dailyRewards: number;
@@ -444,6 +489,21 @@ export declare abstract class OpportunityService {
444
489
  identifier: string;
445
490
  chainId: number;
446
491
  action: import("../../../../database/api/.generated").$Enums.OpportunityAction;
492
+ Campaigns: {
493
+ type: import("../../../../database/api/.generated").$Enums.CampaignType;
494
+ id: string;
495
+ params: Prisma.JsonValue;
496
+ subType: number | null;
497
+ startTimestamp: bigint;
498
+ endTimestamp: bigint;
499
+ computeChainId: number;
500
+ distributionChainId: number;
501
+ campaignId: string;
502
+ rewardTokenId: string;
503
+ amount: string;
504
+ opportunityId: string;
505
+ creatorAddress: string;
506
+ }[];
447
507
  tvl: number;
448
508
  apr: number;
449
509
  dailyRewards: number;
@@ -215,6 +215,21 @@ export declare const v4: Elysia<"/v4", false, {
215
215
  identifier: string;
216
216
  chainId: number;
217
217
  action: import("../../../database/api/.generated").$Enums.OpportunityAction;
218
+ Campaigns: {
219
+ type: import("../../../database/api/.generated").$Enums.CampaignType;
220
+ id: string;
221
+ params: import("database/api/.generated/runtime/library").JsonValue;
222
+ subType: number | null;
223
+ startTimestamp: bigint;
224
+ endTimestamp: bigint;
225
+ computeChainId: number;
226
+ distributionChainId: number;
227
+ campaignId: string;
228
+ rewardTokenId: string;
229
+ amount: string;
230
+ opportunityId: string;
231
+ creatorAddress: string;
232
+ }[];
218
233
  tvl: number;
219
234
  apr: number;
220
235
  dailyRewards: number;