@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
@@ -82,11 +82,13 @@ export declare const v4: Elysia<"/v4", false, {
|
|
82
82
|
name: string;
|
83
83
|
type: string;
|
84
84
|
status: import("@db/api").$Enums.Status;
|
85
|
+
description: string;
|
85
86
|
tags: string[];
|
86
87
|
identifier: string;
|
87
88
|
action: import("@db/api").$Enums.OpportunityAction;
|
88
89
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
89
90
|
chainId: number;
|
91
|
+
howToSteps: string[];
|
90
92
|
depositUrl: string | null;
|
91
93
|
explorerAddress: string | null;
|
92
94
|
mainProtocolId: string | null;
|
@@ -106,7 +108,9 @@ export declare const v4: Elysia<"/v4", false, {
|
|
106
108
|
patch: {
|
107
109
|
body: {
|
108
110
|
name?: string | undefined;
|
111
|
+
description?: string | undefined;
|
109
112
|
action?: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID" | undefined;
|
113
|
+
howToSteps?: string[] | undefined;
|
110
114
|
depositUrl?: string | undefined;
|
111
115
|
explorerAddress?: string | undefined;
|
112
116
|
};
|
@@ -123,11 +127,13 @@ export declare const v4: Elysia<"/v4", false, {
|
|
123
127
|
name: string;
|
124
128
|
type: string;
|
125
129
|
status: import("@db/api").$Enums.Status;
|
130
|
+
description: string;
|
126
131
|
tags: string[];
|
127
132
|
identifier: string;
|
128
133
|
action: import("@db/api").$Enums.OpportunityAction;
|
129
134
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
130
135
|
chainId: number;
|
136
|
+
howToSteps: string[];
|
131
137
|
depositUrl: string | null;
|
132
138
|
explorerAddress: string | null;
|
133
139
|
mainProtocolId: string | null;
|
@@ -146,7 +152,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
146
152
|
":id": {
|
147
153
|
override: {
|
148
154
|
delete: {
|
149
|
-
body: ("name" | "action" | "depositUrl" | "explorerAddress")[];
|
155
|
+
body: ("name" | "description" | "action" | "howToSteps" | "depositUrl" | "explorerAddress")[];
|
150
156
|
params: {
|
151
157
|
id: string;
|
152
158
|
};
|
@@ -184,11 +190,13 @@ export declare const v4: Elysia<"/v4", false, {
|
|
184
190
|
name: string;
|
185
191
|
type: string;
|
186
192
|
status: import("@db/api").$Enums.Status;
|
193
|
+
description: string;
|
187
194
|
tags: string[];
|
188
195
|
identifier: string;
|
189
196
|
action: import("@db/api").$Enums.OpportunityAction;
|
190
197
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
191
198
|
chainId: number;
|
199
|
+
howToSteps: string[];
|
192
200
|
depositUrl: string | null;
|
193
201
|
explorerAddress: string | null;
|
194
202
|
mainProtocolId: string | null;
|
@@ -273,11 +281,13 @@ export declare const v4: Elysia<"/v4", false, {
|
|
273
281
|
name: string;
|
274
282
|
type: string;
|
275
283
|
status: import("@db/api").$Enums.Status;
|
284
|
+
description: string;
|
276
285
|
tags: string[];
|
277
286
|
identifier: string;
|
278
287
|
action: import("@db/api").$Enums.OpportunityAction;
|
279
288
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
280
289
|
chainId: number;
|
290
|
+
howToSteps: string[];
|
281
291
|
depositUrl: string | null;
|
282
292
|
explorerAddress: string | null;
|
283
293
|
mainProtocolId: string | null;
|
@@ -455,16 +465,19 @@ export declare const v4: Elysia<"/v4", false, {
|
|
455
465
|
creatorId: string | null;
|
456
466
|
};
|
457
467
|
createdAt: string;
|
468
|
+
description: string | undefined;
|
458
469
|
Opportunity: {
|
459
470
|
id: string;
|
460
471
|
name: string;
|
461
472
|
type: string;
|
462
473
|
status: import("@db/api").$Enums.Status;
|
474
|
+
description: string;
|
463
475
|
tags: string[];
|
464
476
|
identifier: string;
|
465
477
|
action: import("@db/api").$Enums.OpportunityAction;
|
466
478
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
467
479
|
chainId: number;
|
480
|
+
howToSteps: string[];
|
468
481
|
depositUrl: string | null;
|
469
482
|
explorerAddress: string | null;
|
470
483
|
mainProtocolId: string | null;
|
@@ -520,10 +533,12 @@ export declare const v4: Elysia<"/v4", false, {
|
|
520
533
|
name: string;
|
521
534
|
type: string;
|
522
535
|
status: import("@db/api").$Enums.Status;
|
536
|
+
description: string;
|
523
537
|
tags: string[];
|
524
538
|
identifier: string;
|
525
539
|
action: import("@db/api").$Enums.OpportunityAction;
|
526
540
|
chainId: number;
|
541
|
+
howToSteps: string[];
|
527
542
|
tvl: number;
|
528
543
|
dailyRewards: number;
|
529
544
|
}[];
|
@@ -590,7 +605,9 @@ export declare const v4: Elysia<"/v4", false, {
|
|
590
605
|
tags: string[];
|
591
606
|
icon: string;
|
592
607
|
} | null | undefined;
|
608
|
+
description?: string | undefined;
|
593
609
|
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;
|
610
|
+
howToSteps?: string[] | undefined;
|
594
611
|
depositUrl?: string | undefined;
|
595
612
|
explorerAddress?: string | undefined;
|
596
613
|
aprRecord?: {
|
@@ -727,7 +744,9 @@ export declare const v4: Elysia<"/v4", false, {
|
|
727
744
|
tags: string[];
|
728
745
|
icon: string;
|
729
746
|
} | null | undefined;
|
747
|
+
description?: string | undefined;
|
730
748
|
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;
|
749
|
+
howToSteps?: string[] | undefined;
|
731
750
|
depositUrl?: string | undefined;
|
732
751
|
explorerAddress?: string | undefined;
|
733
752
|
aprRecord?: {
|
@@ -810,6 +829,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
810
829
|
dailyRewards: number;
|
811
830
|
lastCampaignCreatedAt: string;
|
812
831
|
campaigns: {
|
832
|
+
description?: string | undefined;
|
813
833
|
creator?: {
|
814
834
|
tags?: string[] | undefined;
|
815
835
|
creatorId?: string | null | undefined;
|
@@ -900,7 +920,9 @@ export declare const v4: Elysia<"/v4", false, {
|
|
900
920
|
tags: string[];
|
901
921
|
icon: string;
|
902
922
|
} | null | undefined;
|
923
|
+
description?: string | undefined;
|
903
924
|
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;
|
925
|
+
howToSteps?: string[] | undefined;
|
904
926
|
depositUrl?: string | undefined;
|
905
927
|
explorerAddress?: string | undefined;
|
906
928
|
aprRecord?: {
|
@@ -983,6 +1005,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
983
1005
|
dailyRewards: number;
|
984
1006
|
lastCampaignCreatedAt: string;
|
985
1007
|
campaigns: {
|
1008
|
+
description?: string | undefined;
|
986
1009
|
creator?: {
|
987
1010
|
tags?: string[] | undefined;
|
988
1011
|
creatorId?: string | null | undefined;
|
@@ -1211,6 +1234,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
1211
1234
|
200: {
|
1212
1235
|
id: string;
|
1213
1236
|
type: string;
|
1237
|
+
description: string | null;
|
1214
1238
|
params: import("database/api/.generated/runtime/library").JsonValue;
|
1215
1239
|
subType: number | null;
|
1216
1240
|
computeChainId: number;
|
@@ -1254,11 +1278,13 @@ export declare const v4: Elysia<"/v4", false, {
|
|
1254
1278
|
name: string;
|
1255
1279
|
type: string;
|
1256
1280
|
status: import("@db/api").$Enums.Status;
|
1281
|
+
description: string;
|
1257
1282
|
tags: string[];
|
1258
1283
|
identifier: string;
|
1259
1284
|
action: import("@db/api").$Enums.OpportunityAction;
|
1260
1285
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
1261
1286
|
chainId: number;
|
1287
|
+
howToSteps: string[];
|
1262
1288
|
depositUrl: string | null;
|
1263
1289
|
explorerAddress: string | null;
|
1264
1290
|
mainProtocolId: string | null;
|
@@ -1369,6 +1395,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
1369
1395
|
200: {
|
1370
1396
|
id: string;
|
1371
1397
|
type: string;
|
1398
|
+
description: string | null;
|
1372
1399
|
params: import("database/api/.generated/runtime/library").JsonValue;
|
1373
1400
|
subType: number | null;
|
1374
1401
|
computeChainId: number;
|
@@ -1463,16 +1490,19 @@ export declare const v4: Elysia<"/v4", false, {
|
|
1463
1490
|
creatorId: string | null;
|
1464
1491
|
};
|
1465
1492
|
createdAt: string;
|
1493
|
+
description: string | undefined;
|
1466
1494
|
Opportunity: {
|
1467
1495
|
id: string;
|
1468
1496
|
name: string;
|
1469
1497
|
type: string;
|
1470
1498
|
status: import("@db/api").$Enums.Status;
|
1499
|
+
description: string;
|
1471
1500
|
tags: string[];
|
1472
1501
|
identifier: string;
|
1473
1502
|
action: import("@db/api").$Enums.OpportunityAction;
|
1474
1503
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
1475
1504
|
chainId: number;
|
1505
|
+
howToSteps: string[];
|
1476
1506
|
depositUrl: string | null;
|
1477
1507
|
explorerAddress: string | null;
|
1478
1508
|
mainProtocolId: string | null;
|
@@ -1550,16 +1580,19 @@ export declare const v4: Elysia<"/v4", false, {
|
|
1550
1580
|
creatorId: string | null;
|
1551
1581
|
};
|
1552
1582
|
createdAt: string;
|
1583
|
+
description: string | undefined;
|
1553
1584
|
Opportunity: {
|
1554
1585
|
id: string;
|
1555
1586
|
name: string;
|
1556
1587
|
type: string;
|
1557
1588
|
status: import("@db/api").$Enums.Status;
|
1589
|
+
description: string;
|
1558
1590
|
tags: string[];
|
1559
1591
|
identifier: string;
|
1560
1592
|
action: import("@db/api").$Enums.OpportunityAction;
|
1561
1593
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
1562
1594
|
chainId: number;
|
1595
|
+
howToSteps: string[];
|
1563
1596
|
depositUrl: string | null;
|
1564
1597
|
explorerAddress: string | null;
|
1565
1598
|
mainProtocolId: string | null;
|
@@ -1753,16 +1786,19 @@ export declare const v4: Elysia<"/v4", false, {
|
|
1753
1786
|
creatorId: string | null;
|
1754
1787
|
};
|
1755
1788
|
createdAt: string;
|
1789
|
+
description: string | undefined;
|
1756
1790
|
Opportunity: {
|
1757
1791
|
id: string;
|
1758
1792
|
name: string;
|
1759
1793
|
type: string;
|
1760
1794
|
status: import("@db/api").$Enums.Status;
|
1795
|
+
description: string;
|
1761
1796
|
tags: string[];
|
1762
1797
|
identifier: string;
|
1763
1798
|
action: import("@db/api").$Enums.OpportunityAction;
|
1764
1799
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
1765
1800
|
chainId: number;
|
1801
|
+
howToSteps: string[];
|
1766
1802
|
depositUrl: string | null;
|
1767
1803
|
explorerAddress: string | null;
|
1768
1804
|
mainProtocolId: string | null;
|
@@ -2092,6 +2128,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
2092
2128
|
200: {
|
2093
2129
|
id: string;
|
2094
2130
|
type: string;
|
2131
|
+
description: string | null;
|
2095
2132
|
params: import("database/api/.generated/runtime/library").JsonValue;
|
2096
2133
|
subType: number | null;
|
2097
2134
|
computeChainId: number;
|
@@ -2135,11 +2172,13 @@ export declare const v4: Elysia<"/v4", false, {
|
|
2135
2172
|
name: string;
|
2136
2173
|
type: string;
|
2137
2174
|
status: import("@db/api").$Enums.Status;
|
2175
|
+
description: string;
|
2138
2176
|
tags: string[];
|
2139
2177
|
identifier: string;
|
2140
2178
|
action: import("@db/api").$Enums.OpportunityAction;
|
2141
2179
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
2142
2180
|
chainId: number;
|
2181
|
+
howToSteps: string[];
|
2143
2182
|
depositUrl: string | null;
|
2144
2183
|
explorerAddress: string | null;
|
2145
2184
|
mainProtocolId: string | null;
|
@@ -2197,6 +2236,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
2197
2236
|
200: {
|
2198
2237
|
id: string;
|
2199
2238
|
type: string;
|
2239
|
+
description: string | null;
|
2200
2240
|
params: import("database/api/.generated/runtime/library").JsonValue;
|
2201
2241
|
subType: number | null;
|
2202
2242
|
computeChainId: number;
|
@@ -2240,11 +2280,13 @@ export declare const v4: Elysia<"/v4", false, {
|
|
2240
2280
|
name: string;
|
2241
2281
|
type: string;
|
2242
2282
|
status: import("@db/api").$Enums.Status;
|
2283
|
+
description: string;
|
2243
2284
|
tags: string[];
|
2244
2285
|
identifier: string;
|
2245
2286
|
action: import("@db/api").$Enums.OpportunityAction;
|
2246
2287
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
2247
2288
|
chainId: number;
|
2289
|
+
howToSteps: string[];
|
2248
2290
|
depositUrl: string | null;
|
2249
2291
|
explorerAddress: string | null;
|
2250
2292
|
mainProtocolId: string | null;
|
@@ -3872,11 +3914,13 @@ export declare const v4: Elysia<"/v4", false, {
|
|
3872
3914
|
name: string;
|
3873
3915
|
type: string;
|
3874
3916
|
status: import("@db/api").$Enums.Status;
|
3917
|
+
description: string;
|
3875
3918
|
tags: string[];
|
3876
3919
|
identifier: string;
|
3877
3920
|
action: import("@db/api").$Enums.OpportunityAction;
|
3878
3921
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
3879
3922
|
chainId: number;
|
3923
|
+
howToSteps: string[];
|
3880
3924
|
depositUrl: string | null;
|
3881
3925
|
explorerAddress: string | null;
|
3882
3926
|
mainProtocolId: string | null;
|
@@ -3995,11 +4039,13 @@ export declare const v4: Elysia<"/v4", false, {
|
|
3995
4039
|
name: string;
|
3996
4040
|
type: string;
|
3997
4041
|
status: import("@db/api").$Enums.Status;
|
4042
|
+
description: string;
|
3998
4043
|
tags: string[];
|
3999
4044
|
identifier: string;
|
4000
4045
|
action: import("@db/api").$Enums.OpportunityAction;
|
4001
4046
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
4002
4047
|
chainId: number;
|
4048
|
+
howToSteps: string[];
|
4003
4049
|
depositUrl: string | null;
|
4004
4050
|
explorerAddress: string | null;
|
4005
4051
|
mainProtocolId: string | null;
|
@@ -182,11 +182,13 @@ export declare const UserController: Elysia<"/users", false, {
|
|
182
182
|
name: string;
|
183
183
|
type: string;
|
184
184
|
status: import("@db/api").$Enums.Status;
|
185
|
+
description: string;
|
185
186
|
tags: string[];
|
186
187
|
identifier: string;
|
187
188
|
action: import("@db/api").$Enums.OpportunityAction;
|
188
189
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
189
190
|
chainId: number;
|
191
|
+
howToSteps: string[];
|
190
192
|
depositUrl: string | null;
|
191
193
|
explorerAddress: string | null;
|
192
194
|
mainProtocolId: string | null;
|
@@ -305,11 +307,13 @@ export declare const UserController: Elysia<"/users", false, {
|
|
305
307
|
name: string;
|
306
308
|
type: string;
|
307
309
|
status: import("@db/api").$Enums.Status;
|
310
|
+
description: string;
|
308
311
|
tags: string[];
|
309
312
|
identifier: string;
|
310
313
|
action: import("@db/api").$Enums.OpportunityAction;
|
311
314
|
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
312
315
|
chainId: number;
|
316
|
+
howToSteps: string[];
|
313
317
|
depositUrl: string | null;
|
314
318
|
explorerAddress: string | null;
|
315
319
|
mainProtocolId: string | null;
|