@merkl/api 1.0.67 → 1.0.69
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.
- package/dist/src/eden/index.d.ts +430 -418
- package/dist/src/engine/implementations/Erc20/subTypes/index.d.ts +2 -1
- package/dist/src/index.d.ts +215 -209
- package/dist/src/modules/v4/blacklist/blacklist.controller.d.ts +2 -2
- package/dist/src/modules/v4/blacklist/blacklist.repository.d.ts +2 -2
- package/dist/src/modules/v4/blacklist/blacklist.service.d.ts +2 -2
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +41 -41
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +180 -180
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +50 -50
- package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +44 -44
- package/dist/src/modules/v4/creator/creator.controller.d.ts +12 -12
- package/dist/src/modules/v4/creator/creator.repository.d.ts +6 -6
- package/dist/src/modules/v4/creator/creator.service.d.ts +12 -12
- package/dist/src/modules/v4/node/node.controller.d.ts +1 -1
- package/dist/src/modules/v4/node/node.repository.d.ts +2 -2
- package/dist/src/modules/v4/node/node.service.d.ts +2 -2
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +80 -80
- package/dist/src/modules/v4/opportunity/opportunity.formatter.d.ts +3 -3
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +13 -13
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +192 -192
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +54 -54
- package/dist/src/modules/v4/price/price.controller.d.ts +4 -4
- package/dist/src/modules/v4/price/price.repository.d.ts +5 -5
- package/dist/src/modules/v4/price/price.service.d.ts +4 -4
- package/dist/src/modules/v4/programPayload/programPayload.model.d.ts +19 -1
- package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +25 -2
- package/dist/src/modules/v4/programPayload/subPayloads/hypurrFi.d.ts +9 -1
- package/dist/src/modules/v4/protocol/protocol.repository.d.ts +6 -6
- package/dist/src/modules/v4/reward/reward.repository.d.ts +11 -11
- package/dist/src/modules/v4/reward/reward.service.d.ts +67 -67
- package/dist/src/modules/v4/router.d.ts +212 -209
- package/dist/src/modules/v4/status/status.controller.d.ts +14 -14
- package/dist/src/modules/v4/status/status.repository.d.ts +20 -20
- package/dist/src/modules/v4/status/status.service.d.ts +16 -16
- package/dist/src/modules/v4/uniswap/uniswap.controller.d.ts +3 -0
- package/dist/src/modules/v4/uniswap/uniswap.repository.d.ts +2 -2
- package/dist/src/modules/v4/user/user.controller.d.ts +11 -11
- package/dist/src/routes/v3/router.d.ts +3 -0
- package/dist/src/routes/v3/uniswapv4.d.ts +3 -0
- package/dist/src/utils/providers.d.ts +2 -0
- package/dist/src/utils/queries/allCampaigns.d.ts +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -10,6 +10,14 @@ export declare abstract class OpportunityRepository {
|
|
10
10
|
static create(newOpp: CreateOpportunityModel & {
|
11
11
|
id: string;
|
12
12
|
}, upsert?: boolean): Promise<{
|
13
|
+
Protocols: {
|
14
|
+
name: string;
|
15
|
+
description: string;
|
16
|
+
id: string;
|
17
|
+
url: string;
|
18
|
+
icon: string;
|
19
|
+
tags: string[];
|
20
|
+
}[];
|
13
21
|
Tokens: {
|
14
22
|
symbol: string;
|
15
23
|
name: string | null;
|
@@ -26,14 +34,6 @@ export declare abstract class OpportunityRepository {
|
|
26
34
|
verified: boolean;
|
27
35
|
displaySymbol: string;
|
28
36
|
}[];
|
29
|
-
Protocols: {
|
30
|
-
name: string;
|
31
|
-
description: string;
|
32
|
-
id: string;
|
33
|
-
url: string;
|
34
|
-
icon: string;
|
35
|
-
tags: string[];
|
36
|
-
}[];
|
37
37
|
} & {
|
38
38
|
name: string;
|
39
39
|
apr: number;
|
@@ -45,16 +45,21 @@ export declare abstract class OpportunityRepository {
|
|
45
45
|
action: import("@package/databases").OpportunityAction;
|
46
46
|
type: string;
|
47
47
|
depositUrl: string | null;
|
48
|
-
explorerAddress: string | null;
|
49
|
-
howToSteps: string[];
|
50
|
-
mainProtocolId: string | null;
|
51
48
|
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
52
49
|
identifier: string;
|
50
|
+
howToSteps: string[];
|
51
|
+
explorerAddress: string | null;
|
52
|
+
mainProtocolId: string | null;
|
53
53
|
dailyRewards: number;
|
54
54
|
tags: string[];
|
55
55
|
lastCampaignCreatedAt: Date;
|
56
56
|
}>;
|
57
57
|
static findUnique(id: string): Promise<({
|
58
|
+
Chain: {
|
59
|
+
name: string;
|
60
|
+
id: number;
|
61
|
+
icon: string;
|
62
|
+
};
|
58
63
|
Campaigns: ({
|
59
64
|
RewardToken: {
|
60
65
|
symbol: string;
|
@@ -76,28 +81,31 @@ export declare abstract class OpportunityRepository {
|
|
76
81
|
campaignId: string;
|
77
82
|
description: string | null;
|
78
83
|
id: string;
|
79
|
-
params: import("@prisma/client/runtime/
|
84
|
+
params: import("@prisma/client/runtime/client").JsonValue;
|
80
85
|
amount: string;
|
81
86
|
startTimestamp: bigint;
|
82
87
|
type: string;
|
83
88
|
computeChainId: number;
|
84
89
|
distributionChainId: number;
|
85
90
|
endTimestamp: bigint;
|
86
|
-
opportunityId: string;
|
87
|
-
creatorAddress: string;
|
88
91
|
distributionType: import("@package/databases").DistributionType;
|
89
92
|
subType: number | null;
|
90
93
|
rewardTokenId: string;
|
94
|
+
opportunityId: string;
|
95
|
+
creatorAddress: string;
|
91
96
|
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
92
97
|
createdAt: Date;
|
93
98
|
rootCampaignId: string | null;
|
94
99
|
parentCampaignId: string | null;
|
95
100
|
})[];
|
96
|
-
|
101
|
+
Protocols: {
|
97
102
|
name: string;
|
98
|
-
|
103
|
+
description: string;
|
104
|
+
id: string;
|
105
|
+
url: string;
|
99
106
|
icon: string;
|
100
|
-
|
107
|
+
tags: string[];
|
108
|
+
}[];
|
101
109
|
Tokens: {
|
102
110
|
symbol: string;
|
103
111
|
name: string | null;
|
@@ -114,14 +122,6 @@ export declare abstract class OpportunityRepository {
|
|
114
122
|
verified: boolean;
|
115
123
|
displaySymbol: string;
|
116
124
|
}[];
|
117
|
-
Protocols: {
|
118
|
-
name: string;
|
119
|
-
description: string;
|
120
|
-
id: string;
|
121
|
-
url: string;
|
122
|
-
icon: string;
|
123
|
-
tags: string[];
|
124
|
-
}[];
|
125
125
|
MainProtocol: {
|
126
126
|
name: string;
|
127
127
|
description: string;
|
@@ -161,6 +161,14 @@ export declare abstract class OpportunityRepository {
|
|
161
161
|
amount: string;
|
162
162
|
startTimestamp: bigint;
|
163
163
|
endTimestamp: bigint;
|
164
|
+
CampaignStatus: {
|
165
|
+
campaignId: string;
|
166
|
+
error: string;
|
167
|
+
status: import("@package/databases").RunStatus;
|
168
|
+
details: import("@prisma/client/runtime/client").JsonValue;
|
169
|
+
computedUntil: bigint;
|
170
|
+
processingStarted: bigint;
|
171
|
+
}[];
|
164
172
|
distributionType: import("@package/databases").DistributionType;
|
165
173
|
RewardToken: {
|
166
174
|
symbol: string;
|
@@ -178,14 +186,6 @@ export declare abstract class OpportunityRepository {
|
|
178
186
|
verified: boolean;
|
179
187
|
displaySymbol: string;
|
180
188
|
};
|
181
|
-
CampaignStatus: {
|
182
|
-
campaignId: string;
|
183
|
-
error: string;
|
184
|
-
status: import("@package/databases").RunStatus;
|
185
|
-
details: import("@prisma/client/runtime/library").JsonValue;
|
186
|
-
computedUntil: bigint;
|
187
|
-
processingStarted: bigint;
|
188
|
-
}[];
|
189
189
|
};
|
190
190
|
} & {
|
191
191
|
campaignId: string;
|
@@ -210,42 +210,50 @@ export declare abstract class OpportunityRepository {
|
|
210
210
|
action: import("@package/databases").OpportunityAction;
|
211
211
|
type: string;
|
212
212
|
depositUrl: string | null;
|
213
|
-
explorerAddress: string | null;
|
214
|
-
howToSteps: string[];
|
215
|
-
mainProtocolId: string | null;
|
216
213
|
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
217
214
|
identifier: string;
|
215
|
+
howToSteps: string[];
|
216
|
+
explorerAddress: string | null;
|
217
|
+
mainProtocolId: string | null;
|
218
218
|
dailyRewards: number;
|
219
219
|
tags: string[];
|
220
220
|
lastCampaignCreatedAt: Date;
|
221
221
|
}) | null>;
|
222
222
|
static findUniqueOrThrow(id: string, query: FindOpportunityModel): Promise<{
|
223
|
+
Chain: {
|
224
|
+
name: string;
|
225
|
+
id: number;
|
226
|
+
icon: string;
|
227
|
+
};
|
223
228
|
Campaigns: {
|
224
229
|
campaignId: string;
|
225
230
|
description: string | null;
|
226
231
|
id: string;
|
227
|
-
params: import("@prisma/client/runtime/
|
232
|
+
params: import("@prisma/client/runtime/client").JsonValue;
|
228
233
|
amount: string;
|
229
234
|
startTimestamp: bigint;
|
230
235
|
type: string;
|
231
236
|
computeChainId: number;
|
232
237
|
distributionChainId: number;
|
233
238
|
endTimestamp: bigint;
|
234
|
-
opportunityId: string;
|
235
|
-
creatorAddress: string;
|
236
239
|
distributionType: import("@package/databases").DistributionType;
|
237
240
|
subType: number | null;
|
238
241
|
rewardTokenId: string;
|
242
|
+
opportunityId: string;
|
243
|
+
creatorAddress: string;
|
239
244
|
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
240
245
|
createdAt: Date;
|
241
246
|
rootCampaignId: string | null;
|
242
247
|
parentCampaignId: string | null;
|
243
248
|
}[];
|
244
|
-
|
249
|
+
Protocols: {
|
245
250
|
name: string;
|
246
|
-
|
251
|
+
description: string;
|
252
|
+
id: string;
|
253
|
+
url: string;
|
247
254
|
icon: string;
|
248
|
-
|
255
|
+
tags: string[];
|
256
|
+
}[];
|
249
257
|
Tokens: {
|
250
258
|
symbol: string;
|
251
259
|
name: string | null;
|
@@ -262,14 +270,6 @@ export declare abstract class OpportunityRepository {
|
|
262
270
|
verified: boolean;
|
263
271
|
displaySymbol: string;
|
264
272
|
}[];
|
265
|
-
Protocols: {
|
266
|
-
name: string;
|
267
|
-
description: string;
|
268
|
-
id: string;
|
269
|
-
url: string;
|
270
|
-
icon: string;
|
271
|
-
tags: string[];
|
272
|
-
}[];
|
273
273
|
MainProtocol: {
|
274
274
|
name: string;
|
275
275
|
description: string;
|
@@ -309,6 +309,14 @@ export declare abstract class OpportunityRepository {
|
|
309
309
|
amount: string;
|
310
310
|
startTimestamp: bigint;
|
311
311
|
endTimestamp: bigint;
|
312
|
+
CampaignStatus: {
|
313
|
+
campaignId: string;
|
314
|
+
error: string;
|
315
|
+
status: import("@package/databases").RunStatus;
|
316
|
+
details: import("@prisma/client/runtime/client").JsonValue;
|
317
|
+
computedUntil: bigint;
|
318
|
+
processingStarted: bigint;
|
319
|
+
}[];
|
312
320
|
distributionType: import("@package/databases").DistributionType;
|
313
321
|
RewardToken: {
|
314
322
|
symbol: string;
|
@@ -326,14 +334,6 @@ export declare abstract class OpportunityRepository {
|
|
326
334
|
verified: boolean;
|
327
335
|
displaySymbol: string;
|
328
336
|
};
|
329
|
-
CampaignStatus: {
|
330
|
-
campaignId: string;
|
331
|
-
error: string;
|
332
|
-
status: import("@package/databases").RunStatus;
|
333
|
-
details: import("@prisma/client/runtime/library").JsonValue;
|
334
|
-
computedUntil: bigint;
|
335
|
-
processingStarted: bigint;
|
336
|
-
}[];
|
337
337
|
};
|
338
338
|
} & {
|
339
339
|
campaignId: string;
|
@@ -358,11 +358,11 @@ export declare abstract class OpportunityRepository {
|
|
358
358
|
action: import("@package/databases").OpportunityAction;
|
359
359
|
type: string;
|
360
360
|
depositUrl: string | null;
|
361
|
-
explorerAddress: string | null;
|
362
|
-
howToSteps: string[];
|
363
|
-
mainProtocolId: string | null;
|
364
361
|
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
365
362
|
identifier: string;
|
363
|
+
howToSteps: string[];
|
364
|
+
explorerAddress: string | null;
|
365
|
+
mainProtocolId: string | null;
|
366
366
|
dailyRewards: number;
|
367
367
|
tags: string[];
|
368
368
|
lastCampaignCreatedAt: Date;
|
@@ -371,7 +371,32 @@ export declare abstract class OpportunityRepository {
|
|
371
371
|
* Gets opportunities and campaigns based on a campaign filter
|
372
372
|
*/
|
373
373
|
static findManyByCampaigns(where: Campaign["action"]["findMany"]["args"]["where"]): Promise<({
|
374
|
+
Chain: {
|
375
|
+
Explorer: {
|
376
|
+
id: string;
|
377
|
+
chainId: number;
|
378
|
+
type: import("@package/databases").ExplorerType;
|
379
|
+
url: string;
|
380
|
+
}[];
|
381
|
+
} & {
|
382
|
+
name: string;
|
383
|
+
id: number;
|
384
|
+
icon: string;
|
385
|
+
};
|
374
386
|
Campaigns: ({
|
387
|
+
CampaignStatus: {
|
388
|
+
campaignId: string;
|
389
|
+
error: string;
|
390
|
+
status: import("@package/databases").RunStatus;
|
391
|
+
details: import("@prisma/client/runtime/client").JsonValue;
|
392
|
+
computedUntil: bigint;
|
393
|
+
processingStarted: bigint;
|
394
|
+
}[];
|
395
|
+
Creator: {
|
396
|
+
address: string;
|
397
|
+
tags: string[];
|
398
|
+
creatorId: string | null;
|
399
|
+
};
|
375
400
|
ComputeChain: {
|
376
401
|
name: string;
|
377
402
|
id: number;
|
@@ -405,52 +430,35 @@ export declare abstract class OpportunityRepository {
|
|
405
430
|
verified: boolean;
|
406
431
|
displaySymbol: string;
|
407
432
|
};
|
408
|
-
Creator: {
|
409
|
-
address: string;
|
410
|
-
tags: string[];
|
411
|
-
creatorId: string | null;
|
412
|
-
};
|
413
|
-
CampaignStatus: {
|
414
|
-
campaignId: string;
|
415
|
-
error: string;
|
416
|
-
status: import("@package/databases").RunStatus;
|
417
|
-
details: import("@prisma/client/runtime/library").JsonValue;
|
418
|
-
computedUntil: bigint;
|
419
|
-
processingStarted: bigint;
|
420
|
-
}[];
|
421
433
|
} & {
|
422
434
|
campaignId: string;
|
423
435
|
description: string | null;
|
424
436
|
id: string;
|
425
|
-
params: import("@prisma/client/runtime/
|
437
|
+
params: import("@prisma/client/runtime/client").JsonValue;
|
426
438
|
amount: string;
|
427
439
|
startTimestamp: bigint;
|
428
440
|
type: string;
|
429
441
|
computeChainId: number;
|
430
442
|
distributionChainId: number;
|
431
443
|
endTimestamp: bigint;
|
432
|
-
opportunityId: string;
|
433
|
-
creatorAddress: string;
|
434
444
|
distributionType: import("@package/databases").DistributionType;
|
435
445
|
subType: number | null;
|
436
446
|
rewardTokenId: string;
|
447
|
+
opportunityId: string;
|
448
|
+
creatorAddress: string;
|
437
449
|
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
438
450
|
createdAt: Date;
|
439
451
|
rootCampaignId: string | null;
|
440
452
|
parentCampaignId: string | null;
|
441
453
|
})[];
|
442
|
-
|
443
|
-
Explorer: {
|
444
|
-
id: string;
|
445
|
-
chainId: number;
|
446
|
-
type: import("@package/databases").ExplorerType;
|
447
|
-
url: string;
|
448
|
-
}[];
|
449
|
-
} & {
|
454
|
+
Protocols: {
|
450
455
|
name: string;
|
451
|
-
|
456
|
+
description: string;
|
457
|
+
id: string;
|
458
|
+
url: string;
|
452
459
|
icon: string;
|
453
|
-
|
460
|
+
tags: string[];
|
461
|
+
}[];
|
454
462
|
Tokens: {
|
455
463
|
symbol: string;
|
456
464
|
name: string | null;
|
@@ -467,14 +475,6 @@ export declare abstract class OpportunityRepository {
|
|
467
475
|
verified: boolean;
|
468
476
|
displaySymbol: string;
|
469
477
|
}[];
|
470
|
-
Protocols: {
|
471
|
-
name: string;
|
472
|
-
description: string;
|
473
|
-
id: string;
|
474
|
-
url: string;
|
475
|
-
icon: string;
|
476
|
-
tags: string[];
|
477
|
-
}[];
|
478
478
|
MainProtocol: {
|
479
479
|
name: string;
|
480
480
|
description: string;
|
@@ -514,6 +514,14 @@ export declare abstract class OpportunityRepository {
|
|
514
514
|
amount: string;
|
515
515
|
startTimestamp: bigint;
|
516
516
|
endTimestamp: bigint;
|
517
|
+
CampaignStatus: {
|
518
|
+
campaignId: string;
|
519
|
+
error: string;
|
520
|
+
status: import("@package/databases").RunStatus;
|
521
|
+
details: import("@prisma/client/runtime/client").JsonValue;
|
522
|
+
computedUntil: bigint;
|
523
|
+
processingStarted: bigint;
|
524
|
+
}[];
|
517
525
|
distributionType: import("@package/databases").DistributionType;
|
518
526
|
RewardToken: {
|
519
527
|
symbol: string;
|
@@ -531,14 +539,6 @@ export declare abstract class OpportunityRepository {
|
|
531
539
|
verified: boolean;
|
532
540
|
displaySymbol: string;
|
533
541
|
};
|
534
|
-
CampaignStatus: {
|
535
|
-
campaignId: string;
|
536
|
-
error: string;
|
537
|
-
status: import("@package/databases").RunStatus;
|
538
|
-
details: import("@prisma/client/runtime/library").JsonValue;
|
539
|
-
computedUntil: bigint;
|
540
|
-
processingStarted: bigint;
|
541
|
-
}[];
|
542
542
|
};
|
543
543
|
} & {
|
544
544
|
campaignId: string;
|
@@ -563,49 +563,57 @@ export declare abstract class OpportunityRepository {
|
|
563
563
|
action: import("@package/databases").OpportunityAction;
|
564
564
|
type: string;
|
565
565
|
depositUrl: string | null;
|
566
|
-
explorerAddress: string | null;
|
567
|
-
howToSteps: string[];
|
568
|
-
mainProtocolId: string | null;
|
569
566
|
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
570
567
|
identifier: string;
|
568
|
+
howToSteps: string[];
|
569
|
+
explorerAddress: string | null;
|
570
|
+
mainProtocolId: string | null;
|
571
571
|
dailyRewards: number;
|
572
572
|
tags: string[];
|
573
573
|
lastCampaignCreatedAt: Date;
|
574
574
|
})[]>;
|
575
575
|
static findMany(query: GetOpportunitiesQueryModel): Promise<({
|
576
|
+
Chain: {
|
577
|
+
Explorer: {
|
578
|
+
id: string;
|
579
|
+
chainId: number;
|
580
|
+
type: import("@package/databases").ExplorerType;
|
581
|
+
url: string;
|
582
|
+
}[];
|
583
|
+
} & {
|
584
|
+
name: string;
|
585
|
+
id: number;
|
586
|
+
icon: string;
|
587
|
+
};
|
576
588
|
Campaigns: {
|
577
589
|
campaignId: string;
|
578
590
|
description: string | null;
|
579
591
|
id: string;
|
580
|
-
params: import("@prisma/client/runtime/
|
592
|
+
params: import("@prisma/client/runtime/client").JsonValue;
|
581
593
|
amount: string;
|
582
594
|
startTimestamp: bigint;
|
583
595
|
type: string;
|
584
596
|
computeChainId: number;
|
585
597
|
distributionChainId: number;
|
586
598
|
endTimestamp: bigint;
|
587
|
-
opportunityId: string;
|
588
|
-
creatorAddress: string;
|
589
599
|
distributionType: import("@package/databases").DistributionType;
|
590
600
|
subType: number | null;
|
591
601
|
rewardTokenId: string;
|
602
|
+
opportunityId: string;
|
603
|
+
creatorAddress: string;
|
592
604
|
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
593
605
|
createdAt: Date;
|
594
606
|
rootCampaignId: string | null;
|
595
607
|
parentCampaignId: string | null;
|
596
608
|
}[];
|
597
|
-
|
598
|
-
Explorer: {
|
599
|
-
id: string;
|
600
|
-
chainId: number;
|
601
|
-
type: import("@package/databases").ExplorerType;
|
602
|
-
url: string;
|
603
|
-
}[];
|
604
|
-
} & {
|
609
|
+
Protocols: {
|
605
610
|
name: string;
|
606
|
-
|
611
|
+
description: string;
|
612
|
+
id: string;
|
613
|
+
url: string;
|
607
614
|
icon: string;
|
608
|
-
|
615
|
+
tags: string[];
|
616
|
+
}[];
|
609
617
|
Tokens: {
|
610
618
|
symbol: string;
|
611
619
|
name: string | null;
|
@@ -622,14 +630,6 @@ export declare abstract class OpportunityRepository {
|
|
622
630
|
verified: boolean;
|
623
631
|
displaySymbol: string;
|
624
632
|
}[];
|
625
|
-
Protocols: {
|
626
|
-
name: string;
|
627
|
-
description: string;
|
628
|
-
id: string;
|
629
|
-
url: string;
|
630
|
-
icon: string;
|
631
|
-
tags: string[];
|
632
|
-
}[];
|
633
633
|
MainProtocol: {
|
634
634
|
name: string;
|
635
635
|
description: string;
|
@@ -669,6 +669,14 @@ export declare abstract class OpportunityRepository {
|
|
669
669
|
amount: string;
|
670
670
|
startTimestamp: bigint;
|
671
671
|
endTimestamp: bigint;
|
672
|
+
CampaignStatus: {
|
673
|
+
campaignId: string;
|
674
|
+
error: string;
|
675
|
+
status: import("@package/databases").RunStatus;
|
676
|
+
details: import("@prisma/client/runtime/client").JsonValue;
|
677
|
+
computedUntil: bigint;
|
678
|
+
processingStarted: bigint;
|
679
|
+
}[];
|
672
680
|
distributionType: import("@package/databases").DistributionType;
|
673
681
|
RewardToken: {
|
674
682
|
symbol: string;
|
@@ -686,14 +694,6 @@ export declare abstract class OpportunityRepository {
|
|
686
694
|
verified: boolean;
|
687
695
|
displaySymbol: string;
|
688
696
|
};
|
689
|
-
CampaignStatus: {
|
690
|
-
campaignId: string;
|
691
|
-
error: string;
|
692
|
-
status: import("@package/databases").RunStatus;
|
693
|
-
details: import("@prisma/client/runtime/library").JsonValue;
|
694
|
-
computedUntil: bigint;
|
695
|
-
processingStarted: bigint;
|
696
|
-
}[];
|
697
697
|
};
|
698
698
|
} & {
|
699
699
|
campaignId: string;
|
@@ -718,11 +718,11 @@ export declare abstract class OpportunityRepository {
|
|
718
718
|
action: import("@package/databases").OpportunityAction;
|
719
719
|
type: string;
|
720
720
|
depositUrl: string | null;
|
721
|
-
explorerAddress: string | null;
|
722
|
-
howToSteps: string[];
|
723
|
-
mainProtocolId: string | null;
|
724
721
|
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
725
722
|
identifier: string;
|
723
|
+
howToSteps: string[];
|
724
|
+
explorerAddress: string | null;
|
725
|
+
mainProtocolId: string | null;
|
726
726
|
dailyRewards: number;
|
727
727
|
tags: string[];
|
728
728
|
lastCampaignCreatedAt: Date;
|
@@ -736,7 +736,32 @@ export declare abstract class OpportunityRepository {
|
|
736
736
|
* @dev Excludes test campaigns
|
737
737
|
*/
|
738
738
|
static findLiveWithCampaigns(chainId: MerklChainId, take?: number): Promise<({
|
739
|
+
Chain: {
|
740
|
+
Explorer: {
|
741
|
+
id: string;
|
742
|
+
chainId: number;
|
743
|
+
type: import("@package/databases").ExplorerType;
|
744
|
+
url: string;
|
745
|
+
}[];
|
746
|
+
} & {
|
747
|
+
name: string;
|
748
|
+
id: number;
|
749
|
+
icon: string;
|
750
|
+
};
|
739
751
|
Campaigns: ({
|
752
|
+
CampaignStatus: {
|
753
|
+
campaignId: string;
|
754
|
+
error: string;
|
755
|
+
status: import("@package/databases").RunStatus;
|
756
|
+
details: import("@prisma/client/runtime/client").JsonValue;
|
757
|
+
computedUntil: bigint;
|
758
|
+
processingStarted: bigint;
|
759
|
+
}[];
|
760
|
+
Creator: {
|
761
|
+
address: string;
|
762
|
+
tags: string[];
|
763
|
+
creatorId: string | null;
|
764
|
+
};
|
740
765
|
ComputeChain: {
|
741
766
|
name: string;
|
742
767
|
id: number;
|
@@ -770,52 +795,35 @@ export declare abstract class OpportunityRepository {
|
|
770
795
|
verified: boolean;
|
771
796
|
displaySymbol: string;
|
772
797
|
};
|
773
|
-
Creator: {
|
774
|
-
address: string;
|
775
|
-
tags: string[];
|
776
|
-
creatorId: string | null;
|
777
|
-
};
|
778
|
-
CampaignStatus: {
|
779
|
-
campaignId: string;
|
780
|
-
error: string;
|
781
|
-
status: import("@package/databases").RunStatus;
|
782
|
-
details: import("@prisma/client/runtime/library").JsonValue;
|
783
|
-
computedUntil: bigint;
|
784
|
-
processingStarted: bigint;
|
785
|
-
}[];
|
786
798
|
} & {
|
787
799
|
campaignId: string;
|
788
800
|
description: string | null;
|
789
801
|
id: string;
|
790
|
-
params: import("@prisma/client/runtime/
|
802
|
+
params: import("@prisma/client/runtime/client").JsonValue;
|
791
803
|
amount: string;
|
792
804
|
startTimestamp: bigint;
|
793
805
|
type: string;
|
794
806
|
computeChainId: number;
|
795
807
|
distributionChainId: number;
|
796
808
|
endTimestamp: bigint;
|
797
|
-
opportunityId: string;
|
798
|
-
creatorAddress: string;
|
799
809
|
distributionType: import("@package/databases").DistributionType;
|
800
810
|
subType: number | null;
|
801
811
|
rewardTokenId: string;
|
812
|
+
opportunityId: string;
|
813
|
+
creatorAddress: string;
|
802
814
|
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
803
815
|
createdAt: Date;
|
804
816
|
rootCampaignId: string | null;
|
805
817
|
parentCampaignId: string | null;
|
806
818
|
})[];
|
807
|
-
|
808
|
-
Explorer: {
|
809
|
-
id: string;
|
810
|
-
chainId: number;
|
811
|
-
type: import("@package/databases").ExplorerType;
|
812
|
-
url: string;
|
813
|
-
}[];
|
814
|
-
} & {
|
819
|
+
Protocols: {
|
815
820
|
name: string;
|
816
|
-
|
821
|
+
description: string;
|
822
|
+
id: string;
|
823
|
+
url: string;
|
817
824
|
icon: string;
|
818
|
-
|
825
|
+
tags: string[];
|
826
|
+
}[];
|
819
827
|
Tokens: {
|
820
828
|
symbol: string;
|
821
829
|
name: string | null;
|
@@ -832,14 +840,6 @@ export declare abstract class OpportunityRepository {
|
|
832
840
|
verified: boolean;
|
833
841
|
displaySymbol: string;
|
834
842
|
}[];
|
835
|
-
Protocols: {
|
836
|
-
name: string;
|
837
|
-
description: string;
|
838
|
-
id: string;
|
839
|
-
url: string;
|
840
|
-
icon: string;
|
841
|
-
tags: string[];
|
842
|
-
}[];
|
843
843
|
MainProtocol: {
|
844
844
|
name: string;
|
845
845
|
description: string;
|
@@ -879,6 +879,14 @@ export declare abstract class OpportunityRepository {
|
|
879
879
|
amount: string;
|
880
880
|
startTimestamp: bigint;
|
881
881
|
endTimestamp: bigint;
|
882
|
+
CampaignStatus: {
|
883
|
+
campaignId: string;
|
884
|
+
error: string;
|
885
|
+
status: import("@package/databases").RunStatus;
|
886
|
+
details: import("@prisma/client/runtime/client").JsonValue;
|
887
|
+
computedUntil: bigint;
|
888
|
+
processingStarted: bigint;
|
889
|
+
}[];
|
882
890
|
distributionType: import("@package/databases").DistributionType;
|
883
891
|
RewardToken: {
|
884
892
|
symbol: string;
|
@@ -896,14 +904,6 @@ export declare abstract class OpportunityRepository {
|
|
896
904
|
verified: boolean;
|
897
905
|
displaySymbol: string;
|
898
906
|
};
|
899
|
-
CampaignStatus: {
|
900
|
-
campaignId: string;
|
901
|
-
error: string;
|
902
|
-
status: import("@package/databases").RunStatus;
|
903
|
-
details: import("@prisma/client/runtime/library").JsonValue;
|
904
|
-
computedUntil: bigint;
|
905
|
-
processingStarted: bigint;
|
906
|
-
}[];
|
907
907
|
};
|
908
908
|
} & {
|
909
909
|
campaignId: string;
|
@@ -928,11 +928,11 @@ export declare abstract class OpportunityRepository {
|
|
928
928
|
action: import("@package/databases").OpportunityAction;
|
929
929
|
type: string;
|
930
930
|
depositUrl: string | null;
|
931
|
-
explorerAddress: string | null;
|
932
|
-
howToSteps: string[];
|
933
|
-
mainProtocolId: string | null;
|
934
931
|
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
935
932
|
identifier: string;
|
933
|
+
howToSteps: string[];
|
934
|
+
explorerAddress: string | null;
|
935
|
+
mainProtocolId: string | null;
|
936
936
|
dailyRewards: number;
|
937
937
|
tags: string[];
|
938
938
|
lastCampaignCreatedAt: Date;
|
@@ -989,11 +989,11 @@ export declare abstract class OpportunityRepository {
|
|
989
989
|
action: import("@package/databases").OpportunityAction;
|
990
990
|
type: string;
|
991
991
|
depositUrl: string | null;
|
992
|
-
explorerAddress: string | null;
|
993
|
-
howToSteps: string[];
|
994
|
-
mainProtocolId: string | null;
|
995
992
|
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
996
993
|
identifier: string;
|
994
|
+
howToSteps: string[];
|
995
|
+
explorerAddress: string | null;
|
996
|
+
mainProtocolId: string | null;
|
997
997
|
dailyRewards: number;
|
998
998
|
tags: string[];
|
999
999
|
lastCampaignCreatedAt: Date;
|
@@ -1010,11 +1010,11 @@ export declare abstract class OpportunityRepository {
|
|
1010
1010
|
action: import("@package/databases").OpportunityAction;
|
1011
1011
|
type: string;
|
1012
1012
|
depositUrl: string | null;
|
1013
|
-
explorerAddress: string | null;
|
1014
|
-
howToSteps: string[];
|
1015
|
-
mainProtocolId: string | null;
|
1016
1013
|
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
1017
1014
|
identifier: string;
|
1015
|
+
howToSteps: string[];
|
1016
|
+
explorerAddress: string | null;
|
1017
|
+
mainProtocolId: string | null;
|
1018
1018
|
dailyRewards: number;
|
1019
1019
|
tags: string[];
|
1020
1020
|
lastCampaignCreatedAt: Date;
|
@@ -1030,11 +1030,11 @@ export declare abstract class OpportunityRepository {
|
|
1030
1030
|
action: import("@package/databases").OpportunityAction;
|
1031
1031
|
type: string;
|
1032
1032
|
depositUrl: string | null;
|
1033
|
-
explorerAddress: string | null;
|
1034
|
-
howToSteps: string[];
|
1035
|
-
mainProtocolId: string | null;
|
1036
1033
|
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
1037
1034
|
identifier: string;
|
1035
|
+
howToSteps: string[];
|
1036
|
+
explorerAddress: string | null;
|
1037
|
+
mainProtocolId: string | null;
|
1038
1038
|
dailyRewards: number;
|
1039
1039
|
tags: string[];
|
1040
1040
|
lastCampaignCreatedAt: Date;
|