@merkl/api 0.20.0 → 0.20.2

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 (52) hide show
  1. package/dist/database/api/.generated/drizzle/schema.d.ts +28 -28
  2. package/dist/database/api/.generated/drizzle/schema.js +11 -11
  3. package/dist/database/api/.generated/drizzle/schema.ts +11 -11
  4. package/dist/database/api/.generated/edge.js +5 -5
  5. package/dist/database/api/.generated/index-browser.js +2 -2
  6. package/dist/database/api/.generated/index.d.ts +151 -154
  7. package/dist/database/api/.generated/index.js +5 -5
  8. package/dist/database/api/.generated/package.json +1 -1
  9. package/dist/database/api/.generated/schema.prisma +11 -11
  10. package/dist/database/api/.generated/wasm.js +2 -2
  11. package/dist/src/eden/index.d.ts +2088 -667
  12. package/dist/src/engine/opportunityMetadata/implementations/Clamm.d.ts +1 -0
  13. package/dist/src/engine/opportunityMetadata/implementations/Clamm.js +1 -0
  14. package/dist/src/engine/opportunityMetadata/implementations/Dolomite.d.ts +1 -0
  15. package/dist/src/engine/opportunityMetadata/implementations/Dolomite.js +2 -0
  16. package/dist/src/engine/opportunityMetadata/implementations/Erc20.d.ts +1 -0
  17. package/dist/src/engine/opportunityMetadata/implementations/Erc20.js +2 -0
  18. package/dist/src/engine/opportunityMetadata/implementations/Euler.d.ts +1 -0
  19. package/dist/src/engine/opportunityMetadata/implementations/Euler.js +2 -0
  20. package/dist/src/engine/opportunityMetadata/implementations/Hyperdrive.d.ts +1 -0
  21. package/dist/src/engine/opportunityMetadata/implementations/Hyperdrive.js +2 -0
  22. package/dist/src/engine/opportunityMetadata/implementations/Morpho.d.ts +1 -0
  23. package/dist/src/engine/opportunityMetadata/implementations/Morpho.js +2 -0
  24. package/dist/src/engine/opportunityMetadata/implementations/Radiant.d.ts +1 -0
  25. package/dist/src/engine/opportunityMetadata/implementations/Radiant.js +2 -0
  26. package/dist/src/engine/opportunityMetadata/implementations/Silo.d.ts +1 -0
  27. package/dist/src/engine/opportunityMetadata/implementations/Silo.js +2 -0
  28. package/dist/src/engine/opportunityMetadata/implementations/UniswapV4.d.ts +1 -0
  29. package/dist/src/engine/opportunityMetadata/implementations/UniswapV4.js +2 -0
  30. package/dist/src/index.d.ts +380 -95
  31. package/dist/src/jobs/reward-breakdowns.js +0 -2
  32. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +4 -0
  33. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +5 -0
  34. package/dist/src/modules/v4/campaign/campaign.service.d.ts +9 -0
  35. package/dist/src/modules/v4/merklRoot/merklRoot.service.js +1 -1
  36. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +374 -95
  37. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +3 -0
  38. package/dist/src/modules/v4/opportunity/opportunity.model.js +2 -0
  39. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +11 -0
  40. package/dist/src/modules/v4/opportunity/opportunity.repository.js +8 -0
  41. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +14 -0
  42. package/dist/src/modules/v4/opportunity/opportunity.service.js +1 -0
  43. package/dist/src/modules/v4/protocol/protocol.repository.d.ts +1 -0
  44. package/dist/src/modules/v4/reward/reward.model.d.ts +1 -1
  45. package/dist/src/modules/v4/reward/reward.repository.d.ts +3 -4
  46. package/dist/src/modules/v4/reward/reward.repository.js +0 -1
  47. package/dist/src/modules/v4/reward/reward.service.d.ts +10 -4
  48. package/dist/src/modules/v4/reward/reward.service.js +1 -1
  49. package/dist/src/modules/v4/router.d.ts +380 -95
  50. package/dist/src/modules/v4/user/user.controller.d.ts +2 -0
  51. package/dist/tsconfig.package.tsbuildinfo +1 -1
  52. package/package.json +2 -1
@@ -132,6 +132,7 @@ declare const eden: {
132
132
  })[];
133
133
  mainProtocol: "splice" | "morpho" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quick-swap" | "ramses" | "retro" | "stryke" | "sushiswap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "angles" | "enzyme" | "toros" | "vicuna" | "bunni" | "beratrax" | "concrete" | "cian" | "pendle" | "yei" | "filament" | "gammaswap" | "maha" | "tempest" | "uranium" | "holdstation" | "katana" | "satlayer" | undefined;
134
134
  depositUrl: any;
135
+ explorerAddress: string | undefined;
135
136
  tags: string[];
136
137
  };
137
138
  }>>;
@@ -153,6 +154,7 @@ declare const eden: {
153
154
  icon: string;
154
155
  } | null | undefined;
155
156
  depositUrl?: string | undefined;
157
+ explorerAddress?: string | undefined;
156
158
  aprRecord?: {
157
159
  timestamp: string | bigint;
158
160
  cumulated: number;
@@ -257,6 +259,7 @@ declare const eden: {
257
259
  icon: string;
258
260
  } | null | undefined;
259
261
  depositUrl?: string | undefined;
262
+ explorerAddress?: string | undefined;
260
263
  aprRecord?: {
261
264
  timestamp: string | bigint;
262
265
  cumulated: number;
@@ -415,6 +418,7 @@ declare const eden: {
415
418
  action: import("@db/api").$Enums.OpportunityAction;
416
419
  chainId: number;
417
420
  depositUrl: string | null;
421
+ explorerAddress: string | null;
418
422
  mainProtocolId: string | null;
419
423
  tvl: number;
420
424
  apr: number;
@@ -427,6 +431,7 @@ declare const eden: {
427
431
  name?: string | undefined;
428
432
  tags?: string[] | undefined;
429
433
  depositUrl?: string | undefined;
434
+ explorerAddress?: string | undefined;
430
435
  protocols?: string[] | undefined;
431
436
  mainProtocol?: string | undefined;
432
437
  type: string;
@@ -455,6 +460,7 @@ declare const eden: {
455
460
  action: import("@db/api").$Enums.OpportunityAction;
456
461
  chainId: number;
457
462
  depositUrl: string | null;
463
+ explorerAddress: string | null;
458
464
  mainProtocolId: string | null;
459
465
  tvl: number;
460
466
  apr: number;
@@ -487,44 +493,47 @@ declare const eden: {
487
493
  };
488
494
  fetch?: RequestInit | undefined;
489
495
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
490
- 200: {
491
- apr: number;
492
- aprRecord: {
496
+ 200: ({
497
+ protocol?: {
498
+ id: string;
499
+ name: string;
500
+ url: string;
501
+ description: string;
502
+ tags: string[];
503
+ icon: string;
504
+ } | null | undefined;
505
+ depositUrl?: string | undefined;
506
+ explorerAddress?: string | undefined;
507
+ aprRecord?: {
508
+ timestamp: string | bigint;
493
509
  cumulated: number;
494
- timestamp: bigint;
495
510
  breakdowns: {
496
511
  id: number;
497
- type: import("@db/api").$Enums.AprType;
498
- uuid: string;
512
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
499
513
  identifier: string;
500
514
  value: number;
501
515
  aprRecordId: string;
502
516
  }[];
503
- };
504
- tvlRecord: {
505
- id: string;
517
+ } | undefined;
518
+ tvlRecord?: {
506
519
  total: number;
507
- timestamp: bigint;
520
+ timestamp: string | bigint;
508
521
  breakdowns: {
509
522
  id: number;
510
- type: import("@db/api").$Enums.TvlType;
511
- uuid: string;
523
+ type: "TOKEN" | "PROTOCOL";
512
524
  identifier: string;
513
525
  value: number;
514
526
  tvlRecordId: string;
515
527
  }[];
516
- };
517
- rewardsRecord: {
528
+ } | undefined;
529
+ rewardsRecord?: {
518
530
  id: string;
519
531
  total: number;
520
- timestamp: bigint;
532
+ timestamp: string | bigint;
521
533
  breakdowns: {
522
534
  id: number;
523
- uuid: string;
524
- value: number;
525
- campaignId: string;
526
- dailyRewardsRecordId: string;
527
535
  token: {
536
+ price?: number | null | undefined;
528
537
  symbol: string;
529
538
  id: string;
530
539
  name: string | null;
@@ -532,88 +541,21 @@ declare const eden: {
532
541
  address: string;
533
542
  chainId: number;
534
543
  decimals: number;
535
- displaySymbol: string;
536
544
  verified: boolean;
537
545
  isTest: boolean;
538
- isPoint: boolean;
539
- isNative: boolean;
540
- price: number | null;
541
546
  };
542
- amount: bigint;
543
- }[];
544
- };
545
- campaigns: {
546
- params: any;
547
- chain: {
548
- id: number;
549
- name: string;
550
- icon: string;
551
- };
552
- endTimestamp: number;
553
- startTimestamp: number;
554
- rewardToken: {
555
- symbol: string;
556
- id: string;
557
- name: string | null;
558
- icon: string;
559
- address: string;
560
- chainId: number;
561
- decimals: number;
562
- verified: boolean;
563
- isTest: boolean;
564
- isPoint: boolean;
565
- isNative: boolean;
566
- } & {
567
- price?: number | null | undefined;
568
- };
569
- distributionChain: {
570
- id: number;
571
- name: string;
572
- icon: string;
573
- } | undefined;
574
- campaignStatus: {
575
- computedUntil: number;
576
- processingStarted: number;
577
- error: string;
578
- status: import("@db/api").$Enums.RunStatus;
579
- details: import("database/api/.generated/runtime/library").JsonValue;
547
+ value: number;
580
548
  campaignId: string;
581
- } | undefined;
582
- creatorAddress: string;
583
- creator: {
584
- tags: string[];
585
- address: string;
586
- creatorId: string | null;
587
- };
588
- createdAt: string;
589
- Opportunity: {
590
- id: string;
591
- name: string;
592
- type: string;
593
- status: import("@db/api").$Enums.Status;
594
- tags: string[];
595
- identifier: string;
596
- action: import("@db/api").$Enums.OpportunityAction;
597
- chainId: number;
598
- depositUrl: string | null;
599
- mainProtocolId: string | null;
600
- tvl: number;
601
- apr: number;
602
- dailyRewards: number;
603
- };
604
- id: string;
605
- type: string;
606
- subType: number | null;
607
- computeChainId: number;
608
- distributionChainId: number;
609
- campaignId: string;
610
- rewardTokenId: string;
611
- amount: string;
612
- opportunityId: string;
613
- }[] | undefined;
549
+ amount: string | bigint;
550
+ dailyRewardsRecordId: string;
551
+ }[];
552
+ } | undefined;
614
553
  id: string;
615
- depositUrl: string | undefined;
616
- tokens: ({
554
+ name: string;
555
+ type: string;
556
+ status: string;
557
+ tokens: {
558
+ price?: number | null | undefined;
617
559
  symbol: string;
618
560
  id: string;
619
561
  name: string | null;
@@ -623,96 +565,24 @@ declare const eden: {
623
565
  decimals: number;
624
566
  verified: boolean;
625
567
  isTest: boolean;
626
- isPoint: boolean;
627
- isNative: boolean;
628
- } & {
629
- price?: number | null | undefined;
630
- })[];
568
+ }[];
569
+ tags: string[];
570
+ identifier: string;
631
571
  chain: {
632
572
  id: number;
633
573
  name: string;
634
574
  icon: string;
635
575
  };
636
- protocol: {
637
- id: string;
638
- name: string;
639
- url: string;
640
- description: string;
641
- tags: string[];
642
- icon: string;
643
- } | undefined;
644
- name: string;
645
- type: string;
646
- status: import("@db/api").$Enums.Status;
647
- tags: string[];
648
- identifier: string;
649
- action: import("@db/api").$Enums.OpportunityAction;
576
+ action: string;
650
577
  chainId: number;
651
578
  tvl: number;
579
+ apr: number;
652
580
  dailyRewards: number;
653
- }[];
654
- }>>;
655
- };
656
- count: {
657
- get: (options: {
658
- headers?: Record<string, unknown> | undefined;
659
- query: {
660
- name?: string | undefined;
661
- type?: string | undefined;
662
- status?: string | undefined;
663
- sort?: string | undefined;
664
- tokens?: string | undefined;
665
- items?: number | undefined;
666
- tags?: string | undefined;
667
- identifier?: string | undefined;
668
- page?: number | undefined;
669
- action?: string | undefined;
670
- campaignId?: string | undefined;
671
- creatorAddress?: string | undefined;
672
- chainId?: string | undefined;
673
- mainProtocolId?: string | undefined;
674
- campaigns?: boolean | undefined;
675
- point?: boolean | undefined;
676
- test?: boolean | undefined;
677
- rewardTokenSymbol?: string | undefined;
678
- order?: string | undefined;
679
- minimumTvl?: number | undefined;
680
- };
681
- fetch?: RequestInit | undefined;
682
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
683
- 200: number;
684
- }>>;
685
- };
686
- campaigns: {
687
- get: (options: {
688
- headers?: Record<string, unknown> | undefined;
689
- query: {
690
- type?: string | undefined;
691
- status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
692
- items?: number | undefined;
693
- subType?: number | undefined;
694
- page?: number | undefined;
695
- types?: string[] | undefined;
696
- campaignId?: string | undefined;
697
- opportunityId?: string | undefined;
698
- startTimestamp?: string | undefined;
699
- endTimestamp?: string | undefined;
700
- creatorAddress?: string | undefined;
701
- chainId?: number | undefined;
702
- creatorId?: string | undefined;
703
- mainParameter?: string | undefined;
704
- point?: boolean | undefined;
705
- tokenAddress?: string | undefined;
706
- test?: boolean | undefined;
707
- creatorTag?: string | undefined;
708
- distributionChainIds?: number[] | undefined;
709
- tokenSymbol?: string | undefined;
710
- withOpportunity?: boolean | undefined;
711
- createdAfter?: Date | null | undefined;
712
- };
713
- fetch?: RequestInit | undefined;
714
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
715
- 200: {
581
+ } | null)[];
582
+ } | {
583
+ 200: never;
584
+ } | {
585
+ 200: (Response | ({
716
586
  protocol?: {
717
587
  id: string;
718
588
  name: string;
@@ -722,6 +592,7 @@ declare const eden: {
722
592
  icon: string;
723
593
  } | null | undefined;
724
594
  depositUrl?: string | undefined;
595
+ explorerAddress?: string | undefined;
725
596
  aprRecord?: {
726
597
  timestamp: string | bigint;
727
598
  cumulated: number;
@@ -796,43 +667,451 @@ declare const eden: {
796
667
  tvl: number;
797
668
  apr: number;
798
669
  dailyRewards: number;
799
- campaigns: {
800
- creator?: {
801
- tags?: string[] | undefined;
802
- creatorId?: string | null | undefined;
803
- address: string;
804
- } | undefined;
805
- campaignStatus?: {
806
- error?: string | undefined;
807
- details?: any;
808
- status: string;
809
- campaignId: string;
810
- computedUntil: string | number;
811
- processingStarted: string | number;
812
- } | undefined;
813
- distributionChain?: {
814
- id: number;
670
+ } | null)[] | {
671
+ 200: ({
672
+ protocol?: {
673
+ id: string;
815
674
  name: string;
675
+ url: string;
676
+ description: string;
677
+ tags: string[];
816
678
  icon: string;
679
+ } | null | undefined;
680
+ depositUrl?: string | undefined;
681
+ explorerAddress?: string | undefined;
682
+ aprRecord?: {
683
+ timestamp: string | bigint;
684
+ cumulated: number;
685
+ breakdowns: {
686
+ id: number;
687
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
688
+ identifier: string;
689
+ value: number;
690
+ aprRecordId: string;
691
+ }[];
817
692
  } | undefined;
818
- id: string;
819
- type: string;
820
- params: any;
821
- subType: number | null;
822
- chain: {
823
- id: number;
824
- name: string;
825
- icon: string;
826
- };
827
- computeChainId: number;
828
- distributionChainId: number;
829
- campaignId: string;
830
- rewardTokenId: string;
831
- amount: string;
832
- opportunityId: string;
833
- startTimestamp: string | number;
834
- endTimestamp: string | number;
835
- creatorAddress: string;
693
+ tvlRecord?: {
694
+ total: number;
695
+ timestamp: string | bigint;
696
+ breakdowns: {
697
+ id: number;
698
+ type: "TOKEN" | "PROTOCOL";
699
+ identifier: string;
700
+ value: number;
701
+ tvlRecordId: string;
702
+ }[];
703
+ } | undefined;
704
+ rewardsRecord?: {
705
+ id: string;
706
+ total: number;
707
+ timestamp: string | bigint;
708
+ breakdowns: {
709
+ id: number;
710
+ token: {
711
+ price?: number | null | undefined;
712
+ symbol: string;
713
+ id: string;
714
+ name: string | null;
715
+ icon: string;
716
+ address: string;
717
+ chainId: number;
718
+ decimals: number;
719
+ verified: boolean;
720
+ isTest: boolean;
721
+ };
722
+ value: number;
723
+ campaignId: string;
724
+ amount: string | bigint;
725
+ dailyRewardsRecordId: string;
726
+ }[];
727
+ } | undefined;
728
+ id: string;
729
+ name: string;
730
+ type: string;
731
+ status: string;
732
+ tokens: {
733
+ price?: number | null | undefined;
734
+ symbol: string;
735
+ id: string;
736
+ name: string | null;
737
+ icon: string;
738
+ address: string;
739
+ chainId: number;
740
+ decimals: number;
741
+ verified: boolean;
742
+ isTest: boolean;
743
+ }[];
744
+ tags: string[];
745
+ identifier: string;
746
+ chain: {
747
+ id: number;
748
+ name: string;
749
+ icon: string;
750
+ };
751
+ action: string;
752
+ chainId: number;
753
+ tvl: number;
754
+ apr: number;
755
+ dailyRewards: number;
756
+ } | null)[];
757
+ }) & ({
758
+ protocol?: {
759
+ id: string;
760
+ name: string;
761
+ url: string;
762
+ description: string;
763
+ tags: string[];
764
+ icon: string;
765
+ } | null | undefined;
766
+ depositUrl?: string | undefined;
767
+ explorerAddress?: string | undefined;
768
+ aprRecord?: {
769
+ timestamp: string | bigint;
770
+ cumulated: number;
771
+ breakdowns: {
772
+ id: number;
773
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
774
+ identifier: string;
775
+ value: number;
776
+ aprRecordId: string;
777
+ }[];
778
+ } | undefined;
779
+ tvlRecord?: {
780
+ total: number;
781
+ timestamp: string | bigint;
782
+ breakdowns: {
783
+ id: number;
784
+ type: "TOKEN" | "PROTOCOL";
785
+ identifier: string;
786
+ value: number;
787
+ tvlRecordId: string;
788
+ }[];
789
+ } | undefined;
790
+ rewardsRecord?: {
791
+ id: string;
792
+ total: number;
793
+ timestamp: string | bigint;
794
+ breakdowns: {
795
+ id: number;
796
+ token: {
797
+ price?: number | null | undefined;
798
+ symbol: string;
799
+ id: string;
800
+ name: string | null;
801
+ icon: string;
802
+ address: string;
803
+ chainId: number;
804
+ decimals: number;
805
+ verified: boolean;
806
+ isTest: boolean;
807
+ };
808
+ value: number;
809
+ campaignId: string;
810
+ amount: string | bigint;
811
+ dailyRewardsRecordId: string;
812
+ }[];
813
+ } | undefined;
814
+ id: string;
815
+ name: string;
816
+ type: string;
817
+ status: string;
818
+ tokens: {
819
+ price?: number | null | undefined;
820
+ symbol: string;
821
+ id: string;
822
+ name: string | null;
823
+ icon: string;
824
+ address: string;
825
+ chainId: number;
826
+ decimals: number;
827
+ verified: boolean;
828
+ isTest: boolean;
829
+ }[];
830
+ tags: string[];
831
+ identifier: string;
832
+ chain: {
833
+ id: number;
834
+ name: string;
835
+ icon: string;
836
+ };
837
+ action: string;
838
+ chainId: number;
839
+ tvl: number;
840
+ apr: number;
841
+ dailyRewards: number;
842
+ } | null)[];
843
+ } | {
844
+ 200: {
845
+ 200: ({
846
+ protocol?: {
847
+ id: string;
848
+ name: string;
849
+ url: string;
850
+ description: string;
851
+ tags: string[];
852
+ icon: string;
853
+ } | null | undefined;
854
+ depositUrl?: string | undefined;
855
+ explorerAddress?: string | undefined;
856
+ aprRecord?: {
857
+ timestamp: string | bigint;
858
+ cumulated: number;
859
+ breakdowns: {
860
+ id: number;
861
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
862
+ identifier: string;
863
+ value: number;
864
+ aprRecordId: string;
865
+ }[];
866
+ } | undefined;
867
+ tvlRecord?: {
868
+ total: number;
869
+ timestamp: string | bigint;
870
+ breakdowns: {
871
+ id: number;
872
+ type: "TOKEN" | "PROTOCOL";
873
+ identifier: string;
874
+ value: number;
875
+ tvlRecordId: string;
876
+ }[];
877
+ } | undefined;
878
+ rewardsRecord?: {
879
+ id: string;
880
+ total: number;
881
+ timestamp: string | bigint;
882
+ breakdowns: {
883
+ id: number;
884
+ token: {
885
+ price?: number | null | undefined;
886
+ symbol: string;
887
+ id: string;
888
+ name: string | null;
889
+ icon: string;
890
+ address: string;
891
+ chainId: number;
892
+ decimals: number;
893
+ verified: boolean;
894
+ isTest: boolean;
895
+ };
896
+ value: number;
897
+ campaignId: string;
898
+ amount: string | bigint;
899
+ dailyRewardsRecordId: string;
900
+ }[];
901
+ } | undefined;
902
+ id: string;
903
+ name: string;
904
+ type: string;
905
+ status: string;
906
+ tokens: {
907
+ price?: number | null | undefined;
908
+ symbol: string;
909
+ id: string;
910
+ name: string | null;
911
+ icon: string;
912
+ address: string;
913
+ chainId: number;
914
+ decimals: number;
915
+ verified: boolean;
916
+ isTest: boolean;
917
+ }[];
918
+ tags: string[];
919
+ identifier: string;
920
+ chain: {
921
+ id: number;
922
+ name: string;
923
+ icon: string;
924
+ };
925
+ action: string;
926
+ chainId: number;
927
+ tvl: number;
928
+ apr: number;
929
+ dailyRewards: number;
930
+ } | null)[];
931
+ };
932
+ }>>;
933
+ };
934
+ count: {
935
+ get: (options: {
936
+ headers?: Record<string, unknown> | undefined;
937
+ query: {
938
+ name?: string | undefined;
939
+ type?: string | undefined;
940
+ status?: string | undefined;
941
+ sort?: string | undefined;
942
+ tokens?: string | undefined;
943
+ items?: number | undefined;
944
+ tags?: string | undefined;
945
+ identifier?: string | undefined;
946
+ page?: number | undefined;
947
+ action?: string | undefined;
948
+ campaignId?: string | undefined;
949
+ creatorAddress?: string | undefined;
950
+ chainId?: string | undefined;
951
+ mainProtocolId?: string | undefined;
952
+ campaigns?: boolean | undefined;
953
+ point?: boolean | undefined;
954
+ test?: boolean | undefined;
955
+ rewardTokenSymbol?: string | undefined;
956
+ order?: string | undefined;
957
+ minimumTvl?: number | undefined;
958
+ };
959
+ fetch?: RequestInit | undefined;
960
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
961
+ 200: number;
962
+ }>>;
963
+ };
964
+ campaigns: {
965
+ get: (options: {
966
+ headers?: Record<string, unknown> | undefined;
967
+ query: {
968
+ type?: string | undefined;
969
+ status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
970
+ items?: number | undefined;
971
+ subType?: number | undefined;
972
+ page?: number | undefined;
973
+ types?: string[] | undefined;
974
+ campaignId?: string | undefined;
975
+ opportunityId?: string | undefined;
976
+ startTimestamp?: string | undefined;
977
+ endTimestamp?: string | undefined;
978
+ creatorAddress?: string | undefined;
979
+ chainId?: number | undefined;
980
+ creatorId?: string | undefined;
981
+ mainParameter?: string | undefined;
982
+ point?: boolean | undefined;
983
+ tokenAddress?: string | undefined;
984
+ test?: boolean | undefined;
985
+ creatorTag?: string | undefined;
986
+ distributionChainIds?: number[] | undefined;
987
+ tokenSymbol?: string | undefined;
988
+ withOpportunity?: boolean | undefined;
989
+ createdAfter?: Date | null | undefined;
990
+ };
991
+ fetch?: RequestInit | undefined;
992
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
993
+ 200: {
994
+ protocol?: {
995
+ id: string;
996
+ name: string;
997
+ url: string;
998
+ description: string;
999
+ tags: string[];
1000
+ icon: string;
1001
+ } | null | undefined;
1002
+ depositUrl?: string | undefined;
1003
+ explorerAddress?: string | undefined;
1004
+ aprRecord?: {
1005
+ timestamp: string | bigint;
1006
+ cumulated: number;
1007
+ breakdowns: {
1008
+ id: number;
1009
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
1010
+ identifier: string;
1011
+ value: number;
1012
+ aprRecordId: string;
1013
+ }[];
1014
+ } | undefined;
1015
+ tvlRecord?: {
1016
+ total: number;
1017
+ timestamp: string | bigint;
1018
+ breakdowns: {
1019
+ id: number;
1020
+ type: "TOKEN" | "PROTOCOL";
1021
+ identifier: string;
1022
+ value: number;
1023
+ tvlRecordId: string;
1024
+ }[];
1025
+ } | undefined;
1026
+ rewardsRecord?: {
1027
+ id: string;
1028
+ total: number;
1029
+ timestamp: string | bigint;
1030
+ breakdowns: {
1031
+ id: number;
1032
+ token: {
1033
+ price?: number | null | undefined;
1034
+ symbol: string;
1035
+ id: string;
1036
+ name: string | null;
1037
+ icon: string;
1038
+ address: string;
1039
+ chainId: number;
1040
+ decimals: number;
1041
+ verified: boolean;
1042
+ isTest: boolean;
1043
+ };
1044
+ value: number;
1045
+ campaignId: string;
1046
+ amount: string | bigint;
1047
+ dailyRewardsRecordId: string;
1048
+ }[];
1049
+ } | undefined;
1050
+ id: string;
1051
+ name: string;
1052
+ type: string;
1053
+ status: string;
1054
+ tokens: {
1055
+ price?: number | null | undefined;
1056
+ symbol: string;
1057
+ id: string;
1058
+ name: string | null;
1059
+ icon: string;
1060
+ address: string;
1061
+ chainId: number;
1062
+ decimals: number;
1063
+ verified: boolean;
1064
+ isTest: boolean;
1065
+ }[];
1066
+ tags: string[];
1067
+ identifier: string;
1068
+ chain: {
1069
+ id: number;
1070
+ name: string;
1071
+ icon: string;
1072
+ };
1073
+ action: string;
1074
+ chainId: number;
1075
+ tvl: number;
1076
+ apr: number;
1077
+ dailyRewards: number;
1078
+ campaigns: {
1079
+ creator?: {
1080
+ tags?: string[] | undefined;
1081
+ creatorId?: string | null | undefined;
1082
+ address: string;
1083
+ } | undefined;
1084
+ campaignStatus?: {
1085
+ error?: string | undefined;
1086
+ details?: any;
1087
+ status: string;
1088
+ campaignId: string;
1089
+ computedUntil: string | number;
1090
+ processingStarted: string | number;
1091
+ } | undefined;
1092
+ distributionChain?: {
1093
+ id: number;
1094
+ name: string;
1095
+ icon: string;
1096
+ } | undefined;
1097
+ id: string;
1098
+ type: string;
1099
+ params: any;
1100
+ subType: number | null;
1101
+ chain: {
1102
+ id: number;
1103
+ name: string;
1104
+ icon: string;
1105
+ };
1106
+ computeChainId: number;
1107
+ distributionChainId: number;
1108
+ campaignId: string;
1109
+ rewardTokenId: string;
1110
+ amount: string;
1111
+ opportunityId: string;
1112
+ startTimestamp: string | number;
1113
+ endTimestamp: string | number;
1114
+ creatorAddress: string;
836
1115
  createdAt: string;
837
1116
  rewardToken: {
838
1117
  price?: number | null | undefined;
@@ -1026,6 +1305,7 @@ declare const eden: {
1026
1305
  action: import("@db/api").$Enums.OpportunityAction;
1027
1306
  chainId: number;
1028
1307
  depositUrl: string | null;
1308
+ explorerAddress: string | null;
1029
1309
  mainProtocolId: string | null;
1030
1310
  tvl: number;
1031
1311
  apr: number;
@@ -1224,6 +1504,7 @@ declare const eden: {
1224
1504
  })[];
1225
1505
  mainProtocol: "splice" | "morpho" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quick-swap" | "ramses" | "retro" | "stryke" | "sushiswap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "angles" | "enzyme" | "toros" | "vicuna" | "bunni" | "beratrax" | "concrete" | "cian" | "pendle" | "yei" | "filament" | "gammaswap" | "maha" | "tempest" | "uranium" | "holdstation" | "katana" | "satlayer" | undefined;
1226
1506
  depositUrl: any;
1507
+ explorerAddress: string | undefined;
1227
1508
  tags: string[];
1228
1509
  };
1229
1510
  }>>;
@@ -1312,6 +1593,7 @@ declare const eden: {
1312
1593
  action: import("@db/api").$Enums.OpportunityAction;
1313
1594
  chainId: number;
1314
1595
  depositUrl: string | null;
1596
+ explorerAddress: string | null;
1315
1597
  mainProtocolId: string | null;
1316
1598
  tvl: number;
1317
1599
  apr: number;
@@ -2662,6 +2944,7 @@ declare const eden: {
2662
2944
  action: import("@db/api").$Enums.OpportunityAction;
2663
2945
  chainId: number;
2664
2946
  depositUrl: string | null;
2947
+ explorerAddress: string | null;
2665
2948
  mainProtocolId: string | null;
2666
2949
  tvl: number;
2667
2950
  apr: number;
@@ -2768,6 +3051,7 @@ declare const eden: {
2768
3051
  action: import("@db/api").$Enums.OpportunityAction;
2769
3052
  chainId: number;
2770
3053
  depositUrl: string | null;
3054
+ explorerAddress: string | null;
2771
3055
  mainProtocolId: string | null;
2772
3056
  tvl: number;
2773
3057
  apr: number;
@@ -3874,6 +4158,7 @@ declare const eden: {
3874
4158
  })[];
3875
4159
  mainProtocol: "splice" | "morpho" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quick-swap" | "ramses" | "retro" | "stryke" | "sushiswap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "angles" | "enzyme" | "toros" | "vicuna" | "bunni" | "beratrax" | "concrete" | "cian" | "pendle" | "yei" | "filament" | "gammaswap" | "maha" | "tempest" | "uranium" | "holdstation" | "katana" | "satlayer" | undefined;
3876
4160
  depositUrl: any;
4161
+ explorerAddress: string | undefined;
3877
4162
  tags: string[];
3878
4163
  };
3879
4164
  }>>;
@@ -3895,6 +4180,7 @@ declare const eden: {
3895
4180
  icon: string;
3896
4181
  } | null | undefined;
3897
4182
  depositUrl?: string | undefined;
4183
+ explorerAddress?: string | undefined;
3898
4184
  aprRecord?: {
3899
4185
  timestamp: string | bigint;
3900
4186
  cumulated: number;
@@ -3999,6 +4285,7 @@ declare const eden: {
3999
4285
  icon: string;
4000
4286
  } | null | undefined;
4001
4287
  depositUrl?: string | undefined;
4288
+ explorerAddress?: string | undefined;
4002
4289
  aprRecord?: {
4003
4290
  timestamp: string | bigint;
4004
4291
  cumulated: number;
@@ -4157,6 +4444,7 @@ declare const eden: {
4157
4444
  action: import("@db/api").$Enums.OpportunityAction;
4158
4445
  chainId: number;
4159
4446
  depositUrl: string | null;
4447
+ explorerAddress: string | null;
4160
4448
  mainProtocolId: string | null;
4161
4449
  tvl: number;
4162
4450
  apr: number;
@@ -4169,6 +4457,7 @@ declare const eden: {
4169
4457
  name?: string | undefined;
4170
4458
  tags?: string[] | undefined;
4171
4459
  depositUrl?: string | undefined;
4460
+ explorerAddress?: string | undefined;
4172
4461
  protocols?: string[] | undefined;
4173
4462
  mainProtocol?: string | undefined;
4174
4463
  type: string;
@@ -4194,79 +4483,172 @@ declare const eden: {
4194
4483
  status: import("@db/api").$Enums.Status;
4195
4484
  tags: string[];
4196
4485
  identifier: string;
4197
- action: import("@db/api").$Enums.OpportunityAction;
4486
+ action: import("@db/api").$Enums.OpportunityAction;
4487
+ chainId: number;
4488
+ depositUrl: string | null;
4489
+ explorerAddress: string | null;
4490
+ mainProtocolId: string | null;
4491
+ tvl: number;
4492
+ apr: number;
4493
+ dailyRewards: number;
4494
+ } | null;
4495
+ }>>;
4496
+ get: (options: {
4497
+ headers?: Record<string, unknown> | undefined;
4498
+ query: {
4499
+ name?: string | undefined;
4500
+ type?: string | undefined;
4501
+ status?: string | undefined;
4502
+ sort?: string | undefined;
4503
+ tokens?: string | undefined;
4504
+ items?: number | undefined;
4505
+ tags?: string | undefined;
4506
+ identifier?: string | undefined;
4507
+ page?: number | undefined;
4508
+ action?: string | undefined;
4509
+ campaignId?: string | undefined;
4510
+ creatorAddress?: string | undefined;
4511
+ chainId?: string | undefined;
4512
+ mainProtocolId?: string | undefined;
4513
+ campaigns?: boolean | undefined;
4514
+ point?: boolean | undefined;
4515
+ test?: boolean | undefined;
4516
+ rewardTokenSymbol?: string | undefined;
4517
+ order?: string | undefined;
4518
+ minimumTvl?: number | undefined;
4519
+ };
4520
+ fetch?: RequestInit | undefined;
4521
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4522
+ 200: ({
4523
+ protocol?: {
4524
+ id: string;
4525
+ name: string;
4526
+ url: string;
4527
+ description: string;
4528
+ tags: string[];
4529
+ icon: string;
4530
+ } | null | undefined;
4531
+ depositUrl?: string | undefined;
4532
+ explorerAddress?: string | undefined;
4533
+ aprRecord?: {
4534
+ timestamp: string | bigint;
4535
+ cumulated: number;
4536
+ breakdowns: {
4537
+ id: number;
4538
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
4539
+ identifier: string;
4540
+ value: number;
4541
+ aprRecordId: string;
4542
+ }[];
4543
+ } | undefined;
4544
+ tvlRecord?: {
4545
+ total: number;
4546
+ timestamp: string | bigint;
4547
+ breakdowns: {
4548
+ id: number;
4549
+ type: "TOKEN" | "PROTOCOL";
4550
+ identifier: string;
4551
+ value: number;
4552
+ tvlRecordId: string;
4553
+ }[];
4554
+ } | undefined;
4555
+ rewardsRecord?: {
4556
+ id: string;
4557
+ total: number;
4558
+ timestamp: string | bigint;
4559
+ breakdowns: {
4560
+ id: number;
4561
+ token: {
4562
+ price?: number | null | undefined;
4563
+ symbol: string;
4564
+ id: string;
4565
+ name: string | null;
4566
+ icon: string;
4567
+ address: string;
4568
+ chainId: number;
4569
+ decimals: number;
4570
+ verified: boolean;
4571
+ isTest: boolean;
4572
+ };
4573
+ value: number;
4574
+ campaignId: string;
4575
+ amount: string | bigint;
4576
+ dailyRewardsRecordId: string;
4577
+ }[];
4578
+ } | undefined;
4579
+ id: string;
4580
+ name: string;
4581
+ type: string;
4582
+ status: string;
4583
+ tokens: {
4584
+ price?: number | null | undefined;
4585
+ symbol: string;
4586
+ id: string;
4587
+ name: string | null;
4588
+ icon: string;
4589
+ address: string;
4590
+ chainId: number;
4591
+ decimals: number;
4592
+ verified: boolean;
4593
+ isTest: boolean;
4594
+ }[];
4595
+ tags: string[];
4596
+ identifier: string;
4597
+ chain: {
4598
+ id: number;
4599
+ name: string;
4600
+ icon: string;
4601
+ };
4602
+ action: string;
4198
4603
  chainId: number;
4199
- depositUrl: string | null;
4200
- mainProtocolId: string | null;
4201
4604
  tvl: number;
4202
4605
  apr: number;
4203
4606
  dailyRewards: number;
4204
- } | null;
4205
- }>>;
4206
- get: (options: {
4207
- headers?: Record<string, unknown> | undefined;
4208
- query: {
4209
- name?: string | undefined;
4210
- type?: string | undefined;
4211
- status?: string | undefined;
4212
- sort?: string | undefined;
4213
- tokens?: string | undefined;
4214
- items?: number | undefined;
4215
- tags?: string | undefined;
4216
- identifier?: string | undefined;
4217
- page?: number | undefined;
4218
- action?: string | undefined;
4219
- campaignId?: string | undefined;
4220
- creatorAddress?: string | undefined;
4221
- chainId?: string | undefined;
4222
- mainProtocolId?: string | undefined;
4223
- campaigns?: boolean | undefined;
4224
- point?: boolean | undefined;
4225
- test?: boolean | undefined;
4226
- rewardTokenSymbol?: string | undefined;
4227
- order?: string | undefined;
4228
- minimumTvl?: number | undefined;
4229
- };
4230
- fetch?: RequestInit | undefined;
4231
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4232
- 200: {
4233
- apr: number;
4234
- aprRecord: {
4607
+ } | null)[];
4608
+ } | {
4609
+ 200: never;
4610
+ } | {
4611
+ 200: (Response | ({
4612
+ protocol?: {
4613
+ id: string;
4614
+ name: string;
4615
+ url: string;
4616
+ description: string;
4617
+ tags: string[];
4618
+ icon: string;
4619
+ } | null | undefined;
4620
+ depositUrl?: string | undefined;
4621
+ explorerAddress?: string | undefined;
4622
+ aprRecord?: {
4623
+ timestamp: string | bigint;
4235
4624
  cumulated: number;
4236
- timestamp: bigint;
4237
4625
  breakdowns: {
4238
4626
  id: number;
4239
- type: import("@db/api").$Enums.AprType;
4240
- uuid: string;
4627
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
4241
4628
  identifier: string;
4242
4629
  value: number;
4243
4630
  aprRecordId: string;
4244
4631
  }[];
4245
- };
4246
- tvlRecord: {
4247
- id: string;
4632
+ } | undefined;
4633
+ tvlRecord?: {
4248
4634
  total: number;
4249
- timestamp: bigint;
4635
+ timestamp: string | bigint;
4250
4636
  breakdowns: {
4251
4637
  id: number;
4252
- type: import("@db/api").$Enums.TvlType;
4253
- uuid: string;
4638
+ type: "TOKEN" | "PROTOCOL";
4254
4639
  identifier: string;
4255
4640
  value: number;
4256
4641
  tvlRecordId: string;
4257
4642
  }[];
4258
- };
4259
- rewardsRecord: {
4643
+ } | undefined;
4644
+ rewardsRecord?: {
4260
4645
  id: string;
4261
4646
  total: number;
4262
- timestamp: bigint;
4647
+ timestamp: string | bigint;
4263
4648
  breakdowns: {
4264
4649
  id: number;
4265
- uuid: string;
4266
- value: number;
4267
- campaignId: string;
4268
- dailyRewardsRecordId: string;
4269
4650
  token: {
4651
+ price?: number | null | undefined;
4270
4652
  symbol: string;
4271
4653
  id: string;
4272
4654
  name: string | null;
@@ -4274,26 +4656,107 @@ declare const eden: {
4274
4656
  address: string;
4275
4657
  chainId: number;
4276
4658
  decimals: number;
4277
- displaySymbol: string;
4278
4659
  verified: boolean;
4279
4660
  isTest: boolean;
4280
- isPoint: boolean;
4281
- isNative: boolean;
4282
- price: number | null;
4283
4661
  };
4284
- amount: bigint;
4662
+ value: number;
4663
+ campaignId: string;
4664
+ amount: string | bigint;
4665
+ dailyRewardsRecordId: string;
4285
4666
  }[];
4667
+ } | undefined;
4668
+ id: string;
4669
+ name: string;
4670
+ type: string;
4671
+ status: string;
4672
+ tokens: {
4673
+ price?: number | null | undefined;
4674
+ symbol: string;
4675
+ id: string;
4676
+ name: string | null;
4677
+ icon: string;
4678
+ address: string;
4679
+ chainId: number;
4680
+ decimals: number;
4681
+ verified: boolean;
4682
+ isTest: boolean;
4683
+ }[];
4684
+ tags: string[];
4685
+ identifier: string;
4686
+ chain: {
4687
+ id: number;
4688
+ name: string;
4689
+ icon: string;
4286
4690
  };
4287
- campaigns: {
4288
- params: any;
4289
- chain: {
4290
- id: number;
4691
+ action: string;
4692
+ chainId: number;
4693
+ tvl: number;
4694
+ apr: number;
4695
+ dailyRewards: number;
4696
+ } | null)[] | {
4697
+ 200: ({
4698
+ protocol?: {
4699
+ id: string;
4291
4700
  name: string;
4701
+ url: string;
4702
+ description: string;
4703
+ tags: string[];
4292
4704
  icon: string;
4293
- };
4294
- endTimestamp: number;
4295
- startTimestamp: number;
4296
- rewardToken: {
4705
+ } | null | undefined;
4706
+ depositUrl?: string | undefined;
4707
+ explorerAddress?: string | undefined;
4708
+ aprRecord?: {
4709
+ timestamp: string | bigint;
4710
+ cumulated: number;
4711
+ breakdowns: {
4712
+ id: number;
4713
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
4714
+ identifier: string;
4715
+ value: number;
4716
+ aprRecordId: string;
4717
+ }[];
4718
+ } | undefined;
4719
+ tvlRecord?: {
4720
+ total: number;
4721
+ timestamp: string | bigint;
4722
+ breakdowns: {
4723
+ id: number;
4724
+ type: "TOKEN" | "PROTOCOL";
4725
+ identifier: string;
4726
+ value: number;
4727
+ tvlRecordId: string;
4728
+ }[];
4729
+ } | undefined;
4730
+ rewardsRecord?: {
4731
+ id: string;
4732
+ total: number;
4733
+ timestamp: string | bigint;
4734
+ breakdowns: {
4735
+ id: number;
4736
+ token: {
4737
+ price?: number | null | undefined;
4738
+ symbol: string;
4739
+ id: string;
4740
+ name: string | null;
4741
+ icon: string;
4742
+ address: string;
4743
+ chainId: number;
4744
+ decimals: number;
4745
+ verified: boolean;
4746
+ isTest: boolean;
4747
+ };
4748
+ value: number;
4749
+ campaignId: string;
4750
+ amount: string | bigint;
4751
+ dailyRewardsRecordId: string;
4752
+ }[];
4753
+ } | undefined;
4754
+ id: string;
4755
+ name: string;
4756
+ type: string;
4757
+ status: string;
4758
+ tokens: {
4759
+ price?: number | null | undefined;
4297
4760
  symbol: string;
4298
4761
  id: string;
4299
4762
  name: string | null;
@@ -4303,59 +4766,83 @@ declare const eden: {
4303
4766
  decimals: number;
4304
4767
  verified: boolean;
4305
4768
  isTest: boolean;
4306
- isPoint: boolean;
4307
- isNative: boolean;
4308
- } & {
4309
- price?: number | null | undefined;
4310
- };
4311
- distributionChain: {
4769
+ }[];
4770
+ tags: string[];
4771
+ identifier: string;
4772
+ chain: {
4312
4773
  id: number;
4313
4774
  name: string;
4314
4775
  icon: string;
4315
- } | undefined;
4316
- campaignStatus: {
4317
- computedUntil: number;
4318
- processingStarted: number;
4319
- error: string;
4320
- status: import("@db/api").$Enums.RunStatus;
4321
- details: import("database/api/.generated/runtime/library").JsonValue;
4322
- campaignId: string;
4323
- } | undefined;
4324
- creatorAddress: string;
4325
- creator: {
4326
- tags: string[];
4327
- address: string;
4328
- creatorId: string | null;
4329
4776
  };
4330
- createdAt: string;
4331
- Opportunity: {
4332
- id: string;
4333
- name: string;
4334
- type: string;
4335
- status: import("@db/api").$Enums.Status;
4336
- tags: string[];
4777
+ action: string;
4778
+ chainId: number;
4779
+ tvl: number;
4780
+ apr: number;
4781
+ dailyRewards: number;
4782
+ } | null)[];
4783
+ }) & ({
4784
+ protocol?: {
4785
+ id: string;
4786
+ name: string;
4787
+ url: string;
4788
+ description: string;
4789
+ tags: string[];
4790
+ icon: string;
4791
+ } | null | undefined;
4792
+ depositUrl?: string | undefined;
4793
+ explorerAddress?: string | undefined;
4794
+ aprRecord?: {
4795
+ timestamp: string | bigint;
4796
+ cumulated: number;
4797
+ breakdowns: {
4798
+ id: number;
4799
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
4337
4800
  identifier: string;
4338
- action: import("@db/api").$Enums.OpportunityAction;
4339
- chainId: number;
4340
- depositUrl: string | null;
4341
- mainProtocolId: string | null;
4342
- tvl: number;
4343
- apr: number;
4344
- dailyRewards: number;
4345
- };
4801
+ value: number;
4802
+ aprRecordId: string;
4803
+ }[];
4804
+ } | undefined;
4805
+ tvlRecord?: {
4806
+ total: number;
4807
+ timestamp: string | bigint;
4808
+ breakdowns: {
4809
+ id: number;
4810
+ type: "TOKEN" | "PROTOCOL";
4811
+ identifier: string;
4812
+ value: number;
4813
+ tvlRecordId: string;
4814
+ }[];
4815
+ } | undefined;
4816
+ rewardsRecord?: {
4346
4817
  id: string;
4347
- type: string;
4348
- subType: number | null;
4349
- computeChainId: number;
4350
- distributionChainId: number;
4351
- campaignId: string;
4352
- rewardTokenId: string;
4353
- amount: string;
4354
- opportunityId: string;
4355
- }[] | undefined;
4818
+ total: number;
4819
+ timestamp: string | bigint;
4820
+ breakdowns: {
4821
+ id: number;
4822
+ token: {
4823
+ price?: number | null | undefined;
4824
+ symbol: string;
4825
+ id: string;
4826
+ name: string | null;
4827
+ icon: string;
4828
+ address: string;
4829
+ chainId: number;
4830
+ decimals: number;
4831
+ verified: boolean;
4832
+ isTest: boolean;
4833
+ };
4834
+ value: number;
4835
+ campaignId: string;
4836
+ amount: string | bigint;
4837
+ dailyRewardsRecordId: string;
4838
+ }[];
4839
+ } | undefined;
4356
4840
  id: string;
4357
- depositUrl: string | undefined;
4358
- tokens: ({
4841
+ name: string;
4842
+ type: string;
4843
+ status: string;
4844
+ tokens: {
4845
+ price?: number | null | undefined;
4359
4846
  symbol: string;
4360
4847
  id: string;
4361
4848
  name: string | null;
@@ -4365,34 +4852,109 @@ declare const eden: {
4365
4852
  decimals: number;
4366
4853
  verified: boolean;
4367
4854
  isTest: boolean;
4368
- isPoint: boolean;
4369
- isNative: boolean;
4370
- } & {
4371
- price?: number | null | undefined;
4372
- })[];
4855
+ }[];
4856
+ tags: string[];
4857
+ identifier: string;
4373
4858
  chain: {
4374
4859
  id: number;
4375
4860
  name: string;
4376
4861
  icon: string;
4377
4862
  };
4378
- protocol: {
4379
- id: string;
4380
- name: string;
4381
- url: string;
4382
- description: string;
4383
- tags: string[];
4384
- icon: string;
4385
- } | undefined;
4386
- name: string;
4387
- type: string;
4388
- status: import("@db/api").$Enums.Status;
4389
- tags: string[];
4390
- identifier: string;
4391
- action: import("@db/api").$Enums.OpportunityAction;
4863
+ action: string;
4392
4864
  chainId: number;
4393
4865
  tvl: number;
4866
+ apr: number;
4394
4867
  dailyRewards: number;
4395
- }[];
4868
+ } | null)[];
4869
+ } | {
4870
+ 200: {
4871
+ 200: ({
4872
+ protocol?: {
4873
+ id: string;
4874
+ name: string;
4875
+ url: string;
4876
+ description: string;
4877
+ tags: string[];
4878
+ icon: string;
4879
+ } | null | undefined;
4880
+ depositUrl?: string | undefined;
4881
+ explorerAddress?: string | undefined;
4882
+ aprRecord?: {
4883
+ timestamp: string | bigint;
4884
+ cumulated: number;
4885
+ breakdowns: {
4886
+ id: number;
4887
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
4888
+ identifier: string;
4889
+ value: number;
4890
+ aprRecordId: string;
4891
+ }[];
4892
+ } | undefined;
4893
+ tvlRecord?: {
4894
+ total: number;
4895
+ timestamp: string | bigint;
4896
+ breakdowns: {
4897
+ id: number;
4898
+ type: "TOKEN" | "PROTOCOL";
4899
+ identifier: string;
4900
+ value: number;
4901
+ tvlRecordId: string;
4902
+ }[];
4903
+ } | undefined;
4904
+ rewardsRecord?: {
4905
+ id: string;
4906
+ total: number;
4907
+ timestamp: string | bigint;
4908
+ breakdowns: {
4909
+ id: number;
4910
+ token: {
4911
+ price?: number | null | undefined;
4912
+ symbol: string;
4913
+ id: string;
4914
+ name: string | null;
4915
+ icon: string;
4916
+ address: string;
4917
+ chainId: number;
4918
+ decimals: number;
4919
+ verified: boolean;
4920
+ isTest: boolean;
4921
+ };
4922
+ value: number;
4923
+ campaignId: string;
4924
+ amount: string | bigint;
4925
+ dailyRewardsRecordId: string;
4926
+ }[];
4927
+ } | undefined;
4928
+ id: string;
4929
+ name: string;
4930
+ type: string;
4931
+ status: string;
4932
+ tokens: {
4933
+ price?: number | null | undefined;
4934
+ symbol: string;
4935
+ id: string;
4936
+ name: string | null;
4937
+ icon: string;
4938
+ address: string;
4939
+ chainId: number;
4940
+ decimals: number;
4941
+ verified: boolean;
4942
+ isTest: boolean;
4943
+ }[];
4944
+ tags: string[];
4945
+ identifier: string;
4946
+ chain: {
4947
+ id: number;
4948
+ name: string;
4949
+ icon: string;
4950
+ };
4951
+ action: string;
4952
+ chainId: number;
4953
+ tvl: number;
4954
+ apr: number;
4955
+ dailyRewards: number;
4956
+ } | null)[];
4957
+ };
4396
4958
  }>>;
4397
4959
  };
4398
4960
  count: {
@@ -4464,6 +5026,7 @@ declare const eden: {
4464
5026
  icon: string;
4465
5027
  } | null | undefined;
4466
5028
  depositUrl?: string | undefined;
5029
+ explorerAddress?: string | undefined;
4467
5030
  aprRecord?: {
4468
5031
  timestamp: string | bigint;
4469
5032
  cumulated: number;
@@ -4768,6 +5331,7 @@ declare const eden: {
4768
5331
  action: import("@db/api").$Enums.OpportunityAction;
4769
5332
  chainId: number;
4770
5333
  depositUrl: string | null;
5334
+ explorerAddress: string | null;
4771
5335
  mainProtocolId: string | null;
4772
5336
  tvl: number;
4773
5337
  apr: number;
@@ -4966,6 +5530,7 @@ declare const eden: {
4966
5530
  })[];
4967
5531
  mainProtocol: "splice" | "morpho" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quick-swap" | "ramses" | "retro" | "stryke" | "sushiswap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "angles" | "enzyme" | "toros" | "vicuna" | "bunni" | "beratrax" | "concrete" | "cian" | "pendle" | "yei" | "filament" | "gammaswap" | "maha" | "tempest" | "uranium" | "holdstation" | "katana" | "satlayer" | undefined;
4968
5532
  depositUrl: any;
5533
+ explorerAddress: string | undefined;
4969
5534
  tags: string[];
4970
5535
  };
4971
5536
  }>>;
@@ -5054,6 +5619,7 @@ declare const eden: {
5054
5619
  action: import("@db/api").$Enums.OpportunityAction;
5055
5620
  chainId: number;
5056
5621
  depositUrl: string | null;
5622
+ explorerAddress: string | null;
5057
5623
  mainProtocolId: string | null;
5058
5624
  tvl: number;
5059
5625
  apr: number;
@@ -6404,6 +6970,7 @@ declare const eden: {
6404
6970
  action: import("@db/api").$Enums.OpportunityAction;
6405
6971
  chainId: number;
6406
6972
  depositUrl: string | null;
6973
+ explorerAddress: string | null;
6407
6974
  mainProtocolId: string | null;
6408
6975
  tvl: number;
6409
6976
  apr: number;
@@ -6510,6 +7077,7 @@ declare const eden: {
6510
7077
  action: import("@db/api").$Enums.OpportunityAction;
6511
7078
  chainId: number;
6512
7079
  depositUrl: string | null;
7080
+ explorerAddress: string | null;
6513
7081
  mainProtocolId: string | null;
6514
7082
  tvl: number;
6515
7083
  apr: number;
@@ -8311,6 +8879,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8311
8879
  name?: string | undefined;
8312
8880
  tags?: string[] | undefined;
8313
8881
  depositUrl?: string | undefined;
8882
+ explorerAddress?: string | undefined;
8314
8883
  protocols?: string[] | undefined;
8315
8884
  mainProtocol?: string | undefined;
8316
8885
  type: string;
@@ -8339,6 +8908,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8339
8908
  action: import("@db/api").$Enums.OpportunityAction;
8340
8909
  chainId: number;
8341
8910
  depositUrl: string | null;
8911
+ explorerAddress: string | null;
8342
8912
  mainProtocolId: string | null;
8343
8913
  tvl: number;
8344
8914
  apr: number;
@@ -8387,6 +8957,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8387
8957
  })[];
8388
8958
  mainProtocol: "splice" | "morpho" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quick-swap" | "ramses" | "retro" | "stryke" | "sushiswap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "angles" | "enzyme" | "toros" | "vicuna" | "bunni" | "beratrax" | "concrete" | "cian" | "pendle" | "yei" | "filament" | "gammaswap" | "maha" | "tempest" | "uranium" | "holdstation" | "katana" | "satlayer" | undefined;
8389
8959
  depositUrl: any;
8960
+ explorerAddress: string | undefined;
8390
8961
  tags: string[];
8391
8962
  };
8392
8963
  };
@@ -8423,44 +8994,136 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8423
8994
  };
8424
8995
  headers: unknown;
8425
8996
  response: {
8426
- 200: {
8427
- apr: number;
8428
- aprRecord: {
8997
+ 200: ({
8998
+ protocol?: {
8999
+ id: string;
9000
+ name: string;
9001
+ url: string;
9002
+ description: string;
9003
+ tags: string[];
9004
+ icon: string;
9005
+ } | null | undefined;
9006
+ depositUrl?: string | undefined;
9007
+ explorerAddress?: string | undefined;
9008
+ aprRecord?: {
9009
+ timestamp: string | bigint;
8429
9010
  cumulated: number;
8430
- timestamp: bigint;
8431
9011
  breakdowns: {
8432
9012
  id: number;
8433
- type: import("@db/api").$Enums.AprType;
8434
- uuid: string;
9013
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
8435
9014
  identifier: string;
8436
9015
  value: number;
8437
9016
  aprRecordId: string;
8438
9017
  }[];
9018
+ } | undefined;
9019
+ tvlRecord?: {
9020
+ total: number;
9021
+ timestamp: string | bigint;
9022
+ breakdowns: {
9023
+ id: number;
9024
+ type: "TOKEN" | "PROTOCOL";
9025
+ identifier: string;
9026
+ value: number;
9027
+ tvlRecordId: string;
9028
+ }[];
9029
+ } | undefined;
9030
+ rewardsRecord?: {
9031
+ id: string;
9032
+ total: number;
9033
+ timestamp: string | bigint;
9034
+ breakdowns: {
9035
+ id: number;
9036
+ token: {
9037
+ price?: number | null | undefined;
9038
+ symbol: string;
9039
+ id: string;
9040
+ name: string | null;
9041
+ icon: string;
9042
+ address: string;
9043
+ chainId: number;
9044
+ decimals: number;
9045
+ verified: boolean;
9046
+ isTest: boolean;
9047
+ };
9048
+ value: number;
9049
+ campaignId: string;
9050
+ amount: string | bigint;
9051
+ dailyRewardsRecordId: string;
9052
+ }[];
9053
+ } | undefined;
9054
+ id: string;
9055
+ name: string;
9056
+ type: string;
9057
+ status: string;
9058
+ tokens: {
9059
+ price?: number | null | undefined;
9060
+ symbol: string;
9061
+ id: string;
9062
+ name: string | null;
9063
+ icon: string;
9064
+ address: string;
9065
+ chainId: number;
9066
+ decimals: number;
9067
+ verified: boolean;
9068
+ isTest: boolean;
9069
+ }[];
9070
+ tags: string[];
9071
+ identifier: string;
9072
+ chain: {
9073
+ id: number;
9074
+ name: string;
9075
+ icon: string;
8439
9076
  };
8440
- tvlRecord: {
9077
+ action: string;
9078
+ chainId: number;
9079
+ tvl: number;
9080
+ apr: number;
9081
+ dailyRewards: number;
9082
+ } | null)[];
9083
+ } | {
9084
+ 200: never;
9085
+ } | {
9086
+ 200: (Response | ({
9087
+ protocol?: {
8441
9088
  id: string;
9089
+ name: string;
9090
+ url: string;
9091
+ description: string;
9092
+ tags: string[];
9093
+ icon: string;
9094
+ } | null | undefined;
9095
+ depositUrl?: string | undefined;
9096
+ explorerAddress?: string | undefined;
9097
+ aprRecord?: {
9098
+ timestamp: string | bigint;
9099
+ cumulated: number;
9100
+ breakdowns: {
9101
+ id: number;
9102
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
9103
+ identifier: string;
9104
+ value: number;
9105
+ aprRecordId: string;
9106
+ }[];
9107
+ } | undefined;
9108
+ tvlRecord?: {
8442
9109
  total: number;
8443
- timestamp: bigint;
9110
+ timestamp: string | bigint;
8444
9111
  breakdowns: {
8445
9112
  id: number;
8446
- type: import("@db/api").$Enums.TvlType;
8447
- uuid: string;
9113
+ type: "TOKEN" | "PROTOCOL";
8448
9114
  identifier: string;
8449
9115
  value: number;
8450
9116
  tvlRecordId: string;
8451
9117
  }[];
8452
- };
8453
- rewardsRecord: {
9118
+ } | undefined;
9119
+ rewardsRecord?: {
8454
9120
  id: string;
8455
9121
  total: number;
8456
- timestamp: bigint;
9122
+ timestamp: string | bigint;
8457
9123
  breakdowns: {
8458
9124
  id: number;
8459
- uuid: string;
8460
- value: number;
8461
- campaignId: string;
8462
- dailyRewardsRecordId: string;
8463
9125
  token: {
9126
+ price?: number | null | undefined;
8464
9127
  symbol: string;
8465
9128
  id: string;
8466
9129
  name: string | null;
@@ -8468,26 +9131,107 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8468
9131
  address: string;
8469
9132
  chainId: number;
8470
9133
  decimals: number;
8471
- displaySymbol: string;
8472
9134
  verified: boolean;
8473
9135
  isTest: boolean;
8474
- isPoint: boolean;
8475
- isNative: boolean;
8476
- price: number | null;
8477
9136
  };
8478
- amount: bigint;
9137
+ value: number;
9138
+ campaignId: string;
9139
+ amount: string | bigint;
9140
+ dailyRewardsRecordId: string;
8479
9141
  }[];
9142
+ } | undefined;
9143
+ id: string;
9144
+ name: string;
9145
+ type: string;
9146
+ status: string;
9147
+ tokens: {
9148
+ price?: number | null | undefined;
9149
+ symbol: string;
9150
+ id: string;
9151
+ name: string | null;
9152
+ icon: string;
9153
+ address: string;
9154
+ chainId: number;
9155
+ decimals: number;
9156
+ verified: boolean;
9157
+ isTest: boolean;
9158
+ }[];
9159
+ tags: string[];
9160
+ identifier: string;
9161
+ chain: {
9162
+ id: number;
9163
+ name: string;
9164
+ icon: string;
8480
9165
  };
8481
- campaigns: {
8482
- params: any;
8483
- chain: {
8484
- id: number;
9166
+ action: string;
9167
+ chainId: number;
9168
+ tvl: number;
9169
+ apr: number;
9170
+ dailyRewards: number;
9171
+ } | null)[] | {
9172
+ 200: ({
9173
+ protocol?: {
9174
+ id: string;
8485
9175
  name: string;
9176
+ url: string;
9177
+ description: string;
9178
+ tags: string[];
8486
9179
  icon: string;
8487
- };
8488
- endTimestamp: number;
8489
- startTimestamp: number;
8490
- rewardToken: {
9180
+ } | null | undefined;
9181
+ depositUrl?: string | undefined;
9182
+ explorerAddress?: string | undefined;
9183
+ aprRecord?: {
9184
+ timestamp: string | bigint;
9185
+ cumulated: number;
9186
+ breakdowns: {
9187
+ id: number;
9188
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
9189
+ identifier: string;
9190
+ value: number;
9191
+ aprRecordId: string;
9192
+ }[];
9193
+ } | undefined;
9194
+ tvlRecord?: {
9195
+ total: number;
9196
+ timestamp: string | bigint;
9197
+ breakdowns: {
9198
+ id: number;
9199
+ type: "TOKEN" | "PROTOCOL";
9200
+ identifier: string;
9201
+ value: number;
9202
+ tvlRecordId: string;
9203
+ }[];
9204
+ } | undefined;
9205
+ rewardsRecord?: {
9206
+ id: string;
9207
+ total: number;
9208
+ timestamp: string | bigint;
9209
+ breakdowns: {
9210
+ id: number;
9211
+ token: {
9212
+ price?: number | null | undefined;
9213
+ symbol: string;
9214
+ id: string;
9215
+ name: string | null;
9216
+ icon: string;
9217
+ address: string;
9218
+ chainId: number;
9219
+ decimals: number;
9220
+ verified: boolean;
9221
+ isTest: boolean;
9222
+ };
9223
+ value: number;
9224
+ campaignId: string;
9225
+ amount: string | bigint;
9226
+ dailyRewardsRecordId: string;
9227
+ }[];
9228
+ } | undefined;
9229
+ id: string;
9230
+ name: string;
9231
+ type: string;
9232
+ status: string;
9233
+ tokens: {
9234
+ price?: number | null | undefined;
8491
9235
  symbol: string;
8492
9236
  id: string;
8493
9237
  name: string | null;
@@ -8497,59 +9241,83 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8497
9241
  decimals: number;
8498
9242
  verified: boolean;
8499
9243
  isTest: boolean;
8500
- isPoint: boolean;
8501
- isNative: boolean;
8502
- } & {
8503
- price?: number | null | undefined;
8504
- };
8505
- distributionChain: {
9244
+ }[];
9245
+ tags: string[];
9246
+ identifier: string;
9247
+ chain: {
8506
9248
  id: number;
8507
9249
  name: string;
8508
9250
  icon: string;
8509
- } | undefined;
8510
- campaignStatus: {
8511
- computedUntil: number;
8512
- processingStarted: number;
8513
- error: string;
8514
- status: import("@db/api").$Enums.RunStatus;
8515
- details: import("database/api/.generated/runtime/library").JsonValue;
8516
- campaignId: string;
8517
- } | undefined;
8518
- creatorAddress: string;
8519
- creator: {
8520
- tags: string[];
8521
- address: string;
8522
- creatorId: string | null;
8523
9251
  };
8524
- createdAt: string;
8525
- Opportunity: {
8526
- id: string;
8527
- name: string;
8528
- type: string;
8529
- status: import("@db/api").$Enums.Status;
8530
- tags: string[];
9252
+ action: string;
9253
+ chainId: number;
9254
+ tvl: number;
9255
+ apr: number;
9256
+ dailyRewards: number;
9257
+ } | null)[];
9258
+ }) & ({
9259
+ protocol?: {
9260
+ id: string;
9261
+ name: string;
9262
+ url: string;
9263
+ description: string;
9264
+ tags: string[];
9265
+ icon: string;
9266
+ } | null | undefined;
9267
+ depositUrl?: string | undefined;
9268
+ explorerAddress?: string | undefined;
9269
+ aprRecord?: {
9270
+ timestamp: string | bigint;
9271
+ cumulated: number;
9272
+ breakdowns: {
9273
+ id: number;
9274
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
8531
9275
  identifier: string;
8532
- action: import("@db/api").$Enums.OpportunityAction;
8533
- chainId: number;
8534
- depositUrl: string | null;
8535
- mainProtocolId: string | null;
8536
- tvl: number;
8537
- apr: number;
8538
- dailyRewards: number;
8539
- };
9276
+ value: number;
9277
+ aprRecordId: string;
9278
+ }[];
9279
+ } | undefined;
9280
+ tvlRecord?: {
9281
+ total: number;
9282
+ timestamp: string | bigint;
9283
+ breakdowns: {
9284
+ id: number;
9285
+ type: "TOKEN" | "PROTOCOL";
9286
+ identifier: string;
9287
+ value: number;
9288
+ tvlRecordId: string;
9289
+ }[];
9290
+ } | undefined;
9291
+ rewardsRecord?: {
8540
9292
  id: string;
8541
- type: string;
8542
- subType: number | null;
8543
- computeChainId: number;
8544
- distributionChainId: number;
8545
- campaignId: string;
8546
- rewardTokenId: string;
8547
- amount: string;
8548
- opportunityId: string;
8549
- }[] | undefined;
9293
+ total: number;
9294
+ timestamp: string | bigint;
9295
+ breakdowns: {
9296
+ id: number;
9297
+ token: {
9298
+ price?: number | null | undefined;
9299
+ symbol: string;
9300
+ id: string;
9301
+ name: string | null;
9302
+ icon: string;
9303
+ address: string;
9304
+ chainId: number;
9305
+ decimals: number;
9306
+ verified: boolean;
9307
+ isTest: boolean;
9308
+ };
9309
+ value: number;
9310
+ campaignId: string;
9311
+ amount: string | bigint;
9312
+ dailyRewardsRecordId: string;
9313
+ }[];
9314
+ } | undefined;
8550
9315
  id: string;
8551
- depositUrl: string | undefined;
8552
- tokens: ({
9316
+ name: string;
9317
+ type: string;
9318
+ status: string;
9319
+ tokens: {
9320
+ price?: number | null | undefined;
8553
9321
  symbol: string;
8554
9322
  id: string;
8555
9323
  name: string | null;
@@ -8559,34 +9327,109 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8559
9327
  decimals: number;
8560
9328
  verified: boolean;
8561
9329
  isTest: boolean;
8562
- isPoint: boolean;
8563
- isNative: boolean;
8564
- } & {
8565
- price?: number | null | undefined;
8566
- })[];
9330
+ }[];
9331
+ tags: string[];
9332
+ identifier: string;
8567
9333
  chain: {
8568
9334
  id: number;
8569
9335
  name: string;
8570
9336
  icon: string;
8571
9337
  };
8572
- protocol: {
9338
+ action: string;
9339
+ chainId: number;
9340
+ tvl: number;
9341
+ apr: number;
9342
+ dailyRewards: number;
9343
+ } | null)[];
9344
+ } | {
9345
+ 200: {
9346
+ 200: ({
9347
+ protocol?: {
9348
+ id: string;
9349
+ name: string;
9350
+ url: string;
9351
+ description: string;
9352
+ tags: string[];
9353
+ icon: string;
9354
+ } | null | undefined;
9355
+ depositUrl?: string | undefined;
9356
+ explorerAddress?: string | undefined;
9357
+ aprRecord?: {
9358
+ timestamp: string | bigint;
9359
+ cumulated: number;
9360
+ breakdowns: {
9361
+ id: number;
9362
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
9363
+ identifier: string;
9364
+ value: number;
9365
+ aprRecordId: string;
9366
+ }[];
9367
+ } | undefined;
9368
+ tvlRecord?: {
9369
+ total: number;
9370
+ timestamp: string | bigint;
9371
+ breakdowns: {
9372
+ id: number;
9373
+ type: "TOKEN" | "PROTOCOL";
9374
+ identifier: string;
9375
+ value: number;
9376
+ tvlRecordId: string;
9377
+ }[];
9378
+ } | undefined;
9379
+ rewardsRecord?: {
9380
+ id: string;
9381
+ total: number;
9382
+ timestamp: string | bigint;
9383
+ breakdowns: {
9384
+ id: number;
9385
+ token: {
9386
+ price?: number | null | undefined;
9387
+ symbol: string;
9388
+ id: string;
9389
+ name: string | null;
9390
+ icon: string;
9391
+ address: string;
9392
+ chainId: number;
9393
+ decimals: number;
9394
+ verified: boolean;
9395
+ isTest: boolean;
9396
+ };
9397
+ value: number;
9398
+ campaignId: string;
9399
+ amount: string | bigint;
9400
+ dailyRewardsRecordId: string;
9401
+ }[];
9402
+ } | undefined;
8573
9403
  id: string;
8574
9404
  name: string;
8575
- url: string;
8576
- description: string;
9405
+ type: string;
9406
+ status: string;
9407
+ tokens: {
9408
+ price?: number | null | undefined;
9409
+ symbol: string;
9410
+ id: string;
9411
+ name: string | null;
9412
+ icon: string;
9413
+ address: string;
9414
+ chainId: number;
9415
+ decimals: number;
9416
+ verified: boolean;
9417
+ isTest: boolean;
9418
+ }[];
8577
9419
  tags: string[];
8578
- icon: string;
8579
- } | undefined;
8580
- name: string;
8581
- type: string;
8582
- status: import("@db/api").$Enums.Status;
8583
- tags: string[];
8584
- identifier: string;
8585
- action: import("@db/api").$Enums.OpportunityAction;
8586
- chainId: number;
8587
- tvl: number;
8588
- dailyRewards: number;
8589
- }[];
9420
+ identifier: string;
9421
+ chain: {
9422
+ id: number;
9423
+ name: string;
9424
+ icon: string;
9425
+ };
9426
+ action: string;
9427
+ chainId: number;
9428
+ tvl: number;
9429
+ apr: number;
9430
+ dailyRewards: number;
9431
+ } | null)[];
9432
+ };
8590
9433
  };
8591
9434
  };
8592
9435
  };
@@ -8650,6 +9493,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8650
9493
  icon: string;
8651
9494
  } | null | undefined;
8652
9495
  depositUrl?: string | undefined;
9496
+ explorerAddress?: string | undefined;
8653
9497
  aprRecord?: {
8654
9498
  timestamp: string | bigint;
8655
9499
  cumulated: number;
@@ -8780,6 +9624,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8780
9624
  icon: string;
8781
9625
  } | null | undefined;
8782
9626
  depositUrl?: string | undefined;
9627
+ explorerAddress?: string | undefined;
8783
9628
  aprRecord?: {
8784
9629
  timestamp: string | bigint;
8785
9630
  cumulated: number;
@@ -8944,6 +9789,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8944
9789
  icon: string;
8945
9790
  } | null | undefined;
8946
9791
  depositUrl?: string | undefined;
9792
+ explorerAddress?: string | undefined;
8947
9793
  aprRecord?: {
8948
9794
  timestamp: string | bigint;
8949
9795
  cumulated: number;
@@ -9238,6 +10084,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
9238
10084
  action: import("@db/api").$Enums.OpportunityAction;
9239
10085
  chainId: number;
9240
10086
  depositUrl: string | null;
10087
+ explorerAddress: string | null;
9241
10088
  mainProtocolId: string | null;
9242
10089
  tvl: number;
9243
10090
  apr: number;
@@ -9460,6 +10307,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
9460
10307
  })[];
9461
10308
  mainProtocol: "splice" | "morpho" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quick-swap" | "ramses" | "retro" | "stryke" | "sushiswap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "angles" | "enzyme" | "toros" | "vicuna" | "bunni" | "beratrax" | "concrete" | "cian" | "pendle" | "yei" | "filament" | "gammaswap" | "maha" | "tempest" | "uranium" | "holdstation" | "katana" | "satlayer" | undefined;
9462
10309
  depositUrl: any;
10310
+ explorerAddress: string | undefined;
9463
10311
  tags: string[];
9464
10312
  };
9465
10313
  };
@@ -9551,6 +10399,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
9551
10399
  action: import("@db/api").$Enums.OpportunityAction;
9552
10400
  chainId: number;
9553
10401
  depositUrl: string | null;
10402
+ explorerAddress: string | null;
9554
10403
  mainProtocolId: string | null;
9555
10404
  tvl: number;
9556
10405
  apr: number;
@@ -9633,6 +10482,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
9633
10482
  action: import("@db/api").$Enums.OpportunityAction;
9634
10483
  chainId: number;
9635
10484
  depositUrl: string | null;
10485
+ explorerAddress: string | null;
9636
10486
  mainProtocolId: string | null;
9637
10487
  tvl: number;
9638
10488
  apr: number;
@@ -9816,6 +10666,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
9816
10666
  action: import("@db/api").$Enums.OpportunityAction;
9817
10667
  chainId: number;
9818
10668
  depositUrl: string | null;
10669
+ explorerAddress: string | null;
9819
10670
  mainProtocolId: string | null;
9820
10671
  tvl: number;
9821
10672
  apr: number;
@@ -11499,6 +12350,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
11499
12350
  action: import("@db/api").$Enums.OpportunityAction;
11500
12351
  chainId: number;
11501
12352
  depositUrl: string | null;
12353
+ explorerAddress: string | null;
11502
12354
  mainProtocolId: string | null;
11503
12355
  tvl: number;
11504
12356
  apr: number;
@@ -11616,6 +12468,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
11616
12468
  action: import("@db/api").$Enums.OpportunityAction;
11617
12469
  chainId: number;
11618
12470
  depositUrl: string | null;
12471
+ explorerAddress: string | null;
11619
12472
  mainProtocolId: string | null;
11620
12473
  tvl: number;
11621
12474
  apr: number;
@@ -13810,6 +14663,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
13810
14663
  })[];
13811
14664
  mainProtocol: "splice" | "morpho" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quick-swap" | "ramses" | "retro" | "stryke" | "sushiswap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "angles" | "enzyme" | "toros" | "vicuna" | "bunni" | "beratrax" | "concrete" | "cian" | "pendle" | "yei" | "filament" | "gammaswap" | "maha" | "tempest" | "uranium" | "holdstation" | "katana" | "satlayer" | undefined;
13812
14665
  depositUrl: any;
14666
+ explorerAddress: string | undefined;
13813
14667
  tags: string[];
13814
14668
  };
13815
14669
  }>>;
@@ -13831,6 +14685,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
13831
14685
  icon: string;
13832
14686
  } | null | undefined;
13833
14687
  depositUrl?: string | undefined;
14688
+ explorerAddress?: string | undefined;
13834
14689
  aprRecord?: {
13835
14690
  timestamp: string | bigint;
13836
14691
  cumulated: number;
@@ -13935,6 +14790,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
13935
14790
  icon: string;
13936
14791
  } | null | undefined;
13937
14792
  depositUrl?: string | undefined;
14793
+ explorerAddress?: string | undefined;
13938
14794
  aprRecord?: {
13939
14795
  timestamp: string | bigint;
13940
14796
  cumulated: number;
@@ -14093,6 +14949,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
14093
14949
  action: import("@db/api").$Enums.OpportunityAction;
14094
14950
  chainId: number;
14095
14951
  depositUrl: string | null;
14952
+ explorerAddress: string | null;
14096
14953
  mainProtocolId: string | null;
14097
14954
  tvl: number;
14098
14955
  apr: number;
@@ -14105,6 +14962,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
14105
14962
  name?: string | undefined;
14106
14963
  tags?: string[] | undefined;
14107
14964
  depositUrl?: string | undefined;
14965
+ explorerAddress?: string | undefined;
14108
14966
  protocols?: string[] | undefined;
14109
14967
  mainProtocol?: string | undefined;
14110
14968
  type: string;
@@ -14133,6 +14991,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
14133
14991
  action: import("@db/api").$Enums.OpportunityAction;
14134
14992
  chainId: number;
14135
14993
  depositUrl: string | null;
14994
+ explorerAddress: string | null;
14136
14995
  mainProtocolId: string | null;
14137
14996
  tvl: number;
14138
14997
  apr: number;
@@ -14165,44 +15024,308 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
14165
15024
  };
14166
15025
  fetch?: RequestInit | undefined;
14167
15026
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
14168
- 200: {
15027
+ 200: ({
15028
+ protocol?: {
15029
+ id: string;
15030
+ name: string;
15031
+ url: string;
15032
+ description: string;
15033
+ tags: string[];
15034
+ icon: string;
15035
+ } | null | undefined;
15036
+ depositUrl?: string | undefined;
15037
+ explorerAddress?: string | undefined;
15038
+ aprRecord?: {
15039
+ timestamp: string | bigint;
15040
+ cumulated: number;
15041
+ breakdowns: {
15042
+ id: number;
15043
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
15044
+ identifier: string;
15045
+ value: number;
15046
+ aprRecordId: string;
15047
+ }[];
15048
+ } | undefined;
15049
+ tvlRecord?: {
15050
+ total: number;
15051
+ timestamp: string | bigint;
15052
+ breakdowns: {
15053
+ id: number;
15054
+ type: "TOKEN" | "PROTOCOL";
15055
+ identifier: string;
15056
+ value: number;
15057
+ tvlRecordId: string;
15058
+ }[];
15059
+ } | undefined;
15060
+ rewardsRecord?: {
15061
+ id: string;
15062
+ total: number;
15063
+ timestamp: string | bigint;
15064
+ breakdowns: {
15065
+ id: number;
15066
+ token: {
15067
+ price?: number | null | undefined;
15068
+ symbol: string;
15069
+ id: string;
15070
+ name: string | null;
15071
+ icon: string;
15072
+ address: string;
15073
+ chainId: number;
15074
+ decimals: number;
15075
+ verified: boolean;
15076
+ isTest: boolean;
15077
+ };
15078
+ value: number;
15079
+ campaignId: string;
15080
+ amount: string | bigint;
15081
+ dailyRewardsRecordId: string;
15082
+ }[];
15083
+ } | undefined;
15084
+ id: string;
15085
+ name: string;
15086
+ type: string;
15087
+ status: string;
15088
+ tokens: {
15089
+ price?: number | null | undefined;
15090
+ symbol: string;
15091
+ id: string;
15092
+ name: string | null;
15093
+ icon: string;
15094
+ address: string;
15095
+ chainId: number;
15096
+ decimals: number;
15097
+ verified: boolean;
15098
+ isTest: boolean;
15099
+ }[];
15100
+ tags: string[];
15101
+ identifier: string;
15102
+ chain: {
15103
+ id: number;
15104
+ name: string;
15105
+ icon: string;
15106
+ };
15107
+ action: string;
15108
+ chainId: number;
15109
+ tvl: number;
15110
+ apr: number;
15111
+ dailyRewards: number;
15112
+ } | null)[];
15113
+ } | {
15114
+ 200: never;
15115
+ } | {
15116
+ 200: (Response | ({
15117
+ protocol?: {
15118
+ id: string;
15119
+ name: string;
15120
+ url: string;
15121
+ description: string;
15122
+ tags: string[];
15123
+ icon: string;
15124
+ } | null | undefined;
15125
+ depositUrl?: string | undefined;
15126
+ explorerAddress?: string | undefined;
15127
+ aprRecord?: {
15128
+ timestamp: string | bigint;
15129
+ cumulated: number;
15130
+ breakdowns: {
15131
+ id: number;
15132
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
15133
+ identifier: string;
15134
+ value: number;
15135
+ aprRecordId: string;
15136
+ }[];
15137
+ } | undefined;
15138
+ tvlRecord?: {
15139
+ total: number;
15140
+ timestamp: string | bigint;
15141
+ breakdowns: {
15142
+ id: number;
15143
+ type: "TOKEN" | "PROTOCOL";
15144
+ identifier: string;
15145
+ value: number;
15146
+ tvlRecordId: string;
15147
+ }[];
15148
+ } | undefined;
15149
+ rewardsRecord?: {
15150
+ id: string;
15151
+ total: number;
15152
+ timestamp: string | bigint;
15153
+ breakdowns: {
15154
+ id: number;
15155
+ token: {
15156
+ price?: number | null | undefined;
15157
+ symbol: string;
15158
+ id: string;
15159
+ name: string | null;
15160
+ icon: string;
15161
+ address: string;
15162
+ chainId: number;
15163
+ decimals: number;
15164
+ verified: boolean;
15165
+ isTest: boolean;
15166
+ };
15167
+ value: number;
15168
+ campaignId: string;
15169
+ amount: string | bigint;
15170
+ dailyRewardsRecordId: string;
15171
+ }[];
15172
+ } | undefined;
15173
+ id: string;
15174
+ name: string;
15175
+ type: string;
15176
+ status: string;
15177
+ tokens: {
15178
+ price?: number | null | undefined;
15179
+ symbol: string;
15180
+ id: string;
15181
+ name: string | null;
15182
+ icon: string;
15183
+ address: string;
15184
+ chainId: number;
15185
+ decimals: number;
15186
+ verified: boolean;
15187
+ isTest: boolean;
15188
+ }[];
15189
+ tags: string[];
15190
+ identifier: string;
15191
+ chain: {
15192
+ id: number;
15193
+ name: string;
15194
+ icon: string;
15195
+ };
15196
+ action: string;
15197
+ chainId: number;
15198
+ tvl: number;
14169
15199
  apr: number;
14170
- aprRecord: {
15200
+ dailyRewards: number;
15201
+ } | null)[] | {
15202
+ 200: ({
15203
+ protocol?: {
15204
+ id: string;
15205
+ name: string;
15206
+ url: string;
15207
+ description: string;
15208
+ tags: string[];
15209
+ icon: string;
15210
+ } | null | undefined;
15211
+ depositUrl?: string | undefined;
15212
+ explorerAddress?: string | undefined;
15213
+ aprRecord?: {
15214
+ timestamp: string | bigint;
15215
+ cumulated: number;
15216
+ breakdowns: {
15217
+ id: number;
15218
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
15219
+ identifier: string;
15220
+ value: number;
15221
+ aprRecordId: string;
15222
+ }[];
15223
+ } | undefined;
15224
+ tvlRecord?: {
15225
+ total: number;
15226
+ timestamp: string | bigint;
15227
+ breakdowns: {
15228
+ id: number;
15229
+ type: "TOKEN" | "PROTOCOL";
15230
+ identifier: string;
15231
+ value: number;
15232
+ tvlRecordId: string;
15233
+ }[];
15234
+ } | undefined;
15235
+ rewardsRecord?: {
15236
+ id: string;
15237
+ total: number;
15238
+ timestamp: string | bigint;
15239
+ breakdowns: {
15240
+ id: number;
15241
+ token: {
15242
+ price?: number | null | undefined;
15243
+ symbol: string;
15244
+ id: string;
15245
+ name: string | null;
15246
+ icon: string;
15247
+ address: string;
15248
+ chainId: number;
15249
+ decimals: number;
15250
+ verified: boolean;
15251
+ isTest: boolean;
15252
+ };
15253
+ value: number;
15254
+ campaignId: string;
15255
+ amount: string | bigint;
15256
+ dailyRewardsRecordId: string;
15257
+ }[];
15258
+ } | undefined;
15259
+ id: string;
15260
+ name: string;
15261
+ type: string;
15262
+ status: string;
15263
+ tokens: {
15264
+ price?: number | null | undefined;
15265
+ symbol: string;
15266
+ id: string;
15267
+ name: string | null;
15268
+ icon: string;
15269
+ address: string;
15270
+ chainId: number;
15271
+ decimals: number;
15272
+ verified: boolean;
15273
+ isTest: boolean;
15274
+ }[];
15275
+ tags: string[];
15276
+ identifier: string;
15277
+ chain: {
15278
+ id: number;
15279
+ name: string;
15280
+ icon: string;
15281
+ };
15282
+ action: string;
15283
+ chainId: number;
15284
+ tvl: number;
15285
+ apr: number;
15286
+ dailyRewards: number;
15287
+ } | null)[];
15288
+ }) & ({
15289
+ protocol?: {
15290
+ id: string;
15291
+ name: string;
15292
+ url: string;
15293
+ description: string;
15294
+ tags: string[];
15295
+ icon: string;
15296
+ } | null | undefined;
15297
+ depositUrl?: string | undefined;
15298
+ explorerAddress?: string | undefined;
15299
+ aprRecord?: {
15300
+ timestamp: string | bigint;
14171
15301
  cumulated: number;
14172
- timestamp: bigint;
14173
15302
  breakdowns: {
14174
15303
  id: number;
14175
- type: import("@db/api").$Enums.AprType;
14176
- uuid: string;
15304
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
14177
15305
  identifier: string;
14178
15306
  value: number;
14179
15307
  aprRecordId: string;
14180
15308
  }[];
14181
- };
14182
- tvlRecord: {
14183
- id: string;
15309
+ } | undefined;
15310
+ tvlRecord?: {
14184
15311
  total: number;
14185
- timestamp: bigint;
15312
+ timestamp: string | bigint;
14186
15313
  breakdowns: {
14187
15314
  id: number;
14188
- type: import("@db/api").$Enums.TvlType;
14189
- uuid: string;
15315
+ type: "TOKEN" | "PROTOCOL";
14190
15316
  identifier: string;
14191
15317
  value: number;
14192
15318
  tvlRecordId: string;
14193
15319
  }[];
14194
- };
14195
- rewardsRecord: {
15320
+ } | undefined;
15321
+ rewardsRecord?: {
14196
15322
  id: string;
14197
15323
  total: number;
14198
- timestamp: bigint;
15324
+ timestamp: string | bigint;
14199
15325
  breakdowns: {
14200
15326
  id: number;
14201
- uuid: string;
14202
- value: number;
14203
- campaignId: string;
14204
- dailyRewardsRecordId: string;
14205
15327
  token: {
15328
+ price?: number | null | undefined;
14206
15329
  symbol: string;
14207
15330
  id: string;
14208
15331
  name: string | null;
@@ -14210,88 +15333,21 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
14210
15333
  address: string;
14211
15334
  chainId: number;
14212
15335
  decimals: number;
14213
- displaySymbol: string;
14214
15336
  verified: boolean;
14215
15337
  isTest: boolean;
14216
- isPoint: boolean;
14217
- isNative: boolean;
14218
- price: number | null;
14219
15338
  };
14220
- amount: bigint;
14221
- }[];
14222
- };
14223
- campaigns: {
14224
- params: any;
14225
- chain: {
14226
- id: number;
14227
- name: string;
14228
- icon: string;
14229
- };
14230
- endTimestamp: number;
14231
- startTimestamp: number;
14232
- rewardToken: {
14233
- symbol: string;
14234
- id: string;
14235
- name: string | null;
14236
- icon: string;
14237
- address: string;
14238
- chainId: number;
14239
- decimals: number;
14240
- verified: boolean;
14241
- isTest: boolean;
14242
- isPoint: boolean;
14243
- isNative: boolean;
14244
- } & {
14245
- price?: number | null | undefined;
14246
- };
14247
- distributionChain: {
14248
- id: number;
14249
- name: string;
14250
- icon: string;
14251
- } | undefined;
14252
- campaignStatus: {
14253
- computedUntil: number;
14254
- processingStarted: number;
14255
- error: string;
14256
- status: import("@db/api").$Enums.RunStatus;
14257
- details: import("database/api/.generated/runtime/library").JsonValue;
15339
+ value: number;
14258
15340
  campaignId: string;
14259
- } | undefined;
14260
- creatorAddress: string;
14261
- creator: {
14262
- tags: string[];
14263
- address: string;
14264
- creatorId: string | null;
14265
- };
14266
- createdAt: string;
14267
- Opportunity: {
14268
- id: string;
14269
- name: string;
14270
- type: string;
14271
- status: import("@db/api").$Enums.Status;
14272
- tags: string[];
14273
- identifier: string;
14274
- action: import("@db/api").$Enums.OpportunityAction;
14275
- chainId: number;
14276
- depositUrl: string | null;
14277
- mainProtocolId: string | null;
14278
- tvl: number;
14279
- apr: number;
14280
- dailyRewards: number;
14281
- };
14282
- id: string;
14283
- type: string;
14284
- subType: number | null;
14285
- computeChainId: number;
14286
- distributionChainId: number;
14287
- campaignId: string;
14288
- rewardTokenId: string;
14289
- amount: string;
14290
- opportunityId: string;
14291
- }[] | undefined;
15341
+ amount: string | bigint;
15342
+ dailyRewardsRecordId: string;
15343
+ }[];
15344
+ } | undefined;
14292
15345
  id: string;
14293
- depositUrl: string | undefined;
14294
- tokens: ({
15346
+ name: string;
15347
+ type: string;
15348
+ status: string;
15349
+ tokens: {
15350
+ price?: number | null | undefined;
14295
15351
  symbol: string;
14296
15352
  id: string;
14297
15353
  name: string | null;
@@ -14301,34 +15357,109 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
14301
15357
  decimals: number;
14302
15358
  verified: boolean;
14303
15359
  isTest: boolean;
14304
- isPoint: boolean;
14305
- isNative: boolean;
14306
- } & {
14307
- price?: number | null | undefined;
14308
- })[];
15360
+ }[];
15361
+ tags: string[];
15362
+ identifier: string;
14309
15363
  chain: {
14310
15364
  id: number;
14311
15365
  name: string;
14312
15366
  icon: string;
14313
15367
  };
14314
- protocol: {
15368
+ action: string;
15369
+ chainId: number;
15370
+ tvl: number;
15371
+ apr: number;
15372
+ dailyRewards: number;
15373
+ } | null)[];
15374
+ } | {
15375
+ 200: {
15376
+ 200: ({
15377
+ protocol?: {
15378
+ id: string;
15379
+ name: string;
15380
+ url: string;
15381
+ description: string;
15382
+ tags: string[];
15383
+ icon: string;
15384
+ } | null | undefined;
15385
+ depositUrl?: string | undefined;
15386
+ explorerAddress?: string | undefined;
15387
+ aprRecord?: {
15388
+ timestamp: string | bigint;
15389
+ cumulated: number;
15390
+ breakdowns: {
15391
+ id: number;
15392
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
15393
+ identifier: string;
15394
+ value: number;
15395
+ aprRecordId: string;
15396
+ }[];
15397
+ } | undefined;
15398
+ tvlRecord?: {
15399
+ total: number;
15400
+ timestamp: string | bigint;
15401
+ breakdowns: {
15402
+ id: number;
15403
+ type: "TOKEN" | "PROTOCOL";
15404
+ identifier: string;
15405
+ value: number;
15406
+ tvlRecordId: string;
15407
+ }[];
15408
+ } | undefined;
15409
+ rewardsRecord?: {
15410
+ id: string;
15411
+ total: number;
15412
+ timestamp: string | bigint;
15413
+ breakdowns: {
15414
+ id: number;
15415
+ token: {
15416
+ price?: number | null | undefined;
15417
+ symbol: string;
15418
+ id: string;
15419
+ name: string | null;
15420
+ icon: string;
15421
+ address: string;
15422
+ chainId: number;
15423
+ decimals: number;
15424
+ verified: boolean;
15425
+ isTest: boolean;
15426
+ };
15427
+ value: number;
15428
+ campaignId: string;
15429
+ amount: string | bigint;
15430
+ dailyRewardsRecordId: string;
15431
+ }[];
15432
+ } | undefined;
14315
15433
  id: string;
14316
15434
  name: string;
14317
- url: string;
14318
- description: string;
15435
+ type: string;
15436
+ status: string;
15437
+ tokens: {
15438
+ price?: number | null | undefined;
15439
+ symbol: string;
15440
+ id: string;
15441
+ name: string | null;
15442
+ icon: string;
15443
+ address: string;
15444
+ chainId: number;
15445
+ decimals: number;
15446
+ verified: boolean;
15447
+ isTest: boolean;
15448
+ }[];
14319
15449
  tags: string[];
14320
- icon: string;
14321
- } | undefined;
14322
- name: string;
14323
- type: string;
14324
- status: import("@db/api").$Enums.Status;
14325
- tags: string[];
14326
- identifier: string;
14327
- action: import("@db/api").$Enums.OpportunityAction;
14328
- chainId: number;
14329
- tvl: number;
14330
- dailyRewards: number;
14331
- }[];
15450
+ identifier: string;
15451
+ chain: {
15452
+ id: number;
15453
+ name: string;
15454
+ icon: string;
15455
+ };
15456
+ action: string;
15457
+ chainId: number;
15458
+ tvl: number;
15459
+ apr: number;
15460
+ dailyRewards: number;
15461
+ } | null)[];
15462
+ };
14332
15463
  }>>;
14333
15464
  };
14334
15465
  count: {
@@ -14400,6 +15531,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
14400
15531
  icon: string;
14401
15532
  } | null | undefined;
14402
15533
  depositUrl?: string | undefined;
15534
+ explorerAddress?: string | undefined;
14403
15535
  aprRecord?: {
14404
15536
  timestamp: string | bigint;
14405
15537
  cumulated: number;
@@ -14704,6 +15836,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
14704
15836
  action: import("@db/api").$Enums.OpportunityAction;
14705
15837
  chainId: number;
14706
15838
  depositUrl: string | null;
15839
+ explorerAddress: string | null;
14707
15840
  mainProtocolId: string | null;
14708
15841
  tvl: number;
14709
15842
  apr: number;
@@ -14902,6 +16035,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
14902
16035
  })[];
14903
16036
  mainProtocol: "splice" | "morpho" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quick-swap" | "ramses" | "retro" | "stryke" | "sushiswap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "angles" | "enzyme" | "toros" | "vicuna" | "bunni" | "beratrax" | "concrete" | "cian" | "pendle" | "yei" | "filament" | "gammaswap" | "maha" | "tempest" | "uranium" | "holdstation" | "katana" | "satlayer" | undefined;
14904
16037
  depositUrl: any;
16038
+ explorerAddress: string | undefined;
14905
16039
  tags: string[];
14906
16040
  };
14907
16041
  }>>;
@@ -14990,6 +16124,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
14990
16124
  action: import("@db/api").$Enums.OpportunityAction;
14991
16125
  chainId: number;
14992
16126
  depositUrl: string | null;
16127
+ explorerAddress: string | null;
14993
16128
  mainProtocolId: string | null;
14994
16129
  tvl: number;
14995
16130
  apr: number;
@@ -16340,6 +17475,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
16340
17475
  action: import("@db/api").$Enums.OpportunityAction;
16341
17476
  chainId: number;
16342
17477
  depositUrl: string | null;
17478
+ explorerAddress: string | null;
16343
17479
  mainProtocolId: string | null;
16344
17480
  tvl: number;
16345
17481
  apr: number;
@@ -16446,6 +17582,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
16446
17582
  action: import("@db/api").$Enums.OpportunityAction;
16447
17583
  chainId: number;
16448
17584
  depositUrl: string | null;
17585
+ explorerAddress: string | null;
16449
17586
  mainProtocolId: string | null;
16450
17587
  tvl: number;
16451
17588
  apr: number;
@@ -17552,6 +18689,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
17552
18689
  })[];
17553
18690
  mainProtocol: "splice" | "morpho" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quick-swap" | "ramses" | "retro" | "stryke" | "sushiswap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "angles" | "enzyme" | "toros" | "vicuna" | "bunni" | "beratrax" | "concrete" | "cian" | "pendle" | "yei" | "filament" | "gammaswap" | "maha" | "tempest" | "uranium" | "holdstation" | "katana" | "satlayer" | undefined;
17554
18691
  depositUrl: any;
18692
+ explorerAddress: string | undefined;
17555
18693
  tags: string[];
17556
18694
  };
17557
18695
  }>>;
@@ -17573,6 +18711,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
17573
18711
  icon: string;
17574
18712
  } | null | undefined;
17575
18713
  depositUrl?: string | undefined;
18714
+ explorerAddress?: string | undefined;
17576
18715
  aprRecord?: {
17577
18716
  timestamp: string | bigint;
17578
18717
  cumulated: number;
@@ -17677,6 +18816,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
17677
18816
  icon: string;
17678
18817
  } | null | undefined;
17679
18818
  depositUrl?: string | undefined;
18819
+ explorerAddress?: string | undefined;
17680
18820
  aprRecord?: {
17681
18821
  timestamp: string | bigint;
17682
18822
  cumulated: number;
@@ -17835,6 +18975,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
17835
18975
  action: import("@db/api").$Enums.OpportunityAction;
17836
18976
  chainId: number;
17837
18977
  depositUrl: string | null;
18978
+ explorerAddress: string | null;
17838
18979
  mainProtocolId: string | null;
17839
18980
  tvl: number;
17840
18981
  apr: number;
@@ -17847,6 +18988,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
17847
18988
  name?: string | undefined;
17848
18989
  tags?: string[] | undefined;
17849
18990
  depositUrl?: string | undefined;
18991
+ explorerAddress?: string | undefined;
17850
18992
  protocols?: string[] | undefined;
17851
18993
  mainProtocol?: string | undefined;
17852
18994
  type: string;
@@ -17875,6 +19017,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
17875
19017
  action: import("@db/api").$Enums.OpportunityAction;
17876
19018
  chainId: number;
17877
19019
  depositUrl: string | null;
19020
+ explorerAddress: string | null;
17878
19021
  mainProtocolId: string | null;
17879
19022
  tvl: number;
17880
19023
  apr: number;
@@ -17907,44 +19050,308 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
17907
19050
  };
17908
19051
  fetch?: RequestInit | undefined;
17909
19052
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
17910
- 200: {
19053
+ 200: ({
19054
+ protocol?: {
19055
+ id: string;
19056
+ name: string;
19057
+ url: string;
19058
+ description: string;
19059
+ tags: string[];
19060
+ icon: string;
19061
+ } | null | undefined;
19062
+ depositUrl?: string | undefined;
19063
+ explorerAddress?: string | undefined;
19064
+ aprRecord?: {
19065
+ timestamp: string | bigint;
19066
+ cumulated: number;
19067
+ breakdowns: {
19068
+ id: number;
19069
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
19070
+ identifier: string;
19071
+ value: number;
19072
+ aprRecordId: string;
19073
+ }[];
19074
+ } | undefined;
19075
+ tvlRecord?: {
19076
+ total: number;
19077
+ timestamp: string | bigint;
19078
+ breakdowns: {
19079
+ id: number;
19080
+ type: "TOKEN" | "PROTOCOL";
19081
+ identifier: string;
19082
+ value: number;
19083
+ tvlRecordId: string;
19084
+ }[];
19085
+ } | undefined;
19086
+ rewardsRecord?: {
19087
+ id: string;
19088
+ total: number;
19089
+ timestamp: string | bigint;
19090
+ breakdowns: {
19091
+ id: number;
19092
+ token: {
19093
+ price?: number | null | undefined;
19094
+ symbol: string;
19095
+ id: string;
19096
+ name: string | null;
19097
+ icon: string;
19098
+ address: string;
19099
+ chainId: number;
19100
+ decimals: number;
19101
+ verified: boolean;
19102
+ isTest: boolean;
19103
+ };
19104
+ value: number;
19105
+ campaignId: string;
19106
+ amount: string | bigint;
19107
+ dailyRewardsRecordId: string;
19108
+ }[];
19109
+ } | undefined;
19110
+ id: string;
19111
+ name: string;
19112
+ type: string;
19113
+ status: string;
19114
+ tokens: {
19115
+ price?: number | null | undefined;
19116
+ symbol: string;
19117
+ id: string;
19118
+ name: string | null;
19119
+ icon: string;
19120
+ address: string;
19121
+ chainId: number;
19122
+ decimals: number;
19123
+ verified: boolean;
19124
+ isTest: boolean;
19125
+ }[];
19126
+ tags: string[];
19127
+ identifier: string;
19128
+ chain: {
19129
+ id: number;
19130
+ name: string;
19131
+ icon: string;
19132
+ };
19133
+ action: string;
19134
+ chainId: number;
19135
+ tvl: number;
19136
+ apr: number;
19137
+ dailyRewards: number;
19138
+ } | null)[];
19139
+ } | {
19140
+ 200: never;
19141
+ } | {
19142
+ 200: (Response | ({
19143
+ protocol?: {
19144
+ id: string;
19145
+ name: string;
19146
+ url: string;
19147
+ description: string;
19148
+ tags: string[];
19149
+ icon: string;
19150
+ } | null | undefined;
19151
+ depositUrl?: string | undefined;
19152
+ explorerAddress?: string | undefined;
19153
+ aprRecord?: {
19154
+ timestamp: string | bigint;
19155
+ cumulated: number;
19156
+ breakdowns: {
19157
+ id: number;
19158
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
19159
+ identifier: string;
19160
+ value: number;
19161
+ aprRecordId: string;
19162
+ }[];
19163
+ } | undefined;
19164
+ tvlRecord?: {
19165
+ total: number;
19166
+ timestamp: string | bigint;
19167
+ breakdowns: {
19168
+ id: number;
19169
+ type: "TOKEN" | "PROTOCOL";
19170
+ identifier: string;
19171
+ value: number;
19172
+ tvlRecordId: string;
19173
+ }[];
19174
+ } | undefined;
19175
+ rewardsRecord?: {
19176
+ id: string;
19177
+ total: number;
19178
+ timestamp: string | bigint;
19179
+ breakdowns: {
19180
+ id: number;
19181
+ token: {
19182
+ price?: number | null | undefined;
19183
+ symbol: string;
19184
+ id: string;
19185
+ name: string | null;
19186
+ icon: string;
19187
+ address: string;
19188
+ chainId: number;
19189
+ decimals: number;
19190
+ verified: boolean;
19191
+ isTest: boolean;
19192
+ };
19193
+ value: number;
19194
+ campaignId: string;
19195
+ amount: string | bigint;
19196
+ dailyRewardsRecordId: string;
19197
+ }[];
19198
+ } | undefined;
19199
+ id: string;
19200
+ name: string;
19201
+ type: string;
19202
+ status: string;
19203
+ tokens: {
19204
+ price?: number | null | undefined;
19205
+ symbol: string;
19206
+ id: string;
19207
+ name: string | null;
19208
+ icon: string;
19209
+ address: string;
19210
+ chainId: number;
19211
+ decimals: number;
19212
+ verified: boolean;
19213
+ isTest: boolean;
19214
+ }[];
19215
+ tags: string[];
19216
+ identifier: string;
19217
+ chain: {
19218
+ id: number;
19219
+ name: string;
19220
+ icon: string;
19221
+ };
19222
+ action: string;
19223
+ chainId: number;
19224
+ tvl: number;
17911
19225
  apr: number;
17912
- aprRecord: {
19226
+ dailyRewards: number;
19227
+ } | null)[] | {
19228
+ 200: ({
19229
+ protocol?: {
19230
+ id: string;
19231
+ name: string;
19232
+ url: string;
19233
+ description: string;
19234
+ tags: string[];
19235
+ icon: string;
19236
+ } | null | undefined;
19237
+ depositUrl?: string | undefined;
19238
+ explorerAddress?: string | undefined;
19239
+ aprRecord?: {
19240
+ timestamp: string | bigint;
19241
+ cumulated: number;
19242
+ breakdowns: {
19243
+ id: number;
19244
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
19245
+ identifier: string;
19246
+ value: number;
19247
+ aprRecordId: string;
19248
+ }[];
19249
+ } | undefined;
19250
+ tvlRecord?: {
19251
+ total: number;
19252
+ timestamp: string | bigint;
19253
+ breakdowns: {
19254
+ id: number;
19255
+ type: "TOKEN" | "PROTOCOL";
19256
+ identifier: string;
19257
+ value: number;
19258
+ tvlRecordId: string;
19259
+ }[];
19260
+ } | undefined;
19261
+ rewardsRecord?: {
19262
+ id: string;
19263
+ total: number;
19264
+ timestamp: string | bigint;
19265
+ breakdowns: {
19266
+ id: number;
19267
+ token: {
19268
+ price?: number | null | undefined;
19269
+ symbol: string;
19270
+ id: string;
19271
+ name: string | null;
19272
+ icon: string;
19273
+ address: string;
19274
+ chainId: number;
19275
+ decimals: number;
19276
+ verified: boolean;
19277
+ isTest: boolean;
19278
+ };
19279
+ value: number;
19280
+ campaignId: string;
19281
+ amount: string | bigint;
19282
+ dailyRewardsRecordId: string;
19283
+ }[];
19284
+ } | undefined;
19285
+ id: string;
19286
+ name: string;
19287
+ type: string;
19288
+ status: string;
19289
+ tokens: {
19290
+ price?: number | null | undefined;
19291
+ symbol: string;
19292
+ id: string;
19293
+ name: string | null;
19294
+ icon: string;
19295
+ address: string;
19296
+ chainId: number;
19297
+ decimals: number;
19298
+ verified: boolean;
19299
+ isTest: boolean;
19300
+ }[];
19301
+ tags: string[];
19302
+ identifier: string;
19303
+ chain: {
19304
+ id: number;
19305
+ name: string;
19306
+ icon: string;
19307
+ };
19308
+ action: string;
19309
+ chainId: number;
19310
+ tvl: number;
19311
+ apr: number;
19312
+ dailyRewards: number;
19313
+ } | null)[];
19314
+ }) & ({
19315
+ protocol?: {
19316
+ id: string;
19317
+ name: string;
19318
+ url: string;
19319
+ description: string;
19320
+ tags: string[];
19321
+ icon: string;
19322
+ } | null | undefined;
19323
+ depositUrl?: string | undefined;
19324
+ explorerAddress?: string | undefined;
19325
+ aprRecord?: {
19326
+ timestamp: string | bigint;
17913
19327
  cumulated: number;
17914
- timestamp: bigint;
17915
19328
  breakdowns: {
17916
19329
  id: number;
17917
- type: import("@db/api").$Enums.AprType;
17918
- uuid: string;
19330
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
17919
19331
  identifier: string;
17920
19332
  value: number;
17921
19333
  aprRecordId: string;
17922
19334
  }[];
17923
- };
17924
- tvlRecord: {
17925
- id: string;
19335
+ } | undefined;
19336
+ tvlRecord?: {
17926
19337
  total: number;
17927
- timestamp: bigint;
19338
+ timestamp: string | bigint;
17928
19339
  breakdowns: {
17929
19340
  id: number;
17930
- type: import("@db/api").$Enums.TvlType;
17931
- uuid: string;
19341
+ type: "TOKEN" | "PROTOCOL";
17932
19342
  identifier: string;
17933
19343
  value: number;
17934
19344
  tvlRecordId: string;
17935
19345
  }[];
17936
- };
17937
- rewardsRecord: {
19346
+ } | undefined;
19347
+ rewardsRecord?: {
17938
19348
  id: string;
17939
19349
  total: number;
17940
- timestamp: bigint;
19350
+ timestamp: string | bigint;
17941
19351
  breakdowns: {
17942
19352
  id: number;
17943
- uuid: string;
17944
- value: number;
17945
- campaignId: string;
17946
- dailyRewardsRecordId: string;
17947
19353
  token: {
19354
+ price?: number | null | undefined;
17948
19355
  symbol: string;
17949
19356
  id: string;
17950
19357
  name: string | null;
@@ -17952,88 +19359,21 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
17952
19359
  address: string;
17953
19360
  chainId: number;
17954
19361
  decimals: number;
17955
- displaySymbol: string;
17956
19362
  verified: boolean;
17957
19363
  isTest: boolean;
17958
- isPoint: boolean;
17959
- isNative: boolean;
17960
- price: number | null;
17961
19364
  };
17962
- amount: bigint;
17963
- }[];
17964
- };
17965
- campaigns: {
17966
- params: any;
17967
- chain: {
17968
- id: number;
17969
- name: string;
17970
- icon: string;
17971
- };
17972
- endTimestamp: number;
17973
- startTimestamp: number;
17974
- rewardToken: {
17975
- symbol: string;
17976
- id: string;
17977
- name: string | null;
17978
- icon: string;
17979
- address: string;
17980
- chainId: number;
17981
- decimals: number;
17982
- verified: boolean;
17983
- isTest: boolean;
17984
- isPoint: boolean;
17985
- isNative: boolean;
17986
- } & {
17987
- price?: number | null | undefined;
17988
- };
17989
- distributionChain: {
17990
- id: number;
17991
- name: string;
17992
- icon: string;
17993
- } | undefined;
17994
- campaignStatus: {
17995
- computedUntil: number;
17996
- processingStarted: number;
17997
- error: string;
17998
- status: import("@db/api").$Enums.RunStatus;
17999
- details: import("database/api/.generated/runtime/library").JsonValue;
19365
+ value: number;
18000
19366
  campaignId: string;
18001
- } | undefined;
18002
- creatorAddress: string;
18003
- creator: {
18004
- tags: string[];
18005
- address: string;
18006
- creatorId: string | null;
18007
- };
18008
- createdAt: string;
18009
- Opportunity: {
18010
- id: string;
18011
- name: string;
18012
- type: string;
18013
- status: import("@db/api").$Enums.Status;
18014
- tags: string[];
18015
- identifier: string;
18016
- action: import("@db/api").$Enums.OpportunityAction;
18017
- chainId: number;
18018
- depositUrl: string | null;
18019
- mainProtocolId: string | null;
18020
- tvl: number;
18021
- apr: number;
18022
- dailyRewards: number;
18023
- };
18024
- id: string;
18025
- type: string;
18026
- subType: number | null;
18027
- computeChainId: number;
18028
- distributionChainId: number;
18029
- campaignId: string;
18030
- rewardTokenId: string;
18031
- amount: string;
18032
- opportunityId: string;
18033
- }[] | undefined;
19367
+ amount: string | bigint;
19368
+ dailyRewardsRecordId: string;
19369
+ }[];
19370
+ } | undefined;
18034
19371
  id: string;
18035
- depositUrl: string | undefined;
18036
- tokens: ({
19372
+ name: string;
19373
+ type: string;
19374
+ status: string;
19375
+ tokens: {
19376
+ price?: number | null | undefined;
18037
19377
  symbol: string;
18038
19378
  id: string;
18039
19379
  name: string | null;
@@ -18043,34 +19383,109 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
18043
19383
  decimals: number;
18044
19384
  verified: boolean;
18045
19385
  isTest: boolean;
18046
- isPoint: boolean;
18047
- isNative: boolean;
18048
- } & {
18049
- price?: number | null | undefined;
18050
- })[];
19386
+ }[];
19387
+ tags: string[];
19388
+ identifier: string;
18051
19389
  chain: {
18052
19390
  id: number;
18053
19391
  name: string;
18054
19392
  icon: string;
18055
19393
  };
18056
- protocol: {
18057
- id: string;
18058
- name: string;
18059
- url: string;
18060
- description: string;
18061
- tags: string[];
18062
- icon: string;
18063
- } | undefined;
18064
- name: string;
18065
- type: string;
18066
- status: import("@db/api").$Enums.Status;
18067
- tags: string[];
18068
- identifier: string;
18069
- action: import("@db/api").$Enums.OpportunityAction;
19394
+ action: string;
18070
19395
  chainId: number;
18071
19396
  tvl: number;
19397
+ apr: number;
18072
19398
  dailyRewards: number;
18073
- }[];
19399
+ } | null)[];
19400
+ } | {
19401
+ 200: {
19402
+ 200: ({
19403
+ protocol?: {
19404
+ id: string;
19405
+ name: string;
19406
+ url: string;
19407
+ description: string;
19408
+ tags: string[];
19409
+ icon: string;
19410
+ } | null | undefined;
19411
+ depositUrl?: string | undefined;
19412
+ explorerAddress?: string | undefined;
19413
+ aprRecord?: {
19414
+ timestamp: string | bigint;
19415
+ cumulated: number;
19416
+ breakdowns: {
19417
+ id: number;
19418
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
19419
+ identifier: string;
19420
+ value: number;
19421
+ aprRecordId: string;
19422
+ }[];
19423
+ } | undefined;
19424
+ tvlRecord?: {
19425
+ total: number;
19426
+ timestamp: string | bigint;
19427
+ breakdowns: {
19428
+ id: number;
19429
+ type: "TOKEN" | "PROTOCOL";
19430
+ identifier: string;
19431
+ value: number;
19432
+ tvlRecordId: string;
19433
+ }[];
19434
+ } | undefined;
19435
+ rewardsRecord?: {
19436
+ id: string;
19437
+ total: number;
19438
+ timestamp: string | bigint;
19439
+ breakdowns: {
19440
+ id: number;
19441
+ token: {
19442
+ price?: number | null | undefined;
19443
+ symbol: string;
19444
+ id: string;
19445
+ name: string | null;
19446
+ icon: string;
19447
+ address: string;
19448
+ chainId: number;
19449
+ decimals: number;
19450
+ verified: boolean;
19451
+ isTest: boolean;
19452
+ };
19453
+ value: number;
19454
+ campaignId: string;
19455
+ amount: string | bigint;
19456
+ dailyRewardsRecordId: string;
19457
+ }[];
19458
+ } | undefined;
19459
+ id: string;
19460
+ name: string;
19461
+ type: string;
19462
+ status: string;
19463
+ tokens: {
19464
+ price?: number | null | undefined;
19465
+ symbol: string;
19466
+ id: string;
19467
+ name: string | null;
19468
+ icon: string;
19469
+ address: string;
19470
+ chainId: number;
19471
+ decimals: number;
19472
+ verified: boolean;
19473
+ isTest: boolean;
19474
+ }[];
19475
+ tags: string[];
19476
+ identifier: string;
19477
+ chain: {
19478
+ id: number;
19479
+ name: string;
19480
+ icon: string;
19481
+ };
19482
+ action: string;
19483
+ chainId: number;
19484
+ tvl: number;
19485
+ apr: number;
19486
+ dailyRewards: number;
19487
+ } | null)[];
19488
+ };
18074
19489
  }>>;
18075
19490
  };
18076
19491
  count: {
@@ -18142,6 +19557,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
18142
19557
  icon: string;
18143
19558
  } | null | undefined;
18144
19559
  depositUrl?: string | undefined;
19560
+ explorerAddress?: string | undefined;
18145
19561
  aprRecord?: {
18146
19562
  timestamp: string | bigint;
18147
19563
  cumulated: number;
@@ -18446,6 +19862,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
18446
19862
  action: import("@db/api").$Enums.OpportunityAction;
18447
19863
  chainId: number;
18448
19864
  depositUrl: string | null;
19865
+ explorerAddress: string | null;
18449
19866
  mainProtocolId: string | null;
18450
19867
  tvl: number;
18451
19868
  apr: number;
@@ -18644,6 +20061,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
18644
20061
  })[];
18645
20062
  mainProtocol: "splice" | "morpho" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quick-swap" | "ramses" | "retro" | "stryke" | "sushiswap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "angles" | "enzyme" | "toros" | "vicuna" | "bunni" | "beratrax" | "concrete" | "cian" | "pendle" | "yei" | "filament" | "gammaswap" | "maha" | "tempest" | "uranium" | "holdstation" | "katana" | "satlayer" | undefined;
18646
20063
  depositUrl: any;
20064
+ explorerAddress: string | undefined;
18647
20065
  tags: string[];
18648
20066
  };
18649
20067
  }>>;
@@ -18732,6 +20150,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
18732
20150
  action: import("@db/api").$Enums.OpportunityAction;
18733
20151
  chainId: number;
18734
20152
  depositUrl: string | null;
20153
+ explorerAddress: string | null;
18735
20154
  mainProtocolId: string | null;
18736
20155
  tvl: number;
18737
20156
  apr: number;
@@ -20082,6 +21501,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
20082
21501
  action: import("@db/api").$Enums.OpportunityAction;
20083
21502
  chainId: number;
20084
21503
  depositUrl: string | null;
21504
+ explorerAddress: string | null;
20085
21505
  mainProtocolId: string | null;
20086
21506
  tvl: number;
20087
21507
  apr: number;
@@ -20188,6 +21608,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
20188
21608
  action: import("@db/api").$Enums.OpportunityAction;
20189
21609
  chainId: number;
20190
21610
  depositUrl: string | null;
21611
+ explorerAddress: string | null;
20191
21612
  mainProtocolId: string | null;
20192
21613
  tvl: number;
20193
21614
  apr: number;