@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
@@ -159,34 +159,173 @@ declare const app: Elysia<"", false, {
159
159
  v4: {
160
160
  opportunities: {
161
161
  index: {
162
- post: {
163
- body: {
164
- name?: string | undefined;
165
- description?: string | undefined;
166
- tags?: string[] | undefined;
167
- howToSteps?: string[] | undefined;
168
- depositUrl?: string | undefined;
169
- explorerAddress?: string | undefined;
170
- protocols?: string[] | undefined;
171
- mainProtocol?: string | undefined;
172
- status: "NONE" | "PAST" | "LIVE" | "SOON";
173
- type: string;
174
- tokens: {
175
- address: string;
176
- chainId: number;
177
- }[];
178
- identifier: string;
179
- action: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID";
180
- chainId: number;
181
- };
162
+ get: {
163
+ body: unknown;
182
164
  params: {};
183
- query: unknown;
184
- headers: {
185
- authorization: string;
165
+ query: {
166
+ status?: string | undefined;
167
+ search?: string | undefined;
168
+ sort?: string | undefined;
169
+ type?: string | undefined;
170
+ name?: string | undefined;
171
+ tokens?: string | undefined;
172
+ items?: number | undefined;
173
+ tags?: string | undefined;
174
+ identifier?: string | undefined;
175
+ page?: number | undefined;
176
+ action?: string | undefined;
177
+ campaignId?: string | undefined;
178
+ creatorAddress?: string | undefined;
179
+ chainId?: string | undefined;
180
+ mainProtocolId?: string | undefined;
181
+ campaigns?: boolean | undefined;
182
+ point?: boolean | undefined;
183
+ rewardTokenSymbol?: string | undefined;
184
+ order?: string | undefined;
185
+ test?: boolean | undefined;
186
+ minimumTvl?: number | undefined;
186
187
  };
188
+ headers: unknown;
187
189
  response: {
188
190
  200: {
189
- Tokens: {
191
+ apr: number;
192
+ aprRecord: {
193
+ cumulated: number;
194
+ timestamp: bigint;
195
+ breakdowns: ({
196
+ value: number;
197
+ distributionType: import("@db/api").$Enums.DistributionType;
198
+ identifier: string;
199
+ type: "CAMPAIGN";
200
+ } | {
201
+ value: number;
202
+ identifier: string;
203
+ type: import("@db/api").$Enums.AprType;
204
+ })[];
205
+ };
206
+ tvlRecord: {
207
+ id: string;
208
+ total: number;
209
+ timestamp: bigint;
210
+ breakdowns: {
211
+ type: import("@db/api").$Enums.TvlType;
212
+ identifier: string;
213
+ value: number;
214
+ }[];
215
+ };
216
+ rewardsRecord: {
217
+ id: string;
218
+ total: number;
219
+ timestamp: bigint;
220
+ breakdowns: {
221
+ id: string;
222
+ campaignId: string;
223
+ dailyRewardsRecordId: string;
224
+ token: {
225
+ symbol: string;
226
+ name: string | null;
227
+ id: string;
228
+ icon: string;
229
+ address: string;
230
+ chainId: number;
231
+ decimals: number;
232
+ displaySymbol: string;
233
+ verified: boolean;
234
+ isTest: boolean;
235
+ isPoint: boolean;
236
+ isPreTGE: boolean;
237
+ isNative: boolean;
238
+ price: number | null;
239
+ };
240
+ amount: any;
241
+ value: number;
242
+ distributionType: import("@db/api").$Enums.DistributionType;
243
+ }[];
244
+ };
245
+ campaigns: {
246
+ params: any;
247
+ chain: {
248
+ name: string;
249
+ id: number;
250
+ icon: string;
251
+ };
252
+ endTimestamp: number;
253
+ startTimestamp: number;
254
+ rewardToken: {
255
+ symbol: string;
256
+ name: string | null;
257
+ id: string;
258
+ icon: string;
259
+ address: string;
260
+ chainId: number;
261
+ decimals: number;
262
+ verified: boolean;
263
+ isTest: boolean;
264
+ isPoint: boolean;
265
+ isPreTGE: boolean;
266
+ isNative: boolean;
267
+ } & {
268
+ price?: number | null | undefined;
269
+ };
270
+ distributionChain: {
271
+ name: string;
272
+ id: number;
273
+ icon: string;
274
+ } | undefined;
275
+ campaignStatus: {
276
+ computedUntil: number;
277
+ processingStarted: number;
278
+ status: import("@db/api").$Enums.RunStatus;
279
+ error: string;
280
+ details: import("database/api/.generated/runtime/library").JsonValue;
281
+ campaignId: string;
282
+ } | undefined;
283
+ creatorAddress: string;
284
+ creator: {
285
+ tags: string[];
286
+ address: string;
287
+ creatorId: string | null;
288
+ };
289
+ createdAt: string;
290
+ description: string | undefined;
291
+ parentCampaignId: string | undefined;
292
+ rootCampaignId: string | undefined;
293
+ Opportunity: {
294
+ status: import("@db/api").$Enums.Status;
295
+ type: string;
296
+ name: string;
297
+ description: string;
298
+ id: string;
299
+ tags: string[];
300
+ identifier: string;
301
+ action: import("@db/api").$Enums.OpportunityAction;
302
+ manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
303
+ chainId: number;
304
+ howToSteps: string[];
305
+ depositUrl: string | null;
306
+ explorerAddress: string | null;
307
+ mainProtocolId: string | null;
308
+ tvl: number;
309
+ apr: number;
310
+ dailyRewards: number;
311
+ lastCampaignCreatedAt: Date;
312
+ };
313
+ type: string;
314
+ id: string;
315
+ subType: number | null;
316
+ computeChainId: number;
317
+ distributionChainId: number;
318
+ campaignId: string;
319
+ distributionType: import("@db/api").$Enums.DistributionType;
320
+ rewardTokenId: string;
321
+ amount: string;
322
+ opportunityId: string;
323
+ }[] | undefined;
324
+ id: string;
325
+ depositUrl: string | undefined;
326
+ explorerAddress: string | undefined;
327
+ lastCampaignCreatedAt: string;
328
+ tokens: ({
190
329
  symbol: string;
191
330
  name: string | null;
192
331
  id: string;
@@ -194,178 +333,160 @@ declare const app: Elysia<"", false, {
194
333
  address: string;
195
334
  chainId: number;
196
335
  decimals: number;
197
- displaySymbol: string;
198
336
  verified: boolean;
199
337
  isTest: boolean;
200
338
  isPoint: boolean;
201
339
  isPreTGE: boolean;
202
340
  isNative: boolean;
203
- price: number | null;
204
- }[];
205
- Protocols: {
341
+ } & {
342
+ price?: number | null | undefined;
343
+ })[];
344
+ chain: {
345
+ name: string;
346
+ id: number;
347
+ icon: string;
348
+ };
349
+ protocol: {
206
350
  url: string;
207
351
  name: string;
208
352
  description: string;
209
353
  id: string;
210
354
  tags: string[];
211
355
  icon: string;
212
- }[];
356
+ } | undefined;
213
357
  status: import("@db/api").$Enums.Status;
214
358
  type: string;
215
359
  name: string;
216
360
  description: string;
217
- id: string;
218
361
  tags: string[];
219
362
  identifier: string;
220
363
  action: import("@db/api").$Enums.OpportunityAction;
221
- manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
222
364
  chainId: number;
223
365
  howToSteps: string[];
224
- depositUrl: string | null;
225
- explorerAddress: string | null;
226
- mainProtocolId: string | null;
227
366
  tvl: number;
228
- apr: number;
229
367
  dailyRewards: number;
230
- lastCampaignCreatedAt: Date;
231
- };
368
+ }[];
232
369
  };
233
370
  };
234
371
  };
235
372
  };
236
373
  } & {
237
374
  opportunities: {
238
- ":id": {
239
- override: {
240
- patch: {
241
- body: {
242
- name?: string | undefined;
243
- description?: string | undefined;
244
- action?: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID" | undefined;
245
- howToSteps?: string[] | undefined;
246
- depositUrl?: string | undefined;
247
- explorerAddress?: string | undefined;
248
- };
249
- params: {
250
- id: string;
251
- };
252
- query: unknown;
253
- headers: {
254
- authorization: string;
255
- };
256
- response: {
257
- 200: {
258
- status: import("@db/api").$Enums.Status;
259
- type: string;
260
- name: string;
261
- description: string;
262
- id: string;
263
- tags: string[];
264
- identifier: string;
265
- action: import("@db/api").$Enums.OpportunityAction;
266
- manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
267
- chainId: number;
268
- howToSteps: string[];
269
- depositUrl: string | null;
270
- explorerAddress: string | null;
271
- mainProtocolId: string | null;
272
- tvl: number;
273
- apr: number;
274
- dailyRewards: number;
275
- lastCampaignCreatedAt: Date;
276
- };
277
- };
278
- };
279
- };
280
- };
281
- };
282
- } & {
375
+ count: {
376
+ get: {
377
+ body: unknown;
378
+ params: {};
379
+ query: {
380
+ status?: string | undefined;
381
+ search?: string | undefined;
382
+ sort?: string | undefined;
383
+ type?: string | undefined;
384
+ name?: string | undefined;
385
+ tokens?: string | undefined;
386
+ items?: number | undefined;
387
+ tags?: string | undefined;
388
+ identifier?: string | undefined;
389
+ page?: number | undefined;
390
+ action?: string | undefined;
391
+ campaignId?: string | undefined;
392
+ creatorAddress?: string | undefined;
393
+ chainId?: string | undefined;
394
+ mainProtocolId?: string | undefined;
395
+ campaigns?: boolean | undefined;
396
+ point?: boolean | undefined;
397
+ rewardTokenSymbol?: string | undefined;
398
+ order?: string | undefined;
399
+ test?: boolean | undefined;
400
+ minimumTvl?: number | undefined;
401
+ };
402
+ headers: unknown;
403
+ response: {
404
+ 200: number;
405
+ };
406
+ };
407
+ };
408
+ };
409
+ } & {
283
410
  opportunities: {
284
- ":id": {
285
- override: {
286
- delete: {
287
- body: ("name" | "description" | "action" | "howToSteps" | "depositUrl" | "explorerAddress")[];
288
- params: {
289
- id: string;
411
+ bins: {
412
+ apr: {
413
+ get: {
414
+ body: unknown;
415
+ params: {};
416
+ query: {
417
+ status?: string | undefined;
418
+ search?: string | undefined;
419
+ sort?: string | undefined;
420
+ type?: string | undefined;
421
+ name?: string | undefined;
422
+ tokens?: string | undefined;
423
+ items?: number | undefined;
424
+ tags?: string | undefined;
425
+ identifier?: string | undefined;
426
+ page?: number | undefined;
427
+ action?: string | undefined;
428
+ campaignId?: string | undefined;
429
+ creatorAddress?: string | undefined;
430
+ chainId?: string | undefined;
431
+ mainProtocolId?: string | undefined;
432
+ campaigns?: boolean | undefined;
433
+ point?: boolean | undefined;
434
+ rewardTokenSymbol?: string | undefined;
435
+ order?: string | undefined;
436
+ test?: boolean | undefined;
437
+ minimumTvl?: number | undefined;
290
438
  };
291
- query: unknown;
292
- headers: {
293
- authorization: string;
439
+ headers: unknown;
440
+ response: {
441
+ 200: {
442
+ min: number;
443
+ max: number;
444
+ overThreshold: number;
445
+ binWidth: number;
446
+ bins: any[];
447
+ };
294
448
  };
449
+ };
450
+ };
451
+ };
452
+ };
453
+ } & {
454
+ opportunities: {
455
+ bins: {
456
+ tvl: {
457
+ get: {
458
+ body: unknown;
459
+ params: {};
460
+ query: {
461
+ status?: string | undefined;
462
+ search?: string | undefined;
463
+ sort?: string | undefined;
464
+ type?: string | undefined;
465
+ name?: string | undefined;
466
+ tokens?: string | undefined;
467
+ items?: number | undefined;
468
+ tags?: string | undefined;
469
+ identifier?: string | undefined;
470
+ page?: number | undefined;
471
+ action?: string | undefined;
472
+ campaignId?: string | undefined;
473
+ creatorAddress?: string | undefined;
474
+ chainId?: string | undefined;
475
+ mainProtocolId?: string | undefined;
476
+ campaigns?: boolean | undefined;
477
+ point?: boolean | undefined;
478
+ rewardTokenSymbol?: string | undefined;
479
+ order?: string | undefined;
480
+ test?: boolean | undefined;
481
+ minimumTvl?: number | undefined;
482
+ };
483
+ headers: unknown;
295
484
  response: {
296
485
  200: {
297
- Tokens: {
298
- symbol: string;
299
- name: string | null;
300
- id: string;
301
- icon: string;
302
- address: string;
303
- chainId: number;
304
- decimals: number;
305
- displaySymbol: string;
306
- verified: boolean;
307
- isTest: boolean;
308
- isPoint: boolean;
309
- isPreTGE: boolean;
310
- isNative: boolean;
311
- price: number | null;
312
- }[];
313
- Protocols: {
314
- url: string;
315
- name: string;
316
- description: string;
317
- id: string;
318
- tags: string[];
319
- icon: string;
320
- }[];
321
- status: import("@db/api").$Enums.Status;
322
- type: string;
323
- name: string;
324
- description: string;
325
- id: string;
326
- tags: string[];
327
- identifier: string;
328
- action: import("@db/api").$Enums.OpportunityAction;
329
- manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
330
- chainId: number;
331
- howToSteps: string[];
332
- depositUrl: string | null;
333
- explorerAddress: string | null;
334
- mainProtocolId: string | null;
335
- tvl: number;
336
- apr: number;
337
- dailyRewards: number;
338
- lastCampaignCreatedAt: Date;
339
- } | {
340
- id: string;
341
- chainId: number;
342
- type: string;
343
- identifier: string;
344
- name: string;
345
- status: "PAST" | "LIVE" | "SOON";
346
- action: any;
347
- tokens: ({
348
- symbol: string;
349
- name: string | null;
350
- id: string;
351
- icon: string;
352
- address: string;
353
- chainId: number;
354
- decimals: number;
355
- verified: boolean;
356
- isTest: boolean;
357
- isPoint: boolean;
358
- isPreTGE: boolean;
359
- isNative: boolean;
360
- } & {
361
- price?: number | null | undefined;
362
- })[];
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" | "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;
364
- description: string;
365
- howToSteps: string[];
366
- depositUrl: string | undefined;
367
- explorerAddress: string | undefined;
368
- tags: string[];
486
+ min: number;
487
+ max: number;
488
+ binWidth: number;
489
+ bins: any[];
369
490
  };
370
491
  };
371
492
  };
@@ -375,19 +496,79 @@ declare const app: Elysia<"", false, {
375
496
  } & {
376
497
  opportunities: {
377
498
  ":id": {
378
- post: {
499
+ get: {
379
500
  body: unknown;
380
501
  params: {
381
- campaignId?: string | undefined;
382
502
  id: string;
383
503
  };
384
- query: unknown;
385
- headers: {
386
- authorization: string;
504
+ query: {
505
+ campaigns?: boolean | undefined;
506
+ point?: boolean | undefined;
507
+ test?: boolean | undefined;
387
508
  };
509
+ headers: unknown;
388
510
  response: {
389
511
  200: {
390
- Tokens: {
512
+ protocol?: {
513
+ url: string;
514
+ name: string;
515
+ description: string;
516
+ id: string;
517
+ tags: string[];
518
+ icon: string;
519
+ } | null | undefined;
520
+ 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;
521
+ depositUrl?: string | undefined;
522
+ explorerAddress?: string | undefined;
523
+ aprRecord?: {
524
+ timestamp: string | bigint;
525
+ cumulated: number;
526
+ breakdowns: {
527
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
528
+ identifier: string;
529
+ value: number;
530
+ }[];
531
+ } | undefined;
532
+ tvlRecord?: {
533
+ total: number;
534
+ timestamp: string | bigint;
535
+ breakdowns: {
536
+ type: "TOKEN" | "PROTOCOL";
537
+ identifier: string;
538
+ value: number;
539
+ }[];
540
+ } | undefined;
541
+ rewardsRecord?: {
542
+ total: number;
543
+ id: string;
544
+ timestamp: string | bigint;
545
+ breakdowns: {
546
+ token: {
547
+ price?: number | null | undefined;
548
+ symbol: string;
549
+ name: string | null;
550
+ id: string;
551
+ icon: string;
552
+ address: string;
553
+ chainId: number;
554
+ decimals: number;
555
+ verified: boolean;
556
+ isTest: boolean;
557
+ isPoint: boolean;
558
+ isPreTGE: boolean;
559
+ };
560
+ id: string;
561
+ value: number;
562
+ campaignId: string;
563
+ amount: string | bigint;
564
+ dailyRewardsRecordId: string;
565
+ }[];
566
+ } | undefined;
567
+ status: string;
568
+ type: string;
569
+ name: string;
570
+ tokens: {
571
+ price?: number | null | undefined;
391
572
  symbol: string;
392
573
  name: string | null;
393
574
  id: string;
@@ -395,70 +576,36 @@ declare const app: Elysia<"", false, {
395
576
  address: string;
396
577
  chainId: number;
397
578
  decimals: number;
398
- displaySymbol: string;
399
579
  verified: boolean;
400
580
  isTest: boolean;
401
581
  isPoint: boolean;
402
582
  isPreTGE: boolean;
403
- isNative: boolean;
404
- price: number | null;
405
- }[];
406
- Protocols: {
407
- url: string;
408
- name: string;
409
- description: string;
410
- id: string;
411
- tags: string[];
412
- icon: string;
413
583
  }[];
414
- status: import("@db/api").$Enums.Status;
415
- type: string;
416
- name: string;
417
584
  description: string;
418
585
  id: string;
419
586
  tags: string[];
420
587
  identifier: string;
421
- action: import("@db/api").$Enums.OpportunityAction;
422
- manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
588
+ chain: {
589
+ name: string;
590
+ id: number;
591
+ icon: string;
592
+ };
593
+ action: string;
423
594
  chainId: number;
424
595
  howToSteps: string[];
425
- depositUrl: string | null;
426
- explorerAddress: string | null;
427
- mainProtocolId: string | null;
428
596
  tvl: number;
429
597
  apr: number;
430
598
  dailyRewards: number;
431
- lastCampaignCreatedAt: Date;
432
- } | {
433
- id: string;
434
- chainId: number;
435
- type: string;
436
- identifier: string;
599
+ lastCampaignCreatedAt: string;
600
+ };
601
+ readonly 404: {
602
+ message: string;
437
603
  name: string;
438
- status: "PAST" | "LIVE" | "SOON";
439
- action: any;
440
- tokens: ({
441
- symbol: string;
442
- name: string | null;
443
- id: string;
444
- icon: string;
445
- address: string;
446
- chainId: number;
447
- decimals: number;
448
- verified: boolean;
449
- isTest: boolean;
450
- isPoint: boolean;
451
- isPreTGE: boolean;
452
- isNative: boolean;
453
- } & {
454
- price?: number | null | undefined;
455
- })[];
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" | "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;
457
- description: string;
458
- howToSteps: string[];
459
- depositUrl: string | undefined;
460
- explorerAddress: string | undefined;
461
- tags: string[];
604
+ };
605
+ readonly 500: {
606
+ info: string;
607
+ code: string;
608
+ httpCode: number;
462
609
  };
463
610
  };
464
611
  };
@@ -466,70 +613,76 @@ declare const app: Elysia<"", false, {
466
613
  };
467
614
  } & {
468
615
  opportunities: {
469
- index: {
616
+ campaigns: {
470
617
  get: {
471
618
  body: unknown;
472
619
  params: {};
473
620
  query: {
474
- status?: string | undefined;
475
- search?: string | undefined;
476
- sort?: string | undefined;
621
+ status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
477
622
  type?: string | undefined;
478
- name?: string | undefined;
479
- tokens?: string | undefined;
623
+ id?: string | undefined;
480
624
  items?: number | undefined;
481
- tags?: string | undefined;
482
- identifier?: string | undefined;
625
+ subType?: number | undefined;
483
626
  page?: number | undefined;
484
- action?: string | undefined;
627
+ types?: string[] | undefined;
485
628
  campaignId?: string | undefined;
629
+ opportunityId?: string | undefined;
630
+ startTimestamp?: string | undefined;
631
+ endTimestamp?: string | undefined;
486
632
  creatorAddress?: string | undefined;
487
- chainId?: string | undefined;
488
- mainProtocolId?: string | undefined;
489
- campaigns?: boolean | undefined;
633
+ rootCampaignId?: string | undefined;
634
+ parentCampaignId?: string | undefined;
635
+ chainId?: number | undefined;
636
+ creatorId?: string | undefined;
637
+ mainParameter?: string | undefined;
490
638
  point?: boolean | undefined;
491
- rewardTokenSymbol?: string | undefined;
492
- order?: string | undefined;
639
+ tokenAddress?: string | undefined;
493
640
  test?: boolean | undefined;
494
- minimumTvl?: number | undefined;
641
+ creatorTag?: string | undefined;
642
+ distributionChainIds?: number[] | undefined;
643
+ tokenSymbol?: string | undefined;
644
+ withOpportunity?: boolean | undefined;
645
+ createdAfter?: Date | null | undefined;
495
646
  };
496
647
  headers: unknown;
497
648
  response: {
498
649
  200: {
499
- apr: number;
500
- aprRecord: {
650
+ protocol?: {
651
+ url: string;
652
+ name: string;
653
+ description: string;
654
+ id: string;
655
+ tags: string[];
656
+ icon: string;
657
+ } | null | undefined;
658
+ 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;
659
+ depositUrl?: string | undefined;
660
+ explorerAddress?: string | undefined;
661
+ aprRecord?: {
662
+ timestamp: string | bigint;
501
663
  cumulated: number;
502
- timestamp: bigint;
503
- breakdowns: ({
504
- value: number;
505
- distributionType: import("@db/api").$Enums.DistributionType;
506
- identifier: string;
507
- type: "CAMPAIGN";
508
- } | {
509
- value: number;
664
+ breakdowns: {
665
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
510
666
  identifier: string;
511
- type: import("@db/api").$Enums.AprType;
512
- })[];
513
- };
514
- tvlRecord: {
515
- id: string;
667
+ value: number;
668
+ }[];
669
+ } | undefined;
670
+ tvlRecord?: {
516
671
  total: number;
517
- timestamp: bigint;
672
+ timestamp: string | bigint;
518
673
  breakdowns: {
519
- type: import("@db/api").$Enums.TvlType;
674
+ type: "TOKEN" | "PROTOCOL";
520
675
  identifier: string;
521
676
  value: number;
522
677
  }[];
523
- };
524
- rewardsRecord: {
525
- id: string;
678
+ } | undefined;
679
+ rewardsRecord?: {
526
680
  total: number;
527
- timestamp: bigint;
681
+ id: string;
682
+ timestamp: string | bigint;
528
683
  breakdowns: {
529
- id: string;
530
- campaignId: string;
531
- dailyRewardsRecordId: string;
532
684
  token: {
685
+ price?: number | null | undefined;
533
686
  symbol: string;
534
687
  name: string | null;
535
688
  id: string;
@@ -537,29 +690,94 @@ declare const app: Elysia<"", false, {
537
690
  address: string;
538
691
  chainId: number;
539
692
  decimals: number;
540
- displaySymbol: string;
541
693
  verified: boolean;
542
694
  isTest: boolean;
543
695
  isPoint: boolean;
544
696
  isPreTGE: boolean;
545
- isNative: boolean;
546
- price: number | null;
547
697
  };
548
- amount: any;
698
+ id: string;
549
699
  value: number;
550
- distributionType: import("@db/api").$Enums.DistributionType;
700
+ campaignId: string;
701
+ amount: string | bigint;
702
+ dailyRewardsRecordId: string;
551
703
  }[];
704
+ } | undefined;
705
+ status: string;
706
+ type: string;
707
+ name: string;
708
+ tokens: {
709
+ price?: number | null | undefined;
710
+ symbol: string;
711
+ name: string | null;
712
+ id: string;
713
+ icon: string;
714
+ address: string;
715
+ chainId: number;
716
+ decimals: number;
717
+ verified: boolean;
718
+ isTest: boolean;
719
+ isPoint: boolean;
720
+ isPreTGE: boolean;
721
+ }[];
722
+ description: string;
723
+ id: string;
724
+ tags: string[];
725
+ identifier: string;
726
+ chain: {
727
+ name: string;
728
+ id: number;
729
+ icon: string;
552
730
  };
731
+ action: string;
732
+ chainId: number;
733
+ howToSteps: string[];
734
+ tvl: number;
735
+ apr: number;
736
+ dailyRewards: number;
737
+ lastCampaignCreatedAt: string;
553
738
  campaigns: {
739
+ description?: string | undefined;
740
+ creator?: {
741
+ tags?: string[] | undefined;
742
+ creatorId?: string | null | undefined;
743
+ address: string;
744
+ } | undefined;
745
+ rootCampaignId?: string | undefined;
746
+ parentCampaignId?: string | undefined;
747
+ campaignStatus?: {
748
+ error?: string | undefined;
749
+ details?: any;
750
+ status: string;
751
+ campaignId: string;
752
+ computedUntil: string | number;
753
+ processingStarted: string | number;
754
+ } | undefined;
755
+ distributionChain?: {
756
+ name: string;
757
+ id: number;
758
+ icon: string;
759
+ } | undefined;
760
+ type: string;
761
+ id: string;
554
762
  params: any;
763
+ subType: number | null;
555
764
  chain: {
556
765
  name: string;
557
766
  id: number;
558
767
  icon: string;
559
768
  };
560
- endTimestamp: number;
561
- startTimestamp: number;
769
+ computeChainId: number;
770
+ distributionChainId: number;
771
+ campaignId: string;
772
+ rewardTokenId: string;
773
+ amount: string;
774
+ opportunityId: string;
775
+ startTimestamp: string | number;
776
+ endTimestamp: string | number;
777
+ creatorAddress: string;
778
+ createdAt: string;
562
779
  rewardToken: {
780
+ price?: number | null | undefined;
563
781
  symbol: string;
564
782
  name: string | null;
565
783
  id: string;
@@ -571,156 +789,207 @@ declare const app: Elysia<"", false, {
571
789
  isTest: boolean;
572
790
  isPoint: boolean;
573
791
  isPreTGE: boolean;
574
- isNative: boolean;
575
- } & {
576
- price?: number | null | undefined;
577
792
  };
578
- distributionChain: {
793
+ }[];
794
+ }[];
795
+ readonly 404: {
796
+ message: string;
797
+ name: string;
798
+ };
799
+ readonly 500: {
800
+ info: string;
801
+ code: string;
802
+ httpCode: number;
803
+ };
804
+ };
805
+ };
806
+ };
807
+ };
808
+ } & {
809
+ opportunities: {
810
+ ":id": {
811
+ campaigns: {
812
+ get: {
813
+ body: unknown;
814
+ params: {
815
+ id: string;
816
+ };
817
+ query: {
818
+ campaigns?: boolean | undefined;
819
+ point?: boolean | undefined;
820
+ test?: boolean | undefined;
821
+ };
822
+ headers: unknown;
823
+ response: {
824
+ 200: {
825
+ protocol?: {
826
+ url: string;
579
827
  name: string;
580
- id: number;
828
+ description: string;
829
+ id: string;
830
+ tags: string[];
581
831
  icon: string;
832
+ } | null | undefined;
833
+ 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;
834
+ depositUrl?: string | undefined;
835
+ explorerAddress?: string | undefined;
836
+ aprRecord?: {
837
+ timestamp: string | bigint;
838
+ cumulated: number;
839
+ breakdowns: {
840
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
841
+ identifier: string;
842
+ value: number;
843
+ }[];
582
844
  } | undefined;
583
- campaignStatus: {
584
- computedUntil: number;
585
- processingStarted: number;
586
- status: import("@db/api").$Enums.RunStatus;
587
- error: string;
588
- details: import("database/api/.generated/runtime/library").JsonValue;
589
- campaignId: string;
845
+ tvlRecord?: {
846
+ total: number;
847
+ timestamp: string | bigint;
848
+ breakdowns: {
849
+ type: "TOKEN" | "PROTOCOL";
850
+ identifier: string;
851
+ value: number;
852
+ }[];
590
853
  } | undefined;
591
- creatorAddress: string;
592
- creator: {
593
- tags: string[];
594
- address: string;
595
- creatorId: string | null;
596
- };
597
- createdAt: string;
598
- description: string | undefined;
599
- parentCampaignId: string | undefined;
600
- rootCampaignId: string | undefined;
601
- Opportunity: {
602
- status: import("@db/api").$Enums.Status;
603
- type: string;
604
- name: string;
605
- description: string;
854
+ rewardsRecord?: {
855
+ total: number;
606
856
  id: string;
607
- tags: string[];
608
- identifier: string;
609
- action: import("@db/api").$Enums.OpportunityAction;
610
- manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
611
- chainId: number;
612
- howToSteps: string[];
613
- depositUrl: string | null;
614
- explorerAddress: string | null;
615
- mainProtocolId: string | null;
616
- tvl: number;
617
- apr: number;
618
- dailyRewards: number;
619
- lastCampaignCreatedAt: Date;
620
- };
621
- type: string;
622
- id: string;
623
- subType: number | null;
624
- computeChainId: number;
625
- distributionChainId: number;
626
- campaignId: string;
627
- distributionType: import("@db/api").$Enums.DistributionType;
628
- rewardTokenId: string;
629
- amount: string;
630
- opportunityId: string;
631
- }[] | undefined;
632
- id: string;
633
- depositUrl: string | undefined;
634
- explorerAddress: string | undefined;
635
- lastCampaignCreatedAt: string;
636
- tokens: ({
637
- symbol: string;
638
- name: string | null;
639
- id: string;
640
- icon: string;
641
- address: string;
642
- chainId: number;
643
- decimals: number;
644
- verified: boolean;
645
- isTest: boolean;
646
- isPoint: boolean;
647
- isPreTGE: boolean;
648
- isNative: boolean;
649
- } & {
650
- price?: number | null | undefined;
651
- })[];
652
- chain: {
653
- name: string;
654
- id: number;
655
- icon: string;
656
- };
657
- protocol: {
658
- url: string;
857
+ timestamp: string | bigint;
858
+ breakdowns: {
859
+ token: {
860
+ price?: number | null | undefined;
861
+ symbol: string;
862
+ name: string | null;
863
+ id: string;
864
+ icon: string;
865
+ address: string;
866
+ chainId: number;
867
+ decimals: number;
868
+ verified: boolean;
869
+ isTest: boolean;
870
+ isPoint: boolean;
871
+ isPreTGE: boolean;
872
+ };
873
+ id: string;
874
+ value: number;
875
+ campaignId: string;
876
+ amount: string | bigint;
877
+ dailyRewardsRecordId: string;
878
+ }[];
879
+ } | undefined;
880
+ status: string;
881
+ type: string;
659
882
  name: string;
883
+ tokens: {
884
+ price?: number | null | undefined;
885
+ symbol: string;
886
+ name: string | null;
887
+ id: string;
888
+ icon: string;
889
+ address: string;
890
+ chainId: number;
891
+ decimals: number;
892
+ verified: boolean;
893
+ isTest: boolean;
894
+ isPoint: boolean;
895
+ isPreTGE: boolean;
896
+ }[];
660
897
  description: string;
661
898
  id: string;
662
899
  tags: string[];
663
- icon: string;
664
- } | undefined;
665
- status: import("@db/api").$Enums.Status;
666
- type: string;
667
- name: string;
668
- description: string;
669
- tags: string[];
670
- identifier: string;
671
- action: import("@db/api").$Enums.OpportunityAction;
672
- chainId: number;
673
- howToSteps: string[];
674
- tvl: number;
675
- dailyRewards: number;
676
- }[];
677
- };
678
- };
679
- };
680
- };
681
- } & {
682
- opportunities: {
683
- count: {
684
- get: {
685
- body: unknown;
686
- params: {};
687
- query: {
688
- status?: string | undefined;
689
- search?: string | undefined;
690
- sort?: string | undefined;
691
- type?: string | undefined;
692
- name?: string | undefined;
693
- tokens?: string | undefined;
694
- items?: number | undefined;
695
- tags?: string | undefined;
696
- identifier?: string | undefined;
697
- page?: number | undefined;
698
- action?: string | undefined;
699
- campaignId?: string | undefined;
700
- creatorAddress?: string | undefined;
701
- chainId?: string | undefined;
702
- mainProtocolId?: string | undefined;
703
- campaigns?: boolean | undefined;
704
- point?: boolean | undefined;
705
- rewardTokenSymbol?: string | undefined;
706
- order?: string | undefined;
707
- test?: boolean | undefined;
708
- minimumTvl?: number | undefined;
709
- };
710
- headers: unknown;
711
- response: {
712
- 200: number;
900
+ identifier: string;
901
+ chain: {
902
+ name: string;
903
+ id: number;
904
+ icon: string;
905
+ };
906
+ action: string;
907
+ chainId: number;
908
+ howToSteps: string[];
909
+ tvl: number;
910
+ apr: number;
911
+ dailyRewards: number;
912
+ lastCampaignCreatedAt: string;
913
+ campaigns: {
914
+ description?: string | undefined;
915
+ creator?: {
916
+ tags?: string[] | undefined;
917
+ creatorId?: string | null | undefined;
918
+ address: string;
919
+ } | undefined;
920
+ rootCampaignId?: string | undefined;
921
+ parentCampaignId?: string | undefined;
922
+ campaignStatus?: {
923
+ error?: string | undefined;
924
+ details?: any;
925
+ status: string;
926
+ campaignId: string;
927
+ computedUntil: string | number;
928
+ processingStarted: string | number;
929
+ } | undefined;
930
+ distributionChain?: {
931
+ name: string;
932
+ id: number;
933
+ icon: string;
934
+ } | undefined;
935
+ type: string;
936
+ id: string;
937
+ params: any;
938
+ subType: number | null;
939
+ chain: {
940
+ name: string;
941
+ id: number;
942
+ icon: string;
943
+ };
944
+ computeChainId: number;
945
+ distributionChainId: number;
946
+ campaignId: string;
947
+ rewardTokenId: string;
948
+ amount: string;
949
+ opportunityId: string;
950
+ startTimestamp: string | number;
951
+ endTimestamp: string | number;
952
+ creatorAddress: string;
953
+ createdAt: string;
954
+ rewardToken: {
955
+ price?: number | null | undefined;
956
+ symbol: string;
957
+ name: string | null;
958
+ id: string;
959
+ icon: string;
960
+ address: string;
961
+ chainId: number;
962
+ decimals: number;
963
+ verified: boolean;
964
+ isTest: boolean;
965
+ isPoint: boolean;
966
+ isPreTGE: boolean;
967
+ };
968
+ }[];
969
+ };
970
+ readonly 404: {
971
+ message: string;
972
+ name: string;
973
+ };
974
+ readonly 500: {
975
+ info: string;
976
+ code: string;
977
+ httpCode: number;
978
+ };
979
+ };
713
980
  };
714
981
  };
715
982
  };
716
983
  };
717
984
  } & {
718
985
  opportunities: {
719
- bins: {
720
- apr: {
986
+ aggregate: {
987
+ ":field": {
721
988
  get: {
722
989
  body: unknown;
723
- params: {};
990
+ params: {
991
+ field: never;
992
+ };
724
993
  query: {
725
994
  status?: string | undefined;
726
995
  search?: string | undefined;
@@ -747,11 +1016,7 @@ declare const app: Elysia<"", false, {
747
1016
  headers: unknown;
748
1017
  response: {
749
1018
  200: {
750
- min: number;
751
- max: number;
752
- overThreshold: number;
753
- binWidth: number;
754
- bins: any[];
1019
+ sum: string;
755
1020
  };
756
1021
  };
757
1022
  };
@@ -760,41 +1025,86 @@ declare const app: Elysia<"", false, {
760
1025
  };
761
1026
  } & {
762
1027
  opportunities: {
763
- bins: {
764
- tvl: {
765
- get: {
766
- body: unknown;
767
- params: {};
768
- query: {
769
- status?: string | undefined;
770
- search?: string | undefined;
771
- sort?: string | undefined;
772
- type?: string | undefined;
773
- name?: string | undefined;
774
- tokens?: string | undefined;
775
- items?: number | undefined;
776
- tags?: string | undefined;
777
- identifier?: string | undefined;
778
- page?: number | undefined;
779
- action?: string | undefined;
780
- campaignId?: string | undefined;
781
- creatorAddress?: string | undefined;
782
- chainId?: string | undefined;
783
- mainProtocolId?: string | undefined;
784
- campaigns?: boolean | undefined;
785
- point?: boolean | undefined;
786
- rewardTokenSymbol?: string | undefined;
787
- order?: string | undefined;
788
- test?: boolean | undefined;
789
- minimumTvl?: number | undefined;
1028
+ aggregate: {
1029
+ max: {
1030
+ ":field": {
1031
+ get: {
1032
+ body: unknown;
1033
+ params: {
1034
+ field: never;
1035
+ };
1036
+ query: {
1037
+ status?: string | undefined;
1038
+ search?: string | undefined;
1039
+ sort?: string | undefined;
1040
+ type?: string | undefined;
1041
+ name?: string | undefined;
1042
+ tokens?: string | undefined;
1043
+ items?: number | undefined;
1044
+ tags?: string | undefined;
1045
+ identifier?: string | undefined;
1046
+ page?: number | undefined;
1047
+ action?: string | undefined;
1048
+ campaignId?: string | undefined;
1049
+ creatorAddress?: string | undefined;
1050
+ chainId?: string | undefined;
1051
+ mainProtocolId?: string | undefined;
1052
+ campaigns?: boolean | undefined;
1053
+ point?: boolean | undefined;
1054
+ rewardTokenSymbol?: string | undefined;
1055
+ order?: string | undefined;
1056
+ test?: boolean | undefined;
1057
+ minimumTvl?: number | undefined;
1058
+ };
1059
+ headers: unknown;
1060
+ response: {
1061
+ 200: {
1062
+ max: string;
1063
+ };
1064
+ };
790
1065
  };
791
- headers: unknown;
792
- response: {
793
- 200: {
794
- min: number;
795
- max: number;
796
- binWidth: number;
797
- bins: any[];
1066
+ };
1067
+ };
1068
+ };
1069
+ };
1070
+ } & {
1071
+ opportunities: {
1072
+ aggregate: {
1073
+ min: {
1074
+ ":field": {
1075
+ get: {
1076
+ body: unknown;
1077
+ params: {
1078
+ field: never;
1079
+ };
1080
+ query: {
1081
+ status?: string | undefined;
1082
+ search?: string | undefined;
1083
+ sort?: string | undefined;
1084
+ type?: string | undefined;
1085
+ name?: string | undefined;
1086
+ tokens?: string | undefined;
1087
+ items?: number | undefined;
1088
+ tags?: string | undefined;
1089
+ identifier?: string | undefined;
1090
+ page?: number | undefined;
1091
+ action?: string | undefined;
1092
+ campaignId?: string | undefined;
1093
+ creatorAddress?: string | undefined;
1094
+ chainId?: string | undefined;
1095
+ mainProtocolId?: string | undefined;
1096
+ campaigns?: boolean | undefined;
1097
+ point?: boolean | undefined;
1098
+ rewardTokenSymbol?: string | undefined;
1099
+ order?: string | undefined;
1100
+ test?: boolean | undefined;
1101
+ minimumTvl?: number | undefined;
1102
+ };
1103
+ headers: unknown;
1104
+ response: {
1105
+ 200: {
1106
+ min: string;
1107
+ };
798
1108
  };
799
1109
  };
800
1110
  };
@@ -803,80 +1113,35 @@ declare const app: Elysia<"", false, {
803
1113
  };
804
1114
  } & {
805
1115
  opportunities: {
806
- ":id": {
807
- get: {
808
- body: unknown;
809
- params: {
810
- id: string;
1116
+ index: {
1117
+ post: {
1118
+ body: {
1119
+ name?: string | undefined;
1120
+ description?: string | undefined;
1121
+ tags?: string[] | undefined;
1122
+ howToSteps?: string[] | undefined;
1123
+ depositUrl?: string | undefined;
1124
+ explorerAddress?: string | undefined;
1125
+ protocols?: string[] | undefined;
1126
+ mainProtocol?: string | undefined;
1127
+ status: "NONE" | "PAST" | "LIVE" | "SOON";
1128
+ type: string;
1129
+ tokens: {
1130
+ address: string;
1131
+ chainId: number;
1132
+ }[];
1133
+ identifier: string;
1134
+ action: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID";
1135
+ chainId: number;
811
1136
  };
812
- query: {
813
- campaigns?: boolean | undefined;
814
- point?: boolean | undefined;
815
- test?: boolean | undefined;
1137
+ params: {};
1138
+ query: unknown;
1139
+ headers: {
1140
+ authorization: string;
816
1141
  };
817
- headers: unknown;
818
1142
  response: {
819
1143
  200: {
820
- protocol?: {
821
- url: string;
822
- name: string;
823
- description: string;
824
- id: string;
825
- tags: string[];
826
- icon: string;
827
- } | null | undefined;
828
- 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;
829
- depositUrl?: string | undefined;
830
- explorerAddress?: string | undefined;
831
- aprRecord?: {
832
- timestamp: string | bigint;
833
- cumulated: number;
834
- breakdowns: {
835
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
836
- identifier: string;
837
- value: number;
838
- }[];
839
- } | undefined;
840
- tvlRecord?: {
841
- total: number;
842
- timestamp: string | bigint;
843
- breakdowns: {
844
- type: "TOKEN" | "PROTOCOL";
845
- identifier: string;
846
- value: number;
847
- }[];
848
- } | undefined;
849
- rewardsRecord?: {
850
- total: number;
851
- id: string;
852
- timestamp: string | bigint;
853
- breakdowns: {
854
- token: {
855
- price?: number | null | undefined;
856
- symbol: string;
857
- name: string | null;
858
- id: string;
859
- icon: string;
860
- address: string;
861
- chainId: number;
862
- decimals: number;
863
- verified: boolean;
864
- isTest: boolean;
865
- isPoint: boolean;
866
- isPreTGE: boolean;
867
- };
868
- id: string;
869
- value: number;
870
- campaignId: string;
871
- amount: string | bigint;
872
- dailyRewardsRecordId: string;
873
- }[];
874
- } | undefined;
875
- status: string;
876
- type: string;
877
- name: string;
878
- tokens: {
879
- price?: number | null | undefined;
1144
+ Tokens: {
880
1145
  symbol: string;
881
1146
  name: string | null;
882
1147
  id: string;
@@ -884,136 +1149,61 @@ declare const app: Elysia<"", false, {
884
1149
  address: string;
885
1150
  chainId: number;
886
1151
  decimals: number;
1152
+ displaySymbol: string;
887
1153
  verified: boolean;
888
1154
  isTest: boolean;
889
1155
  isPoint: boolean;
890
1156
  isPreTGE: boolean;
1157
+ isNative: boolean;
1158
+ price: number | null;
1159
+ }[];
1160
+ Protocols: {
1161
+ url: string;
1162
+ name: string;
1163
+ description: string;
1164
+ id: string;
1165
+ tags: string[];
1166
+ icon: string;
891
1167
  }[];
1168
+ status: import("@db/api").$Enums.Status;
1169
+ type: string;
1170
+ name: string;
892
1171
  description: string;
893
1172
  id: string;
894
1173
  tags: string[];
895
1174
  identifier: string;
896
- chain: {
897
- name: string;
898
- id: number;
899
- icon: string;
900
- };
901
- action: string;
1175
+ action: import("@db/api").$Enums.OpportunityAction;
1176
+ manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
902
1177
  chainId: number;
903
1178
  howToSteps: string[];
1179
+ depositUrl: string | null;
1180
+ explorerAddress: string | null;
1181
+ mainProtocolId: string | null;
904
1182
  tvl: number;
905
1183
  apr: number;
906
1184
  dailyRewards: number;
907
- lastCampaignCreatedAt: string;
908
- };
909
- readonly 404: {
910
- message: string;
911
- name: string;
912
- };
913
- readonly 500: {
914
- info: string;
915
- code: string;
916
- httpCode: number;
1185
+ lastCampaignCreatedAt: Date;
917
1186
  };
918
1187
  };
919
- };
920
- };
921
- };
922
- } & {
923
- opportunities: {
924
- campaigns: {
925
- get: {
926
- body: unknown;
927
- params: {};
928
- query: {
929
- status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
930
- type?: string | undefined;
931
- items?: number | undefined;
932
- subType?: number | undefined;
933
- page?: number | undefined;
934
- types?: string[] | undefined;
935
- campaignId?: string | undefined;
936
- opportunityId?: string | undefined;
937
- startTimestamp?: string | undefined;
938
- endTimestamp?: string | undefined;
939
- creatorAddress?: string | undefined;
940
- rootCampaignId?: string | undefined;
941
- parentCampaignId?: string | undefined;
942
- chainId?: number | undefined;
943
- creatorId?: string | undefined;
944
- mainParameter?: string | undefined;
945
- point?: boolean | undefined;
946
- tokenAddress?: string | undefined;
947
- test?: boolean | undefined;
948
- creatorTag?: string | undefined;
949
- distributionChainIds?: number[] | undefined;
950
- tokenSymbol?: string | undefined;
951
- withOpportunity?: boolean | undefined;
952
- createdAfter?: Date | null | undefined;
953
- };
954
- headers: unknown;
955
- response: {
956
- 200: {
957
- protocol?: {
958
- url: string;
959
- name: string;
960
- description: string;
961
- id: string;
962
- tags: string[];
963
- icon: string;
964
- } | null | undefined;
965
- 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;
966
- depositUrl?: string | undefined;
967
- explorerAddress?: string | undefined;
968
- aprRecord?: {
969
- timestamp: string | bigint;
970
- cumulated: number;
971
- breakdowns: {
972
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
973
- identifier: string;
974
- value: number;
975
- }[];
976
- } | undefined;
977
- tvlRecord?: {
978
- total: number;
979
- timestamp: string | bigint;
980
- breakdowns: {
981
- type: "TOKEN" | "PROTOCOL";
982
- identifier: string;
983
- value: number;
984
- }[];
985
- } | undefined;
986
- rewardsRecord?: {
987
- total: number;
988
- id: string;
989
- timestamp: string | bigint;
990
- breakdowns: {
991
- token: {
992
- price?: number | null | undefined;
993
- symbol: string;
994
- name: string | null;
995
- id: string;
996
- icon: string;
997
- address: string;
998
- chainId: number;
999
- decimals: number;
1000
- verified: boolean;
1001
- isTest: boolean;
1002
- isPoint: boolean;
1003
- isPreTGE: boolean;
1004
- };
1005
- id: string;
1006
- value: number;
1007
- campaignId: string;
1008
- amount: string | bigint;
1009
- dailyRewardsRecordId: string;
1010
- }[];
1011
- } | undefined;
1012
- status: string;
1013
- type: string;
1014
- name: string;
1015
- tokens: {
1016
- price?: number | null | undefined;
1188
+ };
1189
+ };
1190
+ };
1191
+ } & {
1192
+ opportunities: {
1193
+ ":id": {
1194
+ post: {
1195
+ body: unknown;
1196
+ params: {
1197
+ campaignId?: string | undefined;
1198
+ id: string;
1199
+ };
1200
+ query: unknown;
1201
+ headers: {
1202
+ authorization: string;
1203
+ };
1204
+ response: {
1205
+ 200: {
1206
+ Tokens: {
1017
1207
  symbol: string;
1018
1208
  name: string | null;
1019
1209
  id: string;
@@ -1021,92 +1211,70 @@ declare const app: Elysia<"", false, {
1021
1211
  address: string;
1022
1212
  chainId: number;
1023
1213
  decimals: number;
1214
+ displaySymbol: string;
1024
1215
  verified: boolean;
1025
1216
  isTest: boolean;
1026
1217
  isPoint: boolean;
1027
1218
  isPreTGE: boolean;
1219
+ isNative: boolean;
1220
+ price: number | null;
1221
+ }[];
1222
+ Protocols: {
1223
+ url: string;
1224
+ name: string;
1225
+ description: string;
1226
+ id: string;
1227
+ tags: string[];
1228
+ icon: string;
1028
1229
  }[];
1230
+ status: import("@db/api").$Enums.Status;
1231
+ type: string;
1232
+ name: string;
1029
1233
  description: string;
1030
1234
  id: string;
1031
1235
  tags: string[];
1032
1236
  identifier: string;
1033
- chain: {
1034
- name: string;
1035
- id: number;
1036
- icon: string;
1037
- };
1038
- action: string;
1237
+ action: import("@db/api").$Enums.OpportunityAction;
1238
+ manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
1039
1239
  chainId: number;
1040
1240
  howToSteps: string[];
1241
+ depositUrl: string | null;
1242
+ explorerAddress: string | null;
1243
+ mainProtocolId: string | null;
1041
1244
  tvl: number;
1042
1245
  apr: number;
1043
1246
  dailyRewards: number;
1044
- lastCampaignCreatedAt: string;
1045
- campaigns: {
1046
- description?: string | undefined;
1047
- creator?: {
1048
- tags?: string[] | undefined;
1049
- creatorId?: string | null | undefined;
1050
- address: string;
1051
- } | undefined;
1052
- rootCampaignId?: string | undefined;
1053
- parentCampaignId?: string | undefined;
1054
- campaignStatus?: {
1055
- error?: string | undefined;
1056
- details?: any;
1057
- status: string;
1058
- campaignId: string;
1059
- computedUntil: string | number;
1060
- processingStarted: string | number;
1061
- } | undefined;
1062
- distributionChain?: {
1063
- name: string;
1064
- id: number;
1065
- icon: string;
1066
- } | undefined;
1067
- type: string;
1068
- id: string;
1069
- params: any;
1070
- subType: number | null;
1071
- chain: {
1072
- name: string;
1073
- id: number;
1074
- icon: string;
1075
- };
1076
- computeChainId: number;
1077
- distributionChainId: number;
1078
- campaignId: string;
1079
- rewardTokenId: string;
1080
- amount: string;
1081
- opportunityId: string;
1082
- startTimestamp: string | number;
1083
- endTimestamp: string | number;
1084
- creatorAddress: string;
1085
- createdAt: string;
1086
- rewardToken: {
1087
- price?: number | null | undefined;
1088
- symbol: string;
1089
- name: string | null;
1090
- id: string;
1091
- icon: string;
1092
- address: string;
1093
- chainId: number;
1094
- decimals: number;
1095
- verified: boolean;
1096
- isTest: boolean;
1097
- isPoint: boolean;
1098
- isPreTGE: boolean;
1099
- };
1100
- }[];
1101
- }[];
1102
- readonly 404: {
1103
- message: string;
1247
+ lastCampaignCreatedAt: Date;
1248
+ } | {
1249
+ id: string;
1250
+ chainId: number;
1251
+ type: string;
1252
+ identifier: string;
1104
1253
  name: string;
1105
- };
1106
- readonly 500: {
1107
- info: string;
1108
- code: string;
1109
- httpCode: number;
1254
+ status: "PAST" | "LIVE" | "SOON";
1255
+ action: any;
1256
+ tokens: ({
1257
+ symbol: string;
1258
+ name: string | null;
1259
+ id: string;
1260
+ icon: string;
1261
+ address: string;
1262
+ chainId: number;
1263
+ decimals: number;
1264
+ verified: boolean;
1265
+ isTest: boolean;
1266
+ isPoint: boolean;
1267
+ isPreTGE: boolean;
1268
+ isNative: boolean;
1269
+ } & {
1270
+ price?: number | null | undefined;
1271
+ })[];
1272
+ 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;
1273
+ description: string;
1274
+ howToSteps: string[];
1275
+ depositUrl: string | undefined;
1276
+ explorerAddress: string | undefined;
1277
+ tags: string[];
1110
1278
  };
1111
1279
  };
1112
1280
  };
@@ -1115,80 +1283,65 @@ declare const app: Elysia<"", false, {
1115
1283
  } & {
1116
1284
  opportunities: {
1117
1285
  ":id": {
1118
- campaigns: {
1119
- get: {
1120
- body: unknown;
1286
+ override: {
1287
+ patch: {
1288
+ body: {
1289
+ name?: string | undefined;
1290
+ description?: string | undefined;
1291
+ action?: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID" | undefined;
1292
+ howToSteps?: string[] | undefined;
1293
+ depositUrl?: string | undefined;
1294
+ explorerAddress?: string | undefined;
1295
+ };
1121
1296
  params: {
1122
1297
  id: string;
1123
1298
  };
1124
- query: {
1125
- campaigns?: boolean | undefined;
1126
- point?: boolean | undefined;
1127
- test?: boolean | undefined;
1299
+ query: unknown;
1300
+ headers: {
1301
+ authorization: string;
1128
1302
  };
1129
- headers: unknown;
1130
1303
  response: {
1131
1304
  200: {
1132
- protocol?: {
1133
- url: string;
1134
- name: string;
1135
- description: string;
1136
- id: string;
1137
- tags: string[];
1138
- icon: string;
1139
- } | null | undefined;
1140
- 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;
1141
- depositUrl?: string | undefined;
1142
- explorerAddress?: string | undefined;
1143
- aprRecord?: {
1144
- timestamp: string | bigint;
1145
- cumulated: number;
1146
- breakdowns: {
1147
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
1148
- identifier: string;
1149
- value: number;
1150
- }[];
1151
- } | undefined;
1152
- tvlRecord?: {
1153
- total: number;
1154
- timestamp: string | bigint;
1155
- breakdowns: {
1156
- type: "TOKEN" | "PROTOCOL";
1157
- identifier: string;
1158
- value: number;
1159
- }[];
1160
- } | undefined;
1161
- rewardsRecord?: {
1162
- total: number;
1163
- id: string;
1164
- timestamp: string | bigint;
1165
- breakdowns: {
1166
- token: {
1167
- price?: number | null | undefined;
1168
- symbol: string;
1169
- name: string | null;
1170
- id: string;
1171
- icon: string;
1172
- address: string;
1173
- chainId: number;
1174
- decimals: number;
1175
- verified: boolean;
1176
- isTest: boolean;
1177
- isPoint: boolean;
1178
- isPreTGE: boolean;
1179
- };
1180
- id: string;
1181
- value: number;
1182
- campaignId: string;
1183
- amount: string | bigint;
1184
- dailyRewardsRecordId: string;
1185
- }[];
1186
- } | undefined;
1187
- status: string;
1305
+ status: import("@db/api").$Enums.Status;
1188
1306
  type: string;
1189
1307
  name: string;
1190
- tokens: {
1191
- price?: number | null | undefined;
1308
+ description: string;
1309
+ id: string;
1310
+ tags: string[];
1311
+ identifier: string;
1312
+ action: import("@db/api").$Enums.OpportunityAction;
1313
+ manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
1314
+ chainId: number;
1315
+ howToSteps: string[];
1316
+ depositUrl: string | null;
1317
+ explorerAddress: string | null;
1318
+ mainProtocolId: string | null;
1319
+ tvl: number;
1320
+ apr: number;
1321
+ dailyRewards: number;
1322
+ lastCampaignCreatedAt: Date;
1323
+ };
1324
+ };
1325
+ };
1326
+ };
1327
+ };
1328
+ };
1329
+ } & {
1330
+ opportunities: {
1331
+ ":id": {
1332
+ override: {
1333
+ delete: {
1334
+ body: ("name" | "description" | "action" | "howToSteps" | "depositUrl" | "explorerAddress")[];
1335
+ params: {
1336
+ id: string;
1337
+ };
1338
+ query: unknown;
1339
+ headers: {
1340
+ authorization: string;
1341
+ };
1342
+ response: {
1343
+ 200: {
1344
+ Tokens: {
1192
1345
  symbol: string;
1193
1346
  name: string | null;
1194
1347
  id: string;
@@ -1196,222 +1349,70 @@ declare const app: Elysia<"", false, {
1196
1349
  address: string;
1197
1350
  chainId: number;
1198
1351
  decimals: number;
1352
+ displaySymbol: string;
1199
1353
  verified: boolean;
1200
1354
  isTest: boolean;
1201
1355
  isPoint: boolean;
1202
1356
  isPreTGE: boolean;
1357
+ isNative: boolean;
1358
+ price: number | null;
1359
+ }[];
1360
+ Protocols: {
1361
+ url: string;
1362
+ name: string;
1363
+ description: string;
1364
+ id: string;
1365
+ tags: string[];
1366
+ icon: string;
1203
1367
  }[];
1368
+ status: import("@db/api").$Enums.Status;
1369
+ type: string;
1370
+ name: string;
1204
1371
  description: string;
1205
1372
  id: string;
1206
1373
  tags: string[];
1207
1374
  identifier: string;
1208
- chain: {
1209
- name: string;
1210
- id: number;
1211
- icon: string;
1212
- };
1213
- action: string;
1375
+ action: import("@db/api").$Enums.OpportunityAction;
1376
+ manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
1214
1377
  chainId: number;
1215
1378
  howToSteps: string[];
1379
+ depositUrl: string | null;
1380
+ explorerAddress: string | null;
1381
+ mainProtocolId: string | null;
1216
1382
  tvl: number;
1217
1383
  apr: number;
1218
1384
  dailyRewards: number;
1219
- lastCampaignCreatedAt: string;
1220
- campaigns: {
1221
- description?: string | undefined;
1222
- creator?: {
1223
- tags?: string[] | undefined;
1224
- creatorId?: string | null | undefined;
1225
- address: string;
1226
- } | undefined;
1227
- rootCampaignId?: string | undefined;
1228
- parentCampaignId?: string | undefined;
1229
- campaignStatus?: {
1230
- error?: string | undefined;
1231
- details?: any;
1232
- status: string;
1233
- campaignId: string;
1234
- computedUntil: string | number;
1235
- processingStarted: string | number;
1236
- } | undefined;
1237
- distributionChain?: {
1238
- name: string;
1239
- id: number;
1240
- icon: string;
1241
- } | undefined;
1242
- type: string;
1243
- id: string;
1244
- params: any;
1245
- subType: number | null;
1246
- chain: {
1247
- name: string;
1248
- id: number;
1249
- icon: string;
1250
- };
1251
- computeChainId: number;
1252
- distributionChainId: number;
1253
- campaignId: string;
1254
- rewardTokenId: string;
1255
- amount: string;
1256
- opportunityId: string;
1257
- startTimestamp: string | number;
1258
- endTimestamp: string | number;
1259
- creatorAddress: string;
1260
- createdAt: string;
1261
- rewardToken: {
1262
- price?: number | null | undefined;
1263
- symbol: string;
1264
- name: string | null;
1265
- id: string;
1266
- icon: string;
1267
- address: string;
1268
- chainId: number;
1269
- decimals: number;
1270
- verified: boolean;
1271
- isTest: boolean;
1272
- isPoint: boolean;
1273
- isPreTGE: boolean;
1274
- };
1275
- }[];
1276
- };
1277
- readonly 404: {
1278
- message: string;
1385
+ lastCampaignCreatedAt: Date;
1386
+ } | {
1387
+ id: string;
1388
+ chainId: number;
1389
+ type: string;
1390
+ identifier: string;
1279
1391
  name: string;
1280
- };
1281
- readonly 500: {
1282
- info: string;
1283
- code: string;
1284
- httpCode: number;
1285
- };
1286
- };
1287
- };
1288
- };
1289
- };
1290
- };
1291
- } & {
1292
- opportunities: {
1293
- aggregate: {
1294
- ":field": {
1295
- get: {
1296
- body: unknown;
1297
- params: {
1298
- field: never;
1299
- };
1300
- query: {
1301
- status?: string | undefined;
1302
- search?: string | undefined;
1303
- sort?: string | undefined;
1304
- type?: string | undefined;
1305
- name?: string | undefined;
1306
- tokens?: string | undefined;
1307
- items?: number | undefined;
1308
- tags?: string | undefined;
1309
- identifier?: string | undefined;
1310
- page?: number | undefined;
1311
- action?: string | undefined;
1312
- campaignId?: string | undefined;
1313
- creatorAddress?: string | undefined;
1314
- chainId?: string | undefined;
1315
- mainProtocolId?: string | undefined;
1316
- campaigns?: boolean | undefined;
1317
- point?: boolean | undefined;
1318
- rewardTokenSymbol?: string | undefined;
1319
- order?: string | undefined;
1320
- test?: boolean | undefined;
1321
- minimumTvl?: number | undefined;
1322
- };
1323
- headers: unknown;
1324
- response: {
1325
- 200: {
1326
- sum: string;
1327
- };
1328
- };
1329
- };
1330
- };
1331
- };
1332
- };
1333
- } & {
1334
- opportunities: {
1335
- aggregate: {
1336
- max: {
1337
- ":field": {
1338
- get: {
1339
- body: unknown;
1340
- params: {
1341
- field: never;
1342
- };
1343
- query: {
1344
- status?: string | undefined;
1345
- search?: string | undefined;
1346
- sort?: string | undefined;
1347
- type?: string | undefined;
1348
- name?: string | undefined;
1349
- tokens?: string | undefined;
1350
- items?: number | undefined;
1351
- tags?: string | undefined;
1352
- identifier?: string | undefined;
1353
- page?: number | undefined;
1354
- action?: string | undefined;
1355
- campaignId?: string | undefined;
1356
- creatorAddress?: string | undefined;
1357
- chainId?: string | undefined;
1358
- mainProtocolId?: string | undefined;
1359
- campaigns?: boolean | undefined;
1360
- point?: boolean | undefined;
1361
- rewardTokenSymbol?: string | undefined;
1362
- order?: string | undefined;
1363
- test?: boolean | undefined;
1364
- minimumTvl?: number | undefined;
1365
- };
1366
- headers: unknown;
1367
- response: {
1368
- 200: {
1369
- max: string;
1370
- };
1371
- };
1372
- };
1373
- };
1374
- };
1375
- };
1376
- };
1377
- } & {
1378
- opportunities: {
1379
- aggregate: {
1380
- min: {
1381
- ":field": {
1382
- get: {
1383
- body: unknown;
1384
- params: {
1385
- field: never;
1386
- };
1387
- query: {
1388
- status?: string | undefined;
1389
- search?: string | undefined;
1390
- sort?: string | undefined;
1391
- type?: string | undefined;
1392
- name?: string | undefined;
1393
- tokens?: string | undefined;
1394
- items?: number | undefined;
1395
- tags?: string | undefined;
1396
- identifier?: string | undefined;
1397
- page?: number | undefined;
1398
- action?: string | undefined;
1399
- campaignId?: string | undefined;
1400
- creatorAddress?: string | undefined;
1401
- chainId?: string | undefined;
1402
- mainProtocolId?: string | undefined;
1403
- campaigns?: boolean | undefined;
1404
- point?: boolean | undefined;
1405
- rewardTokenSymbol?: string | undefined;
1406
- order?: string | undefined;
1407
- test?: boolean | undefined;
1408
- minimumTvl?: number | undefined;
1409
- };
1410
- headers: unknown;
1411
- response: {
1412
- 200: {
1413
- min: string;
1414
- };
1392
+ status: "PAST" | "LIVE" | "SOON";
1393
+ action: any;
1394
+ tokens: ({
1395
+ symbol: string;
1396
+ name: string | null;
1397
+ id: string;
1398
+ icon: string;
1399
+ address: string;
1400
+ chainId: number;
1401
+ decimals: number;
1402
+ verified: boolean;
1403
+ isTest: boolean;
1404
+ isPoint: boolean;
1405
+ isPreTGE: boolean;
1406
+ isNative: boolean;
1407
+ } & {
1408
+ price?: number | null | undefined;
1409
+ })[];
1410
+ 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;
1411
+ description: string;
1412
+ howToSteps: string[];
1413
+ depositUrl: string | undefined;
1414
+ explorerAddress: string | undefined;
1415
+ tags: string[];
1415
1416
  };
1416
1417
  };
1417
1418
  };
@@ -1665,6 +1666,7 @@ declare const app: Elysia<"", false, {
1665
1666
  query: {
1666
1667
  status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
1667
1668
  type?: string | undefined;
1669
+ id?: string | undefined;
1668
1670
  items?: number | undefined;
1669
1671
  subType?: number | undefined;
1670
1672
  page?: number | undefined;
@@ -1892,7 +1894,7 @@ declare const app: Elysia<"", false, {
1892
1894
  timestamp: bigint;
1893
1895
  walletCount: number;
1894
1896
  }[];
1895
- tvlInflowPerDollar: bigint;
1897
+ tvlInflowPerDollar: number;
1896
1898
  };
1897
1899
  };
1898
1900
  };
@@ -1986,6 +1988,7 @@ declare const app: Elysia<"", false, {
1986
1988
  query: {
1987
1989
  status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
1988
1990
  type?: string | undefined;
1991
+ id?: string | undefined;
1989
1992
  items?: number | undefined;
1990
1993
  subType?: number | undefined;
1991
1994
  page?: number | undefined;
@@ -2103,6 +2106,7 @@ declare const app: Elysia<"", false, {
2103
2106
  query: {
2104
2107
  status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
2105
2108
  type?: string | undefined;
2109
+ id?: string | undefined;
2106
2110
  items?: number | undefined;
2107
2111
  subType?: number | undefined;
2108
2112
  page?: number | undefined;
@@ -2142,6 +2146,7 @@ declare const app: Elysia<"", false, {
2142
2146
  query: {
2143
2147
  status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
2144
2148
  type?: string | undefined;
2149
+ id?: string | undefined;
2145
2150
  items?: number | undefined;
2146
2151
  subType?: number | undefined;
2147
2152
  page?: number | undefined;
@@ -2186,6 +2191,7 @@ declare const app: Elysia<"", false, {
2186
2191
  query: {
2187
2192
  status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
2188
2193
  type?: string | undefined;
2194
+ id?: string | undefined;
2189
2195
  items?: number | undefined;
2190
2196
  subType?: number | undefined;
2191
2197
  page?: number | undefined;
@@ -2231,6 +2237,7 @@ declare const app: Elysia<"", false, {
2231
2237
  query: {
2232
2238
  status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
2233
2239
  type?: string | undefined;
2240
+ id?: string | undefined;
2234
2241
  items?: number | undefined;
2235
2242
  subType?: number | undefined;
2236
2243
  page?: number | undefined;
@@ -5619,7 +5626,8 @@ declare const app: Elysia<"", false, {
5619
5626
  pastCampaigns: number;
5620
5627
  liveCampaigns: number;
5621
5628
  futureCampaigns: number;
5622
- incentivizedTvl: number;
5629
+ totalTvl: number;
5630
+ totalWallets: number;
5623
5631
  totalCampaigns: number;
5624
5632
  creatorId: string | null;
5625
5633
  };
@@ -5796,7 +5804,7 @@ declare const app: Elysia<"", false, {
5796
5804
  timestamp: bigint;
5797
5805
  walletCount: number;
5798
5806
  }[];
5799
- tvlInflowPerDollar: bigint;
5807
+ tvlInflowPerDollar: number;
5800
5808
  };
5801
5809
  };
5802
5810
  };