@merkl/api 1.6.0 → 1.6.1

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.
@@ -55,14 +55,8 @@ export declare const PayloadController: Elysia<"/payload", {
55
55
  headers: unknown;
56
56
  response: {
57
57
  200: Record<string, {
58
- tvl?: undefined;
59
- message: string;
60
- name: string;
61
- campaign?: undefined;
62
- opportunity?: undefined;
63
- } | {
64
- message?: undefined;
65
- campaign: import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").CampaignType>;
58
+ config: import("@package/resources/schemas").ExtendedConfig<import("@package/resources/enums").CampaignType>;
59
+ campaign: import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").INVALID> | import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").CampaignType>;
66
60
  opportunity: ({
67
61
  chainId: number;
68
62
  type: string;
@@ -293,7 +287,6 @@ export declare const PayloadController: Elysia<"/payload", {
293
287
  timestamp: bigint;
294
288
  total: number;
295
289
  } & {};
296
- name?: undefined;
297
290
  }>;
298
291
  422: {
299
292
  type: "validation";
@@ -328,147 +321,180 @@ export declare const PayloadController: Elysia<"/payload", {
328
321
  authorization: string;
329
322
  };
330
323
  response: {
331
- 200: Record<string, {
332
- tvl?: undefined;
333
- message: string;
334
- name: string;
335
- campaign?: undefined;
336
- opportunity?: undefined;
337
- } | {
338
- message?: undefined;
339
- campaign: import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").CampaignType>;
340
- opportunity: ({
341
- chainId: number;
342
- type: string;
343
- identifier: string;
344
- name?: string | undefined;
345
- status: "LIVE" | "NONE" | "PAST" | "SOON";
346
- action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
347
- description?: string | undefined;
348
- howToSteps?: string[] | undefined;
349
- tokens: {
350
- address: string;
324
+ 200: {
325
+ campaigns: Record<string, {
326
+ config: import("@package/resources/schemas").ExtendedConfig<import("@package/resources/enums").CampaignType>;
327
+ campaign: import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").INVALID> | import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").CampaignType>;
328
+ opportunity: ({
351
329
  chainId: number;
352
- }[];
353
- protocols?: string[] | undefined;
354
- mainProtocol?: string | undefined;
355
- depositUrl?: string | undefined;
356
- explorerAddress?: string | undefined;
357
- tags?: string[] | undefined;
358
- } & {
359
- id: string;
360
- }) | ({
361
- ActivePrograms: {
362
- icon: string;
363
- id: string;
364
- name: string;
365
- slug: string | null;
366
- }[];
367
- AprRecords: ({
368
- AprBreakdown: {
369
- identifier: string;
370
- timestamp: bigint;
371
- type: import("@package/databases").AprType;
372
- value: number;
330
+ type: string;
331
+ identifier: string;
332
+ name?: string | undefined;
333
+ status: "LIVE" | "NONE" | "PAST" | "SOON";
334
+ action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
335
+ description?: string | undefined;
336
+ howToSteps?: string[] | undefined;
337
+ tokens: {
338
+ address: string;
339
+ chainId: number;
373
340
  }[];
341
+ protocols?: string[] | undefined;
342
+ mainProtocol?: string | undefined;
343
+ depositUrl?: string | undefined;
344
+ explorerAddress?: string | undefined;
345
+ tags?: string[] | undefined;
374
346
  } & {
375
347
  id: string;
376
- timestamp: bigint;
377
- cumulated: number;
378
- opportunityId: string;
379
- })[];
380
- Campaigns: {
381
- id: string;
382
- computeChainId: number;
383
- distributionChainId: number;
384
- campaignId: string;
385
- type: string;
386
- distributionType: import("@package/databases").DistributionType;
387
- subType: number | null;
388
- rewardTokenId: string;
389
- amount: string;
390
- opportunityId: string;
391
- startTimestamp: bigint;
392
- endTimestamp: bigint;
393
- params: import("@prisma/client/runtime/client").JsonValue;
394
- description: string | null;
395
- dailyRewards: number;
396
- apr: number;
397
- creatorAddress: string;
398
- manualOverrides: import("@package/databases").CampaignManualOverride[];
399
- createdAt: Date;
400
- rootCampaignId: string | null;
401
- parentCampaignId: string | null;
402
- }[];
403
- Chain: {
404
- id: number;
405
- name: string;
406
- icon: string;
407
- liveCampaigns: number;
408
- endOfDisputePeriod: number;
409
- };
410
- DailyRewardsRecords: ({
411
- DailyRewardsBreakdown: ({
412
- Campaign: {
413
- CampaignStatus: {
348
+ }) | ({
349
+ ActivePrograms: {
350
+ icon: string;
351
+ id: string;
352
+ name: string;
353
+ slug: string | null;
354
+ }[];
355
+ AprRecords: ({
356
+ AprBreakdown: {
357
+ identifier: string;
358
+ timestamp: bigint;
359
+ type: import("@package/databases").AprType;
360
+ value: number;
361
+ }[];
362
+ } & {
363
+ id: string;
364
+ timestamp: bigint;
365
+ cumulated: number;
366
+ opportunityId: string;
367
+ })[];
368
+ Campaigns: {
369
+ id: string;
370
+ computeChainId: number;
371
+ distributionChainId: number;
372
+ campaignId: string;
373
+ type: string;
374
+ distributionType: import("@package/databases").DistributionType;
375
+ subType: number | null;
376
+ rewardTokenId: string;
377
+ amount: string;
378
+ opportunityId: string;
379
+ startTimestamp: bigint;
380
+ endTimestamp: bigint;
381
+ params: import("@prisma/client/runtime/client").JsonValue;
382
+ description: string | null;
383
+ dailyRewards: number;
384
+ apr: number;
385
+ creatorAddress: string;
386
+ manualOverrides: import("@package/databases").CampaignManualOverride[];
387
+ createdAt: Date;
388
+ rootCampaignId: string | null;
389
+ parentCampaignId: string | null;
390
+ }[];
391
+ Chain: {
392
+ id: number;
393
+ name: string;
394
+ icon: string;
395
+ liveCampaigns: number;
396
+ endOfDisputePeriod: number;
397
+ };
398
+ DailyRewardsRecords: ({
399
+ DailyRewardsBreakdown: ({
400
+ Campaign: {
401
+ CampaignStatus: {
402
+ campaignId: string;
403
+ computedUntil: bigint;
404
+ processingStarted: bigint;
405
+ status: import("@package/databases").RunStatus;
406
+ preComputeStatus: import("@package/databases").RunStatus;
407
+ preComputeProcessingStarted: bigint;
408
+ error: string;
409
+ details: import("@prisma/client/runtime/client").JsonValue;
410
+ }[];
411
+ RewardToken: {
412
+ id: string;
413
+ name: string | null;
414
+ chainId: number;
415
+ address: string;
416
+ decimals: number;
417
+ symbol: string;
418
+ displaySymbol: string;
419
+ icon: string;
420
+ verified: boolean;
421
+ isTest: boolean;
422
+ type: import("@package/databases").TokenType;
423
+ isNative: boolean;
424
+ price: number | null;
425
+ updatedAt: number | null;
426
+ priceSource: string | null;
427
+ };
428
+ amount: string;
414
429
  campaignId: string;
415
- computedUntil: bigint;
416
- processingStarted: bigint;
417
- status: import("@package/databases").RunStatus;
418
- preComputeStatus: import("@package/databases").RunStatus;
419
- preComputeProcessingStarted: bigint;
420
- error: string;
421
- details: import("@prisma/client/runtime/client").JsonValue;
422
- }[];
423
- RewardToken: {
424
- id: string;
425
- name: string | null;
426
- chainId: number;
427
- address: string;
428
- decimals: number;
429
- symbol: string;
430
- displaySymbol: string;
431
- icon: string;
432
- verified: boolean;
433
- isTest: boolean;
434
- type: import("@package/databases").TokenType;
435
- isNative: boolean;
436
- price: number | null;
437
- updatedAt: number | null;
438
- priceSource: string | null;
430
+ distributionType: import("@package/databases").DistributionType;
431
+ endTimestamp: bigint;
432
+ startTimestamp: bigint;
439
433
  };
440
- amount: string;
434
+ } & {
435
+ id: string;
436
+ value: number;
437
+ timestamp: bigint;
441
438
  campaignId: string;
442
- distributionType: import("@package/databases").DistributionType;
443
- endTimestamp: bigint;
444
- startTimestamp: bigint;
445
- };
439
+ dailyRewardsRecordId: string;
440
+ })[];
446
441
  } & {
447
442
  id: string;
448
- value: number;
449
443
  timestamp: bigint;
450
- campaignId: string;
451
- dailyRewardsRecordId: string;
444
+ total: number;
445
+ opportunityId: string;
452
446
  })[];
453
- } & {
454
- id: string;
455
- timestamp: bigint;
456
- total: number;
457
- opportunityId: string;
458
- })[];
459
- MainProtocol: {
460
- id: string;
461
- tags: string[];
462
- name: string;
463
- description: string;
464
- url: string;
465
- icon: string;
466
- banner: string | null;
467
- opportunityBannerLight: string | null;
468
- opportunityBannerDark: string | null;
469
- } | null;
470
- NativeAprRecords: ({
471
- RewardToken: {
447
+ MainProtocol: {
448
+ id: string;
449
+ tags: string[];
450
+ name: string;
451
+ description: string;
452
+ url: string;
453
+ icon: string;
454
+ banner: string | null;
455
+ opportunityBannerLight: string | null;
456
+ opportunityBannerDark: string | null;
457
+ } | null;
458
+ NativeAprRecords: ({
459
+ RewardToken: {
460
+ id: string;
461
+ name: string | null;
462
+ chainId: number;
463
+ address: string;
464
+ decimals: number;
465
+ symbol: string;
466
+ displaySymbol: string;
467
+ icon: string;
468
+ verified: boolean;
469
+ isTest: boolean;
470
+ type: import("@package/databases").TokenType;
471
+ isNative: boolean;
472
+ price: number | null;
473
+ updatedAt: number | null;
474
+ priceSource: string | null;
475
+ } | null;
476
+ } & {
477
+ id: string;
478
+ title: string;
479
+ description: string | null;
480
+ timestamp: bigint;
481
+ value: number;
482
+ amount: bigint | null;
483
+ rewardTokenId: string | null;
484
+ opportunityId: string;
485
+ })[];
486
+ Protocols: {
487
+ id: string;
488
+ tags: string[];
489
+ name: string;
490
+ description: string;
491
+ url: string;
492
+ icon: string;
493
+ banner: string | null;
494
+ opportunityBannerLight: string | null;
495
+ opportunityBannerDark: string | null;
496
+ }[];
497
+ Tokens: {
472
498
  id: string;
473
499
  name: string | null;
474
500
  chainId: number;
@@ -484,91 +510,57 @@ export declare const PayloadController: Elysia<"/payload", {
484
510
  price: number | null;
485
511
  updatedAt: number | null;
486
512
  priceSource: string | null;
487
- } | null;
513
+ }[];
514
+ TvlRecords: ({
515
+ TvlBreakdown: {
516
+ identifier: string;
517
+ type: import("@package/databases").TvlType;
518
+ value: number;
519
+ }[];
520
+ } & {
521
+ id: string;
522
+ timestamp: bigint;
523
+ total: number;
524
+ opportunityId: string;
525
+ })[];
488
526
  } & {
489
527
  id: string;
490
- title: string;
491
- description: string | null;
492
- timestamp: bigint;
493
- value: number;
494
- amount: bigint | null;
495
- rewardTokenId: string | null;
496
- opportunityId: string;
497
- })[];
498
- Protocols: {
499
- id: string;
500
- tags: string[];
528
+ chainId: number;
529
+ type: string;
530
+ identifier: string;
501
531
  name: string;
502
532
  description: string;
503
- url: string;
504
- icon: string;
505
- banner: string | null;
506
- opportunityBannerLight: string | null;
507
- opportunityBannerDark: string | null;
508
- }[];
509
- Tokens: {
510
- id: string;
511
- name: string | null;
512
- chainId: number;
513
- address: string;
514
- decimals: number;
515
- symbol: string;
516
- displaySymbol: string;
517
- icon: string;
518
- verified: boolean;
519
- isTest: boolean;
520
- type: import("@package/databases").TokenType;
521
- isNative: boolean;
522
- price: number | null;
523
- updatedAt: number | null;
524
- priceSource: string | null;
525
- }[];
526
- TvlRecords: ({
527
- TvlBreakdown: {
533
+ howToSteps: string[];
534
+ depositUrl: string | null;
535
+ explorerAddress: string | null;
536
+ status: import("@package/databases").Status;
537
+ action: import("@package/databases").OpportunityAction;
538
+ mainProtocolId: string | null;
539
+ tvl: number;
540
+ apr: number;
541
+ nativeApr: number | null;
542
+ maxApr: number | null;
543
+ dailyRewards: number;
544
+ tags: string[];
545
+ lastCampaignCreatedAt: Date;
546
+ manualOverrides: import("@package/databases").OpportunityManualOverride[];
547
+ liveCampaigns: number;
548
+ });
549
+ tvl: {
550
+ breakdowns: ({
528
551
  identifier: string;
529
552
  type: import("@package/databases").TvlType;
530
553
  value: number;
531
- }[];
532
- } & {
533
- id: string;
554
+ } & {})[];
534
555
  timestamp: bigint;
535
556
  total: number;
536
- opportunityId: string;
537
- })[];
538
- } & {
539
- id: string;
540
- chainId: number;
541
- type: string;
542
- identifier: string;
543
- name: string;
544
- description: string;
545
- howToSteps: string[];
546
- depositUrl: string | null;
547
- explorerAddress: string | null;
548
- status: import("@package/databases").Status;
549
- action: import("@package/databases").OpportunityAction;
550
- mainProtocolId: string | null;
551
- tvl: number;
552
- apr: number;
553
- nativeApr: number | null;
554
- maxApr: number | null;
555
- dailyRewards: number;
556
- tags: string[];
557
- lastCampaignCreatedAt: Date;
558
- manualOverrides: import("@package/databases").OpportunityManualOverride[];
559
- liveCampaigns: number;
560
- });
561
- tvl: {
562
- breakdowns: ({
563
- identifier: string;
564
- type: import("@package/databases").TvlType;
565
- value: number;
566
- } & {})[];
567
- timestamp: bigint;
568
- total: number;
569
- } & {};
570
- name?: undefined;
571
- }>;
557
+ } & {};
558
+ }>;
559
+ errors: {
560
+ campaignId: string;
561
+ error: string;
562
+ }[];
563
+ };
572
564
  422: {
573
565
  type: "validation";
574
566
  on: string;
@@ -598,147 +590,180 @@ export declare const PayloadController: Elysia<"/payload", {
598
590
  authorization: string;
599
591
  };
600
592
  response: {
601
- 200: Record<string, {
602
- tvl?: undefined;
603
- message: string;
604
- name: string;
605
- campaign?: undefined;
606
- opportunity?: undefined;
607
- } | {
608
- message?: undefined;
609
- campaign: import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").CampaignType>;
610
- opportunity: ({
611
- chainId: number;
612
- type: string;
613
- identifier: string;
614
- name?: string | undefined;
615
- status: "LIVE" | "NONE" | "PAST" | "SOON";
616
- action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
617
- description?: string | undefined;
618
- howToSteps?: string[] | undefined;
619
- tokens: {
620
- address: string;
593
+ 200: {
594
+ campaigns: Record<string, {
595
+ config: import("@package/resources/schemas").ExtendedConfig<import("@package/resources/enums").CampaignType>;
596
+ campaign: import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").INVALID> | import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").CampaignType>;
597
+ opportunity: ({
621
598
  chainId: number;
622
- }[];
623
- protocols?: string[] | undefined;
624
- mainProtocol?: string | undefined;
625
- depositUrl?: string | undefined;
626
- explorerAddress?: string | undefined;
627
- tags?: string[] | undefined;
628
- } & {
629
- id: string;
630
- }) | ({
631
- ActivePrograms: {
632
- icon: string;
633
- id: string;
634
- name: string;
635
- slug: string | null;
636
- }[];
637
- AprRecords: ({
638
- AprBreakdown: {
639
- identifier: string;
640
- timestamp: bigint;
641
- type: import("@package/databases").AprType;
642
- value: number;
599
+ type: string;
600
+ identifier: string;
601
+ name?: string | undefined;
602
+ status: "LIVE" | "NONE" | "PAST" | "SOON";
603
+ action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
604
+ description?: string | undefined;
605
+ howToSteps?: string[] | undefined;
606
+ tokens: {
607
+ address: string;
608
+ chainId: number;
643
609
  }[];
610
+ protocols?: string[] | undefined;
611
+ mainProtocol?: string | undefined;
612
+ depositUrl?: string | undefined;
613
+ explorerAddress?: string | undefined;
614
+ tags?: string[] | undefined;
644
615
  } & {
645
616
  id: string;
646
- timestamp: bigint;
647
- cumulated: number;
648
- opportunityId: string;
649
- })[];
650
- Campaigns: {
651
- id: string;
652
- computeChainId: number;
653
- distributionChainId: number;
654
- campaignId: string;
655
- type: string;
656
- distributionType: import("@package/databases").DistributionType;
657
- subType: number | null;
658
- rewardTokenId: string;
659
- amount: string;
660
- opportunityId: string;
661
- startTimestamp: bigint;
662
- endTimestamp: bigint;
663
- params: import("@prisma/client/runtime/client").JsonValue;
664
- description: string | null;
665
- dailyRewards: number;
666
- apr: number;
667
- creatorAddress: string;
668
- manualOverrides: import("@package/databases").CampaignManualOverride[];
669
- createdAt: Date;
670
- rootCampaignId: string | null;
671
- parentCampaignId: string | null;
672
- }[];
673
- Chain: {
674
- id: number;
675
- name: string;
676
- icon: string;
677
- liveCampaigns: number;
678
- endOfDisputePeriod: number;
679
- };
680
- DailyRewardsRecords: ({
681
- DailyRewardsBreakdown: ({
682
- Campaign: {
683
- CampaignStatus: {
617
+ }) | ({
618
+ ActivePrograms: {
619
+ icon: string;
620
+ id: string;
621
+ name: string;
622
+ slug: string | null;
623
+ }[];
624
+ AprRecords: ({
625
+ AprBreakdown: {
626
+ identifier: string;
627
+ timestamp: bigint;
628
+ type: import("@package/databases").AprType;
629
+ value: number;
630
+ }[];
631
+ } & {
632
+ id: string;
633
+ timestamp: bigint;
634
+ cumulated: number;
635
+ opportunityId: string;
636
+ })[];
637
+ Campaigns: {
638
+ id: string;
639
+ computeChainId: number;
640
+ distributionChainId: number;
641
+ campaignId: string;
642
+ type: string;
643
+ distributionType: import("@package/databases").DistributionType;
644
+ subType: number | null;
645
+ rewardTokenId: string;
646
+ amount: string;
647
+ opportunityId: string;
648
+ startTimestamp: bigint;
649
+ endTimestamp: bigint;
650
+ params: import("@prisma/client/runtime/client").JsonValue;
651
+ description: string | null;
652
+ dailyRewards: number;
653
+ apr: number;
654
+ creatorAddress: string;
655
+ manualOverrides: import("@package/databases").CampaignManualOverride[];
656
+ createdAt: Date;
657
+ rootCampaignId: string | null;
658
+ parentCampaignId: string | null;
659
+ }[];
660
+ Chain: {
661
+ id: number;
662
+ name: string;
663
+ icon: string;
664
+ liveCampaigns: number;
665
+ endOfDisputePeriod: number;
666
+ };
667
+ DailyRewardsRecords: ({
668
+ DailyRewardsBreakdown: ({
669
+ Campaign: {
670
+ CampaignStatus: {
671
+ campaignId: string;
672
+ computedUntil: bigint;
673
+ processingStarted: bigint;
674
+ status: import("@package/databases").RunStatus;
675
+ preComputeStatus: import("@package/databases").RunStatus;
676
+ preComputeProcessingStarted: bigint;
677
+ error: string;
678
+ details: import("@prisma/client/runtime/client").JsonValue;
679
+ }[];
680
+ RewardToken: {
681
+ id: string;
682
+ name: string | null;
683
+ chainId: number;
684
+ address: string;
685
+ decimals: number;
686
+ symbol: string;
687
+ displaySymbol: string;
688
+ icon: string;
689
+ verified: boolean;
690
+ isTest: boolean;
691
+ type: import("@package/databases").TokenType;
692
+ isNative: boolean;
693
+ price: number | null;
694
+ updatedAt: number | null;
695
+ priceSource: string | null;
696
+ };
697
+ amount: string;
684
698
  campaignId: string;
685
- computedUntil: bigint;
686
- processingStarted: bigint;
687
- status: import("@package/databases").RunStatus;
688
- preComputeStatus: import("@package/databases").RunStatus;
689
- preComputeProcessingStarted: bigint;
690
- error: string;
691
- details: import("@prisma/client/runtime/client").JsonValue;
692
- }[];
693
- RewardToken: {
694
- id: string;
695
- name: string | null;
696
- chainId: number;
697
- address: string;
698
- decimals: number;
699
- symbol: string;
700
- displaySymbol: string;
701
- icon: string;
702
- verified: boolean;
703
- isTest: boolean;
704
- type: import("@package/databases").TokenType;
705
- isNative: boolean;
706
- price: number | null;
707
- updatedAt: number | null;
708
- priceSource: string | null;
699
+ distributionType: import("@package/databases").DistributionType;
700
+ endTimestamp: bigint;
701
+ startTimestamp: bigint;
709
702
  };
710
- amount: string;
703
+ } & {
704
+ id: string;
705
+ value: number;
706
+ timestamp: bigint;
711
707
  campaignId: string;
712
- distributionType: import("@package/databases").DistributionType;
713
- endTimestamp: bigint;
714
- startTimestamp: bigint;
715
- };
708
+ dailyRewardsRecordId: string;
709
+ })[];
716
710
  } & {
717
711
  id: string;
718
- value: number;
719
712
  timestamp: bigint;
720
- campaignId: string;
721
- dailyRewardsRecordId: string;
713
+ total: number;
714
+ opportunityId: string;
722
715
  })[];
723
- } & {
724
- id: string;
725
- timestamp: bigint;
726
- total: number;
727
- opportunityId: string;
728
- })[];
729
- MainProtocol: {
730
- id: string;
731
- tags: string[];
732
- name: string;
733
- description: string;
734
- url: string;
735
- icon: string;
736
- banner: string | null;
737
- opportunityBannerLight: string | null;
738
- opportunityBannerDark: string | null;
739
- } | null;
740
- NativeAprRecords: ({
741
- RewardToken: {
716
+ MainProtocol: {
717
+ id: string;
718
+ tags: string[];
719
+ name: string;
720
+ description: string;
721
+ url: string;
722
+ icon: string;
723
+ banner: string | null;
724
+ opportunityBannerLight: string | null;
725
+ opportunityBannerDark: string | null;
726
+ } | null;
727
+ NativeAprRecords: ({
728
+ RewardToken: {
729
+ id: string;
730
+ name: string | null;
731
+ chainId: number;
732
+ address: string;
733
+ decimals: number;
734
+ symbol: string;
735
+ displaySymbol: string;
736
+ icon: string;
737
+ verified: boolean;
738
+ isTest: boolean;
739
+ type: import("@package/databases").TokenType;
740
+ isNative: boolean;
741
+ price: number | null;
742
+ updatedAt: number | null;
743
+ priceSource: string | null;
744
+ } | null;
745
+ } & {
746
+ id: string;
747
+ title: string;
748
+ description: string | null;
749
+ timestamp: bigint;
750
+ value: number;
751
+ amount: bigint | null;
752
+ rewardTokenId: string | null;
753
+ opportunityId: string;
754
+ })[];
755
+ Protocols: {
756
+ id: string;
757
+ tags: string[];
758
+ name: string;
759
+ description: string;
760
+ url: string;
761
+ icon: string;
762
+ banner: string | null;
763
+ opportunityBannerLight: string | null;
764
+ opportunityBannerDark: string | null;
765
+ }[];
766
+ Tokens: {
742
767
  id: string;
743
768
  name: string | null;
744
769
  chainId: number;
@@ -754,91 +779,57 @@ export declare const PayloadController: Elysia<"/payload", {
754
779
  price: number | null;
755
780
  updatedAt: number | null;
756
781
  priceSource: string | null;
757
- } | null;
782
+ }[];
783
+ TvlRecords: ({
784
+ TvlBreakdown: {
785
+ identifier: string;
786
+ type: import("@package/databases").TvlType;
787
+ value: number;
788
+ }[];
789
+ } & {
790
+ id: string;
791
+ timestamp: bigint;
792
+ total: number;
793
+ opportunityId: string;
794
+ })[];
758
795
  } & {
759
796
  id: string;
760
- title: string;
761
- description: string | null;
762
- timestamp: bigint;
763
- value: number;
764
- amount: bigint | null;
765
- rewardTokenId: string | null;
766
- opportunityId: string;
767
- })[];
768
- Protocols: {
769
- id: string;
770
- tags: string[];
797
+ chainId: number;
798
+ type: string;
799
+ identifier: string;
771
800
  name: string;
772
801
  description: string;
773
- url: string;
774
- icon: string;
775
- banner: string | null;
776
- opportunityBannerLight: string | null;
777
- opportunityBannerDark: string | null;
778
- }[];
779
- Tokens: {
780
- id: string;
781
- name: string | null;
782
- chainId: number;
783
- address: string;
784
- decimals: number;
785
- symbol: string;
786
- displaySymbol: string;
787
- icon: string;
788
- verified: boolean;
789
- isTest: boolean;
790
- type: import("@package/databases").TokenType;
791
- isNative: boolean;
792
- price: number | null;
793
- updatedAt: number | null;
794
- priceSource: string | null;
795
- }[];
796
- TvlRecords: ({
797
- TvlBreakdown: {
802
+ howToSteps: string[];
803
+ depositUrl: string | null;
804
+ explorerAddress: string | null;
805
+ status: import("@package/databases").Status;
806
+ action: import("@package/databases").OpportunityAction;
807
+ mainProtocolId: string | null;
808
+ tvl: number;
809
+ apr: number;
810
+ nativeApr: number | null;
811
+ maxApr: number | null;
812
+ dailyRewards: number;
813
+ tags: string[];
814
+ lastCampaignCreatedAt: Date;
815
+ manualOverrides: import("@package/databases").OpportunityManualOverride[];
816
+ liveCampaigns: number;
817
+ });
818
+ tvl: {
819
+ breakdowns: ({
798
820
  identifier: string;
799
821
  type: import("@package/databases").TvlType;
800
822
  value: number;
801
- }[];
802
- } & {
803
- id: string;
823
+ } & {})[];
804
824
  timestamp: bigint;
805
825
  total: number;
806
- opportunityId: string;
807
- })[];
808
- } & {
809
- id: string;
810
- chainId: number;
811
- type: string;
812
- identifier: string;
813
- name: string;
814
- description: string;
815
- howToSteps: string[];
816
- depositUrl: string | null;
817
- explorerAddress: string | null;
818
- status: import("@package/databases").Status;
819
- action: import("@package/databases").OpportunityAction;
820
- mainProtocolId: string | null;
821
- tvl: number;
822
- apr: number;
823
- nativeApr: number | null;
824
- maxApr: number | null;
825
- dailyRewards: number;
826
- tags: string[];
827
- lastCampaignCreatedAt: Date;
828
- manualOverrides: import("@package/databases").OpportunityManualOverride[];
829
- liveCampaigns: number;
830
- });
831
- tvl: {
832
- breakdowns: ({
833
- identifier: string;
834
- type: import("@package/databases").TvlType;
835
- value: number;
836
- } & {})[];
837
- timestamp: bigint;
838
- total: number;
839
- } & {};
840
- name?: undefined;
841
- }>;
826
+ } & {};
827
+ }>;
828
+ errors: {
829
+ campaignId: string;
830
+ error: string;
831
+ }[];
832
+ };
842
833
  422: {
843
834
  type: "validation";
844
835
  on: string;