@merkl/api 0.20.1 → 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.
@@ -154,6 +154,7 @@ declare const eden: {
154
154
  icon: string;
155
155
  } | null | undefined;
156
156
  depositUrl?: string | undefined;
157
+ explorerAddress?: string | undefined;
157
158
  aprRecord?: {
158
159
  timestamp: string | bigint;
159
160
  cumulated: number;
@@ -258,6 +259,7 @@ declare const eden: {
258
259
  icon: string;
259
260
  } | null | undefined;
260
261
  depositUrl?: string | undefined;
262
+ explorerAddress?: string | undefined;
261
263
  aprRecord?: {
262
264
  timestamp: string | bigint;
263
265
  cumulated: number;
@@ -491,44 +493,47 @@ declare const eden: {
491
493
  };
492
494
  fetch?: RequestInit | undefined;
493
495
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
494
- 200: {
495
- apr: number;
496
- 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;
497
509
  cumulated: number;
498
- timestamp: bigint;
499
510
  breakdowns: {
500
511
  id: number;
501
- type: import("@db/api").$Enums.AprType;
502
- uuid: string;
512
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
503
513
  identifier: string;
504
514
  value: number;
505
515
  aprRecordId: string;
506
516
  }[];
507
- };
508
- tvlRecord: {
509
- id: string;
517
+ } | undefined;
518
+ tvlRecord?: {
510
519
  total: number;
511
- timestamp: bigint;
520
+ timestamp: string | bigint;
512
521
  breakdowns: {
513
522
  id: number;
514
- type: import("@db/api").$Enums.TvlType;
515
- uuid: string;
523
+ type: "TOKEN" | "PROTOCOL";
516
524
  identifier: string;
517
525
  value: number;
518
526
  tvlRecordId: string;
519
527
  }[];
520
- };
521
- rewardsRecord: {
528
+ } | undefined;
529
+ rewardsRecord?: {
522
530
  id: string;
523
531
  total: number;
524
- timestamp: bigint;
532
+ timestamp: string | bigint;
525
533
  breakdowns: {
526
534
  id: number;
527
- uuid: string;
528
- value: number;
529
- campaignId: string;
530
- dailyRewardsRecordId: string;
531
535
  token: {
536
+ price?: number | null | undefined;
532
537
  symbol: string;
533
538
  id: string;
534
539
  name: string | null;
@@ -536,89 +541,21 @@ declare const eden: {
536
541
  address: string;
537
542
  chainId: number;
538
543
  decimals: number;
539
- displaySymbol: string;
540
544
  verified: boolean;
541
545
  isTest: boolean;
542
- isPoint: boolean;
543
- isNative: boolean;
544
- price: number | null;
545
546
  };
546
- amount: bigint;
547
- }[];
548
- };
549
- campaigns: {
550
- params: any;
551
- chain: {
552
- id: number;
553
- name: string;
554
- icon: string;
555
- };
556
- endTimestamp: number;
557
- startTimestamp: number;
558
- rewardToken: {
559
- symbol: string;
560
- id: string;
561
- name: string | null;
562
- icon: string;
563
- address: string;
564
- chainId: number;
565
- decimals: number;
566
- verified: boolean;
567
- isTest: boolean;
568
- isPoint: boolean;
569
- isNative: boolean;
570
- } & {
571
- price?: number | null | undefined;
572
- };
573
- distributionChain: {
574
- id: number;
575
- name: string;
576
- icon: string;
577
- } | undefined;
578
- campaignStatus: {
579
- computedUntil: number;
580
- processingStarted: number;
581
- error: string;
582
- status: import("@db/api").$Enums.RunStatus;
583
- details: import("database/api/.generated/runtime/library").JsonValue;
547
+ value: number;
584
548
  campaignId: string;
585
- } | undefined;
586
- creatorAddress: string;
587
- creator: {
588
- tags: string[];
589
- address: string;
590
- creatorId: string | null;
591
- };
592
- createdAt: string;
593
- Opportunity: {
594
- id: string;
595
- name: string;
596
- type: string;
597
- status: import("@db/api").$Enums.Status;
598
- tags: string[];
599
- identifier: string;
600
- action: import("@db/api").$Enums.OpportunityAction;
601
- chainId: number;
602
- depositUrl: string | null;
603
- explorerAddress: string | null;
604
- mainProtocolId: string | null;
605
- tvl: number;
606
- apr: number;
607
- dailyRewards: number;
608
- };
609
- id: string;
610
- type: string;
611
- subType: number | null;
612
- computeChainId: number;
613
- distributionChainId: number;
614
- campaignId: string;
615
- rewardTokenId: string;
616
- amount: string;
617
- opportunityId: string;
618
- }[] | undefined;
549
+ amount: string | bigint;
550
+ dailyRewardsRecordId: string;
551
+ }[];
552
+ } | undefined;
619
553
  id: string;
620
- depositUrl: string | undefined;
621
- tokens: ({
554
+ name: string;
555
+ type: string;
556
+ status: string;
557
+ tokens: {
558
+ price?: number | null | undefined;
622
559
  symbol: string;
623
560
  id: string;
624
561
  name: string | null;
@@ -628,97 +565,24 @@ declare const eden: {
628
565
  decimals: number;
629
566
  verified: boolean;
630
567
  isTest: boolean;
631
- isPoint: boolean;
632
- isNative: boolean;
633
- } & {
634
- price?: number | null | undefined;
635
- })[];
568
+ }[];
569
+ tags: string[];
570
+ identifier: string;
636
571
  chain: {
637
572
  id: number;
638
573
  name: string;
639
574
  icon: string;
640
575
  };
641
- protocol: {
642
- id: string;
643
- name: string;
644
- url: string;
645
- description: string;
646
- tags: string[];
647
- icon: string;
648
- } | undefined;
649
- name: string;
650
- type: string;
651
- status: import("@db/api").$Enums.Status;
652
- tags: string[];
653
- identifier: string;
654
- action: import("@db/api").$Enums.OpportunityAction;
576
+ action: string;
655
577
  chainId: number;
656
- explorerAddress: string | null;
657
578
  tvl: number;
579
+ apr: number;
658
580
  dailyRewards: number;
659
- }[];
660
- }>>;
661
- };
662
- count: {
663
- get: (options: {
664
- headers?: Record<string, unknown> | undefined;
665
- query: {
666
- name?: string | undefined;
667
- type?: string | undefined;
668
- status?: string | undefined;
669
- sort?: string | undefined;
670
- tokens?: string | undefined;
671
- items?: number | undefined;
672
- tags?: string | undefined;
673
- identifier?: string | undefined;
674
- page?: number | undefined;
675
- action?: string | undefined;
676
- campaignId?: string | undefined;
677
- creatorAddress?: string | undefined;
678
- chainId?: string | undefined;
679
- mainProtocolId?: string | undefined;
680
- campaigns?: boolean | undefined;
681
- point?: boolean | undefined;
682
- test?: boolean | undefined;
683
- rewardTokenSymbol?: string | undefined;
684
- order?: string | undefined;
685
- minimumTvl?: number | undefined;
686
- };
687
- fetch?: RequestInit | undefined;
688
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
689
- 200: number;
690
- }>>;
691
- };
692
- campaigns: {
693
- get: (options: {
694
- headers?: Record<string, unknown> | undefined;
695
- query: {
696
- type?: string | undefined;
697
- status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
698
- items?: number | undefined;
699
- subType?: number | undefined;
700
- page?: number | undefined;
701
- types?: string[] | undefined;
702
- campaignId?: string | undefined;
703
- opportunityId?: string | undefined;
704
- startTimestamp?: string | undefined;
705
- endTimestamp?: string | undefined;
706
- creatorAddress?: string | undefined;
707
- chainId?: number | undefined;
708
- creatorId?: string | undefined;
709
- mainParameter?: string | undefined;
710
- point?: boolean | undefined;
711
- tokenAddress?: string | undefined;
712
- test?: boolean | undefined;
713
- creatorTag?: string | undefined;
714
- distributionChainIds?: number[] | undefined;
715
- tokenSymbol?: string | undefined;
716
- withOpportunity?: boolean | undefined;
717
- createdAfter?: Date | null | undefined;
718
- };
719
- fetch?: RequestInit | undefined;
720
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
721
- 200: {
581
+ } | null)[];
582
+ } | {
583
+ 200: never;
584
+ } | {
585
+ 200: (Response | ({
722
586
  protocol?: {
723
587
  id: string;
724
588
  name: string;
@@ -728,6 +592,7 @@ declare const eden: {
728
592
  icon: string;
729
593
  } | null | undefined;
730
594
  depositUrl?: string | undefined;
595
+ explorerAddress?: string | undefined;
731
596
  aprRecord?: {
732
597
  timestamp: string | bigint;
733
598
  cumulated: number;
@@ -802,45 +667,69 @@ declare const eden: {
802
667
  tvl: number;
803
668
  apr: number;
804
669
  dailyRewards: number;
805
- campaigns: {
806
- creator?: {
807
- tags?: string[] | undefined;
808
- creatorId?: string | null | undefined;
809
- address: string;
810
- } | undefined;
811
- campaignStatus?: {
812
- error?: string | undefined;
813
- details?: any;
814
- status: string;
815
- campaignId: string;
816
- computedUntil: string | number;
817
- processingStarted: string | number;
818
- } | undefined;
819
- distributionChain?: {
820
- id: number;
670
+ } | null)[] | {
671
+ 200: ({
672
+ protocol?: {
673
+ id: string;
821
674
  name: string;
675
+ url: string;
676
+ description: string;
677
+ tags: string[];
822
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
+ }[];
823
692
  } | undefined;
824
- id: string;
825
- type: string;
826
- params: any;
827
- subType: number | null;
828
- chain: {
829
- id: number;
830
- name: string;
831
- icon: string;
832
- };
833
- computeChainId: number;
834
- distributionChainId: number;
835
- campaignId: string;
836
- rewardTokenId: string;
837
- amount: string;
838
- opportunityId: string;
839
- startTimestamp: string | number;
840
- endTimestamp: string | number;
841
- creatorAddress: string;
842
- createdAt: string;
843
- rewardToken: {
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: {
844
733
  price?: number | null | undefined;
845
734
  symbol: string;
846
735
  id: string;
@@ -851,23 +740,198 @@ declare const eden: {
851
740
  decimals: number;
852
741
  verified: boolean;
853
742
  isTest: boolean;
743
+ }[];
744
+ tags: string[];
745
+ identifier: string;
746
+ chain: {
747
+ id: number;
748
+ name: string;
749
+ icon: string;
854
750
  };
855
- }[];
856
- }[];
857
- readonly 404: {
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;
858
815
  name: string;
859
- message: string;
860
- };
861
- readonly 500: {
862
- info: string;
863
- code: string;
864
- httpCode: number;
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)[];
865
931
  };
866
932
  }>>;
867
933
  };
868
- aggregate: ((params: {
869
- field: string | number;
870
- }) => {
934
+ count: {
871
935
  get: (options: {
872
936
  headers?: Record<string, unknown> | undefined;
873
937
  query: {
@@ -894,20 +958,229 @@ declare const eden: {
894
958
  };
895
959
  fetch?: RequestInit | undefined;
896
960
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
897
- 200: {
898
- sum: string;
899
- };
961
+ 200: number;
900
962
  }>>;
901
- }) & {
902
- max: ((params: {
903
- field: string | number;
904
- }) => {
905
- get: (options: {
906
- headers?: Record<string, unknown> | undefined;
907
- query: {
908
- name?: string | undefined;
909
- type?: string | undefined;
910
- status?: string | undefined;
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;
1115
+ createdAt: string;
1116
+ rewardToken: {
1117
+ price?: number | null | undefined;
1118
+ symbol: string;
1119
+ id: string;
1120
+ name: string | null;
1121
+ icon: string;
1122
+ address: string;
1123
+ chainId: number;
1124
+ decimals: number;
1125
+ verified: boolean;
1126
+ isTest: boolean;
1127
+ };
1128
+ }[];
1129
+ }[];
1130
+ readonly 404: {
1131
+ name: string;
1132
+ message: string;
1133
+ };
1134
+ readonly 500: {
1135
+ info: string;
1136
+ code: string;
1137
+ httpCode: number;
1138
+ };
1139
+ }>>;
1140
+ };
1141
+ aggregate: ((params: {
1142
+ field: string | number;
1143
+ }) => {
1144
+ get: (options: {
1145
+ headers?: Record<string, unknown> | undefined;
1146
+ query: {
1147
+ name?: string | undefined;
1148
+ type?: string | undefined;
1149
+ status?: string | undefined;
1150
+ sort?: string | undefined;
1151
+ tokens?: string | undefined;
1152
+ items?: number | undefined;
1153
+ tags?: string | undefined;
1154
+ identifier?: string | undefined;
1155
+ page?: number | undefined;
1156
+ action?: string | undefined;
1157
+ campaignId?: string | undefined;
1158
+ creatorAddress?: string | undefined;
1159
+ chainId?: string | undefined;
1160
+ mainProtocolId?: string | undefined;
1161
+ campaigns?: boolean | undefined;
1162
+ point?: boolean | undefined;
1163
+ test?: boolean | undefined;
1164
+ rewardTokenSymbol?: string | undefined;
1165
+ order?: string | undefined;
1166
+ minimumTvl?: number | undefined;
1167
+ };
1168
+ fetch?: RequestInit | undefined;
1169
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1170
+ 200: {
1171
+ sum: string;
1172
+ };
1173
+ }>>;
1174
+ }) & {
1175
+ max: ((params: {
1176
+ field: string | number;
1177
+ }) => {
1178
+ get: (options: {
1179
+ headers?: Record<string, unknown> | undefined;
1180
+ query: {
1181
+ name?: string | undefined;
1182
+ type?: string | undefined;
1183
+ status?: string | undefined;
911
1184
  sort?: string | undefined;
912
1185
  tokens?: string | undefined;
913
1186
  items?: number | undefined;
@@ -3907,6 +4180,7 @@ declare const eden: {
3907
4180
  icon: string;
3908
4181
  } | null | undefined;
3909
4182
  depositUrl?: string | undefined;
4183
+ explorerAddress?: string | undefined;
3910
4184
  aprRecord?: {
3911
4185
  timestamp: string | bigint;
3912
4186
  cumulated: number;
@@ -4011,6 +4285,7 @@ declare const eden: {
4011
4285
  icon: string;
4012
4286
  } | null | undefined;
4013
4287
  depositUrl?: string | undefined;
4288
+ explorerAddress?: string | undefined;
4014
4289
  aprRecord?: {
4015
4290
  timestamp: string | bigint;
4016
4291
  cumulated: number;
@@ -4244,44 +4519,47 @@ declare const eden: {
4244
4519
  };
4245
4520
  fetch?: RequestInit | undefined;
4246
4521
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4247
- 200: {
4248
- apr: number;
4249
- aprRecord: {
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;
4250
4535
  cumulated: number;
4251
- timestamp: bigint;
4252
4536
  breakdowns: {
4253
4537
  id: number;
4254
- type: import("@db/api").$Enums.AprType;
4255
- uuid: string;
4538
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
4256
4539
  identifier: string;
4257
4540
  value: number;
4258
4541
  aprRecordId: string;
4259
4542
  }[];
4260
- };
4261
- tvlRecord: {
4262
- id: string;
4543
+ } | undefined;
4544
+ tvlRecord?: {
4263
4545
  total: number;
4264
- timestamp: bigint;
4546
+ timestamp: string | bigint;
4265
4547
  breakdowns: {
4266
4548
  id: number;
4267
- type: import("@db/api").$Enums.TvlType;
4268
- uuid: string;
4549
+ type: "TOKEN" | "PROTOCOL";
4269
4550
  identifier: string;
4270
4551
  value: number;
4271
4552
  tvlRecordId: string;
4272
4553
  }[];
4273
- };
4274
- rewardsRecord: {
4554
+ } | undefined;
4555
+ rewardsRecord?: {
4275
4556
  id: string;
4276
4557
  total: number;
4277
- timestamp: bigint;
4558
+ timestamp: string | bigint;
4278
4559
  breakdowns: {
4279
4560
  id: number;
4280
- uuid: string;
4281
- value: number;
4282
- campaignId: string;
4283
- dailyRewardsRecordId: string;
4284
4561
  token: {
4562
+ price?: number | null | undefined;
4285
4563
  symbol: string;
4286
4564
  id: string;
4287
4565
  name: string | null;
@@ -4289,89 +4567,21 @@ declare const eden: {
4289
4567
  address: string;
4290
4568
  chainId: number;
4291
4569
  decimals: number;
4292
- displaySymbol: string;
4293
4570
  verified: boolean;
4294
4571
  isTest: boolean;
4295
- isPoint: boolean;
4296
- isNative: boolean;
4297
- price: number | null;
4298
4572
  };
4299
- amount: bigint;
4300
- }[];
4301
- };
4302
- campaigns: {
4303
- params: any;
4304
- chain: {
4305
- id: number;
4306
- name: string;
4307
- icon: string;
4308
- };
4309
- endTimestamp: number;
4310
- startTimestamp: number;
4311
- rewardToken: {
4312
- symbol: string;
4313
- id: string;
4314
- name: string | null;
4315
- icon: string;
4316
- address: string;
4317
- chainId: number;
4318
- decimals: number;
4319
- verified: boolean;
4320
- isTest: boolean;
4321
- isPoint: boolean;
4322
- isNative: boolean;
4323
- } & {
4324
- price?: number | null | undefined;
4325
- };
4326
- distributionChain: {
4327
- id: number;
4328
- name: string;
4329
- icon: string;
4330
- } | undefined;
4331
- campaignStatus: {
4332
- computedUntil: number;
4333
- processingStarted: number;
4334
- error: string;
4335
- status: import("@db/api").$Enums.RunStatus;
4336
- details: import("database/api/.generated/runtime/library").JsonValue;
4573
+ value: number;
4337
4574
  campaignId: string;
4338
- } | undefined;
4339
- creatorAddress: string;
4340
- creator: {
4341
- tags: string[];
4342
- address: string;
4343
- creatorId: string | null;
4344
- };
4345
- createdAt: string;
4346
- Opportunity: {
4347
- id: string;
4348
- name: string;
4349
- type: string;
4350
- status: import("@db/api").$Enums.Status;
4351
- tags: string[];
4352
- identifier: string;
4353
- action: import("@db/api").$Enums.OpportunityAction;
4354
- chainId: number;
4355
- depositUrl: string | null;
4356
- explorerAddress: string | null;
4357
- mainProtocolId: string | null;
4358
- tvl: number;
4359
- apr: number;
4360
- dailyRewards: number;
4361
- };
4362
- id: string;
4363
- type: string;
4364
- subType: number | null;
4365
- computeChainId: number;
4366
- distributionChainId: number;
4367
- campaignId: string;
4368
- rewardTokenId: string;
4369
- amount: string;
4370
- opportunityId: string;
4371
- }[] | undefined;
4575
+ amount: string | bigint;
4576
+ dailyRewardsRecordId: string;
4577
+ }[];
4578
+ } | undefined;
4372
4579
  id: string;
4373
- depositUrl: string | undefined;
4374
- tokens: ({
4580
+ name: string;
4581
+ type: string;
4582
+ status: string;
4583
+ tokens: {
4584
+ price?: number | null | undefined;
4375
4585
  symbol: string;
4376
4586
  id: string;
4377
4587
  name: string | null;
@@ -4381,97 +4591,24 @@ declare const eden: {
4381
4591
  decimals: number;
4382
4592
  verified: boolean;
4383
4593
  isTest: boolean;
4384
- isPoint: boolean;
4385
- isNative: boolean;
4386
- } & {
4387
- price?: number | null | undefined;
4388
- })[];
4594
+ }[];
4595
+ tags: string[];
4596
+ identifier: string;
4389
4597
  chain: {
4390
4598
  id: number;
4391
4599
  name: string;
4392
4600
  icon: string;
4393
4601
  };
4394
- protocol: {
4395
- id: string;
4396
- name: string;
4397
- url: string;
4398
- description: string;
4399
- tags: string[];
4400
- icon: string;
4401
- } | undefined;
4402
- name: string;
4403
- type: string;
4404
- status: import("@db/api").$Enums.Status;
4405
- tags: string[];
4406
- identifier: string;
4407
- action: import("@db/api").$Enums.OpportunityAction;
4602
+ action: string;
4408
4603
  chainId: number;
4409
- explorerAddress: string | null;
4410
4604
  tvl: number;
4605
+ apr: number;
4411
4606
  dailyRewards: number;
4412
- }[];
4413
- }>>;
4414
- };
4415
- count: {
4416
- get: (options: {
4417
- headers?: Record<string, unknown> | undefined;
4418
- query: {
4419
- name?: string | undefined;
4420
- type?: string | undefined;
4421
- status?: string | undefined;
4422
- sort?: string | undefined;
4423
- tokens?: string | undefined;
4424
- items?: number | undefined;
4425
- tags?: string | undefined;
4426
- identifier?: string | undefined;
4427
- page?: number | undefined;
4428
- action?: string | undefined;
4429
- campaignId?: string | undefined;
4430
- creatorAddress?: string | undefined;
4431
- chainId?: string | undefined;
4432
- mainProtocolId?: string | undefined;
4433
- campaigns?: boolean | undefined;
4434
- point?: boolean | undefined;
4435
- test?: boolean | undefined;
4436
- rewardTokenSymbol?: string | undefined;
4437
- order?: string | undefined;
4438
- minimumTvl?: number | undefined;
4439
- };
4440
- fetch?: RequestInit | undefined;
4441
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4442
- 200: number;
4443
- }>>;
4444
- };
4445
- campaigns: {
4446
- get: (options: {
4447
- headers?: Record<string, unknown> | undefined;
4448
- query: {
4449
- type?: string | undefined;
4450
- status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
4451
- items?: number | undefined;
4452
- subType?: number | undefined;
4453
- page?: number | undefined;
4454
- types?: string[] | undefined;
4455
- campaignId?: string | undefined;
4456
- opportunityId?: string | undefined;
4457
- startTimestamp?: string | undefined;
4458
- endTimestamp?: string | undefined;
4459
- creatorAddress?: string | undefined;
4460
- chainId?: number | undefined;
4461
- creatorId?: string | undefined;
4462
- mainParameter?: string | undefined;
4463
- point?: boolean | undefined;
4464
- tokenAddress?: string | undefined;
4465
- test?: boolean | undefined;
4466
- creatorTag?: string | undefined;
4467
- distributionChainIds?: number[] | undefined;
4468
- tokenSymbol?: string | undefined;
4469
- withOpportunity?: boolean | undefined;
4470
- createdAfter?: Date | null | undefined;
4471
- };
4472
- fetch?: RequestInit | undefined;
4473
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4474
- 200: {
4607
+ } | null)[];
4608
+ } | {
4609
+ 200: never;
4610
+ } | {
4611
+ 200: (Response | ({
4475
4612
  protocol?: {
4476
4613
  id: string;
4477
4614
  name: string;
@@ -4481,6 +4618,7 @@ declare const eden: {
4481
4618
  icon: string;
4482
4619
  } | null | undefined;
4483
4620
  depositUrl?: string | undefined;
4621
+ explorerAddress?: string | undefined;
4484
4622
  aprRecord?: {
4485
4623
  timestamp: string | bigint;
4486
4624
  cumulated: number;
@@ -4555,45 +4693,243 @@ declare const eden: {
4555
4693
  tvl: number;
4556
4694
  apr: number;
4557
4695
  dailyRewards: number;
4558
- campaigns: {
4559
- creator?: {
4560
- tags?: string[] | undefined;
4561
- creatorId?: string | null | undefined;
4562
- address: string;
4563
- } | undefined;
4564
- campaignStatus?: {
4565
- error?: string | undefined;
4566
- details?: any;
4567
- status: string;
4568
- campaignId: string;
4569
- computedUntil: string | number;
4570
- processingStarted: string | number;
4571
- } | undefined;
4572
- distributionChain?: {
4573
- id: number;
4696
+ } | null)[] | {
4697
+ 200: ({
4698
+ protocol?: {
4699
+ id: string;
4574
4700
  name: string;
4701
+ url: string;
4702
+ description: string;
4703
+ tags: string[];
4575
4704
  icon: string;
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
+ }[];
4576
4753
  } | undefined;
4577
4754
  id: string;
4755
+ name: string;
4578
4756
  type: string;
4579
- params: any;
4580
- subType: number | null;
4581
- chain: {
4582
- id: number;
4583
- name: string;
4757
+ status: string;
4758
+ tokens: {
4759
+ price?: number | null | undefined;
4760
+ symbol: string;
4761
+ id: string;
4762
+ name: string | null;
4763
+ icon: string;
4764
+ address: string;
4765
+ chainId: number;
4766
+ decimals: number;
4767
+ verified: boolean;
4768
+ isTest: boolean;
4769
+ }[];
4770
+ tags: string[];
4771
+ identifier: string;
4772
+ chain: {
4773
+ id: number;
4774
+ name: string;
4584
4775
  icon: string;
4585
4776
  };
4586
- computeChainId: number;
4587
- distributionChainId: number;
4588
- campaignId: string;
4589
- rewardTokenId: string;
4590
- amount: string;
4591
- opportunityId: string;
4592
- startTimestamp: string | number;
4593
- endTimestamp: string | number;
4594
- creatorAddress: string;
4595
- createdAt: string;
4596
- rewardToken: {
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";
4800
+ identifier: string;
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?: {
4817
+ id: string;
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;
4840
+ id: string;
4841
+ name: string;
4842
+ type: string;
4843
+ status: string;
4844
+ tokens: {
4845
+ price?: number | null | undefined;
4846
+ symbol: string;
4847
+ id: string;
4848
+ name: string | null;
4849
+ icon: string;
4850
+ address: string;
4851
+ chainId: number;
4852
+ decimals: number;
4853
+ verified: boolean;
4854
+ isTest: boolean;
4855
+ }[];
4856
+ tags: string[];
4857
+ identifier: string;
4858
+ chain: {
4859
+ id: number;
4860
+ name: string;
4861
+ icon: string;
4862
+ };
4863
+ action: string;
4864
+ chainId: number;
4865
+ tvl: number;
4866
+ apr: number;
4867
+ dailyRewards: number;
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: {
4597
4933
  price?: number | null | undefined;
4598
4934
  symbol: string;
4599
4935
  id: string;
@@ -4604,23 +4940,24 @@ declare const eden: {
4604
4940
  decimals: number;
4605
4941
  verified: boolean;
4606
4942
  isTest: boolean;
4943
+ }[];
4944
+ tags: string[];
4945
+ identifier: string;
4946
+ chain: {
4947
+ id: number;
4948
+ name: string;
4949
+ icon: string;
4607
4950
  };
4608
- }[];
4609
- }[];
4610
- readonly 404: {
4611
- name: string;
4612
- message: string;
4613
- };
4614
- readonly 500: {
4615
- info: string;
4616
- code: string;
4617
- httpCode: number;
4951
+ action: string;
4952
+ chainId: number;
4953
+ tvl: number;
4954
+ apr: number;
4955
+ dailyRewards: number;
4956
+ } | null)[];
4618
4957
  };
4619
4958
  }>>;
4620
4959
  };
4621
- aggregate: ((params: {
4622
- field: string | number;
4623
- }) => {
4960
+ count: {
4624
4961
  get: (options: {
4625
4962
  headers?: Record<string, unknown> | undefined;
4626
4963
  query: {
@@ -4647,61 +4984,236 @@ declare const eden: {
4647
4984
  };
4648
4985
  fetch?: RequestInit | undefined;
4649
4986
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4650
- 200: {
4651
- sum: string;
4652
- };
4987
+ 200: number;
4653
4988
  }>>;
4654
- }) & {
4655
- max: ((params: {
4656
- field: string | number;
4657
- }) => {
4658
- get: (options: {
4659
- headers?: Record<string, unknown> | undefined;
4660
- query: {
4661
- name?: string | undefined;
4662
- type?: string | undefined;
4663
- status?: string | undefined;
4664
- sort?: string | undefined;
4665
- tokens?: string | undefined;
4666
- items?: number | undefined;
4667
- tags?: string | undefined;
4668
- identifier?: string | undefined;
4669
- page?: number | undefined;
4670
- action?: string | undefined;
4671
- campaignId?: string | undefined;
4672
- creatorAddress?: string | undefined;
4673
- chainId?: string | undefined;
4674
- mainProtocolId?: string | undefined;
4675
- campaigns?: boolean | undefined;
4676
- point?: boolean | undefined;
4677
- test?: boolean | undefined;
4678
- rewardTokenSymbol?: string | undefined;
4679
- order?: string | undefined;
4680
- minimumTvl?: number | undefined;
4681
- };
4682
- fetch?: RequestInit | undefined;
4683
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4684
- 200: {
4685
- max: string;
4686
- };
4687
- }>>;
4688
- }) & {};
4689
- min: ((params: {
4690
- field: string | number;
4691
- }) => {
4692
- get: (options: {
4693
- headers?: Record<string, unknown> | undefined;
4694
- query: {
4695
- name?: string | undefined;
4696
- type?: string | undefined;
4697
- status?: string | undefined;
4698
- sort?: string | undefined;
4699
- tokens?: string | undefined;
4700
- items?: number | undefined;
4701
- tags?: string | undefined;
4702
- identifier?: string | undefined;
4703
- page?: number | undefined;
4704
- action?: string | undefined;
4989
+ };
4990
+ campaigns: {
4991
+ get: (options: {
4992
+ headers?: Record<string, unknown> | undefined;
4993
+ query: {
4994
+ type?: string | undefined;
4995
+ status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
4996
+ items?: number | undefined;
4997
+ subType?: number | undefined;
4998
+ page?: number | undefined;
4999
+ types?: string[] | undefined;
5000
+ campaignId?: string | undefined;
5001
+ opportunityId?: string | undefined;
5002
+ startTimestamp?: string | undefined;
5003
+ endTimestamp?: string | undefined;
5004
+ creatorAddress?: string | undefined;
5005
+ chainId?: number | undefined;
5006
+ creatorId?: string | undefined;
5007
+ mainParameter?: string | undefined;
5008
+ point?: boolean | undefined;
5009
+ tokenAddress?: string | undefined;
5010
+ test?: boolean | undefined;
5011
+ creatorTag?: string | undefined;
5012
+ distributionChainIds?: number[] | undefined;
5013
+ tokenSymbol?: string | undefined;
5014
+ withOpportunity?: boolean | undefined;
5015
+ createdAfter?: Date | null | undefined;
5016
+ };
5017
+ fetch?: RequestInit | undefined;
5018
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
5019
+ 200: {
5020
+ protocol?: {
5021
+ id: string;
5022
+ name: string;
5023
+ url: string;
5024
+ description: string;
5025
+ tags: string[];
5026
+ icon: string;
5027
+ } | null | undefined;
5028
+ depositUrl?: string | undefined;
5029
+ explorerAddress?: string | undefined;
5030
+ aprRecord?: {
5031
+ timestamp: string | bigint;
5032
+ cumulated: number;
5033
+ breakdowns: {
5034
+ id: number;
5035
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
5036
+ identifier: string;
5037
+ value: number;
5038
+ aprRecordId: string;
5039
+ }[];
5040
+ } | undefined;
5041
+ tvlRecord?: {
5042
+ total: number;
5043
+ timestamp: string | bigint;
5044
+ breakdowns: {
5045
+ id: number;
5046
+ type: "TOKEN" | "PROTOCOL";
5047
+ identifier: string;
5048
+ value: number;
5049
+ tvlRecordId: string;
5050
+ }[];
5051
+ } | undefined;
5052
+ rewardsRecord?: {
5053
+ id: string;
5054
+ total: number;
5055
+ timestamp: string | bigint;
5056
+ breakdowns: {
5057
+ id: number;
5058
+ token: {
5059
+ price?: number | null | undefined;
5060
+ symbol: string;
5061
+ id: string;
5062
+ name: string | null;
5063
+ icon: string;
5064
+ address: string;
5065
+ chainId: number;
5066
+ decimals: number;
5067
+ verified: boolean;
5068
+ isTest: boolean;
5069
+ };
5070
+ value: number;
5071
+ campaignId: string;
5072
+ amount: string | bigint;
5073
+ dailyRewardsRecordId: string;
5074
+ }[];
5075
+ } | undefined;
5076
+ id: string;
5077
+ name: string;
5078
+ type: string;
5079
+ status: string;
5080
+ tokens: {
5081
+ price?: number | null | undefined;
5082
+ symbol: string;
5083
+ id: string;
5084
+ name: string | null;
5085
+ icon: string;
5086
+ address: string;
5087
+ chainId: number;
5088
+ decimals: number;
5089
+ verified: boolean;
5090
+ isTest: boolean;
5091
+ }[];
5092
+ tags: string[];
5093
+ identifier: string;
5094
+ chain: {
5095
+ id: number;
5096
+ name: string;
5097
+ icon: string;
5098
+ };
5099
+ action: string;
5100
+ chainId: number;
5101
+ tvl: number;
5102
+ apr: number;
5103
+ dailyRewards: number;
5104
+ campaigns: {
5105
+ creator?: {
5106
+ tags?: string[] | undefined;
5107
+ creatorId?: string | null | undefined;
5108
+ address: string;
5109
+ } | undefined;
5110
+ campaignStatus?: {
5111
+ error?: string | undefined;
5112
+ details?: any;
5113
+ status: string;
5114
+ campaignId: string;
5115
+ computedUntil: string | number;
5116
+ processingStarted: string | number;
5117
+ } | undefined;
5118
+ distributionChain?: {
5119
+ id: number;
5120
+ name: string;
5121
+ icon: string;
5122
+ } | undefined;
5123
+ id: string;
5124
+ type: string;
5125
+ params: any;
5126
+ subType: number | null;
5127
+ chain: {
5128
+ id: number;
5129
+ name: string;
5130
+ icon: string;
5131
+ };
5132
+ computeChainId: number;
5133
+ distributionChainId: number;
5134
+ campaignId: string;
5135
+ rewardTokenId: string;
5136
+ amount: string;
5137
+ opportunityId: string;
5138
+ startTimestamp: string | number;
5139
+ endTimestamp: string | number;
5140
+ creatorAddress: string;
5141
+ createdAt: string;
5142
+ rewardToken: {
5143
+ price?: number | null | undefined;
5144
+ symbol: string;
5145
+ id: string;
5146
+ name: string | null;
5147
+ icon: string;
5148
+ address: string;
5149
+ chainId: number;
5150
+ decimals: number;
5151
+ verified: boolean;
5152
+ isTest: boolean;
5153
+ };
5154
+ }[];
5155
+ }[];
5156
+ readonly 404: {
5157
+ name: string;
5158
+ message: string;
5159
+ };
5160
+ readonly 500: {
5161
+ info: string;
5162
+ code: string;
5163
+ httpCode: number;
5164
+ };
5165
+ }>>;
5166
+ };
5167
+ aggregate: ((params: {
5168
+ field: string | number;
5169
+ }) => {
5170
+ get: (options: {
5171
+ headers?: Record<string, unknown> | undefined;
5172
+ query: {
5173
+ name?: string | undefined;
5174
+ type?: string | undefined;
5175
+ status?: string | undefined;
5176
+ sort?: string | undefined;
5177
+ tokens?: string | undefined;
5178
+ items?: number | undefined;
5179
+ tags?: string | undefined;
5180
+ identifier?: string | undefined;
5181
+ page?: number | undefined;
5182
+ action?: string | undefined;
5183
+ campaignId?: string | undefined;
5184
+ creatorAddress?: string | undefined;
5185
+ chainId?: string | undefined;
5186
+ mainProtocolId?: string | undefined;
5187
+ campaigns?: boolean | undefined;
5188
+ point?: boolean | undefined;
5189
+ test?: boolean | undefined;
5190
+ rewardTokenSymbol?: string | undefined;
5191
+ order?: string | undefined;
5192
+ minimumTvl?: number | undefined;
5193
+ };
5194
+ fetch?: RequestInit | undefined;
5195
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
5196
+ 200: {
5197
+ sum: string;
5198
+ };
5199
+ }>>;
5200
+ }) & {
5201
+ max: ((params: {
5202
+ field: string | number;
5203
+ }) => {
5204
+ get: (options: {
5205
+ headers?: Record<string, unknown> | undefined;
5206
+ query: {
5207
+ name?: string | undefined;
5208
+ type?: string | undefined;
5209
+ status?: string | undefined;
5210
+ sort?: string | undefined;
5211
+ tokens?: string | undefined;
5212
+ items?: number | undefined;
5213
+ tags?: string | undefined;
5214
+ identifier?: string | undefined;
5215
+ page?: number | undefined;
5216
+ action?: string | undefined;
4705
5217
  campaignId?: string | undefined;
4706
5218
  creatorAddress?: string | undefined;
4707
5219
  chainId?: string | undefined;
@@ -4716,36 +5228,70 @@ declare const eden: {
4716
5228
  fetch?: RequestInit | undefined;
4717
5229
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4718
5230
  200: {
4719
- min: string;
5231
+ max: string;
4720
5232
  };
4721
5233
  }>>;
4722
5234
  }) & {};
4723
- };
4724
- };
4725
- campaigns: ((params: {
4726
- id: string | number;
4727
- campaignId: string | number;
4728
- }) => {
4729
- get: (options?: {
4730
- headers?: Record<string, unknown> | undefined;
4731
- query?: Record<string, unknown> | undefined;
4732
- fetch?: RequestInit | undefined;
4733
- } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4734
- 200: {
4735
- params: any;
4736
- chain: {
4737
- id: number;
4738
- name: string;
4739
- icon: string;
4740
- };
4741
- endTimestamp: number;
4742
- startTimestamp: number;
4743
- rewardToken: {
4744
- symbol: string;
4745
- id: string;
4746
- name: string | null;
4747
- icon: string;
4748
- address: string;
5235
+ min: ((params: {
5236
+ field: string | number;
5237
+ }) => {
5238
+ get: (options: {
5239
+ headers?: Record<string, unknown> | undefined;
5240
+ query: {
5241
+ name?: string | undefined;
5242
+ type?: string | undefined;
5243
+ status?: string | undefined;
5244
+ sort?: string | undefined;
5245
+ tokens?: string | undefined;
5246
+ items?: number | undefined;
5247
+ tags?: string | undefined;
5248
+ identifier?: string | undefined;
5249
+ page?: number | undefined;
5250
+ action?: string | undefined;
5251
+ campaignId?: string | undefined;
5252
+ creatorAddress?: string | undefined;
5253
+ chainId?: string | undefined;
5254
+ mainProtocolId?: string | undefined;
5255
+ campaigns?: boolean | undefined;
5256
+ point?: boolean | undefined;
5257
+ test?: boolean | undefined;
5258
+ rewardTokenSymbol?: string | undefined;
5259
+ order?: string | undefined;
5260
+ minimumTvl?: number | undefined;
5261
+ };
5262
+ fetch?: RequestInit | undefined;
5263
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
5264
+ 200: {
5265
+ min: string;
5266
+ };
5267
+ }>>;
5268
+ }) & {};
5269
+ };
5270
+ };
5271
+ campaigns: ((params: {
5272
+ id: string | number;
5273
+ campaignId: string | number;
5274
+ }) => {
5275
+ get: (options?: {
5276
+ headers?: Record<string, unknown> | undefined;
5277
+ query?: Record<string, unknown> | undefined;
5278
+ fetch?: RequestInit | undefined;
5279
+ } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
5280
+ 200: {
5281
+ params: any;
5282
+ chain: {
5283
+ id: number;
5284
+ name: string;
5285
+ icon: string;
5286
+ };
5287
+ endTimestamp: number;
5288
+ startTimestamp: number;
5289
+ rewardToken: {
5290
+ symbol: string;
5291
+ id: string;
5292
+ name: string | null;
5293
+ icon: string;
5294
+ address: string;
4749
5295
  chainId: number;
4750
5296
  decimals: number;
4751
5297
  verified: boolean;
@@ -8397,95 +8943,359 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8397
8943
  tokens: ({
8398
8944
  symbol: string;
8399
8945
  id: string;
8400
- name: string | null;
8401
- icon: string;
8402
- address: string;
8946
+ name: string | null;
8947
+ icon: string;
8948
+ address: string;
8949
+ chainId: number;
8950
+ decimals: number;
8951
+ verified: boolean;
8952
+ isTest: boolean;
8953
+ isPoint: boolean;
8954
+ isNative: boolean;
8955
+ } & {
8956
+ price?: number | null | undefined;
8957
+ })[];
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;
8959
+ depositUrl: any;
8960
+ explorerAddress: string | undefined;
8961
+ tags: string[];
8962
+ };
8963
+ };
8964
+ };
8965
+ };
8966
+ };
8967
+ } & {
8968
+ opportunities: {
8969
+ index: {
8970
+ get: {
8971
+ body: unknown;
8972
+ params: {};
8973
+ query: {
8974
+ name?: string | undefined;
8975
+ type?: string | undefined;
8976
+ status?: string | undefined;
8977
+ sort?: string | undefined;
8978
+ tokens?: string | undefined;
8979
+ items?: number | undefined;
8980
+ tags?: string | undefined;
8981
+ identifier?: string | undefined;
8982
+ page?: number | undefined;
8983
+ action?: string | undefined;
8984
+ campaignId?: string | undefined;
8985
+ creatorAddress?: string | undefined;
8986
+ chainId?: string | undefined;
8987
+ mainProtocolId?: string | undefined;
8988
+ campaigns?: boolean | undefined;
8989
+ point?: boolean | undefined;
8990
+ test?: boolean | undefined;
8991
+ rewardTokenSymbol?: string | undefined;
8992
+ order?: string | undefined;
8993
+ minimumTvl?: number | undefined;
8994
+ };
8995
+ headers: unknown;
8996
+ response: {
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;
9010
+ cumulated: number;
9011
+ breakdowns: {
9012
+ id: number;
9013
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
9014
+ identifier: string;
9015
+ value: number;
9016
+ aprRecordId: string;
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;
9076
+ };
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?: {
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?: {
9109
+ total: number;
9110
+ timestamp: string | bigint;
9111
+ breakdowns: {
9112
+ id: number;
9113
+ type: "TOKEN" | "PROTOCOL";
9114
+ identifier: string;
9115
+ value: number;
9116
+ tvlRecordId: string;
9117
+ }[];
9118
+ } | undefined;
9119
+ rewardsRecord?: {
9120
+ id: string;
9121
+ total: number;
9122
+ timestamp: string | bigint;
9123
+ breakdowns: {
9124
+ id: number;
9125
+ token: {
9126
+ price?: number | null | undefined;
9127
+ symbol: string;
9128
+ id: string;
9129
+ name: string | null;
9130
+ icon: string;
9131
+ address: string;
9132
+ chainId: number;
9133
+ decimals: number;
9134
+ verified: boolean;
9135
+ isTest: boolean;
9136
+ };
9137
+ value: number;
9138
+ campaignId: string;
9139
+ amount: string | bigint;
9140
+ dailyRewardsRecordId: string;
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;
9165
+ };
9166
+ action: string;
9167
+ chainId: number;
9168
+ tvl: number;
9169
+ apr: number;
9170
+ dailyRewards: number;
9171
+ } | null)[] | {
9172
+ 200: ({
9173
+ protocol?: {
9174
+ id: string;
9175
+ name: string;
9176
+ url: string;
9177
+ description: string;
9178
+ tags: string[];
9179
+ icon: string;
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;
9235
+ symbol: string;
9236
+ id: string;
9237
+ name: string | null;
9238
+ icon: string;
9239
+ address: string;
9240
+ chainId: number;
9241
+ decimals: number;
9242
+ verified: boolean;
9243
+ isTest: boolean;
9244
+ }[];
9245
+ tags: string[];
9246
+ identifier: string;
9247
+ chain: {
9248
+ id: number;
9249
+ name: string;
9250
+ icon: string;
9251
+ };
9252
+ action: string;
8403
9253
  chainId: number;
8404
- decimals: number;
8405
- verified: boolean;
8406
- isTest: boolean;
8407
- isPoint: boolean;
8408
- isNative: boolean;
8409
- } & {
8410
- price?: number | null | undefined;
8411
- })[];
8412
- 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;
8413
- depositUrl: any;
8414
- explorerAddress: string | undefined;
8415
- tags: string[];
8416
- };
8417
- };
8418
- };
8419
- };
8420
- };
8421
- } & {
8422
- opportunities: {
8423
- index: {
8424
- get: {
8425
- body: unknown;
8426
- params: {};
8427
- query: {
8428
- name?: string | undefined;
8429
- type?: string | undefined;
8430
- status?: string | undefined;
8431
- sort?: string | undefined;
8432
- tokens?: string | undefined;
8433
- items?: number | undefined;
8434
- tags?: string | undefined;
8435
- identifier?: string | undefined;
8436
- page?: number | undefined;
8437
- action?: string | undefined;
8438
- campaignId?: string | undefined;
8439
- creatorAddress?: string | undefined;
8440
- chainId?: string | undefined;
8441
- mainProtocolId?: string | undefined;
8442
- campaigns?: boolean | undefined;
8443
- point?: boolean | undefined;
8444
- test?: boolean | undefined;
8445
- rewardTokenSymbol?: string | undefined;
8446
- order?: string | undefined;
8447
- minimumTvl?: number | undefined;
8448
- };
8449
- headers: unknown;
8450
- response: {
8451
- 200: {
8452
- apr: number;
8453
- aprRecord: {
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;
8454
9271
  cumulated: number;
8455
- timestamp: bigint;
8456
9272
  breakdowns: {
8457
9273
  id: number;
8458
- type: import("@db/api").$Enums.AprType;
8459
- uuid: string;
9274
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
8460
9275
  identifier: string;
8461
9276
  value: number;
8462
9277
  aprRecordId: string;
8463
9278
  }[];
8464
- };
8465
- tvlRecord: {
8466
- id: string;
9279
+ } | undefined;
9280
+ tvlRecord?: {
8467
9281
  total: number;
8468
- timestamp: bigint;
9282
+ timestamp: string | bigint;
8469
9283
  breakdowns: {
8470
9284
  id: number;
8471
- type: import("@db/api").$Enums.TvlType;
8472
- uuid: string;
9285
+ type: "TOKEN" | "PROTOCOL";
8473
9286
  identifier: string;
8474
9287
  value: number;
8475
9288
  tvlRecordId: string;
8476
9289
  }[];
8477
- };
8478
- rewardsRecord: {
9290
+ } | undefined;
9291
+ rewardsRecord?: {
8479
9292
  id: string;
8480
9293
  total: number;
8481
- timestamp: bigint;
9294
+ timestamp: string | bigint;
8482
9295
  breakdowns: {
8483
9296
  id: number;
8484
- uuid: string;
8485
- value: number;
8486
- campaignId: string;
8487
- dailyRewardsRecordId: string;
8488
9297
  token: {
9298
+ price?: number | null | undefined;
8489
9299
  symbol: string;
8490
9300
  id: string;
8491
9301
  name: string | null;
@@ -8493,89 +9303,21 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8493
9303
  address: string;
8494
9304
  chainId: number;
8495
9305
  decimals: number;
8496
- displaySymbol: string;
8497
9306
  verified: boolean;
8498
9307
  isTest: boolean;
8499
- isPoint: boolean;
8500
- isNative: boolean;
8501
- price: number | null;
8502
9308
  };
8503
- amount: bigint;
8504
- }[];
8505
- };
8506
- campaigns: {
8507
- params: any;
8508
- chain: {
8509
- id: number;
8510
- name: string;
8511
- icon: string;
8512
- };
8513
- endTimestamp: number;
8514
- startTimestamp: number;
8515
- rewardToken: {
8516
- symbol: string;
8517
- id: string;
8518
- name: string | null;
8519
- icon: string;
8520
- address: string;
8521
- chainId: number;
8522
- decimals: number;
8523
- verified: boolean;
8524
- isTest: boolean;
8525
- isPoint: boolean;
8526
- isNative: boolean;
8527
- } & {
8528
- price?: number | null | undefined;
8529
- };
8530
- distributionChain: {
8531
- id: number;
8532
- name: string;
8533
- icon: string;
8534
- } | undefined;
8535
- campaignStatus: {
8536
- computedUntil: number;
8537
- processingStarted: number;
8538
- error: string;
8539
- status: import("@db/api").$Enums.RunStatus;
8540
- details: import("database/api/.generated/runtime/library").JsonValue;
9309
+ value: number;
8541
9310
  campaignId: string;
8542
- } | undefined;
8543
- creatorAddress: string;
8544
- creator: {
8545
- tags: string[];
8546
- address: string;
8547
- creatorId: string | null;
8548
- };
8549
- createdAt: string;
8550
- Opportunity: {
8551
- id: string;
8552
- name: string;
8553
- type: string;
8554
- status: import("@db/api").$Enums.Status;
8555
- tags: string[];
8556
- identifier: string;
8557
- action: import("@db/api").$Enums.OpportunityAction;
8558
- chainId: number;
8559
- depositUrl: string | null;
8560
- explorerAddress: string | null;
8561
- mainProtocolId: string | null;
8562
- tvl: number;
8563
- apr: number;
8564
- dailyRewards: number;
8565
- };
8566
- id: string;
8567
- type: string;
8568
- subType: number | null;
8569
- computeChainId: number;
8570
- distributionChainId: number;
8571
- campaignId: string;
8572
- rewardTokenId: string;
8573
- amount: string;
8574
- opportunityId: string;
8575
- }[] | undefined;
9311
+ amount: string | bigint;
9312
+ dailyRewardsRecordId: string;
9313
+ }[];
9314
+ } | undefined;
8576
9315
  id: string;
8577
- depositUrl: string | undefined;
8578
- tokens: ({
9316
+ name: string;
9317
+ type: string;
9318
+ status: string;
9319
+ tokens: {
9320
+ price?: number | null | undefined;
8579
9321
  symbol: string;
8580
9322
  id: string;
8581
9323
  name: string | null;
@@ -8585,35 +9327,109 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8585
9327
  decimals: number;
8586
9328
  verified: boolean;
8587
9329
  isTest: boolean;
8588
- isPoint: boolean;
8589
- isNative: boolean;
8590
- } & {
8591
- price?: number | null | undefined;
8592
- })[];
9330
+ }[];
9331
+ tags: string[];
9332
+ identifier: string;
8593
9333
  chain: {
8594
9334
  id: number;
8595
9335
  name: string;
8596
9336
  icon: string;
8597
9337
  };
8598
- 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;
8599
9403
  id: string;
8600
9404
  name: string;
8601
- url: string;
8602
- 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
+ }[];
8603
9419
  tags: string[];
8604
- icon: string;
8605
- } | undefined;
8606
- name: string;
8607
- type: string;
8608
- status: import("@db/api").$Enums.Status;
8609
- tags: string[];
8610
- identifier: string;
8611
- action: import("@db/api").$Enums.OpportunityAction;
8612
- chainId: number;
8613
- explorerAddress: string | null;
8614
- tvl: number;
8615
- dailyRewards: number;
8616
- }[];
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
+ };
8617
9433
  };
8618
9434
  };
8619
9435
  };
@@ -8677,6 +9493,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8677
9493
  icon: string;
8678
9494
  } | null | undefined;
8679
9495
  depositUrl?: string | undefined;
9496
+ explorerAddress?: string | undefined;
8680
9497
  aprRecord?: {
8681
9498
  timestamp: string | bigint;
8682
9499
  cumulated: number;
@@ -8807,6 +9624,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8807
9624
  icon: string;
8808
9625
  } | null | undefined;
8809
9626
  depositUrl?: string | undefined;
9627
+ explorerAddress?: string | undefined;
8810
9628
  aprRecord?: {
8811
9629
  timestamp: string | bigint;
8812
9630
  cumulated: number;
@@ -8971,6 +9789,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8971
9789
  icon: string;
8972
9790
  } | null | undefined;
8973
9791
  depositUrl?: string | undefined;
9792
+ explorerAddress?: string | undefined;
8974
9793
  aprRecord?: {
8975
9794
  timestamp: string | bigint;
8976
9795
  cumulated: number;
@@ -13866,6 +14685,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
13866
14685
  icon: string;
13867
14686
  } | null | undefined;
13868
14687
  depositUrl?: string | undefined;
14688
+ explorerAddress?: string | undefined;
13869
14689
  aprRecord?: {
13870
14690
  timestamp: string | bigint;
13871
14691
  cumulated: number;
@@ -13970,6 +14790,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
13970
14790
  icon: string;
13971
14791
  } | null | undefined;
13972
14792
  depositUrl?: string | undefined;
14793
+ explorerAddress?: string | undefined;
13973
14794
  aprRecord?: {
13974
14795
  timestamp: string | bigint;
13975
14796
  cumulated: number;
@@ -14203,44 +15024,308 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
14203
15024
  };
14204
15025
  fetch?: RequestInit | undefined;
14205
15026
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
14206
- 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;
14207
15199
  apr: number;
14208
- 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;
14209
15301
  cumulated: number;
14210
- timestamp: bigint;
14211
15302
  breakdowns: {
14212
15303
  id: number;
14213
- type: import("@db/api").$Enums.AprType;
14214
- uuid: string;
15304
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
14215
15305
  identifier: string;
14216
15306
  value: number;
14217
15307
  aprRecordId: string;
14218
15308
  }[];
14219
- };
14220
- tvlRecord: {
14221
- id: string;
15309
+ } | undefined;
15310
+ tvlRecord?: {
14222
15311
  total: number;
14223
- timestamp: bigint;
15312
+ timestamp: string | bigint;
14224
15313
  breakdowns: {
14225
15314
  id: number;
14226
- type: import("@db/api").$Enums.TvlType;
14227
- uuid: string;
15315
+ type: "TOKEN" | "PROTOCOL";
14228
15316
  identifier: string;
14229
15317
  value: number;
14230
15318
  tvlRecordId: string;
14231
15319
  }[];
14232
- };
14233
- rewardsRecord: {
15320
+ } | undefined;
15321
+ rewardsRecord?: {
14234
15322
  id: string;
14235
15323
  total: number;
14236
- timestamp: bigint;
15324
+ timestamp: string | bigint;
14237
15325
  breakdowns: {
14238
15326
  id: number;
14239
- uuid: string;
14240
- value: number;
14241
- campaignId: string;
14242
- dailyRewardsRecordId: string;
14243
15327
  token: {
15328
+ price?: number | null | undefined;
14244
15329
  symbol: string;
14245
15330
  id: string;
14246
15331
  name: string | null;
@@ -14248,89 +15333,21 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
14248
15333
  address: string;
14249
15334
  chainId: number;
14250
15335
  decimals: number;
14251
- displaySymbol: string;
14252
15336
  verified: boolean;
14253
15337
  isTest: boolean;
14254
- isPoint: boolean;
14255
- isNative: boolean;
14256
- price: number | null;
14257
15338
  };
14258
- amount: bigint;
14259
- }[];
14260
- };
14261
- campaigns: {
14262
- params: any;
14263
- chain: {
14264
- id: number;
14265
- name: string;
14266
- icon: string;
14267
- };
14268
- endTimestamp: number;
14269
- startTimestamp: number;
14270
- rewardToken: {
14271
- symbol: string;
14272
- id: string;
14273
- name: string | null;
14274
- icon: string;
14275
- address: string;
14276
- chainId: number;
14277
- decimals: number;
14278
- verified: boolean;
14279
- isTest: boolean;
14280
- isPoint: boolean;
14281
- isNative: boolean;
14282
- } & {
14283
- price?: number | null | undefined;
14284
- };
14285
- distributionChain: {
14286
- id: number;
14287
- name: string;
14288
- icon: string;
14289
- } | undefined;
14290
- campaignStatus: {
14291
- computedUntil: number;
14292
- processingStarted: number;
14293
- error: string;
14294
- status: import("@db/api").$Enums.RunStatus;
14295
- details: import("database/api/.generated/runtime/library").JsonValue;
15339
+ value: number;
14296
15340
  campaignId: string;
14297
- } | undefined;
14298
- creatorAddress: string;
14299
- creator: {
14300
- tags: string[];
14301
- address: string;
14302
- creatorId: string | null;
14303
- };
14304
- createdAt: string;
14305
- Opportunity: {
14306
- id: string;
14307
- name: string;
14308
- type: string;
14309
- status: import("@db/api").$Enums.Status;
14310
- tags: string[];
14311
- identifier: string;
14312
- action: import("@db/api").$Enums.OpportunityAction;
14313
- chainId: number;
14314
- depositUrl: string | null;
14315
- explorerAddress: string | null;
14316
- mainProtocolId: string | null;
14317
- tvl: number;
14318
- apr: number;
14319
- dailyRewards: number;
14320
- };
14321
- id: string;
14322
- type: string;
14323
- subType: number | null;
14324
- computeChainId: number;
14325
- distributionChainId: number;
14326
- campaignId: string;
14327
- rewardTokenId: string;
14328
- amount: string;
14329
- opportunityId: string;
14330
- }[] | undefined;
15341
+ amount: string | bigint;
15342
+ dailyRewardsRecordId: string;
15343
+ }[];
15344
+ } | undefined;
14331
15345
  id: string;
14332
- depositUrl: string | undefined;
14333
- tokens: ({
15346
+ name: string;
15347
+ type: string;
15348
+ status: string;
15349
+ tokens: {
15350
+ price?: number | null | undefined;
14334
15351
  symbol: string;
14335
15352
  id: string;
14336
15353
  name: string | null;
@@ -14340,35 +15357,109 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
14340
15357
  decimals: number;
14341
15358
  verified: boolean;
14342
15359
  isTest: boolean;
14343
- isPoint: boolean;
14344
- isNative: boolean;
14345
- } & {
14346
- price?: number | null | undefined;
14347
- })[];
15360
+ }[];
15361
+ tags: string[];
15362
+ identifier: string;
14348
15363
  chain: {
14349
15364
  id: number;
14350
15365
  name: string;
14351
15366
  icon: string;
14352
15367
  };
14353
- 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;
14354
15433
  id: string;
14355
15434
  name: string;
14356
- url: string;
14357
- 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
+ }[];
14358
15449
  tags: string[];
14359
- icon: string;
14360
- } | undefined;
14361
- name: string;
14362
- type: string;
14363
- status: import("@db/api").$Enums.Status;
14364
- tags: string[];
14365
- identifier: string;
14366
- action: import("@db/api").$Enums.OpportunityAction;
14367
- chainId: number;
14368
- explorerAddress: string | null;
14369
- tvl: number;
14370
- dailyRewards: number;
14371
- }[];
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
+ };
14372
15463
  }>>;
14373
15464
  };
14374
15465
  count: {
@@ -14440,6 +15531,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
14440
15531
  icon: string;
14441
15532
  } | null | undefined;
14442
15533
  depositUrl?: string | undefined;
15534
+ explorerAddress?: string | undefined;
14443
15535
  aprRecord?: {
14444
15536
  timestamp: string | bigint;
14445
15537
  cumulated: number;
@@ -17619,6 +18711,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
17619
18711
  icon: string;
17620
18712
  } | null | undefined;
17621
18713
  depositUrl?: string | undefined;
18714
+ explorerAddress?: string | undefined;
17622
18715
  aprRecord?: {
17623
18716
  timestamp: string | bigint;
17624
18717
  cumulated: number;
@@ -17723,6 +18816,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
17723
18816
  icon: string;
17724
18817
  } | null | undefined;
17725
18818
  depositUrl?: string | undefined;
18819
+ explorerAddress?: string | undefined;
17726
18820
  aprRecord?: {
17727
18821
  timestamp: string | bigint;
17728
18822
  cumulated: number;
@@ -17956,44 +19050,308 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
17956
19050
  };
17957
19051
  fetch?: RequestInit | undefined;
17958
19052
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
17959
- 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;
17960
19225
  apr: number;
17961
- 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;
17962
19327
  cumulated: number;
17963
- timestamp: bigint;
17964
19328
  breakdowns: {
17965
19329
  id: number;
17966
- type: import("@db/api").$Enums.AprType;
17967
- uuid: string;
19330
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
17968
19331
  identifier: string;
17969
19332
  value: number;
17970
19333
  aprRecordId: string;
17971
19334
  }[];
17972
- };
17973
- tvlRecord: {
17974
- id: string;
19335
+ } | undefined;
19336
+ tvlRecord?: {
17975
19337
  total: number;
17976
- timestamp: bigint;
19338
+ timestamp: string | bigint;
17977
19339
  breakdowns: {
17978
19340
  id: number;
17979
- type: import("@db/api").$Enums.TvlType;
17980
- uuid: string;
19341
+ type: "TOKEN" | "PROTOCOL";
17981
19342
  identifier: string;
17982
19343
  value: number;
17983
19344
  tvlRecordId: string;
17984
19345
  }[];
17985
- };
17986
- rewardsRecord: {
19346
+ } | undefined;
19347
+ rewardsRecord?: {
17987
19348
  id: string;
17988
19349
  total: number;
17989
- timestamp: bigint;
19350
+ timestamp: string | bigint;
17990
19351
  breakdowns: {
17991
19352
  id: number;
17992
- uuid: string;
17993
- value: number;
17994
- campaignId: string;
17995
- dailyRewardsRecordId: string;
17996
19353
  token: {
19354
+ price?: number | null | undefined;
17997
19355
  symbol: string;
17998
19356
  id: string;
17999
19357
  name: string | null;
@@ -18001,89 +19359,21 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
18001
19359
  address: string;
18002
19360
  chainId: number;
18003
19361
  decimals: number;
18004
- displaySymbol: string;
18005
19362
  verified: boolean;
18006
19363
  isTest: boolean;
18007
- isPoint: boolean;
18008
- isNative: boolean;
18009
- price: number | null;
18010
19364
  };
18011
- amount: bigint;
18012
- }[];
18013
- };
18014
- campaigns: {
18015
- params: any;
18016
- chain: {
18017
- id: number;
18018
- name: string;
18019
- icon: string;
18020
- };
18021
- endTimestamp: number;
18022
- startTimestamp: number;
18023
- rewardToken: {
18024
- symbol: string;
18025
- id: string;
18026
- name: string | null;
18027
- icon: string;
18028
- address: string;
18029
- chainId: number;
18030
- decimals: number;
18031
- verified: boolean;
18032
- isTest: boolean;
18033
- isPoint: boolean;
18034
- isNative: boolean;
18035
- } & {
18036
- price?: number | null | undefined;
18037
- };
18038
- distributionChain: {
18039
- id: number;
18040
- name: string;
18041
- icon: string;
18042
- } | undefined;
18043
- campaignStatus: {
18044
- computedUntil: number;
18045
- processingStarted: number;
18046
- error: string;
18047
- status: import("@db/api").$Enums.RunStatus;
18048
- details: import("database/api/.generated/runtime/library").JsonValue;
19365
+ value: number;
18049
19366
  campaignId: string;
18050
- } | undefined;
18051
- creatorAddress: string;
18052
- creator: {
18053
- tags: string[];
18054
- address: string;
18055
- creatorId: string | null;
18056
- };
18057
- createdAt: string;
18058
- Opportunity: {
18059
- id: string;
18060
- name: string;
18061
- type: string;
18062
- status: import("@db/api").$Enums.Status;
18063
- tags: string[];
18064
- identifier: string;
18065
- action: import("@db/api").$Enums.OpportunityAction;
18066
- chainId: number;
18067
- depositUrl: string | null;
18068
- explorerAddress: string | null;
18069
- mainProtocolId: string | null;
18070
- tvl: number;
18071
- apr: number;
18072
- dailyRewards: number;
18073
- };
18074
- id: string;
18075
- type: string;
18076
- subType: number | null;
18077
- computeChainId: number;
18078
- distributionChainId: number;
18079
- campaignId: string;
18080
- rewardTokenId: string;
18081
- amount: string;
18082
- opportunityId: string;
18083
- }[] | undefined;
19367
+ amount: string | bigint;
19368
+ dailyRewardsRecordId: string;
19369
+ }[];
19370
+ } | undefined;
18084
19371
  id: string;
18085
- depositUrl: string | undefined;
18086
- tokens: ({
19372
+ name: string;
19373
+ type: string;
19374
+ status: string;
19375
+ tokens: {
19376
+ price?: number | null | undefined;
18087
19377
  symbol: string;
18088
19378
  id: string;
18089
19379
  name: string | null;
@@ -18093,35 +19383,109 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
18093
19383
  decimals: number;
18094
19384
  verified: boolean;
18095
19385
  isTest: boolean;
18096
- isPoint: boolean;
18097
- isNative: boolean;
18098
- } & {
18099
- price?: number | null | undefined;
18100
- })[];
19386
+ }[];
19387
+ tags: string[];
19388
+ identifier: string;
18101
19389
  chain: {
18102
19390
  id: number;
18103
19391
  name: string;
18104
19392
  icon: string;
18105
19393
  };
18106
- protocol: {
18107
- id: string;
18108
- name: string;
18109
- url: string;
18110
- description: string;
18111
- tags: string[];
18112
- icon: string;
18113
- } | undefined;
18114
- name: string;
18115
- type: string;
18116
- status: import("@db/api").$Enums.Status;
18117
- tags: string[];
18118
- identifier: string;
18119
- action: import("@db/api").$Enums.OpportunityAction;
19394
+ action: string;
18120
19395
  chainId: number;
18121
- explorerAddress: string | null;
18122
19396
  tvl: number;
19397
+ apr: number;
18123
19398
  dailyRewards: number;
18124
- }[];
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
+ };
18125
19489
  }>>;
18126
19490
  };
18127
19491
  count: {
@@ -18193,6 +19557,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
18193
19557
  icon: string;
18194
19558
  } | null | undefined;
18195
19559
  depositUrl?: string | undefined;
19560
+ explorerAddress?: string | undefined;
18196
19561
  aprRecord?: {
18197
19562
  timestamp: string | bigint;
18198
19563
  cumulated: number;