@merkl/api 0.16.42 → 0.16.44

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