@merkl/api 0.20.153 → 0.20.155
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 +84 -7
- package/dist/database/api/.generated/drizzle/schema.js +4 -1
- package/dist/database/api/.generated/drizzle/schema.ts +4 -1
- package/dist/database/api/.generated/edge.js +12 -4
- package/dist/database/api/.generated/index-browser.js +9 -1
- package/dist/database/api/.generated/index.d.ts +303 -79
- package/dist/database/api/.generated/index.js +12 -4
- package/dist/database/api/.generated/package.json +1 -1
- package/dist/database/api/.generated/schema.prisma +5 -0
- package/dist/database/api/.generated/wasm.js +9 -1
- package/dist/src/eden/index.d.ts +135 -3
- package/dist/src/index.d.ts +47 -1
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +13 -0
- package/dist/src/modules/v4/campaign/campaign.model.d.ts +2 -0
- package/dist/src/modules/v4/campaign/campaign.model.js +1 -0
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +18 -0
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +32 -0
- package/dist/src/modules/v4/campaign/campaign.service.js +2 -1
- package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +6 -0
- package/dist/src/modules/v4/dynamicData/dynamicData.service.d.ts +1 -1
- package/dist/src/modules/v4/dynamicData/dynamicData.service.js +3 -2
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +24 -1
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +9 -0
- package/dist/src/modules/v4/opportunity/opportunity.model.js +4 -0
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +23 -0
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +35 -0
- package/dist/src/modules/v4/protocol/protocol.repository.d.ts +3 -0
- package/dist/src/modules/v4/reward/reward.repository.d.ts +2 -0
- package/dist/src/modules/v4/reward/reward.service.d.ts +17 -0
- package/dist/src/modules/v4/router.d.ts +47 -1
- package/dist/src/modules/v4/user/user.controller.d.ts +4 -0
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -15,11 +15,13 @@ export declare abstract class CampaignService {
|
|
15
15
|
name: string;
|
16
16
|
type: string;
|
17
17
|
status: import("@db/api").$Enums.Status;
|
18
|
+
description: string;
|
18
19
|
tags: string[];
|
19
20
|
identifier: string;
|
20
21
|
action: import("@db/api").$Enums.OpportunityAction;
|
21
22
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
22
23
|
chainId: number;
|
24
|
+
howToSteps: string[];
|
23
25
|
depositUrl: string | null;
|
24
26
|
explorerAddress: string | null;
|
25
27
|
mainProtocolId: string | null;
|
@@ -31,6 +33,7 @@ export declare abstract class CampaignService {
|
|
31
33
|
} & {
|
32
34
|
id: string;
|
33
35
|
type: string;
|
36
|
+
description: string | null;
|
34
37
|
params: import("database/api/.generated/runtime/library").JsonValue;
|
35
38
|
subType: number | null;
|
36
39
|
computeChainId: number;
|
@@ -55,11 +58,13 @@ export declare abstract class CampaignService {
|
|
55
58
|
name: string;
|
56
59
|
type: string;
|
57
60
|
status: import("@db/api").$Enums.Status;
|
61
|
+
description: string;
|
58
62
|
tags: string[];
|
59
63
|
identifier: string;
|
60
64
|
action: import("@db/api").$Enums.OpportunityAction;
|
61
65
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
62
66
|
chainId: number;
|
67
|
+
howToSteps: string[];
|
63
68
|
depositUrl: string | null;
|
64
69
|
explorerAddress: string | null;
|
65
70
|
mainProtocolId: string | null;
|
@@ -71,6 +76,7 @@ export declare abstract class CampaignService {
|
|
71
76
|
} & {
|
72
77
|
id: string;
|
73
78
|
type: string;
|
79
|
+
description: string | null;
|
74
80
|
params: import("database/api/.generated/runtime/library").JsonValue;
|
75
81
|
subType: number | null;
|
76
82
|
computeChainId: number;
|
@@ -112,11 +118,13 @@ export declare abstract class CampaignService {
|
|
112
118
|
name: string;
|
113
119
|
type: string;
|
114
120
|
status: import("@db/api").$Enums.Status;
|
121
|
+
description: string;
|
115
122
|
tags: string[];
|
116
123
|
identifier: string;
|
117
124
|
action: import("@db/api").$Enums.OpportunityAction;
|
118
125
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
119
126
|
chainId: number;
|
127
|
+
howToSteps: string[];
|
120
128
|
depositUrl: string | null;
|
121
129
|
explorerAddress: string | null;
|
122
130
|
mainProtocolId: string | null;
|
@@ -128,6 +136,7 @@ export declare abstract class CampaignService {
|
|
128
136
|
} & {
|
129
137
|
id: string;
|
130
138
|
type: string;
|
139
|
+
description: string | null;
|
131
140
|
params: import("database/api/.generated/runtime/library").JsonValue;
|
132
141
|
subType: number | null;
|
133
142
|
computeChainId: number;
|
@@ -151,6 +160,7 @@ export declare abstract class CampaignService {
|
|
151
160
|
static create(body: Omit<CreateCampaignModel, "id">, dryRun?: boolean): Promise<{
|
152
161
|
id: string;
|
153
162
|
type: string;
|
163
|
+
description: string | null;
|
154
164
|
params: import("database/api/.generated/runtime/library").JsonValue;
|
155
165
|
subType: number | null;
|
156
166
|
computeChainId: number;
|
@@ -195,11 +205,13 @@ export declare abstract class CampaignService {
|
|
195
205
|
name: string;
|
196
206
|
type: string;
|
197
207
|
status: import("@db/api").$Enums.Status;
|
208
|
+
description: string;
|
198
209
|
tags: string[];
|
199
210
|
identifier: string;
|
200
211
|
action: import("@db/api").$Enums.OpportunityAction;
|
201
212
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
202
213
|
chainId: number;
|
214
|
+
howToSteps: string[];
|
203
215
|
depositUrl: string | null;
|
204
216
|
explorerAddress: string | null;
|
205
217
|
mainProtocolId: string | null;
|
@@ -243,6 +255,7 @@ export declare abstract class CampaignService {
|
|
243
255
|
static updateMetaData(campaign: Omit<UpdateMetaDataCampaignModel, "id">): Promise<{
|
244
256
|
id: string;
|
245
257
|
type: string;
|
258
|
+
description: string | null;
|
246
259
|
params: import("database/api/.generated/runtime/library").JsonValue;
|
247
260
|
subType: number | null;
|
248
261
|
computeChainId: number;
|
@@ -316,16 +329,19 @@ export declare abstract class CampaignService {
|
|
316
329
|
creatorId: string | null;
|
317
330
|
};
|
318
331
|
createdAt: string;
|
332
|
+
description: string | undefined;
|
319
333
|
Opportunity: {
|
320
334
|
id: string;
|
321
335
|
name: string;
|
322
336
|
type: string;
|
323
337
|
status: import("@db/api").$Enums.Status;
|
338
|
+
description: string;
|
324
339
|
tags: string[];
|
325
340
|
identifier: string;
|
326
341
|
action: import("@db/api").$Enums.OpportunityAction;
|
327
342
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
328
343
|
chainId: number;
|
344
|
+
howToSteps: string[];
|
329
345
|
depositUrl: string | null;
|
330
346
|
explorerAddress: string | null;
|
331
347
|
mainProtocolId: string | null;
|
@@ -390,16 +406,19 @@ export declare abstract class CampaignService {
|
|
390
406
|
creatorId: string | null;
|
391
407
|
};
|
392
408
|
createdAt: string;
|
409
|
+
description: string | undefined;
|
393
410
|
Opportunity: {
|
394
411
|
id: string;
|
395
412
|
name: string;
|
396
413
|
type: string;
|
397
414
|
status: import("@db/api").$Enums.Status;
|
415
|
+
description: string;
|
398
416
|
tags: string[];
|
399
417
|
identifier: string;
|
400
418
|
action: import("@db/api").$Enums.OpportunityAction;
|
401
419
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
402
420
|
chainId: number;
|
421
|
+
howToSteps: string[];
|
403
422
|
depositUrl: string | null;
|
404
423
|
explorerAddress: string | null;
|
405
424
|
mainProtocolId: string | null;
|
@@ -465,16 +484,19 @@ export declare abstract class CampaignService {
|
|
465
484
|
creatorId: string | null;
|
466
485
|
};
|
467
486
|
createdAt: string;
|
487
|
+
description: string | undefined;
|
468
488
|
Opportunity: {
|
469
489
|
id: string;
|
470
490
|
name: string;
|
471
491
|
type: string;
|
472
492
|
status: import("@db/api").$Enums.Status;
|
493
|
+
description: string;
|
473
494
|
tags: string[];
|
474
495
|
identifier: string;
|
475
496
|
action: import("@db/api").$Enums.OpportunityAction;
|
476
497
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
477
498
|
chainId: number;
|
499
|
+
howToSteps: string[];
|
478
500
|
depositUrl: string | null;
|
479
501
|
explorerAddress: string | null;
|
480
502
|
mainProtocolId: string | null;
|
@@ -540,16 +562,19 @@ export declare abstract class CampaignService {
|
|
540
562
|
creatorId: string | null;
|
541
563
|
};
|
542
564
|
createdAt: string;
|
565
|
+
description: string | undefined;
|
543
566
|
Opportunity: {
|
544
567
|
id: string;
|
545
568
|
name: string;
|
546
569
|
type: string;
|
547
570
|
status: import("@db/api").$Enums.Status;
|
571
|
+
description: string;
|
548
572
|
tags: string[];
|
549
573
|
identifier: string;
|
550
574
|
action: import("@db/api").$Enums.OpportunityAction;
|
551
575
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
552
576
|
chainId: number;
|
577
|
+
howToSteps: string[];
|
553
578
|
depositUrl: string | null;
|
554
579
|
explorerAddress: string | null;
|
555
580
|
mainProtocolId: string | null;
|
@@ -622,6 +647,7 @@ export declare abstract class CampaignService {
|
|
622
647
|
} & {
|
623
648
|
id: string;
|
624
649
|
type: string;
|
650
|
+
description: string | null;
|
625
651
|
params: import("database/api/.generated/runtime/library").JsonValue;
|
626
652
|
subType: number | null;
|
627
653
|
computeChainId: number;
|
@@ -669,11 +695,13 @@ export declare abstract class CampaignService {
|
|
669
695
|
name: string;
|
670
696
|
type: string;
|
671
697
|
status: import("@db/api").$Enums.Status;
|
698
|
+
description: string;
|
672
699
|
tags: string[];
|
673
700
|
identifier: string;
|
674
701
|
action: import("@db/api").$Enums.OpportunityAction;
|
675
702
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
676
703
|
chainId: number;
|
704
|
+
howToSteps: string[];
|
677
705
|
depositUrl: string | null;
|
678
706
|
explorerAddress: string | null;
|
679
707
|
mainProtocolId: string | null;
|
@@ -698,6 +726,7 @@ export declare abstract class CampaignService {
|
|
698
726
|
} & {
|
699
727
|
id: string;
|
700
728
|
type: string;
|
729
|
+
description: string | null;
|
701
730
|
params: import("database/api/.generated/runtime/library").JsonValue;
|
702
731
|
subType: number | null;
|
703
732
|
computeChainId: number;
|
@@ -824,16 +853,19 @@ export declare abstract class CampaignService {
|
|
824
853
|
creatorId: string | null;
|
825
854
|
};
|
826
855
|
createdAt: string;
|
856
|
+
description: string | undefined;
|
827
857
|
Opportunity: {
|
828
858
|
id: string;
|
829
859
|
name: string;
|
830
860
|
type: string;
|
831
861
|
status: import("@db/api").$Enums.Status;
|
862
|
+
description: string;
|
832
863
|
tags: string[];
|
833
864
|
identifier: string;
|
834
865
|
action: import("@db/api").$Enums.OpportunityAction;
|
835
866
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
836
867
|
chainId: number;
|
868
|
+
howToSteps: string[];
|
837
869
|
depositUrl: string | null;
|
838
870
|
explorerAddress: string | null;
|
839
871
|
mainProtocolId: string | null;
|
@@ -300,7 +300,7 @@ export class CampaignService {
|
|
300
300
|
* TODO: remove CampaignService function in favor of prisma client extensions
|
301
301
|
*/
|
302
302
|
static format(campaign) {
|
303
|
-
const { DistributionChain, ComputeChain, Creator, RewardToken, params, CampaignStatus, createdAt, manualOverrides: _, ...c } = campaign;
|
303
|
+
const { DistributionChain, ComputeChain, Creator, RewardToken, params, CampaignStatus, createdAt, manualOverrides: _, description, ...c } = campaign;
|
304
304
|
const updatedParams = params;
|
305
305
|
return {
|
306
306
|
...c,
|
@@ -315,6 +315,7 @@ export class CampaignService {
|
|
315
315
|
creatorAddress: Creator.address,
|
316
316
|
creator: Creator,
|
317
317
|
createdAt: createdAt.toISOString(),
|
318
|
+
description: !!description ? description : undefined,
|
318
319
|
};
|
319
320
|
}
|
320
321
|
/**
|
@@ -151,6 +151,7 @@ export declare const CampaignTestController: Elysia<"/campaigns", false, {
|
|
151
151
|
200: {
|
152
152
|
id: string;
|
153
153
|
type: string;
|
154
|
+
description: string | null;
|
154
155
|
params: import("database/api/.generated/runtime/library").JsonValue;
|
155
156
|
subType: number | null;
|
156
157
|
computeChainId: number;
|
@@ -194,11 +195,13 @@ export declare const CampaignTestController: Elysia<"/campaigns", false, {
|
|
194
195
|
name: string;
|
195
196
|
type: string;
|
196
197
|
status: import("@db/api").$Enums.Status;
|
198
|
+
description: string;
|
197
199
|
tags: string[];
|
198
200
|
identifier: string;
|
199
201
|
action: import("@db/api").$Enums.OpportunityAction;
|
200
202
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
201
203
|
chainId: number;
|
204
|
+
howToSteps: string[];
|
202
205
|
depositUrl: string | null;
|
203
206
|
explorerAddress: string | null;
|
204
207
|
mainProtocolId: string | null;
|
@@ -256,6 +259,7 @@ export declare const CampaignTestController: Elysia<"/campaigns", false, {
|
|
256
259
|
200: {
|
257
260
|
id: string;
|
258
261
|
type: string;
|
262
|
+
description: string | null;
|
259
263
|
params: import("database/api/.generated/runtime/library").JsonValue;
|
260
264
|
subType: number | null;
|
261
265
|
computeChainId: number;
|
@@ -299,11 +303,13 @@ export declare const CampaignTestController: Elysia<"/campaigns", false, {
|
|
299
303
|
name: string;
|
300
304
|
type: string;
|
301
305
|
status: import("@db/api").$Enums.Status;
|
306
|
+
description: string;
|
302
307
|
tags: string[];
|
303
308
|
identifier: string;
|
304
309
|
action: import("@db/api").$Enums.OpportunityAction;
|
305
310
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
306
311
|
chainId: number;
|
312
|
+
howToSteps: string[];
|
307
313
|
depositUrl: string | null;
|
308
314
|
explorerAddress: string | null;
|
309
315
|
mainProtocolId: string | null;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { type CampaignParameters, Campaign as CampaignType,
|
1
|
+
import { type CampaignParameters, Campaign as CampaignType, ChainId, type MerklChainId } from "@sdk";
|
2
2
|
export declare class DynamicDataService {
|
3
3
|
/**
|
4
4
|
* @notice Updates all records for opportunities associated to the given campaigns
|
@@ -14,7 +14,7 @@ import bigintToString from "@/utils/bigintToString";
|
|
14
14
|
import { log } from "@/utils/logger";
|
15
15
|
import { parseDistributionType } from "@/utils/parseDistributionType";
|
16
16
|
import { AprType, DistributionType } from "@db/api";
|
17
|
-
import { Campaign as CampaignType, DAY, HOUR, NETWORK_LABELS, bigIntToNumber, } from "@sdk";
|
17
|
+
import { Campaign as CampaignType, ChainId, DAY, HOUR, NETWORK_LABELS, bigIntToNumber, } from "@sdk";
|
18
18
|
import moment from "moment";
|
19
19
|
export class DynamicDataService {
|
20
20
|
/**
|
@@ -182,7 +182,8 @@ export class DynamicDataService {
|
|
182
182
|
if (!dryRun) {
|
183
183
|
for (const update of updates) {
|
184
184
|
try {
|
185
|
-
if (
|
185
|
+
if (chainId !== ChainId.ETHERLINK ||
|
186
|
+
(await DynamicDataService.checkValidUpdate(update.opportunityId, update.apr.cumulated))) {
|
186
187
|
await OpportunityRepository.updateDynamicData(update.opportunityId, update.apr, update.tvl, update.dailyRewards);
|
187
188
|
}
|
188
189
|
}
|
@@ -67,11 +67,13 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
67
67
|
name: string;
|
68
68
|
type: string;
|
69
69
|
status: import("@db/api").$Enums.Status;
|
70
|
+
description: string;
|
70
71
|
tags: string[];
|
71
72
|
identifier: string;
|
72
73
|
action: import("@db/api").$Enums.OpportunityAction;
|
73
74
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
74
75
|
chainId: number;
|
76
|
+
howToSteps: string[];
|
75
77
|
depositUrl: string | null;
|
76
78
|
explorerAddress: string | null;
|
77
79
|
mainProtocolId: string | null;
|
@@ -91,7 +93,9 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
91
93
|
patch: {
|
92
94
|
body: {
|
93
95
|
name?: string | undefined;
|
96
|
+
description?: string | undefined;
|
94
97
|
action?: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID" | undefined;
|
98
|
+
howToSteps?: string[] | undefined;
|
95
99
|
depositUrl?: string | undefined;
|
96
100
|
explorerAddress?: string | undefined;
|
97
101
|
};
|
@@ -108,11 +112,13 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
108
112
|
name: string;
|
109
113
|
type: string;
|
110
114
|
status: import("@db/api").$Enums.Status;
|
115
|
+
description: string;
|
111
116
|
tags: string[];
|
112
117
|
identifier: string;
|
113
118
|
action: import("@db/api").$Enums.OpportunityAction;
|
114
119
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
115
120
|
chainId: number;
|
121
|
+
howToSteps: string[];
|
116
122
|
depositUrl: string | null;
|
117
123
|
explorerAddress: string | null;
|
118
124
|
mainProtocolId: string | null;
|
@@ -131,7 +137,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
131
137
|
":id": {
|
132
138
|
override: {
|
133
139
|
delete: {
|
134
|
-
body: ("name" | "action" | "depositUrl" | "explorerAddress")[];
|
140
|
+
body: ("name" | "description" | "action" | "howToSteps" | "depositUrl" | "explorerAddress")[];
|
135
141
|
params: {
|
136
142
|
id: string;
|
137
143
|
};
|
@@ -169,11 +175,13 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
169
175
|
name: string;
|
170
176
|
type: string;
|
171
177
|
status: import("@db/api").$Enums.Status;
|
178
|
+
description: string;
|
172
179
|
tags: string[];
|
173
180
|
identifier: string;
|
174
181
|
action: import("@db/api").$Enums.OpportunityAction;
|
175
182
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
176
183
|
chainId: number;
|
184
|
+
howToSteps: string[];
|
177
185
|
depositUrl: string | null;
|
178
186
|
explorerAddress: string | null;
|
179
187
|
mainProtocolId: string | null;
|
@@ -258,11 +266,13 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
258
266
|
name: string;
|
259
267
|
type: string;
|
260
268
|
status: import("@db/api").$Enums.Status;
|
269
|
+
description: string;
|
261
270
|
tags: string[];
|
262
271
|
identifier: string;
|
263
272
|
action: import("@db/api").$Enums.OpportunityAction;
|
264
273
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
265
274
|
chainId: number;
|
275
|
+
howToSteps: string[];
|
266
276
|
depositUrl: string | null;
|
267
277
|
explorerAddress: string | null;
|
268
278
|
mainProtocolId: string | null;
|
@@ -440,16 +450,19 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
440
450
|
creatorId: string | null;
|
441
451
|
};
|
442
452
|
createdAt: string;
|
453
|
+
description: string | undefined;
|
443
454
|
Opportunity: {
|
444
455
|
id: string;
|
445
456
|
name: string;
|
446
457
|
type: string;
|
447
458
|
status: import("@db/api").$Enums.Status;
|
459
|
+
description: string;
|
448
460
|
tags: string[];
|
449
461
|
identifier: string;
|
450
462
|
action: import("@db/api").$Enums.OpportunityAction;
|
451
463
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
452
464
|
chainId: number;
|
465
|
+
howToSteps: string[];
|
453
466
|
depositUrl: string | null;
|
454
467
|
explorerAddress: string | null;
|
455
468
|
mainProtocolId: string | null;
|
@@ -505,10 +518,12 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
505
518
|
name: string;
|
506
519
|
type: string;
|
507
520
|
status: import("@db/api").$Enums.Status;
|
521
|
+
description: string;
|
508
522
|
tags: string[];
|
509
523
|
identifier: string;
|
510
524
|
action: import("@db/api").$Enums.OpportunityAction;
|
511
525
|
chainId: number;
|
526
|
+
howToSteps: string[];
|
512
527
|
tvl: number;
|
513
528
|
dailyRewards: number;
|
514
529
|
}[];
|
@@ -575,7 +590,9 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
575
590
|
tags: string[];
|
576
591
|
icon: string;
|
577
592
|
} | null | undefined;
|
593
|
+
description?: string | undefined;
|
578
594
|
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" | undefined;
|
595
|
+
howToSteps?: string[] | undefined;
|
579
596
|
depositUrl?: string | undefined;
|
580
597
|
explorerAddress?: string | undefined;
|
581
598
|
aprRecord?: {
|
@@ -712,7 +729,9 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
712
729
|
tags: string[];
|
713
730
|
icon: string;
|
714
731
|
} | null | undefined;
|
732
|
+
description?: string | undefined;
|
715
733
|
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" | undefined;
|
734
|
+
howToSteps?: string[] | undefined;
|
716
735
|
depositUrl?: string | undefined;
|
717
736
|
explorerAddress?: string | undefined;
|
718
737
|
aprRecord?: {
|
@@ -795,6 +814,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
795
814
|
dailyRewards: number;
|
796
815
|
lastCampaignCreatedAt: string;
|
797
816
|
campaigns: {
|
817
|
+
description?: string | undefined;
|
798
818
|
creator?: {
|
799
819
|
tags?: string[] | undefined;
|
800
820
|
creatorId?: string | null | undefined;
|
@@ -885,7 +905,9 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
885
905
|
tags: string[];
|
886
906
|
icon: string;
|
887
907
|
} | null | undefined;
|
908
|
+
description?: string | undefined;
|
888
909
|
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" | undefined;
|
910
|
+
howToSteps?: string[] | undefined;
|
889
911
|
depositUrl?: string | undefined;
|
890
912
|
explorerAddress?: string | undefined;
|
891
913
|
aprRecord?: {
|
@@ -968,6 +990,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
968
990
|
dailyRewards: number;
|
969
991
|
lastCampaignCreatedAt: string;
|
970
992
|
campaigns: {
|
993
|
+
description?: string | undefined;
|
971
994
|
creator?: {
|
972
995
|
tags?: string[] | undefined;
|
973
996
|
creatorId?: string | null | undefined;
|
@@ -36,6 +36,8 @@ export declare const OpportunityResourceDto: import("@sinclair/typebox").TObject
|
|
36
36
|
type: import("@sinclair/typebox").TString;
|
37
37
|
identifier: import("@sinclair/typebox").TString;
|
38
38
|
name: import("@sinclair/typebox").TString;
|
39
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
40
|
+
howToSteps: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
39
41
|
status: import("@sinclair/typebox").TString;
|
40
42
|
action: import("@sinclair/typebox").TString;
|
41
43
|
tvl: import("@sinclair/typebox").TNumber;
|
@@ -163,6 +165,7 @@ export declare const OpportunityWithCampaignsResourceDto: import("@sinclair/type
|
|
163
165
|
price: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>>;
|
164
166
|
symbol: import("@sinclair/typebox").TString;
|
165
167
|
}>>;
|
168
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
166
169
|
tags: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
167
170
|
identifier: import("@sinclair/typebox").TString;
|
168
171
|
chain: import("@sinclair/typebox").TObject<{
|
@@ -179,6 +182,7 @@ export declare const OpportunityWithCampaignsResourceDto: import("@sinclair/type
|
|
179
182
|
FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT: "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT";
|
180
183
|
}>>;
|
181
184
|
chainId: import("@sinclair/typebox").TNumber;
|
185
|
+
howToSteps: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
182
186
|
depositUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
183
187
|
explorerAddress: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
184
188
|
tvl: import("@sinclair/typebox").TNumber;
|
@@ -259,6 +263,7 @@ export declare const OpportunityWithCampaignsResourceDto: import("@sinclair/type
|
|
259
263
|
creatorId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
260
264
|
}>>;
|
261
265
|
params: import("@sinclair/typebox").TAny;
|
266
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
262
267
|
chain: import("@sinclair/typebox").TObject<{
|
263
268
|
id: import("@sinclair/typebox").TNumber;
|
264
269
|
name: import("@sinclair/typebox").TString;
|
@@ -371,6 +376,8 @@ export declare const OpportunityIdDto: import("@sinclair/typebox").TObject<{
|
|
371
376
|
}>;
|
372
377
|
export declare const OpportunityOverrideDto: import("@sinclair/typebox").TObject<{
|
373
378
|
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
379
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
380
|
+
howToSteps: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
374
381
|
depositUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
375
382
|
explorerAddress: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
376
383
|
action: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
|
@@ -390,6 +397,8 @@ export declare const OpportunityDeleteOverrideDto: import("@sinclair/typebox").T
|
|
390
397
|
depositUrl: "depositUrl";
|
391
398
|
explorerAddress: "explorerAddress";
|
392
399
|
action: "action";
|
400
|
+
description: "description";
|
401
|
+
howToSteps: "howToSteps";
|
393
402
|
}>>;
|
394
403
|
export type GetOpportunitiesQueryModel = typeof GetOpportunitiesQueryDto.static;
|
395
404
|
export type GetOpportunityQueryModel = typeof GetOpportunityQueryDto.static;
|
@@ -13,6 +13,8 @@ export const OpportunityResourceDto = t.Object({
|
|
13
13
|
type: t.String(),
|
14
14
|
identifier: t.String(),
|
15
15
|
name: t.String(),
|
16
|
+
description: t.Optional(t.String()),
|
17
|
+
howToSteps: t.Optional(t.Array(t.String())),
|
16
18
|
status: t.String(),
|
17
19
|
action: t.String(),
|
18
20
|
tvl: t.Number(),
|
@@ -114,6 +116,8 @@ export const OpportunityAggregateFieldDto = t.Object({
|
|
114
116
|
export const OpportunityIdDto = t.Object({ id: t.String() });
|
115
117
|
export const OpportunityOverrideDto = t.Object({
|
116
118
|
name: t.Optional(t.String()),
|
119
|
+
description: t.Optional(t.String()),
|
120
|
+
howToSteps: t.Optional(t.Array(t.String())),
|
117
121
|
depositUrl: t.Optional(t.String({ format: "uri" })),
|
118
122
|
explorerAddress: t.Optional(t.String({ format: "uri" })),
|
119
123
|
action: t.Optional(t.Enum(OpportunityAction)),
|