@merkl/api 1.0.95 → 1.0.96
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 +66 -2
- package/dist/src/index.d.ts +33 -1
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +12 -0
- package/dist/src/modules/v4/campaign/campaign.model.d.ts +10 -0
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +53 -45
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +41 -0
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +20 -0
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +36 -1
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +15 -14
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +12 -1
- package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +3 -2
- package/dist/src/modules/v4/reward/reward.model.d.ts +10 -0
- package/dist/src/modules/v4/router.d.ts +33 -1
- package/dist/src/modules/v4/token/token.controller.d.ts +2 -1
- package/dist/src/modules/v4/token/token.model.d.ts +19 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -44,6 +44,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
44
44
|
creatorTag?: string | undefined;
|
45
45
|
distributionChainIds?: number[] | undefined;
|
46
46
|
types?: string[] | undefined;
|
47
|
+
tokenTypes?: ("TOKEN" | "PRETGE" | "POINT")[] | undefined;
|
47
48
|
withOpportunity?: boolean | undefined;
|
48
49
|
createdAfter?: Date | null | undefined;
|
49
50
|
excludeSubCampaigns?: boolean | undefined;
|
@@ -97,6 +98,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
97
98
|
address: string;
|
98
99
|
id: string;
|
99
100
|
chainId: number;
|
101
|
+
type: "TOKEN" | "PRETGE" | "POINT";
|
100
102
|
icon: string;
|
101
103
|
isNative: boolean;
|
102
104
|
isPoint: boolean;
|
@@ -119,6 +121,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
119
121
|
address: string;
|
120
122
|
id: string;
|
121
123
|
chainId: number;
|
124
|
+
type: "TOKEN" | "PRETGE" | "POINT";
|
122
125
|
icon: string;
|
123
126
|
isNative: boolean;
|
124
127
|
isPoint: boolean;
|
@@ -166,6 +169,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
166
169
|
address: string;
|
167
170
|
id: string;
|
168
171
|
chainId: number;
|
172
|
+
type: "TOKEN" | "PRETGE" | "POINT";
|
169
173
|
icon: string;
|
170
174
|
isNative: boolean;
|
171
175
|
isPoint: boolean;
|
@@ -248,6 +252,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
248
252
|
campaigns?: boolean | undefined;
|
249
253
|
point?: boolean | undefined;
|
250
254
|
test?: boolean | undefined;
|
255
|
+
tokenTypes?: ("TOKEN" | "PRETGE" | "POINT")[] | undefined;
|
251
256
|
excludeSubCampaigns?: boolean | undefined;
|
252
257
|
};
|
253
258
|
headers: unknown;
|
@@ -299,6 +304,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
299
304
|
address: string;
|
300
305
|
id: string;
|
301
306
|
chainId: number;
|
307
|
+
type: "TOKEN" | "PRETGE" | "POINT";
|
302
308
|
icon: string;
|
303
309
|
isNative: boolean;
|
304
310
|
isPoint: boolean;
|
@@ -321,6 +327,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
321
327
|
address: string;
|
322
328
|
id: string;
|
323
329
|
chainId: number;
|
330
|
+
type: "TOKEN" | "PRETGE" | "POINT";
|
324
331
|
icon: string;
|
325
332
|
isNative: boolean;
|
326
333
|
isPoint: boolean;
|
@@ -386,6 +393,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
386
393
|
campaigns?: boolean | undefined;
|
387
394
|
point?: boolean | undefined;
|
388
395
|
test?: boolean | undefined;
|
396
|
+
tokenTypes?: ("TOKEN" | "PRETGE" | "POINT")[] | undefined;
|
389
397
|
excludeSubCampaigns?: boolean | undefined;
|
390
398
|
};
|
391
399
|
headers: unknown;
|
@@ -437,6 +445,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
437
445
|
address: string;
|
438
446
|
id: string;
|
439
447
|
chainId: number;
|
448
|
+
type: "TOKEN" | "PRETGE" | "POINT";
|
440
449
|
icon: string;
|
441
450
|
isNative: boolean;
|
442
451
|
isPoint: boolean;
|
@@ -459,6 +468,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
459
468
|
address: string;
|
460
469
|
id: string;
|
461
470
|
chainId: number;
|
471
|
+
type: "TOKEN" | "PRETGE" | "POINT";
|
462
472
|
icon: string;
|
463
473
|
isNative: boolean;
|
464
474
|
isPoint: boolean;
|
@@ -506,6 +516,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
506
516
|
address: string;
|
507
517
|
id: string;
|
508
518
|
chainId: number;
|
519
|
+
type: "TOKEN" | "PRETGE" | "POINT";
|
509
520
|
icon: string;
|
510
521
|
isNative: boolean;
|
511
522
|
isPoint: boolean;
|
@@ -602,6 +613,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
602
613
|
tags?: string | undefined;
|
603
614
|
test?: boolean | undefined;
|
604
615
|
page?: number | undefined;
|
616
|
+
tokenTypes?: ("TOKEN" | "PRETGE" | "POINT")[] | undefined;
|
605
617
|
excludeSubCampaigns?: boolean | undefined;
|
606
618
|
minimumTvl?: number | undefined;
|
607
619
|
maximumTvl?: number | undefined;
|
@@ -658,6 +670,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
658
670
|
address: string;
|
659
671
|
id: string;
|
660
672
|
chainId: number;
|
673
|
+
type: "TOKEN" | "PRETGE" | "POINT";
|
661
674
|
icon: string;
|
662
675
|
isNative: boolean;
|
663
676
|
isPoint: boolean;
|
@@ -680,6 +693,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
680
693
|
address: string;
|
681
694
|
id: string;
|
682
695
|
chainId: number;
|
696
|
+
type: "TOKEN" | "PRETGE" | "POINT";
|
683
697
|
icon: string;
|
684
698
|
isNative: boolean;
|
685
699
|
isPoint: boolean;
|
@@ -748,6 +762,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
748
762
|
tags?: string | undefined;
|
749
763
|
test?: boolean | undefined;
|
750
764
|
page?: number | undefined;
|
765
|
+
tokenTypes?: ("TOKEN" | "PRETGE" | "POINT")[] | undefined;
|
751
766
|
excludeSubCampaigns?: boolean | undefined;
|
752
767
|
minimumTvl?: number | undefined;
|
753
768
|
maximumTvl?: number | undefined;
|
@@ -798,6 +813,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
798
813
|
tags?: string | undefined;
|
799
814
|
test?: boolean | undefined;
|
800
815
|
page?: number | undefined;
|
816
|
+
tokenTypes?: ("TOKEN" | "PRETGE" | "POINT")[] | undefined;
|
801
817
|
excludeSubCampaigns?: boolean | undefined;
|
802
818
|
minimumTvl?: number | undefined;
|
803
819
|
maximumTvl?: number | undefined;
|
@@ -855,6 +871,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
855
871
|
tags?: string | undefined;
|
856
872
|
test?: boolean | undefined;
|
857
873
|
page?: number | undefined;
|
874
|
+
tokenTypes?: ("TOKEN" | "PRETGE" | "POINT")[] | undefined;
|
858
875
|
excludeSubCampaigns?: boolean | undefined;
|
859
876
|
minimumTvl?: number | undefined;
|
860
877
|
maximumTvl?: number | undefined;
|
@@ -914,6 +931,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
914
931
|
tags?: string | undefined;
|
915
932
|
test?: boolean | undefined;
|
916
933
|
page?: number | undefined;
|
934
|
+
tokenTypes?: ("TOKEN" | "PRETGE" | "POINT")[] | undefined;
|
917
935
|
excludeSubCampaigns?: boolean | undefined;
|
918
936
|
minimumTvl?: number | undefined;
|
919
937
|
maximumTvl?: number | undefined;
|
@@ -970,6 +988,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
970
988
|
tags?: string | undefined;
|
971
989
|
test?: boolean | undefined;
|
972
990
|
page?: number | undefined;
|
991
|
+
tokenTypes?: ("TOKEN" | "PRETGE" | "POINT")[] | undefined;
|
973
992
|
excludeSubCampaigns?: boolean | undefined;
|
974
993
|
minimumTvl?: number | undefined;
|
975
994
|
maximumTvl?: number | undefined;
|
@@ -1027,6 +1046,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
1027
1046
|
tags?: string | undefined;
|
1028
1047
|
test?: boolean | undefined;
|
1029
1048
|
page?: number | undefined;
|
1049
|
+
tokenTypes?: ("TOKEN" | "PRETGE" | "POINT")[] | undefined;
|
1030
1050
|
excludeSubCampaigns?: boolean | undefined;
|
1031
1051
|
minimumTvl?: number | undefined;
|
1032
1052
|
maximumTvl?: number | undefined;
|
@@ -81,6 +81,11 @@ export declare const OpportunityResourceDto: import("@sinclair/typebox").TObject
|
|
81
81
|
isPreTGE: import("@sinclair/typebox").TBoolean;
|
82
82
|
price: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>>;
|
83
83
|
symbol: import("@sinclair/typebox").TString;
|
84
|
+
type: import("@sinclair/typebox").TEnum<{
|
85
|
+
readonly TOKEN: "TOKEN";
|
86
|
+
readonly PRETGE: "PRETGE";
|
87
|
+
readonly POINT: "POINT";
|
88
|
+
}>;
|
84
89
|
}>>;
|
85
90
|
chain: import("@sinclair/typebox").TObject<{
|
86
91
|
id: import("@sinclair/typebox").TNumber;
|
@@ -147,6 +152,11 @@ export declare const OpportunityResourceDto: import("@sinclair/typebox").TObject
|
|
147
152
|
isPreTGE: import("@sinclair/typebox").TBoolean;
|
148
153
|
price: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>>;
|
149
154
|
symbol: import("@sinclair/typebox").TString;
|
155
|
+
type: import("@sinclair/typebox").TEnum<{
|
156
|
+
readonly TOKEN: "TOKEN";
|
157
|
+
readonly PRETGE: "PRETGE";
|
158
|
+
readonly POINT: "POINT";
|
159
|
+
}>;
|
150
160
|
}>;
|
151
161
|
amount: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBigInt, import("@sinclair/typebox").TString]>;
|
152
162
|
distributionType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
|
@@ -188,6 +198,11 @@ export declare const OpportunityWithCampaignsResourceDto: import("@sinclair/type
|
|
188
198
|
isPreTGE: import("@sinclair/typebox").TBoolean;
|
189
199
|
price: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>>;
|
190
200
|
symbol: import("@sinclair/typebox").TString;
|
201
|
+
type: import("@sinclair/typebox").TEnum<{
|
202
|
+
readonly TOKEN: "TOKEN";
|
203
|
+
readonly PRETGE: "PRETGE";
|
204
|
+
readonly POINT: "POINT";
|
205
|
+
}>;
|
191
206
|
}>>;
|
192
207
|
tvl: import("@sinclair/typebox").TNumber;
|
193
208
|
description: import("@sinclair/typebox").TString;
|
@@ -286,6 +301,11 @@ export declare const OpportunityWithCampaignsResourceDto: import("@sinclair/type
|
|
286
301
|
isPreTGE: import("@sinclair/typebox").TBoolean;
|
287
302
|
price: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>>;
|
288
303
|
symbol: import("@sinclair/typebox").TString;
|
304
|
+
type: import("@sinclair/typebox").TEnum<{
|
305
|
+
readonly TOKEN: "TOKEN";
|
306
|
+
readonly PRETGE: "PRETGE";
|
307
|
+
readonly POINT: "POINT";
|
308
|
+
}>;
|
289
309
|
}>;
|
290
310
|
amount: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBigInt, import("@sinclair/typebox").TString]>;
|
291
311
|
distributionType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
|
@@ -342,6 +362,11 @@ export declare const OpportunityWithCampaignsResourceDto: import("@sinclair/type
|
|
342
362
|
isPreTGE: import("@sinclair/typebox").TBoolean;
|
343
363
|
price: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>>;
|
344
364
|
symbol: import("@sinclair/typebox").TString;
|
365
|
+
type: import("@sinclair/typebox").TEnum<{
|
366
|
+
readonly TOKEN: "TOKEN";
|
367
|
+
readonly PRETGE: "PRETGE";
|
368
|
+
readonly POINT: "POINT";
|
369
|
+
}>;
|
345
370
|
}>;
|
346
371
|
distributionChain: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
347
372
|
id: import("@sinclair/typebox").TNumber;
|
@@ -391,11 +416,16 @@ export declare const GetOpportunitiesQueryDto: import("@sinclair/typebox").TObje
|
|
391
416
|
campaignId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
392
417
|
chainId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRegExp>;
|
393
418
|
action: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
419
|
+
tokenTypes: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TEnum<{
|
420
|
+
readonly TOKEN: "TOKEN";
|
421
|
+
readonly PRETGE: "PRETGE";
|
422
|
+
readonly POINT: "POINT";
|
423
|
+
}>>>;
|
424
|
+
point: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
394
425
|
type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
395
426
|
creatorAddress: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
396
427
|
tags: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
397
428
|
test: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
398
|
-
point: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
399
429
|
minimumTvl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
400
430
|
maximumTvl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
401
431
|
minimumApr: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
@@ -415,6 +445,11 @@ export declare const GetOpportunitiesQueryDto: import("@sinclair/typebox").TObje
|
|
415
445
|
export declare const FindOpportunityDto: import("@sinclair/typebox").TObject<{
|
416
446
|
test: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
417
447
|
point: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
448
|
+
tokenTypes: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TEnum<{
|
449
|
+
readonly TOKEN: "TOKEN";
|
450
|
+
readonly PRETGE: "PRETGE";
|
451
|
+
readonly POINT: "POINT";
|
452
|
+
}>>>;
|
418
453
|
campaigns: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
419
454
|
excludeSubCampaigns: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
420
455
|
}>;
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
+
import { type TokenType } from "@package/databases";
|
2
3
|
import { type Prisma, Status } from "@package/databases/api";
|
3
4
|
import type { AprRecord } from "../../../modules/v4/apr/apr.model";
|
4
5
|
import type { Campaign } from "../../../modules/v4/campaign/campaign.model";
|
@@ -18,7 +19,7 @@ export declare abstract class OpportunityRepository {
|
|
18
19
|
address: string;
|
19
20
|
id: string;
|
20
21
|
chainId: number;
|
21
|
-
type:
|
22
|
+
type: TokenType;
|
22
23
|
icon: string;
|
23
24
|
isNative: boolean;
|
24
25
|
isPoint: boolean;
|
@@ -70,7 +71,7 @@ export declare abstract class OpportunityRepository {
|
|
70
71
|
address: string;
|
71
72
|
id: string;
|
72
73
|
chainId: number;
|
73
|
-
type:
|
74
|
+
type: TokenType;
|
74
75
|
icon: string;
|
75
76
|
isNative: boolean;
|
76
77
|
isPoint: boolean;
|
@@ -108,7 +109,7 @@ export declare abstract class OpportunityRepository {
|
|
108
109
|
address: string;
|
109
110
|
id: string;
|
110
111
|
chainId: number;
|
111
|
-
type:
|
112
|
+
type: TokenType;
|
112
113
|
icon: string;
|
113
114
|
isNative: boolean;
|
114
115
|
isPoint: boolean;
|
@@ -181,7 +182,7 @@ export declare abstract class OpportunityRepository {
|
|
181
182
|
address: string;
|
182
183
|
id: string;
|
183
184
|
chainId: number;
|
184
|
-
type:
|
185
|
+
type: TokenType;
|
185
186
|
icon: string;
|
186
187
|
isNative: boolean;
|
187
188
|
isPoint: boolean;
|
@@ -258,7 +259,7 @@ export declare abstract class OpportunityRepository {
|
|
258
259
|
address: string;
|
259
260
|
id: string;
|
260
261
|
chainId: number;
|
261
|
-
type:
|
262
|
+
type: TokenType;
|
262
263
|
icon: string;
|
263
264
|
isNative: boolean;
|
264
265
|
isPoint: boolean;
|
@@ -331,7 +332,7 @@ export declare abstract class OpportunityRepository {
|
|
331
332
|
address: string;
|
332
333
|
id: string;
|
333
334
|
chainId: number;
|
334
|
-
type:
|
335
|
+
type: TokenType;
|
335
336
|
icon: string;
|
336
337
|
isNative: boolean;
|
337
338
|
isPoint: boolean;
|
@@ -428,7 +429,7 @@ export declare abstract class OpportunityRepository {
|
|
428
429
|
address: string;
|
429
430
|
id: string;
|
430
431
|
chainId: number;
|
431
|
-
type:
|
432
|
+
type: TokenType;
|
432
433
|
icon: string;
|
433
434
|
isNative: boolean;
|
434
435
|
isPoint: boolean;
|
@@ -466,7 +467,7 @@ export declare abstract class OpportunityRepository {
|
|
466
467
|
address: string;
|
467
468
|
id: string;
|
468
469
|
chainId: number;
|
469
|
-
type:
|
470
|
+
type: TokenType;
|
470
471
|
icon: string;
|
471
472
|
isNative: boolean;
|
472
473
|
isPoint: boolean;
|
@@ -539,7 +540,7 @@ export declare abstract class OpportunityRepository {
|
|
539
540
|
address: string;
|
540
541
|
id: string;
|
541
542
|
chainId: number;
|
542
|
-
type:
|
543
|
+
type: TokenType;
|
543
544
|
icon: string;
|
544
545
|
isNative: boolean;
|
545
546
|
isPoint: boolean;
|
@@ -623,7 +624,7 @@ export declare abstract class OpportunityRepository {
|
|
623
624
|
address: string;
|
624
625
|
id: string;
|
625
626
|
chainId: number;
|
626
|
-
type:
|
627
|
+
type: TokenType;
|
627
628
|
icon: string;
|
628
629
|
isNative: boolean;
|
629
630
|
isPoint: boolean;
|
@@ -696,7 +697,7 @@ export declare abstract class OpportunityRepository {
|
|
696
697
|
address: string;
|
697
698
|
id: string;
|
698
699
|
chainId: number;
|
699
|
-
type:
|
700
|
+
type: TokenType;
|
700
701
|
icon: string;
|
701
702
|
isNative: boolean;
|
702
703
|
isPoint: boolean;
|
@@ -798,7 +799,7 @@ export declare abstract class OpportunityRepository {
|
|
798
799
|
address: string;
|
799
800
|
id: string;
|
800
801
|
chainId: number;
|
801
|
-
type:
|
802
|
+
type: TokenType;
|
802
803
|
icon: string;
|
803
804
|
isNative: boolean;
|
804
805
|
isPoint: boolean;
|
@@ -836,7 +837,7 @@ export declare abstract class OpportunityRepository {
|
|
836
837
|
address: string;
|
837
838
|
id: string;
|
838
839
|
chainId: number;
|
839
|
-
type:
|
840
|
+
type: TokenType;
|
840
841
|
icon: string;
|
841
842
|
isNative: boolean;
|
842
843
|
isPoint: boolean;
|
@@ -909,7 +910,7 @@ export declare abstract class OpportunityRepository {
|
|
909
910
|
address: string;
|
910
911
|
id: string;
|
911
912
|
chainId: number;
|
912
|
-
type:
|
913
|
+
type: TokenType;
|
913
914
|
icon: string;
|
914
915
|
isNative: boolean;
|
915
916
|
isPoint: boolean;
|
@@ -1,10 +1,18 @@
|
|
1
1
|
import { type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
-
import { type OpportunityAction, type OpportunityManualOverride, type Prisma } from "@package/databases/api";
|
2
|
+
import { type OpportunityAction, type OpportunityManualOverride, type Prisma, TokenType } from "@package/databases/api";
|
3
3
|
import type { CampaignWithParams, FindCampaignModel } from "../../../modules/v4/campaign/campaign.model";
|
4
4
|
import type { Protocol } from "../protocol/protocol.model";
|
5
5
|
import type { Token } from "../token/token.model";
|
6
6
|
import type { FindOpportunityModel, GetOpportunitiesQueryModel, Opportunity, OpportunityOverrideModel, OpportunityResourceModel, OpportunityUnique } from "./opportunity.model";
|
7
7
|
export declare abstract class OpportunityService {
|
8
|
+
static transformQueryToTestAndTokenTypes(query: {
|
9
|
+
tokenTypes?: TokenType[] | undefined;
|
10
|
+
point?: boolean | undefined;
|
11
|
+
test?: boolean | undefined;
|
12
|
+
}): {
|
13
|
+
tokenTypes: import("@package/databases").TokenType[] | undefined;
|
14
|
+
test: boolean;
|
15
|
+
};
|
8
16
|
static hashId(opportunity: OpportunityUnique): string;
|
9
17
|
static getAprBins(query: GetOpportunitiesQueryModel): Promise<{
|
10
18
|
data: {
|
@@ -339,6 +347,7 @@ export declare abstract class OpportunityService {
|
|
339
347
|
address: string;
|
340
348
|
id: string;
|
341
349
|
chainId: number;
|
350
|
+
type: "TOKEN" | "PRETGE" | "POINT";
|
342
351
|
icon: string;
|
343
352
|
isNative: boolean;
|
344
353
|
isPoint: boolean;
|
@@ -361,6 +370,7 @@ export declare abstract class OpportunityService {
|
|
361
370
|
address: string;
|
362
371
|
id: string;
|
363
372
|
chainId: number;
|
373
|
+
type: "TOKEN" | "PRETGE" | "POINT";
|
364
374
|
icon: string;
|
365
375
|
isNative: boolean;
|
366
376
|
isPoint: boolean;
|
@@ -408,6 +418,7 @@ export declare abstract class OpportunityService {
|
|
408
418
|
address: string;
|
409
419
|
id: string;
|
410
420
|
chainId: number;
|
421
|
+
type: "TOKEN" | "PRETGE" | "POINT";
|
411
422
|
icon: string;
|
412
423
|
isNative: boolean;
|
413
424
|
isPoint: boolean;
|
@@ -458,8 +458,9 @@ export declare enum pufferCampaigns {
|
|
458
458
|
pufETH_TermMax = "0xE8a7A6dD9218202996D9cF825426Ab283b3396eD",
|
459
459
|
pufETH_TermMax_Vault = "0xdC4d99aB6c69943b4E17431357AbC5b54B4C2F56",
|
460
460
|
pancakeswapv3_puffer_wbnb = "0xDA7630A141dBB6382DDb6409AeA7331da543B0Bb",
|
461
|
-
euler_pufETH_Supply = "Euler pufETH Supply Vault
|
462
|
-
euler_pufETH_Borrow = "Euler pufETH Borrow
|
461
|
+
euler_pufETH_Supply = "Euler pufETH Supply Vault 0x46BC453666BA11b4b08B0804E49A9D797546ee7D",
|
462
|
+
euler_pufETH_Borrow = "Euler pufETH Borrow 0x46BC453666BA11b4b08B0804E49A9D797546ee7D",
|
463
|
+
euler_wETH_Supply = "Euler wETH Supply 0xc2c4aBae84fbb5b7bAAB52301A924b1F986C66bd"
|
463
464
|
}
|
464
465
|
export declare enum zkSyncCampaigns {
|
465
466
|
Izumi_Finance_Zk_Weth = "Izumi Finance ZK/WETH 0xd62bc9f19bd94fde9c41df4b6eb6419ea6b8e25c",
|
@@ -56,6 +56,11 @@ export declare const DailyRewardsBreakdownRecordResourceDto: import("@sinclair/t
|
|
56
56
|
isPreTGE: import("@sinclair/typebox").TBoolean;
|
57
57
|
price: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>>;
|
58
58
|
symbol: import("@sinclair/typebox").TString;
|
59
|
+
type: import("@sinclair/typebox").TEnum<{
|
60
|
+
readonly TOKEN: "TOKEN";
|
61
|
+
readonly PRETGE: "PRETGE";
|
62
|
+
readonly POINT: "POINT";
|
63
|
+
}>;
|
59
64
|
}>;
|
60
65
|
amount: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBigInt, import("@sinclair/typebox").TString]>;
|
61
66
|
distributionType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
|
@@ -86,6 +91,11 @@ export declare const DailyRewardsRecordResourceDto: import("@sinclair/typebox").
|
|
86
91
|
isPreTGE: import("@sinclair/typebox").TBoolean;
|
87
92
|
price: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>>;
|
88
93
|
symbol: import("@sinclair/typebox").TString;
|
94
|
+
type: import("@sinclair/typebox").TEnum<{
|
95
|
+
readonly TOKEN: "TOKEN";
|
96
|
+
readonly PRETGE: "PRETGE";
|
97
|
+
readonly POINT: "POINT";
|
98
|
+
}>;
|
89
99
|
}>;
|
90
100
|
amount: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBigInt, import("@sinclair/typebox").TString]>;
|
91
101
|
distributionType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
|