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