@merkl/api 0.10.115 → 0.10.117

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. package/dist/database/api/.generated/default.d.ts +1 -1
  2. package/dist/database/api/.generated/edge.d.ts +1 -1
  3. package/dist/database/api/.generated/index.d.ts +335 -311
  4. package/dist/database/api/.generated/libquery_engine-debian-openssl-1.1.x.so.node +0 -0
  5. package/dist/database/api/.generated/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0 -0
  6. package/dist/database/api/.generated/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
  7. package/dist/database/api/.generated/package.json +15 -2
  8. package/dist/database/api/.generated/runtime/library.d.ts +195 -79
  9. package/dist/database/api/.generated/schema.prisma +1 -1
  10. package/dist/database/api/.generated/wasm.d.ts +1 -1
  11. package/dist/database/engine/.generated/default.d.ts +1 -1
  12. package/dist/database/engine/.generated/edge.d.ts +1 -1
  13. package/dist/database/engine/.generated/index.d.ts +16 -104
  14. package/dist/database/engine/.generated/libquery_engine-debian-openssl-1.1.x.so.node +0 -0
  15. package/dist/database/engine/.generated/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0 -0
  16. package/dist/database/engine/.generated/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
  17. package/dist/database/engine/.generated/package.json +14 -1
  18. package/dist/database/engine/.generated/runtime/library.d.ts +195 -79
  19. package/dist/database/engine/.generated/wasm.d.ts +1 -1
  20. package/dist/src/eden/index.d.ts +543 -426
  21. package/dist/src/index.d.ts +188 -141
  22. package/dist/src/modules/v4/accounting/accounting.controller.d.ts +1 -1
  23. package/dist/src/modules/v4/accounting/accounting.repository.d.ts +8 -8
  24. package/dist/src/modules/v4/accounting/accounting.service.d.ts +1 -1
  25. package/dist/src/modules/v4/blacklist/blacklist.controller.d.ts +5 -3
  26. package/dist/src/modules/v4/blacklist/blacklist.repository.d.ts +2 -2
  27. package/dist/src/modules/v4/blacklist/blacklist.service.d.ts +5 -3
  28. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +14 -14
  29. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +27 -27
  30. package/dist/src/modules/v4/campaign/campaign.service.d.ts +28 -28
  31. package/dist/src/modules/v4/chain/chain.controller.d.ts +5 -5
  32. package/dist/src/modules/v4/chain/chain.repository.d.ts +6 -6
  33. package/dist/src/modules/v4/chain/chain.service.d.ts +5 -5
  34. package/dist/src/modules/v4/dynamicData/dynamicData.controller.d.ts +4 -2
  35. package/dist/src/modules/v4/dynamicData/dynamicData.model.d.ts +2 -2
  36. package/dist/src/modules/v4/dynamicData/dynamicData.service.d.ts +2 -1
  37. package/dist/src/modules/v4/explorer/explorer.repository.d.ts +2 -2
  38. package/dist/src/modules/v4/explorer/explorer.service.d.ts +2 -2
  39. package/dist/src/modules/v4/merklRoot/merklRoot.controller.d.ts +22 -3
  40. package/dist/src/modules/v4/merklRoot/merklRoot.repository.d.ts +4 -4
  41. package/dist/src/modules/v4/merklRoot/merklRoot.service.d.ts +4 -4
  42. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +36 -36
  43. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +94 -94
  44. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +57 -57
  45. package/dist/src/modules/v4/price/price.controller.d.ts +8 -8
  46. package/dist/src/modules/v4/price/price.repository.d.ts +10 -10
  47. package/dist/src/modules/v4/price/price.service.d.ts +8 -8
  48. package/dist/src/modules/v4/protocol/protocol.repository.d.ts +12 -12
  49. package/dist/src/modules/v4/reward/reward.controller.d.ts +32 -8
  50. package/dist/src/modules/v4/reward/reward.model.d.ts +9 -9
  51. package/dist/src/modules/v4/reward/reward.repository.d.ts +42 -39
  52. package/dist/src/modules/v4/reward/reward.service.d.ts +134 -131
  53. package/dist/src/modules/v4/router.d.ts +188 -141
  54. package/dist/src/modules/v4/status/status.controller.d.ts +17 -17
  55. package/dist/src/modules/v4/status/status.repository.d.ts +32 -32
  56. package/dist/src/modules/v4/status/status.service.d.ts +20 -20
  57. package/dist/src/modules/v4/user/user.controller.d.ts +44 -44
  58. package/dist/src/modules/v4/user/user.repository.d.ts +3 -3
  59. package/dist/src/modules/v4/user/user.service.d.ts +3 -3
  60. package/dist/src/routes/v3/ERC20Campaigns.d.ts +188 -141
  61. package/dist/src/routes/v3/blacklist.d.ts +188 -141
  62. package/dist/src/routes/v3/campaigns.d.ts +188 -141
  63. package/dist/src/routes/v3/campaignsInfo.d.ts +188 -141
  64. package/dist/src/routes/v3/multiChainPositions.d.ts +188 -141
  65. package/dist/src/routes/v3/opportunity.d.ts +188 -141
  66. package/dist/src/routes/v3/positions.d.ts +188 -141
  67. package/dist/src/routes/v3/rewards.d.ts +188 -141
  68. package/dist/src/routes/v3/rootForTimestamp.d.ts +2 -2
  69. package/dist/src/routes/v3/updates.d.ts +188 -141
  70. package/dist/src/routes/v3/userRewards.d.ts +188 -141
  71. package/dist/src/utils/bigintToString.d.ts +1 -1
  72. package/dist/tsconfig.package.tsbuildinfo +1 -1
  73. package/package.json +3 -3
  74. package/dist/src/libs/campaigns/getRewards.d.ts +0 -29
@@ -105,9 +105,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
105
105
  cumulated: number;
106
106
  timestamp: bigint;
107
107
  breakdowns: {
108
+ type: import("../../../database/api/.generated").$Enums.AprType;
108
109
  id: number;
109
110
  identifier: string;
110
- type: import("../../../database/api/.generated").$Enums.AprType;
111
111
  value: number;
112
112
  aprRecordId: string;
113
113
  }[];
@@ -117,9 +117,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
117
117
  total: number;
118
118
  timestamp: bigint;
119
119
  breakdowns: {
120
+ type: import("../../../database/api/.generated").$Enums.TvlType;
120
121
  id: number;
121
122
  identifier: string;
122
- type: import("../../../database/api/.generated").$Enums.TvlType;
123
123
  value: number;
124
124
  tvlRecordId: string;
125
125
  }[];
@@ -137,27 +137,27 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
137
137
  };
138
138
  id: string;
139
139
  tokens: {
140
- id: string;
140
+ symbol: string;
141
141
  name: string | null;
142
+ id: string;
142
143
  chainId: number;
143
144
  address: string;
144
- decimals: number;
145
- symbol: string;
146
145
  icon: string;
146
+ decimals: number;
147
147
  verified: boolean;
148
148
  price: number | null;
149
149
  }[];
150
150
  chain: {
151
- id: number;
152
151
  name: string;
152
+ id: number;
153
153
  icon: string;
154
154
  };
155
155
  protocol: {
156
- id: string;
157
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
158
156
  name: string;
159
- description: string;
160
157
  url: string;
158
+ description: string;
159
+ id: string;
160
+ tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
161
161
  icon: string;
162
162
  } | undefined;
163
163
  name: string;
@@ -192,9 +192,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
192
192
  cumulated: number;
193
193
  timestamp: bigint;
194
194
  breakdowns: {
195
+ type: import("../../../database/api/.generated").$Enums.AprType;
195
196
  id: number;
196
197
  identifier: string;
197
- type: import("../../../database/api/.generated").$Enums.AprType;
198
198
  value: number;
199
199
  aprRecordId: string;
200
200
  }[];
@@ -204,9 +204,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
204
204
  total: number;
205
205
  timestamp: bigint;
206
206
  breakdowns: {
207
+ type: import("../../../database/api/.generated").$Enums.TvlType;
207
208
  id: number;
208
209
  identifier: string;
209
- type: import("../../../database/api/.generated").$Enums.TvlType;
210
210
  value: number;
211
211
  tvlRecordId: string;
212
212
  }[];
@@ -224,27 +224,27 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
224
224
  };
225
225
  id: string;
226
226
  tokens: {
227
- id: string;
227
+ symbol: string;
228
228
  name: string | null;
229
+ id: string;
229
230
  chainId: number;
230
231
  address: string;
231
- decimals: number;
232
- symbol: string;
233
232
  icon: string;
233
+ decimals: number;
234
234
  verified: boolean;
235
235
  price: number | null;
236
236
  }[];
237
237
  chain: {
238
- id: number;
239
238
  name: string;
239
+ id: number;
240
240
  icon: string;
241
241
  };
242
242
  protocol: {
243
- id: string;
244
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
245
243
  name: string;
246
- description: string;
247
244
  url: string;
245
+ description: string;
246
+ id: string;
247
+ tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
248
248
  icon: string;
249
249
  } | undefined;
250
250
  name: string;
@@ -261,37 +261,37 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
261
261
  campaigns: ({
262
262
  params: any;
263
263
  chain: {
264
- id: number;
265
264
  name: string;
265
+ id: number;
266
266
  icon: string;
267
267
  };
268
268
  rewardToken: {
269
- id: string;
269
+ symbol: string;
270
270
  name: string | null;
271
+ id: string;
271
272
  chainId: number;
272
273
  address: string;
273
- decimals: number;
274
- symbol: string;
275
274
  icon: string;
275
+ decimals: number;
276
276
  verified: boolean;
277
277
  price: number | null;
278
278
  };
279
279
  distributionChain: {
280
- id: number;
281
280
  name: string;
281
+ id: number;
282
282
  icon: string;
283
283
  } | undefined;
284
+ type: import("../../../database/api/.generated").$Enums.CampaignType;
284
285
  id: string;
286
+ subType: number | null;
287
+ startTimestamp: bigint;
288
+ endTimestamp: bigint;
285
289
  computeChainId: number;
286
290
  distributionChainId: number;
287
291
  campaignId: string;
288
- type: import("../../../database/api/.generated").$Enums.CampaignType;
289
- subType: number | null;
290
292
  rewardTokenId: string;
291
293
  amount: string;
292
294
  opportunityId: string;
293
- startTimestamp: bigint;
294
- endTimestamp: bigint;
295
295
  creatorAddress: string;
296
296
  } | null)[];
297
297
  }) | null | undefined;
@@ -326,9 +326,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
326
326
  cumulated: number;
327
327
  timestamp: bigint;
328
328
  breakdowns: {
329
+ type: import("../../../database/api/.generated").$Enums.AprType;
329
330
  id: number;
330
331
  identifier: string;
331
- type: import("../../../database/api/.generated").$Enums.AprType;
332
332
  value: number;
333
333
  aprRecordId: string;
334
334
  }[];
@@ -338,9 +338,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
338
338
  total: number;
339
339
  timestamp: bigint;
340
340
  breakdowns: {
341
+ type: import("../../../database/api/.generated").$Enums.TvlType;
341
342
  id: number;
342
343
  identifier: string;
343
- type: import("../../../database/api/.generated").$Enums.TvlType;
344
344
  value: number;
345
345
  tvlRecordId: string;
346
346
  }[];
@@ -358,27 +358,27 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
358
358
  };
359
359
  id: string;
360
360
  tokens: {
361
- id: string;
361
+ symbol: string;
362
362
  name: string | null;
363
+ id: string;
363
364
  chainId: number;
364
365
  address: string;
365
- decimals: number;
366
- symbol: string;
367
366
  icon: string;
367
+ decimals: number;
368
368
  verified: boolean;
369
369
  price: number | null;
370
370
  }[];
371
371
  chain: {
372
- id: number;
373
372
  name: string;
373
+ id: number;
374
374
  icon: string;
375
375
  };
376
376
  protocol: {
377
- id: string;
378
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
379
377
  name: string;
380
- description: string;
381
378
  url: string;
379
+ description: string;
380
+ id: string;
381
+ tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
382
382
  icon: string;
383
383
  } | undefined;
384
384
  name: string;
@@ -450,18 +450,18 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
450
450
  };
451
451
  response: {
452
452
  200: {
453
+ type: import("../../../database/api/.generated").$Enums.CampaignType;
453
454
  id: string;
455
+ params: import("database/api/.generated/runtime/library").JsonValue;
456
+ subType: number | null;
457
+ startTimestamp: bigint;
458
+ endTimestamp: bigint;
454
459
  computeChainId: number;
455
460
  distributionChainId: number;
456
461
  campaignId: string;
457
- type: import("../../../database/api/.generated").$Enums.CampaignType;
458
- subType: number | null;
459
462
  rewardTokenId: string;
460
463
  amount: string;
461
464
  opportunityId: string;
462
- startTimestamp: bigint;
463
- endTimestamp: bigint;
464
- params: import("../../../database/api/.generated").Prisma.JsonValue;
465
465
  creatorAddress: string;
466
466
  } | undefined;
467
467
  };
@@ -491,37 +491,37 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
491
491
  200: ({
492
492
  params: any;
493
493
  chain: {
494
- id: number;
495
494
  name: string;
495
+ id: number;
496
496
  icon: string;
497
497
  };
498
498
  rewardToken: {
499
- id: string;
499
+ symbol: string;
500
500
  name: string | null;
501
+ id: string;
501
502
  chainId: number;
502
503
  address: string;
503
- decimals: number;
504
- symbol: string;
505
504
  icon: string;
505
+ decimals: number;
506
506
  verified: boolean;
507
507
  price: number | null;
508
508
  };
509
509
  distributionChain: {
510
- id: number;
511
510
  name: string;
511
+ id: number;
512
512
  icon: string;
513
513
  } | undefined;
514
+ type: import("../../../database/api/.generated").$Enums.CampaignType;
514
515
  id: string;
516
+ subType: number | null;
517
+ startTimestamp: bigint;
518
+ endTimestamp: bigint;
515
519
  computeChainId: number;
516
520
  distributionChainId: number;
517
521
  campaignId: string;
518
- type: import("../../../database/api/.generated").$Enums.CampaignType;
519
- subType: number | null;
520
522
  rewardTokenId: string;
521
523
  amount: string;
522
524
  opportunityId: string;
523
- startTimestamp: bigint;
524
- endTimestamp: bigint;
525
525
  creatorAddress: string;
526
526
  } | null)[];
527
527
  };
@@ -799,9 +799,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
799
799
  params: Record<never, string>;
800
800
  query: {
801
801
  items?: number | undefined;
802
- chainId?: number | undefined;
803
802
  page?: number | undefined;
804
- campaignId?: string | undefined;
803
+ chainId: number;
804
+ campaignId: string;
805
805
  };
806
806
  headers: unknown;
807
807
  response: {
@@ -818,13 +818,16 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
818
818
  params: Record<never, string>;
819
819
  query: {
820
820
  items?: number | undefined;
821
- chainId?: number | undefined;
822
821
  page?: number | undefined;
823
- campaignId?: string | undefined;
822
+ chainId: number;
823
+ campaignId: string;
824
824
  };
825
825
  headers: unknown;
826
826
  response: {
827
- 200: unknown;
827
+ 200: {
828
+ campaignId: string;
829
+ amount: bigint;
830
+ };
828
831
  };
829
832
  };
830
833
  };
@@ -927,15 +930,36 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
927
930
  params: Record<never, string>;
928
931
  query: {
929
932
  items?: number | undefined;
930
- chainId?: number | undefined;
931
933
  page?: number | undefined;
932
- campaignId?: string | undefined;
934
+ chainId: number;
935
+ campaignId: string;
933
936
  };
934
937
  headers: unknown;
935
938
  response: {
936
939
  200: {
937
940
  count: number;
938
- } | null;
941
+ };
942
+ };
943
+ };
944
+ };
945
+ };
946
+ } & {
947
+ rewards: {
948
+ count: {
949
+ chains: {
950
+ get: {
951
+ body: unknown;
952
+ params: Record<never, string>;
953
+ query: unknown;
954
+ headers: {
955
+ authorization: string;
956
+ };
957
+ response: {
958
+ 200: Record<string, {
959
+ breakdown: number;
960
+ rewards: Record<string, number>;
961
+ }>;
962
+ };
939
963
  };
940
964
  };
941
965
  };
@@ -954,13 +978,13 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
954
978
  headers: unknown;
955
979
  response: {
956
980
  200: {
957
- id: number;
958
981
  name: string;
982
+ id: number;
959
983
  icon: string;
960
984
  explorers: {
961
- id: string;
962
985
  type: import("../../../database/api/.generated").$Enums.ExplorerType;
963
986
  url: string;
987
+ id: string;
964
988
  chainId: number;
965
989
  }[];
966
990
  } | null;
@@ -978,13 +1002,13 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
978
1002
  headers: unknown;
979
1003
  response: {
980
1004
  200: {
981
- id: number;
982
1005
  name: string;
1006
+ id: number;
983
1007
  icon: string;
984
1008
  explorers: {
985
- id: string;
986
1009
  type: import("../../../database/api/.generated").$Enums.ExplorerType;
987
1010
  url: string;
1011
+ id: string;
988
1012
  chainId: number;
989
1013
  }[];
990
1014
  }[];
@@ -1020,9 +1044,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1020
1044
  };
1021
1045
  response: {
1022
1046
  200: {
1023
- id: string;
1024
1047
  type: import("../../../database/api/.generated").$Enums.ExplorerType;
1025
1048
  url: string;
1049
+ id: string;
1026
1050
  chainId: number;
1027
1051
  };
1028
1052
  };
@@ -1087,10 +1111,10 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1087
1111
  headers: unknown;
1088
1112
  response: {
1089
1113
  200: {
1090
- id: number;
1091
1114
  symbol: string;
1092
1115
  method: import("../../../database/api/.generated").$Enums.PriceSourceMethod;
1093
- args: import("../../../database/api/.generated").Prisma.JsonValue | null;
1116
+ args: import("database/api/.generated/runtime/library").JsonValue | null;
1117
+ id: number;
1094
1118
  }[];
1095
1119
  };
1096
1120
  };
@@ -1109,10 +1133,10 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1109
1133
  headers: unknown;
1110
1134
  response: {
1111
1135
  200: {
1112
- id: number;
1113
1136
  symbol: string;
1114
1137
  method: import("../../../database/api/.generated").$Enums.PriceSourceMethod;
1115
- args: import("../../../database/api/.generated").Prisma.JsonValue | null;
1138
+ args: import("database/api/.generated/runtime/library").JsonValue | null;
1139
+ id: number;
1116
1140
  };
1117
1141
  };
1118
1142
  };
@@ -1158,10 +1182,10 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1158
1182
  };
1159
1183
  response: {
1160
1184
  200: {
1161
- id: number;
1162
1185
  symbol: string;
1163
1186
  method: import("../../../database/api/.generated").$Enums.PriceSourceMethod;
1164
- args: import("../../../database/api/.generated").Prisma.JsonValue | null;
1187
+ args: import("database/api/.generated/runtime/library").JsonValue | null;
1188
+ id: number;
1165
1189
  };
1166
1190
  };
1167
1191
  };
@@ -1183,10 +1207,10 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1183
1207
  };
1184
1208
  response: {
1185
1209
  200: {
1186
- id: number;
1187
1210
  symbol: string;
1188
1211
  method: import("../../../database/api/.generated").$Enums.PriceSourceMethod;
1189
- args: import("../../../database/api/.generated").Prisma.JsonValue | null;
1212
+ args: import("database/api/.generated/runtime/library").JsonValue | null;
1213
+ id: number;
1190
1214
  };
1191
1215
  };
1192
1216
  };
@@ -1211,7 +1235,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1211
1235
  poolAddress: string;
1212
1236
  userAddress: string;
1213
1237
  arrestTimestamp: bigint;
1214
- arrestDetails: import("../../../database/api/.generated").Prisma.JsonValue;
1238
+ arrestDetails: import("database/api/.generated/runtime/library").JsonValue;
1215
1239
  }[];
1216
1240
  };
1217
1241
  };
@@ -1226,7 +1250,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1226
1250
  query: unknown;
1227
1251
  headers: unknown;
1228
1252
  response: {
1229
- 200: string[];
1253
+ 200: {
1254
+ [address: string]: boolean;
1255
+ };
1230
1256
  };
1231
1257
  };
1232
1258
  };
@@ -1271,7 +1297,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1271
1297
  poolAddress: string;
1272
1298
  userAddress: string;
1273
1299
  arrestTimestamp: bigint;
1274
- arrestDetails: import("../../../database/api/.generated").Prisma.JsonValue;
1300
+ arrestDetails: import("database/api/.generated/runtime/library").JsonValue;
1275
1301
  };
1276
1302
  };
1277
1303
  };
@@ -1314,8 +1340,8 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1314
1340
  headers: unknown;
1315
1341
  response: {
1316
1342
  200: {
1317
- address: string;
1318
1343
  tags: string[];
1344
+ address: string;
1319
1345
  }[];
1320
1346
  };
1321
1347
  };
@@ -1356,13 +1382,13 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1356
1382
  }, "rewards"> & {
1357
1383
  rewards: (Omit<{
1358
1384
  token: {
1359
- id: string;
1385
+ symbol: string;
1360
1386
  name: string | null;
1387
+ id: string;
1361
1388
  chainId: number;
1362
1389
  address: string;
1363
- decimals: number;
1364
- symbol: string;
1365
1390
  icon: string;
1391
+ decimals: number;
1366
1392
  verified: boolean;
1367
1393
  price: number | null;
1368
1394
  };
@@ -1370,63 +1396,63 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1370
1396
  campaignId: string;
1371
1397
  opportunity: {
1372
1398
  Chain: {
1373
- id: number;
1374
1399
  name: string;
1400
+ id: number;
1375
1401
  icon: string;
1376
1402
  };
1377
1403
  Tokens: {
1378
- id: string;
1404
+ symbol: string;
1379
1405
  name: string | null;
1406
+ id: string;
1380
1407
  chainId: number;
1381
1408
  address: string;
1382
- decimals: number;
1383
- symbol: string;
1384
1409
  icon: string;
1410
+ decimals: number;
1385
1411
  verified: boolean;
1386
1412
  price: number | null;
1387
1413
  }[];
1388
1414
  Protocols: {
1389
- id: string;
1390
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
1391
1415
  name: string;
1392
- description: string;
1393
1416
  url: string;
1417
+ description: string;
1418
+ id: string;
1419
+ tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
1394
1420
  icon: string;
1395
1421
  }[];
1396
1422
  MainProtocol: {
1397
- id: string;
1398
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
1399
1423
  name: string;
1400
- description: string;
1401
1424
  url: string;
1425
+ description: string;
1426
+ id: string;
1427
+ tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
1402
1428
  icon: string;
1403
1429
  } | null;
1404
1430
  } & {
1405
- id: string;
1406
- chainId: number;
1407
- type: import("../../../database/api/.generated").$Enums.CampaignType;
1408
- identifier: string;
1409
1431
  name: string;
1432
+ type: import("../../../database/api/.generated").$Enums.CampaignType;
1433
+ id: string;
1410
1434
  status: import("../../../database/api/.generated").$Enums.Status;
1435
+ tags: string[];
1436
+ identifier: string;
1437
+ chainId: number;
1411
1438
  action: import("../../../database/api/.generated").$Enums.OpportunityAction;
1412
1439
  mainProtocolId: string | null;
1413
1440
  tvl: number;
1414
1441
  apr: number;
1415
1442
  dailyRewards: number;
1416
- tags: string[];
1417
1443
  };
1418
1444
  reason: string;
1445
+ pending: string;
1419
1446
  amount: string;
1420
1447
  claimed: string;
1421
- pending: string;
1422
1448
  auxiliaryData1: string | null;
1423
1449
  auxiliaryData2: string | null;
1424
1450
  }[];
1425
1451
  claimed: bigint;
1426
1452
  amount: bigint;
1427
1453
  pending: bigint;
1428
- root: string;
1429
1454
  recipient: string;
1455
+ root: string;
1430
1456
  proofs: string[];
1431
1457
  }, "breakdowns"> & {
1432
1458
  breakdowns: {
@@ -1466,13 +1492,13 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1466
1492
  }, "rewards"> & {
1467
1493
  rewards: (Omit<{
1468
1494
  token: {
1469
- id: string;
1495
+ symbol: string;
1470
1496
  name: string | null;
1497
+ id: string;
1471
1498
  chainId: number;
1472
1499
  address: string;
1473
- decimals: number;
1474
- symbol: string;
1475
1500
  icon: string;
1501
+ decimals: number;
1476
1502
  verified: boolean;
1477
1503
  price: number | null;
1478
1504
  };
@@ -1480,71 +1506,71 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1480
1506
  campaignId: string;
1481
1507
  opportunity: {
1482
1508
  Chain: {
1483
- id: number;
1484
1509
  name: string;
1510
+ id: number;
1485
1511
  icon: string;
1486
1512
  };
1487
1513
  Tokens: {
1488
- id: string;
1514
+ symbol: string;
1489
1515
  name: string | null;
1516
+ id: string;
1490
1517
  chainId: number;
1491
1518
  address: string;
1492
- decimals: number;
1493
- symbol: string;
1494
1519
  icon: string;
1520
+ decimals: number;
1495
1521
  verified: boolean;
1496
1522
  price: number | null;
1497
1523
  }[];
1498
1524
  Protocols: {
1499
- id: string;
1500
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
1501
1525
  name: string;
1502
- description: string;
1503
1526
  url: string;
1527
+ description: string;
1528
+ id: string;
1529
+ tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
1504
1530
  icon: string;
1505
1531
  }[];
1506
1532
  MainProtocol: {
1507
- id: string;
1508
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
1509
1533
  name: string;
1510
- description: string;
1511
1534
  url: string;
1535
+ description: string;
1536
+ id: string;
1537
+ tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
1512
1538
  icon: string;
1513
1539
  } | null;
1514
1540
  } & {
1515
- id: string;
1516
- chainId: number;
1517
- type: import("../../../database/api/.generated").$Enums.CampaignType;
1518
- identifier: string;
1519
1541
  name: string;
1542
+ type: import("../../../database/api/.generated").$Enums.CampaignType;
1543
+ id: string;
1520
1544
  status: import("../../../database/api/.generated").$Enums.Status;
1545
+ tags: string[];
1546
+ identifier: string;
1547
+ chainId: number;
1521
1548
  action: import("../../../database/api/.generated").$Enums.OpportunityAction;
1522
1549
  mainProtocolId: string | null;
1523
1550
  tvl: number;
1524
1551
  apr: number;
1525
1552
  dailyRewards: number;
1526
- tags: string[];
1527
1553
  };
1528
1554
  reason: string;
1555
+ pending: string;
1529
1556
  amount: string;
1530
1557
  claimed: string;
1531
- pending: string;
1532
1558
  auxiliaryData1: string | null;
1533
1559
  auxiliaryData2: string | null;
1534
1560
  }[];
1535
1561
  claimed: bigint;
1536
1562
  amount: bigint;
1537
1563
  pending: bigint;
1538
- root: string;
1539
1564
  recipient: string;
1565
+ root: string;
1540
1566
  proofs: string[];
1541
1567
  }, "breakdowns"> & {
1542
1568
  breakdowns: {
1543
1569
  campaignId: string;
1544
1570
  reason: string;
1571
+ pending: string;
1545
1572
  amount: string;
1546
1573
  claimed: string;
1547
- pending: string;
1548
1574
  auxiliaryData1: string | null;
1549
1575
  auxiliaryData2: string | null;
1550
1576
  }[];
@@ -1570,8 +1596,8 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1570
1596
  };
1571
1597
  response: {
1572
1598
  200: {
1573
- address: string;
1574
1599
  tags: string[];
1600
+ address: string;
1575
1601
  };
1576
1602
  };
1577
1603
  };
@@ -1594,8 +1620,8 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1594
1620
  };
1595
1621
  response: {
1596
1622
  200: {
1597
- address: string;
1598
1623
  tags: string[];
1624
+ address: string;
1599
1625
  };
1600
1626
  };
1601
1627
  };
@@ -1606,7 +1632,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1606
1632
  } & {
1607
1633
  v4: {
1608
1634
  roots: {
1609
- index: {
1635
+ timestamps: {
1610
1636
  get: {
1611
1637
  body: unknown;
1612
1638
  params: Record<never, string>;
@@ -1618,15 +1644,34 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1618
1644
  headers: unknown;
1619
1645
  response: {
1620
1646
  200: {
1621
- root: string;
1647
+ timestamp: bigint;
1622
1648
  chainId: number;
1649
+ root: string;
1623
1650
  epoch: number;
1624
- timestamp: bigint;
1625
1651
  }[];
1626
1652
  };
1627
1653
  };
1628
1654
  };
1629
1655
  };
1656
+ } & {
1657
+ roots: {
1658
+ index: {
1659
+ get: {
1660
+ body: unknown;
1661
+ params: Record<never, string>;
1662
+ query: unknown;
1663
+ headers: unknown;
1664
+ response: {
1665
+ 200: {
1666
+ [chainId: number]: {
1667
+ live: string;
1668
+ lastTree: string;
1669
+ };
1670
+ };
1671
+ };
1672
+ };
1673
+ };
1674
+ };
1630
1675
  };
1631
1676
  } & {
1632
1677
  v4: {
@@ -1746,6 +1791,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1746
1791
  response: {
1747
1792
  200: {
1748
1793
  id: string;
1794
+ timestamp: number;
1749
1795
  chainId: number;
1750
1796
  fromTokenId: string;
1751
1797
  toTokenId: string;
@@ -1754,7 +1800,6 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1754
1800
  amountIn: string;
1755
1801
  amountOut: string;
1756
1802
  datetime: Date;
1757
- timestamp: number;
1758
1803
  }[];
1759
1804
  };
1760
1805
  };
@@ -1926,11 +1971,13 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1926
1971
  get: {
1927
1972
  body: unknown;
1928
1973
  params: {
1929
- chainId: string;
1974
+ chainId: number;
1930
1975
  tokenAddress: string;
1931
1976
  };
1932
1977
  query: unknown;
1933
- headers: unknown;
1978
+ headers: {
1979
+ authorization: string;
1980
+ };
1934
1981
  response: {
1935
1982
  200: {
1936
1983
  tvl: number;
@@ -1991,12 +2038,12 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1991
2038
  headers: unknown;
1992
2039
  response: {
1993
2040
  200: {
2041
+ error: string;
2042
+ details: import("database/api/.generated/runtime/library").JsonValue;
2043
+ status: import("../../../database/api/.generated").$Enums.RunStatus;
1994
2044
  campaignId: string;
1995
2045
  computedUntil: bigint;
1996
2046
  processingStarted: bigint;
1997
- status: import("../../../database/api/.generated").$Enums.RunStatus;
1998
- error: string;
1999
- details: import("../../../database/api/.generated").Prisma.JsonValue;
2000
2047
  }[];
2001
2048
  };
2002
2049
  };
@@ -2015,27 +2062,27 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
2015
2062
  response: {
2016
2063
  200: ({
2017
2064
  Campaign: {
2065
+ type: import("../../../database/api/.generated").$Enums.CampaignType;
2018
2066
  id: string;
2067
+ params: import("database/api/.generated/runtime/library").JsonValue;
2068
+ subType: number | null;
2069
+ startTimestamp: bigint;
2070
+ endTimestamp: bigint;
2019
2071
  computeChainId: number;
2020
2072
  distributionChainId: number;
2021
2073
  campaignId: string;
2022
- type: import("../../../database/api/.generated").$Enums.CampaignType;
2023
- subType: number | null;
2024
2074
  rewardTokenId: string;
2025
2075
  amount: string;
2026
2076
  opportunityId: string;
2027
- startTimestamp: bigint;
2028
- endTimestamp: bigint;
2029
- params: import("../../../database/api/.generated").Prisma.JsonValue;
2030
2077
  creatorAddress: string;
2031
2078
  };
2032
2079
  } & {
2080
+ error: string;
2081
+ details: import("database/api/.generated/runtime/library").JsonValue;
2082
+ status: import("../../../database/api/.generated").$Enums.RunStatus;
2033
2083
  campaignId: string;
2034
2084
  computedUntil: bigint;
2035
2085
  processingStarted: bigint;
2036
- status: import("../../../database/api/.generated").$Enums.RunStatus;
2037
- error: string;
2038
- details: import("../../../database/api/.generated").Prisma.JsonValue;
2039
2086
  })[];
2040
2087
  };
2041
2088
  };
@@ -2054,12 +2101,12 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
2054
2101
  headers: unknown;
2055
2102
  response: {
2056
2103
  200: {
2104
+ error: string;
2105
+ details: import("database/api/.generated/runtime/library").JsonValue;
2106
+ status: import("../../../database/api/.generated").$Enums.RunStatus;
2057
2107
  campaignId: string;
2058
2108
  computedUntil: bigint;
2059
2109
  processingStarted: bigint;
2060
- status: import("../../../database/api/.generated").$Enums.RunStatus;
2061
- error: string;
2062
- details: import("../../../database/api/.generated").Prisma.JsonValue;
2063
2110
  };
2064
2111
  };
2065
2112
  };
@@ -2078,12 +2125,12 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
2078
2125
  headers: unknown;
2079
2126
  response: {
2080
2127
  200: {
2128
+ error: string;
2129
+ details: import("database/api/.generated/runtime/library").JsonValue;
2130
+ status: import("../../../database/api/.generated").$Enums.RunStatus;
2081
2131
  campaignId: string;
2082
2132
  computedUntil: bigint;
2083
2133
  processingStarted: bigint;
2084
- status: import("../../../database/api/.generated").$Enums.RunStatus;
2085
- error: string;
2086
- details: import("../../../database/api/.generated").Prisma.JsonValue;
2087
2134
  }[];
2088
2135
  };
2089
2136
  };