@merkl/api 0.10.404 → 0.10.406
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/backgroundJobs/jobs/campaignsCacheUpdater.d.ts +2 -12
- package/dist/src/backgroundJobs/jobs/health.d.ts +2 -12
- package/dist/src/backgroundJobs/jobs/opportunityUpdater.d.ts +2 -3
- package/dist/src/backgroundJobs/jobs/priceUpdater.d.ts +2 -3
- package/dist/src/backgroundJobs/jobs/sync.d.ts +2 -12
- package/dist/src/eden/index.d.ts +10853 -8818
- package/dist/src/hooks/checkQueryAddressValidity.d.ts +2 -3
- package/dist/src/hooks/checkQueryChainIdValidity.d.ts +2 -3
- package/dist/src/index.d.ts +66 -1379
- package/dist/src/internal/controllers/endingCampaigns.d.ts +2 -12
- package/dist/src/internal/controllers/unclaimed.d.ts +2 -12
- package/dist/src/jobs/etl/reward-breakdowns.js +4 -3
- package/dist/src/modules/v4/accounting/accounting.controller.d.ts +2 -66
- package/dist/src/modules/v4/blacklist/blacklist.controller.d.ts +2 -30
- package/dist/src/modules/v4/boost/boost.controller.d.ts +2 -12
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +5 -78
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +6 -6
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +4 -4
- package/dist/src/modules/v4/chain/chain.controller.d.ts +2 -39
- package/dist/src/modules/v4/claims/claims.controller.d.ts +2 -12
- package/dist/src/modules/v4/computedValue/computedValue.controller.d.ts +2 -39
- package/dist/src/modules/v4/creator/creator.controller.d.ts +2 -39
- package/dist/src/modules/v4/dungeonKeeper/dungeonKeeper.controller.d.ts +2 -3
- package/dist/src/modules/v4/dynamicData/dynamicData.controller.d.ts +3 -31
- package/dist/src/modules/v4/enso/enso.service.d.ts +1 -1
- package/dist/src/modules/v4/explorer/explorer.controller.d.ts +2 -12
- package/dist/src/modules/v4/interaction/interaction.controller.d.ts +3 -31
- package/dist/src/modules/v4/liquidity/liquidity.controller.d.ts +2 -12
- package/dist/src/modules/v4/merklRoot/merklRoot.controller.d.ts +2 -21
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +18 -118
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +30 -30
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +12 -12
- package/dist/src/modules/v4/price/price.controller.d.ts +2 -48
- package/dist/src/modules/v4/programPayload/programPayload.controller.d.ts +2 -75
- package/dist/src/modules/v4/protocol/protocol.controller.d.ts +9 -46
- package/dist/src/modules/v4/protocol/protocol.repository.d.ts +5 -5
- package/dist/src/modules/v4/protocol/protocol.service.d.ts +2 -2
- package/dist/src/modules/v4/reward/reward.controller.d.ts +5 -147
- package/dist/src/modules/v4/reward/reward.repository.d.ts +3 -3
- package/dist/src/modules/v4/reward/reward.service.d.ts +18 -18
- package/dist/src/modules/v4/router.d.ts +45 -1009
- package/dist/src/modules/v4/status/status.controller.d.ts +2 -48
- package/dist/src/modules/v4/token/token.controller.d.ts +2 -75
- package/dist/src/modules/v4/uniswapV4/uniswapV4.controller.d.ts +2 -12
- package/dist/src/modules/v4/user/user.controller.d.ts +8 -90
- package/dist/src/plugins/error-handling.plugin.d.ts +2 -3
- package/dist/src/plugins/logger.plugin.d.ts +2 -3
- package/dist/src/routes/v1/allowances.d.ts +2 -12
- package/dist/src/routes/v1/balances.d.ts +2 -12
- package/dist/src/routes/v1/prices.d.ts +2 -12
- package/dist/src/routes/v1/router.d.ts +2 -39
- package/dist/src/routes/v1/tokens.d.ts +2 -12
- package/dist/src/routes/v2/merkl.d.ts +2 -12
- package/dist/src/routes/v2/router.d.ts +2 -12
- package/dist/src/routes/v3/app.d.ts +2 -12
- package/dist/src/routes/v3/blacklist.d.ts +2 -12
- package/dist/src/routes/v3/campaign/delay.d.ts +2 -12
- package/dist/src/routes/v3/campaignClaims.d.ts +2 -12
- package/dist/src/routes/v3/campaignReport.d.ts +2 -12
- package/dist/src/routes/v3/campaignUnclaimed.d.ts +2 -12
- package/dist/src/routes/v3/campaigns.d.ts +2 -12
- package/dist/src/routes/v3/campaignsForMainParameter.d.ts +2 -12
- package/dist/src/routes/v3/campaignsInfo.d.ts +2 -12
- package/dist/src/routes/v3/campaignsRewardsReport.d.ts +2 -12
- package/dist/src/routes/v3/claims.d.ts +2 -12
- package/dist/src/routes/v3/compoundV2.d.ts +2 -12
- package/dist/src/routes/v3/createCampaign.d.ts +2 -12
- package/dist/src/routes/v3/dolomite.d.ts +2 -12
- package/dist/src/routes/v3/euler.d.ts +2 -12
- package/dist/src/routes/v3/exports/campaigns.d.ts +2 -12
- package/dist/src/routes/v3/fetch.d.ts +2 -12
- package/dist/src/routes/v3/health.d.ts +2 -12
- package/dist/src/routes/v3/lostyield.d.ts +2 -12
- package/dist/src/routes/v3/merkl.d.ts +2 -3
- package/dist/src/routes/v3/morphoMarkets.d.ts +2 -12
- package/dist/src/routes/v3/morphoVaults.d.ts +2 -12
- package/dist/src/routes/v3/multiChainPositions.d.ts +2 -12
- package/dist/src/routes/v3/opportunity.d.ts +2 -12
- package/dist/src/routes/v3/overview.d.ts +2 -12
- package/dist/src/routes/v3/parse.d.ts +2 -12
- package/dist/src/routes/v3/payload.d.ts +2 -12
- package/dist/src/routes/v3/poolInfo.d.ts +2 -12
- package/dist/src/routes/v3/positions.d.ts +2 -12
- package/dist/src/routes/v3/radiant.d.ts +2 -12
- package/dist/src/routes/v3/recipients.d.ts +2 -12
- package/dist/src/routes/v3/rewards.d.ts +2 -12
- package/dist/src/routes/v3/rewardsReport.d.ts +2 -12
- package/dist/src/routes/v3/router.d.ts +3 -328
- package/dist/src/routes/v3/silo.d.ts +2 -12
- package/dist/src/routes/v3/token.d.ts +2 -12
- package/dist/src/routes/v3/tokenUnclaimed.d.ts +2 -12
- package/dist/src/routes/v3/twt/participants.d.ts +2 -12
- package/dist/src/routes/v3/uniswapv4.d.ts +2 -12
- package/dist/src/routes/v3/updates.d.ts +2 -12
- package/dist/src/routes/v3/userRewards.d.ts +2 -12
- package/dist/src/utils/error.d.ts +2 -3
- package/dist/src/utils/logger.d.ts +8 -0
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +6 -6
@@ -1,17 +1,16 @@
|
|
1
1
|
import Elysia from "elysia";
|
2
|
-
export declare const OpportunityController: Elysia<"/opportunities", {
|
2
|
+
export declare const OpportunityController: Elysia<"/opportunities", false, {
|
3
3
|
decorator: {};
|
4
4
|
store: {};
|
5
5
|
derive: {};
|
6
6
|
resolve: {};
|
7
7
|
}, {
|
8
|
-
|
8
|
+
type: {};
|
9
9
|
error: {};
|
10
10
|
}, {
|
11
11
|
schema: {};
|
12
12
|
macro: {};
|
13
13
|
macroFn: {};
|
14
|
-
parser: {};
|
15
14
|
}, {
|
16
15
|
opportunities: {
|
17
16
|
index: {
|
@@ -39,8 +38,8 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
39
38
|
};
|
40
39
|
response: {
|
41
40
|
200: {
|
42
|
-
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
43
41
|
name: string;
|
42
|
+
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
44
43
|
id: string;
|
45
44
|
status: import("../../../../database/api/.generated").$Enums.Status;
|
46
45
|
tags: string[];
|
@@ -53,15 +52,6 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
53
52
|
apr: number;
|
54
53
|
dailyRewards: number;
|
55
54
|
} | null;
|
56
|
-
422: {
|
57
|
-
type: "validation";
|
58
|
-
on: string;
|
59
|
-
summary?: string;
|
60
|
-
message?: string;
|
61
|
-
found?: unknown;
|
62
|
-
property?: string;
|
63
|
-
expected?: string;
|
64
|
-
};
|
65
55
|
};
|
66
56
|
};
|
67
57
|
};
|
@@ -105,15 +95,6 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
105
95
|
depositUrl: any;
|
106
96
|
tags: string[];
|
107
97
|
};
|
108
|
-
422: {
|
109
|
-
type: "validation";
|
110
|
-
on: string;
|
111
|
-
summary?: string;
|
112
|
-
message?: string;
|
113
|
-
found?: unknown;
|
114
|
-
property?: string;
|
115
|
-
expected?: string;
|
116
|
-
};
|
117
98
|
};
|
118
99
|
};
|
119
100
|
};
|
@@ -126,10 +107,10 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
126
107
|
params: {};
|
127
108
|
query: {
|
128
109
|
sort?: string | undefined;
|
129
|
-
items?: number | undefined;
|
130
110
|
name?: string | undefined;
|
131
111
|
tokens?: string | undefined;
|
132
112
|
status?: string | undefined;
|
113
|
+
items?: number | undefined;
|
133
114
|
tags?: string | undefined;
|
134
115
|
page?: number | undefined;
|
135
116
|
chainId?: string | undefined;
|
@@ -213,15 +194,15 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
213
194
|
icon: string;
|
214
195
|
};
|
215
196
|
protocol: {
|
216
|
-
description: string;
|
217
197
|
name: string;
|
218
198
|
url: string;
|
199
|
+
description: string;
|
219
200
|
id: string;
|
220
201
|
tags: string[];
|
221
202
|
icon: string;
|
222
203
|
} | undefined;
|
223
|
-
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
224
204
|
name: string;
|
205
|
+
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
225
206
|
status: import("../../../../database/api/.generated").$Enums.Status;
|
226
207
|
tags: string[];
|
227
208
|
identifier: string;
|
@@ -230,15 +211,6 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
230
211
|
tvl: number;
|
231
212
|
dailyRewards: number;
|
232
213
|
}[];
|
233
|
-
422: {
|
234
|
-
type: "validation";
|
235
|
-
on: string;
|
236
|
-
summary?: string;
|
237
|
-
message?: string;
|
238
|
-
found?: unknown;
|
239
|
-
property?: string;
|
240
|
-
expected?: string;
|
241
|
-
};
|
242
214
|
};
|
243
215
|
};
|
244
216
|
};
|
@@ -251,10 +223,10 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
251
223
|
params: {};
|
252
224
|
query: {
|
253
225
|
sort?: string | undefined;
|
254
|
-
items?: number | undefined;
|
255
226
|
name?: string | undefined;
|
256
227
|
tokens?: string | undefined;
|
257
228
|
status?: string | undefined;
|
229
|
+
items?: number | undefined;
|
258
230
|
tags?: string | undefined;
|
259
231
|
page?: number | undefined;
|
260
232
|
chainId?: string | undefined;
|
@@ -268,15 +240,6 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
268
240
|
headers: unknown;
|
269
241
|
response: {
|
270
242
|
200: number;
|
271
|
-
422: {
|
272
|
-
type: "validation";
|
273
|
-
on: string;
|
274
|
-
summary?: string;
|
275
|
-
message?: string;
|
276
|
-
found?: unknown;
|
277
|
-
property?: string;
|
278
|
-
expected?: string;
|
279
|
-
};
|
280
243
|
};
|
281
244
|
};
|
282
245
|
};
|
@@ -296,9 +259,9 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
296
259
|
response: {
|
297
260
|
200: {
|
298
261
|
protocol?: {
|
299
|
-
description: string;
|
300
262
|
name: string;
|
301
263
|
url: string;
|
264
|
+
description: string;
|
302
265
|
id: string;
|
303
266
|
tags: string[];
|
304
267
|
icon: string;
|
@@ -350,8 +313,8 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
350
313
|
dailyRewardsRecordId: string;
|
351
314
|
}[];
|
352
315
|
} | undefined;
|
353
|
-
type: string;
|
354
316
|
name: string;
|
317
|
+
type: string;
|
355
318
|
tokens: {
|
356
319
|
price?: number | null | undefined;
|
357
320
|
symbol: string;
|
@@ -388,15 +351,6 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
388
351
|
info: string;
|
389
352
|
httpCode: number;
|
390
353
|
};
|
391
|
-
422: {
|
392
|
-
type: "validation";
|
393
|
-
on: string;
|
394
|
-
summary?: string;
|
395
|
-
message?: string;
|
396
|
-
found?: unknown;
|
397
|
-
property?: string;
|
398
|
-
expected?: string;
|
399
|
-
};
|
400
354
|
};
|
401
355
|
};
|
402
356
|
};
|
@@ -429,9 +383,9 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
429
383
|
response: {
|
430
384
|
200: ({
|
431
385
|
protocol?: {
|
432
|
-
description: string;
|
433
386
|
name: string;
|
434
387
|
url: string;
|
388
|
+
description: string;
|
435
389
|
id: string;
|
436
390
|
tags: string[];
|
437
391
|
icon: string;
|
@@ -483,8 +437,8 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
483
437
|
dailyRewardsRecordId: string;
|
484
438
|
}[];
|
485
439
|
} | undefined;
|
486
|
-
type: string;
|
487
440
|
name: string;
|
441
|
+
type: string;
|
488
442
|
tokens: {
|
489
443
|
price?: number | null | undefined;
|
490
444
|
symbol: string;
|
@@ -568,15 +522,6 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
568
522
|
info: string;
|
569
523
|
httpCode: number;
|
570
524
|
};
|
571
|
-
422: {
|
572
|
-
type: "validation";
|
573
|
-
on: string;
|
574
|
-
summary?: string;
|
575
|
-
message?: string;
|
576
|
-
found?: unknown;
|
577
|
-
property?: string;
|
578
|
-
expected?: string;
|
579
|
-
};
|
580
525
|
};
|
581
526
|
};
|
582
527
|
};
|
@@ -597,9 +542,9 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
597
542
|
response: {
|
598
543
|
200: {
|
599
544
|
protocol?: {
|
600
|
-
description: string;
|
601
545
|
name: string;
|
602
546
|
url: string;
|
547
|
+
description: string;
|
603
548
|
id: string;
|
604
549
|
tags: string[];
|
605
550
|
icon: string;
|
@@ -651,8 +596,8 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
651
596
|
dailyRewardsRecordId: string;
|
652
597
|
}[];
|
653
598
|
} | undefined;
|
654
|
-
type: string;
|
655
599
|
name: string;
|
600
|
+
type: string;
|
656
601
|
tokens: {
|
657
602
|
price?: number | null | undefined;
|
658
603
|
symbol: string;
|
@@ -693,9 +638,9 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
693
638
|
id: number;
|
694
639
|
icon: string;
|
695
640
|
} | undefined;
|
696
|
-
params: any;
|
697
641
|
type: string;
|
698
642
|
id: string;
|
643
|
+
params: any;
|
699
644
|
subType: number | null;
|
700
645
|
chain: {
|
701
646
|
name: string;
|
@@ -734,15 +679,6 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
734
679
|
info: string;
|
735
680
|
httpCode: number;
|
736
681
|
};
|
737
|
-
422: {
|
738
|
-
type: "validation";
|
739
|
-
on: string;
|
740
|
-
summary?: string;
|
741
|
-
message?: string;
|
742
|
-
found?: unknown;
|
743
|
-
property?: string;
|
744
|
-
expected?: string;
|
745
|
-
};
|
746
682
|
};
|
747
683
|
};
|
748
684
|
};
|
@@ -759,10 +695,10 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
759
695
|
};
|
760
696
|
query: {
|
761
697
|
sort?: string | undefined;
|
762
|
-
items?: number | undefined;
|
763
698
|
name?: string | undefined;
|
764
699
|
tokens?: string | undefined;
|
765
700
|
status?: string | undefined;
|
701
|
+
items?: number | undefined;
|
766
702
|
tags?: string | undefined;
|
767
703
|
page?: number | undefined;
|
768
704
|
chainId?: string | undefined;
|
@@ -778,15 +714,6 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
778
714
|
200: {
|
779
715
|
sum: string;
|
780
716
|
};
|
781
|
-
422: {
|
782
|
-
type: "validation";
|
783
|
-
on: string;
|
784
|
-
summary?: string;
|
785
|
-
message?: string;
|
786
|
-
found?: unknown;
|
787
|
-
property?: string;
|
788
|
-
expected?: string;
|
789
|
-
};
|
790
717
|
};
|
791
718
|
};
|
792
719
|
};
|
@@ -804,10 +731,10 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
804
731
|
};
|
805
732
|
query: {
|
806
733
|
sort?: string | undefined;
|
807
|
-
items?: number | undefined;
|
808
734
|
name?: string | undefined;
|
809
735
|
tokens?: string | undefined;
|
810
736
|
status?: string | undefined;
|
737
|
+
items?: number | undefined;
|
811
738
|
tags?: string | undefined;
|
812
739
|
page?: number | undefined;
|
813
740
|
chainId?: string | undefined;
|
@@ -823,15 +750,6 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
823
750
|
200: {
|
824
751
|
max: string;
|
825
752
|
};
|
826
|
-
422: {
|
827
|
-
type: "validation";
|
828
|
-
on: string;
|
829
|
-
summary?: string;
|
830
|
-
message?: string;
|
831
|
-
found?: unknown;
|
832
|
-
property?: string;
|
833
|
-
expected?: string;
|
834
|
-
};
|
835
753
|
};
|
836
754
|
};
|
837
755
|
};
|
@@ -850,10 +768,10 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
850
768
|
};
|
851
769
|
query: {
|
852
770
|
sort?: string | undefined;
|
853
|
-
items?: number | undefined;
|
854
771
|
name?: string | undefined;
|
855
772
|
tokens?: string | undefined;
|
856
773
|
status?: string | undefined;
|
774
|
+
items?: number | undefined;
|
857
775
|
tags?: string | undefined;
|
858
776
|
page?: number | undefined;
|
859
777
|
chainId?: string | undefined;
|
@@ -869,15 +787,6 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
869
787
|
200: {
|
870
788
|
min: string;
|
871
789
|
};
|
872
|
-
422: {
|
873
|
-
type: "validation";
|
874
|
-
on: string;
|
875
|
-
summary?: string;
|
876
|
-
message?: string;
|
877
|
-
found?: unknown;
|
878
|
-
property?: string;
|
879
|
-
expected?: string;
|
880
|
-
};
|
881
790
|
};
|
882
791
|
};
|
883
792
|
};
|
@@ -901,8 +810,8 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
901
810
|
};
|
902
811
|
response: {
|
903
812
|
200: {
|
904
|
-
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
905
813
|
name: string;
|
814
|
+
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
906
815
|
id: string;
|
907
816
|
status: import("../../../../database/api/.generated").$Enums.Status;
|
908
817
|
tags: string[];
|
@@ -915,15 +824,6 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
915
824
|
apr: number;
|
916
825
|
dailyRewards: number;
|
917
826
|
};
|
918
|
-
422: {
|
919
|
-
type: "validation";
|
920
|
-
on: string;
|
921
|
-
summary?: string;
|
922
|
-
message?: string;
|
923
|
-
found?: unknown;
|
924
|
-
property?: string;
|
925
|
-
expected?: string;
|
926
|
-
};
|
927
827
|
};
|
928
828
|
};
|
929
829
|
};
|
@@ -133,7 +133,6 @@ export declare const OpportunityResourceDto: import("@sinclair/typebox").TObject
|
|
133
133
|
}>, import("@sinclair/typebox").TNull]>>;
|
134
134
|
}>;
|
135
135
|
export declare const OpportunityWithCampaignsResourceDto: import("@sinclair/typebox").TObject<{
|
136
|
-
type: import("@sinclair/typebox").TString;
|
137
136
|
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
138
137
|
id: import("@sinclair/typebox").TString;
|
139
138
|
name: import("@sinclair/typebox").TString;
|
@@ -143,6 +142,7 @@ export declare const OpportunityWithCampaignsResourceDto: import("@sinclair/type
|
|
143
142
|
url: import("@sinclair/typebox").TString;
|
144
143
|
}>, import("@sinclair/typebox").TNull]>>;
|
145
144
|
name: import("@sinclair/typebox").TString;
|
145
|
+
type: import("@sinclair/typebox").TString;
|
146
146
|
tokens: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
147
147
|
id: import("@sinclair/typebox").TString;
|
148
148
|
name: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
@@ -8,8 +8,8 @@ import type { CreateOpportunityModel, GetOpportunitiesQueryModel, UpdateOpportun
|
|
8
8
|
export declare abstract class OpportunityRepository {
|
9
9
|
#private;
|
10
10
|
static create(newOpp: CreateOpportunityModel, upsert?: boolean): Promise<{
|
11
|
-
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
12
11
|
name: string;
|
12
|
+
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
13
13
|
id: string;
|
14
14
|
status: import("../../../../database/api/.generated").$Enums.Status;
|
15
15
|
tags: string[];
|
@@ -43,9 +43,9 @@ export declare abstract class OpportunityRepository {
|
|
43
43
|
price: number | null;
|
44
44
|
};
|
45
45
|
} & {
|
46
|
-
params: Prisma.JsonValue;
|
47
46
|
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
48
47
|
id: string;
|
48
|
+
params: Prisma.JsonValue;
|
49
49
|
subType: number | null;
|
50
50
|
startTimestamp: bigint;
|
51
51
|
endTimestamp: bigint;
|
@@ -71,17 +71,17 @@ export declare abstract class OpportunityRepository {
|
|
71
71
|
price: number | null;
|
72
72
|
}[];
|
73
73
|
Protocols: {
|
74
|
-
description: string;
|
75
74
|
name: string;
|
76
75
|
url: string;
|
76
|
+
description: string;
|
77
77
|
id: string;
|
78
78
|
tags: string[];
|
79
79
|
icon: string;
|
80
80
|
}[];
|
81
81
|
MainProtocol: {
|
82
|
-
description: string;
|
83
82
|
name: string;
|
84
83
|
url: string;
|
84
|
+
description: string;
|
85
85
|
id: string;
|
86
86
|
tags: string[];
|
87
87
|
icon: string;
|
@@ -155,8 +155,8 @@ export declare abstract class OpportunityRepository {
|
|
155
155
|
opportunityId: string;
|
156
156
|
})[];
|
157
157
|
} & {
|
158
|
-
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
159
158
|
name: string;
|
159
|
+
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
160
160
|
id: string;
|
161
161
|
status: import("../../../../database/api/.generated").$Enums.Status;
|
162
162
|
tags: string[];
|
@@ -189,17 +189,17 @@ export declare abstract class OpportunityRepository {
|
|
189
189
|
price: number | null;
|
190
190
|
}[];
|
191
191
|
Protocols: {
|
192
|
-
description: string;
|
193
192
|
name: string;
|
194
193
|
url: string;
|
194
|
+
description: string;
|
195
195
|
id: string;
|
196
196
|
tags: string[];
|
197
197
|
icon: string;
|
198
198
|
}[];
|
199
199
|
MainProtocol: {
|
200
|
-
description: string;
|
201
200
|
name: string;
|
202
201
|
url: string;
|
202
|
+
description: string;
|
203
203
|
id: string;
|
204
204
|
tags: string[];
|
205
205
|
icon: string;
|
@@ -273,8 +273,8 @@ export declare abstract class OpportunityRepository {
|
|
273
273
|
opportunityId: string;
|
274
274
|
})[];
|
275
275
|
} & {
|
276
|
-
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
277
276
|
name: string;
|
277
|
+
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
278
278
|
id: string;
|
279
279
|
status: import("../../../../database/api/.generated").$Enums.Status;
|
280
280
|
tags: string[];
|
@@ -340,9 +340,9 @@ export declare abstract class OpportunityRepository {
|
|
340
340
|
price: number | null;
|
341
341
|
};
|
342
342
|
} & {
|
343
|
-
params: Prisma.JsonValue;
|
344
343
|
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
345
344
|
id: string;
|
345
|
+
params: Prisma.JsonValue;
|
346
346
|
subType: number | null;
|
347
347
|
startTimestamp: bigint;
|
348
348
|
endTimestamp: bigint;
|
@@ -368,17 +368,17 @@ export declare abstract class OpportunityRepository {
|
|
368
368
|
price: number | null;
|
369
369
|
}[];
|
370
370
|
Protocols: {
|
371
|
-
description: string;
|
372
371
|
name: string;
|
373
372
|
url: string;
|
373
|
+
description: string;
|
374
374
|
id: string;
|
375
375
|
tags: string[];
|
376
376
|
icon: string;
|
377
377
|
}[];
|
378
378
|
MainProtocol: {
|
379
|
-
description: string;
|
380
379
|
name: string;
|
381
380
|
url: string;
|
381
|
+
description: string;
|
382
382
|
id: string;
|
383
383
|
tags: string[];
|
384
384
|
icon: string;
|
@@ -452,8 +452,8 @@ export declare abstract class OpportunityRepository {
|
|
452
452
|
opportunityId: string;
|
453
453
|
})[];
|
454
454
|
} & {
|
455
|
-
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
456
455
|
name: string;
|
456
|
+
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
457
457
|
id: string;
|
458
458
|
status: import("../../../../database/api/.generated").$Enums.Status;
|
459
459
|
tags: string[];
|
@@ -524,9 +524,9 @@ export declare abstract class OpportunityRepository {
|
|
524
524
|
price: number | null;
|
525
525
|
};
|
526
526
|
} & {
|
527
|
-
params: Prisma.JsonValue;
|
528
527
|
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
529
528
|
id: string;
|
529
|
+
params: Prisma.JsonValue;
|
530
530
|
subType: number | null;
|
531
531
|
startTimestamp: bigint;
|
532
532
|
endTimestamp: bigint;
|
@@ -552,17 +552,17 @@ export declare abstract class OpportunityRepository {
|
|
552
552
|
price: number | null;
|
553
553
|
}[];
|
554
554
|
Protocols: {
|
555
|
-
description: string;
|
556
555
|
name: string;
|
557
556
|
url: string;
|
557
|
+
description: string;
|
558
558
|
id: string;
|
559
559
|
tags: string[];
|
560
560
|
icon: string;
|
561
561
|
}[];
|
562
562
|
MainProtocol: {
|
563
|
-
description: string;
|
564
563
|
name: string;
|
565
564
|
url: string;
|
565
|
+
description: string;
|
566
566
|
id: string;
|
567
567
|
tags: string[];
|
568
568
|
icon: string;
|
@@ -636,8 +636,8 @@ export declare abstract class OpportunityRepository {
|
|
636
636
|
opportunityId: string;
|
637
637
|
})[];
|
638
638
|
} & {
|
639
|
-
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
640
639
|
name: string;
|
640
|
+
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
641
641
|
id: string;
|
642
642
|
status: import("../../../../database/api/.generated").$Enums.Status;
|
643
643
|
tags: string[];
|
@@ -666,9 +666,9 @@ export declare abstract class OpportunityRepository {
|
|
666
666
|
price: number | null;
|
667
667
|
};
|
668
668
|
} & {
|
669
|
-
params: Prisma.JsonValue;
|
670
669
|
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
671
670
|
id: string;
|
671
|
+
params: Prisma.JsonValue;
|
672
672
|
subType: number | null;
|
673
673
|
startTimestamp: bigint;
|
674
674
|
endTimestamp: bigint;
|
@@ -681,8 +681,8 @@ export declare abstract class OpportunityRepository {
|
|
681
681
|
creatorAddress: string;
|
682
682
|
})[];
|
683
683
|
} & {
|
684
|
-
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
685
684
|
name: string;
|
685
|
+
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
686
686
|
id: string;
|
687
687
|
status: import("../../../../database/api/.generated").$Enums.Status;
|
688
688
|
tags: string[];
|
@@ -715,17 +715,17 @@ export declare abstract class OpportunityRepository {
|
|
715
715
|
price: number | null;
|
716
716
|
}[];
|
717
717
|
Protocols: {
|
718
|
-
description: string;
|
719
718
|
name: string;
|
720
719
|
url: string;
|
720
|
+
description: string;
|
721
721
|
id: string;
|
722
722
|
tags: string[];
|
723
723
|
icon: string;
|
724
724
|
}[];
|
725
725
|
MainProtocol: {
|
726
|
-
description: string;
|
727
726
|
name: string;
|
728
727
|
url: string;
|
728
|
+
description: string;
|
729
729
|
id: string;
|
730
730
|
tags: string[];
|
731
731
|
icon: string;
|
@@ -799,8 +799,8 @@ export declare abstract class OpportunityRepository {
|
|
799
799
|
opportunityId: string;
|
800
800
|
})[];
|
801
801
|
} & {
|
802
|
-
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
803
802
|
name: string;
|
803
|
+
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
804
804
|
id: string;
|
805
805
|
status: import("../../../../database/api/.generated").$Enums.Status;
|
806
806
|
tags: string[];
|
@@ -852,9 +852,9 @@ export declare abstract class OpportunityRepository {
|
|
852
852
|
price: number | null;
|
853
853
|
};
|
854
854
|
} & {
|
855
|
-
params: Prisma.JsonValue;
|
856
855
|
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
857
856
|
id: string;
|
857
|
+
params: Prisma.JsonValue;
|
858
858
|
subType: number | null;
|
859
859
|
startTimestamp: bigint;
|
860
860
|
endTimestamp: bigint;
|
@@ -880,17 +880,17 @@ export declare abstract class OpportunityRepository {
|
|
880
880
|
price: number | null;
|
881
881
|
}[];
|
882
882
|
Protocols: {
|
883
|
-
description: string;
|
884
883
|
name: string;
|
885
884
|
url: string;
|
885
|
+
description: string;
|
886
886
|
id: string;
|
887
887
|
tags: string[];
|
888
888
|
icon: string;
|
889
889
|
}[];
|
890
890
|
MainProtocol: {
|
891
|
-
description: string;
|
892
891
|
name: string;
|
893
892
|
url: string;
|
893
|
+
description: string;
|
894
894
|
id: string;
|
895
895
|
tags: string[];
|
896
896
|
icon: string;
|
@@ -964,8 +964,8 @@ export declare abstract class OpportunityRepository {
|
|
964
964
|
opportunityId: string;
|
965
965
|
})[];
|
966
966
|
} & {
|
967
|
-
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
968
967
|
name: string;
|
968
|
+
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
969
969
|
id: string;
|
970
970
|
status: import("../../../../database/api/.generated").$Enums.Status;
|
971
971
|
tags: string[];
|
@@ -1024,8 +1024,8 @@ export declare abstract class OpportunityRepository {
|
|
1024
1024
|
opportunityId: string;
|
1025
1025
|
};
|
1026
1026
|
opportunity: {
|
1027
|
-
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
1028
1027
|
name: string;
|
1028
|
+
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
1029
1029
|
id: string;
|
1030
1030
|
status: import("../../../../database/api/.generated").$Enums.Status;
|
1031
1031
|
tags: string[];
|
@@ -1040,8 +1040,8 @@ export declare abstract class OpportunityRepository {
|
|
1040
1040
|
};
|
1041
1041
|
}>;
|
1042
1042
|
static updateStatus(id: string, status: Status): Promise<{
|
1043
|
-
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
1044
1043
|
name: string;
|
1044
|
+
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
1045
1045
|
id: string;
|
1046
1046
|
status: import("../../../../database/api/.generated").$Enums.Status;
|
1047
1047
|
tags: string[];
|
@@ -1055,8 +1055,8 @@ export declare abstract class OpportunityRepository {
|
|
1055
1055
|
dailyRewards: number;
|
1056
1056
|
}>;
|
1057
1057
|
static updateName(id: string, name: string): Promise<{
|
1058
|
-
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
1059
1058
|
name: string;
|
1059
|
+
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
1060
1060
|
id: string;
|
1061
1061
|
status: import("../../../../database/api/.generated").$Enums.Status;
|
1062
1062
|
tags: string[];
|
@@ -1070,8 +1070,8 @@ export declare abstract class OpportunityRepository {
|
|
1070
1070
|
dailyRewards: number;
|
1071
1071
|
}>;
|
1072
1072
|
static updateChainId(id: string, chainId: MerklChainId): Promise<{
|
1073
|
-
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
1074
1073
|
name: string;
|
1074
|
+
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
1075
1075
|
id: string;
|
1076
1076
|
status: import("../../../../database/api/.generated").$Enums.Status;
|
1077
1077
|
tags: string[];
|
@@ -1094,8 +1094,8 @@ export declare abstract class OpportunityRepository {
|
|
1094
1094
|
max: string;
|
1095
1095
|
}>;
|
1096
1096
|
static update(id: string, data: UpdateOpportunityModel): Promise<{
|
1097
|
-
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
1098
1097
|
name: string;
|
1098
|
+
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
1099
1099
|
id: string;
|
1100
1100
|
status: import("../../../../database/api/.generated").$Enums.Status;
|
1101
1101
|
tags: string[];
|