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