@merkl/api 1.1.47 → 1.1.50
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 +446 -36
- package/dist/src/index.d.ts +223 -18
- package/dist/src/modules/v4/apr/apr.model.d.ts +3 -0
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +7 -1
- package/dist/src/modules/v4/campaign/campaign.formatter.d.ts +1 -1
- package/dist/src/modules/v4/campaign/campaign.model.d.ts +4 -0
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +25 -8
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +18 -4
- package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +9 -3
- package/dist/src/modules/v4/chain/chain.controller.d.ts +1 -1
- package/dist/src/modules/v4/creator/creator.controller.d.ts +6 -2
- package/dist/src/modules/v4/creator/creator.repository.d.ts +3 -1
- package/dist/src/modules/v4/creator/creator.service.d.ts +6 -2
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +186 -6
- package/dist/src/modules/v4/opportunity/opportunity.formatter.d.ts +6 -3
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +7 -1
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +73 -17
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +18 -8
- package/dist/src/modules/v4/payload/payload.controller.d.ts +13 -4
- package/dist/src/modules/v4/payload/payload.model.d.ts +9 -0
- package/dist/src/modules/v4/payload/payload.service.d.ts +4 -4
- package/dist/src/modules/v4/protocol/protocol.repository.d.ts +3 -1
- package/dist/src/modules/v4/reward/reward.model.d.ts +2 -0
- package/dist/src/modules/v4/reward/reward.repository.d.ts +1 -1
- package/dist/src/modules/v4/reward/reward.service.d.ts +10 -7
- package/dist/src/modules/v4/router.d.ts +223 -18
- package/dist/src/modules/v4/user/user.controller.d.ts +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -45,12 +45,12 @@ export declare abstract class OpportunityRepository {
|
|
45
45
|
action: import("@package/databases").OpportunityAction;
|
46
46
|
type: string;
|
47
47
|
depositUrl: string | null;
|
48
|
+
dailyRewards: number;
|
48
49
|
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
49
50
|
identifier: string;
|
50
51
|
howToSteps: string[];
|
51
52
|
explorerAddress: string | null;
|
52
53
|
mainProtocolId: string | null;
|
53
|
-
dailyRewards: number;
|
54
54
|
tags: string[];
|
55
55
|
lastCampaignCreatedAt: Date;
|
56
56
|
}>;
|
@@ -79,6 +79,7 @@ export declare abstract class OpportunityRepository {
|
|
79
79
|
displaySymbol: string;
|
80
80
|
};
|
81
81
|
} & {
|
82
|
+
apr: number;
|
82
83
|
campaignId: string;
|
83
84
|
description: string | null;
|
84
85
|
id: string;
|
@@ -93,6 +94,7 @@ export declare abstract class OpportunityRepository {
|
|
93
94
|
subType: number | null;
|
94
95
|
rewardTokenId: string;
|
95
96
|
opportunityId: string;
|
97
|
+
dailyRewards: number;
|
96
98
|
creatorAddress: string;
|
97
99
|
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
98
100
|
createdAt: Date;
|
@@ -145,6 +147,7 @@ export declare abstract class OpportunityRepository {
|
|
145
147
|
AprRecords: ({
|
146
148
|
AprBreakdown: {
|
147
149
|
value: number;
|
150
|
+
timestamp: bigint;
|
148
151
|
type: import("@package/databases").AprType;
|
149
152
|
identifier: string;
|
150
153
|
}[];
|
@@ -190,6 +193,7 @@ export declare abstract class OpportunityRepository {
|
|
190
193
|
campaignId: string;
|
191
194
|
id: string;
|
192
195
|
value: number;
|
196
|
+
timestamp: bigint;
|
193
197
|
dailyRewardsRecordId: string;
|
194
198
|
})[];
|
195
199
|
} & {
|
@@ -209,12 +213,12 @@ export declare abstract class OpportunityRepository {
|
|
209
213
|
action: import("@package/databases").OpportunityAction;
|
210
214
|
type: string;
|
211
215
|
depositUrl: string | null;
|
216
|
+
dailyRewards: number;
|
212
217
|
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
213
218
|
identifier: string;
|
214
219
|
howToSteps: string[];
|
215
220
|
explorerAddress: string | null;
|
216
221
|
mainProtocolId: string | null;
|
217
|
-
dailyRewards: number;
|
218
222
|
tags: string[];
|
219
223
|
lastCampaignCreatedAt: Date;
|
220
224
|
}) | null>;
|
@@ -227,6 +231,7 @@ export declare abstract class OpportunityRepository {
|
|
227
231
|
liveCampaigns: number;
|
228
232
|
};
|
229
233
|
Campaigns: {
|
234
|
+
apr: number;
|
230
235
|
campaignId: string;
|
231
236
|
description: string | null;
|
232
237
|
id: string;
|
@@ -241,6 +246,7 @@ export declare abstract class OpportunityRepository {
|
|
241
246
|
subType: number | null;
|
242
247
|
rewardTokenId: string;
|
243
248
|
opportunityId: string;
|
249
|
+
dailyRewards: number;
|
244
250
|
creatorAddress: string;
|
245
251
|
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
246
252
|
createdAt: Date;
|
@@ -293,6 +299,7 @@ export declare abstract class OpportunityRepository {
|
|
293
299
|
AprRecords: ({
|
294
300
|
AprBreakdown: {
|
295
301
|
value: number;
|
302
|
+
timestamp: bigint;
|
296
303
|
type: import("@package/databases").AprType;
|
297
304
|
identifier: string;
|
298
305
|
}[];
|
@@ -338,6 +345,7 @@ export declare abstract class OpportunityRepository {
|
|
338
345
|
campaignId: string;
|
339
346
|
id: string;
|
340
347
|
value: number;
|
348
|
+
timestamp: bigint;
|
341
349
|
dailyRewardsRecordId: string;
|
342
350
|
})[];
|
343
351
|
} & {
|
@@ -357,12 +365,12 @@ export declare abstract class OpportunityRepository {
|
|
357
365
|
action: import("@package/databases").OpportunityAction;
|
358
366
|
type: string;
|
359
367
|
depositUrl: string | null;
|
368
|
+
dailyRewards: number;
|
360
369
|
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
361
370
|
identifier: string;
|
362
371
|
howToSteps: string[];
|
363
372
|
explorerAddress: string | null;
|
364
373
|
mainProtocolId: string | null;
|
365
|
-
dailyRewards: number;
|
366
374
|
tags: string[];
|
367
375
|
lastCampaignCreatedAt: Date;
|
368
376
|
}>;
|
@@ -393,6 +401,26 @@ export declare abstract class OpportunityRepository {
|
|
393
401
|
computedUntil: bigint;
|
394
402
|
processingStarted: bigint;
|
395
403
|
}[];
|
404
|
+
Opportunity: {
|
405
|
+
name: string;
|
406
|
+
apr: number;
|
407
|
+
tvl: number;
|
408
|
+
description: string;
|
409
|
+
id: string;
|
410
|
+
status: import("@package/databases").Status;
|
411
|
+
chainId: number;
|
412
|
+
action: import("@package/databases").OpportunityAction;
|
413
|
+
type: string;
|
414
|
+
depositUrl: string | null;
|
415
|
+
dailyRewards: number;
|
416
|
+
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
417
|
+
identifier: string;
|
418
|
+
howToSteps: string[];
|
419
|
+
explorerAddress: string | null;
|
420
|
+
mainProtocolId: string | null;
|
421
|
+
tags: string[];
|
422
|
+
lastCampaignCreatedAt: Date;
|
423
|
+
};
|
396
424
|
Creator: {
|
397
425
|
address: string;
|
398
426
|
tags: string[];
|
@@ -406,13 +434,6 @@ export declare abstract class OpportunityRepository {
|
|
406
434
|
liveCampaigns: number;
|
407
435
|
};
|
408
436
|
DistributionChain: {
|
409
|
-
Explorer: {
|
410
|
-
id: string;
|
411
|
-
chainId: number;
|
412
|
-
type: import("@package/databases").ExplorerType;
|
413
|
-
url: string;
|
414
|
-
}[];
|
415
|
-
} & {
|
416
437
|
name: string;
|
417
438
|
endOfDisputePeriod: number;
|
418
439
|
id: number;
|
@@ -435,6 +456,7 @@ export declare abstract class OpportunityRepository {
|
|
435
456
|
displaySymbol: string;
|
436
457
|
};
|
437
458
|
} & {
|
459
|
+
apr: number;
|
438
460
|
campaignId: string;
|
439
461
|
description: string | null;
|
440
462
|
id: string;
|
@@ -449,6 +471,7 @@ export declare abstract class OpportunityRepository {
|
|
449
471
|
subType: number | null;
|
450
472
|
rewardTokenId: string;
|
451
473
|
opportunityId: string;
|
474
|
+
dailyRewards: number;
|
452
475
|
creatorAddress: string;
|
453
476
|
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
454
477
|
createdAt: Date;
|
@@ -501,6 +524,7 @@ export declare abstract class OpportunityRepository {
|
|
501
524
|
AprRecords: ({
|
502
525
|
AprBreakdown: {
|
503
526
|
value: number;
|
527
|
+
timestamp: bigint;
|
504
528
|
type: import("@package/databases").AprType;
|
505
529
|
identifier: string;
|
506
530
|
}[];
|
@@ -546,6 +570,7 @@ export declare abstract class OpportunityRepository {
|
|
546
570
|
campaignId: string;
|
547
571
|
id: string;
|
548
572
|
value: number;
|
573
|
+
timestamp: bigint;
|
549
574
|
dailyRewardsRecordId: string;
|
550
575
|
})[];
|
551
576
|
} & {
|
@@ -565,12 +590,12 @@ export declare abstract class OpportunityRepository {
|
|
565
590
|
action: import("@package/databases").OpportunityAction;
|
566
591
|
type: string;
|
567
592
|
depositUrl: string | null;
|
593
|
+
dailyRewards: number;
|
568
594
|
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
569
595
|
identifier: string;
|
570
596
|
howToSteps: string[];
|
571
597
|
explorerAddress: string | null;
|
572
598
|
mainProtocolId: string | null;
|
573
|
-
dailyRewards: number;
|
574
599
|
tags: string[];
|
575
600
|
lastCampaignCreatedAt: Date;
|
576
601
|
})[]>;
|
@@ -590,6 +615,7 @@ export declare abstract class OpportunityRepository {
|
|
590
615
|
liveCampaigns: number;
|
591
616
|
};
|
592
617
|
Campaigns: {
|
618
|
+
apr: number;
|
593
619
|
campaignId: string;
|
594
620
|
description: string | null;
|
595
621
|
id: string;
|
@@ -604,6 +630,7 @@ export declare abstract class OpportunityRepository {
|
|
604
630
|
subType: number | null;
|
605
631
|
rewardTokenId: string;
|
606
632
|
opportunityId: string;
|
633
|
+
dailyRewards: number;
|
607
634
|
creatorAddress: string;
|
608
635
|
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
609
636
|
createdAt: Date;
|
@@ -656,6 +683,7 @@ export declare abstract class OpportunityRepository {
|
|
656
683
|
AprRecords: ({
|
657
684
|
AprBreakdown: {
|
658
685
|
value: number;
|
686
|
+
timestamp: bigint;
|
659
687
|
type: import("@package/databases").AprType;
|
660
688
|
identifier: string;
|
661
689
|
}[];
|
@@ -701,6 +729,7 @@ export declare abstract class OpportunityRepository {
|
|
701
729
|
campaignId: string;
|
702
730
|
id: string;
|
703
731
|
value: number;
|
732
|
+
timestamp: bigint;
|
704
733
|
dailyRewardsRecordId: string;
|
705
734
|
})[];
|
706
735
|
} & {
|
@@ -720,12 +749,12 @@ export declare abstract class OpportunityRepository {
|
|
720
749
|
action: import("@package/databases").OpportunityAction;
|
721
750
|
type: string;
|
722
751
|
depositUrl: string | null;
|
752
|
+
dailyRewards: number;
|
723
753
|
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
724
754
|
identifier: string;
|
725
755
|
howToSteps: string[];
|
726
756
|
explorerAddress: string | null;
|
727
757
|
mainProtocolId: string | null;
|
728
|
-
dailyRewards: number;
|
729
758
|
tags: string[];
|
730
759
|
lastCampaignCreatedAt: Date;
|
731
760
|
})[]>;
|
@@ -803,6 +832,7 @@ export declare abstract class OpportunityRepository {
|
|
803
832
|
displaySymbol: string;
|
804
833
|
};
|
805
834
|
} & {
|
835
|
+
apr: number;
|
806
836
|
campaignId: string;
|
807
837
|
description: string | null;
|
808
838
|
id: string;
|
@@ -817,6 +847,7 @@ export declare abstract class OpportunityRepository {
|
|
817
847
|
subType: number | null;
|
818
848
|
rewardTokenId: string;
|
819
849
|
opportunityId: string;
|
850
|
+
dailyRewards: number;
|
820
851
|
creatorAddress: string;
|
821
852
|
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
822
853
|
createdAt: Date;
|
@@ -869,6 +900,7 @@ export declare abstract class OpportunityRepository {
|
|
869
900
|
AprRecords: ({
|
870
901
|
AprBreakdown: {
|
871
902
|
value: number;
|
903
|
+
timestamp: bigint;
|
872
904
|
type: import("@package/databases").AprType;
|
873
905
|
identifier: string;
|
874
906
|
}[];
|
@@ -914,6 +946,7 @@ export declare abstract class OpportunityRepository {
|
|
914
946
|
campaignId: string;
|
915
947
|
id: string;
|
916
948
|
value: number;
|
949
|
+
timestamp: bigint;
|
917
950
|
dailyRewardsRecordId: string;
|
918
951
|
})[];
|
919
952
|
} & {
|
@@ -933,12 +966,12 @@ export declare abstract class OpportunityRepository {
|
|
933
966
|
action: import("@package/databases").OpportunityAction;
|
934
967
|
type: string;
|
935
968
|
depositUrl: string | null;
|
969
|
+
dailyRewards: number;
|
936
970
|
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
937
971
|
identifier: string;
|
938
972
|
howToSteps: string[];
|
939
973
|
explorerAddress: string | null;
|
940
974
|
mainProtocolId: string | null;
|
941
|
-
dailyRewards: number;
|
942
975
|
tags: string[];
|
943
976
|
lastCampaignCreatedAt: Date;
|
944
977
|
})[]>;
|
@@ -975,6 +1008,7 @@ export declare abstract class OpportunityRepository {
|
|
975
1008
|
campaignId: string;
|
976
1009
|
id: string;
|
977
1010
|
value: number;
|
1011
|
+
timestamp: bigint;
|
978
1012
|
dailyRewardsRecordId: string;
|
979
1013
|
}[];
|
980
1014
|
} & {
|
@@ -983,7 +1017,7 @@ export declare abstract class OpportunityRepository {
|
|
983
1017
|
opportunityId: string;
|
984
1018
|
total: number;
|
985
1019
|
};
|
986
|
-
opportunity: {
|
1020
|
+
opportunity: Prisma.BatchPayload | {
|
987
1021
|
name: string;
|
988
1022
|
apr: number;
|
989
1023
|
tvl: number;
|
@@ -994,14 +1028,36 @@ export declare abstract class OpportunityRepository {
|
|
994
1028
|
action: import("@package/databases").OpportunityAction;
|
995
1029
|
type: string;
|
996
1030
|
depositUrl: string | null;
|
1031
|
+
dailyRewards: number;
|
997
1032
|
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
998
1033
|
identifier: string;
|
999
1034
|
howToSteps: string[];
|
1000
1035
|
explorerAddress: string | null;
|
1001
1036
|
mainProtocolId: string | null;
|
1002
|
-
dailyRewards: number;
|
1003
1037
|
tags: string[];
|
1004
1038
|
lastCampaignCreatedAt: Date;
|
1039
|
+
} | {
|
1040
|
+
apr: number;
|
1041
|
+
campaignId: string;
|
1042
|
+
description: string | null;
|
1043
|
+
id: string;
|
1044
|
+
params: import("@prisma/client/runtime/client").JsonValue;
|
1045
|
+
amount: string;
|
1046
|
+
startTimestamp: bigint;
|
1047
|
+
type: string;
|
1048
|
+
computeChainId: number;
|
1049
|
+
distributionChainId: number;
|
1050
|
+
endTimestamp: bigint;
|
1051
|
+
distributionType: import("@package/databases").DistributionType;
|
1052
|
+
subType: number | null;
|
1053
|
+
rewardTokenId: string;
|
1054
|
+
opportunityId: string;
|
1055
|
+
dailyRewards: number;
|
1056
|
+
creatorAddress: string;
|
1057
|
+
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
1058
|
+
createdAt: Date;
|
1059
|
+
rootCampaignId: string | null;
|
1060
|
+
parentCampaignId: string | null;
|
1005
1061
|
};
|
1006
1062
|
}>;
|
1007
1063
|
static updateStatus(id: string, status: Status): Promise<{
|
@@ -1015,12 +1071,12 @@ export declare abstract class OpportunityRepository {
|
|
1015
1071
|
action: import("@package/databases").OpportunityAction;
|
1016
1072
|
type: string;
|
1017
1073
|
depositUrl: string | null;
|
1074
|
+
dailyRewards: number;
|
1018
1075
|
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
1019
1076
|
identifier: string;
|
1020
1077
|
howToSteps: string[];
|
1021
1078
|
explorerAddress: string | null;
|
1022
1079
|
mainProtocolId: string | null;
|
1023
|
-
dailyRewards: number;
|
1024
1080
|
tags: string[];
|
1025
1081
|
lastCampaignCreatedAt: Date;
|
1026
1082
|
}>;
|
@@ -1035,12 +1091,12 @@ export declare abstract class OpportunityRepository {
|
|
1035
1091
|
action: import("@package/databases").OpportunityAction;
|
1036
1092
|
type: string;
|
1037
1093
|
depositUrl: string | null;
|
1094
|
+
dailyRewards: number;
|
1038
1095
|
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
1039
1096
|
identifier: string;
|
1040
1097
|
howToSteps: string[];
|
1041
1098
|
explorerAddress: string | null;
|
1042
1099
|
mainProtocolId: string | null;
|
1043
|
-
dailyRewards: number;
|
1044
1100
|
tags: string[];
|
1045
1101
|
lastCampaignCreatedAt: Date;
|
1046
1102
|
}>;
|
@@ -42,12 +42,12 @@ export declare abstract class OpportunityService {
|
|
42
42
|
action: import("@package/databases").OpportunityAction;
|
43
43
|
type: string;
|
44
44
|
depositUrl: string | null;
|
45
|
+
dailyRewards: number;
|
45
46
|
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
46
47
|
identifier: string;
|
47
48
|
howToSteps: string[];
|
48
49
|
explorerAddress: string | null;
|
49
50
|
mainProtocolId: string | null;
|
50
|
-
dailyRewards: number;
|
51
51
|
tags: string[];
|
52
52
|
lastCampaignCreatedAt: Date;
|
53
53
|
}>;
|
@@ -117,12 +117,12 @@ export declare abstract class OpportunityService {
|
|
117
117
|
action: import("@package/databases").OpportunityAction;
|
118
118
|
type: string;
|
119
119
|
depositUrl: string | null;
|
120
|
+
dailyRewards: number;
|
120
121
|
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
121
122
|
identifier: string;
|
122
123
|
howToSteps: string[];
|
123
124
|
explorerAddress: string | null;
|
124
125
|
mainProtocolId: string | null;
|
125
|
-
dailyRewards: number;
|
126
126
|
tags: string[];
|
127
127
|
lastCampaignCreatedAt: Date;
|
128
128
|
})>;
|
@@ -197,12 +197,12 @@ export declare abstract class OpportunityService {
|
|
197
197
|
action: import("@package/databases").OpportunityAction;
|
198
198
|
type: string;
|
199
199
|
depositUrl: string | null;
|
200
|
+
dailyRewards: number;
|
200
201
|
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
201
202
|
identifier: string;
|
202
203
|
howToSteps: string[];
|
203
204
|
explorerAddress: string | null;
|
204
205
|
mainProtocolId: string | null;
|
205
|
-
dailyRewards: number;
|
206
206
|
tags: string[];
|
207
207
|
lastCampaignCreatedAt: Date;
|
208
208
|
})>;
|
@@ -276,12 +276,12 @@ export declare abstract class OpportunityService {
|
|
276
276
|
action: import("@package/databases").OpportunityAction;
|
277
277
|
type: string;
|
278
278
|
depositUrl: string | null;
|
279
|
+
dailyRewards: number;
|
279
280
|
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
280
281
|
identifier: string;
|
281
282
|
howToSteps: string[];
|
282
283
|
explorerAddress: string | null;
|
283
284
|
mainProtocolId: string | null;
|
284
|
-
dailyRewards: number;
|
285
285
|
tags: string[];
|
286
286
|
lastCampaignCreatedAt: Date;
|
287
287
|
})>;
|
@@ -310,6 +310,7 @@ export declare abstract class OpportunityService {
|
|
310
310
|
breakdowns: {
|
311
311
|
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
312
312
|
value: number;
|
313
|
+
timestamp: string | bigint;
|
313
314
|
type: "TOKEN" | "CAMPAIGN" | "PROTOCOL";
|
314
315
|
identifier: string;
|
315
316
|
}[];
|
@@ -347,6 +348,7 @@ export declare abstract class OpportunityService {
|
|
347
348
|
campaignId: string;
|
348
349
|
value: number;
|
349
350
|
amount: string | bigint;
|
351
|
+
timestamp: string | bigint;
|
350
352
|
}[];
|
351
353
|
} | undefined;
|
352
354
|
name: string;
|
@@ -371,6 +373,7 @@ export declare abstract class OpportunityService {
|
|
371
373
|
status: string;
|
372
374
|
chainId: number;
|
373
375
|
campaigns: {
|
376
|
+
apr?: number | undefined;
|
374
377
|
description?: string | undefined;
|
375
378
|
creator?: {
|
376
379
|
tags?: string[] | undefined;
|
@@ -385,6 +388,7 @@ export declare abstract class OpportunityService {
|
|
385
388
|
processingStarted: string | number;
|
386
389
|
} | undefined;
|
387
390
|
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
391
|
+
dailyRewards?: number | undefined;
|
388
392
|
rootCampaignId?: string | undefined;
|
389
393
|
parentCampaignId?: string | undefined;
|
390
394
|
distributionChain?: {
|
@@ -452,9 +456,9 @@ export declare abstract class OpportunityService {
|
|
452
456
|
icon: string;
|
453
457
|
liveCampaigns: number;
|
454
458
|
};
|
459
|
+
dailyRewards: number;
|
455
460
|
identifier: string;
|
456
461
|
howToSteps: string[];
|
457
|
-
dailyRewards: number;
|
458
462
|
tags: string[];
|
459
463
|
lastCampaignCreatedAt: number;
|
460
464
|
}[]>;
|
@@ -470,11 +474,13 @@ export declare abstract class OpportunityService {
|
|
470
474
|
timestamp: bigint;
|
471
475
|
breakdowns: ({
|
472
476
|
value: number;
|
477
|
+
timestamp: bigint;
|
473
478
|
distributionType: import("@package/databases").DistributionType;
|
474
479
|
identifier: string;
|
475
480
|
type: "CAMPAIGN";
|
476
481
|
} | {
|
477
482
|
value: number;
|
483
|
+
timestamp: bigint;
|
478
484
|
identifier: string;
|
479
485
|
type: import("@package/databases").AprType;
|
480
486
|
})[];
|
@@ -496,6 +502,7 @@ export declare abstract class OpportunityService {
|
|
496
502
|
breakdowns: {
|
497
503
|
campaignId: string;
|
498
504
|
id: string;
|
505
|
+
timestamp: bigint;
|
499
506
|
dailyRewardsRecordId: string;
|
500
507
|
token: {
|
501
508
|
symbol: string;
|
@@ -562,9 +569,9 @@ export declare abstract class OpportunityService {
|
|
562
569
|
chainId: number;
|
563
570
|
action: import("@package/databases").OpportunityAction;
|
564
571
|
type: string;
|
572
|
+
dailyRewards: number;
|
565
573
|
identifier: string;
|
566
574
|
howToSteps: string[];
|
567
|
-
dailyRewards: number;
|
568
575
|
tags: string[];
|
569
576
|
}[]>;
|
570
577
|
/**
|
@@ -580,11 +587,13 @@ export declare abstract class OpportunityService {
|
|
580
587
|
timestamp: bigint;
|
581
588
|
breakdowns: ({
|
582
589
|
value: number;
|
590
|
+
timestamp: bigint;
|
583
591
|
distributionType: import("@package/databases").DistributionType;
|
584
592
|
identifier: string;
|
585
593
|
type: "CAMPAIGN";
|
586
594
|
} | {
|
587
595
|
value: number;
|
596
|
+
timestamp: bigint;
|
588
597
|
identifier: string;
|
589
598
|
type: import("@package/databases").AprType;
|
590
599
|
})[];
|
@@ -606,6 +615,7 @@ export declare abstract class OpportunityService {
|
|
606
615
|
breakdowns: {
|
607
616
|
campaignId: string;
|
608
617
|
id: string;
|
618
|
+
timestamp: bigint;
|
609
619
|
dailyRewardsRecordId: string;
|
610
620
|
token: {
|
611
621
|
symbol: string;
|
@@ -672,9 +682,9 @@ export declare abstract class OpportunityService {
|
|
672
682
|
chainId: number;
|
673
683
|
action: import("@package/databases").OpportunityAction;
|
674
684
|
type: string;
|
685
|
+
dailyRewards: number;
|
675
686
|
identifier: string;
|
676
687
|
howToSteps: string[];
|
677
|
-
dailyRewards: number;
|
678
688
|
tags: string[];
|
679
689
|
}[]>;
|
680
690
|
static aggregate(query: FindManyOpportunityModel, field: keyof Prisma.OpportunitySumAggregateInputType): Promise<{
|
@@ -697,12 +707,12 @@ export declare abstract class OpportunityService {
|
|
697
707
|
action: import("@package/databases").OpportunityAction;
|
698
708
|
type: string;
|
699
709
|
depositUrl: string | null;
|
710
|
+
dailyRewards: number;
|
700
711
|
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
701
712
|
identifier: string;
|
702
713
|
howToSteps: string[];
|
703
714
|
explorerAddress: string | null;
|
704
715
|
mainProtocolId: string | null;
|
705
|
-
dailyRewards: number;
|
706
716
|
tags: string[];
|
707
717
|
lastCampaignCreatedAt: Date;
|
708
718
|
}>;
|
@@ -53,6 +53,7 @@ export declare const PayloadController: Elysia<"/payload", {
|
|
53
53
|
poolId?: string | undefined;
|
54
54
|
hooks?: {}[] | undefined;
|
55
55
|
isOutOfRangeIncentivized?: boolean | undefined;
|
56
|
+
vaultAddress?: string | undefined;
|
56
57
|
endTimestamp?: number | undefined;
|
57
58
|
blacklist?: string[] | undefined;
|
58
59
|
url?: string | undefined;
|
@@ -64,6 +65,14 @@ export declare const PayloadController: Elysia<"/payload", {
|
|
64
65
|
weightFees?: number | undefined;
|
65
66
|
weightToken0?: number | undefined;
|
66
67
|
weightToken1?: number | undefined;
|
68
|
+
distributionMethodParameters?: {
|
69
|
+
distributionMethod?: string | undefined;
|
70
|
+
distributionSettings?: any;
|
71
|
+
} | undefined;
|
72
|
+
computeScoreParameters?: {
|
73
|
+
computeMethod?: string | undefined;
|
74
|
+
computeSettings?: any;
|
75
|
+
} | undefined;
|
67
76
|
compFork?: number | undefined;
|
68
77
|
rewardsUrl?: string | undefined;
|
69
78
|
dataUrl?: string | undefined;
|
@@ -157,12 +166,12 @@ export declare const PayloadController: Elysia<"/payload", {
|
|
157
166
|
action: import("@package/databases").OpportunityAction;
|
158
167
|
type: string;
|
159
168
|
depositUrl: string | null;
|
169
|
+
dailyRewards: number;
|
160
170
|
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
161
171
|
identifier: string;
|
162
172
|
howToSteps: string[];
|
163
173
|
explorerAddress: string | null;
|
164
174
|
mainProtocolId: string | null;
|
165
|
-
dailyRewards: number;
|
166
175
|
tags: string[];
|
167
176
|
lastCampaignCreatedAt: Date;
|
168
177
|
}) | undefined;
|
@@ -275,12 +284,12 @@ export declare const PayloadController: Elysia<"/payload", {
|
|
275
284
|
action: import("@package/databases").OpportunityAction;
|
276
285
|
type: string;
|
277
286
|
depositUrl: string | null;
|
287
|
+
dailyRewards: number;
|
278
288
|
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
279
289
|
identifier: string;
|
280
290
|
howToSteps: string[];
|
281
291
|
explorerAddress: string | null;
|
282
292
|
mainProtocolId: string | null;
|
283
|
-
dailyRewards: number;
|
284
293
|
tags: string[];
|
285
294
|
lastCampaignCreatedAt: Date;
|
286
295
|
});
|
@@ -405,12 +414,12 @@ export declare const PayloadController: Elysia<"/payload", {
|
|
405
414
|
action: import("@package/databases").OpportunityAction;
|
406
415
|
type: string;
|
407
416
|
depositUrl: string | null;
|
417
|
+
dailyRewards: number;
|
408
418
|
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
409
419
|
identifier: string;
|
410
420
|
howToSteps: string[];
|
411
421
|
explorerAddress: string | null;
|
412
422
|
mainProtocolId: string | null;
|
413
|
-
dailyRewards: number;
|
414
423
|
tags: string[];
|
415
424
|
lastCampaignCreatedAt: Date;
|
416
425
|
});
|
@@ -531,12 +540,12 @@ export declare const PayloadController: Elysia<"/payload", {
|
|
531
540
|
action: import("@package/databases").OpportunityAction;
|
532
541
|
type: string;
|
533
542
|
depositUrl: string | null;
|
543
|
+
dailyRewards: number;
|
534
544
|
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
535
545
|
identifier: string;
|
536
546
|
howToSteps: string[];
|
537
547
|
explorerAddress: string | null;
|
538
548
|
mainProtocolId: string | null;
|
539
|
-
dailyRewards: number;
|
540
549
|
tags: string[];
|
541
550
|
lastCampaignCreatedAt: Date;
|
542
551
|
});
|
@@ -49,6 +49,15 @@ export declare const SinglePayloadInputDto: import("@sinclair/typebox").TObject<
|
|
49
49
|
contract: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
50
50
|
rewardsUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
51
51
|
dataUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
52
|
+
vaultAddress: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
53
|
+
computeScoreParameters: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
54
|
+
computeMethod: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
55
|
+
computeSettings: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
56
|
+
}>>;
|
57
|
+
distributionMethodParameters: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
58
|
+
distributionMethod: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
59
|
+
distributionSettings: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
60
|
+
}>>;
|
52
61
|
}>;
|
53
62
|
export declare const ProgramPayloadInputDto: import("@sinclair/typebox").TObject<{
|
54
63
|
program: import("@sinclair/typebox").TString;
|
@@ -81,12 +81,12 @@ export declare class PayloadService {
|
|
81
81
|
action: import("@package/databases").OpportunityAction;
|
82
82
|
type: string;
|
83
83
|
depositUrl: string | null;
|
84
|
+
dailyRewards: number;
|
84
85
|
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
85
86
|
identifier: string;
|
86
87
|
howToSteps: string[];
|
87
88
|
explorerAddress: string | null;
|
88
89
|
mainProtocolId: string | null;
|
89
|
-
dailyRewards: number;
|
90
90
|
tags: string[];
|
91
91
|
lastCampaignCreatedAt: Date;
|
92
92
|
}) | undefined;
|
@@ -178,12 +178,12 @@ export declare class PayloadService {
|
|
178
178
|
action: import("@package/databases").OpportunityAction;
|
179
179
|
type: string;
|
180
180
|
depositUrl: string | null;
|
181
|
+
dailyRewards: number;
|
181
182
|
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
182
183
|
identifier: string;
|
183
184
|
howToSteps: string[];
|
184
185
|
explorerAddress: string | null;
|
185
186
|
mainProtocolId: string | null;
|
186
|
-
dailyRewards: number;
|
187
187
|
tags: string[];
|
188
188
|
lastCampaignCreatedAt: Date;
|
189
189
|
});
|
@@ -273,12 +273,12 @@ export declare class PayloadService {
|
|
273
273
|
action: import("@package/databases").OpportunityAction;
|
274
274
|
type: string;
|
275
275
|
depositUrl: string | null;
|
276
|
+
dailyRewards: number;
|
276
277
|
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
277
278
|
identifier: string;
|
278
279
|
howToSteps: string[];
|
279
280
|
explorerAddress: string | null;
|
280
281
|
mainProtocolId: string | null;
|
281
|
-
dailyRewards: number;
|
282
282
|
tags: string[];
|
283
283
|
lastCampaignCreatedAt: Date;
|
284
284
|
});
|
@@ -368,12 +368,12 @@ export declare class PayloadService {
|
|
368
368
|
action: import("@package/databases").OpportunityAction;
|
369
369
|
type: string;
|
370
370
|
depositUrl: string | null;
|
371
|
+
dailyRewards: number;
|
371
372
|
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
372
373
|
identifier: string;
|
373
374
|
howToSteps: string[];
|
374
375
|
explorerAddress: string | null;
|
375
376
|
mainProtocolId: string | null;
|
376
|
-
dailyRewards: number;
|
377
377
|
tags: string[];
|
378
378
|
lastCampaignCreatedAt: Date;
|
379
379
|
});
|