@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.
@@ -321,6 +321,58 @@ declare const app: Elysia<"", false, {
321
321
  amount: bigint;
322
322
  }[];
323
323
  };
324
+ campaigns: {
325
+ params: any;
326
+ chain: {
327
+ name: string;
328
+ id: number;
329
+ icon: string;
330
+ };
331
+ rewardToken: {
332
+ symbol: string;
333
+ name: string | null;
334
+ id: string;
335
+ icon: string;
336
+ chainId: number;
337
+ address: string;
338
+ decimals: number;
339
+ verified: boolean;
340
+ isTest: boolean;
341
+ } & {
342
+ price?: number | null | undefined;
343
+ };
344
+ distributionChain: {
345
+ name: string;
346
+ id: number;
347
+ icon: string;
348
+ } | undefined;
349
+ campaignStatus: {
350
+ error: string;
351
+ details: import("database/api/.generated/runtime/library").JsonValue;
352
+ status: import("../database/api/.generated").$Enums.RunStatus;
353
+ campaignId: string;
354
+ computedUntil: bigint;
355
+ processingStarted: bigint;
356
+ };
357
+ creatorAddress: string;
358
+ Creator: {
359
+ tags: string[];
360
+ address: string;
361
+ creatorId: string | null;
362
+ };
363
+ type: string;
364
+ id: string;
365
+ subType: number | null;
366
+ startTimestamp: bigint;
367
+ endTimestamp: bigint;
368
+ computeChainId: number;
369
+ distributionChainId: number;
370
+ campaignId: string;
371
+ distributionType: import("../database/api/.generated").$Enums.DistributionType;
372
+ rewardTokenId: string;
373
+ amount: string;
374
+ opportunityId: string;
375
+ }[] | undefined;
324
376
  id: string;
325
377
  depositUrl: string | undefined;
326
378
  tokens: ({
@@ -532,57 +584,6 @@ declare const app: Elysia<"", false, {
532
584
  };
533
585
  headers: unknown;
534
586
  response: {
535
- 200: {
536
- message: string;
537
- name: string;
538
- };
539
- readonly 404: {
540
- message: string;
541
- name: string;
542
- };
543
- readonly 500: {
544
- code: string;
545
- info: string;
546
- httpCode: number;
547
- };
548
- } | {
549
- 200: {
550
- code: string;
551
- info: string;
552
- httpCode: number;
553
- };
554
- readonly 404: {
555
- message: string;
556
- name: string;
557
- };
558
- readonly 500: {
559
- code: string;
560
- info: string;
561
- httpCode: number;
562
- };
563
- } | {
564
- 200: never;
565
- 404: {
566
- message: string;
567
- name: string;
568
- };
569
- readonly 500: {
570
- code: string;
571
- info: string;
572
- httpCode: number;
573
- };
574
- } | {
575
- 200: never;
576
- 500: {
577
- code: string;
578
- info: string;
579
- httpCode: number;
580
- };
581
- readonly 404: {
582
- message: string;
583
- name: string;
584
- };
585
- } | {
586
587
  200: {
587
588
  protocol?: {
588
589
  name: string;
@@ -722,584 +723,6 @@ declare const app: Elysia<"", false, {
722
723
  info: string;
723
724
  httpCode: number;
724
725
  };
725
- } | {
726
- 200: never;
727
- readonly 404: {
728
- message: string;
729
- name: string;
730
- };
731
- readonly 500: {
732
- code: string;
733
- info: string;
734
- httpCode: number;
735
- };
736
- } | {
737
- 200: (Response | {
738
- protocol?: {
739
- name: string;
740
- url: string;
741
- description: string;
742
- id: string;
743
- tags: string[];
744
- icon: string;
745
- } | null | undefined;
746
- depositUrl?: string | undefined;
747
- aprRecord?: {
748
- timestamp: string | bigint;
749
- cumulated: number;
750
- breakdowns: {
751
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
752
- id: number;
753
- identifier: string;
754
- value: number;
755
- aprRecordId: string;
756
- }[];
757
- } | undefined;
758
- tvlRecord?: {
759
- total: number;
760
- timestamp: string | bigint;
761
- breakdowns: {
762
- type: "TOKEN" | "PROTOCOL";
763
- id: number;
764
- identifier: string;
765
- value: number;
766
- tvlRecordId: string;
767
- }[];
768
- } | undefined;
769
- rewardsRecord?: {
770
- total: number;
771
- id: string;
772
- timestamp: string | bigint;
773
- breakdowns: {
774
- token: {
775
- price?: number | null | undefined;
776
- symbol: string;
777
- name: string | null;
778
- id: string;
779
- icon: string;
780
- chainId: number;
781
- address: string;
782
- decimals: number;
783
- verified: boolean;
784
- isTest: boolean;
785
- };
786
- id: number;
787
- value: number;
788
- campaignId: string;
789
- amount: string | bigint;
790
- dailyRewardsRecordId: string;
791
- }[];
792
- } | undefined;
793
- name: string;
794
- type: string;
795
- tokens: {
796
- price?: number | null | undefined;
797
- symbol: string;
798
- name: string | null;
799
- id: string;
800
- icon: string;
801
- chainId: number;
802
- address: string;
803
- decimals: number;
804
- verified: boolean;
805
- isTest: boolean;
806
- }[];
807
- id: string;
808
- status: string;
809
- tags: string[];
810
- identifier: string;
811
- chain: {
812
- name: string;
813
- id: number;
814
- icon: string;
815
- };
816
- chainId: number;
817
- action: string;
818
- tvl: number;
819
- apr: number;
820
- dailyRewards: number;
821
- campaigns: {
822
- campaignStatus?: {
823
- error?: string | undefined;
824
- details?: any;
825
- status: string;
826
- campaignId: string;
827
- computedUntil: string | bigint;
828
- processingStarted: string | bigint;
829
- } | undefined;
830
- distributionChain?: {
831
- name: string;
832
- id: number;
833
- icon: string;
834
- } | undefined;
835
- type: string;
836
- id: string;
837
- params: any;
838
- subType: number | null;
839
- chain: {
840
- name: string;
841
- id: number;
842
- icon: string;
843
- };
844
- startTimestamp: string | bigint;
845
- endTimestamp: string | bigint;
846
- computeChainId: number;
847
- distributionChainId: number;
848
- campaignId: string;
849
- rewardTokenId: string;
850
- amount: string;
851
- opportunityId: string;
852
- creatorAddress: string;
853
- rewardToken: {
854
- price?: number | null | undefined;
855
- symbol: string;
856
- name: string | null;
857
- id: string;
858
- icon: string;
859
- chainId: number;
860
- address: string;
861
- decimals: number;
862
- verified: boolean;
863
- isTest: boolean;
864
- };
865
- }[];
866
- }[] | {
867
- message: string;
868
- name: string;
869
- } | {
870
- code: string;
871
- info: string;
872
- httpCode: number;
873
- } | {
874
- readonly 200: {
875
- protocol?: {
876
- name: string;
877
- url: string;
878
- description: string;
879
- id: string;
880
- tags: string[];
881
- icon: string;
882
- } | null | undefined;
883
- depositUrl?: string | undefined;
884
- aprRecord?: {
885
- timestamp: string | bigint;
886
- cumulated: number;
887
- breakdowns: {
888
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
889
- id: number;
890
- identifier: string;
891
- value: number;
892
- aprRecordId: string;
893
- }[];
894
- } | undefined;
895
- tvlRecord?: {
896
- total: number;
897
- timestamp: string | bigint;
898
- breakdowns: {
899
- type: "TOKEN" | "PROTOCOL";
900
- id: number;
901
- identifier: string;
902
- value: number;
903
- tvlRecordId: string;
904
- }[];
905
- } | undefined;
906
- rewardsRecord?: {
907
- total: number;
908
- id: string;
909
- timestamp: string | bigint;
910
- breakdowns: {
911
- token: {
912
- price?: number | null | undefined;
913
- symbol: string;
914
- name: string | null;
915
- id: string;
916
- icon: string;
917
- chainId: number;
918
- address: string;
919
- decimals: number;
920
- verified: boolean;
921
- isTest: boolean;
922
- };
923
- id: number;
924
- value: number;
925
- campaignId: string;
926
- amount: string | bigint;
927
- dailyRewardsRecordId: string;
928
- }[];
929
- } | undefined;
930
- name: string;
931
- type: string;
932
- tokens: {
933
- price?: number | null | undefined;
934
- symbol: string;
935
- name: string | null;
936
- id: string;
937
- icon: string;
938
- chainId: number;
939
- address: string;
940
- decimals: number;
941
- verified: boolean;
942
- isTest: boolean;
943
- }[];
944
- id: string;
945
- status: string;
946
- tags: string[];
947
- identifier: string;
948
- chain: {
949
- name: string;
950
- id: number;
951
- icon: string;
952
- };
953
- chainId: number;
954
- action: string;
955
- tvl: number;
956
- apr: number;
957
- dailyRewards: number;
958
- campaigns: {
959
- campaignStatus?: {
960
- error?: string | undefined;
961
- details?: any;
962
- status: string;
963
- campaignId: string;
964
- computedUntil: string | bigint;
965
- processingStarted: string | bigint;
966
- } | undefined;
967
- distributionChain?: {
968
- name: string;
969
- id: number;
970
- icon: string;
971
- } | undefined;
972
- type: string;
973
- id: string;
974
- params: any;
975
- subType: number | null;
976
- chain: {
977
- name: string;
978
- id: number;
979
- icon: string;
980
- };
981
- startTimestamp: string | bigint;
982
- endTimestamp: string | bigint;
983
- computeChainId: number;
984
- distributionChainId: number;
985
- campaignId: string;
986
- rewardTokenId: string;
987
- amount: string;
988
- opportunityId: string;
989
- creatorAddress: string;
990
- rewardToken: {
991
- price?: number | null | undefined;
992
- symbol: string;
993
- name: string | null;
994
- id: string;
995
- icon: string;
996
- chainId: number;
997
- address: string;
998
- decimals: number;
999
- verified: boolean;
1000
- isTest: boolean;
1001
- };
1002
- }[];
1003
- }[];
1004
- readonly 404: {
1005
- message: string;
1006
- name: string;
1007
- };
1008
- readonly 500: {
1009
- code: string;
1010
- info: string;
1011
- httpCode: number;
1012
- };
1013
- }) & {
1014
- protocol?: {
1015
- name: string;
1016
- url: string;
1017
- description: string;
1018
- id: string;
1019
- tags: string[];
1020
- icon: string;
1021
- } | null | undefined;
1022
- depositUrl?: string | undefined;
1023
- aprRecord?: {
1024
- timestamp: string | bigint;
1025
- cumulated: number;
1026
- breakdowns: {
1027
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
1028
- id: number;
1029
- identifier: string;
1030
- value: number;
1031
- aprRecordId: string;
1032
- }[];
1033
- } | undefined;
1034
- tvlRecord?: {
1035
- total: number;
1036
- timestamp: string | bigint;
1037
- breakdowns: {
1038
- type: "TOKEN" | "PROTOCOL";
1039
- id: number;
1040
- identifier: string;
1041
- value: number;
1042
- tvlRecordId: string;
1043
- }[];
1044
- } | undefined;
1045
- rewardsRecord?: {
1046
- total: number;
1047
- id: string;
1048
- timestamp: string | bigint;
1049
- breakdowns: {
1050
- token: {
1051
- price?: number | null | undefined;
1052
- symbol: string;
1053
- name: string | null;
1054
- id: string;
1055
- icon: string;
1056
- chainId: number;
1057
- address: string;
1058
- decimals: number;
1059
- verified: boolean;
1060
- isTest: boolean;
1061
- };
1062
- id: number;
1063
- value: number;
1064
- campaignId: string;
1065
- amount: string | bigint;
1066
- dailyRewardsRecordId: string;
1067
- }[];
1068
- } | undefined;
1069
- name: string;
1070
- type: string;
1071
- tokens: {
1072
- price?: number | null | undefined;
1073
- symbol: string;
1074
- name: string | null;
1075
- id: string;
1076
- icon: string;
1077
- chainId: number;
1078
- address: string;
1079
- decimals: number;
1080
- verified: boolean;
1081
- isTest: boolean;
1082
- }[];
1083
- id: string;
1084
- status: string;
1085
- tags: string[];
1086
- identifier: string;
1087
- chain: {
1088
- name: string;
1089
- id: number;
1090
- icon: string;
1091
- };
1092
- chainId: number;
1093
- action: string;
1094
- tvl: number;
1095
- apr: number;
1096
- dailyRewards: number;
1097
- campaigns: {
1098
- campaignStatus?: {
1099
- error?: string | undefined;
1100
- details?: any;
1101
- status: string;
1102
- campaignId: string;
1103
- computedUntil: string | bigint;
1104
- processingStarted: string | bigint;
1105
- } | undefined;
1106
- distributionChain?: {
1107
- name: string;
1108
- id: number;
1109
- icon: string;
1110
- } | undefined;
1111
- type: string;
1112
- id: string;
1113
- params: any;
1114
- subType: number | null;
1115
- chain: {
1116
- name: string;
1117
- id: number;
1118
- icon: string;
1119
- };
1120
- startTimestamp: string | bigint;
1121
- endTimestamp: string | bigint;
1122
- computeChainId: number;
1123
- distributionChainId: number;
1124
- campaignId: string;
1125
- rewardTokenId: string;
1126
- amount: string;
1127
- opportunityId: string;
1128
- creatorAddress: string;
1129
- rewardToken: {
1130
- price?: number | null | undefined;
1131
- symbol: string;
1132
- name: string | null;
1133
- id: string;
1134
- icon: string;
1135
- chainId: number;
1136
- address: string;
1137
- decimals: number;
1138
- verified: boolean;
1139
- isTest: boolean;
1140
- };
1141
- }[];
1142
- }[];
1143
- 404: {
1144
- message: string;
1145
- name: string;
1146
- };
1147
- 500: {
1148
- code: string;
1149
- info: string;
1150
- httpCode: number;
1151
- };
1152
- } | {
1153
- 200: {
1154
- readonly 200: {
1155
- protocol?: {
1156
- name: string;
1157
- url: string;
1158
- description: string;
1159
- id: string;
1160
- tags: string[];
1161
- icon: string;
1162
- } | null | undefined;
1163
- depositUrl?: string | undefined;
1164
- aprRecord?: {
1165
- timestamp: string | bigint;
1166
- cumulated: number;
1167
- breakdowns: {
1168
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
1169
- id: number;
1170
- identifier: string;
1171
- value: number;
1172
- aprRecordId: string;
1173
- }[];
1174
- } | undefined;
1175
- tvlRecord?: {
1176
- total: number;
1177
- timestamp: string | bigint;
1178
- breakdowns: {
1179
- type: "TOKEN" | "PROTOCOL";
1180
- id: number;
1181
- identifier: string;
1182
- value: number;
1183
- tvlRecordId: string;
1184
- }[];
1185
- } | undefined;
1186
- rewardsRecord?: {
1187
- total: number;
1188
- id: string;
1189
- timestamp: string | bigint;
1190
- breakdowns: {
1191
- token: {
1192
- price?: number | null | undefined;
1193
- symbol: string;
1194
- name: string | null;
1195
- id: string;
1196
- icon: string;
1197
- chainId: number;
1198
- address: string;
1199
- decimals: number;
1200
- verified: boolean;
1201
- isTest: boolean;
1202
- };
1203
- id: number;
1204
- value: number;
1205
- campaignId: string;
1206
- amount: string | bigint;
1207
- dailyRewardsRecordId: string;
1208
- }[];
1209
- } | undefined;
1210
- name: string;
1211
- type: string;
1212
- tokens: {
1213
- price?: number | null | undefined;
1214
- symbol: string;
1215
- name: string | null;
1216
- id: string;
1217
- icon: string;
1218
- chainId: number;
1219
- address: string;
1220
- decimals: number;
1221
- verified: boolean;
1222
- isTest: boolean;
1223
- }[];
1224
- id: string;
1225
- status: string;
1226
- tags: string[];
1227
- identifier: string;
1228
- chain: {
1229
- name: string;
1230
- id: number;
1231
- icon: string;
1232
- };
1233
- chainId: number;
1234
- action: string;
1235
- tvl: number;
1236
- apr: number;
1237
- dailyRewards: number;
1238
- campaigns: {
1239
- campaignStatus?: {
1240
- error?: string | undefined;
1241
- details?: any;
1242
- status: string;
1243
- campaignId: string;
1244
- computedUntil: string | bigint;
1245
- processingStarted: string | bigint;
1246
- } | undefined;
1247
- distributionChain?: {
1248
- name: string;
1249
- id: number;
1250
- icon: string;
1251
- } | undefined;
1252
- type: string;
1253
- id: string;
1254
- params: any;
1255
- subType: number | null;
1256
- chain: {
1257
- name: string;
1258
- id: number;
1259
- icon: string;
1260
- };
1261
- startTimestamp: string | bigint;
1262
- endTimestamp: string | bigint;
1263
- computeChainId: number;
1264
- distributionChainId: number;
1265
- campaignId: string;
1266
- rewardTokenId: string;
1267
- amount: string;
1268
- opportunityId: string;
1269
- creatorAddress: string;
1270
- rewardToken: {
1271
- price?: number | null | undefined;
1272
- symbol: string;
1273
- name: string | null;
1274
- id: string;
1275
- icon: string;
1276
- chainId: number;
1277
- address: string;
1278
- decimals: number;
1279
- verified: boolean;
1280
- isTest: boolean;
1281
- };
1282
- }[];
1283
- }[];
1284
- readonly 404: {
1285
- message: string;
1286
- name: string;
1287
- };
1288
- readonly 500: {
1289
- code: string;
1290
- info: string;
1291
- httpCode: number;
1292
- };
1293
- };
1294
- readonly 404: {
1295
- message: string;
1296
- name: string;
1297
- };
1298
- readonly 500: {
1299
- code: string;
1300
- info: string;
1301
- httpCode: number;
1302
- };
1303
726
  };
1304
727
  };
1305
728
  };
@@ -1653,6 +1076,7 @@ declare const app: Elysia<"", false, {
1653
1076
  computeChainId: number;
1654
1077
  distributionChainId: number;
1655
1078
  campaignId: string;
1079
+ distributionType: import("../database/api/.generated").$Enums.DistributionType;
1656
1080
  rewardTokenId: string;
1657
1081
  amount: string;
1658
1082
  opportunityId: string;
@@ -1704,6 +1128,7 @@ declare const app: Elysia<"", false, {
1704
1128
  computeChainId: number;
1705
1129
  distributionChainId: number;
1706
1130
  campaignId: string;
1131
+ distributionType: import("../database/api/.generated").$Enums.DistributionType;
1707
1132
  rewardTokenId: string;
1708
1133
  amount: string;
1709
1134
  opportunityId: string;
@@ -1784,6 +1209,7 @@ declare const app: Elysia<"", false, {
1784
1209
  computeChainId: number;
1785
1210
  distributionChainId: number;
1786
1211
  campaignId: string;
1212
+ distributionType: import("../database/api/.generated").$Enums.DistributionType;
1787
1213
  rewardTokenId: string;
1788
1214
  amount: string;
1789
1215
  opportunityId: string;
@@ -1848,6 +1274,7 @@ declare const app: Elysia<"", false, {
1848
1274
  computeChainId: number;
1849
1275
  distributionChainId: number;
1850
1276
  campaignId: string;
1277
+ distributionType: import("../database/api/.generated").$Enums.DistributionType;
1851
1278
  rewardTokenId: string;
1852
1279
  amount: string;
1853
1280
  opportunityId: string;