@merkl/api 0.10.390 → 0.10.392

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 (151) 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 +1 -1
  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/libs/campaigns/campaignTypes/HyperdriveDynamicData.js +22 -19
  54. package/dist/src/modules/v4/accounting/accounting.controller.d.ts +66 -2
  55. package/dist/src/modules/v4/blacklist/blacklist.controller.d.ts +30 -2
  56. package/dist/src/modules/v4/boost/boost.controller.d.ts +12 -2
  57. package/dist/src/modules/v4/bucket/bucket.service.d.ts +1 -1
  58. package/dist/src/modules/v4/bucket/bucket.service.js +5 -0
  59. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +78 -5
  60. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +6 -6
  61. package/dist/src/modules/v4/campaign/campaign.service.d.ts +4 -4
  62. package/dist/src/modules/v4/chain/chain.controller.d.ts +39 -2
  63. package/dist/src/modules/v4/claims/claims.controller.d.ts +12 -2
  64. package/dist/src/modules/v4/computedValue/computedValue.controller.d.ts +39 -2
  65. package/dist/src/modules/v4/creator/creator.controller.d.ts +39 -2
  66. package/dist/src/modules/v4/dungeonKeeper/dungeonKeeper.controller.d.ts +3 -2
  67. package/dist/src/modules/v4/dynamicData/dynamicData.controller.d.ts +31 -3
  68. package/dist/src/modules/v4/enso/enso.service.d.ts +1 -1
  69. package/dist/src/modules/v4/explorer/explorer.controller.d.ts +12 -2
  70. package/dist/src/modules/v4/interaction/interaction.controller.d.ts +31 -3
  71. package/dist/src/modules/v4/liquidity/liquidity.controller.d.ts +12 -2
  72. package/dist/src/modules/v4/merklRoot/merklRoot.controller.d.ts +21 -2
  73. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +118 -18
  74. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +1 -1
  75. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +30 -30
  76. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +12 -12
  77. package/dist/src/modules/v4/opportunity/opportunity.service.js +1 -1
  78. package/dist/src/modules/v4/opportunity/subservices/getHyperdriveMetadata.service.d.ts +1 -1
  79. package/dist/src/modules/v4/opportunity/subservices/getHyperdriveMetadata.service.js +4 -0
  80. package/dist/src/modules/v4/price/price.controller.d.ts +48 -2
  81. package/dist/src/modules/v4/programPayload/programPayload.controller.d.ts +75 -2
  82. package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +0 -1
  83. package/dist/src/modules/v4/programPayload/programPayload.repository.js +3 -10
  84. package/dist/src/modules/v4/protocol/protocol.controller.d.ts +46 -9
  85. package/dist/src/modules/v4/protocol/protocol.repository.d.ts +5 -5
  86. package/dist/src/modules/v4/protocol/protocol.service.d.ts +2 -2
  87. package/dist/src/modules/v4/reward/reward.controller.d.ts +111 -2
  88. package/dist/src/modules/v4/reward/reward.repository.d.ts +3 -3
  89. package/dist/src/modules/v4/reward/reward.service.d.ts +18 -18
  90. package/dist/src/modules/v4/router.d.ts +973 -36
  91. package/dist/src/modules/v4/status/status.controller.d.ts +48 -2
  92. package/dist/src/modules/v4/token/token.controller.d.ts +75 -2
  93. package/dist/src/modules/v4/uniswapV4/uniswapV4.controller.d.ts +12 -2
  94. package/dist/src/modules/v4/user/user.controller.d.ts +90 -8
  95. package/dist/src/plugins/error-handling.plugin.d.ts +3 -2
  96. package/dist/src/plugins/logger.plugin.d.ts +3 -2
  97. package/dist/src/routes/v1/allowances.d.ts +12 -2
  98. package/dist/src/routes/v1/balances.d.ts +12 -2
  99. package/dist/src/routes/v1/prices.d.ts +12 -2
  100. package/dist/src/routes/v1/router.d.ts +39 -2
  101. package/dist/src/routes/v1/tokens.d.ts +12 -2
  102. package/dist/src/routes/v2/merkl.d.ts +12 -2
  103. package/dist/src/routes/v2/router.d.ts +12 -2
  104. package/dist/src/routes/v3/app.d.ts +12 -2
  105. package/dist/src/routes/v3/blacklist.d.ts +12 -2
  106. package/dist/src/routes/v3/campaign/delay.d.ts +12 -2
  107. package/dist/src/routes/v3/campaignClaims.d.ts +12 -2
  108. package/dist/src/routes/v3/campaignReport.d.ts +12 -2
  109. package/dist/src/routes/v3/campaignUnclaimed.d.ts +12 -2
  110. package/dist/src/routes/v3/campaigns.d.ts +12 -2
  111. package/dist/src/routes/v3/campaignsForMainParameter.d.ts +12 -2
  112. package/dist/src/routes/v3/campaignsInfo.d.ts +12 -2
  113. package/dist/src/routes/v3/campaignsRewardsReport.d.ts +12 -2
  114. package/dist/src/routes/v3/claims.d.ts +12 -2
  115. package/dist/src/routes/v3/compoundV2.d.ts +12 -2
  116. package/dist/src/routes/v3/createCampaign.d.ts +12 -2
  117. package/dist/src/routes/v3/dolomite.d.ts +12 -2
  118. package/dist/src/routes/v3/euler.d.ts +12 -2
  119. package/dist/src/routes/v3/exports/campaigns.d.ts +12 -2
  120. package/dist/src/routes/v3/fetch.d.ts +12 -2
  121. package/dist/src/routes/v3/health.d.ts +12 -2
  122. package/dist/src/routes/v3/lostyield.d.ts +12 -2
  123. package/dist/src/routes/v3/merkl.d.ts +3 -2
  124. package/dist/src/routes/v3/morphoMarkets.d.ts +12 -2
  125. package/dist/src/routes/v3/morphoVaults.d.ts +12 -2
  126. package/dist/src/routes/v3/multiChainPositions.d.ts +12 -2
  127. package/dist/src/routes/v3/opportunity.d.ts +12 -2
  128. package/dist/src/routes/v3/overview.d.ts +12 -2
  129. package/dist/src/routes/v3/parse.d.ts +12 -2
  130. package/dist/src/routes/v3/payload.d.ts +12 -2
  131. package/dist/src/routes/v3/poolInfo.d.ts +12 -2
  132. package/dist/src/routes/v3/positions.d.ts +12 -2
  133. package/dist/src/routes/v3/radiant.d.ts +12 -2
  134. package/dist/src/routes/v3/recipients.d.ts +12 -2
  135. package/dist/src/routes/v3/rewards.d.ts +12 -2
  136. package/dist/src/routes/v3/rewardsReport.d.ts +12 -2
  137. package/dist/src/routes/v3/router.d.ts +328 -3
  138. package/dist/src/routes/v3/silo.d.ts +12 -2
  139. package/dist/src/routes/v3/token.d.ts +12 -2
  140. package/dist/src/routes/v3/tokenUnclaimed.d.ts +12 -2
  141. package/dist/src/routes/v3/twt/participants.d.ts +12 -2
  142. package/dist/src/routes/v3/uniswapv4.d.ts +12 -2
  143. package/dist/src/routes/v3/updates.d.ts +12 -2
  144. package/dist/src/routes/v3/userRewards.d.ts +12 -2
  145. package/dist/src/utils/decodeCalls.js +12 -3
  146. package/dist/src/utils/encodeCalls.js +20 -7
  147. package/dist/src/utils/error.d.ts +3 -2
  148. package/dist/src/utils/generateCardName.js +4 -0
  149. package/dist/src/utils/logger.d.ts +29 -5
  150. package/dist/tsconfig.package.tsbuildinfo +1 -1
  151. package/package.json +24 -24
@@ -1,16 +1,17 @@
1
1
  import Elysia from "elysia";
2
- export declare const StatusController: Elysia<"/campaign-status", false, {
2
+ export declare const StatusController: Elysia<"/campaign-status", {
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
  "campaign-status": {
16
17
  engine: {
@@ -39,6 +40,15 @@ export declare const StatusController: Elysia<"/campaign-status", false, {
39
40
  };
40
41
  response: {
41
42
  200: void;
43
+ 422: {
44
+ type: "validation";
45
+ on: string;
46
+ summary?: string;
47
+ message?: string;
48
+ found?: unknown;
49
+ property?: string;
50
+ expected?: string;
51
+ };
42
52
  };
43
53
  };
44
54
  };
@@ -58,6 +68,15 @@ export declare const StatusController: Elysia<"/campaign-status", false, {
58
68
  };
59
69
  response: {
60
70
  200: boolean;
71
+ 422: {
72
+ type: "validation";
73
+ on: string;
74
+ summary?: string;
75
+ message?: string;
76
+ found?: unknown;
77
+ property?: string;
78
+ expected?: string;
79
+ };
61
80
  };
62
81
  };
63
82
  };
@@ -81,6 +100,15 @@ export declare const StatusController: Elysia<"/campaign-status", false, {
81
100
  computedUntil: bigint;
82
101
  processingStarted: bigint;
83
102
  }[];
103
+ 422: {
104
+ type: "validation";
105
+ on: string;
106
+ summary?: string;
107
+ message?: string;
108
+ found?: unknown;
109
+ property?: string;
110
+ expected?: string;
111
+ };
84
112
  };
85
113
  };
86
114
  };
@@ -109,6 +137,15 @@ export declare const StatusController: Elysia<"/campaign-status", false, {
109
137
  computedUntil: bigint;
110
138
  processingStarted: bigint;
111
139
  };
140
+ 422: {
141
+ type: "validation";
142
+ on: string;
143
+ summary?: string;
144
+ message?: string;
145
+ found?: unknown;
146
+ property?: string;
147
+ expected?: string;
148
+ };
112
149
  };
113
150
  };
114
151
  };
@@ -145,6 +182,15 @@ export declare const StatusController: Elysia<"/campaign-status", false, {
145
182
  processingStarted: bigint;
146
183
  }[];
147
184
  }[];
185
+ 422: {
186
+ type: "validation";
187
+ on: string;
188
+ summary?: string;
189
+ message?: string;
190
+ found?: unknown;
191
+ property?: string;
192
+ expected?: string;
193
+ };
148
194
  };
149
195
  };
150
196
  };
@@ -1,16 +1,17 @@
1
1
  import Elysia from "elysia";
2
- export declare const TokenController: Elysia<"/tokens", false, {
2
+ export declare const TokenController: Elysia<"/tokens", {
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
  tokens: {
16
17
  ":id": {
@@ -34,6 +35,15 @@ export declare const TokenController: Elysia<"/tokens", false, {
34
35
  isTest: boolean;
35
36
  price?: number | null | undefined;
36
37
  } | undefined;
38
+ 422: {
39
+ type: "validation";
40
+ on: string;
41
+ summary?: string;
42
+ message?: string;
43
+ found?: unknown;
44
+ property?: string;
45
+ expected?: string;
46
+ };
37
47
  };
38
48
  };
39
49
  };
@@ -67,6 +77,15 @@ export declare const TokenController: Elysia<"/tokens", false, {
67
77
  isTest: boolean;
68
78
  price?: number | null | undefined;
69
79
  } | undefined;
80
+ 422: {
81
+ type: "validation";
82
+ on: string;
83
+ summary?: string;
84
+ message?: string;
85
+ found?: unknown;
86
+ property?: string;
87
+ expected?: string;
88
+ };
70
89
  };
71
90
  };
72
91
  };
@@ -100,6 +119,15 @@ export declare const TokenController: Elysia<"/tokens", false, {
100
119
  isTest: boolean;
101
120
  price: number | null;
102
121
  }[];
122
+ 422: {
123
+ type: "validation";
124
+ on: string;
125
+ summary?: string;
126
+ message?: string;
127
+ found?: unknown;
128
+ property?: string;
129
+ expected?: string;
130
+ };
103
131
  };
104
132
  };
105
133
  };
@@ -134,6 +162,15 @@ export declare const TokenController: Elysia<"/tokens", false, {
134
162
  } & {
135
163
  balance: bigint;
136
164
  })[];
165
+ 422: {
166
+ type: "validation";
167
+ on: string;
168
+ summary?: string;
169
+ message?: string;
170
+ found?: unknown;
171
+ property?: string;
172
+ expected?: string;
173
+ };
137
174
  };
138
175
  };
139
176
  };
@@ -168,6 +205,15 @@ export declare const TokenController: Elysia<"/tokens", false, {
168
205
  } & {
169
206
  price?: number | null | undefined;
170
207
  })[];
208
+ 422: {
209
+ type: "validation";
210
+ on: string;
211
+ summary?: string;
212
+ message?: string;
213
+ found?: unknown;
214
+ property?: string;
215
+ expected?: string;
216
+ };
171
217
  };
172
218
  };
173
219
  };
@@ -190,6 +236,15 @@ export declare const TokenController: Elysia<"/tokens", false, {
190
236
  headers: unknown;
191
237
  response: {
192
238
  200: number;
239
+ 422: {
240
+ type: "validation";
241
+ on: string;
242
+ summary?: string;
243
+ message?: string;
244
+ found?: unknown;
245
+ property?: string;
246
+ expected?: string;
247
+ };
193
248
  };
194
249
  };
195
250
  };
@@ -223,6 +278,15 @@ export declare const TokenController: Elysia<"/tokens", false, {
223
278
  isTest: boolean;
224
279
  price?: number | null | undefined;
225
280
  } | undefined;
281
+ 422: {
282
+ type: "validation";
283
+ on: string;
284
+ summary?: string;
285
+ message?: string;
286
+ found?: unknown;
287
+ property?: string;
288
+ expected?: string;
289
+ };
226
290
  };
227
291
  };
228
292
  };
@@ -257,6 +321,15 @@ export declare const TokenController: Elysia<"/tokens", false, {
257
321
  isTest: boolean;
258
322
  price: number | null;
259
323
  };
324
+ 422: {
325
+ type: "validation";
326
+ on: string;
327
+ summary?: string;
328
+ message?: string;
329
+ found?: unknown;
330
+ property?: string;
331
+ expected?: string;
332
+ };
260
333
  };
261
334
  };
262
335
  };
@@ -1,16 +1,17 @@
1
1
  import Elysia from "elysia";
2
- export declare const uniswapV4Controller: Elysia<"uniswap-v4", false, {
2
+ export declare const uniswapV4Controller: Elysia<"uniswap-v4", {
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
  "uniswap-v4": {
16
17
  pools: {
@@ -38,6 +39,15 @@ export declare const uniswapV4Controller: Elysia<"uniswap-v4", false, {
38
39
  symbolCurrency1: string;
39
40
  };
40
41
  };
42
+ 422: {
43
+ type: "validation";
44
+ on: string;
45
+ summary?: string;
46
+ message?: string;
47
+ found?: unknown;
48
+ property?: string;
49
+ expected?: string;
50
+ };
41
51
  };
42
52
  };
43
53
  };
@@ -1,17 +1,18 @@
1
1
  import { Elysia } from "elysia";
2
2
  import { RewardService } from "../reward";
3
- export declare const UserController: Elysia<"/users", false, {
3
+ export declare const UserController: Elysia<"/users", {
4
4
  decorator: {};
5
5
  store: {};
6
6
  derive: {};
7
7
  resolve: {};
8
8
  }, {
9
- type: {};
9
+ typebox: import("@sinclair/typebox").TModule<{}>;
10
10
  error: {};
11
11
  }, {
12
12
  schema: {};
13
13
  macro: {};
14
14
  macroFn: {};
15
+ parser: {};
15
16
  }, {
16
17
  users: {
17
18
  index: {
@@ -31,6 +32,15 @@ export declare const UserController: Elysia<"/users", false, {
31
32
  address: string;
32
33
  creatorId: string | null;
33
34
  }[];
35
+ 422: {
36
+ type: "validation";
37
+ on: string;
38
+ summary?: string;
39
+ message?: string;
40
+ found?: unknown;
41
+ property?: string;
42
+ expected?: string;
43
+ };
34
44
  };
35
45
  };
36
46
  };
@@ -51,6 +61,15 @@ export declare const UserController: Elysia<"/users", false, {
51
61
  address: string;
52
62
  creatorId: string | null;
53
63
  }[];
64
+ 422: {
65
+ type: "validation";
66
+ on: string;
67
+ summary?: string;
68
+ message?: string;
69
+ found?: unknown;
70
+ property?: string;
71
+ expected?: string;
72
+ };
54
73
  };
55
74
  };
56
75
  };
@@ -71,6 +90,15 @@ export declare const UserController: Elysia<"/users", false, {
71
90
  address: string;
72
91
  creatorId: string | null;
73
92
  } | null;
93
+ 422: {
94
+ type: "validation";
95
+ on: string;
96
+ summary?: string;
97
+ message?: string;
98
+ found?: unknown;
99
+ property?: string;
100
+ expected?: string;
101
+ };
74
102
  };
75
103
  };
76
104
  };
@@ -93,6 +121,15 @@ export declare const UserController: Elysia<"/users", false, {
93
121
  addresses: string[];
94
122
  icon?: string | undefined;
95
123
  } | null;
124
+ 422: {
125
+ type: "validation";
126
+ on: string;
127
+ summary?: string;
128
+ message?: string;
129
+ found?: unknown;
130
+ property?: string;
131
+ expected?: string;
132
+ };
96
133
  };
97
134
  };
98
135
  };
@@ -155,24 +192,24 @@ export declare const UserController: Elysia<"/users", false, {
155
192
  price: number | null;
156
193
  }[];
157
194
  Protocols: {
195
+ description: string;
158
196
  name: string;
159
197
  url: string;
160
- description: string;
161
198
  id: string;
162
199
  tags: string[];
163
200
  icon: string;
164
201
  }[];
165
202
  MainProtocol: {
203
+ description: string;
166
204
  name: string;
167
205
  url: string;
168
- description: string;
169
206
  id: string;
170
207
  tags: string[];
171
208
  icon: string;
172
209
  } | null;
173
210
  } & {
174
- name: string;
175
211
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
212
+ name: string;
176
213
  id: string;
177
214
  status: import("../../../../database/api/.generated").$Enums.Status;
178
215
  tags: string[];
@@ -210,6 +247,15 @@ export declare const UserController: Elysia<"/users", false, {
210
247
  })[];
211
248
  distributor: string;
212
249
  })[];
250
+ 422: {
251
+ type: "validation";
252
+ on: string;
253
+ summary?: string;
254
+ message?: string;
255
+ found?: unknown;
256
+ property?: string;
257
+ expected?: string;
258
+ };
213
259
  };
214
260
  };
215
261
  };
@@ -272,24 +318,24 @@ export declare const UserController: Elysia<"/users", false, {
272
318
  price: number | null;
273
319
  }[];
274
320
  Protocols: {
321
+ description: string;
275
322
  name: string;
276
323
  url: string;
277
- description: string;
278
324
  id: string;
279
325
  tags: string[];
280
326
  icon: string;
281
327
  }[];
282
328
  MainProtocol: {
329
+ description: string;
283
330
  name: string;
284
331
  url: string;
285
- description: string;
286
332
  id: string;
287
333
  tags: string[];
288
334
  icon: string;
289
335
  } | null;
290
336
  } & {
291
- name: string;
292
337
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
338
+ name: string;
293
339
  id: string;
294
340
  status: import("../../../../database/api/.generated").$Enums.Status;
295
341
  tags: string[];
@@ -327,6 +373,15 @@ export declare const UserController: Elysia<"/users", false, {
327
373
  }[];
328
374
  })[];
329
375
  })[];
376
+ 422: {
377
+ type: "validation";
378
+ on: string;
379
+ summary?: string;
380
+ message?: string;
381
+ found?: unknown;
382
+ property?: string;
383
+ expected?: string;
384
+ };
330
385
  };
331
386
  };
332
387
  };
@@ -351,6 +406,15 @@ export declare const UserController: Elysia<"/users", false, {
351
406
  address: string;
352
407
  creatorId: string | null;
353
408
  };
409
+ 422: {
410
+ type: "validation";
411
+ on: string;
412
+ summary?: string;
413
+ message?: string;
414
+ found?: unknown;
415
+ property?: string;
416
+ expected?: string;
417
+ };
354
418
  };
355
419
  };
356
420
  };
@@ -367,6 +431,15 @@ export declare const UserController: Elysia<"/users", false, {
367
431
  };
368
432
  response: {
369
433
  200: void;
434
+ 422: {
435
+ type: "validation";
436
+ on: string;
437
+ summary?: string;
438
+ message?: string;
439
+ found?: unknown;
440
+ property?: string;
441
+ expected?: string;
442
+ };
370
443
  };
371
444
  };
372
445
  };
@@ -392,6 +465,15 @@ export declare const UserController: Elysia<"/users", false, {
392
465
  address: string;
393
466
  creatorId: string | null;
394
467
  };
468
+ 422: {
469
+ type: "validation";
470
+ on: string;
471
+ summary?: string;
472
+ message?: string;
473
+ found?: unknown;
474
+ property?: string;
475
+ expected?: string;
476
+ };
395
477
  };
396
478
  };
397
479
  };
@@ -1,12 +1,12 @@
1
1
  import { BadRequestError, ConflictError, HttpError, NotFoundError, UnauthorizedError } from "../errors";
2
2
  import type Elysia from "elysia";
3
- export declare const ErrorHandler: (app: Elysia) => Elysia<"", false, {
3
+ export declare const ErrorHandler: (app: Elysia) => Elysia<"", {
4
4
  decorator: {};
5
5
  store: {};
6
6
  derive: {};
7
7
  resolve: {};
8
8
  }, {
9
- type: {};
9
+ typebox: import("@sinclair/typebox").TModule<{}, {}>;
10
10
  error: {
11
11
  readonly HttpError: HttpError;
12
12
  readonly BadRequestError: BadRequestError;
@@ -18,6 +18,7 @@ export declare const ErrorHandler: (app: Elysia) => Elysia<"", false, {
18
18
  schema: {};
19
19
  macro: {};
20
20
  macroFn: {};
21
+ parser: {};
21
22
  }, {}, {
22
23
  derive: {};
23
24
  resolve: {};
@@ -1,16 +1,17 @@
1
1
  import Elysia from "elysia";
2
- export declare const Logger: Elysia<"", false, {
2
+ export declare const Logger: Elysia<"", {
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
  derive: {};
16
17
  resolve: {};
@@ -21,18 +21,19 @@ export declare const response: import("@sinclair/typebox").TRecord<import("@sinc
21
21
  decimals: import("@sinclair/typebox").TNumber;
22
22
  symbol: import("@sinclair/typebox").TString;
23
23
  }>>;
24
- declare const _default: (app: Elysia) => Elysia<"", false, {
24
+ declare const _default: (app: Elysia) => Elysia<"", {
25
25
  decorator: {};
26
26
  store: {};
27
27
  derive: {};
28
28
  resolve: {};
29
29
  }, {
30
- type: {};
31
30
  error: {};
31
+ typebox: import("elysia/types").MergeTypeModule<import("elysia/types").MergeTypeModule<import("@sinclair/typebox").TModule<{}, {}>, import("@sinclair/typebox").TModule<{}, {}>>, import("@sinclair/typebox").TModule<{}, {}>>;
32
32
  }, {
33
33
  schema: {};
34
34
  macro: {};
35
35
  macroFn: {};
36
+ parser: {};
36
37
  }, {
37
38
  allowances: {
38
39
  get: {
@@ -52,6 +53,15 @@ declare const _default: (app: Elysia) => Elysia<"", false, {
52
53
  decimals: number;
53
54
  };
54
55
  };
56
+ 422: {
57
+ type: "validation";
58
+ on: string;
59
+ summary?: string;
60
+ message?: string;
61
+ found?: unknown;
62
+ property?: string;
63
+ expected?: string;
64
+ };
55
65
  };
56
66
  };
57
67
  };
@@ -4,18 +4,19 @@ export declare const response: import("@sinclair/typebox").TRecord<import("@sinc
4
4
  decimals: import("@sinclair/typebox").TNumber;
5
5
  symbol: import("@sinclair/typebox").TString;
6
6
  }>>;
7
- declare const _default: (app: Elysia) => Elysia<"", false, {
7
+ declare const _default: (app: Elysia) => Elysia<"", {
8
8
  decorator: {};
9
9
  store: {};
10
10
  derive: {};
11
11
  resolve: {};
12
12
  }, {
13
- type: {};
14
13
  error: {};
14
+ typebox: import("elysia/types").MergeTypeModule<import("elysia/types").MergeTypeModule<import("@sinclair/typebox").TModule<{}, {}>, import("@sinclair/typebox").TModule<{}, {}>>, import("@sinclair/typebox").TModule<{}, {}>>;
15
15
  }, {
16
16
  schema: {};
17
17
  macro: {};
18
18
  macroFn: {};
19
+ parser: {};
19
20
  }, {
20
21
  balances: {
21
22
  get: {
@@ -35,6 +36,15 @@ declare const _default: (app: Elysia) => Elysia<"", false, {
35
36
  decimals: number;
36
37
  };
37
38
  };
39
+ 422: {
40
+ type: "validation";
41
+ on: string;
42
+ summary?: string;
43
+ message?: string;
44
+ found?: unknown;
45
+ property?: string;
46
+ expected?: string;
47
+ };
38
48
  };
39
49
  };
40
50
  };
@@ -3,18 +3,19 @@ export declare const response: import("@sinclair/typebox").TArray<import("@sincl
3
3
  rate: import("@sinclair/typebox").TNumber;
4
4
  token: import("@sinclair/typebox").TString;
5
5
  }>>;
6
- declare const _default: (app: Elysia) => Elysia<"", false, {
6
+ declare const _default: (app: Elysia) => Elysia<"", {
7
7
  decorator: {};
8
8
  store: {};
9
9
  derive: {};
10
10
  resolve: {};
11
11
  }, {
12
- type: {};
12
+ typebox: import("@sinclair/typebox").TModule<{}>;
13
13
  error: {};
14
14
  }, {
15
15
  schema: {};
16
16
  macro: {};
17
17
  macroFn: {};
18
+ parser: {};
18
19
  }, {
19
20
  prices: {
20
21
  get: {
@@ -27,6 +28,15 @@ declare const _default: (app: Elysia) => Elysia<"", false, {
27
28
  rate: number;
28
29
  token: string;
29
30
  }[];
31
+ 422: {
32
+ type: "validation";
33
+ on: string;
34
+ summary?: string;
35
+ message?: string;
36
+ found?: unknown;
37
+ property?: string;
38
+ expected?: string;
39
+ };
30
40
  };
31
41
  };
32
42
  };