@merkl/api 0.20.115 → 0.20.117
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/database/api/.generated/drizzle/schema.d.ts +17 -0
- package/dist/database/api/.generated/drizzle/schema.js +1 -0
- package/dist/database/api/.generated/drizzle/schema.ts +1 -0
- package/dist/database/api/.generated/edge.js +4 -3
- package/dist/database/api/.generated/index-browser.js +1 -0
- package/dist/database/api/.generated/index.d.ts +58 -1
- package/dist/database/api/.generated/index.js +4 -3
- package/dist/database/api/.generated/package.json +1 -1
- package/dist/database/api/.generated/schema.prisma +1 -0
- package/dist/database/api/.generated/wasm.js +1 -0
- package/dist/src/eden/index.d.ts +568 -18
- package/dist/src/engine/deprecated/dynamicData/implementations/ERC721.js +4 -2
- package/dist/src/engine/deprecated/dynamicData/implementations/ERCMultiToken.js +4 -2
- package/dist/src/engine/deprecated/dynamicData/implementations/Erc20.js +4 -2
- package/dist/src/engine/deprecated/dynamicData/utils/getFixedApr.d.ts +0 -1
- package/dist/src/engine/deprecated/dynamicData/utils/getFixedApr.js +0 -8
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/NoLinkVaultProcessor.js +1 -1
- package/dist/src/index.d.ts +190 -6
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +29 -1
- package/dist/src/modules/v4/campaign/campaign.model.d.ts +2 -0
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +4 -0
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +37 -3
- package/dist/src/modules/v4/campaign/campaign.service.js +4 -2
- package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +52 -2
- package/dist/src/modules/v4/dynamicData/dynamicData.service.js +7 -7
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +96 -3
- package/dist/src/modules/v4/opportunity/opportunity.controller.js +2 -0
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +10 -0
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +39 -1
- package/dist/src/modules/v4/opportunity/opportunity.repository.js +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +135 -10
- package/dist/src/modules/v4/opportunity/opportunity.service.js +1 -1
- package/dist/src/modules/v4/reward/reward.model.d.ts +4 -0
- package/dist/src/modules/v4/reward/reward.repository.d.ts +2 -0
- package/dist/src/modules/v4/reward/reward.service.d.ts +14 -0
- package/dist/src/modules/v4/router.d.ts +190 -6
- package/dist/src/modules/v4/token/token.controller.d.ts +9 -0
- package/dist/src/modules/v4/token/token.model.d.ts +3 -0
- package/dist/src/modules/v4/token/token.model.js +3 -0
- package/dist/src/modules/v4/token/token.repository.d.ts +4 -0
- package/dist/src/modules/v4/token/token.service.d.ts +13 -0
- package/dist/src/modules/v4/token/token.service.js +1 -0
- package/dist/src/modules/v4/user/user.controller.d.ts +4 -0
- package/dist/src/utils/parseDistributionType.d.ts +1 -0
- package/dist/src/utils/parseDistributionType.js +16 -0
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -10,6 +10,31 @@ export declare abstract class OpportunityRepository {
|
|
10
10
|
static create(newOpp: CreateOpportunityModel & {
|
11
11
|
id: string;
|
12
12
|
}, upsert?: boolean): Promise<{
|
13
|
+
Tokens: {
|
14
|
+
symbol: string;
|
15
|
+
id: string;
|
16
|
+
name: string | null;
|
17
|
+
icon: string;
|
18
|
+
address: string;
|
19
|
+
chainId: number;
|
20
|
+
decimals: number;
|
21
|
+
displaySymbol: string;
|
22
|
+
verified: boolean;
|
23
|
+
isTest: boolean;
|
24
|
+
isPoint: boolean;
|
25
|
+
isPreTGE: boolean;
|
26
|
+
isNative: boolean;
|
27
|
+
price: number | null;
|
28
|
+
}[];
|
29
|
+
Protocols: {
|
30
|
+
id: string;
|
31
|
+
name: string;
|
32
|
+
url: string;
|
33
|
+
description: string;
|
34
|
+
tags: string[];
|
35
|
+
icon: string;
|
36
|
+
}[];
|
37
|
+
} & {
|
13
38
|
id: string;
|
14
39
|
name: string;
|
15
40
|
type: string;
|
@@ -26,7 +51,7 @@ export declare abstract class OpportunityRepository {
|
|
26
51
|
apr: number;
|
27
52
|
dailyRewards: number;
|
28
53
|
lastCampaignCreatedAt: Date;
|
29
|
-
}
|
54
|
+
}>;
|
30
55
|
static findUnique(id: string): Promise<({
|
31
56
|
Chain: {
|
32
57
|
id: number;
|
@@ -46,6 +71,7 @@ export declare abstract class OpportunityRepository {
|
|
46
71
|
verified: boolean;
|
47
72
|
isTest: boolean;
|
48
73
|
isPoint: boolean;
|
74
|
+
isPreTGE: boolean;
|
49
75
|
isNative: boolean;
|
50
76
|
price: number | null;
|
51
77
|
};
|
@@ -79,6 +105,7 @@ export declare abstract class OpportunityRepository {
|
|
79
105
|
verified: boolean;
|
80
106
|
isTest: boolean;
|
81
107
|
isPoint: boolean;
|
108
|
+
isPreTGE: boolean;
|
82
109
|
isNative: boolean;
|
83
110
|
price: number | null;
|
84
111
|
}[];
|
@@ -145,6 +172,7 @@ export declare abstract class OpportunityRepository {
|
|
145
172
|
verified: boolean;
|
146
173
|
isTest: boolean;
|
147
174
|
isPoint: boolean;
|
175
|
+
isPreTGE: boolean;
|
148
176
|
isNative: boolean;
|
149
177
|
price: number | null;
|
150
178
|
};
|
@@ -223,6 +251,7 @@ export declare abstract class OpportunityRepository {
|
|
223
251
|
verified: boolean;
|
224
252
|
isTest: boolean;
|
225
253
|
isPoint: boolean;
|
254
|
+
isPreTGE: boolean;
|
226
255
|
isNative: boolean;
|
227
256
|
price: number | null;
|
228
257
|
}[];
|
@@ -289,6 +318,7 @@ export declare abstract class OpportunityRepository {
|
|
289
318
|
verified: boolean;
|
290
319
|
isTest: boolean;
|
291
320
|
isPoint: boolean;
|
321
|
+
isPreTGE: boolean;
|
292
322
|
isNative: boolean;
|
293
323
|
price: number | null;
|
294
324
|
};
|
@@ -379,6 +409,7 @@ export declare abstract class OpportunityRepository {
|
|
379
409
|
verified: boolean;
|
380
410
|
isTest: boolean;
|
381
411
|
isPoint: boolean;
|
412
|
+
isPreTGE: boolean;
|
382
413
|
isNative: boolean;
|
383
414
|
price: number | null;
|
384
415
|
};
|
@@ -425,6 +456,7 @@ export declare abstract class OpportunityRepository {
|
|
425
456
|
verified: boolean;
|
426
457
|
isTest: boolean;
|
427
458
|
isPoint: boolean;
|
459
|
+
isPreTGE: boolean;
|
428
460
|
isNative: boolean;
|
429
461
|
price: number | null;
|
430
462
|
}[];
|
@@ -491,6 +523,7 @@ export declare abstract class OpportunityRepository {
|
|
491
523
|
verified: boolean;
|
492
524
|
isTest: boolean;
|
493
525
|
isPoint: boolean;
|
526
|
+
isPreTGE: boolean;
|
494
527
|
isNative: boolean;
|
495
528
|
price: number | null;
|
496
529
|
};
|
@@ -576,6 +609,7 @@ export declare abstract class OpportunityRepository {
|
|
576
609
|
verified: boolean;
|
577
610
|
isTest: boolean;
|
578
611
|
isPoint: boolean;
|
612
|
+
isPreTGE: boolean;
|
579
613
|
isNative: boolean;
|
580
614
|
price: number | null;
|
581
615
|
}[];
|
@@ -642,6 +676,7 @@ export declare abstract class OpportunityRepository {
|
|
642
676
|
verified: boolean;
|
643
677
|
isTest: boolean;
|
644
678
|
isPoint: boolean;
|
679
|
+
isPreTGE: boolean;
|
645
680
|
isNative: boolean;
|
646
681
|
price: number | null;
|
647
682
|
};
|
@@ -734,6 +769,7 @@ export declare abstract class OpportunityRepository {
|
|
734
769
|
verified: boolean;
|
735
770
|
isTest: boolean;
|
736
771
|
isPoint: boolean;
|
772
|
+
isPreTGE: boolean;
|
737
773
|
isNative: boolean;
|
738
774
|
price: number | null;
|
739
775
|
};
|
@@ -780,6 +816,7 @@ export declare abstract class OpportunityRepository {
|
|
780
816
|
verified: boolean;
|
781
817
|
isTest: boolean;
|
782
818
|
isPoint: boolean;
|
819
|
+
isPreTGE: boolean;
|
783
820
|
isNative: boolean;
|
784
821
|
price: number | null;
|
785
822
|
}[];
|
@@ -846,6 +883,7 @@ export declare abstract class OpportunityRepository {
|
|
846
883
|
verified: boolean;
|
847
884
|
isTest: boolean;
|
848
885
|
isPoint: boolean;
|
886
|
+
isPreTGE: boolean;
|
849
887
|
isNative: boolean;
|
850
888
|
price: number | null;
|
851
889
|
};
|
@@ -265,7 +265,7 @@ export class OpportunityRepository {
|
|
265
265
|
});
|
266
266
|
else
|
267
267
|
await apiDbClient.opportunity.create({ data });
|
268
|
-
return await
|
268
|
+
return await OpportunityRepository.findUniqueOrThrow(newOpp.id, true, true);
|
269
269
|
}
|
270
270
|
// ─── Find ────────────────────────────────────────────────────────────
|
271
271
|
static async findUnique(id) {
|
@@ -24,7 +24,32 @@ export declare abstract class OpportunityService {
|
|
24
24
|
dailyRewards: number;
|
25
25
|
lastCampaignCreatedAt: Date;
|
26
26
|
}>;
|
27
|
-
static deleteOverrides(id: string, overridesToDelete: OpportunityManualOverride[]): Promise<{
|
27
|
+
static deleteOverrides(id: string, overridesToDelete: OpportunityManualOverride[]): Promise<({
|
28
|
+
Tokens: {
|
29
|
+
symbol: string;
|
30
|
+
id: string;
|
31
|
+
name: string | null;
|
32
|
+
icon: string;
|
33
|
+
address: string;
|
34
|
+
chainId: number;
|
35
|
+
decimals: number;
|
36
|
+
displaySymbol: string;
|
37
|
+
verified: boolean;
|
38
|
+
isTest: boolean;
|
39
|
+
isPoint: boolean;
|
40
|
+
isPreTGE: boolean;
|
41
|
+
isNative: boolean;
|
42
|
+
price: number | null;
|
43
|
+
}[];
|
44
|
+
Protocols: {
|
45
|
+
id: string;
|
46
|
+
name: string;
|
47
|
+
url: string;
|
48
|
+
description: string;
|
49
|
+
tags: string[];
|
50
|
+
icon: string;
|
51
|
+
}[];
|
52
|
+
} & {
|
28
53
|
id: string;
|
29
54
|
name: string;
|
30
55
|
type: string;
|
@@ -41,7 +66,7 @@ export declare abstract class OpportunityService {
|
|
41
66
|
apr: number;
|
42
67
|
dailyRewards: number;
|
43
68
|
lastCampaignCreatedAt: Date;
|
44
|
-
} | {
|
69
|
+
}) | {
|
45
70
|
id: string;
|
46
71
|
chainId: number;
|
47
72
|
type: string;
|
@@ -60,6 +85,7 @@ export declare abstract class OpportunityService {
|
|
60
85
|
verified: boolean;
|
61
86
|
isTest: boolean;
|
62
87
|
isPoint: boolean;
|
88
|
+
isPreTGE: boolean;
|
63
89
|
isNative: boolean;
|
64
90
|
} & {
|
65
91
|
price?: number | null | undefined;
|
@@ -68,13 +94,38 @@ export declare abstract class OpportunityService {
|
|
68
94
|
depositUrl: string | undefined;
|
69
95
|
explorerAddress: string | undefined;
|
70
96
|
tags: string[];
|
71
|
-
}
|
97
|
+
}>;
|
72
98
|
/**
|
73
99
|
* create an opportunity without campaigns
|
74
100
|
* @param newOpp the new opportunity to create
|
75
101
|
* @returns {Promise<Opportunity|undefined>}
|
76
102
|
*/
|
77
103
|
static create(newOpp: CreateOpportunityModel): Promise<{
|
104
|
+
Tokens: {
|
105
|
+
symbol: string;
|
106
|
+
id: string;
|
107
|
+
name: string | null;
|
108
|
+
icon: string;
|
109
|
+
address: string;
|
110
|
+
chainId: number;
|
111
|
+
decimals: number;
|
112
|
+
displaySymbol: string;
|
113
|
+
verified: boolean;
|
114
|
+
isTest: boolean;
|
115
|
+
isPoint: boolean;
|
116
|
+
isPreTGE: boolean;
|
117
|
+
isNative: boolean;
|
118
|
+
price: number | null;
|
119
|
+
}[];
|
120
|
+
Protocols: {
|
121
|
+
id: string;
|
122
|
+
name: string;
|
123
|
+
url: string;
|
124
|
+
description: string;
|
125
|
+
tags: string[];
|
126
|
+
icon: string;
|
127
|
+
}[];
|
128
|
+
} & {
|
78
129
|
id: string;
|
79
130
|
name: string;
|
80
131
|
type: string;
|
@@ -91,13 +142,38 @@ export declare abstract class OpportunityService {
|
|
91
142
|
apr: number;
|
92
143
|
dailyRewards: number;
|
93
144
|
lastCampaignCreatedAt: Date;
|
94
|
-
}
|
145
|
+
}>;
|
95
146
|
/**
|
96
147
|
* @param upsert whether to update the opportunity if it already exists in database
|
97
148
|
* @param dryRun whether to skip the opportunity table interaction and just return the computed opportunity
|
98
149
|
* @returns the opportunity entity computed
|
99
150
|
*/
|
100
|
-
static createFromCampaign(campaign: Omit<CampaignWithParams, "manualOverrides">, opportunityIdentifier: string, upsert?: boolean, dryRun?: boolean): Promise<{
|
151
|
+
static createFromCampaign(campaign: Omit<CampaignWithParams, "manualOverrides">, opportunityIdentifier: string, upsert?: boolean, dryRun?: boolean): Promise<({
|
152
|
+
Tokens: {
|
153
|
+
symbol: string;
|
154
|
+
id: string;
|
155
|
+
name: string | null;
|
156
|
+
icon: string;
|
157
|
+
address: string;
|
158
|
+
chainId: number;
|
159
|
+
decimals: number;
|
160
|
+
displaySymbol: string;
|
161
|
+
verified: boolean;
|
162
|
+
isTest: boolean;
|
163
|
+
isPoint: boolean;
|
164
|
+
isPreTGE: boolean;
|
165
|
+
isNative: boolean;
|
166
|
+
price: number | null;
|
167
|
+
}[];
|
168
|
+
Protocols: {
|
169
|
+
id: string;
|
170
|
+
name: string;
|
171
|
+
url: string;
|
172
|
+
description: string;
|
173
|
+
tags: string[];
|
174
|
+
icon: string;
|
175
|
+
}[];
|
176
|
+
} & {
|
101
177
|
id: string;
|
102
178
|
name: string;
|
103
179
|
type: string;
|
@@ -114,7 +190,7 @@ export declare abstract class OpportunityService {
|
|
114
190
|
apr: number;
|
115
191
|
dailyRewards: number;
|
116
192
|
lastCampaignCreatedAt: Date;
|
117
|
-
} | {
|
193
|
+
}) | {
|
118
194
|
id: string;
|
119
195
|
chainId: number;
|
120
196
|
type: string;
|
@@ -133,6 +209,7 @@ export declare abstract class OpportunityService {
|
|
133
209
|
verified: boolean;
|
134
210
|
isTest: boolean;
|
135
211
|
isPoint: boolean;
|
212
|
+
isPreTGE: boolean;
|
136
213
|
isNative: boolean;
|
137
214
|
} & {
|
138
215
|
price?: number | null | undefined;
|
@@ -141,11 +218,36 @@ export declare abstract class OpportunityService {
|
|
141
218
|
depositUrl: string | undefined;
|
142
219
|
explorerAddress: string | undefined;
|
143
220
|
tags: string[];
|
144
|
-
}
|
221
|
+
}>;
|
145
222
|
/**
|
146
223
|
* deletes and recreates an opportunity with fresh data
|
147
224
|
*/
|
148
|
-
static recreate(opportunityId: string, campaignId?: string): Promise<{
|
225
|
+
static recreate(opportunityId: string, campaignId?: string): Promise<({
|
226
|
+
Tokens: {
|
227
|
+
symbol: string;
|
228
|
+
id: string;
|
229
|
+
name: string | null;
|
230
|
+
icon: string;
|
231
|
+
address: string;
|
232
|
+
chainId: number;
|
233
|
+
decimals: number;
|
234
|
+
displaySymbol: string;
|
235
|
+
verified: boolean;
|
236
|
+
isTest: boolean;
|
237
|
+
isPoint: boolean;
|
238
|
+
isPreTGE: boolean;
|
239
|
+
isNative: boolean;
|
240
|
+
price: number | null;
|
241
|
+
}[];
|
242
|
+
Protocols: {
|
243
|
+
id: string;
|
244
|
+
name: string;
|
245
|
+
url: string;
|
246
|
+
description: string;
|
247
|
+
tags: string[];
|
248
|
+
icon: string;
|
249
|
+
}[];
|
250
|
+
} & {
|
149
251
|
id: string;
|
150
252
|
name: string;
|
151
253
|
type: string;
|
@@ -162,7 +264,7 @@ export declare abstract class OpportunityService {
|
|
162
264
|
apr: number;
|
163
265
|
dailyRewards: number;
|
164
266
|
lastCampaignCreatedAt: Date;
|
165
|
-
} | {
|
267
|
+
}) | {
|
166
268
|
id: string;
|
167
269
|
chainId: number;
|
168
270
|
type: string;
|
@@ -181,6 +283,7 @@ export declare abstract class OpportunityService {
|
|
181
283
|
verified: boolean;
|
182
284
|
isTest: boolean;
|
183
285
|
isPoint: boolean;
|
286
|
+
isPreTGE: boolean;
|
184
287
|
isNative: boolean;
|
185
288
|
} & {
|
186
289
|
price?: number | null | undefined;
|
@@ -189,7 +292,7 @@ export declare abstract class OpportunityService {
|
|
189
292
|
depositUrl: string | undefined;
|
190
293
|
explorerAddress: string | undefined;
|
191
294
|
tags: string[];
|
192
|
-
}
|
295
|
+
}>;
|
193
296
|
/**
|
194
297
|
* Finds opportunities based on filters of its campaigns
|
195
298
|
* @notice campaigns are filtered as well
|
@@ -247,6 +350,8 @@ export declare abstract class OpportunityService {
|
|
247
350
|
decimals: number;
|
248
351
|
verified: boolean;
|
249
352
|
isTest: boolean;
|
353
|
+
isPoint: boolean;
|
354
|
+
isPreTGE: boolean;
|
250
355
|
};
|
251
356
|
value: number;
|
252
357
|
campaignId: string;
|
@@ -269,6 +374,8 @@ export declare abstract class OpportunityService {
|
|
269
374
|
decimals: number;
|
270
375
|
verified: boolean;
|
271
376
|
isTest: boolean;
|
377
|
+
isPoint: boolean;
|
378
|
+
isPreTGE: boolean;
|
272
379
|
}[];
|
273
380
|
tags: string[];
|
274
381
|
identifier: string;
|
@@ -332,6 +439,8 @@ export declare abstract class OpportunityService {
|
|
332
439
|
decimals: number;
|
333
440
|
verified: boolean;
|
334
441
|
isTest: boolean;
|
442
|
+
isPoint: boolean;
|
443
|
+
isPreTGE: boolean;
|
335
444
|
};
|
336
445
|
}[];
|
337
446
|
}[]>;
|
@@ -386,6 +495,8 @@ export declare abstract class OpportunityService {
|
|
386
495
|
decimals: number;
|
387
496
|
verified: boolean;
|
388
497
|
isTest: boolean;
|
498
|
+
isPoint: boolean;
|
499
|
+
isPreTGE: boolean;
|
389
500
|
};
|
390
501
|
value: number;
|
391
502
|
campaignId: string;
|
@@ -408,6 +519,8 @@ export declare abstract class OpportunityService {
|
|
408
519
|
decimals: number;
|
409
520
|
verified: boolean;
|
410
521
|
isTest: boolean;
|
522
|
+
isPoint: boolean;
|
523
|
+
isPreTGE: boolean;
|
411
524
|
}[];
|
412
525
|
tags: string[];
|
413
526
|
identifier: string;
|
@@ -471,6 +584,8 @@ export declare abstract class OpportunityService {
|
|
471
584
|
decimals: number;
|
472
585
|
verified: boolean;
|
473
586
|
isTest: boolean;
|
587
|
+
isPoint: boolean;
|
588
|
+
isPreTGE: boolean;
|
474
589
|
};
|
475
590
|
}[];
|
476
591
|
}>;
|
@@ -526,6 +641,7 @@ export declare abstract class OpportunityService {
|
|
526
641
|
verified: boolean;
|
527
642
|
isTest: boolean;
|
528
643
|
isPoint: boolean;
|
644
|
+
isPreTGE: boolean;
|
529
645
|
isNative: boolean;
|
530
646
|
price: number | null;
|
531
647
|
};
|
@@ -553,6 +669,7 @@ export declare abstract class OpportunityService {
|
|
553
669
|
verified: boolean;
|
554
670
|
isTest: boolean;
|
555
671
|
isPoint: boolean;
|
672
|
+
isPreTGE: boolean;
|
556
673
|
isNative: boolean;
|
557
674
|
} & {
|
558
675
|
price?: number | null | undefined;
|
@@ -621,6 +738,7 @@ export declare abstract class OpportunityService {
|
|
621
738
|
verified: boolean;
|
622
739
|
isTest: boolean;
|
623
740
|
isPoint: boolean;
|
741
|
+
isPreTGE: boolean;
|
624
742
|
isNative: boolean;
|
625
743
|
} & {
|
626
744
|
price?: number | null | undefined;
|
@@ -701,6 +819,7 @@ export declare abstract class OpportunityService {
|
|
701
819
|
verified: boolean;
|
702
820
|
isTest: boolean;
|
703
821
|
isPoint: boolean;
|
822
|
+
isPreTGE: boolean;
|
704
823
|
isNative: boolean;
|
705
824
|
price: number | null;
|
706
825
|
};
|
@@ -728,6 +847,7 @@ export declare abstract class OpportunityService {
|
|
728
847
|
verified: boolean;
|
729
848
|
isTest: boolean;
|
730
849
|
isPoint: boolean;
|
850
|
+
isPreTGE: boolean;
|
731
851
|
isNative: boolean;
|
732
852
|
} & {
|
733
853
|
price?: number | null | undefined;
|
@@ -796,6 +916,7 @@ export declare abstract class OpportunityService {
|
|
796
916
|
verified: boolean;
|
797
917
|
isTest: boolean;
|
798
918
|
isPoint: boolean;
|
919
|
+
isPreTGE: boolean;
|
799
920
|
isNative: boolean;
|
800
921
|
} & {
|
801
922
|
price?: number | null | undefined;
|
@@ -869,6 +990,7 @@ export declare abstract class OpportunityService {
|
|
869
990
|
verified: boolean;
|
870
991
|
isTest: boolean;
|
871
992
|
isPoint: boolean;
|
993
|
+
isPreTGE: boolean;
|
872
994
|
isNative: boolean;
|
873
995
|
price: number | null;
|
874
996
|
};
|
@@ -896,6 +1018,7 @@ export declare abstract class OpportunityService {
|
|
896
1018
|
verified: boolean;
|
897
1019
|
isTest: boolean;
|
898
1020
|
isPoint: boolean;
|
1021
|
+
isPreTGE: boolean;
|
899
1022
|
isNative: boolean;
|
900
1023
|
} & {
|
901
1024
|
price?: number | null | undefined;
|
@@ -964,6 +1087,7 @@ export declare abstract class OpportunityService {
|
|
964
1087
|
verified: boolean;
|
965
1088
|
isTest: boolean;
|
966
1089
|
isPoint: boolean;
|
1090
|
+
isPreTGE: boolean;
|
967
1091
|
isNative: boolean;
|
968
1092
|
} & {
|
969
1093
|
price?: number | null | undefined;
|
@@ -1007,6 +1131,7 @@ export declare abstract class OpportunityService {
|
|
1007
1131
|
verified: boolean;
|
1008
1132
|
isTest: boolean;
|
1009
1133
|
isPoint: boolean;
|
1134
|
+
isPreTGE: boolean;
|
1010
1135
|
isNative: boolean;
|
1011
1136
|
} & {
|
1012
1137
|
price?: number | null | undefined;
|
@@ -108,7 +108,7 @@ export class OpportunityService {
|
|
108
108
|
const firstCampaigns = sortedCampaigns.filter(campaign => campaign.startTimestamp <= BigInt(moment().unix()));
|
109
109
|
if (firstCampaigns.length > 0)
|
110
110
|
firstCampaign = firstCampaigns[0];
|
111
|
-
return await OpportunityService.createFromCampaign(CampaignService.format(await CampaignService.findUniqueOrThrow(firstCampaign.
|
111
|
+
return await OpportunityService.createFromCampaign(CampaignService.format(await CampaignService.findUniqueOrThrow(firstCampaign.id)), opportunity.identifier, true // Upserting
|
112
112
|
);
|
113
113
|
}
|
114
114
|
/**
|
@@ -51,6 +51,8 @@ export declare const DailyRewardsBreakdownRecordResourceDto: import("@sinclair/t
|
|
51
51
|
icon: import("@sinclair/typebox").TString;
|
52
52
|
verified: import("@sinclair/typebox").TBoolean;
|
53
53
|
isTest: import("@sinclair/typebox").TBoolean;
|
54
|
+
isPoint: import("@sinclair/typebox").TBoolean;
|
55
|
+
isPreTGE: import("@sinclair/typebox").TBoolean;
|
54
56
|
price: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>>;
|
55
57
|
symbol: import("@sinclair/typebox").TString;
|
56
58
|
}>;
|
@@ -74,6 +76,8 @@ export declare const DailyRewardsRecordResourceDto: import("@sinclair/typebox").
|
|
74
76
|
icon: import("@sinclair/typebox").TString;
|
75
77
|
verified: import("@sinclair/typebox").TBoolean;
|
76
78
|
isTest: import("@sinclair/typebox").TBoolean;
|
79
|
+
isPoint: import("@sinclair/typebox").TBoolean;
|
80
|
+
isPreTGE: import("@sinclair/typebox").TBoolean;
|
77
81
|
price: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>>;
|
78
82
|
symbol: import("@sinclair/typebox").TString;
|
79
83
|
}>;
|
@@ -16,6 +16,7 @@ export declare abstract class RewardRepository {
|
|
16
16
|
verified: boolean;
|
17
17
|
isTest: boolean;
|
18
18
|
isPoint: boolean;
|
19
|
+
isPreTGE: boolean;
|
19
20
|
isNative: boolean;
|
20
21
|
price: number | null;
|
21
22
|
};
|
@@ -40,6 +41,7 @@ export declare abstract class RewardRepository {
|
|
40
41
|
verified: boolean;
|
41
42
|
isTest: boolean;
|
42
43
|
isPoint: boolean;
|
44
|
+
isPreTGE: boolean;
|
43
45
|
isNative: boolean;
|
44
46
|
price: number | null;
|
45
47
|
}[];
|
@@ -55,6 +55,7 @@ export declare abstract class RewardService {
|
|
55
55
|
verified: boolean;
|
56
56
|
isTest: boolean;
|
57
57
|
isPoint: boolean;
|
58
|
+
isPreTGE: boolean;
|
58
59
|
isNative: boolean;
|
59
60
|
price: number | null;
|
60
61
|
};
|
@@ -82,6 +83,7 @@ export declare abstract class RewardService {
|
|
82
83
|
verified: boolean;
|
83
84
|
isTest: boolean;
|
84
85
|
isPoint: boolean;
|
86
|
+
isPreTGE: boolean;
|
85
87
|
isNative: boolean;
|
86
88
|
} & {
|
87
89
|
price?: number | null | undefined;
|
@@ -150,6 +152,7 @@ export declare abstract class RewardService {
|
|
150
152
|
verified: boolean;
|
151
153
|
isTest: boolean;
|
152
154
|
isPoint: boolean;
|
155
|
+
isPreTGE: boolean;
|
153
156
|
isNative: boolean;
|
154
157
|
} & {
|
155
158
|
price?: number | null | undefined;
|
@@ -206,6 +209,7 @@ export declare abstract class RewardService {
|
|
206
209
|
verified: boolean;
|
207
210
|
isTest: boolean;
|
208
211
|
isPoint: boolean;
|
212
|
+
isPreTGE: boolean;
|
209
213
|
isNative: boolean;
|
210
214
|
price: number | null;
|
211
215
|
}[];
|
@@ -266,6 +270,7 @@ export declare abstract class RewardService {
|
|
266
270
|
verified: boolean;
|
267
271
|
isTest: boolean;
|
268
272
|
isPoint: boolean;
|
273
|
+
isPreTGE: boolean;
|
269
274
|
isNative: boolean;
|
270
275
|
price: number | null;
|
271
276
|
};
|
@@ -289,6 +294,7 @@ export declare abstract class RewardService {
|
|
289
294
|
verified: boolean;
|
290
295
|
isTest: boolean;
|
291
296
|
isPoint: boolean;
|
297
|
+
isPreTGE: boolean;
|
292
298
|
isNative: boolean;
|
293
299
|
price: number | null;
|
294
300
|
}[];
|
@@ -352,6 +358,7 @@ export declare abstract class RewardService {
|
|
352
358
|
verified: boolean;
|
353
359
|
isTest: boolean;
|
354
360
|
isPoint: boolean;
|
361
|
+
isPreTGE: boolean;
|
355
362
|
isNative: boolean;
|
356
363
|
price: number | null;
|
357
364
|
};
|
@@ -376,6 +383,7 @@ export declare abstract class RewardService {
|
|
376
383
|
verified: boolean;
|
377
384
|
isTest: boolean;
|
378
385
|
isPoint: boolean;
|
386
|
+
isPreTGE: boolean;
|
379
387
|
isNative: boolean;
|
380
388
|
price: number | null;
|
381
389
|
}[];
|
@@ -469,6 +477,7 @@ export declare abstract class RewardService {
|
|
469
477
|
verified: boolean;
|
470
478
|
isTest: boolean;
|
471
479
|
isPoint: boolean;
|
480
|
+
isPreTGE: boolean;
|
472
481
|
isNative: boolean;
|
473
482
|
price: number | null;
|
474
483
|
};
|
@@ -492,6 +501,7 @@ export declare abstract class RewardService {
|
|
492
501
|
verified: boolean;
|
493
502
|
isTest: boolean;
|
494
503
|
isPoint: boolean;
|
504
|
+
isPreTGE: boolean;
|
495
505
|
isNative: boolean;
|
496
506
|
price: number | null;
|
497
507
|
}[];
|
@@ -567,6 +577,7 @@ export declare abstract class RewardService {
|
|
567
577
|
verified: boolean;
|
568
578
|
isTest: boolean;
|
569
579
|
isPoint: boolean;
|
580
|
+
isPreTGE: boolean;
|
570
581
|
isNative: boolean;
|
571
582
|
price: number | null;
|
572
583
|
};
|
@@ -590,6 +601,7 @@ export declare abstract class RewardService {
|
|
590
601
|
verified: boolean;
|
591
602
|
isTest: boolean;
|
592
603
|
isPoint: boolean;
|
604
|
+
isPreTGE: boolean;
|
593
605
|
isNative: boolean;
|
594
606
|
price: number | null;
|
595
607
|
}[];
|
@@ -662,6 +674,7 @@ export declare abstract class RewardService {
|
|
662
674
|
verified: boolean;
|
663
675
|
isTest: boolean;
|
664
676
|
isPoint: boolean;
|
677
|
+
isPreTGE: boolean;
|
665
678
|
isNative: boolean;
|
666
679
|
price: number | null;
|
667
680
|
};
|
@@ -686,6 +699,7 @@ export declare abstract class RewardService {
|
|
686
699
|
verified: boolean;
|
687
700
|
isTest: boolean;
|
688
701
|
isPoint: boolean;
|
702
|
+
isPreTGE: boolean;
|
689
703
|
isNative: boolean;
|
690
704
|
price: number | null;
|
691
705
|
}[];
|