@merkl/api 0.12.3 → 0.12.5

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 (35) hide show
  1. package/dist/src/backgroundJobs/index.js +9 -0
  2. package/dist/src/cache/declaration.d.ts +1 -1
  3. package/dist/src/cache/declaration.js +1 -1
  4. package/dist/src/eden/index.d.ts +115 -75
  5. package/dist/src/index.d.ts +23 -15
  6. package/dist/src/libs/campaigns/utils/getEulerV2Vaults.d.ts +1 -0
  7. package/dist/src/libs/campaigns/utils/getEulerV2Vaults.js +1 -1
  8. package/dist/src/libs/campaigns/utils/getUniswapV4Pools.d.ts +1 -0
  9. package/dist/src/libs/campaigns/utils/getUniswapV4Pools.js +4 -4
  10. package/dist/src/libs/positions/EigenLayer/index.js +3 -3
  11. package/dist/src/libs/positions/types.d.ts +1 -1
  12. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +1 -1
  13. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +9 -9
  14. package/dist/src/modules/v4/campaign/campaign.service.d.ts +1 -1
  15. package/dist/src/modules/v4/dynamicData/dynamicData.controller.d.ts +1 -1
  16. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +3 -3
  17. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +5 -5
  18. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +72 -72
  19. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +1 -1
  20. package/dist/src/modules/v4/reward/reward.controller.d.ts +12 -4
  21. package/dist/src/modules/v4/reward/reward.repository.d.ts +11 -7
  22. package/dist/src/modules/v4/reward/reward.service.d.ts +10 -5
  23. package/dist/src/modules/v4/router.d.ts +23 -15
  24. package/dist/src/modules/v4/status/status.controller.d.ts +6 -6
  25. package/dist/src/modules/v4/status/status.repository.d.ts +6 -6
  26. package/dist/src/modules/v4/status/status.service.d.ts +6 -6
  27. package/dist/src/modules/v4/token/token.repository.d.ts +2 -2
  28. package/dist/src/modules/v4/token/token.service.d.ts +2 -3
  29. package/dist/src/modules/v4/user/user.repository.d.ts +1 -1
  30. package/dist/src/modules/v4/user/user.service.d.ts +1 -1
  31. package/dist/src/routes/v3/euler.js +1 -1
  32. package/dist/src/utils/prisma.d.ts +16 -3
  33. package/dist/src/utils/prisma.js +2 -1
  34. package/dist/tsconfig.package.tsbuildinfo +1 -1
  35. package/package.json +1 -1
@@ -411,7 +411,6 @@ declare const app: Elysia<"", false, {
411
411
  tags: string[];
412
412
  icon: string;
413
413
  } | null | undefined;
414
- depositUrl?: string | undefined;
415
414
  aprRecord?: {
416
415
  timestamp: string | bigint;
417
416
  cumulated: number;
@@ -423,6 +422,7 @@ declare const app: Elysia<"", false, {
423
422
  aprRecordId: string;
424
423
  }[];
425
424
  } | undefined;
425
+ depositUrl?: string | undefined;
426
426
  tvlRecord?: {
427
427
  total: number;
428
428
  timestamp: string | bigint;
@@ -535,7 +535,6 @@ declare const app: Elysia<"", false, {
535
535
  tags: string[];
536
536
  icon: string;
537
537
  } | null | undefined;
538
- depositUrl?: string | undefined;
539
538
  aprRecord?: {
540
539
  timestamp: string | bigint;
541
540
  cumulated: number;
@@ -547,6 +546,7 @@ declare const app: Elysia<"", false, {
547
546
  aprRecordId: string;
548
547
  }[];
549
548
  } | undefined;
549
+ depositUrl?: string | undefined;
550
550
  tvlRecord?: {
551
551
  total: number;
552
552
  timestamp: string | bigint;
@@ -694,7 +694,6 @@ declare const app: Elysia<"", false, {
694
694
  tags: string[];
695
695
  icon: string;
696
696
  } | null | undefined;
697
- depositUrl?: string | undefined;
698
697
  aprRecord?: {
699
698
  timestamp: string | bigint;
700
699
  cumulated: number;
@@ -706,6 +705,7 @@ declare const app: Elysia<"", false, {
706
705
  aprRecordId: string;
707
706
  }[];
708
707
  } | undefined;
708
+ depositUrl?: string | undefined;
709
709
  tvlRecord?: {
710
710
  total: number;
711
711
  timestamp: string | bigint;
@@ -1186,10 +1186,10 @@ declare const app: Elysia<"", false, {
1186
1186
  response: {
1187
1187
  200: {
1188
1188
  endTimestamp: bigint;
1189
- campaignId: string;
1190
1189
  CampaignStatus: {
1191
1190
  computedUntil: bigint;
1192
1191
  }[];
1192
+ campaignId: string;
1193
1193
  }[];
1194
1194
  };
1195
1195
  };
@@ -1706,8 +1706,12 @@ declare const app: Elysia<"", false, {
1706
1706
  };
1707
1707
  headers: unknown;
1708
1708
  response: {
1709
- [x: string]: any;
1710
- 200: any;
1709
+ 200: {
1710
+ amount: string;
1711
+ claimed: string;
1712
+ pending: string;
1713
+ recipient: string;
1714
+ }[];
1711
1715
  };
1712
1716
  };
1713
1717
  };
@@ -1771,8 +1775,12 @@ declare const app: Elysia<"", false, {
1771
1775
  };
1772
1776
  headers: unknown;
1773
1777
  response: {
1774
- [x: string]: any;
1775
- 200: any;
1778
+ 200: {
1779
+ amount: string;
1780
+ claimed: string;
1781
+ pending: string;
1782
+ recipient: string;
1783
+ }[];
1776
1784
  };
1777
1785
  };
1778
1786
  };
@@ -3089,13 +3097,13 @@ declare const app: Elysia<"", false, {
3089
3097
  chainId?: number | undefined;
3090
3098
  startTimestamp?: string | undefined;
3091
3099
  endTimestamp?: string | undefined;
3100
+ campaignStatus?: {} | undefined;
3092
3101
  distributionChainId?: number | undefined;
3093
3102
  campaignId?: string | undefined;
3094
3103
  rewardTokenId?: string | undefined;
3095
3104
  amount?: string | undefined;
3096
3105
  opportunityId?: string | undefined;
3097
3106
  creatorAddress?: string | undefined;
3098
- campaignStatus?: {} | undefined;
3099
3107
  rewardToken?: {} | undefined;
3100
3108
  rewardTokenAddress?: string | undefined;
3101
3109
  distributionChain?: {} | undefined;
@@ -3269,12 +3277,6 @@ declare const app: Elysia<"", false, {
3269
3277
  delayFormatted: string;
3270
3278
  startTimestamp: bigint;
3271
3279
  endTimestamp: bigint;
3272
- computeChainId: number;
3273
- distributionChainId: number;
3274
- campaignId: string;
3275
- Opportunity: {
3276
- name: string;
3277
- };
3278
3280
  CampaignStatus: {
3279
3281
  error: string;
3280
3282
  details: import("database/api/.generated/runtime/library").JsonValue;
@@ -3283,6 +3285,12 @@ declare const app: Elysia<"", false, {
3283
3285
  computedUntil: bigint;
3284
3286
  processingStarted: bigint;
3285
3287
  }[];
3288
+ Opportunity: {
3289
+ name: string;
3290
+ };
3291
+ computeChainId: number;
3292
+ distributionChainId: number;
3293
+ campaignId: string;
3286
3294
  }[];
3287
3295
  };
3288
3296
  };
@@ -18,4 +18,5 @@ export type EulerVaultType = {
18
18
  symbolUnderlying: string;
19
19
  }[];
20
20
  };
21
+ export declare function getEulerV2Vaults(): Promise<EulerVaultType[]>;
21
22
  export declare const getEulerV2VaultsWithCache: () => Promise<EulerVaultType[]>;
@@ -12,7 +12,7 @@ export var LoggedEntityType;
12
12
  LoggedEntityType["EULER"] = "EULER_VAULT";
13
13
  LoggedEntityType["UNISWAP_V4"] = "UNISWAP_V4";
14
14
  })(LoggedEntityType || (LoggedEntityType = {}));
15
- async function getEulerV2Vaults() {
15
+ export async function getEulerV2Vaults() {
16
16
  let vaults = [];
17
17
  // 0_ Fetch all euler vaults from database
18
18
  const storedVaults = await apiDbClient.logged.findMany({
@@ -4,4 +4,5 @@ export type UniswapV4PoolsReturnType = {
4
4
  [poolId: string]: UniswapV4PoolType;
5
5
  };
6
6
  };
7
+ export declare function getUniswapV4Pools(): Promise<UniswapV4PoolsReturnType>;
7
8
  export declare const getUniswapV4PoolsWithCache: () => Promise<UniswapV4PoolsReturnType>;
@@ -2,11 +2,11 @@ import { Redis } from "../../../cache";
2
2
  import { log } from "../../../utils/logger";
3
3
  import { apiDbClient } from "../../../utils/prisma";
4
4
  import { providers } from "../../../utils/providers";
5
- import { ChainInteractionService, ERC20Interface, NETWORK_LABELS, NULL_ADDRESS, PoolManagerInterface, UniswapV4Addresses, getContractCreationBlock, } from "@sdk";
5
+ import { ChainInteractionService, ERC20Interface, NETWORK_LABELS, NULL_ADDRESS, UniswapV4Addresses, UniswapV4PoolManagerInterface, getContractCreationBlock, } from "@sdk";
6
6
  import { safeFetchLogs } from "./fetchLogs";
7
7
  import { LoggedEntityType } from "./getEulerV2Vaults";
8
8
  const UNIV4_CHAINIDS = Object.keys(UniswapV4Addresses).map((x) => Number(x));
9
- async function getUniswapV4Pools() {
9
+ export async function getUniswapV4Pools() {
10
10
  const pools = {};
11
11
  // 0_ Fetch all euler vaults from database
12
12
  const storedPools = await apiDbClient.logged.findMany({
@@ -30,9 +30,9 @@ async function getUniswapV4Pools() {
30
30
  }
31
31
  const toBlock = await jsonRPCprovider.getBlockNumber();
32
32
  const logs = await safeFetchLogs(chainId, // TODO: rm type enforcing
33
- [PoolManagerInterface.getEventTopic("Initialize")], [poolManagerAddress], fromBlock, toBlock);
33
+ [UniswapV4PoolManagerInterface.getEventTopic("Initialize")], [poolManagerAddress], fromBlock, toBlock);
34
34
  const decodedPools = await Promise.all(logs.map(async (log) => {
35
- const [id, currency0, currency1, fee, tickSpacing, hooks] = PoolManagerInterface.decodeEventLog("Initialize", log.data, log.topics);
35
+ const [id, currency0, currency1, fee, tickSpacing, hooks] = UniswapV4PoolManagerInterface.decodeEventLog("Initialize", log.data, log.topics);
36
36
  // Respect typing
37
37
  return {
38
38
  poolId: id,
@@ -8,7 +8,7 @@ export async function getEigenLayerUserPositions(user, _chainId, campaigns) {
8
8
  calls.push({
9
9
  allowFailure: true,
10
10
  callData: EigenLayerStrategyInterface.encodeFunctionData("shares", [user]),
11
- target: campaigns[mainParameter].strategy,
11
+ target: campaigns[mainParameter].targetToken,
12
12
  });
13
13
  }
14
14
  return {
@@ -22,13 +22,13 @@ export async function getEigenLayerUserPositions(user, _chainId, campaigns) {
22
22
  for (const campaignId of Object.keys(campaigns)) {
23
23
  let userShares = 0;
24
24
  let userSupply = 0;
25
- const strategy = campaigns[campaignId].strategy;
25
+ const strategy = campaigns[campaignId].targetToken;
26
26
  userShares = EigenLayerStrategyInterface.decodeFunctionResult("shares", result[j++])[0];
27
27
  userSupply = BN2Number(await EigenLayerStrategy__factory.connect(strategy, ChainInteractionService(_chainId).provider()).sharesToUnderlying(userShares), campaigns[campaignId].decimals);
28
28
  const res = {
29
29
  userPositions: [],
30
30
  decimals: campaigns[campaignId].decimals,
31
- totalSupply: BN2Number(campaigns[campaignId].totalSupplyTargetToken, campaigns[campaignId].decimals),
31
+ totalSupply: campaigns[campaignId].totalSupplyTargetToken,
32
32
  userTVL: 0,
33
33
  };
34
34
  if (userSupply > 0) {
@@ -71,5 +71,5 @@ export type MorphoFetchedCampaign = FetchedCampaign & {
71
71
  marketId?: string;
72
72
  };
73
73
  export type EigenLayerFetchedCampaign = FetchedCampaign & {
74
- strategy: string;
74
+ targetToken: string;
75
75
  };
@@ -222,10 +222,10 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
222
222
  response: {
223
223
  200: {
224
224
  endTimestamp: bigint;
225
- campaignId: string;
226
225
  CampaignStatus: {
227
226
  computedUntil: bigint;
228
227
  }[];
228
+ campaignId: string;
229
229
  }[];
230
230
  };
231
231
  };
@@ -141,12 +141,20 @@ export declare abstract class CampaignRepository {
141
141
  }>;
142
142
  static findCampaignsToProcess(distributionChainId: ChainId): Promise<{
143
143
  endTimestamp: bigint;
144
- campaignId: string;
145
144
  CampaignStatus: {
146
145
  computedUntil: bigint;
147
146
  }[];
147
+ campaignId: string;
148
148
  }[]>;
149
149
  static findMany(query: GetCampaignQueryModel): Promise<({
150
+ CampaignStatus: {
151
+ error: string;
152
+ details: Prisma.JsonValue;
153
+ status: import("../../../../database/api/.generated").$Enums.RunStatus;
154
+ campaignId: string;
155
+ computedUntil: bigint;
156
+ processingStarted: bigint;
157
+ }[];
150
158
  ComputeChain: {
151
159
  name: string;
152
160
  id: number;
@@ -170,14 +178,6 @@ export declare abstract class CampaignRepository {
170
178
  isTest: boolean;
171
179
  price: number | null;
172
180
  };
173
- CampaignStatus: {
174
- error: string;
175
- details: Prisma.JsonValue;
176
- status: import("../../../../database/api/.generated").$Enums.RunStatus;
177
- campaignId: string;
178
- computedUntil: bigint;
179
- processingStarted: bigint;
180
- }[];
181
181
  } & {
182
182
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
183
183
  id: string;
@@ -132,10 +132,10 @@ export declare abstract class CampaignService {
132
132
  }>;
133
133
  static findCampaignsToProcess(distributionChainId: ChainId): Promise<{
134
134
  endTimestamp: bigint;
135
- campaignId: string;
136
135
  CampaignStatus: {
137
136
  computedUntil: bigint;
138
137
  }[];
138
+ campaignId: string;
139
139
  }[]>;
140
140
  static pickCampaignToProcess(chainId: ChainId): Promise<string>;
141
141
  static fill(campaigns: CampaignUnique[]): Promise<{
@@ -51,13 +51,13 @@ export declare const DynamicDataController: Elysia<"/dynamic-data", false, {
51
51
  chainId?: number | undefined;
52
52
  startTimestamp?: string | undefined;
53
53
  endTimestamp?: string | undefined;
54
+ campaignStatus?: {} | undefined;
54
55
  distributionChainId?: number | undefined;
55
56
  campaignId?: string | undefined;
56
57
  rewardTokenId?: string | undefined;
57
58
  amount?: string | undefined;
58
59
  opportunityId?: string | undefined;
59
60
  creatorAddress?: string | undefined;
60
- campaignStatus?: {} | undefined;
61
61
  rewardToken?: {} | undefined;
62
62
  rewardTokenAddress?: string | undefined;
63
63
  distributionChain?: {} | undefined;
@@ -266,7 +266,6 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
266
266
  tags: string[];
267
267
  icon: string;
268
268
  } | null | undefined;
269
- depositUrl?: string | undefined;
270
269
  aprRecord?: {
271
270
  timestamp: string | bigint;
272
271
  cumulated: number;
@@ -278,6 +277,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
278
277
  aprRecordId: string;
279
278
  }[];
280
279
  } | undefined;
280
+ depositUrl?: string | undefined;
281
281
  tvlRecord?: {
282
282
  total: number;
283
283
  timestamp: string | bigint;
@@ -390,7 +390,6 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
390
390
  tags: string[];
391
391
  icon: string;
392
392
  } | null | undefined;
393
- depositUrl?: string | undefined;
394
393
  aprRecord?: {
395
394
  timestamp: string | bigint;
396
395
  cumulated: number;
@@ -402,6 +401,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
402
401
  aprRecordId: string;
403
402
  }[];
404
403
  } | undefined;
404
+ depositUrl?: string | undefined;
405
405
  tvlRecord?: {
406
406
  total: number;
407
407
  timestamp: string | bigint;
@@ -549,7 +549,6 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
549
549
  tags: string[];
550
550
  icon: string;
551
551
  } | null | undefined;
552
- depositUrl?: string | undefined;
553
552
  aprRecord?: {
554
553
  timestamp: string | bigint;
555
554
  cumulated: number;
@@ -561,6 +560,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
561
560
  aprRecordId: string;
562
561
  }[];
563
562
  } | undefined;
563
+ depositUrl?: string | undefined;
564
564
  tvlRecord?: {
565
565
  total: number;
566
566
  timestamp: string | bigint;
@@ -165,11 +165,6 @@ export declare const OpportunityWithCampaignsResourceDto: import("@sinclair/type
165
165
  icon: import("@sinclair/typebox").TString;
166
166
  }>;
167
167
  chainId: import("@sinclair/typebox").TNumber;
168
- action: import("@sinclair/typebox").TString;
169
- depositUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
170
- tvl: import("@sinclair/typebox").TNumber;
171
- apr: import("@sinclair/typebox").TNumber;
172
- dailyRewards: import("@sinclair/typebox").TNumber;
173
168
  aprRecord: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
174
169
  cumulated: import("@sinclair/typebox").TNumber;
175
170
  timestamp: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBigInt, import("@sinclair/typebox").TString]>;
@@ -185,6 +180,11 @@ export declare const OpportunityWithCampaignsResourceDto: import("@sinclair/type
185
180
  aprRecordId: import("@sinclair/typebox").TString;
186
181
  }>>;
187
182
  }>>;
183
+ action: import("@sinclair/typebox").TString;
184
+ depositUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
185
+ tvl: import("@sinclair/typebox").TNumber;
186
+ apr: import("@sinclair/typebox").TNumber;
187
+ dailyRewards: import("@sinclair/typebox").TNumber;
188
188
  tvlRecord: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
189
189
  total: import("@sinclair/typebox").TNumber;
190
190
  timestamp: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBigInt, import("@sinclair/typebox").TString]>;
@@ -119,6 +119,14 @@ export declare abstract class OpportunityRepository {
119
119
  Campaign: {
120
120
  startTimestamp: bigint;
121
121
  endTimestamp: bigint;
122
+ CampaignStatus: {
123
+ error: string;
124
+ details: Prisma.JsonValue;
125
+ status: import("../../../../database/api/.generated").$Enums.RunStatus;
126
+ campaignId: string;
127
+ computedUntil: bigint;
128
+ processingStarted: bigint;
129
+ }[];
122
130
  amount: string;
123
131
  RewardToken: {
124
132
  symbol: string;
@@ -133,14 +141,6 @@ export declare abstract class OpportunityRepository {
133
141
  isTest: boolean;
134
142
  price: number | null;
135
143
  };
136
- CampaignStatus: {
137
- error: string;
138
- details: Prisma.JsonValue;
139
- status: import("../../../../database/api/.generated").$Enums.RunStatus;
140
- campaignId: string;
141
- computedUntil: bigint;
142
- processingStarted: bigint;
143
- }[];
144
144
  };
145
145
  } & {
146
146
  id: number;
@@ -237,6 +237,14 @@ export declare abstract class OpportunityRepository {
237
237
  Campaign: {
238
238
  startTimestamp: bigint;
239
239
  endTimestamp: bigint;
240
+ CampaignStatus: {
241
+ error: string;
242
+ details: Prisma.JsonValue;
243
+ status: import("../../../../database/api/.generated").$Enums.RunStatus;
244
+ campaignId: string;
245
+ computedUntil: bigint;
246
+ processingStarted: bigint;
247
+ }[];
240
248
  amount: string;
241
249
  RewardToken: {
242
250
  symbol: string;
@@ -251,14 +259,6 @@ export declare abstract class OpportunityRepository {
251
259
  isTest: boolean;
252
260
  price: number | null;
253
261
  };
254
- CampaignStatus: {
255
- error: string;
256
- details: Prisma.JsonValue;
257
- status: import("../../../../database/api/.generated").$Enums.RunStatus;
258
- campaignId: string;
259
- computedUntil: bigint;
260
- processingStarted: bigint;
261
- }[];
262
262
  };
263
263
  } & {
264
264
  id: number;
@@ -301,6 +301,14 @@ export declare abstract class OpportunityRepository {
301
301
  icon: string;
302
302
  };
303
303
  Campaigns: ({
304
+ CampaignStatus: {
305
+ error: string;
306
+ details: Prisma.JsonValue;
307
+ status: import("../../../../database/api/.generated").$Enums.RunStatus;
308
+ campaignId: string;
309
+ computedUntil: bigint;
310
+ processingStarted: bigint;
311
+ }[];
304
312
  ComputeChain: {
305
313
  name: string;
306
314
  id: number;
@@ -331,14 +339,6 @@ export declare abstract class OpportunityRepository {
331
339
  isTest: boolean;
332
340
  price: number | null;
333
341
  };
334
- CampaignStatus: {
335
- error: string;
336
- details: Prisma.JsonValue;
337
- status: import("../../../../database/api/.generated").$Enums.RunStatus;
338
- campaignId: string;
339
- computedUntil: bigint;
340
- processingStarted: bigint;
341
- }[];
342
342
  } & {
343
343
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
344
344
  id: string;
@@ -416,6 +416,14 @@ export declare abstract class OpportunityRepository {
416
416
  Campaign: {
417
417
  startTimestamp: bigint;
418
418
  endTimestamp: bigint;
419
+ CampaignStatus: {
420
+ error: string;
421
+ details: Prisma.JsonValue;
422
+ status: import("../../../../database/api/.generated").$Enums.RunStatus;
423
+ campaignId: string;
424
+ computedUntil: bigint;
425
+ processingStarted: bigint;
426
+ }[];
419
427
  amount: string;
420
428
  RewardToken: {
421
429
  symbol: string;
@@ -430,14 +438,6 @@ export declare abstract class OpportunityRepository {
430
438
  isTest: boolean;
431
439
  price: number | null;
432
440
  };
433
- CampaignStatus: {
434
- error: string;
435
- details: Prisma.JsonValue;
436
- status: import("../../../../database/api/.generated").$Enums.RunStatus;
437
- campaignId: string;
438
- computedUntil: bigint;
439
- processingStarted: bigint;
440
- }[];
441
441
  };
442
442
  } & {
443
443
  id: number;
@@ -485,6 +485,14 @@ export declare abstract class OpportunityRepository {
485
485
  icon: string;
486
486
  };
487
487
  Campaigns: ({
488
+ CampaignStatus: {
489
+ error: string;
490
+ details: Prisma.JsonValue;
491
+ status: import("../../../../database/api/.generated").$Enums.RunStatus;
492
+ campaignId: string;
493
+ computedUntil: bigint;
494
+ processingStarted: bigint;
495
+ }[];
488
496
  ComputeChain: {
489
497
  name: string;
490
498
  id: number;
@@ -515,14 +523,6 @@ export declare abstract class OpportunityRepository {
515
523
  isTest: boolean;
516
524
  price: number | null;
517
525
  };
518
- CampaignStatus: {
519
- error: string;
520
- details: Prisma.JsonValue;
521
- status: import("../../../../database/api/.generated").$Enums.RunStatus;
522
- campaignId: string;
523
- computedUntil: bigint;
524
- processingStarted: bigint;
525
- }[];
526
526
  } & {
527
527
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
528
528
  id: string;
@@ -600,6 +600,14 @@ export declare abstract class OpportunityRepository {
600
600
  Campaign: {
601
601
  startTimestamp: bigint;
602
602
  endTimestamp: bigint;
603
+ CampaignStatus: {
604
+ error: string;
605
+ details: Prisma.JsonValue;
606
+ status: import("../../../../database/api/.generated").$Enums.RunStatus;
607
+ campaignId: string;
608
+ computedUntil: bigint;
609
+ processingStarted: bigint;
610
+ }[];
603
611
  amount: string;
604
612
  RewardToken: {
605
613
  symbol: string;
@@ -614,14 +622,6 @@ export declare abstract class OpportunityRepository {
614
622
  isTest: boolean;
615
623
  price: number | null;
616
624
  };
617
- CampaignStatus: {
618
- error: string;
619
- details: Prisma.JsonValue;
620
- status: import("../../../../database/api/.generated").$Enums.RunStatus;
621
- campaignId: string;
622
- computedUntil: bigint;
623
- processingStarted: bigint;
624
- }[];
625
625
  };
626
626
  } & {
627
627
  id: number;
@@ -763,6 +763,14 @@ export declare abstract class OpportunityRepository {
763
763
  Campaign: {
764
764
  startTimestamp: bigint;
765
765
  endTimestamp: bigint;
766
+ CampaignStatus: {
767
+ error: string;
768
+ details: Prisma.JsonValue;
769
+ status: import("../../../../database/api/.generated").$Enums.RunStatus;
770
+ campaignId: string;
771
+ computedUntil: bigint;
772
+ processingStarted: bigint;
773
+ }[];
766
774
  amount: string;
767
775
  RewardToken: {
768
776
  symbol: string;
@@ -777,14 +785,6 @@ export declare abstract class OpportunityRepository {
777
785
  isTest: boolean;
778
786
  price: number | null;
779
787
  };
780
- CampaignStatus: {
781
- error: string;
782
- details: Prisma.JsonValue;
783
- status: import("../../../../database/api/.generated").$Enums.RunStatus;
784
- campaignId: string;
785
- computedUntil: bigint;
786
- processingStarted: bigint;
787
- }[];
788
788
  };
789
789
  } & {
790
790
  id: number;
@@ -820,6 +820,14 @@ export declare abstract class OpportunityRepository {
820
820
  icon: string;
821
821
  };
822
822
  Campaigns: ({
823
+ CampaignStatus: {
824
+ error: string;
825
+ details: Prisma.JsonValue;
826
+ status: import("../../../../database/api/.generated").$Enums.RunStatus;
827
+ campaignId: string;
828
+ computedUntil: bigint;
829
+ processingStarted: bigint;
830
+ }[];
823
831
  ComputeChain: {
824
832
  name: string;
825
833
  id: number;
@@ -843,14 +851,6 @@ export declare abstract class OpportunityRepository {
843
851
  isTest: boolean;
844
852
  price: number | null;
845
853
  };
846
- CampaignStatus: {
847
- error: string;
848
- details: Prisma.JsonValue;
849
- status: import("../../../../database/api/.generated").$Enums.RunStatus;
850
- campaignId: string;
851
- computedUntil: bigint;
852
- processingStarted: bigint;
853
- }[];
854
854
  } & {
855
855
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
856
856
  id: string;
@@ -928,6 +928,14 @@ export declare abstract class OpportunityRepository {
928
928
  Campaign: {
929
929
  startTimestamp: bigint;
930
930
  endTimestamp: bigint;
931
+ CampaignStatus: {
932
+ error: string;
933
+ details: Prisma.JsonValue;
934
+ status: import("../../../../database/api/.generated").$Enums.RunStatus;
935
+ campaignId: string;
936
+ computedUntil: bigint;
937
+ processingStarted: bigint;
938
+ }[];
931
939
  amount: string;
932
940
  RewardToken: {
933
941
  symbol: string;
@@ -942,14 +950,6 @@ export declare abstract class OpportunityRepository {
942
950
  isTest: boolean;
943
951
  price: number | null;
944
952
  };
945
- CampaignStatus: {
946
- error: string;
947
- details: Prisma.JsonValue;
948
- status: import("../../../../database/api/.generated").$Enums.RunStatus;
949
- campaignId: string;
950
- computedUntil: bigint;
951
- processingStarted: bigint;
952
- }[];
953
953
  };
954
954
  } & {
955
955
  id: number;
@@ -131,7 +131,6 @@ export declare abstract class OpportunityService {
131
131
  tags: string[];
132
132
  icon: string;
133
133
  } | null | undefined;
134
- depositUrl?: string | undefined;
135
134
  aprRecord?: {
136
135
  timestamp: string | bigint;
137
136
  cumulated: number;
@@ -143,6 +142,7 @@ export declare abstract class OpportunityService {
143
142
  aprRecordId: string;
144
143
  }[];
145
144
  } | undefined;
145
+ depositUrl?: string | undefined;
146
146
  tvlRecord?: {
147
147
  total: number;
148
148
  timestamp: string | bigint;