@merkl/api 0.10.391 → 0.10.393

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/dist/database/api/.generated/edge.js +9 -7
  2. package/dist/database/api/.generated/index-browser.js +4 -4
  3. package/dist/database/api/.generated/index.d.ts +3687 -491
  4. package/dist/database/api/.generated/index.js +9 -7
  5. package/dist/database/api/.generated/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
  6. package/dist/database/api/.generated/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0 -0
  7. package/dist/database/api/.generated/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
  8. package/dist/database/api/.generated/package.json +1 -1
  9. package/dist/database/api/.generated/runtime/edge-esm.js +18 -18
  10. package/dist/database/api/.generated/runtime/edge.js +18 -18
  11. package/dist/database/api/.generated/runtime/index-browser.d.ts +1 -1
  12. package/dist/database/api/.generated/runtime/library.d.ts +107 -38
  13. package/dist/database/api/.generated/runtime/library.js +53 -53
  14. package/dist/database/api/.generated/runtime/react-native.js +26 -26
  15. package/dist/database/api/.generated/runtime/wasm.js +19 -19
  16. package/dist/database/api/.generated/wasm.js +4 -4
  17. package/dist/database/engine/.generated/edge.js +9 -7
  18. package/dist/database/engine/.generated/index-browser.js +4 -4
  19. package/dist/database/engine/.generated/index.d.ts +1891 -257
  20. package/dist/database/engine/.generated/index.js +9 -7
  21. package/dist/database/engine/.generated/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
  22. package/dist/database/engine/.generated/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0 -0
  23. package/dist/database/engine/.generated/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
  24. package/dist/database/engine/.generated/package.json +1 -1
  25. package/dist/database/engine/.generated/runtime/edge-esm.js +18 -18
  26. package/dist/database/engine/.generated/runtime/edge.js +18 -18
  27. package/dist/database/engine/.generated/runtime/index-browser.d.ts +1 -1
  28. package/dist/database/engine/.generated/runtime/library.d.ts +107 -38
  29. package/dist/database/engine/.generated/runtime/library.js +53 -53
  30. package/dist/database/engine/.generated/runtime/react-native.js +26 -26
  31. package/dist/database/engine/.generated/runtime/wasm.js +19 -19
  32. package/dist/database/engine/.generated/wasm.js +4 -4
  33. package/dist/src/backgroundJobs/jobs/campaignsCacheUpdater.d.ts +12 -2
  34. package/dist/src/backgroundJobs/jobs/health.d.ts +12 -2
  35. package/dist/src/backgroundJobs/jobs/opportunityUpdater.d.ts +3 -2
  36. package/dist/src/backgroundJobs/jobs/priceUpdater.d.ts +3 -2
  37. package/dist/src/backgroundJobs/jobs/sync.d.ts +12 -2
  38. package/dist/src/eden/index.d.ts +4021 -117
  39. package/dist/src/entities/opportunity.js +1 -1
  40. package/dist/src/hooks/checkQueryAddressValidity.d.ts +3 -2
  41. package/dist/src/hooks/checkQueryChainIdValidity.d.ts +3 -2
  42. package/dist/src/index.d.ts +1343 -49
  43. package/dist/src/internal/controllers/endingCampaigns.d.ts +12 -2
  44. package/dist/src/internal/controllers/unclaimed.d.ts +12 -2
  45. package/dist/src/jobs/etl/pendings.js +38 -38
  46. package/dist/src/jobs/etl/reward-breakdowns.js +55 -52
  47. package/dist/src/jobs/etl/rewards.js +37 -35
  48. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.d.ts +5 -1
  49. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.js +8 -0
  50. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/AaveProcessor.js +2 -3
  51. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/processorMapping.js +4 -0
  52. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1.js +8 -0
  53. package/dist/src/modules/v4/accounting/accounting.controller.d.ts +66 -2
  54. package/dist/src/modules/v4/blacklist/blacklist.controller.d.ts +30 -2
  55. package/dist/src/modules/v4/boost/boost.controller.d.ts +12 -2
  56. package/dist/src/modules/v4/bucket/bucket.service.d.ts +1 -1
  57. package/dist/src/modules/v4/bucket/bucket.service.js +5 -0
  58. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +78 -5
  59. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +6 -6
  60. package/dist/src/modules/v4/campaign/campaign.service.d.ts +4 -4
  61. package/dist/src/modules/v4/chain/chain.controller.d.ts +39 -2
  62. package/dist/src/modules/v4/claims/claims.controller.d.ts +12 -2
  63. package/dist/src/modules/v4/computedValue/computedValue.controller.d.ts +39 -2
  64. package/dist/src/modules/v4/creator/creator.controller.d.ts +39 -2
  65. package/dist/src/modules/v4/dungeonKeeper/dungeonKeeper.controller.d.ts +3 -2
  66. package/dist/src/modules/v4/dynamicData/dynamicData.controller.d.ts +31 -3
  67. package/dist/src/modules/v4/enso/enso.service.d.ts +1 -1
  68. package/dist/src/modules/v4/explorer/explorer.controller.d.ts +12 -2
  69. package/dist/src/modules/v4/interaction/interaction.controller.d.ts +31 -3
  70. package/dist/src/modules/v4/liquidity/liquidity.controller.d.ts +12 -2
  71. package/dist/src/modules/v4/merklRoot/merklRoot.controller.d.ts +21 -2
  72. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +118 -18
  73. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +1 -1
  74. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +30 -30
  75. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +12 -12
  76. package/dist/src/modules/v4/price/price.controller.d.ts +48 -2
  77. package/dist/src/modules/v4/programPayload/programPayload.controller.d.ts +75 -2
  78. package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +0 -1
  79. package/dist/src/modules/v4/programPayload/programPayload.repository.js +3 -10
  80. package/dist/src/modules/v4/protocol/protocol.controller.d.ts +46 -9
  81. package/dist/src/modules/v4/protocol/protocol.repository.d.ts +5 -5
  82. package/dist/src/modules/v4/protocol/protocol.service.d.ts +2 -2
  83. package/dist/src/modules/v4/reward/reward.controller.d.ts +111 -2
  84. package/dist/src/modules/v4/reward/reward.repository.d.ts +3 -3
  85. package/dist/src/modules/v4/reward/reward.service.d.ts +18 -18
  86. package/dist/src/modules/v4/router.d.ts +973 -36
  87. package/dist/src/modules/v4/status/status.controller.d.ts +48 -2
  88. package/dist/src/modules/v4/token/token.controller.d.ts +75 -2
  89. package/dist/src/modules/v4/uniswapV4/uniswapV4.controller.d.ts +12 -2
  90. package/dist/src/modules/v4/user/user.controller.d.ts +90 -8
  91. package/dist/src/plugins/error-handling.plugin.d.ts +3 -2
  92. package/dist/src/plugins/logger.plugin.d.ts +3 -2
  93. package/dist/src/routes/v1/allowances.d.ts +12 -2
  94. package/dist/src/routes/v1/balances.d.ts +12 -2
  95. package/dist/src/routes/v1/prices.d.ts +12 -2
  96. package/dist/src/routes/v1/router.d.ts +39 -2
  97. package/dist/src/routes/v1/tokens.d.ts +12 -2
  98. package/dist/src/routes/v2/merkl.d.ts +12 -2
  99. package/dist/src/routes/v2/router.d.ts +12 -2
  100. package/dist/src/routes/v3/app.d.ts +12 -2
  101. package/dist/src/routes/v3/blacklist.d.ts +12 -2
  102. package/dist/src/routes/v3/campaign/delay.d.ts +12 -2
  103. package/dist/src/routes/v3/campaignClaims.d.ts +12 -2
  104. package/dist/src/routes/v3/campaignReport.d.ts +12 -2
  105. package/dist/src/routes/v3/campaignUnclaimed.d.ts +12 -2
  106. package/dist/src/routes/v3/campaigns.d.ts +12 -2
  107. package/dist/src/routes/v3/campaignsForMainParameter.d.ts +12 -2
  108. package/dist/src/routes/v3/campaignsInfo.d.ts +12 -2
  109. package/dist/src/routes/v3/campaignsRewardsReport.d.ts +12 -2
  110. package/dist/src/routes/v3/claims.d.ts +12 -2
  111. package/dist/src/routes/v3/compoundV2.d.ts +12 -2
  112. package/dist/src/routes/v3/createCampaign.d.ts +12 -2
  113. package/dist/src/routes/v3/dolomite.d.ts +12 -2
  114. package/dist/src/routes/v3/euler.d.ts +12 -2
  115. package/dist/src/routes/v3/exports/campaigns.d.ts +12 -2
  116. package/dist/src/routes/v3/fetch.d.ts +12 -2
  117. package/dist/src/routes/v3/health.d.ts +12 -2
  118. package/dist/src/routes/v3/lostyield.d.ts +12 -2
  119. package/dist/src/routes/v3/merkl.d.ts +3 -2
  120. package/dist/src/routes/v3/morphoMarkets.d.ts +12 -2
  121. package/dist/src/routes/v3/morphoVaults.d.ts +12 -2
  122. package/dist/src/routes/v3/multiChainPositions.d.ts +12 -2
  123. package/dist/src/routes/v3/opportunity.d.ts +12 -2
  124. package/dist/src/routes/v3/overview.d.ts +12 -2
  125. package/dist/src/routes/v3/parse.d.ts +12 -2
  126. package/dist/src/routes/v3/payload.d.ts +12 -2
  127. package/dist/src/routes/v3/poolInfo.d.ts +12 -2
  128. package/dist/src/routes/v3/positions.d.ts +12 -2
  129. package/dist/src/routes/v3/radiant.d.ts +12 -2
  130. package/dist/src/routes/v3/recipients.d.ts +12 -2
  131. package/dist/src/routes/v3/rewards.d.ts +12 -2
  132. package/dist/src/routes/v3/rewardsReport.d.ts +12 -2
  133. package/dist/src/routes/v3/router.d.ts +328 -3
  134. package/dist/src/routes/v3/silo.d.ts +12 -2
  135. package/dist/src/routes/v3/token.d.ts +12 -2
  136. package/dist/src/routes/v3/tokenUnclaimed.d.ts +12 -2
  137. package/dist/src/routes/v3/twt/participants.d.ts +12 -2
  138. package/dist/src/routes/v3/uniswapv4.d.ts +12 -2
  139. package/dist/src/routes/v3/updates.d.ts +12 -2
  140. package/dist/src/routes/v3/userRewards.d.ts +12 -2
  141. package/dist/src/utils/decodeCalls.js +12 -3
  142. package/dist/src/utils/encodeCalls.js +20 -7
  143. package/dist/src/utils/error.d.ts +3 -2
  144. package/dist/src/utils/generateCardName.js +4 -0
  145. package/dist/src/utils/logger.d.ts +29 -5
  146. package/dist/tsconfig.package.tsbuildinfo +1 -1
  147. package/package.json +24 -24
@@ -1,16 +1,17 @@
1
1
  import Elysia from "elysia";
2
- export declare const RewardController: Elysia<"/rewards", false, {
2
+ export declare const RewardController: Elysia<"/rewards", {
3
3
  decorator: {};
4
4
  store: {};
5
5
  derive: {};
6
6
  resolve: {};
7
7
  }, {
8
- type: {};
8
+ typebox: import("@sinclair/typebox").TModule<{}>;
9
9
  error: {};
10
10
  }, {
11
11
  schema: {};
12
12
  macro: {};
13
13
  macroFn: {};
14
+ parser: {};
14
15
  }, {
15
16
  rewards: {
16
17
  index: {
@@ -26,6 +27,15 @@ export declare const RewardController: Elysia<"/rewards", false, {
26
27
  headers: unknown;
27
28
  response: {
28
29
  200: import("./reward.model").BreakdownForCampaignsRaw[];
30
+ 422: {
31
+ type: "validation";
32
+ on: string;
33
+ summary?: string;
34
+ message?: string;
35
+ found?: unknown;
36
+ property?: string;
37
+ expected?: string;
38
+ };
29
39
  };
30
40
  };
31
41
  };
@@ -46,6 +56,15 @@ export declare const RewardController: Elysia<"/rewards", false, {
46
56
  campaignId: string;
47
57
  amount: bigint;
48
58
  };
59
+ 422: {
60
+ type: "validation";
61
+ on: string;
62
+ summary?: string;
63
+ message?: string;
64
+ found?: unknown;
65
+ property?: string;
66
+ expected?: string;
67
+ };
49
68
  };
50
69
  };
51
70
  };
@@ -65,6 +84,15 @@ export declare const RewardController: Elysia<"/rewards", false, {
65
84
  200: {
66
85
  count: number;
67
86
  };
87
+ 422: {
88
+ type: "validation";
89
+ on: string;
90
+ summary?: string;
91
+ message?: string;
92
+ found?: unknown;
93
+ property?: string;
94
+ expected?: string;
95
+ };
68
96
  };
69
97
  };
70
98
  };
@@ -83,6 +111,15 @@ export declare const RewardController: Elysia<"/rewards", false, {
83
111
  headers: unknown;
84
112
  response: {
85
113
  200: import("./reward.model").BreakdownForTokenRaw[];
114
+ 422: {
115
+ type: "validation";
116
+ on: string;
117
+ summary?: string;
118
+ message?: string;
119
+ found?: unknown;
120
+ property?: string;
121
+ expected?: string;
122
+ };
86
123
  };
87
124
  };
88
125
  };
@@ -105,6 +142,15 @@ export declare const RewardController: Elysia<"/rewards", false, {
105
142
  tokenId: string;
106
143
  amount: bigint;
107
144
  };
145
+ 422: {
146
+ type: "validation";
147
+ on: string;
148
+ summary?: string;
149
+ message?: string;
150
+ found?: unknown;
151
+ property?: string;
152
+ expected?: string;
153
+ };
108
154
  };
109
155
  };
110
156
  };
@@ -126,6 +172,15 @@ export declare const RewardController: Elysia<"/rewards", false, {
126
172
  200: {
127
173
  count: number;
128
174
  };
175
+ 422: {
176
+ type: "validation";
177
+ on: string;
178
+ summary?: string;
179
+ message?: string;
180
+ found?: unknown;
181
+ property?: string;
182
+ expected?: string;
183
+ };
129
184
  };
130
185
  };
131
186
  };
@@ -153,6 +208,15 @@ export declare const RewardController: Elysia<"/rewards", false, {
153
208
  200: {
154
209
  count: number;
155
210
  };
211
+ 422: {
212
+ type: "validation";
213
+ on: string;
214
+ summary?: string;
215
+ message?: string;
216
+ found?: unknown;
217
+ property?: string;
218
+ expected?: string;
219
+ };
156
220
  };
157
221
  };
158
222
  };
@@ -186,6 +250,15 @@ export declare const RewardController: Elysia<"/rewards", false, {
186
250
  200: {
187
251
  count: number;
188
252
  } | undefined;
253
+ 422: {
254
+ type: "validation";
255
+ on: string;
256
+ summary?: string;
257
+ message?: string;
258
+ found?: unknown;
259
+ property?: string;
260
+ expected?: string;
261
+ };
189
262
  };
190
263
  };
191
264
  };
@@ -207,6 +280,15 @@ export declare const RewardController: Elysia<"/rewards", false, {
207
280
  };
208
281
  response: {
209
282
  200: void;
283
+ 422: {
284
+ type: "validation";
285
+ on: string;
286
+ summary?: string;
287
+ message?: string;
288
+ found?: unknown;
289
+ property?: string;
290
+ expected?: string;
291
+ };
210
292
  };
211
293
  };
212
294
  };
@@ -238,6 +320,15 @@ export declare const RewardController: Elysia<"/rewards", false, {
238
320
  created: number;
239
321
  updated: number;
240
322
  };
323
+ 422: {
324
+ type: "validation";
325
+ on: string;
326
+ summary?: string;
327
+ message?: string;
328
+ found?: unknown;
329
+ property?: string;
330
+ expected?: string;
331
+ };
241
332
  };
242
333
  };
243
334
  };
@@ -261,6 +352,15 @@ export declare const RewardController: Elysia<"/rewards", false, {
261
352
  breakdownCount: number;
262
353
  };
263
354
  };
355
+ 422: {
356
+ type: "validation";
357
+ on: string;
358
+ summary?: string;
359
+ message?: string;
360
+ found?: unknown;
361
+ property?: string;
362
+ expected?: string;
363
+ };
264
364
  };
265
365
  };
266
366
  };
@@ -280,6 +380,15 @@ export declare const RewardController: Elysia<"/rewards", false, {
280
380
  200: {
281
381
  [x: string]: string;
282
382
  };
383
+ 422: {
384
+ type: "validation";
385
+ on: string;
386
+ summary?: string;
387
+ message?: string;
388
+ found?: unknown;
389
+ property?: string;
390
+ expected?: string;
391
+ };
283
392
  };
284
393
  };
285
394
  };
@@ -41,24 +41,24 @@ export declare abstract class RewardRepository {
41
41
  price: number | null;
42
42
  }[];
43
43
  Protocols: {
44
+ description: string;
44
45
  name: string;
45
46
  url: string;
46
- description: string;
47
47
  id: string;
48
48
  tags: string[];
49
49
  icon: string;
50
50
  }[];
51
51
  MainProtocol: {
52
+ description: string;
52
53
  name: string;
53
54
  url: string;
54
- description: string;
55
55
  id: string;
56
56
  tags: string[];
57
57
  icon: string;
58
58
  } | null;
59
59
  } & {
60
- name: string;
61
60
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
61
+ name: string;
62
62
  id: string;
63
63
  status: import("../../../../database/api/.generated").$Enums.Status;
64
64
  tags: string[];
@@ -35,24 +35,24 @@ export declare abstract class RewardService {
35
35
  price: number | null;
36
36
  }[];
37
37
  Protocols: {
38
+ description: string;
38
39
  name: string;
39
40
  url: string;
40
- description: string;
41
41
  id: string;
42
42
  tags: string[];
43
43
  icon: string;
44
44
  }[];
45
45
  MainProtocol: {
46
+ description: string;
46
47
  name: string;
47
48
  url: string;
48
- description: string;
49
49
  id: string;
50
50
  tags: string[];
51
51
  icon: string;
52
52
  } | null;
53
53
  } & {
54
- name: string;
55
54
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
55
+ name: string;
56
56
  id: string;
57
57
  status: import("../../../../database/api/.generated").$Enums.Status;
58
58
  tags: string[];
@@ -113,24 +113,24 @@ export declare abstract class RewardService {
113
113
  price: number | null;
114
114
  }[];
115
115
  Protocols: {
116
+ description: string;
116
117
  name: string;
117
118
  url: string;
118
- description: string;
119
119
  id: string;
120
120
  tags: string[];
121
121
  icon: string;
122
122
  }[];
123
123
  MainProtocol: {
124
+ description: string;
124
125
  name: string;
125
126
  url: string;
126
- description: string;
127
127
  id: string;
128
128
  tags: string[];
129
129
  icon: string;
130
130
  } | null;
131
131
  } & {
132
- name: string;
133
132
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
133
+ name: string;
134
134
  id: string;
135
135
  status: import("../../../../database/api/.generated").$Enums.Status;
136
136
  tags: string[];
@@ -195,24 +195,24 @@ export declare abstract class RewardService {
195
195
  price: number | null;
196
196
  }[];
197
197
  Protocols: {
198
+ description: string;
198
199
  name: string;
199
200
  url: string;
200
- description: string;
201
201
  id: string;
202
202
  tags: string[];
203
203
  icon: string;
204
204
  }[];
205
205
  MainProtocol: {
206
+ description: string;
206
207
  name: string;
207
208
  url: string;
208
- description: string;
209
209
  id: string;
210
210
  tags: string[];
211
211
  icon: string;
212
212
  } | null;
213
213
  } & {
214
- name: string;
215
214
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
215
+ name: string;
216
216
  id: string;
217
217
  status: import("../../../../database/api/.generated").$Enums.Status;
218
218
  tags: string[];
@@ -308,24 +308,24 @@ export declare abstract class RewardService {
308
308
  price: number | null;
309
309
  }[];
310
310
  Protocols: {
311
+ description: string;
311
312
  name: string;
312
313
  url: string;
313
- description: string;
314
314
  id: string;
315
315
  tags: string[];
316
316
  icon: string;
317
317
  }[];
318
318
  MainProtocol: {
319
+ description: string;
319
320
  name: string;
320
321
  url: string;
321
- description: string;
322
322
  id: string;
323
323
  tags: string[];
324
324
  icon: string;
325
325
  } | null;
326
326
  } & {
327
- name: string;
328
327
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
328
+ name: string;
329
329
  id: string;
330
330
  status: import("../../../../database/api/.generated").$Enums.Status;
331
331
  tags: string[];
@@ -403,24 +403,24 @@ export declare abstract class RewardService {
403
403
  price: number | null;
404
404
  }[];
405
405
  Protocols: {
406
+ description: string;
406
407
  name: string;
407
408
  url: string;
408
- description: string;
409
409
  id: string;
410
410
  tags: string[];
411
411
  icon: string;
412
412
  }[];
413
413
  MainProtocol: {
414
+ description: string;
414
415
  name: string;
415
416
  url: string;
416
- description: string;
417
417
  id: string;
418
418
  tags: string[];
419
419
  icon: string;
420
420
  } | null;
421
421
  } & {
422
- name: string;
423
422
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
423
+ name: string;
424
424
  id: string;
425
425
  status: import("../../../../database/api/.generated").$Enums.Status;
426
426
  tags: string[];
@@ -496,24 +496,24 @@ export declare abstract class RewardService {
496
496
  price: number | null;
497
497
  }[];
498
498
  Protocols: {
499
+ description: string;
499
500
  name: string;
500
501
  url: string;
501
- description: string;
502
502
  id: string;
503
503
  tags: string[];
504
504
  icon: string;
505
505
  }[];
506
506
  MainProtocol: {
507
+ description: string;
507
508
  name: string;
508
509
  url: string;
509
- description: string;
510
510
  id: string;
511
511
  tags: string[];
512
512
  icon: string;
513
513
  } | null;
514
514
  } & {
515
- name: string;
516
515
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
516
+ name: string;
517
517
  id: string;
518
518
  status: import("../../../../database/api/.generated").$Enums.Status;
519
519
  tags: string[];