@merkl/api 0.20.154 → 0.20.156
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 +171 -3
- package/dist/src/index.d.ts +59 -1
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +15 -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 +34 -0
- package/dist/src/modules/v4/campaign/campaign.service.js +2 -1
- package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +10 -0
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +30 -1
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +11 -0
- package/dist/src/modules/v4/opportunity/opportunity.model.js +6 -0
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +23 -0
- package/dist/src/modules/v4/opportunity/opportunity.repository.js +4 -0
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +46 -1
- package/dist/src/modules/v4/opportunity/opportunity.service.js +44 -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 +59 -1
- package/dist/src/modules/v4/user/user.controller.d.ts +4 -0
- package/dist/src/scripts/fill-descriptions.d.ts +1 -0
- package/dist/src/scripts/fill-descriptions.js +101 -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;
|
@@ -232,6 +244,8 @@ export declare abstract class CampaignService {
|
|
232
244
|
price?: number | null | undefined;
|
233
245
|
})[];
|
234
246
|
mainProtocol: "splice" | "reserve" | "morpho" | "quickswap" | "euler" | "aura" | "poolside" | "gearbox" | "filament" | "fluid" | "compound" | "ionic" | "layerbank" | "moonwell" | "fraxlend" | "fenix" | "ra" | "syncswap" | "beefy" | "aerodrome" | "velodrome" | "curve" | "toros" | "akron" | "enzyme" | "dragonswap" | "koi" | "rfx" | "woofi" | "pendle" | "zkSwapThreePool" | "maha" | "tempest" | "holdstation" | "venus" | "reactor_fusion" | "vicuna" | "curveNPool" | "satlayer" | "veda" | "cian" | "concrete" | "hourglass" | "katana" | "gamma" | "stability" | "uniswap" | "ambient" | "arthswap" | "base-swap" | "camelot" | "crust" | "horiza" | "izumi" | "kim" | "pancake-swap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "zero" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "balancer" | "cross_curve" | "neptune" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "ironclad" | "sturdy" | "frax" | "silo" | "dolomite" | "badger" | "ajna" | "ion" | "eigenlayer" | "vest" | "zerolend" | "lnd" | "hyperdrive" | "oku" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "sonicmarket" | "angles" | "bunni" | "beratrax" | "yei" | "gammaswap" | "uranium" | undefined;
|
247
|
+
description: string;
|
248
|
+
howToSteps: string[];
|
235
249
|
depositUrl: string | undefined;
|
236
250
|
explorerAddress: string | undefined;
|
237
251
|
tags: string[];
|
@@ -243,6 +257,7 @@ export declare abstract class CampaignService {
|
|
243
257
|
static updateMetaData(campaign: Omit<UpdateMetaDataCampaignModel, "id">): Promise<{
|
244
258
|
id: string;
|
245
259
|
type: string;
|
260
|
+
description: string | null;
|
246
261
|
params: import("database/api/.generated/runtime/library").JsonValue;
|
247
262
|
subType: number | null;
|
248
263
|
computeChainId: number;
|
@@ -316,16 +331,19 @@ export declare abstract class CampaignService {
|
|
316
331
|
creatorId: string | null;
|
317
332
|
};
|
318
333
|
createdAt: string;
|
334
|
+
description: string | undefined;
|
319
335
|
Opportunity: {
|
320
336
|
id: string;
|
321
337
|
name: string;
|
322
338
|
type: string;
|
323
339
|
status: import("@db/api").$Enums.Status;
|
340
|
+
description: string;
|
324
341
|
tags: string[];
|
325
342
|
identifier: string;
|
326
343
|
action: import("@db/api").$Enums.OpportunityAction;
|
327
344
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
328
345
|
chainId: number;
|
346
|
+
howToSteps: string[];
|
329
347
|
depositUrl: string | null;
|
330
348
|
explorerAddress: string | null;
|
331
349
|
mainProtocolId: string | null;
|
@@ -390,16 +408,19 @@ export declare abstract class CampaignService {
|
|
390
408
|
creatorId: string | null;
|
391
409
|
};
|
392
410
|
createdAt: string;
|
411
|
+
description: string | undefined;
|
393
412
|
Opportunity: {
|
394
413
|
id: string;
|
395
414
|
name: string;
|
396
415
|
type: string;
|
397
416
|
status: import("@db/api").$Enums.Status;
|
417
|
+
description: string;
|
398
418
|
tags: string[];
|
399
419
|
identifier: string;
|
400
420
|
action: import("@db/api").$Enums.OpportunityAction;
|
401
421
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
402
422
|
chainId: number;
|
423
|
+
howToSteps: string[];
|
403
424
|
depositUrl: string | null;
|
404
425
|
explorerAddress: string | null;
|
405
426
|
mainProtocolId: string | null;
|
@@ -465,16 +486,19 @@ export declare abstract class CampaignService {
|
|
465
486
|
creatorId: string | null;
|
466
487
|
};
|
467
488
|
createdAt: string;
|
489
|
+
description: string | undefined;
|
468
490
|
Opportunity: {
|
469
491
|
id: string;
|
470
492
|
name: string;
|
471
493
|
type: string;
|
472
494
|
status: import("@db/api").$Enums.Status;
|
495
|
+
description: string;
|
473
496
|
tags: string[];
|
474
497
|
identifier: string;
|
475
498
|
action: import("@db/api").$Enums.OpportunityAction;
|
476
499
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
477
500
|
chainId: number;
|
501
|
+
howToSteps: string[];
|
478
502
|
depositUrl: string | null;
|
479
503
|
explorerAddress: string | null;
|
480
504
|
mainProtocolId: string | null;
|
@@ -540,16 +564,19 @@ export declare abstract class CampaignService {
|
|
540
564
|
creatorId: string | null;
|
541
565
|
};
|
542
566
|
createdAt: string;
|
567
|
+
description: string | undefined;
|
543
568
|
Opportunity: {
|
544
569
|
id: string;
|
545
570
|
name: string;
|
546
571
|
type: string;
|
547
572
|
status: import("@db/api").$Enums.Status;
|
573
|
+
description: string;
|
548
574
|
tags: string[];
|
549
575
|
identifier: string;
|
550
576
|
action: import("@db/api").$Enums.OpportunityAction;
|
551
577
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
552
578
|
chainId: number;
|
579
|
+
howToSteps: string[];
|
553
580
|
depositUrl: string | null;
|
554
581
|
explorerAddress: string | null;
|
555
582
|
mainProtocolId: string | null;
|
@@ -622,6 +649,7 @@ export declare abstract class CampaignService {
|
|
622
649
|
} & {
|
623
650
|
id: string;
|
624
651
|
type: string;
|
652
|
+
description: string | null;
|
625
653
|
params: import("database/api/.generated/runtime/library").JsonValue;
|
626
654
|
subType: number | null;
|
627
655
|
computeChainId: number;
|
@@ -669,11 +697,13 @@ export declare abstract class CampaignService {
|
|
669
697
|
name: string;
|
670
698
|
type: string;
|
671
699
|
status: import("@db/api").$Enums.Status;
|
700
|
+
description: string;
|
672
701
|
tags: string[];
|
673
702
|
identifier: string;
|
674
703
|
action: import("@db/api").$Enums.OpportunityAction;
|
675
704
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
676
705
|
chainId: number;
|
706
|
+
howToSteps: string[];
|
677
707
|
depositUrl: string | null;
|
678
708
|
explorerAddress: string | null;
|
679
709
|
mainProtocolId: string | null;
|
@@ -698,6 +728,7 @@ export declare abstract class CampaignService {
|
|
698
728
|
} & {
|
699
729
|
id: string;
|
700
730
|
type: string;
|
731
|
+
description: string | null;
|
701
732
|
params: import("database/api/.generated/runtime/library").JsonValue;
|
702
733
|
subType: number | null;
|
703
734
|
computeChainId: number;
|
@@ -824,16 +855,19 @@ export declare abstract class CampaignService {
|
|
824
855
|
creatorId: string | null;
|
825
856
|
};
|
826
857
|
createdAt: string;
|
858
|
+
description: string | undefined;
|
827
859
|
Opportunity: {
|
828
860
|
id: string;
|
829
861
|
name: string;
|
830
862
|
type: string;
|
831
863
|
status: import("@db/api").$Enums.Status;
|
864
|
+
description: string;
|
832
865
|
tags: string[];
|
833
866
|
identifier: string;
|
834
867
|
action: import("@db/api").$Enums.OpportunityAction;
|
835
868
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
836
869
|
chainId: number;
|
870
|
+
howToSteps: string[];
|
837
871
|
depositUrl: string | null;
|
838
872
|
explorerAddress: string | null;
|
839
873
|
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;
|
@@ -231,6 +234,8 @@ export declare const CampaignTestController: Elysia<"/campaigns", false, {
|
|
231
234
|
price?: number | null | undefined;
|
232
235
|
})[];
|
233
236
|
mainProtocol: "splice" | "reserve" | "morpho" | "quickswap" | "euler" | "aura" | "poolside" | "gearbox" | "filament" | "fluid" | "compound" | "ionic" | "layerbank" | "moonwell" | "fraxlend" | "fenix" | "ra" | "syncswap" | "beefy" | "aerodrome" | "velodrome" | "curve" | "toros" | "akron" | "enzyme" | "dragonswap" | "koi" | "rfx" | "woofi" | "pendle" | "zkSwapThreePool" | "maha" | "tempest" | "holdstation" | "venus" | "reactor_fusion" | "vicuna" | "curveNPool" | "satlayer" | "veda" | "cian" | "concrete" | "hourglass" | "katana" | "gamma" | "stability" | "uniswap" | "ambient" | "arthswap" | "base-swap" | "camelot" | "crust" | "horiza" | "izumi" | "kim" | "pancake-swap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "zero" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "balancer" | "cross_curve" | "neptune" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "ironclad" | "sturdy" | "frax" | "silo" | "dolomite" | "badger" | "ajna" | "ion" | "eigenlayer" | "vest" | "zerolend" | "lnd" | "hyperdrive" | "oku" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "sonicmarket" | "angles" | "bunni" | "beratrax" | "yei" | "gammaswap" | "uranium" | undefined;
|
237
|
+
description: string;
|
238
|
+
howToSteps: string[];
|
234
239
|
depositUrl: string | undefined;
|
235
240
|
explorerAddress: string | undefined;
|
236
241
|
tags: string[];
|
@@ -256,6 +261,7 @@ export declare const CampaignTestController: Elysia<"/campaigns", false, {
|
|
256
261
|
200: {
|
257
262
|
id: string;
|
258
263
|
type: string;
|
264
|
+
description: string | null;
|
259
265
|
params: import("database/api/.generated/runtime/library").JsonValue;
|
260
266
|
subType: number | null;
|
261
267
|
computeChainId: number;
|
@@ -299,11 +305,13 @@ export declare const CampaignTestController: Elysia<"/campaigns", false, {
|
|
299
305
|
name: string;
|
300
306
|
type: string;
|
301
307
|
status: import("@db/api").$Enums.Status;
|
308
|
+
description: string;
|
302
309
|
tags: string[];
|
303
310
|
identifier: string;
|
304
311
|
action: import("@db/api").$Enums.OpportunityAction;
|
305
312
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
306
313
|
chainId: number;
|
314
|
+
howToSteps: string[];
|
307
315
|
depositUrl: string | null;
|
308
316
|
explorerAddress: string | null;
|
309
317
|
mainProtocolId: string | null;
|
@@ -336,6 +344,8 @@ export declare const CampaignTestController: Elysia<"/campaigns", false, {
|
|
336
344
|
price?: number | null | undefined;
|
337
345
|
})[];
|
338
346
|
mainProtocol: "splice" | "reserve" | "morpho" | "quickswap" | "euler" | "aura" | "poolside" | "gearbox" | "filament" | "fluid" | "compound" | "ionic" | "layerbank" | "moonwell" | "fraxlend" | "fenix" | "ra" | "syncswap" | "beefy" | "aerodrome" | "velodrome" | "curve" | "toros" | "akron" | "enzyme" | "dragonswap" | "koi" | "rfx" | "woofi" | "pendle" | "zkSwapThreePool" | "maha" | "tempest" | "holdstation" | "venus" | "reactor_fusion" | "vicuna" | "curveNPool" | "satlayer" | "veda" | "cian" | "concrete" | "hourglass" | "katana" | "gamma" | "stability" | "uniswap" | "ambient" | "arthswap" | "base-swap" | "camelot" | "crust" | "horiza" | "izumi" | "kim" | "pancake-swap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "zero" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "balancer" | "cross_curve" | "neptune" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "ironclad" | "sturdy" | "frax" | "silo" | "dolomite" | "badger" | "ajna" | "ion" | "eigenlayer" | "vest" | "zerolend" | "lnd" | "hyperdrive" | "oku" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "sonicmarket" | "angles" | "bunni" | "beratrax" | "yei" | "gammaswap" | "uranium" | undefined;
|
347
|
+
description: string;
|
348
|
+
howToSteps: string[];
|
339
349
|
depositUrl: string | undefined;
|
340
350
|
explorerAddress: string | undefined;
|
341
351
|
tags: string[];
|
@@ -17,7 +17,9 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
17
17
|
post: {
|
18
18
|
body: {
|
19
19
|
name?: string | undefined;
|
20
|
+
description?: string | undefined;
|
20
21
|
tags?: string[] | undefined;
|
22
|
+
howToSteps?: string[] | undefined;
|
21
23
|
depositUrl?: string | undefined;
|
22
24
|
explorerAddress?: string | undefined;
|
23
25
|
protocols?: string[] | undefined;
|
@@ -67,11 +69,13 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
67
69
|
name: string;
|
68
70
|
type: string;
|
69
71
|
status: import("@db/api").$Enums.Status;
|
72
|
+
description: string;
|
70
73
|
tags: string[];
|
71
74
|
identifier: string;
|
72
75
|
action: import("@db/api").$Enums.OpportunityAction;
|
73
76
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
74
77
|
chainId: number;
|
78
|
+
howToSteps: string[];
|
75
79
|
depositUrl: string | null;
|
76
80
|
explorerAddress: string | null;
|
77
81
|
mainProtocolId: string | null;
|
@@ -91,7 +95,9 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
91
95
|
patch: {
|
92
96
|
body: {
|
93
97
|
name?: string | undefined;
|
98
|
+
description?: string | undefined;
|
94
99
|
action?: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID" | undefined;
|
100
|
+
howToSteps?: string[] | undefined;
|
95
101
|
depositUrl?: string | undefined;
|
96
102
|
explorerAddress?: string | undefined;
|
97
103
|
};
|
@@ -108,11 +114,13 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
108
114
|
name: string;
|
109
115
|
type: string;
|
110
116
|
status: import("@db/api").$Enums.Status;
|
117
|
+
description: string;
|
111
118
|
tags: string[];
|
112
119
|
identifier: string;
|
113
120
|
action: import("@db/api").$Enums.OpportunityAction;
|
114
121
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
115
122
|
chainId: number;
|
123
|
+
howToSteps: string[];
|
116
124
|
depositUrl: string | null;
|
117
125
|
explorerAddress: string | null;
|
118
126
|
mainProtocolId: string | null;
|
@@ -131,7 +139,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
131
139
|
":id": {
|
132
140
|
override: {
|
133
141
|
delete: {
|
134
|
-
body: ("name" | "action" | "depositUrl" | "explorerAddress")[];
|
142
|
+
body: ("name" | "description" | "action" | "howToSteps" | "depositUrl" | "explorerAddress")[];
|
135
143
|
params: {
|
136
144
|
id: string;
|
137
145
|
};
|
@@ -169,11 +177,13 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
169
177
|
name: string;
|
170
178
|
type: string;
|
171
179
|
status: import("@db/api").$Enums.Status;
|
180
|
+
description: string;
|
172
181
|
tags: string[];
|
173
182
|
identifier: string;
|
174
183
|
action: import("@db/api").$Enums.OpportunityAction;
|
175
184
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
176
185
|
chainId: number;
|
186
|
+
howToSteps: string[];
|
177
187
|
depositUrl: string | null;
|
178
188
|
explorerAddress: string | null;
|
179
189
|
mainProtocolId: string | null;
|
@@ -206,6 +216,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
206
216
|
price?: number | null | undefined;
|
207
217
|
})[];
|
208
218
|
mainProtocol: "splice" | "reserve" | "morpho" | "quickswap" | "euler" | "aura" | "poolside" | "gearbox" | "filament" | "fluid" | "compound" | "ionic" | "layerbank" | "moonwell" | "fraxlend" | "fenix" | "ra" | "syncswap" | "beefy" | "aerodrome" | "velodrome" | "curve" | "toros" | "akron" | "enzyme" | "dragonswap" | "koi" | "rfx" | "woofi" | "pendle" | "zkSwapThreePool" | "maha" | "tempest" | "holdstation" | "venus" | "reactor_fusion" | "vicuna" | "curveNPool" | "satlayer" | "veda" | "cian" | "concrete" | "hourglass" | "katana" | "gamma" | "stability" | "uniswap" | "ambient" | "arthswap" | "base-swap" | "camelot" | "crust" | "horiza" | "izumi" | "kim" | "pancake-swap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "zero" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "balancer" | "cross_curve" | "neptune" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "ironclad" | "sturdy" | "frax" | "silo" | "dolomite" | "badger" | "ajna" | "ion" | "eigenlayer" | "vest" | "zerolend" | "lnd" | "hyperdrive" | "oku" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "sonicmarket" | "angles" | "bunni" | "beratrax" | "yei" | "gammaswap" | "uranium" | undefined;
|
219
|
+
description: string;
|
220
|
+
howToSteps: string[];
|
209
221
|
depositUrl: string | undefined;
|
210
222
|
explorerAddress: string | undefined;
|
211
223
|
tags: string[];
|
@@ -258,11 +270,13 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
258
270
|
name: string;
|
259
271
|
type: string;
|
260
272
|
status: import("@db/api").$Enums.Status;
|
273
|
+
description: string;
|
261
274
|
tags: string[];
|
262
275
|
identifier: string;
|
263
276
|
action: import("@db/api").$Enums.OpportunityAction;
|
264
277
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
265
278
|
chainId: number;
|
279
|
+
howToSteps: string[];
|
266
280
|
depositUrl: string | null;
|
267
281
|
explorerAddress: string | null;
|
268
282
|
mainProtocolId: string | null;
|
@@ -295,6 +309,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
295
309
|
price?: number | null | undefined;
|
296
310
|
})[];
|
297
311
|
mainProtocol: "splice" | "reserve" | "morpho" | "quickswap" | "euler" | "aura" | "poolside" | "gearbox" | "filament" | "fluid" | "compound" | "ionic" | "layerbank" | "moonwell" | "fraxlend" | "fenix" | "ra" | "syncswap" | "beefy" | "aerodrome" | "velodrome" | "curve" | "toros" | "akron" | "enzyme" | "dragonswap" | "koi" | "rfx" | "woofi" | "pendle" | "zkSwapThreePool" | "maha" | "tempest" | "holdstation" | "venus" | "reactor_fusion" | "vicuna" | "curveNPool" | "satlayer" | "veda" | "cian" | "concrete" | "hourglass" | "katana" | "gamma" | "stability" | "uniswap" | "ambient" | "arthswap" | "base-swap" | "camelot" | "crust" | "horiza" | "izumi" | "kim" | "pancake-swap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "zero" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "balancer" | "cross_curve" | "neptune" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "ironclad" | "sturdy" | "frax" | "silo" | "dolomite" | "badger" | "ajna" | "ion" | "eigenlayer" | "vest" | "zerolend" | "lnd" | "hyperdrive" | "oku" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "sonicmarket" | "angles" | "bunni" | "beratrax" | "yei" | "gammaswap" | "uranium" | undefined;
|
312
|
+
description: string;
|
313
|
+
howToSteps: string[];
|
298
314
|
depositUrl: string | undefined;
|
299
315
|
explorerAddress: string | undefined;
|
300
316
|
tags: string[];
|
@@ -440,16 +456,19 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
440
456
|
creatorId: string | null;
|
441
457
|
};
|
442
458
|
createdAt: string;
|
459
|
+
description: string | undefined;
|
443
460
|
Opportunity: {
|
444
461
|
id: string;
|
445
462
|
name: string;
|
446
463
|
type: string;
|
447
464
|
status: import("@db/api").$Enums.Status;
|
465
|
+
description: string;
|
448
466
|
tags: string[];
|
449
467
|
identifier: string;
|
450
468
|
action: import("@db/api").$Enums.OpportunityAction;
|
451
469
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
452
470
|
chainId: number;
|
471
|
+
howToSteps: string[];
|
453
472
|
depositUrl: string | null;
|
454
473
|
explorerAddress: string | null;
|
455
474
|
mainProtocolId: string | null;
|
@@ -505,10 +524,12 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
505
524
|
name: string;
|
506
525
|
type: string;
|
507
526
|
status: import("@db/api").$Enums.Status;
|
527
|
+
description: string;
|
508
528
|
tags: string[];
|
509
529
|
identifier: string;
|
510
530
|
action: import("@db/api").$Enums.OpportunityAction;
|
511
531
|
chainId: number;
|
532
|
+
howToSteps: string[];
|
512
533
|
tvl: number;
|
513
534
|
dailyRewards: number;
|
514
535
|
}[];
|
@@ -644,6 +665,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
644
665
|
isPoint: boolean;
|
645
666
|
isPreTGE: boolean;
|
646
667
|
}[];
|
668
|
+
description: string;
|
647
669
|
tags: string[];
|
648
670
|
identifier: string;
|
649
671
|
chain: {
|
@@ -653,6 +675,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
653
675
|
};
|
654
676
|
action: string;
|
655
677
|
chainId: number;
|
678
|
+
howToSteps: string[];
|
656
679
|
tvl: number;
|
657
680
|
apr: number;
|
658
681
|
dailyRewards: number;
|
@@ -781,6 +804,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
781
804
|
isPoint: boolean;
|
782
805
|
isPreTGE: boolean;
|
783
806
|
}[];
|
807
|
+
description: string;
|
784
808
|
tags: string[];
|
785
809
|
identifier: string;
|
786
810
|
chain: {
|
@@ -790,11 +814,13 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
790
814
|
};
|
791
815
|
action: string;
|
792
816
|
chainId: number;
|
817
|
+
howToSteps: string[];
|
793
818
|
tvl: number;
|
794
819
|
apr: number;
|
795
820
|
dailyRewards: number;
|
796
821
|
lastCampaignCreatedAt: string;
|
797
822
|
campaigns: {
|
823
|
+
description?: string | undefined;
|
798
824
|
creator?: {
|
799
825
|
tags?: string[] | undefined;
|
800
826
|
creatorId?: string | null | undefined;
|
@@ -954,6 +980,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
954
980
|
isPoint: boolean;
|
955
981
|
isPreTGE: boolean;
|
956
982
|
}[];
|
983
|
+
description: string;
|
957
984
|
tags: string[];
|
958
985
|
identifier: string;
|
959
986
|
chain: {
|
@@ -963,11 +990,13 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
963
990
|
};
|
964
991
|
action: string;
|
965
992
|
chainId: number;
|
993
|
+
howToSteps: string[];
|
966
994
|
tvl: number;
|
967
995
|
apr: number;
|
968
996
|
dailyRewards: number;
|
969
997
|
lastCampaignCreatedAt: string;
|
970
998
|
campaigns: {
|
999
|
+
description?: string | undefined;
|
971
1000
|
creator?: {
|
972
1001
|
tags?: string[] | undefined;
|
973
1002
|
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").TString;
|
40
|
+
howToSteps: 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").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").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;
|
@@ -353,6 +358,8 @@ export declare const CreateOpportunityDto: import("@sinclair/typebox").TObject<{
|
|
353
358
|
SWAP: "SWAP";
|
354
359
|
INVALID: "INVALID";
|
355
360
|
}>;
|
361
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
362
|
+
howToSteps: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
356
363
|
tokens: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
357
364
|
address: import("@sinclair/typebox").TString;
|
358
365
|
chainId: import("@sinclair/typebox").TNumber;
|
@@ -371,6 +378,8 @@ export declare const OpportunityIdDto: import("@sinclair/typebox").TObject<{
|
|
371
378
|
}>;
|
372
379
|
export declare const OpportunityOverrideDto: import("@sinclair/typebox").TObject<{
|
373
380
|
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
381
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
382
|
+
howToSteps: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
374
383
|
depositUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
375
384
|
explorerAddress: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
376
385
|
action: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
|
@@ -390,6 +399,8 @@ export declare const OpportunityDeleteOverrideDto: import("@sinclair/typebox").T
|
|
390
399
|
depositUrl: "depositUrl";
|
391
400
|
explorerAddress: "explorerAddress";
|
392
401
|
action: "action";
|
402
|
+
description: "description";
|
403
|
+
howToSteps: "howToSteps";
|
393
404
|
}>>;
|
394
405
|
export type GetOpportunitiesQueryModel = typeof GetOpportunitiesQueryDto.static;
|
395
406
|
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.String(),
|
17
|
+
howToSteps: t.Array(t.String()),
|
16
18
|
status: t.String(),
|
17
19
|
action: t.String(),
|
18
20
|
tvl: t.Number(),
|
@@ -101,6 +103,8 @@ export const CreateOpportunityDto = t.Object({
|
|
101
103
|
name: t.Optional(t.String()),
|
102
104
|
status: t.Enum(Status),
|
103
105
|
action: t.Enum(OpportunityAction),
|
106
|
+
description: t.Optional(t.String()),
|
107
|
+
howToSteps: t.Optional(t.Array(t.String())),
|
104
108
|
tokens: t.Array(TokenDto),
|
105
109
|
protocols: t.Optional(t.Array(t.String())),
|
106
110
|
mainProtocol: t.Optional(t.String()),
|
@@ -114,6 +118,8 @@ export const OpportunityAggregateFieldDto = t.Object({
|
|
114
118
|
export const OpportunityIdDto = t.Object({ id: t.String() });
|
115
119
|
export const OpportunityOverrideDto = t.Object({
|
116
120
|
name: t.Optional(t.String()),
|
121
|
+
description: t.Optional(t.String()),
|
122
|
+
howToSteps: t.Optional(t.Array(t.String())),
|
117
123
|
depositUrl: t.Optional(t.String({ format: "uri" })),
|
118
124
|
explorerAddress: t.Optional(t.String({ format: "uri" })),
|
119
125
|
action: t.Optional(t.Enum(OpportunityAction)),
|