@merkl/api 0.16.43 → 0.16.45

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.
@@ -176,6 +176,58 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
176
176
  amount: bigint;
177
177
  }[];
178
178
  };
179
+ campaigns: {
180
+ params: any;
181
+ chain: {
182
+ name: string;
183
+ id: number;
184
+ icon: string;
185
+ };
186
+ rewardToken: {
187
+ symbol: string;
188
+ name: string | null;
189
+ id: string;
190
+ icon: string;
191
+ chainId: number;
192
+ address: string;
193
+ decimals: number;
194
+ verified: boolean;
195
+ isTest: boolean;
196
+ } & {
197
+ price?: number | null | undefined;
198
+ };
199
+ distributionChain: {
200
+ name: string;
201
+ id: number;
202
+ icon: string;
203
+ } | undefined;
204
+ campaignStatus: {
205
+ error: string;
206
+ details: import("database/api/.generated/runtime/library").JsonValue;
207
+ status: import("../../../../database/api/.generated").$Enums.RunStatus;
208
+ campaignId: string;
209
+ computedUntil: bigint;
210
+ processingStarted: bigint;
211
+ };
212
+ creatorAddress: string;
213
+ Creator: {
214
+ tags: string[];
215
+ address: string;
216
+ creatorId: string | null;
217
+ };
218
+ type: string;
219
+ id: string;
220
+ subType: number | null;
221
+ startTimestamp: bigint;
222
+ endTimestamp: bigint;
223
+ computeChainId: number;
224
+ distributionChainId: number;
225
+ campaignId: string;
226
+ distributionType: import("../../../../database/api/.generated").$Enums.DistributionType;
227
+ rewardTokenId: string;
228
+ amount: string;
229
+ opportunityId: string;
230
+ }[] | undefined;
179
231
  id: string;
180
232
  depositUrl: string | undefined;
181
233
  tokens: ({
@@ -387,57 +439,6 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
387
439
  };
388
440
  headers: unknown;
389
441
  response: {
390
- 200: {
391
- message: string;
392
- name: string;
393
- };
394
- readonly 404: {
395
- message: string;
396
- name: string;
397
- };
398
- readonly 500: {
399
- code: string;
400
- info: string;
401
- httpCode: number;
402
- };
403
- } | {
404
- 200: {
405
- code: string;
406
- info: string;
407
- httpCode: number;
408
- };
409
- readonly 404: {
410
- message: string;
411
- name: string;
412
- };
413
- readonly 500: {
414
- code: string;
415
- info: string;
416
- httpCode: number;
417
- };
418
- } | {
419
- 200: never;
420
- 404: {
421
- message: string;
422
- name: string;
423
- };
424
- readonly 500: {
425
- code: string;
426
- info: string;
427
- httpCode: number;
428
- };
429
- } | {
430
- 200: never;
431
- 500: {
432
- code: string;
433
- info: string;
434
- httpCode: number;
435
- };
436
- readonly 404: {
437
- message: string;
438
- name: string;
439
- };
440
- } | {
441
442
  200: {
442
443
  protocol?: {
443
444
  name: string;
@@ -577,584 +578,6 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
577
578
  info: string;
578
579
  httpCode: number;
579
580
  };
580
- } | {
581
- 200: never;
582
- readonly 404: {
583
- message: string;
584
- name: string;
585
- };
586
- readonly 500: {
587
- code: string;
588
- info: string;
589
- httpCode: number;
590
- };
591
- } | {
592
- 200: (Response | {
593
- protocol?: {
594
- name: string;
595
- url: string;
596
- description: string;
597
- id: string;
598
- tags: string[];
599
- icon: string;
600
- } | null | undefined;
601
- depositUrl?: string | undefined;
602
- aprRecord?: {
603
- timestamp: string | bigint;
604
- cumulated: number;
605
- breakdowns: {
606
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
607
- id: number;
608
- identifier: string;
609
- value: number;
610
- aprRecordId: string;
611
- }[];
612
- } | undefined;
613
- tvlRecord?: {
614
- total: number;
615
- timestamp: string | bigint;
616
- breakdowns: {
617
- type: "TOKEN" | "PROTOCOL";
618
- id: number;
619
- identifier: string;
620
- value: number;
621
- tvlRecordId: string;
622
- }[];
623
- } | undefined;
624
- rewardsRecord?: {
625
- total: number;
626
- id: string;
627
- timestamp: string | bigint;
628
- breakdowns: {
629
- token: {
630
- price?: number | null | undefined;
631
- symbol: string;
632
- name: string | null;
633
- id: string;
634
- icon: string;
635
- chainId: number;
636
- address: string;
637
- decimals: number;
638
- verified: boolean;
639
- isTest: boolean;
640
- };
641
- id: number;
642
- value: number;
643
- campaignId: string;
644
- amount: string | bigint;
645
- dailyRewardsRecordId: string;
646
- }[];
647
- } | undefined;
648
- name: string;
649
- type: string;
650
- tokens: {
651
- price?: number | null | undefined;
652
- symbol: string;
653
- name: string | null;
654
- id: string;
655
- icon: string;
656
- chainId: number;
657
- address: string;
658
- decimals: number;
659
- verified: boolean;
660
- isTest: boolean;
661
- }[];
662
- id: string;
663
- status: string;
664
- tags: string[];
665
- identifier: string;
666
- chain: {
667
- name: string;
668
- id: number;
669
- icon: string;
670
- };
671
- chainId: number;
672
- action: string;
673
- tvl: number;
674
- apr: number;
675
- dailyRewards: number;
676
- campaigns: {
677
- campaignStatus?: {
678
- error?: string | undefined;
679
- details?: any;
680
- status: string;
681
- campaignId: string;
682
- computedUntil: string | bigint;
683
- processingStarted: string | bigint;
684
- } | undefined;
685
- distributionChain?: {
686
- name: string;
687
- id: number;
688
- icon: string;
689
- } | undefined;
690
- type: string;
691
- id: string;
692
- params: any;
693
- subType: number | null;
694
- chain: {
695
- name: string;
696
- id: number;
697
- icon: string;
698
- };
699
- startTimestamp: string | bigint;
700
- endTimestamp: string | bigint;
701
- computeChainId: number;
702
- distributionChainId: number;
703
- campaignId: string;
704
- rewardTokenId: string;
705
- amount: string;
706
- opportunityId: string;
707
- creatorAddress: string;
708
- rewardToken: {
709
- price?: number | null | undefined;
710
- symbol: string;
711
- name: string | null;
712
- id: string;
713
- icon: string;
714
- chainId: number;
715
- address: string;
716
- decimals: number;
717
- verified: boolean;
718
- isTest: boolean;
719
- };
720
- }[];
721
- }[] | {
722
- message: string;
723
- name: string;
724
- } | {
725
- code: string;
726
- info: string;
727
- httpCode: number;
728
- } | {
729
- readonly 200: {
730
- protocol?: {
731
- name: string;
732
- url: string;
733
- description: string;
734
- id: string;
735
- tags: string[];
736
- icon: string;
737
- } | null | undefined;
738
- depositUrl?: string | undefined;
739
- aprRecord?: {
740
- timestamp: string | bigint;
741
- cumulated: number;
742
- breakdowns: {
743
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
744
- id: number;
745
- identifier: string;
746
- value: number;
747
- aprRecordId: string;
748
- }[];
749
- } | undefined;
750
- tvlRecord?: {
751
- total: number;
752
- timestamp: string | bigint;
753
- breakdowns: {
754
- type: "TOKEN" | "PROTOCOL";
755
- id: number;
756
- identifier: string;
757
- value: number;
758
- tvlRecordId: string;
759
- }[];
760
- } | undefined;
761
- rewardsRecord?: {
762
- total: number;
763
- id: string;
764
- timestamp: string | bigint;
765
- breakdowns: {
766
- token: {
767
- price?: number | null | undefined;
768
- symbol: string;
769
- name: string | null;
770
- id: string;
771
- icon: string;
772
- chainId: number;
773
- address: string;
774
- decimals: number;
775
- verified: boolean;
776
- isTest: boolean;
777
- };
778
- id: number;
779
- value: number;
780
- campaignId: string;
781
- amount: string | bigint;
782
- dailyRewardsRecordId: string;
783
- }[];
784
- } | undefined;
785
- name: string;
786
- type: string;
787
- tokens: {
788
- price?: number | null | undefined;
789
- symbol: string;
790
- name: string | null;
791
- id: string;
792
- icon: string;
793
- chainId: number;
794
- address: string;
795
- decimals: number;
796
- verified: boolean;
797
- isTest: boolean;
798
- }[];
799
- id: string;
800
- status: string;
801
- tags: string[];
802
- identifier: string;
803
- chain: {
804
- name: string;
805
- id: number;
806
- icon: string;
807
- };
808
- chainId: number;
809
- action: string;
810
- tvl: number;
811
- apr: number;
812
- dailyRewards: number;
813
- campaigns: {
814
- campaignStatus?: {
815
- error?: string | undefined;
816
- details?: any;
817
- status: string;
818
- campaignId: string;
819
- computedUntil: string | bigint;
820
- processingStarted: string | bigint;
821
- } | undefined;
822
- distributionChain?: {
823
- name: string;
824
- id: number;
825
- icon: string;
826
- } | undefined;
827
- type: string;
828
- id: string;
829
- params: any;
830
- subType: number | null;
831
- chain: {
832
- name: string;
833
- id: number;
834
- icon: string;
835
- };
836
- startTimestamp: string | bigint;
837
- endTimestamp: string | bigint;
838
- computeChainId: number;
839
- distributionChainId: number;
840
- campaignId: string;
841
- rewardTokenId: string;
842
- amount: string;
843
- opportunityId: string;
844
- creatorAddress: string;
845
- rewardToken: {
846
- price?: number | null | undefined;
847
- symbol: string;
848
- name: string | null;
849
- id: string;
850
- icon: string;
851
- chainId: number;
852
- address: string;
853
- decimals: number;
854
- verified: boolean;
855
- isTest: boolean;
856
- };
857
- }[];
858
- }[];
859
- readonly 404: {
860
- message: string;
861
- name: string;
862
- };
863
- readonly 500: {
864
- code: string;
865
- info: string;
866
- httpCode: number;
867
- };
868
- }) & {
869
- protocol?: {
870
- name: string;
871
- url: string;
872
- description: string;
873
- id: string;
874
- tags: string[];
875
- icon: string;
876
- } | null | undefined;
877
- depositUrl?: string | undefined;
878
- aprRecord?: {
879
- timestamp: string | bigint;
880
- cumulated: number;
881
- breakdowns: {
882
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
883
- id: number;
884
- identifier: string;
885
- value: number;
886
- aprRecordId: string;
887
- }[];
888
- } | undefined;
889
- tvlRecord?: {
890
- total: number;
891
- timestamp: string | bigint;
892
- breakdowns: {
893
- type: "TOKEN" | "PROTOCOL";
894
- id: number;
895
- identifier: string;
896
- value: number;
897
- tvlRecordId: string;
898
- }[];
899
- } | undefined;
900
- rewardsRecord?: {
901
- total: number;
902
- id: string;
903
- timestamp: string | bigint;
904
- breakdowns: {
905
- token: {
906
- price?: number | null | undefined;
907
- symbol: string;
908
- name: string | null;
909
- id: string;
910
- icon: string;
911
- chainId: number;
912
- address: string;
913
- decimals: number;
914
- verified: boolean;
915
- isTest: boolean;
916
- };
917
- id: number;
918
- value: number;
919
- campaignId: string;
920
- amount: string | bigint;
921
- dailyRewardsRecordId: string;
922
- }[];
923
- } | undefined;
924
- name: string;
925
- type: string;
926
- tokens: {
927
- price?: number | null | undefined;
928
- symbol: string;
929
- name: string | null;
930
- id: string;
931
- icon: string;
932
- chainId: number;
933
- address: string;
934
- decimals: number;
935
- verified: boolean;
936
- isTest: boolean;
937
- }[];
938
- id: string;
939
- status: string;
940
- tags: string[];
941
- identifier: string;
942
- chain: {
943
- name: string;
944
- id: number;
945
- icon: string;
946
- };
947
- chainId: number;
948
- action: string;
949
- tvl: number;
950
- apr: number;
951
- dailyRewards: number;
952
- campaigns: {
953
- campaignStatus?: {
954
- error?: string | undefined;
955
- details?: any;
956
- status: string;
957
- campaignId: string;
958
- computedUntil: string | bigint;
959
- processingStarted: string | bigint;
960
- } | undefined;
961
- distributionChain?: {
962
- name: string;
963
- id: number;
964
- icon: string;
965
- } | undefined;
966
- type: string;
967
- id: string;
968
- params: any;
969
- subType: number | null;
970
- chain: {
971
- name: string;
972
- id: number;
973
- icon: string;
974
- };
975
- startTimestamp: string | bigint;
976
- endTimestamp: string | bigint;
977
- computeChainId: number;
978
- distributionChainId: number;
979
- campaignId: string;
980
- rewardTokenId: string;
981
- amount: string;
982
- opportunityId: string;
983
- creatorAddress: string;
984
- rewardToken: {
985
- price?: number | null | undefined;
986
- symbol: string;
987
- name: string | null;
988
- id: string;
989
- icon: string;
990
- chainId: number;
991
- address: string;
992
- decimals: number;
993
- verified: boolean;
994
- isTest: boolean;
995
- };
996
- }[];
997
- }[];
998
- 404: {
999
- message: string;
1000
- name: string;
1001
- };
1002
- 500: {
1003
- code: string;
1004
- info: string;
1005
- httpCode: number;
1006
- };
1007
- } | {
1008
- 200: {
1009
- readonly 200: {
1010
- protocol?: {
1011
- name: string;
1012
- url: string;
1013
- description: string;
1014
- id: string;
1015
- tags: string[];
1016
- icon: string;
1017
- } | null | undefined;
1018
- depositUrl?: string | undefined;
1019
- aprRecord?: {
1020
- timestamp: string | bigint;
1021
- cumulated: number;
1022
- breakdowns: {
1023
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
1024
- id: number;
1025
- identifier: string;
1026
- value: number;
1027
- aprRecordId: string;
1028
- }[];
1029
- } | undefined;
1030
- tvlRecord?: {
1031
- total: number;
1032
- timestamp: string | bigint;
1033
- breakdowns: {
1034
- type: "TOKEN" | "PROTOCOL";
1035
- id: number;
1036
- identifier: string;
1037
- value: number;
1038
- tvlRecordId: string;
1039
- }[];
1040
- } | undefined;
1041
- rewardsRecord?: {
1042
- total: number;
1043
- id: string;
1044
- timestamp: string | bigint;
1045
- breakdowns: {
1046
- token: {
1047
- price?: number | null | undefined;
1048
- symbol: string;
1049
- name: string | null;
1050
- id: string;
1051
- icon: string;
1052
- chainId: number;
1053
- address: string;
1054
- decimals: number;
1055
- verified: boolean;
1056
- isTest: boolean;
1057
- };
1058
- id: number;
1059
- value: number;
1060
- campaignId: string;
1061
- amount: string | bigint;
1062
- dailyRewardsRecordId: string;
1063
- }[];
1064
- } | undefined;
1065
- name: string;
1066
- type: string;
1067
- tokens: {
1068
- price?: number | null | undefined;
1069
- symbol: string;
1070
- name: string | null;
1071
- id: string;
1072
- icon: string;
1073
- chainId: number;
1074
- address: string;
1075
- decimals: number;
1076
- verified: boolean;
1077
- isTest: boolean;
1078
- }[];
1079
- id: string;
1080
- status: string;
1081
- tags: string[];
1082
- identifier: string;
1083
- chain: {
1084
- name: string;
1085
- id: number;
1086
- icon: string;
1087
- };
1088
- chainId: number;
1089
- action: string;
1090
- tvl: number;
1091
- apr: number;
1092
- dailyRewards: number;
1093
- campaigns: {
1094
- campaignStatus?: {
1095
- error?: string | undefined;
1096
- details?: any;
1097
- status: string;
1098
- campaignId: string;
1099
- computedUntil: string | bigint;
1100
- processingStarted: string | bigint;
1101
- } | undefined;
1102
- distributionChain?: {
1103
- name: string;
1104
- id: number;
1105
- icon: string;
1106
- } | undefined;
1107
- type: string;
1108
- id: string;
1109
- params: any;
1110
- subType: number | null;
1111
- chain: {
1112
- name: string;
1113
- id: number;
1114
- icon: string;
1115
- };
1116
- startTimestamp: string | bigint;
1117
- endTimestamp: string | bigint;
1118
- computeChainId: number;
1119
- distributionChainId: number;
1120
- campaignId: string;
1121
- rewardTokenId: string;
1122
- amount: string;
1123
- opportunityId: string;
1124
- creatorAddress: string;
1125
- rewardToken: {
1126
- price?: number | null | undefined;
1127
- symbol: string;
1128
- name: string | null;
1129
- id: string;
1130
- icon: string;
1131
- chainId: number;
1132
- address: string;
1133
- decimals: number;
1134
- verified: boolean;
1135
- isTest: boolean;
1136
- };
1137
- }[];
1138
- }[];
1139
- readonly 404: {
1140
- message: string;
1141
- name: string;
1142
- };
1143
- readonly 500: {
1144
- code: string;
1145
- info: string;
1146
- httpCode: number;
1147
- };
1148
- };
1149
- readonly 404: {
1150
- message: string;
1151
- name: string;
1152
- };
1153
- readonly 500: {
1154
- code: string;
1155
- info: string;
1156
- httpCode: number;
1157
- };
1158
581
  };
1159
582
  };
1160
583
  };