@merkl/api 0.10.116 → 0.10.118

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) 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 +552 -411
  21. package/dist/src/index.d.ts +194 -137
  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 +2 -2
  26. package/dist/src/modules/v4/blacklist/blacklist.repository.d.ts +2 -2
  27. package/dist/src/modules/v4/blacklist/blacklist.service.d.ts +2 -2
  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/explorer/explorer.repository.d.ts +2 -2
  35. package/dist/src/modules/v4/explorer/explorer.service.d.ts +2 -2
  36. package/dist/src/modules/v4/merklRoot/merklRoot.controller.d.ts +21 -3
  37. package/dist/src/modules/v4/merklRoot/merklRoot.repository.d.ts +4 -4
  38. package/dist/src/modules/v4/merklRoot/merklRoot.service.d.ts +8 -9
  39. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +36 -36
  40. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +94 -94
  41. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +57 -57
  42. package/dist/src/modules/v4/price/price.controller.d.ts +8 -8
  43. package/dist/src/modules/v4/price/price.repository.d.ts +10 -10
  44. package/dist/src/modules/v4/price/price.service.d.ts +8 -8
  45. package/dist/src/modules/v4/protocol/protocol.repository.d.ts +12 -12
  46. package/dist/src/modules/v4/reward/reward.controller.d.ts +11 -8
  47. package/dist/src/modules/v4/reward/reward.model.d.ts +9 -9
  48. package/dist/src/modules/v4/reward/reward.repository.d.ts +42 -39
  49. package/dist/src/modules/v4/reward/reward.service.d.ts +133 -130
  50. package/dist/src/modules/v4/router.d.ts +194 -137
  51. package/dist/src/modules/v4/status/status.controller.d.ts +17 -17
  52. package/dist/src/modules/v4/status/status.repository.d.ts +32 -32
  53. package/dist/src/modules/v4/status/status.service.d.ts +20 -20
  54. package/dist/src/modules/v4/user/user.controller.d.ts +79 -43
  55. package/dist/src/modules/v4/user/user.repository.d.ts +7 -2
  56. package/dist/src/modules/v4/user/user.service.d.ts +10 -4
  57. package/dist/src/routes/v3/ERC20Campaigns.d.ts +194 -137
  58. package/dist/src/routes/v3/blacklist.d.ts +194 -137
  59. package/dist/src/routes/v3/campaigns.d.ts +194 -137
  60. package/dist/src/routes/v3/campaignsInfo.d.ts +194 -137
  61. package/dist/src/routes/v3/multiChainPositions.d.ts +194 -137
  62. package/dist/src/routes/v3/opportunity.d.ts +194 -137
  63. package/dist/src/routes/v3/positions.d.ts +194 -137
  64. package/dist/src/routes/v3/rewards.d.ts +194 -137
  65. package/dist/src/routes/v3/rootForTimestamp.d.ts +2 -2
  66. package/dist/src/routes/v3/updates.d.ts +194 -137
  67. package/dist/src/routes/v3/userRewards.d.ts +194 -137
  68. package/dist/tsconfig.package.tsbuildinfo +1 -1
  69. package/package.json +3 -3
  70. package/dist/src/libs/campaigns/getRewards.d.ts +0 -29
@@ -88,9 +88,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
88
88
  cumulated: number;
89
89
  timestamp: bigint;
90
90
  breakdowns: {
91
+ type: import("../../../database/api/.generated").$Enums.AprType;
91
92
  id: number;
92
93
  identifier: string;
93
- type: import("../../../database/api/.generated").$Enums.AprType;
94
94
  value: number;
95
95
  aprRecordId: string;
96
96
  }[];
@@ -100,9 +100,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
100
100
  total: number;
101
101
  timestamp: bigint;
102
102
  breakdowns: {
103
+ type: import("../../../database/api/.generated").$Enums.TvlType;
103
104
  id: number;
104
105
  identifier: string;
105
- type: import("../../../database/api/.generated").$Enums.TvlType;
106
106
  value: number;
107
107
  tvlRecordId: string;
108
108
  }[];
@@ -120,27 +120,27 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
120
120
  };
121
121
  id: string;
122
122
  tokens: {
123
- id: string;
123
+ symbol: string;
124
124
  name: string | null;
125
+ id: string;
125
126
  chainId: number;
126
127
  address: string;
127
- decimals: number;
128
- symbol: string;
129
128
  icon: string;
129
+ decimals: number;
130
130
  verified: boolean;
131
131
  price: number | null;
132
132
  }[];
133
133
  chain: {
134
- id: number;
135
134
  name: string;
135
+ id: number;
136
136
  icon: string;
137
137
  };
138
138
  protocol: {
139
- id: string;
140
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
141
139
  name: string;
142
- description: string;
143
140
  url: string;
141
+ description: string;
142
+ id: string;
143
+ tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
144
144
  icon: string;
145
145
  } | undefined;
146
146
  name: string;
@@ -175,9 +175,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
175
175
  cumulated: number;
176
176
  timestamp: bigint;
177
177
  breakdowns: {
178
+ type: import("../../../database/api/.generated").$Enums.AprType;
178
179
  id: number;
179
180
  identifier: string;
180
- type: import("../../../database/api/.generated").$Enums.AprType;
181
181
  value: number;
182
182
  aprRecordId: string;
183
183
  }[];
@@ -187,9 +187,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
187
187
  total: number;
188
188
  timestamp: bigint;
189
189
  breakdowns: {
190
+ type: import("../../../database/api/.generated").$Enums.TvlType;
190
191
  id: number;
191
192
  identifier: string;
192
- type: import("../../../database/api/.generated").$Enums.TvlType;
193
193
  value: number;
194
194
  tvlRecordId: string;
195
195
  }[];
@@ -207,27 +207,27 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
207
207
  };
208
208
  id: string;
209
209
  tokens: {
210
- id: string;
210
+ symbol: string;
211
211
  name: string | null;
212
+ id: string;
212
213
  chainId: number;
213
214
  address: string;
214
- decimals: number;
215
- symbol: string;
216
215
  icon: string;
216
+ decimals: number;
217
217
  verified: boolean;
218
218
  price: number | null;
219
219
  }[];
220
220
  chain: {
221
- id: number;
222
221
  name: string;
222
+ id: number;
223
223
  icon: string;
224
224
  };
225
225
  protocol: {
226
- id: string;
227
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
228
226
  name: string;
229
- description: string;
230
227
  url: string;
228
+ description: string;
229
+ id: string;
230
+ tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
231
231
  icon: string;
232
232
  } | undefined;
233
233
  name: string;
@@ -244,37 +244,37 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
244
244
  campaigns: ({
245
245
  params: any;
246
246
  chain: {
247
- id: number;
248
247
  name: string;
248
+ id: number;
249
249
  icon: string;
250
250
  };
251
251
  rewardToken: {
252
- id: string;
252
+ symbol: string;
253
253
  name: string | null;
254
+ id: string;
254
255
  chainId: number;
255
256
  address: string;
256
- decimals: number;
257
- symbol: string;
258
257
  icon: string;
258
+ decimals: number;
259
259
  verified: boolean;
260
260
  price: number | null;
261
261
  };
262
262
  distributionChain: {
263
- id: number;
264
263
  name: string;
264
+ id: number;
265
265
  icon: string;
266
266
  } | undefined;
267
+ type: import("../../../database/api/.generated").$Enums.CampaignType;
267
268
  id: string;
269
+ subType: number | null;
270
+ startTimestamp: bigint;
271
+ endTimestamp: bigint;
268
272
  computeChainId: number;
269
273
  distributionChainId: number;
270
274
  campaignId: string;
271
- type: import("../../../database/api/.generated").$Enums.CampaignType;
272
- subType: number | null;
273
275
  rewardTokenId: string;
274
276
  amount: string;
275
277
  opportunityId: string;
276
- startTimestamp: bigint;
277
- endTimestamp: bigint;
278
278
  creatorAddress: string;
279
279
  } | null)[];
280
280
  }) | null | undefined;
@@ -309,9 +309,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
309
309
  cumulated: number;
310
310
  timestamp: bigint;
311
311
  breakdowns: {
312
+ type: import("../../../database/api/.generated").$Enums.AprType;
312
313
  id: number;
313
314
  identifier: string;
314
- type: import("../../../database/api/.generated").$Enums.AprType;
315
315
  value: number;
316
316
  aprRecordId: string;
317
317
  }[];
@@ -321,9 +321,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
321
321
  total: number;
322
322
  timestamp: bigint;
323
323
  breakdowns: {
324
+ type: import("../../../database/api/.generated").$Enums.TvlType;
324
325
  id: number;
325
326
  identifier: string;
326
- type: import("../../../database/api/.generated").$Enums.TvlType;
327
327
  value: number;
328
328
  tvlRecordId: string;
329
329
  }[];
@@ -341,27 +341,27 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
341
341
  };
342
342
  id: string;
343
343
  tokens: {
344
- id: string;
344
+ symbol: string;
345
345
  name: string | null;
346
+ id: string;
346
347
  chainId: number;
347
348
  address: string;
348
- decimals: number;
349
- symbol: string;
350
349
  icon: string;
350
+ decimals: number;
351
351
  verified: boolean;
352
352
  price: number | null;
353
353
  }[];
354
354
  chain: {
355
- id: number;
356
355
  name: string;
356
+ id: number;
357
357
  icon: string;
358
358
  };
359
359
  protocol: {
360
- id: string;
361
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
362
360
  name: string;
363
- description: string;
364
361
  url: string;
362
+ description: string;
363
+ id: string;
364
+ tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
365
365
  icon: string;
366
366
  } | undefined;
367
367
  name: string;
@@ -433,18 +433,18 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
433
433
  };
434
434
  response: {
435
435
  200: {
436
+ type: import("../../../database/api/.generated").$Enums.CampaignType;
436
437
  id: string;
438
+ params: import("database/api/.generated/runtime/library").JsonValue;
439
+ subType: number | null;
440
+ startTimestamp: bigint;
441
+ endTimestamp: bigint;
437
442
  computeChainId: number;
438
443
  distributionChainId: number;
439
444
  campaignId: string;
440
- type: import("../../../database/api/.generated").$Enums.CampaignType;
441
- subType: number | null;
442
445
  rewardTokenId: string;
443
446
  amount: string;
444
447
  opportunityId: string;
445
- startTimestamp: bigint;
446
- endTimestamp: bigint;
447
- params: import("../../../database/api/.generated").Prisma.JsonValue;
448
448
  creatorAddress: string;
449
449
  } | undefined;
450
450
  };
@@ -474,37 +474,37 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
474
474
  200: ({
475
475
  params: any;
476
476
  chain: {
477
- id: number;
478
477
  name: string;
478
+ id: number;
479
479
  icon: string;
480
480
  };
481
481
  rewardToken: {
482
- id: string;
482
+ symbol: string;
483
483
  name: string | null;
484
+ id: string;
484
485
  chainId: number;
485
486
  address: string;
486
- decimals: number;
487
- symbol: string;
488
487
  icon: string;
488
+ decimals: number;
489
489
  verified: boolean;
490
490
  price: number | null;
491
491
  };
492
492
  distributionChain: {
493
- id: number;
494
493
  name: string;
494
+ id: number;
495
495
  icon: string;
496
496
  } | undefined;
497
+ type: import("../../../database/api/.generated").$Enums.CampaignType;
497
498
  id: string;
499
+ subType: number | null;
500
+ startTimestamp: bigint;
501
+ endTimestamp: bigint;
498
502
  computeChainId: number;
499
503
  distributionChainId: number;
500
504
  campaignId: string;
501
- type: import("../../../database/api/.generated").$Enums.CampaignType;
502
- subType: number | null;
503
505
  rewardTokenId: string;
504
506
  amount: string;
505
507
  opportunityId: string;
506
- startTimestamp: bigint;
507
- endTimestamp: bigint;
508
508
  creatorAddress: string;
509
509
  } | null)[];
510
510
  };
@@ -782,9 +782,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
782
782
  params: Record<never, string>;
783
783
  query: {
784
784
  items?: number | undefined;
785
- chainId?: number | undefined;
786
785
  page?: number | undefined;
787
- campaignId?: string | undefined;
786
+ chainId: number;
787
+ campaignId: string;
788
788
  };
789
789
  headers: unknown;
790
790
  response: {
@@ -801,13 +801,16 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
801
801
  params: Record<never, string>;
802
802
  query: {
803
803
  items?: number | undefined;
804
- chainId?: number | undefined;
805
804
  page?: number | undefined;
806
- campaignId?: string | undefined;
805
+ chainId: number;
806
+ campaignId: string;
807
807
  };
808
808
  headers: unknown;
809
809
  response: {
810
- 200: unknown;
810
+ 200: {
811
+ campaignId: string;
812
+ amount: bigint;
813
+ };
811
814
  };
812
815
  };
813
816
  };
@@ -910,15 +913,15 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
910
913
  params: Record<never, string>;
911
914
  query: {
912
915
  items?: number | undefined;
913
- chainId?: number | undefined;
914
916
  page?: number | undefined;
915
- campaignId?: string | undefined;
917
+ chainId: number;
918
+ campaignId: string;
916
919
  };
917
920
  headers: unknown;
918
921
  response: {
919
922
  200: {
920
923
  count: number;
921
- } | null;
924
+ };
922
925
  };
923
926
  };
924
927
  };
@@ -958,13 +961,13 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
958
961
  headers: unknown;
959
962
  response: {
960
963
  200: {
961
- id: number;
962
964
  name: string;
965
+ id: number;
963
966
  icon: string;
964
967
  explorers: {
965
- id: string;
966
968
  type: import("../../../database/api/.generated").$Enums.ExplorerType;
967
969
  url: string;
970
+ id: string;
968
971
  chainId: number;
969
972
  }[];
970
973
  } | null;
@@ -982,13 +985,13 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
982
985
  headers: unknown;
983
986
  response: {
984
987
  200: {
985
- id: number;
986
988
  name: string;
989
+ id: number;
987
990
  icon: string;
988
991
  explorers: {
989
- id: string;
990
992
  type: import("../../../database/api/.generated").$Enums.ExplorerType;
991
993
  url: string;
994
+ id: string;
992
995
  chainId: number;
993
996
  }[];
994
997
  }[];
@@ -1024,9 +1027,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1024
1027
  };
1025
1028
  response: {
1026
1029
  200: {
1027
- id: string;
1028
1030
  type: import("../../../database/api/.generated").$Enums.ExplorerType;
1029
1031
  url: string;
1032
+ id: string;
1030
1033
  chainId: number;
1031
1034
  };
1032
1035
  };
@@ -1091,10 +1094,10 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1091
1094
  headers: unknown;
1092
1095
  response: {
1093
1096
  200: {
1094
- id: number;
1095
1097
  symbol: string;
1096
1098
  method: import("../../../database/api/.generated").$Enums.PriceSourceMethod;
1097
- args: import("../../../database/api/.generated").Prisma.JsonValue | null;
1099
+ args: import("database/api/.generated/runtime/library").JsonValue | null;
1100
+ id: number;
1098
1101
  }[];
1099
1102
  };
1100
1103
  };
@@ -1113,10 +1116,10 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1113
1116
  headers: unknown;
1114
1117
  response: {
1115
1118
  200: {
1116
- id: number;
1117
1119
  symbol: string;
1118
1120
  method: import("../../../database/api/.generated").$Enums.PriceSourceMethod;
1119
- args: import("../../../database/api/.generated").Prisma.JsonValue | null;
1121
+ args: import("database/api/.generated/runtime/library").JsonValue | null;
1122
+ id: number;
1120
1123
  };
1121
1124
  };
1122
1125
  };
@@ -1162,10 +1165,10 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1162
1165
  };
1163
1166
  response: {
1164
1167
  200: {
1165
- id: number;
1166
1168
  symbol: string;
1167
1169
  method: import("../../../database/api/.generated").$Enums.PriceSourceMethod;
1168
- args: import("../../../database/api/.generated").Prisma.JsonValue | null;
1170
+ args: import("database/api/.generated/runtime/library").JsonValue | null;
1171
+ id: number;
1169
1172
  };
1170
1173
  };
1171
1174
  };
@@ -1187,10 +1190,10 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1187
1190
  };
1188
1191
  response: {
1189
1192
  200: {
1190
- id: number;
1191
1193
  symbol: string;
1192
1194
  method: import("../../../database/api/.generated").$Enums.PriceSourceMethod;
1193
- args: import("../../../database/api/.generated").Prisma.JsonValue | null;
1195
+ args: import("database/api/.generated/runtime/library").JsonValue | null;
1196
+ id: number;
1194
1197
  };
1195
1198
  };
1196
1199
  };
@@ -1215,7 +1218,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1215
1218
  poolAddress: string;
1216
1219
  userAddress: string;
1217
1220
  arrestTimestamp: bigint;
1218
- arrestDetails: import("../../../database/api/.generated").Prisma.JsonValue;
1221
+ arrestDetails: import("database/api/.generated/runtime/library").JsonValue;
1219
1222
  }[];
1220
1223
  };
1221
1224
  };
@@ -1277,7 +1280,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1277
1280
  poolAddress: string;
1278
1281
  userAddress: string;
1279
1282
  arrestTimestamp: bigint;
1280
- arrestDetails: import("../../../database/api/.generated").Prisma.JsonValue;
1283
+ arrestDetails: import("database/api/.generated/runtime/library").JsonValue;
1281
1284
  };
1282
1285
  };
1283
1286
  };
@@ -1320,8 +1323,27 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1320
1323
  headers: unknown;
1321
1324
  response: {
1322
1325
  200: {
1326
+ tags: string[];
1323
1327
  address: string;
1328
+ }[];
1329
+ };
1330
+ };
1331
+ };
1332
+ };
1333
+ } & {
1334
+ users: {
1335
+ tags: {
1336
+ get: {
1337
+ body: unknown;
1338
+ params: Record<never, string>;
1339
+ query: unknown;
1340
+ headers: {
1341
+ authorization: string;
1342
+ };
1343
+ response: {
1344
+ 200: {
1324
1345
  tags: string[];
1346
+ address: string;
1325
1347
  }[];
1326
1348
  };
1327
1349
  };
@@ -1337,6 +1359,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1337
1359
  headers: unknown;
1338
1360
  response: {
1339
1361
  200: {
1362
+ tags: string[];
1340
1363
  address: string;
1341
1364
  } | null;
1342
1365
  };
@@ -1362,13 +1385,13 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1362
1385
  }, "rewards"> & {
1363
1386
  rewards: (Omit<{
1364
1387
  token: {
1365
- id: string;
1388
+ symbol: string;
1366
1389
  name: string | null;
1390
+ id: string;
1367
1391
  chainId: number;
1368
1392
  address: string;
1369
- decimals: number;
1370
- symbol: string;
1371
1393
  icon: string;
1394
+ decimals: number;
1372
1395
  verified: boolean;
1373
1396
  price: number | null;
1374
1397
  };
@@ -1376,63 +1399,63 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1376
1399
  campaignId: string;
1377
1400
  opportunity: {
1378
1401
  Chain: {
1379
- id: number;
1380
1402
  name: string;
1403
+ id: number;
1381
1404
  icon: string;
1382
1405
  };
1383
1406
  Tokens: {
1384
- id: string;
1407
+ symbol: string;
1385
1408
  name: string | null;
1409
+ id: string;
1386
1410
  chainId: number;
1387
1411
  address: string;
1388
- decimals: number;
1389
- symbol: string;
1390
1412
  icon: string;
1413
+ decimals: number;
1391
1414
  verified: boolean;
1392
1415
  price: number | null;
1393
1416
  }[];
1394
1417
  Protocols: {
1395
- id: string;
1396
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
1397
1418
  name: string;
1398
- description: string;
1399
1419
  url: string;
1420
+ description: string;
1421
+ id: string;
1422
+ tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
1400
1423
  icon: string;
1401
1424
  }[];
1402
1425
  MainProtocol: {
1403
- id: string;
1404
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
1405
1426
  name: string;
1406
- description: string;
1407
1427
  url: string;
1428
+ description: string;
1429
+ id: string;
1430
+ tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
1408
1431
  icon: string;
1409
1432
  } | null;
1410
1433
  } & {
1411
- id: string;
1412
- chainId: number;
1413
- type: import("../../../database/api/.generated").$Enums.CampaignType;
1414
- identifier: string;
1415
1434
  name: string;
1435
+ type: import("../../../database/api/.generated").$Enums.CampaignType;
1436
+ id: string;
1416
1437
  status: import("../../../database/api/.generated").$Enums.Status;
1438
+ tags: string[];
1439
+ identifier: string;
1440
+ chainId: number;
1417
1441
  action: import("../../../database/api/.generated").$Enums.OpportunityAction;
1418
1442
  mainProtocolId: string | null;
1419
1443
  tvl: number;
1420
1444
  apr: number;
1421
1445
  dailyRewards: number;
1422
- tags: string[];
1423
1446
  };
1424
1447
  reason: string;
1448
+ pending: string;
1425
1449
  amount: string;
1426
1450
  claimed: string;
1427
- pending: string;
1428
1451
  auxiliaryData1: string | null;
1429
1452
  auxiliaryData2: string | null;
1430
1453
  }[];
1431
1454
  claimed: bigint;
1432
1455
  amount: bigint;
1433
1456
  pending: bigint;
1434
- root: string;
1435
1457
  recipient: string;
1458
+ root: string;
1436
1459
  proofs: string[];
1437
1460
  }, "breakdowns"> & {
1438
1461
  breakdowns: {
@@ -1472,13 +1495,13 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1472
1495
  }, "rewards"> & {
1473
1496
  rewards: (Omit<{
1474
1497
  token: {
1475
- id: string;
1498
+ symbol: string;
1476
1499
  name: string | null;
1500
+ id: string;
1477
1501
  chainId: number;
1478
1502
  address: string;
1479
- decimals: number;
1480
- symbol: string;
1481
1503
  icon: string;
1504
+ decimals: number;
1482
1505
  verified: boolean;
1483
1506
  price: number | null;
1484
1507
  };
@@ -1486,71 +1509,71 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1486
1509
  campaignId: string;
1487
1510
  opportunity: {
1488
1511
  Chain: {
1489
- id: number;
1490
1512
  name: string;
1513
+ id: number;
1491
1514
  icon: string;
1492
1515
  };
1493
1516
  Tokens: {
1494
- id: string;
1517
+ symbol: string;
1495
1518
  name: string | null;
1519
+ id: string;
1496
1520
  chainId: number;
1497
1521
  address: string;
1498
- decimals: number;
1499
- symbol: string;
1500
1522
  icon: string;
1523
+ decimals: number;
1501
1524
  verified: boolean;
1502
1525
  price: number | null;
1503
1526
  }[];
1504
1527
  Protocols: {
1505
- id: string;
1506
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
1507
1528
  name: string;
1508
- description: string;
1509
1529
  url: string;
1530
+ description: string;
1531
+ id: string;
1532
+ tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
1510
1533
  icon: string;
1511
1534
  }[];
1512
1535
  MainProtocol: {
1513
- id: string;
1514
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
1515
1536
  name: string;
1516
- description: string;
1517
1537
  url: string;
1538
+ description: string;
1539
+ id: string;
1540
+ tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
1518
1541
  icon: string;
1519
1542
  } | null;
1520
1543
  } & {
1521
- id: string;
1522
- chainId: number;
1523
- type: import("../../../database/api/.generated").$Enums.CampaignType;
1524
- identifier: string;
1525
1544
  name: string;
1545
+ type: import("../../../database/api/.generated").$Enums.CampaignType;
1546
+ id: string;
1526
1547
  status: import("../../../database/api/.generated").$Enums.Status;
1548
+ tags: string[];
1549
+ identifier: string;
1550
+ chainId: number;
1527
1551
  action: import("../../../database/api/.generated").$Enums.OpportunityAction;
1528
1552
  mainProtocolId: string | null;
1529
1553
  tvl: number;
1530
1554
  apr: number;
1531
1555
  dailyRewards: number;
1532
- tags: string[];
1533
1556
  };
1534
1557
  reason: string;
1558
+ pending: string;
1535
1559
  amount: string;
1536
1560
  claimed: string;
1537
- pending: string;
1538
1561
  auxiliaryData1: string | null;
1539
1562
  auxiliaryData2: string | null;
1540
1563
  }[];
1541
1564
  claimed: bigint;
1542
1565
  amount: bigint;
1543
1566
  pending: bigint;
1544
- root: string;
1545
1567
  recipient: string;
1568
+ root: string;
1546
1569
  proofs: string[];
1547
1570
  }, "breakdowns"> & {
1548
1571
  breakdowns: {
1549
1572
  campaignId: string;
1550
1573
  reason: string;
1574
+ pending: string;
1551
1575
  amount: string;
1552
1576
  claimed: string;
1553
- pending: string;
1554
1577
  auxiliaryData1: string | null;
1555
1578
  auxiliaryData2: string | null;
1556
1579
  }[];
@@ -1576,13 +1599,29 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1576
1599
  };
1577
1600
  response: {
1578
1601
  200: {
1579
- address: string;
1580
1602
  tags: string[];
1603
+ address: string;
1581
1604
  };
1582
1605
  };
1583
1606
  };
1584
1607
  };
1585
1608
  };
1609
+ } & {
1610
+ users: {
1611
+ sync: {
1612
+ post: {
1613
+ body: unknown;
1614
+ params: Record<never, string>;
1615
+ query: unknown;
1616
+ headers: {
1617
+ authorization: string;
1618
+ };
1619
+ response: {
1620
+ 200: void;
1621
+ };
1622
+ };
1623
+ };
1624
+ };
1586
1625
  } & {
1587
1626
  users: {
1588
1627
  ":address": {
@@ -1600,8 +1639,8 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1600
1639
  };
1601
1640
  response: {
1602
1641
  200: {
1603
- address: string;
1604
1642
  tags: string[];
1643
+ address: string;
1605
1644
  };
1606
1645
  };
1607
1646
  };
@@ -1612,7 +1651,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1612
1651
  } & {
1613
1652
  v4: {
1614
1653
  roots: {
1615
- index: {
1654
+ timestamps: {
1616
1655
  get: {
1617
1656
  body: unknown;
1618
1657
  params: Record<never, string>;
@@ -1624,10 +1663,28 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1624
1663
  headers: unknown;
1625
1664
  response: {
1626
1665
  200: {
1627
- root: string;
1666
+ timestamp: bigint;
1628
1667
  chainId: number;
1668
+ root: string;
1629
1669
  epoch: number;
1630
- timestamp: bigint;
1670
+ }[];
1671
+ };
1672
+ };
1673
+ };
1674
+ };
1675
+ } & {
1676
+ roots: {
1677
+ index: {
1678
+ get: {
1679
+ body: unknown;
1680
+ params: Record<never, string>;
1681
+ query: unknown;
1682
+ headers: unknown;
1683
+ response: {
1684
+ 200: {
1685
+ live: string;
1686
+ tree: string;
1687
+ lastTree: string;
1631
1688
  }[];
1632
1689
  };
1633
1690
  };
@@ -1752,6 +1809,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1752
1809
  response: {
1753
1810
  200: {
1754
1811
  id: string;
1812
+ timestamp: number;
1755
1813
  chainId: number;
1756
1814
  fromTokenId: string;
1757
1815
  toTokenId: string;
@@ -1760,7 +1818,6 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1760
1818
  amountIn: string;
1761
1819
  amountOut: string;
1762
1820
  datetime: Date;
1763
- timestamp: number;
1764
1821
  }[];
1765
1822
  };
1766
1823
  };
@@ -1999,12 +2056,12 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1999
2056
  headers: unknown;
2000
2057
  response: {
2001
2058
  200: {
2059
+ error: string;
2060
+ details: import("database/api/.generated/runtime/library").JsonValue;
2061
+ status: import("../../../database/api/.generated").$Enums.RunStatus;
2002
2062
  campaignId: string;
2003
2063
  computedUntil: bigint;
2004
2064
  processingStarted: bigint;
2005
- status: import("../../../database/api/.generated").$Enums.RunStatus;
2006
- error: string;
2007
- details: import("../../../database/api/.generated").Prisma.JsonValue;
2008
2065
  }[];
2009
2066
  };
2010
2067
  };
@@ -2023,27 +2080,27 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
2023
2080
  response: {
2024
2081
  200: ({
2025
2082
  Campaign: {
2083
+ type: import("../../../database/api/.generated").$Enums.CampaignType;
2026
2084
  id: string;
2085
+ params: import("database/api/.generated/runtime/library").JsonValue;
2086
+ subType: number | null;
2087
+ startTimestamp: bigint;
2088
+ endTimestamp: bigint;
2027
2089
  computeChainId: number;
2028
2090
  distributionChainId: number;
2029
2091
  campaignId: string;
2030
- type: import("../../../database/api/.generated").$Enums.CampaignType;
2031
- subType: number | null;
2032
2092
  rewardTokenId: string;
2033
2093
  amount: string;
2034
2094
  opportunityId: string;
2035
- startTimestamp: bigint;
2036
- endTimestamp: bigint;
2037
- params: import("../../../database/api/.generated").Prisma.JsonValue;
2038
2095
  creatorAddress: string;
2039
2096
  };
2040
2097
  } & {
2098
+ error: string;
2099
+ details: import("database/api/.generated/runtime/library").JsonValue;
2100
+ status: import("../../../database/api/.generated").$Enums.RunStatus;
2041
2101
  campaignId: string;
2042
2102
  computedUntil: bigint;
2043
2103
  processingStarted: bigint;
2044
- status: import("../../../database/api/.generated").$Enums.RunStatus;
2045
- error: string;
2046
- details: import("../../../database/api/.generated").Prisma.JsonValue;
2047
2104
  })[];
2048
2105
  };
2049
2106
  };
@@ -2062,12 +2119,12 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
2062
2119
  headers: unknown;
2063
2120
  response: {
2064
2121
  200: {
2122
+ error: string;
2123
+ details: import("database/api/.generated/runtime/library").JsonValue;
2124
+ status: import("../../../database/api/.generated").$Enums.RunStatus;
2065
2125
  campaignId: string;
2066
2126
  computedUntil: bigint;
2067
2127
  processingStarted: bigint;
2068
- status: import("../../../database/api/.generated").$Enums.RunStatus;
2069
- error: string;
2070
- details: import("../../../database/api/.generated").Prisma.JsonValue;
2071
2128
  };
2072
2129
  };
2073
2130
  };
@@ -2086,12 +2143,12 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
2086
2143
  headers: unknown;
2087
2144
  response: {
2088
2145
  200: {
2146
+ error: string;
2147
+ details: import("database/api/.generated/runtime/library").JsonValue;
2148
+ status: import("../../../database/api/.generated").$Enums.RunStatus;
2089
2149
  campaignId: string;
2090
2150
  computedUntil: bigint;
2091
2151
  processingStarted: bigint;
2092
- status: import("../../../database/api/.generated").$Enums.RunStatus;
2093
- error: string;
2094
- details: import("../../../database/api/.generated").Prisma.JsonValue;
2095
2152
  }[];
2096
2153
  };
2097
2154
  };