@merkl/api 0.21.18 → 0.21.20

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.
Files changed (28) hide show
  1. package/dist/src/eden/index.d.ts +1437 -1415
  2. package/dist/src/engine/deprecated/dynamicData/implementations/Erc20.js +1 -18
  3. package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/factoryFinder.js +1 -0
  4. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/processorMapping.js +1 -0
  5. package/dist/src/engine/deprecated/erc20SubTypeProcessors/tokenTypeToProtocolAndAction.js +4 -0
  6. package/dist/src/engine/implementations/Clamm/metadata.js +1 -0
  7. package/dist/src/engine/implementations/Erc20/subTypes/index.d.ts +2 -1
  8. package/dist/src/engine/implementations/Erc20/subTypes/index.js +1 -0
  9. package/dist/src/index.d.ts +968 -960
  10. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +8 -1
  11. package/dist/src/modules/v4/campaign/campaign.model.d.ts +1 -0
  12. package/dist/src/modules/v4/campaign/campaign.model.js +1 -0
  13. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +18 -0
  14. package/dist/src/modules/v4/campaign/campaign.repository.js +15 -1
  15. package/dist/src/modules/v4/campaign/campaign.service.d.ts +2 -1
  16. package/dist/src/modules/v4/campaign/campaign.service.js +9 -4
  17. package/dist/src/modules/v4/creator/creator.controller.d.ts +3 -2
  18. package/dist/src/modules/v4/creator/creator.service.d.ts +3 -2
  19. package/dist/src/modules/v4/creator/creator.service.js +9 -2
  20. package/dist/src/modules/v4/dynamicData/dynamicData.service.js +2 -10
  21. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +970 -960
  22. package/dist/src/modules/v4/opportunity/opportunity.controller.js +32 -46
  23. package/dist/src/modules/v4/protocol/protocol.controller.d.ts +10 -1
  24. package/dist/src/modules/v4/protocol/protocol.controller.js +4 -15
  25. package/dist/src/modules/v4/router.d.ts +968 -960
  26. package/dist/src/utils/generateCardName.js +1 -0
  27. package/dist/tsconfig.package.tsbuildinfo +1 -1
  28. package/package.json +1 -1
@@ -14,34 +14,173 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
14
14
  }, {
15
15
  opportunities: {
16
16
  index: {
17
- post: {
18
- body: {
19
- name?: string | undefined;
20
- description?: string | undefined;
21
- tags?: string[] | undefined;
22
- howToSteps?: string[] | undefined;
23
- depositUrl?: string | undefined;
24
- explorerAddress?: string | undefined;
25
- protocols?: string[] | undefined;
26
- mainProtocol?: string | undefined;
27
- status: "NONE" | "PAST" | "LIVE" | "SOON";
28
- type: string;
29
- tokens: {
30
- address: string;
31
- chainId: number;
32
- }[];
33
- identifier: string;
34
- action: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID";
35
- chainId: number;
36
- };
17
+ get: {
18
+ body: unknown;
37
19
  params: {};
38
- query: unknown;
39
- headers: {
40
- authorization: string;
20
+ query: {
21
+ status?: string | undefined;
22
+ search?: string | undefined;
23
+ sort?: string | undefined;
24
+ type?: string | undefined;
25
+ name?: string | undefined;
26
+ tokens?: string | undefined;
27
+ items?: number | undefined;
28
+ tags?: string | undefined;
29
+ identifier?: string | undefined;
30
+ page?: number | undefined;
31
+ action?: string | undefined;
32
+ campaignId?: string | undefined;
33
+ creatorAddress?: string | undefined;
34
+ chainId?: string | undefined;
35
+ mainProtocolId?: string | undefined;
36
+ campaigns?: boolean | undefined;
37
+ point?: boolean | undefined;
38
+ rewardTokenSymbol?: string | undefined;
39
+ order?: string | undefined;
40
+ test?: boolean | undefined;
41
+ minimumTvl?: number | undefined;
41
42
  };
43
+ headers: unknown;
42
44
  response: {
43
45
  200: {
44
- Tokens: {
46
+ apr: number;
47
+ aprRecord: {
48
+ cumulated: number;
49
+ timestamp: bigint;
50
+ breakdowns: ({
51
+ value: number;
52
+ distributionType: import("@db/api").$Enums.DistributionType;
53
+ identifier: string;
54
+ type: "CAMPAIGN";
55
+ } | {
56
+ value: number;
57
+ identifier: string;
58
+ type: import("@db/api").$Enums.AprType;
59
+ })[];
60
+ };
61
+ tvlRecord: {
62
+ id: string;
63
+ total: number;
64
+ timestamp: bigint;
65
+ breakdowns: {
66
+ type: import("@db/api").$Enums.TvlType;
67
+ identifier: string;
68
+ value: number;
69
+ }[];
70
+ };
71
+ rewardsRecord: {
72
+ id: string;
73
+ total: number;
74
+ timestamp: bigint;
75
+ breakdowns: {
76
+ id: string;
77
+ campaignId: string;
78
+ dailyRewardsRecordId: string;
79
+ token: {
80
+ symbol: string;
81
+ name: string | null;
82
+ id: string;
83
+ icon: string;
84
+ address: string;
85
+ chainId: number;
86
+ decimals: number;
87
+ displaySymbol: string;
88
+ verified: boolean;
89
+ isTest: boolean;
90
+ isPoint: boolean;
91
+ isPreTGE: boolean;
92
+ isNative: boolean;
93
+ price: number | null;
94
+ };
95
+ amount: any;
96
+ value: number;
97
+ distributionType: import("@db/api").$Enums.DistributionType;
98
+ }[];
99
+ };
100
+ campaigns: {
101
+ params: any;
102
+ chain: {
103
+ name: string;
104
+ id: number;
105
+ icon: string;
106
+ };
107
+ endTimestamp: number;
108
+ startTimestamp: number;
109
+ rewardToken: {
110
+ symbol: string;
111
+ name: string | null;
112
+ id: string;
113
+ icon: string;
114
+ address: string;
115
+ chainId: number;
116
+ decimals: number;
117
+ verified: boolean;
118
+ isTest: boolean;
119
+ isPoint: boolean;
120
+ isPreTGE: boolean;
121
+ isNative: boolean;
122
+ } & {
123
+ price?: number | null | undefined;
124
+ };
125
+ distributionChain: {
126
+ name: string;
127
+ id: number;
128
+ icon: string;
129
+ } | undefined;
130
+ campaignStatus: {
131
+ computedUntil: number;
132
+ processingStarted: number;
133
+ status: import("@db/api").$Enums.RunStatus;
134
+ error: string;
135
+ details: import("database/api/.generated/runtime/library").JsonValue;
136
+ campaignId: string;
137
+ } | undefined;
138
+ creatorAddress: string;
139
+ creator: {
140
+ tags: string[];
141
+ address: string;
142
+ creatorId: string | null;
143
+ };
144
+ createdAt: string;
145
+ description: string | undefined;
146
+ parentCampaignId: string | undefined;
147
+ rootCampaignId: string | undefined;
148
+ Opportunity: {
149
+ status: import("@db/api").$Enums.Status;
150
+ type: string;
151
+ name: string;
152
+ description: string;
153
+ id: string;
154
+ tags: string[];
155
+ identifier: string;
156
+ action: import("@db/api").$Enums.OpportunityAction;
157
+ manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
158
+ chainId: number;
159
+ howToSteps: string[];
160
+ depositUrl: string | null;
161
+ explorerAddress: string | null;
162
+ mainProtocolId: string | null;
163
+ tvl: number;
164
+ apr: number;
165
+ dailyRewards: number;
166
+ lastCampaignCreatedAt: Date;
167
+ };
168
+ type: string;
169
+ id: string;
170
+ subType: number | null;
171
+ computeChainId: number;
172
+ distributionChainId: number;
173
+ campaignId: string;
174
+ distributionType: import("@db/api").$Enums.DistributionType;
175
+ rewardTokenId: string;
176
+ amount: string;
177
+ opportunityId: string;
178
+ }[] | undefined;
179
+ id: string;
180
+ depositUrl: string | undefined;
181
+ explorerAddress: string | undefined;
182
+ lastCampaignCreatedAt: string;
183
+ tokens: ({
45
184
  symbol: string;
46
185
  name: string | null;
47
186
  id: string;
@@ -49,178 +188,160 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
49
188
  address: string;
50
189
  chainId: number;
51
190
  decimals: number;
52
- displaySymbol: string;
53
191
  verified: boolean;
54
192
  isTest: boolean;
55
193
  isPoint: boolean;
56
194
  isPreTGE: boolean;
57
195
  isNative: boolean;
58
- price: number | null;
59
- }[];
60
- Protocols: {
196
+ } & {
197
+ price?: number | null | undefined;
198
+ })[];
199
+ chain: {
200
+ name: string;
201
+ id: number;
202
+ icon: string;
203
+ };
204
+ protocol: {
61
205
  url: string;
62
206
  name: string;
63
207
  description: string;
64
208
  id: string;
65
209
  tags: string[];
66
210
  icon: string;
67
- }[];
211
+ } | undefined;
68
212
  status: import("@db/api").$Enums.Status;
69
213
  type: string;
70
214
  name: string;
71
215
  description: string;
72
- id: string;
73
216
  tags: string[];
74
217
  identifier: string;
75
218
  action: import("@db/api").$Enums.OpportunityAction;
76
- manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
77
219
  chainId: number;
78
220
  howToSteps: string[];
79
- depositUrl: string | null;
80
- explorerAddress: string | null;
81
- mainProtocolId: string | null;
82
221
  tvl: number;
83
- apr: number;
84
222
  dailyRewards: number;
85
- lastCampaignCreatedAt: Date;
86
- };
223
+ }[];
87
224
  };
88
225
  };
89
226
  };
90
227
  };
91
228
  } & {
92
229
  opportunities: {
93
- ":id": {
94
- override: {
95
- patch: {
96
- body: {
97
- name?: string | undefined;
98
- description?: string | undefined;
99
- action?: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID" | undefined;
100
- howToSteps?: string[] | undefined;
101
- depositUrl?: string | undefined;
102
- explorerAddress?: string | undefined;
103
- };
104
- params: {
105
- id: string;
106
- };
107
- query: unknown;
108
- headers: {
109
- authorization: string;
110
- };
111
- response: {
112
- 200: {
113
- status: import("@db/api").$Enums.Status;
114
- type: string;
115
- name: string;
116
- description: string;
117
- id: string;
118
- tags: string[];
119
- identifier: string;
120
- action: import("@db/api").$Enums.OpportunityAction;
121
- manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
122
- chainId: number;
123
- howToSteps: string[];
124
- depositUrl: string | null;
125
- explorerAddress: string | null;
126
- mainProtocolId: string | null;
127
- tvl: number;
128
- apr: number;
129
- dailyRewards: number;
130
- lastCampaignCreatedAt: Date;
131
- };
132
- };
133
- };
134
- };
135
- };
136
- };
137
- } & {
230
+ count: {
231
+ get: {
232
+ body: unknown;
233
+ params: {};
234
+ query: {
235
+ status?: string | undefined;
236
+ search?: string | undefined;
237
+ sort?: string | undefined;
238
+ type?: string | undefined;
239
+ name?: string | undefined;
240
+ tokens?: string | undefined;
241
+ items?: number | undefined;
242
+ tags?: string | undefined;
243
+ identifier?: string | undefined;
244
+ page?: number | undefined;
245
+ action?: string | undefined;
246
+ campaignId?: string | undefined;
247
+ creatorAddress?: string | undefined;
248
+ chainId?: string | undefined;
249
+ mainProtocolId?: string | undefined;
250
+ campaigns?: boolean | undefined;
251
+ point?: boolean | undefined;
252
+ rewardTokenSymbol?: string | undefined;
253
+ order?: string | undefined;
254
+ test?: boolean | undefined;
255
+ minimumTvl?: number | undefined;
256
+ };
257
+ headers: unknown;
258
+ response: {
259
+ 200: number;
260
+ };
261
+ };
262
+ };
263
+ };
264
+ } & {
138
265
  opportunities: {
139
- ":id": {
140
- override: {
141
- delete: {
142
- body: ("name" | "description" | "action" | "howToSteps" | "depositUrl" | "explorerAddress")[];
143
- params: {
144
- id: string;
266
+ bins: {
267
+ apr: {
268
+ get: {
269
+ body: unknown;
270
+ params: {};
271
+ query: {
272
+ status?: string | undefined;
273
+ search?: string | undefined;
274
+ sort?: string | undefined;
275
+ type?: string | undefined;
276
+ name?: string | undefined;
277
+ tokens?: string | undefined;
278
+ items?: number | undefined;
279
+ tags?: string | undefined;
280
+ identifier?: string | undefined;
281
+ page?: number | undefined;
282
+ action?: string | undefined;
283
+ campaignId?: string | undefined;
284
+ creatorAddress?: string | undefined;
285
+ chainId?: string | undefined;
286
+ mainProtocolId?: string | undefined;
287
+ campaigns?: boolean | undefined;
288
+ point?: boolean | undefined;
289
+ rewardTokenSymbol?: string | undefined;
290
+ order?: string | undefined;
291
+ test?: boolean | undefined;
292
+ minimumTvl?: number | undefined;
145
293
  };
146
- query: unknown;
147
- headers: {
148
- authorization: string;
294
+ headers: unknown;
295
+ response: {
296
+ 200: {
297
+ min: number;
298
+ max: number;
299
+ overThreshold: number;
300
+ binWidth: number;
301
+ bins: any[];
302
+ };
149
303
  };
304
+ };
305
+ };
306
+ };
307
+ };
308
+ } & {
309
+ opportunities: {
310
+ bins: {
311
+ tvl: {
312
+ get: {
313
+ body: unknown;
314
+ params: {};
315
+ query: {
316
+ status?: string | undefined;
317
+ search?: string | undefined;
318
+ sort?: string | undefined;
319
+ type?: string | undefined;
320
+ name?: string | undefined;
321
+ tokens?: string | undefined;
322
+ items?: number | undefined;
323
+ tags?: string | undefined;
324
+ identifier?: string | undefined;
325
+ page?: number | undefined;
326
+ action?: string | undefined;
327
+ campaignId?: string | undefined;
328
+ creatorAddress?: string | undefined;
329
+ chainId?: string | undefined;
330
+ mainProtocolId?: string | undefined;
331
+ campaigns?: boolean | undefined;
332
+ point?: boolean | undefined;
333
+ rewardTokenSymbol?: string | undefined;
334
+ order?: string | undefined;
335
+ test?: boolean | undefined;
336
+ minimumTvl?: number | undefined;
337
+ };
338
+ headers: unknown;
150
339
  response: {
151
340
  200: {
152
- Tokens: {
153
- symbol: string;
154
- name: string | null;
155
- id: string;
156
- icon: string;
157
- address: string;
158
- chainId: number;
159
- decimals: number;
160
- displaySymbol: string;
161
- verified: boolean;
162
- isTest: boolean;
163
- isPoint: boolean;
164
- isPreTGE: boolean;
165
- isNative: boolean;
166
- price: number | null;
167
- }[];
168
- Protocols: {
169
- url: string;
170
- name: string;
171
- description: string;
172
- id: string;
173
- tags: string[];
174
- icon: string;
175
- }[];
176
- status: import("@db/api").$Enums.Status;
177
- type: string;
178
- name: string;
179
- description: string;
180
- id: string;
181
- tags: string[];
182
- identifier: string;
183
- action: import("@db/api").$Enums.OpportunityAction;
184
- manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
185
- chainId: number;
186
- howToSteps: string[];
187
- depositUrl: string | null;
188
- explorerAddress: string | null;
189
- mainProtocolId: string | null;
190
- tvl: number;
191
- apr: number;
192
- dailyRewards: number;
193
- lastCampaignCreatedAt: Date;
194
- } | {
195
- id: string;
196
- chainId: number;
197
- type: string;
198
- identifier: string;
199
- name: string;
200
- status: "PAST" | "LIVE" | "SOON";
201
- action: any;
202
- tokens: ({
203
- symbol: string;
204
- name: string | null;
205
- id: string;
206
- icon: string;
207
- address: string;
208
- chainId: number;
209
- decimals: number;
210
- verified: boolean;
211
- isTest: boolean;
212
- isPoint: boolean;
213
- isPreTGE: boolean;
214
- isNative: boolean;
215
- } & {
216
- price?: number | null | undefined;
217
- })[];
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" | "punchswap" | "gamma" | "stability" | "termmax" | "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" | "puffer" | undefined;
219
- description: string;
220
- howToSteps: string[];
221
- depositUrl: string | undefined;
222
- explorerAddress: string | undefined;
223
- tags: string[];
341
+ min: number;
342
+ max: number;
343
+ binWidth: number;
344
+ bins: any[];
224
345
  };
225
346
  };
226
347
  };
@@ -230,19 +351,79 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
230
351
  } & {
231
352
  opportunities: {
232
353
  ":id": {
233
- post: {
354
+ get: {
234
355
  body: unknown;
235
356
  params: {
236
- campaignId?: string | undefined;
237
357
  id: string;
238
358
  };
239
- query: unknown;
240
- headers: {
241
- authorization: string;
359
+ query: {
360
+ campaigns?: boolean | undefined;
361
+ point?: boolean | undefined;
362
+ test?: boolean | undefined;
242
363
  };
364
+ headers: unknown;
243
365
  response: {
244
366
  200: {
245
- Tokens: {
367
+ protocol?: {
368
+ url: string;
369
+ name: string;
370
+ description: string;
371
+ id: string;
372
+ tags: string[];
373
+ icon: string;
374
+ } | null | undefined;
375
+ 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;
376
+ depositUrl?: string | undefined;
377
+ explorerAddress?: string | undefined;
378
+ aprRecord?: {
379
+ timestamp: string | bigint;
380
+ cumulated: number;
381
+ breakdowns: {
382
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
383
+ identifier: string;
384
+ value: number;
385
+ }[];
386
+ } | undefined;
387
+ tvlRecord?: {
388
+ total: number;
389
+ timestamp: string | bigint;
390
+ breakdowns: {
391
+ type: "TOKEN" | "PROTOCOL";
392
+ identifier: string;
393
+ value: number;
394
+ }[];
395
+ } | undefined;
396
+ rewardsRecord?: {
397
+ total: number;
398
+ id: string;
399
+ timestamp: string | bigint;
400
+ breakdowns: {
401
+ token: {
402
+ price?: number | null | undefined;
403
+ symbol: string;
404
+ name: string | null;
405
+ id: string;
406
+ icon: string;
407
+ address: string;
408
+ chainId: number;
409
+ decimals: number;
410
+ verified: boolean;
411
+ isTest: boolean;
412
+ isPoint: boolean;
413
+ isPreTGE: boolean;
414
+ };
415
+ id: string;
416
+ value: number;
417
+ campaignId: string;
418
+ amount: string | bigint;
419
+ dailyRewardsRecordId: string;
420
+ }[];
421
+ } | undefined;
422
+ status: string;
423
+ type: string;
424
+ name: string;
425
+ tokens: {
426
+ price?: number | null | undefined;
246
427
  symbol: string;
247
428
  name: string | null;
248
429
  id: string;
@@ -250,70 +431,36 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
250
431
  address: string;
251
432
  chainId: number;
252
433
  decimals: number;
253
- displaySymbol: string;
254
434
  verified: boolean;
255
435
  isTest: boolean;
256
436
  isPoint: boolean;
257
437
  isPreTGE: boolean;
258
- isNative: boolean;
259
- price: number | null;
260
- }[];
261
- Protocols: {
262
- url: string;
263
- name: string;
264
- description: string;
265
- id: string;
266
- tags: string[];
267
- icon: string;
268
438
  }[];
269
- status: import("@db/api").$Enums.Status;
270
- type: string;
271
- name: string;
272
439
  description: string;
273
440
  id: string;
274
441
  tags: string[];
275
442
  identifier: string;
276
- action: import("@db/api").$Enums.OpportunityAction;
277
- manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
443
+ chain: {
444
+ name: string;
445
+ id: number;
446
+ icon: string;
447
+ };
448
+ action: string;
278
449
  chainId: number;
279
450
  howToSteps: string[];
280
- depositUrl: string | null;
281
- explorerAddress: string | null;
282
- mainProtocolId: string | null;
283
451
  tvl: number;
284
452
  apr: number;
285
453
  dailyRewards: number;
286
- lastCampaignCreatedAt: Date;
287
- } | {
288
- id: string;
289
- chainId: number;
290
- type: string;
291
- identifier: string;
454
+ lastCampaignCreatedAt: string;
455
+ };
456
+ readonly 404: {
457
+ message: string;
292
458
  name: string;
293
- status: "PAST" | "LIVE" | "SOON";
294
- action: any;
295
- tokens: ({
296
- symbol: string;
297
- name: string | null;
298
- id: string;
299
- icon: string;
300
- address: string;
301
- chainId: number;
302
- decimals: number;
303
- verified: boolean;
304
- isTest: boolean;
305
- isPoint: boolean;
306
- isPreTGE: boolean;
307
- isNative: boolean;
308
- } & {
309
- price?: number | null | undefined;
310
- })[];
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" | "punchswap" | "gamma" | "stability" | "termmax" | "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" | "puffer" | undefined;
312
- description: string;
313
- howToSteps: string[];
314
- depositUrl: string | undefined;
315
- explorerAddress: string | undefined;
316
- tags: string[];
459
+ };
460
+ readonly 500: {
461
+ info: string;
462
+ code: string;
463
+ httpCode: number;
317
464
  };
318
465
  };
319
466
  };
@@ -321,70 +468,76 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
321
468
  };
322
469
  } & {
323
470
  opportunities: {
324
- index: {
471
+ campaigns: {
325
472
  get: {
326
473
  body: unknown;
327
474
  params: {};
328
475
  query: {
329
- status?: string | undefined;
330
- search?: string | undefined;
331
- sort?: string | undefined;
476
+ status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
332
477
  type?: string | undefined;
333
- name?: string | undefined;
334
- tokens?: string | undefined;
478
+ id?: string | undefined;
335
479
  items?: number | undefined;
336
- tags?: string | undefined;
337
- identifier?: string | undefined;
480
+ subType?: number | undefined;
338
481
  page?: number | undefined;
339
- action?: string | undefined;
482
+ types?: string[] | undefined;
340
483
  campaignId?: string | undefined;
484
+ opportunityId?: string | undefined;
485
+ startTimestamp?: string | undefined;
486
+ endTimestamp?: string | undefined;
341
487
  creatorAddress?: string | undefined;
342
- chainId?: string | undefined;
343
- mainProtocolId?: string | undefined;
344
- campaigns?: boolean | undefined;
488
+ rootCampaignId?: string | undefined;
489
+ parentCampaignId?: string | undefined;
490
+ chainId?: number | undefined;
491
+ creatorId?: string | undefined;
492
+ mainParameter?: string | undefined;
345
493
  point?: boolean | undefined;
346
- rewardTokenSymbol?: string | undefined;
347
- order?: string | undefined;
494
+ tokenAddress?: string | undefined;
348
495
  test?: boolean | undefined;
349
- minimumTvl?: number | undefined;
496
+ creatorTag?: string | undefined;
497
+ distributionChainIds?: number[] | undefined;
498
+ tokenSymbol?: string | undefined;
499
+ withOpportunity?: boolean | undefined;
500
+ createdAfter?: Date | null | undefined;
350
501
  };
351
502
  headers: unknown;
352
503
  response: {
353
504
  200: {
354
- apr: number;
355
- aprRecord: {
505
+ protocol?: {
506
+ url: string;
507
+ name: string;
508
+ description: string;
509
+ id: string;
510
+ tags: string[];
511
+ icon: string;
512
+ } | null | undefined;
513
+ 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;
514
+ depositUrl?: string | undefined;
515
+ explorerAddress?: string | undefined;
516
+ aprRecord?: {
517
+ timestamp: string | bigint;
356
518
  cumulated: number;
357
- timestamp: bigint;
358
- breakdowns: ({
359
- value: number;
360
- distributionType: import("@db/api").$Enums.DistributionType;
361
- identifier: string;
362
- type: "CAMPAIGN";
363
- } | {
364
- value: number;
519
+ breakdowns: {
520
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
365
521
  identifier: string;
366
- type: import("@db/api").$Enums.AprType;
367
- })[];
368
- };
369
- tvlRecord: {
370
- id: string;
522
+ value: number;
523
+ }[];
524
+ } | undefined;
525
+ tvlRecord?: {
371
526
  total: number;
372
- timestamp: bigint;
527
+ timestamp: string | bigint;
373
528
  breakdowns: {
374
- type: import("@db/api").$Enums.TvlType;
529
+ type: "TOKEN" | "PROTOCOL";
375
530
  identifier: string;
376
531
  value: number;
377
532
  }[];
378
- };
379
- rewardsRecord: {
380
- id: string;
533
+ } | undefined;
534
+ rewardsRecord?: {
381
535
  total: number;
382
- timestamp: bigint;
536
+ id: string;
537
+ timestamp: string | bigint;
383
538
  breakdowns: {
384
- id: string;
385
- campaignId: string;
386
- dailyRewardsRecordId: string;
387
539
  token: {
540
+ price?: number | null | undefined;
388
541
  symbol: string;
389
542
  name: string | null;
390
543
  id: string;
@@ -392,29 +545,94 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
392
545
  address: string;
393
546
  chainId: number;
394
547
  decimals: number;
395
- displaySymbol: string;
396
548
  verified: boolean;
397
549
  isTest: boolean;
398
550
  isPoint: boolean;
399
551
  isPreTGE: boolean;
400
- isNative: boolean;
401
- price: number | null;
402
552
  };
403
- amount: any;
553
+ id: string;
404
554
  value: number;
405
- distributionType: import("@db/api").$Enums.DistributionType;
555
+ campaignId: string;
556
+ amount: string | bigint;
557
+ dailyRewardsRecordId: string;
406
558
  }[];
559
+ } | undefined;
560
+ status: string;
561
+ type: string;
562
+ name: string;
563
+ tokens: {
564
+ price?: number | null | undefined;
565
+ symbol: string;
566
+ name: string | null;
567
+ id: string;
568
+ icon: string;
569
+ address: string;
570
+ chainId: number;
571
+ decimals: number;
572
+ verified: boolean;
573
+ isTest: boolean;
574
+ isPoint: boolean;
575
+ isPreTGE: boolean;
576
+ }[];
577
+ description: string;
578
+ id: string;
579
+ tags: string[];
580
+ identifier: string;
581
+ chain: {
582
+ name: string;
583
+ id: number;
584
+ icon: string;
407
585
  };
586
+ action: string;
587
+ chainId: number;
588
+ howToSteps: string[];
589
+ tvl: number;
590
+ apr: number;
591
+ dailyRewards: number;
592
+ lastCampaignCreatedAt: string;
408
593
  campaigns: {
594
+ description?: string | undefined;
595
+ creator?: {
596
+ tags?: string[] | undefined;
597
+ creatorId?: string | null | undefined;
598
+ address: string;
599
+ } | undefined;
600
+ rootCampaignId?: string | undefined;
601
+ parentCampaignId?: string | undefined;
602
+ campaignStatus?: {
603
+ error?: string | undefined;
604
+ details?: any;
605
+ status: string;
606
+ campaignId: string;
607
+ computedUntil: string | number;
608
+ processingStarted: string | number;
609
+ } | undefined;
610
+ distributionChain?: {
611
+ name: string;
612
+ id: number;
613
+ icon: string;
614
+ } | undefined;
615
+ type: string;
616
+ id: string;
409
617
  params: any;
618
+ subType: number | null;
410
619
  chain: {
411
620
  name: string;
412
621
  id: number;
413
622
  icon: string;
414
623
  };
415
- endTimestamp: number;
416
- startTimestamp: number;
624
+ computeChainId: number;
625
+ distributionChainId: number;
626
+ campaignId: string;
627
+ rewardTokenId: string;
628
+ amount: string;
629
+ opportunityId: string;
630
+ startTimestamp: string | number;
631
+ endTimestamp: string | number;
632
+ creatorAddress: string;
633
+ createdAt: string;
417
634
  rewardToken: {
635
+ price?: number | null | undefined;
418
636
  symbol: string;
419
637
  name: string | null;
420
638
  id: string;
@@ -426,156 +644,207 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
426
644
  isTest: boolean;
427
645
  isPoint: boolean;
428
646
  isPreTGE: boolean;
429
- isNative: boolean;
430
- } & {
431
- price?: number | null | undefined;
432
647
  };
433
- distributionChain: {
648
+ }[];
649
+ }[];
650
+ readonly 404: {
651
+ message: string;
652
+ name: string;
653
+ };
654
+ readonly 500: {
655
+ info: string;
656
+ code: string;
657
+ httpCode: number;
658
+ };
659
+ };
660
+ };
661
+ };
662
+ };
663
+ } & {
664
+ opportunities: {
665
+ ":id": {
666
+ campaigns: {
667
+ get: {
668
+ body: unknown;
669
+ params: {
670
+ id: string;
671
+ };
672
+ query: {
673
+ campaigns?: boolean | undefined;
674
+ point?: boolean | undefined;
675
+ test?: boolean | undefined;
676
+ };
677
+ headers: unknown;
678
+ response: {
679
+ 200: {
680
+ protocol?: {
681
+ url: string;
434
682
  name: string;
435
- id: number;
683
+ description: string;
684
+ id: string;
685
+ tags: string[];
436
686
  icon: string;
687
+ } | null | undefined;
688
+ 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;
689
+ depositUrl?: string | undefined;
690
+ explorerAddress?: string | undefined;
691
+ aprRecord?: {
692
+ timestamp: string | bigint;
693
+ cumulated: number;
694
+ breakdowns: {
695
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
696
+ identifier: string;
697
+ value: number;
698
+ }[];
437
699
  } | undefined;
438
- campaignStatus: {
439
- computedUntil: number;
440
- processingStarted: number;
441
- status: import("@db/api").$Enums.RunStatus;
442
- error: string;
443
- details: import("database/api/.generated/runtime/library").JsonValue;
444
- campaignId: string;
700
+ tvlRecord?: {
701
+ total: number;
702
+ timestamp: string | bigint;
703
+ breakdowns: {
704
+ type: "TOKEN" | "PROTOCOL";
705
+ identifier: string;
706
+ value: number;
707
+ }[];
445
708
  } | undefined;
446
- creatorAddress: string;
447
- creator: {
448
- tags: string[];
449
- address: string;
450
- creatorId: string | null;
451
- };
452
- createdAt: string;
453
- description: string | undefined;
454
- parentCampaignId: string | undefined;
455
- rootCampaignId: string | undefined;
456
- Opportunity: {
457
- status: import("@db/api").$Enums.Status;
458
- type: string;
459
- name: string;
460
- description: string;
709
+ rewardsRecord?: {
710
+ total: number;
461
711
  id: string;
462
- tags: string[];
463
- identifier: string;
464
- action: import("@db/api").$Enums.OpportunityAction;
465
- manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
466
- chainId: number;
467
- howToSteps: string[];
468
- depositUrl: string | null;
469
- explorerAddress: string | null;
470
- mainProtocolId: string | null;
471
- tvl: number;
472
- apr: number;
473
- dailyRewards: number;
474
- lastCampaignCreatedAt: Date;
475
- };
476
- type: string;
477
- id: string;
478
- subType: number | null;
479
- computeChainId: number;
480
- distributionChainId: number;
481
- campaignId: string;
482
- distributionType: import("@db/api").$Enums.DistributionType;
483
- rewardTokenId: string;
484
- amount: string;
485
- opportunityId: string;
486
- }[] | undefined;
487
- id: string;
488
- depositUrl: string | undefined;
489
- explorerAddress: string | undefined;
490
- lastCampaignCreatedAt: string;
491
- tokens: ({
492
- symbol: string;
493
- name: string | null;
494
- id: string;
495
- icon: string;
496
- address: string;
497
- chainId: number;
498
- decimals: number;
499
- verified: boolean;
500
- isTest: boolean;
501
- isPoint: boolean;
502
- isPreTGE: boolean;
503
- isNative: boolean;
504
- } & {
505
- price?: number | null | undefined;
506
- })[];
507
- chain: {
508
- name: string;
509
- id: number;
510
- icon: string;
511
- };
512
- protocol: {
513
- url: string;
712
+ timestamp: string | bigint;
713
+ breakdowns: {
714
+ token: {
715
+ price?: number | null | undefined;
716
+ symbol: string;
717
+ name: string | null;
718
+ id: string;
719
+ icon: string;
720
+ address: string;
721
+ chainId: number;
722
+ decimals: number;
723
+ verified: boolean;
724
+ isTest: boolean;
725
+ isPoint: boolean;
726
+ isPreTGE: boolean;
727
+ };
728
+ id: string;
729
+ value: number;
730
+ campaignId: string;
731
+ amount: string | bigint;
732
+ dailyRewardsRecordId: string;
733
+ }[];
734
+ } | undefined;
735
+ status: string;
736
+ type: string;
514
737
  name: string;
738
+ tokens: {
739
+ price?: number | null | undefined;
740
+ symbol: string;
741
+ name: string | null;
742
+ id: string;
743
+ icon: string;
744
+ address: string;
745
+ chainId: number;
746
+ decimals: number;
747
+ verified: boolean;
748
+ isTest: boolean;
749
+ isPoint: boolean;
750
+ isPreTGE: boolean;
751
+ }[];
515
752
  description: string;
516
753
  id: string;
517
754
  tags: string[];
518
- icon: string;
519
- } | undefined;
520
- status: import("@db/api").$Enums.Status;
521
- type: string;
522
- name: string;
523
- description: string;
524
- tags: string[];
525
- identifier: string;
526
- action: import("@db/api").$Enums.OpportunityAction;
527
- chainId: number;
528
- howToSteps: string[];
529
- tvl: number;
530
- dailyRewards: number;
531
- }[];
532
- };
533
- };
534
- };
535
- };
536
- } & {
537
- opportunities: {
538
- count: {
539
- get: {
540
- body: unknown;
541
- params: {};
542
- query: {
543
- status?: string | undefined;
544
- search?: string | undefined;
545
- sort?: string | undefined;
546
- type?: string | undefined;
547
- name?: string | undefined;
548
- tokens?: string | undefined;
549
- items?: number | undefined;
550
- tags?: string | undefined;
551
- identifier?: string | undefined;
552
- page?: number | undefined;
553
- action?: string | undefined;
554
- campaignId?: string | undefined;
555
- creatorAddress?: string | undefined;
556
- chainId?: string | undefined;
557
- mainProtocolId?: string | undefined;
558
- campaigns?: boolean | undefined;
559
- point?: boolean | undefined;
560
- rewardTokenSymbol?: string | undefined;
561
- order?: string | undefined;
562
- test?: boolean | undefined;
563
- minimumTvl?: number | undefined;
564
- };
565
- headers: unknown;
566
- response: {
567
- 200: number;
755
+ identifier: string;
756
+ chain: {
757
+ name: string;
758
+ id: number;
759
+ icon: string;
760
+ };
761
+ action: string;
762
+ chainId: number;
763
+ howToSteps: string[];
764
+ tvl: number;
765
+ apr: number;
766
+ dailyRewards: number;
767
+ lastCampaignCreatedAt: string;
768
+ campaigns: {
769
+ description?: string | undefined;
770
+ creator?: {
771
+ tags?: string[] | undefined;
772
+ creatorId?: string | null | undefined;
773
+ address: string;
774
+ } | undefined;
775
+ rootCampaignId?: string | undefined;
776
+ parentCampaignId?: string | undefined;
777
+ campaignStatus?: {
778
+ error?: string | undefined;
779
+ details?: any;
780
+ status: string;
781
+ campaignId: string;
782
+ computedUntil: string | number;
783
+ processingStarted: string | number;
784
+ } | undefined;
785
+ distributionChain?: {
786
+ name: string;
787
+ id: number;
788
+ icon: string;
789
+ } | undefined;
790
+ type: string;
791
+ id: string;
792
+ params: any;
793
+ subType: number | null;
794
+ chain: {
795
+ name: string;
796
+ id: number;
797
+ icon: string;
798
+ };
799
+ computeChainId: number;
800
+ distributionChainId: number;
801
+ campaignId: string;
802
+ rewardTokenId: string;
803
+ amount: string;
804
+ opportunityId: string;
805
+ startTimestamp: string | number;
806
+ endTimestamp: string | number;
807
+ creatorAddress: string;
808
+ createdAt: string;
809
+ rewardToken: {
810
+ price?: number | null | undefined;
811
+ symbol: string;
812
+ name: string | null;
813
+ id: string;
814
+ icon: string;
815
+ address: string;
816
+ chainId: number;
817
+ decimals: number;
818
+ verified: boolean;
819
+ isTest: boolean;
820
+ isPoint: boolean;
821
+ isPreTGE: boolean;
822
+ };
823
+ }[];
824
+ };
825
+ readonly 404: {
826
+ message: string;
827
+ name: string;
828
+ };
829
+ readonly 500: {
830
+ info: string;
831
+ code: string;
832
+ httpCode: number;
833
+ };
834
+ };
568
835
  };
569
836
  };
570
837
  };
571
838
  };
572
839
  } & {
573
840
  opportunities: {
574
- bins: {
575
- apr: {
841
+ aggregate: {
842
+ ":field": {
576
843
  get: {
577
844
  body: unknown;
578
- params: {};
845
+ params: {
846
+ field: never;
847
+ };
579
848
  query: {
580
849
  status?: string | undefined;
581
850
  search?: string | undefined;
@@ -602,11 +871,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
602
871
  headers: unknown;
603
872
  response: {
604
873
  200: {
605
- min: number;
606
- max: number;
607
- overThreshold: number;
608
- binWidth: number;
609
- bins: any[];
874
+ sum: string;
610
875
  };
611
876
  };
612
877
  };
@@ -615,41 +880,86 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
615
880
  };
616
881
  } & {
617
882
  opportunities: {
618
- bins: {
619
- tvl: {
620
- get: {
621
- body: unknown;
622
- params: {};
623
- query: {
624
- status?: string | undefined;
625
- search?: string | undefined;
626
- sort?: string | undefined;
627
- type?: string | undefined;
628
- name?: string | undefined;
629
- tokens?: string | undefined;
630
- items?: number | undefined;
631
- tags?: string | undefined;
632
- identifier?: string | undefined;
633
- page?: number | undefined;
634
- action?: string | undefined;
635
- campaignId?: string | undefined;
636
- creatorAddress?: string | undefined;
637
- chainId?: string | undefined;
638
- mainProtocolId?: string | undefined;
639
- campaigns?: boolean | undefined;
640
- point?: boolean | undefined;
641
- rewardTokenSymbol?: string | undefined;
642
- order?: string | undefined;
643
- test?: boolean | undefined;
644
- minimumTvl?: number | undefined;
883
+ aggregate: {
884
+ max: {
885
+ ":field": {
886
+ get: {
887
+ body: unknown;
888
+ params: {
889
+ field: never;
890
+ };
891
+ query: {
892
+ status?: string | undefined;
893
+ search?: string | undefined;
894
+ sort?: string | undefined;
895
+ type?: string | undefined;
896
+ name?: string | undefined;
897
+ tokens?: string | undefined;
898
+ items?: number | undefined;
899
+ tags?: string | undefined;
900
+ identifier?: string | undefined;
901
+ page?: number | undefined;
902
+ action?: string | undefined;
903
+ campaignId?: string | undefined;
904
+ creatorAddress?: string | undefined;
905
+ chainId?: string | undefined;
906
+ mainProtocolId?: string | undefined;
907
+ campaigns?: boolean | undefined;
908
+ point?: boolean | undefined;
909
+ rewardTokenSymbol?: string | undefined;
910
+ order?: string | undefined;
911
+ test?: boolean | undefined;
912
+ minimumTvl?: number | undefined;
913
+ };
914
+ headers: unknown;
915
+ response: {
916
+ 200: {
917
+ max: string;
918
+ };
919
+ };
645
920
  };
646
- headers: unknown;
647
- response: {
648
- 200: {
649
- min: number;
650
- max: number;
651
- binWidth: number;
652
- bins: any[];
921
+ };
922
+ };
923
+ };
924
+ };
925
+ } & {
926
+ opportunities: {
927
+ aggregate: {
928
+ min: {
929
+ ":field": {
930
+ get: {
931
+ body: unknown;
932
+ params: {
933
+ field: never;
934
+ };
935
+ query: {
936
+ status?: string | undefined;
937
+ search?: string | undefined;
938
+ sort?: string | undefined;
939
+ type?: string | undefined;
940
+ name?: string | undefined;
941
+ tokens?: string | undefined;
942
+ items?: number | undefined;
943
+ tags?: string | undefined;
944
+ identifier?: string | undefined;
945
+ page?: number | undefined;
946
+ action?: string | undefined;
947
+ campaignId?: string | undefined;
948
+ creatorAddress?: string | undefined;
949
+ chainId?: string | undefined;
950
+ mainProtocolId?: string | undefined;
951
+ campaigns?: boolean | undefined;
952
+ point?: boolean | undefined;
953
+ rewardTokenSymbol?: string | undefined;
954
+ order?: string | undefined;
955
+ test?: boolean | undefined;
956
+ minimumTvl?: number | undefined;
957
+ };
958
+ headers: unknown;
959
+ response: {
960
+ 200: {
961
+ min: string;
962
+ };
653
963
  };
654
964
  };
655
965
  };
@@ -658,80 +968,35 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
658
968
  };
659
969
  } & {
660
970
  opportunities: {
661
- ":id": {
662
- get: {
663
- body: unknown;
664
- params: {
665
- id: string;
971
+ index: {
972
+ post: {
973
+ body: {
974
+ name?: string | undefined;
975
+ description?: string | undefined;
976
+ tags?: string[] | undefined;
977
+ howToSteps?: string[] | undefined;
978
+ depositUrl?: string | undefined;
979
+ explorerAddress?: string | undefined;
980
+ protocols?: string[] | undefined;
981
+ mainProtocol?: string | undefined;
982
+ status: "NONE" | "PAST" | "LIVE" | "SOON";
983
+ type: string;
984
+ tokens: {
985
+ address: string;
986
+ chainId: number;
987
+ }[];
988
+ identifier: string;
989
+ action: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID";
990
+ chainId: number;
666
991
  };
667
- query: {
668
- campaigns?: boolean | undefined;
669
- point?: boolean | undefined;
670
- test?: boolean | undefined;
992
+ params: {};
993
+ query: unknown;
994
+ headers: {
995
+ authorization: string;
671
996
  };
672
- headers: unknown;
673
997
  response: {
674
998
  200: {
675
- protocol?: {
676
- url: string;
677
- name: string;
678
- description: string;
679
- id: string;
680
- tags: string[];
681
- icon: string;
682
- } | null | undefined;
683
- 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;
684
- depositUrl?: string | undefined;
685
- explorerAddress?: string | undefined;
686
- aprRecord?: {
687
- timestamp: string | bigint;
688
- cumulated: number;
689
- breakdowns: {
690
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
691
- identifier: string;
692
- value: number;
693
- }[];
694
- } | undefined;
695
- tvlRecord?: {
696
- total: number;
697
- timestamp: string | bigint;
698
- breakdowns: {
699
- type: "TOKEN" | "PROTOCOL";
700
- identifier: string;
701
- value: number;
702
- }[];
703
- } | undefined;
704
- rewardsRecord?: {
705
- total: number;
706
- id: string;
707
- timestamp: string | bigint;
708
- breakdowns: {
709
- token: {
710
- price?: number | null | undefined;
711
- symbol: string;
712
- name: string | null;
713
- id: string;
714
- icon: string;
715
- address: string;
716
- chainId: number;
717
- decimals: number;
718
- verified: boolean;
719
- isTest: boolean;
720
- isPoint: boolean;
721
- isPreTGE: boolean;
722
- };
723
- id: string;
724
- value: number;
725
- campaignId: string;
726
- amount: string | bigint;
727
- dailyRewardsRecordId: string;
728
- }[];
729
- } | undefined;
730
- status: string;
731
- type: string;
732
- name: string;
733
- tokens: {
734
- price?: number | null | undefined;
999
+ Tokens: {
735
1000
  symbol: string;
736
1001
  name: string | null;
737
1002
  id: string;
@@ -739,136 +1004,61 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
739
1004
  address: string;
740
1005
  chainId: number;
741
1006
  decimals: number;
1007
+ displaySymbol: string;
742
1008
  verified: boolean;
743
1009
  isTest: boolean;
744
1010
  isPoint: boolean;
745
1011
  isPreTGE: boolean;
1012
+ isNative: boolean;
1013
+ price: number | null;
1014
+ }[];
1015
+ Protocols: {
1016
+ url: string;
1017
+ name: string;
1018
+ description: string;
1019
+ id: string;
1020
+ tags: string[];
1021
+ icon: string;
746
1022
  }[];
1023
+ status: import("@db/api").$Enums.Status;
1024
+ type: string;
1025
+ name: string;
747
1026
  description: string;
748
1027
  id: string;
749
1028
  tags: string[];
750
1029
  identifier: string;
751
- chain: {
752
- name: string;
753
- id: number;
754
- icon: string;
755
- };
756
- action: string;
1030
+ action: import("@db/api").$Enums.OpportunityAction;
1031
+ manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
757
1032
  chainId: number;
758
1033
  howToSteps: string[];
1034
+ depositUrl: string | null;
1035
+ explorerAddress: string | null;
1036
+ mainProtocolId: string | null;
759
1037
  tvl: number;
760
1038
  apr: number;
761
1039
  dailyRewards: number;
762
- lastCampaignCreatedAt: string;
763
- };
764
- readonly 404: {
765
- message: string;
766
- name: string;
767
- };
768
- readonly 500: {
769
- info: string;
770
- code: string;
771
- httpCode: number;
772
- };
773
- };
774
- };
775
- };
776
- };
777
- } & {
778
- opportunities: {
779
- campaigns: {
780
- get: {
781
- body: unknown;
782
- params: {};
783
- query: {
784
- status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
785
- type?: string | undefined;
786
- items?: number | undefined;
787
- subType?: number | undefined;
788
- page?: number | undefined;
789
- types?: string[] | undefined;
790
- campaignId?: string | undefined;
791
- opportunityId?: string | undefined;
792
- startTimestamp?: string | undefined;
793
- endTimestamp?: string | undefined;
794
- creatorAddress?: string | undefined;
795
- rootCampaignId?: string | undefined;
796
- parentCampaignId?: string | undefined;
797
- chainId?: number | undefined;
798
- creatorId?: string | undefined;
799
- mainParameter?: string | undefined;
800
- point?: boolean | undefined;
801
- tokenAddress?: string | undefined;
802
- test?: boolean | undefined;
803
- creatorTag?: string | undefined;
804
- distributionChainIds?: number[] | undefined;
805
- tokenSymbol?: string | undefined;
806
- withOpportunity?: boolean | undefined;
807
- createdAfter?: Date | null | undefined;
808
- };
809
- headers: unknown;
810
- response: {
811
- 200: {
812
- protocol?: {
813
- url: string;
814
- name: string;
815
- description: string;
816
- id: string;
817
- tags: string[];
818
- icon: string;
819
- } | null | undefined;
820
- 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;
821
- depositUrl?: string | undefined;
822
- explorerAddress?: string | undefined;
823
- aprRecord?: {
824
- timestamp: string | bigint;
825
- cumulated: number;
826
- breakdowns: {
827
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
828
- identifier: string;
829
- value: number;
830
- }[];
831
- } | undefined;
832
- tvlRecord?: {
833
- total: number;
834
- timestamp: string | bigint;
835
- breakdowns: {
836
- type: "TOKEN" | "PROTOCOL";
837
- identifier: string;
838
- value: number;
839
- }[];
840
- } | undefined;
841
- rewardsRecord?: {
842
- total: number;
843
- id: string;
844
- timestamp: string | bigint;
845
- breakdowns: {
846
- token: {
847
- price?: number | null | undefined;
848
- symbol: string;
849
- name: string | null;
850
- id: string;
851
- icon: string;
852
- address: string;
853
- chainId: number;
854
- decimals: number;
855
- verified: boolean;
856
- isTest: boolean;
857
- isPoint: boolean;
858
- isPreTGE: boolean;
859
- };
860
- id: string;
861
- value: number;
862
- campaignId: string;
863
- amount: string | bigint;
864
- dailyRewardsRecordId: string;
865
- }[];
866
- } | undefined;
867
- status: string;
868
- type: string;
869
- name: string;
870
- tokens: {
871
- price?: number | null | undefined;
1040
+ lastCampaignCreatedAt: Date;
1041
+ };
1042
+ };
1043
+ };
1044
+ };
1045
+ };
1046
+ } & {
1047
+ opportunities: {
1048
+ ":id": {
1049
+ post: {
1050
+ body: unknown;
1051
+ params: {
1052
+ campaignId?: string | undefined;
1053
+ id: string;
1054
+ };
1055
+ query: unknown;
1056
+ headers: {
1057
+ authorization: string;
1058
+ };
1059
+ response: {
1060
+ 200: {
1061
+ Tokens: {
872
1062
  symbol: string;
873
1063
  name: string | null;
874
1064
  id: string;
@@ -876,92 +1066,70 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
876
1066
  address: string;
877
1067
  chainId: number;
878
1068
  decimals: number;
1069
+ displaySymbol: string;
879
1070
  verified: boolean;
880
1071
  isTest: boolean;
881
1072
  isPoint: boolean;
882
1073
  isPreTGE: boolean;
1074
+ isNative: boolean;
1075
+ price: number | null;
1076
+ }[];
1077
+ Protocols: {
1078
+ url: string;
1079
+ name: string;
1080
+ description: string;
1081
+ id: string;
1082
+ tags: string[];
1083
+ icon: string;
883
1084
  }[];
1085
+ status: import("@db/api").$Enums.Status;
1086
+ type: string;
1087
+ name: string;
884
1088
  description: string;
885
1089
  id: string;
886
1090
  tags: string[];
887
1091
  identifier: string;
888
- chain: {
889
- name: string;
890
- id: number;
891
- icon: string;
892
- };
893
- action: string;
1092
+ action: import("@db/api").$Enums.OpportunityAction;
1093
+ manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
894
1094
  chainId: number;
895
1095
  howToSteps: string[];
1096
+ depositUrl: string | null;
1097
+ explorerAddress: string | null;
1098
+ mainProtocolId: string | null;
896
1099
  tvl: number;
897
1100
  apr: number;
898
1101
  dailyRewards: number;
899
- lastCampaignCreatedAt: string;
900
- campaigns: {
901
- description?: string | undefined;
902
- creator?: {
903
- tags?: string[] | undefined;
904
- creatorId?: string | null | undefined;
905
- address: string;
906
- } | undefined;
907
- rootCampaignId?: string | undefined;
908
- parentCampaignId?: string | undefined;
909
- campaignStatus?: {
910
- error?: string | undefined;
911
- details?: any;
912
- status: string;
913
- campaignId: string;
914
- computedUntil: string | number;
915
- processingStarted: string | number;
916
- } | undefined;
917
- distributionChain?: {
918
- name: string;
919
- id: number;
920
- icon: string;
921
- } | undefined;
922
- type: string;
923
- id: string;
924
- params: any;
925
- subType: number | null;
926
- chain: {
927
- name: string;
928
- id: number;
929
- icon: string;
930
- };
931
- computeChainId: number;
932
- distributionChainId: number;
933
- campaignId: string;
934
- rewardTokenId: string;
935
- amount: string;
936
- opportunityId: string;
937
- startTimestamp: string | number;
938
- endTimestamp: string | number;
939
- creatorAddress: string;
940
- createdAt: string;
941
- rewardToken: {
942
- price?: number | null | undefined;
943
- symbol: string;
944
- name: string | null;
945
- id: string;
946
- icon: string;
947
- address: string;
948
- chainId: number;
949
- decimals: number;
950
- verified: boolean;
951
- isTest: boolean;
952
- isPoint: boolean;
953
- isPreTGE: boolean;
954
- };
955
- }[];
956
- }[];
957
- readonly 404: {
958
- message: string;
1102
+ lastCampaignCreatedAt: Date;
1103
+ } | {
1104
+ id: string;
1105
+ chainId: number;
1106
+ type: string;
1107
+ identifier: string;
959
1108
  name: string;
960
- };
961
- readonly 500: {
962
- info: string;
963
- code: string;
964
- httpCode: number;
1109
+ status: "PAST" | "LIVE" | "SOON";
1110
+ action: any;
1111
+ tokens: ({
1112
+ symbol: string;
1113
+ name: string | null;
1114
+ id: string;
1115
+ icon: string;
1116
+ address: string;
1117
+ chainId: number;
1118
+ decimals: number;
1119
+ verified: boolean;
1120
+ isTest: boolean;
1121
+ isPoint: boolean;
1122
+ isPreTGE: boolean;
1123
+ isNative: boolean;
1124
+ } & {
1125
+ price?: number | null | undefined;
1126
+ })[];
1127
+ 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" | "punchswap" | "gamma" | "stability" | "termmax" | "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" | "puffer" | undefined;
1128
+ description: string;
1129
+ howToSteps: string[];
1130
+ depositUrl: string | undefined;
1131
+ explorerAddress: string | undefined;
1132
+ tags: string[];
965
1133
  };
966
1134
  };
967
1135
  };
@@ -970,80 +1138,65 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
970
1138
  } & {
971
1139
  opportunities: {
972
1140
  ":id": {
973
- campaigns: {
974
- get: {
975
- body: unknown;
1141
+ override: {
1142
+ patch: {
1143
+ body: {
1144
+ name?: string | undefined;
1145
+ description?: string | undefined;
1146
+ action?: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID" | undefined;
1147
+ howToSteps?: string[] | undefined;
1148
+ depositUrl?: string | undefined;
1149
+ explorerAddress?: string | undefined;
1150
+ };
976
1151
  params: {
977
1152
  id: string;
978
1153
  };
979
- query: {
980
- campaigns?: boolean | undefined;
981
- point?: boolean | undefined;
982
- test?: boolean | undefined;
1154
+ query: unknown;
1155
+ headers: {
1156
+ authorization: string;
983
1157
  };
984
- headers: unknown;
985
1158
  response: {
986
1159
  200: {
987
- protocol?: {
988
- url: string;
989
- name: string;
990
- description: string;
991
- id: string;
992
- tags: string[];
993
- icon: string;
994
- } | null | undefined;
995
- 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;
996
- depositUrl?: string | undefined;
997
- explorerAddress?: string | undefined;
998
- aprRecord?: {
999
- timestamp: string | bigint;
1000
- cumulated: number;
1001
- breakdowns: {
1002
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
1003
- identifier: string;
1004
- value: number;
1005
- }[];
1006
- } | undefined;
1007
- tvlRecord?: {
1008
- total: number;
1009
- timestamp: string | bigint;
1010
- breakdowns: {
1011
- type: "TOKEN" | "PROTOCOL";
1012
- identifier: string;
1013
- value: number;
1014
- }[];
1015
- } | undefined;
1016
- rewardsRecord?: {
1017
- total: number;
1018
- id: string;
1019
- timestamp: string | bigint;
1020
- breakdowns: {
1021
- token: {
1022
- price?: number | null | undefined;
1023
- symbol: string;
1024
- name: string | null;
1025
- id: string;
1026
- icon: string;
1027
- address: string;
1028
- chainId: number;
1029
- decimals: number;
1030
- verified: boolean;
1031
- isTest: boolean;
1032
- isPoint: boolean;
1033
- isPreTGE: boolean;
1034
- };
1035
- id: string;
1036
- value: number;
1037
- campaignId: string;
1038
- amount: string | bigint;
1039
- dailyRewardsRecordId: string;
1040
- }[];
1041
- } | undefined;
1042
- status: string;
1160
+ status: import("@db/api").$Enums.Status;
1043
1161
  type: string;
1044
1162
  name: string;
1045
- tokens: {
1046
- price?: number | null | undefined;
1163
+ description: string;
1164
+ id: string;
1165
+ tags: string[];
1166
+ identifier: string;
1167
+ action: import("@db/api").$Enums.OpportunityAction;
1168
+ manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
1169
+ chainId: number;
1170
+ howToSteps: string[];
1171
+ depositUrl: string | null;
1172
+ explorerAddress: string | null;
1173
+ mainProtocolId: string | null;
1174
+ tvl: number;
1175
+ apr: number;
1176
+ dailyRewards: number;
1177
+ lastCampaignCreatedAt: Date;
1178
+ };
1179
+ };
1180
+ };
1181
+ };
1182
+ };
1183
+ };
1184
+ } & {
1185
+ opportunities: {
1186
+ ":id": {
1187
+ override: {
1188
+ delete: {
1189
+ body: ("name" | "description" | "action" | "howToSteps" | "depositUrl" | "explorerAddress")[];
1190
+ params: {
1191
+ id: string;
1192
+ };
1193
+ query: unknown;
1194
+ headers: {
1195
+ authorization: string;
1196
+ };
1197
+ response: {
1198
+ 200: {
1199
+ Tokens: {
1047
1200
  symbol: string;
1048
1201
  name: string | null;
1049
1202
  id: string;
@@ -1051,222 +1204,70 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
1051
1204
  address: string;
1052
1205
  chainId: number;
1053
1206
  decimals: number;
1207
+ displaySymbol: string;
1054
1208
  verified: boolean;
1055
1209
  isTest: boolean;
1056
1210
  isPoint: boolean;
1057
1211
  isPreTGE: boolean;
1212
+ isNative: boolean;
1213
+ price: number | null;
1214
+ }[];
1215
+ Protocols: {
1216
+ url: string;
1217
+ name: string;
1218
+ description: string;
1219
+ id: string;
1220
+ tags: string[];
1221
+ icon: string;
1058
1222
  }[];
1223
+ status: import("@db/api").$Enums.Status;
1224
+ type: string;
1225
+ name: string;
1059
1226
  description: string;
1060
1227
  id: string;
1061
1228
  tags: string[];
1062
1229
  identifier: string;
1063
- chain: {
1064
- name: string;
1065
- id: number;
1066
- icon: string;
1067
- };
1068
- action: string;
1230
+ action: import("@db/api").$Enums.OpportunityAction;
1231
+ manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
1069
1232
  chainId: number;
1070
1233
  howToSteps: string[];
1234
+ depositUrl: string | null;
1235
+ explorerAddress: string | null;
1236
+ mainProtocolId: string | null;
1071
1237
  tvl: number;
1072
1238
  apr: number;
1073
1239
  dailyRewards: number;
1074
- lastCampaignCreatedAt: string;
1075
- campaigns: {
1076
- description?: string | undefined;
1077
- creator?: {
1078
- tags?: string[] | undefined;
1079
- creatorId?: string | null | undefined;
1080
- address: string;
1081
- } | undefined;
1082
- rootCampaignId?: string | undefined;
1083
- parentCampaignId?: string | undefined;
1084
- campaignStatus?: {
1085
- error?: string | undefined;
1086
- details?: any;
1087
- status: string;
1088
- campaignId: string;
1089
- computedUntil: string | number;
1090
- processingStarted: string | number;
1091
- } | undefined;
1092
- distributionChain?: {
1093
- name: string;
1094
- id: number;
1095
- icon: string;
1096
- } | undefined;
1097
- type: string;
1098
- id: string;
1099
- params: any;
1100
- subType: number | null;
1101
- chain: {
1102
- name: string;
1103
- id: number;
1104
- icon: string;
1105
- };
1106
- computeChainId: number;
1107
- distributionChainId: number;
1108
- campaignId: string;
1109
- rewardTokenId: string;
1110
- amount: string;
1111
- opportunityId: string;
1112
- startTimestamp: string | number;
1113
- endTimestamp: string | number;
1114
- creatorAddress: string;
1115
- createdAt: string;
1116
- rewardToken: {
1117
- price?: number | null | undefined;
1118
- symbol: string;
1119
- name: string | null;
1120
- id: string;
1121
- icon: string;
1122
- address: string;
1123
- chainId: number;
1124
- decimals: number;
1125
- verified: boolean;
1126
- isTest: boolean;
1127
- isPoint: boolean;
1128
- isPreTGE: boolean;
1129
- };
1130
- }[];
1131
- };
1132
- readonly 404: {
1133
- message: string;
1240
+ lastCampaignCreatedAt: Date;
1241
+ } | {
1242
+ id: string;
1243
+ chainId: number;
1244
+ type: string;
1245
+ identifier: string;
1134
1246
  name: string;
1135
- };
1136
- readonly 500: {
1137
- info: string;
1138
- code: string;
1139
- httpCode: number;
1140
- };
1141
- };
1142
- };
1143
- };
1144
- };
1145
- };
1146
- } & {
1147
- opportunities: {
1148
- aggregate: {
1149
- ":field": {
1150
- get: {
1151
- body: unknown;
1152
- params: {
1153
- field: never;
1154
- };
1155
- query: {
1156
- status?: string | undefined;
1157
- search?: string | undefined;
1158
- sort?: string | undefined;
1159
- type?: string | undefined;
1160
- name?: string | undefined;
1161
- tokens?: string | undefined;
1162
- items?: number | undefined;
1163
- tags?: string | undefined;
1164
- identifier?: string | undefined;
1165
- page?: number | undefined;
1166
- action?: string | undefined;
1167
- campaignId?: string | undefined;
1168
- creatorAddress?: string | undefined;
1169
- chainId?: string | undefined;
1170
- mainProtocolId?: string | undefined;
1171
- campaigns?: boolean | undefined;
1172
- point?: boolean | undefined;
1173
- rewardTokenSymbol?: string | undefined;
1174
- order?: string | undefined;
1175
- test?: boolean | undefined;
1176
- minimumTvl?: number | undefined;
1177
- };
1178
- headers: unknown;
1179
- response: {
1180
- 200: {
1181
- sum: string;
1182
- };
1183
- };
1184
- };
1185
- };
1186
- };
1187
- };
1188
- } & {
1189
- opportunities: {
1190
- aggregate: {
1191
- max: {
1192
- ":field": {
1193
- get: {
1194
- body: unknown;
1195
- params: {
1196
- field: never;
1197
- };
1198
- query: {
1199
- status?: string | undefined;
1200
- search?: string | undefined;
1201
- sort?: string | undefined;
1202
- type?: string | undefined;
1203
- name?: string | undefined;
1204
- tokens?: string | undefined;
1205
- items?: number | undefined;
1206
- tags?: string | undefined;
1207
- identifier?: string | undefined;
1208
- page?: number | undefined;
1209
- action?: string | undefined;
1210
- campaignId?: string | undefined;
1211
- creatorAddress?: string | undefined;
1212
- chainId?: string | undefined;
1213
- mainProtocolId?: string | undefined;
1214
- campaigns?: boolean | undefined;
1215
- point?: boolean | undefined;
1216
- rewardTokenSymbol?: string | undefined;
1217
- order?: string | undefined;
1218
- test?: boolean | undefined;
1219
- minimumTvl?: number | undefined;
1220
- };
1221
- headers: unknown;
1222
- response: {
1223
- 200: {
1224
- max: string;
1225
- };
1226
- };
1227
- };
1228
- };
1229
- };
1230
- };
1231
- };
1232
- } & {
1233
- opportunities: {
1234
- aggregate: {
1235
- min: {
1236
- ":field": {
1237
- get: {
1238
- body: unknown;
1239
- params: {
1240
- field: never;
1241
- };
1242
- query: {
1243
- status?: string | undefined;
1244
- search?: string | undefined;
1245
- sort?: string | undefined;
1246
- type?: string | undefined;
1247
- name?: string | undefined;
1248
- tokens?: string | undefined;
1249
- items?: number | undefined;
1250
- tags?: string | undefined;
1251
- identifier?: string | undefined;
1252
- page?: number | undefined;
1253
- action?: string | undefined;
1254
- campaignId?: string | undefined;
1255
- creatorAddress?: string | undefined;
1256
- chainId?: string | undefined;
1257
- mainProtocolId?: string | undefined;
1258
- campaigns?: boolean | undefined;
1259
- point?: boolean | undefined;
1260
- rewardTokenSymbol?: string | undefined;
1261
- order?: string | undefined;
1262
- test?: boolean | undefined;
1263
- minimumTvl?: number | undefined;
1264
- };
1265
- headers: unknown;
1266
- response: {
1267
- 200: {
1268
- min: string;
1269
- };
1247
+ status: "PAST" | "LIVE" | "SOON";
1248
+ action: any;
1249
+ tokens: ({
1250
+ symbol: string;
1251
+ name: string | null;
1252
+ id: string;
1253
+ icon: string;
1254
+ address: string;
1255
+ chainId: number;
1256
+ decimals: number;
1257
+ verified: boolean;
1258
+ isTest: boolean;
1259
+ isPoint: boolean;
1260
+ isPreTGE: boolean;
1261
+ isNative: boolean;
1262
+ } & {
1263
+ price?: number | null | undefined;
1264
+ })[];
1265
+ 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" | "punchswap" | "gamma" | "stability" | "termmax" | "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" | "puffer" | undefined;
1266
+ description: string;
1267
+ howToSteps: string[];
1268
+ depositUrl: string | undefined;
1269
+ explorerAddress: string | undefined;
1270
+ tags: string[];
1270
1271
  };
1271
1272
  };
1272
1273
  };
@@ -1280,5 +1281,14 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
1280
1281
  }, {
1281
1282
  derive: {};
1282
1283
  resolve: {};
1283
- schema: {};
1284
+ schema: {
1285
+ body: unknown;
1286
+ headers: {
1287
+ authorization: string;
1288
+ };
1289
+ query: unknown;
1290
+ params: unknown;
1291
+ cookie: unknown;
1292
+ response: {};
1293
+ };
1284
1294
  }>;