@merkl/api 0.20.166 → 0.20.168

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.
@@ -495,47 +495,144 @@ declare const app: Elysia<"", false, {
495
495
  };
496
496
  headers: unknown;
497
497
  response: {
498
- 200: {
499
- apr: number;
500
- aprRecord: {
498
+ 200: ({
499
+ protocol?: {
500
+ url: string;
501
+ name: string;
502
+ description: string;
503
+ id: string;
504
+ tags: string[];
505
+ icon: string;
506
+ } | null | undefined;
507
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
508
+ depositUrl?: string | undefined;
509
+ explorerAddress?: string | undefined;
510
+ aprRecord?: {
511
+ timestamp: string | bigint;
501
512
  cumulated: number;
502
- timestamp: bigint;
503
- breakdowns: ({
513
+ breakdowns: {
514
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
504
515
  id: string;
516
+ identifier: string;
505
517
  value: number;
506
518
  aprRecordId: string;
507
- distributionType: import("@db/api").$Enums.DistributionType;
519
+ }[];
520
+ } | undefined;
521
+ tvlRecord?: {
522
+ total: number;
523
+ timestamp: string | bigint;
524
+ breakdowns: {
525
+ type: "TOKEN" | "PROTOCOL";
526
+ id: string;
508
527
  identifier: string;
509
- type: "CAMPAIGN";
510
- } | {
528
+ value: number;
529
+ tvlRecordId: string;
530
+ }[];
531
+ } | undefined;
532
+ rewardsRecord?: {
533
+ total: number;
534
+ id: string;
535
+ timestamp: string | bigint;
536
+ breakdowns: {
537
+ token: {
538
+ price?: number | null | undefined;
539
+ symbol: string;
540
+ name: string | null;
541
+ id: string;
542
+ icon: string;
543
+ address: string;
544
+ chainId: number;
545
+ decimals: number;
546
+ verified: boolean;
547
+ isTest: boolean;
548
+ isPoint: boolean;
549
+ isPreTGE: boolean;
550
+ };
511
551
  id: string;
512
552
  value: number;
513
- aprRecordId: string;
514
- identifier: string;
515
- type: import("@db/api").$Enums.AprType;
516
- })[];
553
+ campaignId: string;
554
+ amount: string | bigint;
555
+ dailyRewardsRecordId: string;
556
+ }[];
557
+ } | undefined;
558
+ status: string;
559
+ type: string;
560
+ name: string;
561
+ tokens: {
562
+ price?: number | null | undefined;
563
+ symbol: string;
564
+ name: string | null;
565
+ id: string;
566
+ icon: string;
567
+ address: string;
568
+ chainId: number;
569
+ decimals: number;
570
+ verified: boolean;
571
+ isTest: boolean;
572
+ isPoint: boolean;
573
+ isPreTGE: boolean;
574
+ }[];
575
+ description: string;
576
+ id: string;
577
+ tags: string[];
578
+ identifier: string;
579
+ chain: {
580
+ name: string;
581
+ id: number;
582
+ icon: string;
517
583
  };
518
- tvlRecord: {
584
+ action: string;
585
+ chainId: number;
586
+ howToSteps: string[];
587
+ tvl: number;
588
+ apr: number;
589
+ dailyRewards: number;
590
+ lastCampaignCreatedAt: string;
591
+ } | null)[];
592
+ } | {
593
+ 200: never;
594
+ } | {
595
+ 200: (Response | ({
596
+ protocol?: {
597
+ url: string;
598
+ name: string;
599
+ description: string;
519
600
  id: string;
601
+ tags: string[];
602
+ icon: string;
603
+ } | null | undefined;
604
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
605
+ depositUrl?: string | undefined;
606
+ explorerAddress?: string | undefined;
607
+ aprRecord?: {
608
+ timestamp: string | bigint;
609
+ cumulated: number;
610
+ breakdowns: {
611
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
612
+ id: string;
613
+ identifier: string;
614
+ value: number;
615
+ aprRecordId: string;
616
+ }[];
617
+ } | undefined;
618
+ tvlRecord?: {
520
619
  total: number;
521
- timestamp: bigint;
620
+ timestamp: string | bigint;
522
621
  breakdowns: {
523
- type: import("@db/api").$Enums.TvlType;
622
+ type: "TOKEN" | "PROTOCOL";
524
623
  id: string;
525
624
  identifier: string;
526
625
  value: number;
527
626
  tvlRecordId: string;
528
627
  }[];
529
- };
530
- rewardsRecord: {
531
- id: string;
628
+ } | undefined;
629
+ rewardsRecord?: {
532
630
  total: number;
533
- timestamp: bigint;
631
+ id: string;
632
+ timestamp: string | bigint;
534
633
  breakdowns: {
535
- id: string;
536
- campaignId: string;
537
- dailyRewardsRecordId: string;
538
634
  token: {
635
+ price?: number | null | undefined;
539
636
  symbol: string;
540
637
  name: string | null;
541
638
  id: string;
@@ -543,29 +640,117 @@ declare const app: Elysia<"", false, {
543
640
  address: string;
544
641
  chainId: number;
545
642
  decimals: number;
546
- displaySymbol: string;
547
643
  verified: boolean;
548
644
  isTest: boolean;
549
645
  isPoint: boolean;
550
646
  isPreTGE: boolean;
551
- isNative: boolean;
552
- price: number | null;
553
647
  };
554
- amount: any;
648
+ id: string;
555
649
  value: number;
556
- distributionType: import("@db/api").$Enums.DistributionType;
650
+ campaignId: string;
651
+ amount: string | bigint;
652
+ dailyRewardsRecordId: string;
557
653
  }[];
654
+ } | undefined;
655
+ status: string;
656
+ type: string;
657
+ name: string;
658
+ tokens: {
659
+ price?: number | null | undefined;
660
+ symbol: string;
661
+ name: string | null;
662
+ id: string;
663
+ icon: string;
664
+ address: string;
665
+ chainId: number;
666
+ decimals: number;
667
+ verified: boolean;
668
+ isTest: boolean;
669
+ isPoint: boolean;
670
+ isPreTGE: boolean;
671
+ }[];
672
+ description: string;
673
+ id: string;
674
+ tags: string[];
675
+ identifier: string;
676
+ chain: {
677
+ name: string;
678
+ id: number;
679
+ icon: string;
558
680
  };
559
- campaigns: {
560
- params: any;
561
- chain: {
681
+ action: string;
682
+ chainId: number;
683
+ howToSteps: string[];
684
+ tvl: number;
685
+ apr: number;
686
+ dailyRewards: number;
687
+ lastCampaignCreatedAt: string;
688
+ } | null)[] | {
689
+ 200: ({
690
+ protocol?: {
691
+ url: string;
562
692
  name: string;
563
- id: number;
693
+ description: string;
694
+ id: string;
695
+ tags: string[];
564
696
  icon: string;
565
- };
566
- endTimestamp: number;
567
- startTimestamp: number;
568
- rewardToken: {
697
+ } | null | undefined;
698
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
699
+ depositUrl?: string | undefined;
700
+ explorerAddress?: string | undefined;
701
+ aprRecord?: {
702
+ timestamp: string | bigint;
703
+ cumulated: number;
704
+ breakdowns: {
705
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
706
+ id: string;
707
+ identifier: string;
708
+ value: number;
709
+ aprRecordId: string;
710
+ }[];
711
+ } | undefined;
712
+ tvlRecord?: {
713
+ total: number;
714
+ timestamp: string | bigint;
715
+ breakdowns: {
716
+ type: "TOKEN" | "PROTOCOL";
717
+ id: string;
718
+ identifier: string;
719
+ value: number;
720
+ tvlRecordId: string;
721
+ }[];
722
+ } | undefined;
723
+ rewardsRecord?: {
724
+ total: number;
725
+ id: string;
726
+ timestamp: string | bigint;
727
+ breakdowns: {
728
+ token: {
729
+ price?: number | null | undefined;
730
+ symbol: string;
731
+ name: string | null;
732
+ id: string;
733
+ icon: string;
734
+ address: string;
735
+ chainId: number;
736
+ decimals: number;
737
+ verified: boolean;
738
+ isTest: boolean;
739
+ isPoint: boolean;
740
+ isPreTGE: boolean;
741
+ };
742
+ id: string;
743
+ value: number;
744
+ campaignId: string;
745
+ amount: string | bigint;
746
+ dailyRewardsRecordId: string;
747
+ }[];
748
+ } | undefined;
749
+ status: string;
750
+ type: string;
751
+ name: string;
752
+ tokens: {
753
+ price?: number | null | undefined;
569
754
  symbol: string;
570
755
  name: string | null;
571
756
  id: string;
@@ -577,67 +762,89 @@ declare const app: Elysia<"", false, {
577
762
  isTest: boolean;
578
763
  isPoint: boolean;
579
764
  isPreTGE: boolean;
580
- isNative: boolean;
581
- } & {
582
- price?: number | null | undefined;
583
- };
584
- distributionChain: {
765
+ }[];
766
+ description: string;
767
+ id: string;
768
+ tags: string[];
769
+ identifier: string;
770
+ chain: {
585
771
  name: string;
586
772
  id: number;
587
773
  icon: string;
588
- } | undefined;
589
- campaignStatus: {
590
- computedUntil: number;
591
- processingStarted: number;
592
- status: import("@db/api").$Enums.RunStatus;
593
- error: string;
594
- details: import("database/api/.generated/runtime/library").JsonValue;
595
- campaignId: string;
596
- } | undefined;
597
- creatorAddress: string;
598
- creator: {
599
- tags: string[];
600
- address: string;
601
- creatorId: string | null;
602
774
  };
603
- createdAt: string;
604
- description: string | undefined;
605
- Opportunity: {
606
- status: import("@db/api").$Enums.Status;
607
- type: string;
608
- name: string;
609
- description: string;
775
+ action: string;
776
+ chainId: number;
777
+ howToSteps: string[];
778
+ tvl: number;
779
+ apr: number;
780
+ dailyRewards: number;
781
+ lastCampaignCreatedAt: string;
782
+ } | null)[];
783
+ }) & ({
784
+ protocol?: {
785
+ url: string;
786
+ name: string;
787
+ description: string;
788
+ id: string;
789
+ tags: string[];
790
+ icon: string;
791
+ } | null | undefined;
792
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
793
+ depositUrl?: string | undefined;
794
+ explorerAddress?: string | undefined;
795
+ aprRecord?: {
796
+ timestamp: string | bigint;
797
+ cumulated: number;
798
+ breakdowns: {
799
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
800
+ id: string;
801
+ identifier: string;
802
+ value: number;
803
+ aprRecordId: string;
804
+ }[];
805
+ } | undefined;
806
+ tvlRecord?: {
807
+ total: number;
808
+ timestamp: string | bigint;
809
+ breakdowns: {
810
+ type: "TOKEN" | "PROTOCOL";
811
+ id: string;
812
+ identifier: string;
813
+ value: number;
814
+ tvlRecordId: string;
815
+ }[];
816
+ } | undefined;
817
+ rewardsRecord?: {
818
+ total: number;
819
+ id: string;
820
+ timestamp: string | bigint;
821
+ breakdowns: {
822
+ token: {
823
+ price?: number | null | undefined;
824
+ symbol: string;
825
+ name: string | null;
826
+ id: string;
827
+ icon: string;
828
+ address: string;
829
+ chainId: number;
830
+ decimals: number;
831
+ verified: boolean;
832
+ isTest: boolean;
833
+ isPoint: boolean;
834
+ isPreTGE: boolean;
835
+ };
610
836
  id: string;
611
- tags: string[];
612
- identifier: string;
613
- action: import("@db/api").$Enums.OpportunityAction;
614
- manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
615
- chainId: number;
616
- howToSteps: string[];
617
- depositUrl: string | null;
618
- explorerAddress: string | null;
619
- mainProtocolId: string | null;
620
- tvl: number;
621
- apr: number;
622
- dailyRewards: number;
623
- lastCampaignCreatedAt: Date;
624
- };
625
- type: string;
626
- id: string;
627
- subType: number | null;
628
- computeChainId: number;
629
- distributionChainId: number;
630
- campaignId: string;
631
- distributionType: import("@db/api").$Enums.DistributionType;
632
- rewardTokenId: string;
633
- amount: string;
634
- opportunityId: string;
635
- }[] | undefined;
636
- id: string;
637
- depositUrl: string | undefined;
638
- explorerAddress: string | undefined;
639
- lastCampaignCreatedAt: string;
640
- tokens: ({
837
+ value: number;
838
+ campaignId: string;
839
+ amount: string | bigint;
840
+ dailyRewardsRecordId: string;
841
+ }[];
842
+ } | undefined;
843
+ status: string;
844
+ type: string;
845
+ name: string;
846
+ tokens: {
847
+ price?: number | null | undefined;
641
848
  symbol: string;
642
849
  name: string | null;
643
850
  id: string;
@@ -649,35 +856,121 @@ declare const app: Elysia<"", false, {
649
856
  isTest: boolean;
650
857
  isPoint: boolean;
651
858
  isPreTGE: boolean;
652
- isNative: boolean;
653
- } & {
654
- price?: number | null | undefined;
655
- })[];
859
+ }[];
860
+ description: string;
861
+ id: string;
862
+ tags: string[];
863
+ identifier: string;
656
864
  chain: {
657
865
  name: string;
658
866
  id: number;
659
867
  icon: string;
660
868
  };
661
- protocol: {
662
- url: string;
663
- name: string;
664
- description: string;
665
- id: string;
666
- tags: string[];
667
- icon: string;
668
- } | undefined;
669
- status: import("@db/api").$Enums.Status;
670
- type: string;
671
- name: string;
672
- description: string;
673
- tags: string[];
674
- identifier: string;
675
- action: import("@db/api").$Enums.OpportunityAction;
869
+ action: string;
676
870
  chainId: number;
677
871
  howToSteps: string[];
678
872
  tvl: number;
873
+ apr: number;
679
874
  dailyRewards: number;
680
- }[];
875
+ lastCampaignCreatedAt: string;
876
+ } | null)[];
877
+ } | {
878
+ 200: {
879
+ 200: ({
880
+ protocol?: {
881
+ url: string;
882
+ name: string;
883
+ description: string;
884
+ id: string;
885
+ tags: string[];
886
+ icon: string;
887
+ } | null | undefined;
888
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
889
+ depositUrl?: string | undefined;
890
+ explorerAddress?: string | undefined;
891
+ aprRecord?: {
892
+ timestamp: string | bigint;
893
+ cumulated: number;
894
+ breakdowns: {
895
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
896
+ id: string;
897
+ identifier: string;
898
+ value: number;
899
+ aprRecordId: string;
900
+ }[];
901
+ } | undefined;
902
+ tvlRecord?: {
903
+ total: number;
904
+ timestamp: string | bigint;
905
+ breakdowns: {
906
+ type: "TOKEN" | "PROTOCOL";
907
+ id: string;
908
+ identifier: string;
909
+ value: number;
910
+ tvlRecordId: string;
911
+ }[];
912
+ } | undefined;
913
+ rewardsRecord?: {
914
+ total: number;
915
+ id: string;
916
+ timestamp: string | bigint;
917
+ breakdowns: {
918
+ token: {
919
+ price?: number | null | undefined;
920
+ symbol: string;
921
+ name: string | null;
922
+ id: string;
923
+ icon: string;
924
+ address: string;
925
+ chainId: number;
926
+ decimals: number;
927
+ verified: boolean;
928
+ isTest: boolean;
929
+ isPoint: boolean;
930
+ isPreTGE: boolean;
931
+ };
932
+ id: string;
933
+ value: number;
934
+ campaignId: string;
935
+ amount: string | bigint;
936
+ dailyRewardsRecordId: string;
937
+ }[];
938
+ } | undefined;
939
+ status: string;
940
+ type: string;
941
+ name: string;
942
+ tokens: {
943
+ price?: number | null | undefined;
944
+ symbol: string;
945
+ name: string | null;
946
+ id: string;
947
+ icon: string;
948
+ address: string;
949
+ chainId: number;
950
+ decimals: number;
951
+ verified: boolean;
952
+ isTest: boolean;
953
+ isPoint: boolean;
954
+ isPreTGE: boolean;
955
+ }[];
956
+ description: string;
957
+ id: string;
958
+ tags: string[];
959
+ identifier: string;
960
+ chain: {
961
+ name: string;
962
+ id: number;
963
+ icon: string;
964
+ };
965
+ action: string;
966
+ chainId: number;
967
+ howToSteps: string[];
968
+ tvl: number;
969
+ apr: number;
970
+ dailyRewards: number;
971
+ lastCampaignCreatedAt: string;
972
+ } | null)[];
973
+ };
681
974
  };
682
975
  };
683
976
  };
@@ -718,6 +1011,93 @@ declare const app: Elysia<"", false, {
718
1011
  };
719
1012
  };
720
1013
  };
1014
+ } & {
1015
+ opportunities: {
1016
+ bins: {
1017
+ apr: {
1018
+ get: {
1019
+ body: unknown;
1020
+ params: {};
1021
+ query: {
1022
+ status?: string | undefined;
1023
+ search?: string | undefined;
1024
+ sort?: string | undefined;
1025
+ type?: string | undefined;
1026
+ name?: string | undefined;
1027
+ tokens?: string | undefined;
1028
+ items?: number | undefined;
1029
+ tags?: string | undefined;
1030
+ identifier?: string | undefined;
1031
+ page?: number | undefined;
1032
+ action?: string | undefined;
1033
+ campaignId?: string | undefined;
1034
+ creatorAddress?: string | undefined;
1035
+ chainId?: string | undefined;
1036
+ mainProtocolId?: string | undefined;
1037
+ campaigns?: boolean | undefined;
1038
+ point?: boolean | undefined;
1039
+ rewardTokenSymbol?: string | undefined;
1040
+ order?: string | undefined;
1041
+ test?: boolean | undefined;
1042
+ minimumTvl?: number | undefined;
1043
+ };
1044
+ headers: unknown;
1045
+ response: {
1046
+ 200: {
1047
+ min: number;
1048
+ max: number;
1049
+ overThreshold: number;
1050
+ binWidth: number;
1051
+ bins: any[];
1052
+ };
1053
+ };
1054
+ };
1055
+ };
1056
+ };
1057
+ };
1058
+ } & {
1059
+ opportunities: {
1060
+ bins: {
1061
+ tvl: {
1062
+ get: {
1063
+ body: unknown;
1064
+ params: {};
1065
+ query: {
1066
+ status?: string | undefined;
1067
+ search?: string | undefined;
1068
+ sort?: string | undefined;
1069
+ type?: string | undefined;
1070
+ name?: string | undefined;
1071
+ tokens?: string | undefined;
1072
+ items?: number | undefined;
1073
+ tags?: string | undefined;
1074
+ identifier?: string | undefined;
1075
+ page?: number | undefined;
1076
+ action?: string | undefined;
1077
+ campaignId?: string | undefined;
1078
+ creatorAddress?: string | undefined;
1079
+ chainId?: string | undefined;
1080
+ mainProtocolId?: string | undefined;
1081
+ campaigns?: boolean | undefined;
1082
+ point?: boolean | undefined;
1083
+ rewardTokenSymbol?: string | undefined;
1084
+ order?: string | undefined;
1085
+ test?: boolean | undefined;
1086
+ minimumTvl?: number | undefined;
1087
+ };
1088
+ headers: unknown;
1089
+ response: {
1090
+ 200: {
1091
+ min: number;
1092
+ max: number;
1093
+ binWidth: number;
1094
+ bins: any[];
1095
+ };
1096
+ };
1097
+ };
1098
+ };
1099
+ };
1100
+ };
721
1101
  } & {
722
1102
  opportunities: {
723
1103
  ":id": {
@@ -1771,6 +2151,31 @@ declare const app: Elysia<"", false, {
1771
2151
  };
1772
2152
  };
1773
2153
  };
2154
+ } & {
2155
+ ":id": {
2156
+ timeseries: {
2157
+ get: {
2158
+ body: unknown;
2159
+ params: {
2160
+ id: string;
2161
+ };
2162
+ query: unknown;
2163
+ headers: unknown;
2164
+ response: {
2165
+ 200: {
2166
+ tvlRecords: {
2167
+ total: number;
2168
+ timestamp: bigint;
2169
+ }[];
2170
+ aprRecords: {
2171
+ timestamp: bigint;
2172
+ cumulated: number;
2173
+ }[];
2174
+ };
2175
+ };
2176
+ };
2177
+ };
2178
+ };
1774
2179
  } & {
1775
2180
  "campaigns-to-process": {
1776
2181
  index: {