@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
package/dist/src/index.d.ts
CHANGED
@@ -162,7 +162,9 @@ declare const app: Elysia<"", false, {
|
|
162
162
|
post: {
|
163
163
|
body: {
|
164
164
|
name?: string | undefined;
|
165
|
+
description?: string | undefined;
|
165
166
|
tags?: string[] | undefined;
|
167
|
+
howToSteps?: string[] | undefined;
|
166
168
|
depositUrl?: string | undefined;
|
167
169
|
explorerAddress?: string | undefined;
|
168
170
|
protocols?: string[] | undefined;
|
@@ -212,11 +214,13 @@ declare const app: Elysia<"", false, {
|
|
212
214
|
name: string;
|
213
215
|
type: string;
|
214
216
|
status: import("@db/api").$Enums.Status;
|
217
|
+
description: string;
|
215
218
|
tags: string[];
|
216
219
|
identifier: string;
|
217
220
|
action: import("@db/api").$Enums.OpportunityAction;
|
218
221
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
219
222
|
chainId: number;
|
223
|
+
howToSteps: string[];
|
220
224
|
depositUrl: string | null;
|
221
225
|
explorerAddress: string | null;
|
222
226
|
mainProtocolId: string | null;
|
@@ -236,7 +240,9 @@ declare const app: Elysia<"", false, {
|
|
236
240
|
patch: {
|
237
241
|
body: {
|
238
242
|
name?: string | undefined;
|
243
|
+
description?: string | undefined;
|
239
244
|
action?: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID" | undefined;
|
245
|
+
howToSteps?: string[] | undefined;
|
240
246
|
depositUrl?: string | undefined;
|
241
247
|
explorerAddress?: string | undefined;
|
242
248
|
};
|
@@ -253,11 +259,13 @@ declare const app: Elysia<"", false, {
|
|
253
259
|
name: string;
|
254
260
|
type: string;
|
255
261
|
status: import("@db/api").$Enums.Status;
|
262
|
+
description: string;
|
256
263
|
tags: string[];
|
257
264
|
identifier: string;
|
258
265
|
action: import("@db/api").$Enums.OpportunityAction;
|
259
266
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
260
267
|
chainId: number;
|
268
|
+
howToSteps: string[];
|
261
269
|
depositUrl: string | null;
|
262
270
|
explorerAddress: string | null;
|
263
271
|
mainProtocolId: string | null;
|
@@ -276,7 +284,7 @@ declare const app: Elysia<"", false, {
|
|
276
284
|
":id": {
|
277
285
|
override: {
|
278
286
|
delete: {
|
279
|
-
body: ("name" | "action" | "depositUrl" | "explorerAddress")[];
|
287
|
+
body: ("name" | "description" | "action" | "howToSteps" | "depositUrl" | "explorerAddress")[];
|
280
288
|
params: {
|
281
289
|
id: string;
|
282
290
|
};
|
@@ -314,11 +322,13 @@ declare const app: Elysia<"", false, {
|
|
314
322
|
name: string;
|
315
323
|
type: string;
|
316
324
|
status: import("@db/api").$Enums.Status;
|
325
|
+
description: string;
|
317
326
|
tags: string[];
|
318
327
|
identifier: string;
|
319
328
|
action: import("@db/api").$Enums.OpportunityAction;
|
320
329
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
321
330
|
chainId: number;
|
331
|
+
howToSteps: string[];
|
322
332
|
depositUrl: string | null;
|
323
333
|
explorerAddress: string | null;
|
324
334
|
mainProtocolId: string | null;
|
@@ -351,6 +361,8 @@ declare const app: Elysia<"", false, {
|
|
351
361
|
price?: number | null | undefined;
|
352
362
|
})[];
|
353
363
|
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;
|
364
|
+
description: string;
|
365
|
+
howToSteps: string[];
|
354
366
|
depositUrl: string | undefined;
|
355
367
|
explorerAddress: string | undefined;
|
356
368
|
tags: string[];
|
@@ -403,11 +415,13 @@ declare const app: Elysia<"", false, {
|
|
403
415
|
name: string;
|
404
416
|
type: string;
|
405
417
|
status: import("@db/api").$Enums.Status;
|
418
|
+
description: string;
|
406
419
|
tags: string[];
|
407
420
|
identifier: string;
|
408
421
|
action: import("@db/api").$Enums.OpportunityAction;
|
409
422
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
410
423
|
chainId: number;
|
424
|
+
howToSteps: string[];
|
411
425
|
depositUrl: string | null;
|
412
426
|
explorerAddress: string | null;
|
413
427
|
mainProtocolId: string | null;
|
@@ -440,6 +454,8 @@ declare const app: Elysia<"", false, {
|
|
440
454
|
price?: number | null | undefined;
|
441
455
|
})[];
|
442
456
|
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;
|
457
|
+
description: string;
|
458
|
+
howToSteps: string[];
|
443
459
|
depositUrl: string | undefined;
|
444
460
|
explorerAddress: string | undefined;
|
445
461
|
tags: string[];
|
@@ -585,16 +601,19 @@ declare const app: Elysia<"", false, {
|
|
585
601
|
creatorId: string | null;
|
586
602
|
};
|
587
603
|
createdAt: string;
|
604
|
+
description: string | undefined;
|
588
605
|
Opportunity: {
|
589
606
|
id: string;
|
590
607
|
name: string;
|
591
608
|
type: string;
|
592
609
|
status: import("@db/api").$Enums.Status;
|
610
|
+
description: string;
|
593
611
|
tags: string[];
|
594
612
|
identifier: string;
|
595
613
|
action: import("@db/api").$Enums.OpportunityAction;
|
596
614
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
597
615
|
chainId: number;
|
616
|
+
howToSteps: string[];
|
598
617
|
depositUrl: string | null;
|
599
618
|
explorerAddress: string | null;
|
600
619
|
mainProtocolId: string | null;
|
@@ -650,10 +669,12 @@ declare const app: Elysia<"", false, {
|
|
650
669
|
name: string;
|
651
670
|
type: string;
|
652
671
|
status: import("@db/api").$Enums.Status;
|
672
|
+
description: string;
|
653
673
|
tags: string[];
|
654
674
|
identifier: string;
|
655
675
|
action: import("@db/api").$Enums.OpportunityAction;
|
656
676
|
chainId: number;
|
677
|
+
howToSteps: string[];
|
657
678
|
tvl: number;
|
658
679
|
dailyRewards: number;
|
659
680
|
}[];
|
@@ -789,6 +810,7 @@ declare const app: Elysia<"", false, {
|
|
789
810
|
isPoint: boolean;
|
790
811
|
isPreTGE: boolean;
|
791
812
|
}[];
|
813
|
+
description: string;
|
792
814
|
tags: string[];
|
793
815
|
identifier: string;
|
794
816
|
chain: {
|
@@ -798,6 +820,7 @@ declare const app: Elysia<"", false, {
|
|
798
820
|
};
|
799
821
|
action: string;
|
800
822
|
chainId: number;
|
823
|
+
howToSteps: string[];
|
801
824
|
tvl: number;
|
802
825
|
apr: number;
|
803
826
|
dailyRewards: number;
|
@@ -926,6 +949,7 @@ declare const app: Elysia<"", false, {
|
|
926
949
|
isPoint: boolean;
|
927
950
|
isPreTGE: boolean;
|
928
951
|
}[];
|
952
|
+
description: string;
|
929
953
|
tags: string[];
|
930
954
|
identifier: string;
|
931
955
|
chain: {
|
@@ -935,11 +959,13 @@ declare const app: Elysia<"", false, {
|
|
935
959
|
};
|
936
960
|
action: string;
|
937
961
|
chainId: number;
|
962
|
+
howToSteps: string[];
|
938
963
|
tvl: number;
|
939
964
|
apr: number;
|
940
965
|
dailyRewards: number;
|
941
966
|
lastCampaignCreatedAt: string;
|
942
967
|
campaigns: {
|
968
|
+
description?: string | undefined;
|
943
969
|
creator?: {
|
944
970
|
tags?: string[] | undefined;
|
945
971
|
creatorId?: string | null | undefined;
|
@@ -1099,6 +1125,7 @@ declare const app: Elysia<"", false, {
|
|
1099
1125
|
isPoint: boolean;
|
1100
1126
|
isPreTGE: boolean;
|
1101
1127
|
}[];
|
1128
|
+
description: string;
|
1102
1129
|
tags: string[];
|
1103
1130
|
identifier: string;
|
1104
1131
|
chain: {
|
@@ -1108,11 +1135,13 @@ declare const app: Elysia<"", false, {
|
|
1108
1135
|
};
|
1109
1136
|
action: string;
|
1110
1137
|
chainId: number;
|
1138
|
+
howToSteps: string[];
|
1111
1139
|
tvl: number;
|
1112
1140
|
apr: number;
|
1113
1141
|
dailyRewards: number;
|
1114
1142
|
lastCampaignCreatedAt: string;
|
1115
1143
|
campaigns: {
|
1144
|
+
description?: string | undefined;
|
1116
1145
|
creator?: {
|
1117
1146
|
tags?: string[] | undefined;
|
1118
1147
|
creatorId?: string | null | undefined;
|
@@ -1341,6 +1370,7 @@ declare const app: Elysia<"", false, {
|
|
1341
1370
|
200: {
|
1342
1371
|
id: string;
|
1343
1372
|
type: string;
|
1373
|
+
description: string | null;
|
1344
1374
|
params: import("database/api/.generated/runtime/library").JsonValue;
|
1345
1375
|
subType: number | null;
|
1346
1376
|
computeChainId: number;
|
@@ -1384,11 +1414,13 @@ declare const app: Elysia<"", false, {
|
|
1384
1414
|
name: string;
|
1385
1415
|
type: string;
|
1386
1416
|
status: import("@db/api").$Enums.Status;
|
1417
|
+
description: string;
|
1387
1418
|
tags: string[];
|
1388
1419
|
identifier: string;
|
1389
1420
|
action: import("@db/api").$Enums.OpportunityAction;
|
1390
1421
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
1391
1422
|
chainId: number;
|
1423
|
+
howToSteps: string[];
|
1392
1424
|
depositUrl: string | null;
|
1393
1425
|
explorerAddress: string | null;
|
1394
1426
|
mainProtocolId: string | null;
|
@@ -1421,6 +1453,8 @@ declare const app: Elysia<"", false, {
|
|
1421
1453
|
price?: number | null | undefined;
|
1422
1454
|
})[];
|
1423
1455
|
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;
|
1456
|
+
description: string;
|
1457
|
+
howToSteps: string[];
|
1424
1458
|
depositUrl: string | undefined;
|
1425
1459
|
explorerAddress: string | undefined;
|
1426
1460
|
tags: string[];
|
@@ -1499,6 +1533,7 @@ declare const app: Elysia<"", false, {
|
|
1499
1533
|
200: {
|
1500
1534
|
id: string;
|
1501
1535
|
type: string;
|
1536
|
+
description: string | null;
|
1502
1537
|
params: import("database/api/.generated/runtime/library").JsonValue;
|
1503
1538
|
subType: number | null;
|
1504
1539
|
computeChainId: number;
|
@@ -1593,16 +1628,19 @@ declare const app: Elysia<"", false, {
|
|
1593
1628
|
creatorId: string | null;
|
1594
1629
|
};
|
1595
1630
|
createdAt: string;
|
1631
|
+
description: string | undefined;
|
1596
1632
|
Opportunity: {
|
1597
1633
|
id: string;
|
1598
1634
|
name: string;
|
1599
1635
|
type: string;
|
1600
1636
|
status: import("@db/api").$Enums.Status;
|
1637
|
+
description: string;
|
1601
1638
|
tags: string[];
|
1602
1639
|
identifier: string;
|
1603
1640
|
action: import("@db/api").$Enums.OpportunityAction;
|
1604
1641
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
1605
1642
|
chainId: number;
|
1643
|
+
howToSteps: string[];
|
1606
1644
|
depositUrl: string | null;
|
1607
1645
|
explorerAddress: string | null;
|
1608
1646
|
mainProtocolId: string | null;
|
@@ -1680,16 +1718,19 @@ declare const app: Elysia<"", false, {
|
|
1680
1718
|
creatorId: string | null;
|
1681
1719
|
};
|
1682
1720
|
createdAt: string;
|
1721
|
+
description: string | undefined;
|
1683
1722
|
Opportunity: {
|
1684
1723
|
id: string;
|
1685
1724
|
name: string;
|
1686
1725
|
type: string;
|
1687
1726
|
status: import("@db/api").$Enums.Status;
|
1727
|
+
description: string;
|
1688
1728
|
tags: string[];
|
1689
1729
|
identifier: string;
|
1690
1730
|
action: import("@db/api").$Enums.OpportunityAction;
|
1691
1731
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
1692
1732
|
chainId: number;
|
1733
|
+
howToSteps: string[];
|
1693
1734
|
depositUrl: string | null;
|
1694
1735
|
explorerAddress: string | null;
|
1695
1736
|
mainProtocolId: string | null;
|
@@ -1883,16 +1924,19 @@ declare const app: Elysia<"", false, {
|
|
1883
1924
|
creatorId: string | null;
|
1884
1925
|
};
|
1885
1926
|
createdAt: string;
|
1927
|
+
description: string | undefined;
|
1886
1928
|
Opportunity: {
|
1887
1929
|
id: string;
|
1888
1930
|
name: string;
|
1889
1931
|
type: string;
|
1890
1932
|
status: import("@db/api").$Enums.Status;
|
1933
|
+
description: string;
|
1891
1934
|
tags: string[];
|
1892
1935
|
identifier: string;
|
1893
1936
|
action: import("@db/api").$Enums.OpportunityAction;
|
1894
1937
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
1895
1938
|
chainId: number;
|
1939
|
+
howToSteps: string[];
|
1896
1940
|
depositUrl: string | null;
|
1897
1941
|
explorerAddress: string | null;
|
1898
1942
|
mainProtocolId: string | null;
|
@@ -2222,6 +2266,7 @@ declare const app: Elysia<"", false, {
|
|
2222
2266
|
200: {
|
2223
2267
|
id: string;
|
2224
2268
|
type: string;
|
2269
|
+
description: string | null;
|
2225
2270
|
params: import("database/api/.generated/runtime/library").JsonValue;
|
2226
2271
|
subType: number | null;
|
2227
2272
|
computeChainId: number;
|
@@ -2265,11 +2310,13 @@ declare const app: Elysia<"", false, {
|
|
2265
2310
|
name: string;
|
2266
2311
|
type: string;
|
2267
2312
|
status: import("@db/api").$Enums.Status;
|
2313
|
+
description: string;
|
2268
2314
|
tags: string[];
|
2269
2315
|
identifier: string;
|
2270
2316
|
action: import("@db/api").$Enums.OpportunityAction;
|
2271
2317
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
2272
2318
|
chainId: number;
|
2319
|
+
howToSteps: string[];
|
2273
2320
|
depositUrl: string | null;
|
2274
2321
|
explorerAddress: string | null;
|
2275
2322
|
mainProtocolId: string | null;
|
@@ -2302,6 +2349,8 @@ declare const app: Elysia<"", false, {
|
|
2302
2349
|
price?: number | null | undefined;
|
2303
2350
|
})[];
|
2304
2351
|
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;
|
2352
|
+
description: string;
|
2353
|
+
howToSteps: string[];
|
2305
2354
|
depositUrl: string | undefined;
|
2306
2355
|
explorerAddress: string | undefined;
|
2307
2356
|
tags: string[];
|
@@ -2327,6 +2376,7 @@ declare const app: Elysia<"", false, {
|
|
2327
2376
|
200: {
|
2328
2377
|
id: string;
|
2329
2378
|
type: string;
|
2379
|
+
description: string | null;
|
2330
2380
|
params: import("database/api/.generated/runtime/library").JsonValue;
|
2331
2381
|
subType: number | null;
|
2332
2382
|
computeChainId: number;
|
@@ -2370,11 +2420,13 @@ declare const app: Elysia<"", false, {
|
|
2370
2420
|
name: string;
|
2371
2421
|
type: string;
|
2372
2422
|
status: import("@db/api").$Enums.Status;
|
2423
|
+
description: string;
|
2373
2424
|
tags: string[];
|
2374
2425
|
identifier: string;
|
2375
2426
|
action: import("@db/api").$Enums.OpportunityAction;
|
2376
2427
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
2377
2428
|
chainId: number;
|
2429
|
+
howToSteps: string[];
|
2378
2430
|
depositUrl: string | null;
|
2379
2431
|
explorerAddress: string | null;
|
2380
2432
|
mainProtocolId: string | null;
|
@@ -2407,6 +2459,8 @@ declare const app: Elysia<"", false, {
|
|
2407
2459
|
price?: number | null | undefined;
|
2408
2460
|
})[];
|
2409
2461
|
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;
|
2462
|
+
description: string;
|
2463
|
+
howToSteps: string[];
|
2410
2464
|
depositUrl: string | undefined;
|
2411
2465
|
explorerAddress: string | undefined;
|
2412
2466
|
tags: string[];
|
@@ -4002,11 +4056,13 @@ declare const app: Elysia<"", false, {
|
|
4002
4056
|
name: string;
|
4003
4057
|
type: string;
|
4004
4058
|
status: import("@db/api").$Enums.Status;
|
4059
|
+
description: string;
|
4005
4060
|
tags: string[];
|
4006
4061
|
identifier: string;
|
4007
4062
|
action: import("@db/api").$Enums.OpportunityAction;
|
4008
4063
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
4009
4064
|
chainId: number;
|
4065
|
+
howToSteps: string[];
|
4010
4066
|
depositUrl: string | null;
|
4011
4067
|
explorerAddress: string | null;
|
4012
4068
|
mainProtocolId: string | null;
|
@@ -4125,11 +4181,13 @@ declare const app: Elysia<"", false, {
|
|
4125
4181
|
name: string;
|
4126
4182
|
type: string;
|
4127
4183
|
status: import("@db/api").$Enums.Status;
|
4184
|
+
description: string;
|
4128
4185
|
tags: string[];
|
4129
4186
|
identifier: string;
|
4130
4187
|
action: import("@db/api").$Enums.OpportunityAction;
|
4131
4188
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
4132
4189
|
chainId: number;
|
4190
|
+
howToSteps: string[];
|
4133
4191
|
depositUrl: string | null;
|
4134
4192
|
explorerAddress: string | null;
|
4135
4193
|
mainProtocolId: string | null;
|
@@ -40,6 +40,7 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
40
40
|
200: {
|
41
41
|
id: string;
|
42
42
|
type: string;
|
43
|
+
description: string | null;
|
43
44
|
params: import("database/api/.generated/runtime/library").JsonValue;
|
44
45
|
subType: number | null;
|
45
46
|
computeChainId: number;
|
@@ -83,11 +84,13 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
83
84
|
name: string;
|
84
85
|
type: string;
|
85
86
|
status: import("@db/api").$Enums.Status;
|
87
|
+
description: string;
|
86
88
|
tags: string[];
|
87
89
|
identifier: string;
|
88
90
|
action: import("@db/api").$Enums.OpportunityAction;
|
89
91
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
90
92
|
chainId: number;
|
93
|
+
howToSteps: string[];
|
91
94
|
depositUrl: string | null;
|
92
95
|
explorerAddress: string | null;
|
93
96
|
mainProtocolId: string | null;
|
@@ -120,6 +123,8 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
120
123
|
price?: number | null | undefined;
|
121
124
|
})[];
|
122
125
|
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;
|
126
|
+
description: string;
|
127
|
+
howToSteps: string[];
|
123
128
|
depositUrl: string | undefined;
|
124
129
|
explorerAddress: string | undefined;
|
125
130
|
tags: string[];
|
@@ -198,6 +203,7 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
198
203
|
200: {
|
199
204
|
id: string;
|
200
205
|
type: string;
|
206
|
+
description: string | null;
|
201
207
|
params: import("database/api/.generated/runtime/library").JsonValue;
|
202
208
|
subType: number | null;
|
203
209
|
computeChainId: number;
|
@@ -292,16 +298,19 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
292
298
|
creatorId: string | null;
|
293
299
|
};
|
294
300
|
createdAt: string;
|
301
|
+
description: string | undefined;
|
295
302
|
Opportunity: {
|
296
303
|
id: string;
|
297
304
|
name: string;
|
298
305
|
type: string;
|
299
306
|
status: import("@db/api").$Enums.Status;
|
307
|
+
description: string;
|
300
308
|
tags: string[];
|
301
309
|
identifier: string;
|
302
310
|
action: import("@db/api").$Enums.OpportunityAction;
|
303
311
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
304
312
|
chainId: number;
|
313
|
+
howToSteps: string[];
|
305
314
|
depositUrl: string | null;
|
306
315
|
explorerAddress: string | null;
|
307
316
|
mainProtocolId: string | null;
|
@@ -379,16 +388,19 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
379
388
|
creatorId: string | null;
|
380
389
|
};
|
381
390
|
createdAt: string;
|
391
|
+
description: string | undefined;
|
382
392
|
Opportunity: {
|
383
393
|
id: string;
|
384
394
|
name: string;
|
385
395
|
type: string;
|
386
396
|
status: import("@db/api").$Enums.Status;
|
397
|
+
description: string;
|
387
398
|
tags: string[];
|
388
399
|
identifier: string;
|
389
400
|
action: import("@db/api").$Enums.OpportunityAction;
|
390
401
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
391
402
|
chainId: number;
|
403
|
+
howToSteps: string[];
|
392
404
|
depositUrl: string | null;
|
393
405
|
explorerAddress: string | null;
|
394
406
|
mainProtocolId: string | null;
|
@@ -582,16 +594,19 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
582
594
|
creatorId: string | null;
|
583
595
|
};
|
584
596
|
createdAt: string;
|
597
|
+
description: string | undefined;
|
585
598
|
Opportunity: {
|
586
599
|
id: string;
|
587
600
|
name: string;
|
588
601
|
type: string;
|
589
602
|
status: import("@db/api").$Enums.Status;
|
603
|
+
description: string;
|
590
604
|
tags: string[];
|
591
605
|
identifier: string;
|
592
606
|
action: import("@db/api").$Enums.OpportunityAction;
|
593
607
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
594
608
|
chainId: number;
|
609
|
+
howToSteps: string[];
|
595
610
|
depositUrl: string | null;
|
596
611
|
explorerAddress: string | null;
|
597
612
|
mainProtocolId: string | null;
|
@@ -18,6 +18,7 @@ export type Campaign = Resource<"Campaign", "opportunityId" | "rewardTokenId", {
|
|
18
18
|
tags?: string[];
|
19
19
|
creatorId: string | null;
|
20
20
|
};
|
21
|
+
description?: string;
|
21
22
|
endTimestamp: number;
|
22
23
|
startTimestamp: number;
|
23
24
|
createdAt: string;
|
@@ -49,6 +50,7 @@ export declare const CampaignResourceDto: import("@sinclair/typebox").TObject<{
|
|
49
50
|
creatorId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
50
51
|
}>>;
|
51
52
|
params: import("@sinclair/typebox").TAny;
|
53
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
52
54
|
chain: import("@sinclair/typebox").TObject<{
|
53
55
|
id: import("@sinclair/typebox").TNumber;
|
54
56
|
name: import("@sinclair/typebox").TString;
|
@@ -28,6 +28,7 @@ export const CampaignResourceDto = t.Object({
|
|
28
28
|
creatorId: t.Optional(t.Nullable(t.String())),
|
29
29
|
})),
|
30
30
|
params: t.Any(),
|
31
|
+
description: t.Optional(t.String()),
|
31
32
|
chain: ChainResourceDto,
|
32
33
|
rewardToken: TokenResourceDto,
|
33
34
|
distributionChain: t.Optional(ChainResourceDto),
|
@@ -307,11 +307,13 @@ export declare abstract class CampaignRepository {
|
|
307
307
|
name: string;
|
308
308
|
type: string;
|
309
309
|
status: import("@db/api").$Enums.Status;
|
310
|
+
description: string;
|
310
311
|
tags: string[];
|
311
312
|
identifier: string;
|
312
313
|
action: import("@db/api").$Enums.OpportunityAction;
|
313
314
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
314
315
|
chainId: number;
|
316
|
+
howToSteps: string[];
|
315
317
|
depositUrl: string | null;
|
316
318
|
explorerAddress: string | null;
|
317
319
|
mainProtocolId: string | null;
|
@@ -323,6 +325,7 @@ export declare abstract class CampaignRepository {
|
|
323
325
|
} & {
|
324
326
|
id: string;
|
325
327
|
type: string;
|
328
|
+
description: string | null;
|
326
329
|
params: Prisma.JsonValue;
|
327
330
|
subType: number | null;
|
328
331
|
computeChainId: number;
|
@@ -355,11 +358,13 @@ export declare abstract class CampaignRepository {
|
|
355
358
|
name: string;
|
356
359
|
type: string;
|
357
360
|
status: import("@db/api").$Enums.Status;
|
361
|
+
description: string;
|
358
362
|
tags: string[];
|
359
363
|
identifier: string;
|
360
364
|
action: import("@db/api").$Enums.OpportunityAction;
|
361
365
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
362
366
|
chainId: number;
|
367
|
+
howToSteps: string[];
|
363
368
|
depositUrl: string | null;
|
364
369
|
explorerAddress: string | null;
|
365
370
|
mainProtocolId: string | null;
|
@@ -371,6 +376,7 @@ export declare abstract class CampaignRepository {
|
|
371
376
|
} & {
|
372
377
|
id: string;
|
373
378
|
type: string;
|
379
|
+
description: string | null;
|
374
380
|
params: Prisma.JsonValue;
|
375
381
|
subType: number | null;
|
376
382
|
computeChainId: number;
|
@@ -420,11 +426,13 @@ export declare abstract class CampaignRepository {
|
|
420
426
|
name: string;
|
421
427
|
type: string;
|
422
428
|
status: import("@db/api").$Enums.Status;
|
429
|
+
description: string;
|
423
430
|
tags: string[];
|
424
431
|
identifier: string;
|
425
432
|
action: import("@db/api").$Enums.OpportunityAction;
|
426
433
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
427
434
|
chainId: number;
|
435
|
+
howToSteps: string[];
|
428
436
|
depositUrl: string | null;
|
429
437
|
explorerAddress: string | null;
|
430
438
|
mainProtocolId: string | null;
|
@@ -436,6 +444,7 @@ export declare abstract class CampaignRepository {
|
|
436
444
|
} & {
|
437
445
|
id: string;
|
438
446
|
type: string;
|
447
|
+
description: string | null;
|
439
448
|
params: Prisma.JsonValue;
|
440
449
|
subType: number | null;
|
441
450
|
computeChainId: number;
|
@@ -478,6 +487,7 @@ export declare abstract class CampaignRepository {
|
|
478
487
|
static upsert(campaign: Omit<CampaignWithParams, "manualOverrides">, opportunityIdentifier: string): Promise<{
|
479
488
|
id: string;
|
480
489
|
type: string;
|
490
|
+
description: string | null;
|
481
491
|
params: Prisma.JsonValue;
|
482
492
|
subType: number | null;
|
483
493
|
computeChainId: number;
|
@@ -557,6 +567,7 @@ export declare abstract class CampaignRepository {
|
|
557
567
|
} & {
|
558
568
|
id: string;
|
559
569
|
type: string;
|
570
|
+
description: string | null;
|
560
571
|
params: Prisma.JsonValue;
|
561
572
|
subType: number | null;
|
562
573
|
computeChainId: number;
|
@@ -604,11 +615,13 @@ export declare abstract class CampaignRepository {
|
|
604
615
|
name: string;
|
605
616
|
type: string;
|
606
617
|
status: import("@db/api").$Enums.Status;
|
618
|
+
description: string;
|
607
619
|
tags: string[];
|
608
620
|
identifier: string;
|
609
621
|
action: import("@db/api").$Enums.OpportunityAction;
|
610
622
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
611
623
|
chainId: number;
|
624
|
+
howToSteps: string[];
|
612
625
|
depositUrl: string | null;
|
613
626
|
explorerAddress: string | null;
|
614
627
|
mainProtocolId: string | null;
|
@@ -633,6 +646,7 @@ export declare abstract class CampaignRepository {
|
|
633
646
|
} & {
|
634
647
|
id: string;
|
635
648
|
type: string;
|
649
|
+
description: string | null;
|
636
650
|
params: Prisma.JsonValue;
|
637
651
|
subType: number | null;
|
638
652
|
computeChainId: number;
|
@@ -689,11 +703,13 @@ export declare abstract class CampaignRepository {
|
|
689
703
|
name: string;
|
690
704
|
type: string;
|
691
705
|
status: import("@db/api").$Enums.Status;
|
706
|
+
description: string;
|
692
707
|
tags: string[];
|
693
708
|
identifier: string;
|
694
709
|
action: import("@db/api").$Enums.OpportunityAction;
|
695
710
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
696
711
|
chainId: number;
|
712
|
+
howToSteps: string[];
|
697
713
|
depositUrl: string | null;
|
698
714
|
explorerAddress: string | null;
|
699
715
|
mainProtocolId: string | null;
|
@@ -718,6 +734,7 @@ export declare abstract class CampaignRepository {
|
|
718
734
|
} & {
|
719
735
|
id: string;
|
720
736
|
type: string;
|
737
|
+
description: string | null;
|
721
738
|
params: Prisma.JsonValue;
|
722
739
|
subType: number | null;
|
723
740
|
computeChainId: number;
|
@@ -742,6 +759,7 @@ export declare abstract class CampaignRepository {
|
|
742
759
|
static updateParams(id: string, params: string): Promise<{
|
743
760
|
id: string;
|
744
761
|
type: string;
|
762
|
+
description: string | null;
|
745
763
|
params: Prisma.JsonValue;
|
746
764
|
subType: number | null;
|
747
765
|
computeChainId: number;
|