@merkl/api 0.10.198 → 0.10.200

Sign up to get free protection for your applications and to get access to all the features.
Files changed (216) hide show
  1. package/dist/src/eden/index.d.ts +2 -6398
  2. package/dist/src/errors/HttpError.d.ts +5 -0
  3. package/dist/src/errors/HttpError.js +6 -0
  4. package/dist/src/errors/NotFound.error.d.ts +4 -0
  5. package/dist/src/errors/NotFound.error.js +5 -0
  6. package/dist/src/index.d.ts +1 -2464
  7. package/dist/src/index.js +56 -7
  8. package/dist/src/libs/campaigns/campaignTypes/ERC20DynamicData.js +15 -22
  9. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/factoryFinder.js +1 -0
  10. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.d.ts +3 -1
  11. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.js +8 -0
  12. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/GammaProcessor.d.ts +43 -0
  13. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/GammaProcessor.js +63 -0
  14. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/GenericProcessor.d.ts +3 -3
  15. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/GenericProcessor.js +3 -1
  16. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/NoLinkVaultProcessor.d.ts +36 -0
  17. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/NoLinkVaultProcessor.js +51 -0
  18. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/StakingProcessor.d.ts +0 -1
  19. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/StakingProcessor.js +15 -7
  20. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/processorMapping.js +4 -0
  21. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesPrices.d.ts +1 -1
  22. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesPrices.js +13 -572
  23. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1.d.ts +2 -21
  24. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1.js +197 -1174
  25. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound2.d.ts +1 -5
  26. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound2.js +11 -634
  27. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound3.d.ts +1 -4
  28. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound3.js +10 -380
  29. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound4.d.ts +3 -3
  30. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound4.js +11 -312
  31. package/dist/src/libs/campaigns/campaignTypes/EulerDynamicData.js +8 -8
  32. package/dist/src/libs/campaigns/campaignTypes/RadiantDynamicData.js +3 -4
  33. package/dist/src/libs/campaigns/campaignsDynamicData.js +0 -5
  34. package/dist/src/modules/v4/accounting/accounting.controller.js +1 -1
  35. package/dist/src/modules/v4/apr/apr.model.d.ts +26 -0
  36. package/dist/src/modules/v4/apr/apr.model.js +15 -1
  37. package/dist/src/modules/v4/blacklist/blacklist.controller.js +1 -1
  38. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +4 -4
  39. package/dist/src/modules/v4/campaign/campaign.controller.js +14 -4
  40. package/dist/src/modules/v4/campaign/campaign.model.d.ts +50 -5
  41. package/dist/src/modules/v4/campaign/campaign.model.js +47 -13
  42. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +2 -2
  43. package/dist/src/modules/v4/campaign/campaign.service.d.ts +2 -2
  44. package/dist/src/modules/v4/chain/chain.controller.d.ts +2 -2
  45. package/dist/src/modules/v4/chain/chain.controller.js +7 -2
  46. package/dist/src/modules/v4/chain/chain.model.d.ts +6 -1
  47. package/dist/src/modules/v4/chain/chain.model.js +8 -1
  48. package/dist/src/modules/v4/chain/chain.repository.js +1 -1
  49. package/dist/src/modules/v4/claims/claims.controller.js +1 -1
  50. package/dist/src/modules/v4/dynamicData/dynamicData.controller.js +4 -1
  51. package/dist/src/modules/v4/enso/enso.model.d.ts +1 -1
  52. package/dist/src/modules/v4/enso/enso.model.js +2 -1
  53. package/dist/src/modules/v4/enso/enso.service.d.ts +0 -1
  54. package/dist/src/modules/v4/enso/enso.service.js +4 -4
  55. package/dist/src/modules/v4/interaction/interaction.controller.d.ts +26 -17
  56. package/dist/src/modules/v4/interaction/interaction.controller.js +19 -28
  57. package/dist/src/modules/v4/interaction/interaction.model.d.ts +17 -5
  58. package/dist/src/modules/v4/interaction/interaction.model.js +3 -3
  59. package/dist/src/modules/v4/interaction/interaction.service.d.ts +18 -3
  60. package/dist/src/modules/v4/interaction/interaction.service.js +89 -11
  61. package/dist/src/modules/v4/kyberzap/kyberzap.model.d.ts +72 -0
  62. package/dist/src/modules/v4/kyberzap/kyberzap.model.js +79 -0
  63. package/dist/src/modules/v4/kyberzap/kyberzap.service.d.ts +15 -0
  64. package/dist/src/modules/v4/kyberzap/kyberzap.service.js +84 -0
  65. package/dist/src/modules/v4/liquidity/liquidity.controller.js +1 -1
  66. package/dist/src/modules/v4/merklRoot/merklRoot.controller.js +1 -1
  67. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +224 -213
  68. package/dist/src/modules/v4/opportunity/opportunity.controller.js +39 -10
  69. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +252 -22
  70. package/dist/src/modules/v4/opportunity/opportunity.model.js +58 -15
  71. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +11 -11
  72. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +12 -232
  73. package/dist/src/modules/v4/opportunity/opportunity.service.js +0 -32
  74. package/dist/src/modules/v4/price/price.controller.js +1 -1
  75. package/dist/src/modules/v4/protocol/protocol.controller.d.ts +23 -24
  76. package/dist/src/modules/v4/protocol/protocol.controller.js +15 -9
  77. package/dist/src/modules/v4/protocol/protocol.model.d.ts +13 -1
  78. package/dist/src/modules/v4/protocol/protocol.model.js +12 -8
  79. package/dist/src/modules/v4/reward/reward.controller.js +1 -1
  80. package/dist/src/modules/v4/reward/reward.model.d.ts +44 -1
  81. package/dist/src/modules/v4/reward/reward.model.js +15 -0
  82. package/dist/src/modules/v4/reward/reward.repository.d.ts +2 -2
  83. package/dist/src/modules/v4/reward/reward.service.d.ts +11 -11
  84. package/dist/src/modules/v4/reward/reward.service.js +1 -2
  85. package/dist/src/modules/v4/router.d.ts +287 -268
  86. package/dist/src/modules/v4/status/status.controller.js +2 -3
  87. package/dist/src/modules/v4/status/status.model.d.ts +12 -0
  88. package/dist/src/modules/v4/status/status.model.js +12 -0
  89. package/dist/src/modules/v4/status/status.service.js +0 -1
  90. package/dist/src/modules/v4/token/token.controller.d.ts +4 -4
  91. package/dist/src/modules/v4/token/token.controller.js +1 -1
  92. package/dist/src/modules/v4/token/token.model.d.ts +12 -0
  93. package/dist/src/modules/v4/token/token.model.js +12 -0
  94. package/dist/src/modules/v4/token/token.repository.d.ts +2 -2
  95. package/dist/src/modules/v4/token/token.service.d.ts +7 -7
  96. package/dist/src/modules/v4/tvl/tvl.model.d.ts +24 -0
  97. package/dist/src/modules/v4/tvl/tvl.model.js +15 -1
  98. package/dist/src/modules/v4/uniswapV4/uniswapV4.controller.d.ts +1 -1
  99. package/dist/src/modules/v4/uniswapV4/uniswapV4.controller.js +9 -8
  100. package/dist/src/modules/v4/user/user.controller.d.ts +4 -4
  101. package/dist/src/modules/v4/user/user.controller.js +20 -17
  102. package/dist/src/modules/v4/user/user.model.d.ts +30 -0
  103. package/dist/src/modules/v4/user/user.model.js +27 -0
  104. package/dist/src/modules/v4/zyfi/zyfi.model.d.ts +45 -0
  105. package/dist/src/modules/v4/zyfi/zyfi.model.js +1 -0
  106. package/dist/src/modules/v4/zyfi/zyfi.service.d.ts +30 -0
  107. package/dist/src/modules/v4/zyfi/zyfi.service.js +35 -0
  108. package/dist/src/plugins/error-handling.plugin.d.ts +2 -2
  109. package/dist/src/plugins/error-handling.plugin.js +9 -3
  110. package/dist/src/plugins/logger.plugin.js +1 -20
  111. package/dist/src/routes/v1/allowances.d.ts +1 -1
  112. package/dist/src/routes/v1/allowances.js +1 -1
  113. package/dist/src/routes/v1/balances.d.ts +1 -1
  114. package/dist/src/routes/v1/balances.js +1 -1
  115. package/dist/src/routes/v1/prices.d.ts +1 -1
  116. package/dist/src/routes/v1/prices.js +1 -1
  117. package/dist/src/routes/v1/router.d.ts +102 -0
  118. package/dist/src/routes/v1/router.js +6 -0
  119. package/dist/src/routes/v1/tokens.d.ts +1 -1
  120. package/dist/src/routes/v1/tokens.js +1 -1
  121. package/dist/src/routes/v2/merkl.d.ts +5 -5
  122. package/dist/src/routes/v2/merkl.js +1 -1
  123. package/dist/src/routes/v2/router.d.ts +46 -0
  124. package/dist/src/routes/v2/router.js +3 -0
  125. package/dist/src/routes/v3/app.d.ts +1 -1
  126. package/dist/src/routes/v3/app.js +1 -1
  127. package/dist/src/routes/v3/blacklist.d.ts +1 -2479
  128. package/dist/src/routes/v3/blacklist.js +1 -1
  129. package/dist/src/routes/v3/campaignClaims.d.ts +1 -1
  130. package/dist/src/routes/v3/campaignClaims.js +1 -1
  131. package/dist/src/routes/v3/campaignReport.d.ts +1 -1
  132. package/dist/src/routes/v3/campaignReport.js +1 -1
  133. package/dist/src/routes/v3/campaignUnclaimed.d.ts +1 -1
  134. package/dist/src/routes/v3/campaignUnclaimed.js +1 -1
  135. package/dist/src/routes/v3/campaigns.d.ts +1 -2483
  136. package/dist/src/routes/v3/campaigns.js +1 -1
  137. package/dist/src/routes/v3/campaignsForMainParameter.d.ts +1 -1
  138. package/dist/src/routes/v3/campaignsForMainParameter.js +1 -1
  139. package/dist/src/routes/v3/campaignsInfo.d.ts +1 -2481
  140. package/dist/src/routes/v3/campaignsInfo.js +1 -1
  141. package/dist/src/routes/v3/campaignsRewardsReport.d.ts +1 -1
  142. package/dist/src/routes/v3/campaignsRewardsReport.js +1 -1
  143. package/dist/src/routes/v3/claims.d.ts +1 -1
  144. package/dist/src/routes/v3/claims.js +1 -1
  145. package/dist/src/routes/v3/compoundV2.d.ts +1 -1
  146. package/dist/src/routes/v3/compoundV2.js +1 -1
  147. package/dist/src/routes/v3/createCampaign.d.ts +1 -1
  148. package/dist/src/routes/v3/createCampaign.js +1 -1
  149. package/dist/src/routes/v3/dolomite.d.ts +1 -1
  150. package/dist/src/routes/v3/dolomite.js +1 -1
  151. package/dist/src/routes/v3/euler.d.ts +1 -1
  152. package/dist/src/routes/v3/euler.js +1 -1
  153. package/dist/src/routes/v3/fetch.d.ts +1 -1
  154. package/dist/src/routes/v3/fetch.js +1 -1
  155. package/dist/src/routes/v3/health.d.ts +1 -1
  156. package/dist/src/routes/v3/health.js +1 -1
  157. package/dist/src/routes/v3/lostyield.d.ts +1 -1
  158. package/dist/src/routes/v3/lostyield.js +1 -1
  159. package/dist/src/routes/v3/merkl.d.ts +1 -1
  160. package/dist/src/routes/v3/merkl.js +1 -1
  161. package/dist/src/routes/v3/morphoMarkets.d.ts +1 -1
  162. package/dist/src/routes/v3/morphoMarkets.js +1 -1
  163. package/dist/src/routes/v3/morphoVaults.d.ts +1 -1
  164. package/dist/src/routes/v3/morphoVaults.js +1 -1
  165. package/dist/src/routes/v3/multiChainPositions.d.ts +1 -2480
  166. package/dist/src/routes/v3/multiChainPositions.js +1 -1
  167. package/dist/src/routes/v3/opportunity.d.ts +1 -2483
  168. package/dist/src/routes/v3/opportunity.js +1 -1
  169. package/dist/src/routes/v3/overview.d.ts +1 -1
  170. package/dist/src/routes/v3/overview.js +1 -1
  171. package/dist/src/routes/v3/parse.d.ts +1 -1
  172. package/dist/src/routes/v3/parse.js +1 -1
  173. package/dist/src/routes/v3/payload.d.ts +1 -1
  174. package/dist/src/routes/v3/payload.js +1 -1
  175. package/dist/src/routes/v3/poolInfo.js +1 -1
  176. package/dist/src/routes/v3/positions.d.ts +1 -2479
  177. package/dist/src/routes/v3/positions.js +1 -1
  178. package/dist/src/routes/v3/radiant.d.ts +1 -1
  179. package/dist/src/routes/v3/radiant.js +1 -1
  180. package/dist/src/routes/v3/recipients.d.ts +1 -1
  181. package/dist/src/routes/v3/recipients.js +1 -1
  182. package/dist/src/routes/v3/rewards.d.ts +1 -2508
  183. package/dist/src/routes/v3/rewards.js +1 -1
  184. package/dist/src/routes/v3/rewardsReport.d.ts +1 -1
  185. package/dist/src/routes/v3/rewardsReport.js +1 -1
  186. package/dist/src/routes/v3/router.d.ts +1 -0
  187. package/dist/src/routes/v3/router.js +74 -0
  188. package/dist/src/routes/v3/silo.d.ts +1 -1
  189. package/dist/src/routes/v3/silo.js +1 -1
  190. package/dist/src/routes/v3/token.d.ts +1 -1
  191. package/dist/src/routes/v3/token.js +1 -1
  192. package/dist/src/routes/v3/tokenUnclaimed.d.ts +1 -1
  193. package/dist/src/routes/v3/tokenUnclaimed.js +1 -1
  194. package/dist/src/routes/v3/updates.d.ts +1 -2483
  195. package/dist/src/routes/v3/updates.js +1 -1
  196. package/dist/src/routes/v3/userRewards.d.ts +1 -2499
  197. package/dist/src/routes/v3/userRewards.js +1 -1
  198. package/dist/src/utils/decodeCalls.js +12 -1
  199. package/dist/src/utils/encodeCalls.js +26 -3
  200. package/dist/src/utils/generateCardName.js +2 -0
  201. package/dist/tsconfig.package.tsbuildinfo +1 -1
  202. package/package.json +2 -3
  203. package/dist/src/libs/campaigns/campaignTypes/ERC20DynamicDataRefacto.d.ts +0 -3
  204. package/dist/src/libs/campaigns/campaignTypes/ERC20DynamicDataRefacto.js +0 -155
  205. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesPricesRefactoFinal.d.ts +0 -4
  206. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesPricesRefactoFinal.js +0 -24
  207. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1RefactoFinal.d.ts +0 -4
  208. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1RefactoFinal.js +0 -230
  209. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound2RefactoFinal.d.ts +0 -3
  210. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound2RefactoFinal.js +0 -22
  211. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound3RefactoFinal.d.ts +0 -3
  212. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound3RefactoFinal.js +0 -22
  213. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound4RefactoFinal.d.ts +0 -4
  214. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound4RefactoFinal.js +0 -22
  215. package/dist/src/libs/campaigns/campaignsDynamicDataRefacto.d.ts +0 -3
  216. package/dist/src/libs/campaigns/campaignsDynamicDataRefacto.js +0 -75
@@ -51,13 +51,25 @@ export declare const v4: Elysia<"/v4", false, {
51
51
  };
52
52
  } & {
53
53
  opportunities: {
54
- ":id": {
54
+ index: {
55
55
  get: {
56
56
  body: unknown;
57
- params: {
58
- id: string;
57
+ params: {};
58
+ query: {
59
+ sort?: string | undefined;
60
+ name?: string | undefined;
61
+ tokens?: string | undefined;
62
+ status?: string | undefined;
63
+ items?: number | undefined;
64
+ tags?: string | undefined;
65
+ page?: number | undefined;
66
+ chainId?: string | undefined;
67
+ action?: string | undefined;
68
+ mainProtocolId?: string | undefined;
69
+ order?: string | undefined;
70
+ test?: boolean | undefined;
71
+ minimumTvl?: number | undefined;
59
72
  };
60
- query: unknown;
61
73
  headers: unknown;
62
74
  response: {
63
75
  200: {
@@ -97,9 +109,9 @@ export declare const v4: Elysia<"/v4", false, {
97
109
  symbol: string;
98
110
  name: string | null;
99
111
  id: string;
112
+ icon: string;
100
113
  chainId: number;
101
114
  address: string;
102
- icon: string;
103
115
  decimals: number;
104
116
  displaySymbol: string;
105
117
  verified: boolean;
@@ -114,9 +126,9 @@ export declare const v4: Elysia<"/v4", false, {
114
126
  symbol: string;
115
127
  name: string | null;
116
128
  id: string;
129
+ icon: string;
117
130
  chainId: number;
118
131
  address: string;
119
- icon: string;
120
132
  decimals: number;
121
133
  verified: boolean;
122
134
  isTest: boolean;
@@ -146,7 +158,143 @@ export declare const v4: Elysia<"/v4", false, {
146
158
  tvl: number;
147
159
  apr: number;
148
160
  dailyRewards: number;
149
- } | undefined;
161
+ }[];
162
+ };
163
+ };
164
+ };
165
+ };
166
+ } & {
167
+ opportunities: {
168
+ count: {
169
+ get: {
170
+ body: unknown;
171
+ params: {};
172
+ query: {
173
+ sort?: string | undefined;
174
+ name?: string | undefined;
175
+ tokens?: string | undefined;
176
+ status?: string | undefined;
177
+ items?: number | undefined;
178
+ tags?: string | undefined;
179
+ page?: number | undefined;
180
+ chainId?: string | undefined;
181
+ action?: string | undefined;
182
+ mainProtocolId?: string | undefined;
183
+ order?: string | undefined;
184
+ test?: boolean | undefined;
185
+ minimumTvl?: number | undefined;
186
+ };
187
+ headers: unknown;
188
+ response: {
189
+ 200: number;
190
+ };
191
+ };
192
+ };
193
+ };
194
+ } & {
195
+ opportunities: {
196
+ ":id": {
197
+ get: {
198
+ body: unknown;
199
+ params: {
200
+ id: string;
201
+ };
202
+ query: unknown;
203
+ headers: unknown;
204
+ response: {
205
+ 200: {
206
+ protocol?: {
207
+ name: string;
208
+ url: string;
209
+ description: string;
210
+ id: string;
211
+ tags: ("AMM" | "ALM" | "DEX" | "LENDING")[];
212
+ icon: string;
213
+ } | null | undefined;
214
+ aprRecord?: {
215
+ timestamp: string | bigint;
216
+ cumulated: number;
217
+ breakdowns: {
218
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
219
+ id: number;
220
+ identifier: string;
221
+ value: number;
222
+ aprRecordId: string;
223
+ }[];
224
+ } | undefined;
225
+ tvlRecord?: {
226
+ total: number;
227
+ timestamp: string | bigint;
228
+ breakdowns: {
229
+ type: "TOKEN" | "PROTOCOL";
230
+ id: number;
231
+ identifier: string;
232
+ value: number;
233
+ tvlRecordId: string;
234
+ }[];
235
+ } | undefined;
236
+ rewardsRecord?: {
237
+ total: number;
238
+ id: string;
239
+ timestamp: string | bigint;
240
+ breakdowns: {
241
+ token: {
242
+ price?: number | null | undefined;
243
+ symbol: string;
244
+ name: string | null;
245
+ id: string;
246
+ icon: string;
247
+ chainId: number;
248
+ address: string;
249
+ decimals: number;
250
+ verified: boolean;
251
+ isTest: boolean;
252
+ };
253
+ id: number;
254
+ value: number;
255
+ campaignId: string;
256
+ amount: string | bigint;
257
+ dailyRewardsRecordId: string;
258
+ }[];
259
+ } | undefined;
260
+ name: string;
261
+ type: string;
262
+ tokens: {
263
+ price?: number | null | undefined;
264
+ symbol: string;
265
+ name: string | null;
266
+ id: string;
267
+ icon: string;
268
+ chainId: number;
269
+ address: string;
270
+ decimals: number;
271
+ verified: boolean;
272
+ isTest: boolean;
273
+ }[];
274
+ id: string;
275
+ status: string;
276
+ tags: string[];
277
+ identifier: string;
278
+ chain: {
279
+ name: string;
280
+ id: number;
281
+ icon: string;
282
+ };
283
+ chainId: number;
284
+ action: string;
285
+ tvl: number;
286
+ apr: number;
287
+ dailyRewards: number;
288
+ };
289
+ readonly 404: {
290
+ message: string;
291
+ name: string;
292
+ };
293
+ readonly 500: {
294
+ code: string;
295
+ info: string;
296
+ httpCode: number;
297
+ };
150
298
  };
151
299
  };
152
300
  };
@@ -164,129 +312,113 @@ export declare const v4: Elysia<"/v4", false, {
164
312
  headers: unknown;
165
313
  response: {
166
314
  200: {
167
- aprRecord: {
315
+ protocol?: {
316
+ name: string;
317
+ url: string;
318
+ description: string;
319
+ id: string;
320
+ tags: ("AMM" | "ALM" | "DEX" | "LENDING")[];
321
+ icon: string;
322
+ } | null | undefined;
323
+ aprRecord?: {
324
+ timestamp: string | bigint;
168
325
  cumulated: number;
169
- timestamp: bigint;
170
326
  breakdowns: {
171
- type: import("../../../database/api/.generated").$Enums.AprType;
327
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
172
328
  id: number;
173
329
  identifier: string;
174
330
  value: number;
175
331
  aprRecordId: string;
176
332
  }[];
177
- };
178
- tvlRecord: {
179
- id: string;
333
+ } | undefined;
334
+ tvlRecord?: {
180
335
  total: number;
181
- timestamp: bigint;
336
+ timestamp: string | bigint;
182
337
  breakdowns: {
183
- type: import("../../../database/api/.generated").$Enums.TvlType;
338
+ type: "TOKEN" | "PROTOCOL";
184
339
  id: number;
185
340
  identifier: string;
186
341
  value: number;
187
342
  tvlRecordId: string;
188
343
  }[];
189
- };
190
- rewardsRecord: {
191
- id: string;
344
+ } | undefined;
345
+ rewardsRecord?: {
192
346
  total: number;
193
- timestamp: bigint;
347
+ id: string;
348
+ timestamp: string | bigint;
194
349
  breakdowns: {
195
- id: number;
196
- value: number;
197
- campaignId: string;
198
- dailyRewardsRecordId: string;
199
350
  token: {
351
+ price?: number | null | undefined;
200
352
  symbol: string;
201
353
  name: string | null;
202
354
  id: string;
355
+ icon: string;
203
356
  chainId: number;
204
357
  address: string;
205
- icon: string;
206
358
  decimals: number;
207
- displaySymbol: string;
208
359
  verified: boolean;
209
360
  isTest: boolean;
210
- price: number | null;
211
361
  };
212
- amount: bigint;
362
+ id: number;
363
+ value: number;
364
+ campaignId: string;
365
+ amount: string | bigint;
366
+ dailyRewardsRecordId: string;
213
367
  }[];
214
- };
215
- id: string;
216
- tokens: ({
368
+ } | undefined;
369
+ name: string;
370
+ type: string;
371
+ tokens: {
372
+ price?: number | null | undefined;
217
373
  symbol: string;
218
374
  name: string | null;
219
375
  id: string;
376
+ icon: string;
220
377
  chainId: number;
221
378
  address: string;
222
- icon: string;
223
379
  decimals: number;
224
380
  verified: boolean;
225
381
  isTest: boolean;
226
- } & {
227
- price?: number | null | undefined;
228
- })[];
382
+ }[];
383
+ id: string;
384
+ status: string;
385
+ tags: string[];
386
+ identifier: string;
229
387
  chain: {
230
388
  name: string;
231
389
  id: number;
232
390
  icon: string;
233
391
  };
234
- protocol: {
235
- name: string;
236
- url: string;
237
- description: string;
238
- id: string;
239
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
240
- icon: string;
241
- } | undefined;
242
- name: string;
243
- type: import("../../../database/api/.generated").$Enums.CampaignType;
244
- status: import("../../../database/api/.generated").$Enums.Status;
245
- tags: string[];
246
- identifier: string;
247
392
  chainId: number;
248
- action: import("../../../database/api/.generated").$Enums.OpportunityAction;
393
+ action: string;
249
394
  tvl: number;
250
395
  apr: number;
251
396
  dailyRewards: number;
252
397
  campaigns: {
253
- params: any;
254
- chain: {
398
+ campaignStatus?: {
399
+ error?: string | undefined;
400
+ details?: any;
401
+ status: string;
402
+ campaignId: string;
403
+ computedUntil: string | bigint;
404
+ processingStarted: string | bigint;
405
+ } | undefined;
406
+ distributionChain?: {
255
407
  name: string;
256
408
  id: number;
257
409
  icon: string;
258
- };
259
- rewardToken: {
260
- symbol: string;
261
- name: string | null;
262
- id: string;
263
- chainId: number;
264
- address: string;
265
- icon: string;
266
- decimals: number;
267
- verified: boolean;
268
- isTest: boolean;
269
- } & {
270
- price?: number | null | undefined;
271
- };
272
- distributionChain: {
410
+ } | undefined;
411
+ type: string;
412
+ id: string;
413
+ params: any;
414
+ subType: number | null;
415
+ chain: {
273
416
  name: string;
274
417
  id: number;
275
418
  icon: string;
276
- } | undefined;
277
- campaignStatus: {
278
- error: string;
279
- details: import("database/api/.generated/runtime/library").JsonValue;
280
- status: import("../../../database/api/.generated").$Enums.RunStatus;
281
- campaignId: string;
282
- computedUntil: bigint;
283
- processingStarted: bigint;
284
419
  };
285
- type: import("../../../database/api/.generated").$Enums.CampaignType;
286
- id: string;
287
- subType: number | null;
288
- startTimestamp: bigint;
289
- endTimestamp: bigint;
420
+ startTimestamp: string | bigint;
421
+ endTimestamp: string | bigint;
290
422
  computeChainId: number;
291
423
  distributionChainId: number;
292
424
  campaignId: string;
@@ -294,151 +426,30 @@ export declare const v4: Elysia<"/v4", false, {
294
426
  amount: string;
295
427
  opportunityId: string;
296
428
  creatorAddress: string;
297
- }[];
298
- } | null | undefined;
299
- };
300
- };
301
- };
302
- };
303
- };
304
- } & {
305
- opportunities: {
306
- index: {
307
- get: {
308
- body: unknown;
309
- params: {};
310
- query: {
311
- sort?: "tvl" | "apr" | "rewards" | undefined;
312
- name?: string | undefined;
313
- tokens?: string | undefined;
314
- status?: string | undefined;
315
- items?: number | undefined;
316
- tags?: string | undefined;
317
- chainId?: string | undefined;
318
- page?: number | undefined;
319
- action?: string | undefined;
320
- mainProtocolId?: string | undefined;
321
- order?: "asc" | "desc" | undefined;
322
- test?: boolean | undefined;
323
- minimumTvl?: number | undefined;
324
- };
325
- headers: unknown;
326
- response: {
327
- 200: {
328
- aprRecord: {
329
- cumulated: number;
330
- timestamp: bigint;
331
- breakdowns: {
332
- type: import("../../../database/api/.generated").$Enums.AprType;
333
- id: number;
334
- identifier: string;
335
- value: number;
336
- aprRecordId: string;
337
- }[];
338
- };
339
- tvlRecord: {
340
- id: string;
341
- total: number;
342
- timestamp: bigint;
343
- breakdowns: {
344
- type: import("../../../database/api/.generated").$Enums.TvlType;
345
- id: number;
346
- identifier: string;
347
- value: number;
348
- tvlRecordId: string;
349
- }[];
350
- };
351
- rewardsRecord: {
352
- id: string;
353
- total: number;
354
- timestamp: bigint;
355
- breakdowns: {
356
- id: number;
357
- value: number;
358
- campaignId: string;
359
- dailyRewardsRecordId: string;
360
- token: {
429
+ rewardToken: {
430
+ price?: number | null | undefined;
361
431
  symbol: string;
362
432
  name: string | null;
363
433
  id: string;
434
+ icon: string;
364
435
  chainId: number;
365
436
  address: string;
366
- icon: string;
367
437
  decimals: number;
368
- displaySymbol: string;
369
438
  verified: boolean;
370
439
  isTest: boolean;
371
- price: number | null;
372
440
  };
373
- amount: bigint;
374
441
  }[];
375
442
  };
376
- id: string;
377
- tokens: ({
378
- symbol: string;
379
- name: string | null;
380
- id: string;
381
- chainId: number;
382
- address: string;
383
- icon: string;
384
- decimals: number;
385
- verified: boolean;
386
- isTest: boolean;
387
- } & {
388
- price?: number | null | undefined;
389
- })[];
390
- chain: {
443
+ readonly 404: {
444
+ message: string;
391
445
  name: string;
392
- id: number;
393
- icon: string;
394
446
  };
395
- protocol: {
396
- name: string;
397
- url: string;
398
- description: string;
399
- id: string;
400
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
401
- icon: string;
402
- } | undefined;
403
- name: string;
404
- type: import("../../../database/api/.generated").$Enums.CampaignType;
405
- status: import("../../../database/api/.generated").$Enums.Status;
406
- tags: string[];
407
- identifier: string;
408
- chainId: number;
409
- action: import("../../../database/api/.generated").$Enums.OpportunityAction;
410
- tvl: number;
411
- apr: number;
412
- dailyRewards: number;
413
- }[];
414
- };
415
- };
416
- };
417
- };
418
- } & {
419
- opportunities: {
420
- count: {
421
- get: {
422
- body: unknown;
423
- params: {};
424
- query: {
425
- sort?: "tvl" | "apr" | "rewards" | undefined;
426
- name?: string | undefined;
427
- tokens?: string | undefined;
428
- status?: string | undefined;
429
- items?: number | undefined;
430
- tags?: string | undefined;
431
- chainId?: string | undefined;
432
- page?: number | undefined;
433
- action?: string | undefined;
434
- mainProtocolId?: string | undefined;
435
- order?: "asc" | "desc" | undefined;
436
- test?: boolean | undefined;
437
- minimumTvl?: number | undefined;
438
- };
439
- headers: unknown;
440
- response: {
441
- 200: number;
447
+ readonly 500: {
448
+ code: string;
449
+ info: string;
450
+ httpCode: number;
451
+ };
452
+ };
442
453
  };
443
454
  };
444
455
  };
@@ -453,17 +464,17 @@ export declare const v4: Elysia<"/v4", false, {
453
464
  field: never;
454
465
  };
455
466
  query: {
456
- sort?: "tvl" | "apr" | "rewards" | undefined;
467
+ sort?: string | undefined;
457
468
  name?: string | undefined;
458
469
  tokens?: string | undefined;
459
470
  status?: string | undefined;
460
471
  items?: number | undefined;
461
472
  tags?: string | undefined;
462
- chainId?: string | undefined;
463
473
  page?: number | undefined;
474
+ chainId?: string | undefined;
464
475
  action?: string | undefined;
465
476
  mainProtocolId?: string | undefined;
466
- order?: "asc" | "desc" | undefined;
477
+ order?: string | undefined;
467
478
  test?: boolean | undefined;
468
479
  minimumTvl?: number | undefined;
469
480
  };
@@ -522,13 +533,13 @@ export declare const v4: Elysia<"/v4", false, {
522
533
  subType?: number | undefined;
523
534
  type: number;
524
535
  params: string;
536
+ creator: string;
525
537
  chainId: number;
526
538
  startTimestamp: string;
527
539
  endTimestamp: string;
528
540
  computeChainId: number;
529
541
  campaignId: string;
530
542
  amount: string;
531
- creator: string;
532
543
  rewardTokenAddress: string;
533
544
  opportunityIdentifier: string;
534
545
  };
@@ -565,11 +576,11 @@ export declare const v4: Elysia<"/v4", false, {
565
576
  type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | undefined;
566
577
  items?: number | undefined;
567
578
  subType?: number | undefined;
579
+ page?: number | undefined;
568
580
  chainId?: number | undefined;
569
581
  startTimestamp?: string | undefined;
570
582
  endTimestamp?: string | undefined;
571
583
  tokenAddress?: string | undefined;
572
- page?: number | undefined;
573
584
  mainParameter?: string | undefined;
574
585
  campaignId?: string | undefined;
575
586
  opportunityId?: string | undefined;
@@ -589,9 +600,9 @@ export declare const v4: Elysia<"/v4", false, {
589
600
  symbol: string;
590
601
  name: string | null;
591
602
  id: string;
603
+ icon: string;
592
604
  chainId: number;
593
605
  address: string;
594
- icon: string;
595
606
  decimals: number;
596
607
  verified: boolean;
597
608
  isTest: boolean;
@@ -636,11 +647,11 @@ export declare const v4: Elysia<"/v4", false, {
636
647
  type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | undefined;
637
648
  items?: number | undefined;
638
649
  subType?: number | undefined;
650
+ page?: number | undefined;
639
651
  chainId?: number | undefined;
640
652
  startTimestamp?: string | undefined;
641
653
  endTimestamp?: string | undefined;
642
654
  tokenAddress?: string | undefined;
643
- page?: number | undefined;
644
655
  mainParameter?: string | undefined;
645
656
  campaignId?: string | undefined;
646
657
  opportunityId?: string | undefined;
@@ -713,29 +724,6 @@ export declare const v4: Elysia<"/v4", false, {
713
724
  };
714
725
  } & {
715
726
  v4: {
716
- protocols: {
717
- ":id": {
718
- get: {
719
- body: unknown;
720
- params: {
721
- id: string;
722
- };
723
- query: unknown;
724
- headers: unknown;
725
- response: {
726
- 200: {
727
- name: string;
728
- url: string;
729
- description: string;
730
- id: string;
731
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
732
- icon: string;
733
- } | null;
734
- };
735
- };
736
- };
737
- };
738
- } & {
739
727
  protocols: {
740
728
  index: {
741
729
  get: {
@@ -743,7 +731,6 @@ export declare const v4: Elysia<"/v4", false, {
743
731
  params: {};
744
732
  query: {
745
733
  name?: string | undefined;
746
- id?: string[] | undefined;
747
734
  items?: number | undefined;
748
735
  tags?: ("AMM" | "ALM" | "DEX" | "LENDING")[] | undefined;
749
736
  page?: number | undefined;
@@ -776,6 +763,29 @@ export declare const v4: Elysia<"/v4", false, {
776
763
  };
777
764
  };
778
765
  };
766
+ } & {
767
+ protocols: {
768
+ ":id": {
769
+ get: {
770
+ body: unknown;
771
+ params: {
772
+ id: string;
773
+ };
774
+ query: unknown;
775
+ headers: unknown;
776
+ response: {
777
+ 200: {
778
+ name: string;
779
+ url: string;
780
+ description: string;
781
+ id: string;
782
+ tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
783
+ icon: string;
784
+ } | null;
785
+ };
786
+ };
787
+ };
788
+ };
779
789
  } & {
780
790
  protocols: {
781
791
  ":id": {
@@ -822,9 +832,9 @@ export declare const v4: Elysia<"/v4", false, {
822
832
  symbol: string;
823
833
  name: string | null;
824
834
  id: string;
835
+ icon: string;
825
836
  chainId: number;
826
837
  address: string;
827
- icon: string;
828
838
  decimals: number;
829
839
  verified: boolean;
830
840
  isTest: boolean;
@@ -852,9 +862,9 @@ export declare const v4: Elysia<"/v4", false, {
852
862
  symbol: string;
853
863
  name: string | null;
854
864
  id: string;
865
+ icon: string;
855
866
  chainId: number;
856
867
  address: string;
857
- icon: string;
858
868
  decimals: number;
859
869
  verified: boolean;
860
870
  isTest: boolean;
@@ -887,9 +897,9 @@ export declare const v4: Elysia<"/v4", false, {
887
897
  symbol: string;
888
898
  name: string | null;
889
899
  id: string;
900
+ icon: string;
890
901
  chainId: number;
891
902
  address: string;
892
- icon: string;
893
903
  decimals: number;
894
904
  verified: boolean;
895
905
  isTest: boolean;
@@ -942,9 +952,9 @@ export declare const v4: Elysia<"/v4", false, {
942
952
  symbol: string;
943
953
  name: string | null;
944
954
  id: string;
955
+ icon: string;
945
956
  chainId: number;
946
957
  address: string;
947
- icon: string;
948
958
  decimals: number;
949
959
  displaySymbol: string;
950
960
  verified: boolean;
@@ -1199,7 +1209,7 @@ export declare const v4: Elysia<"/v4", false, {
1199
1209
  body: unknown;
1200
1210
  params: {};
1201
1211
  query: {
1202
- search?: string | undefined;
1212
+ name?: string | undefined;
1203
1213
  };
1204
1214
  headers: unknown;
1205
1215
  response: {
@@ -1223,7 +1233,7 @@ export declare const v4: Elysia<"/v4", false, {
1223
1233
  body: unknown;
1224
1234
  params: {};
1225
1235
  query: {
1226
- search?: string | undefined;
1236
+ name?: string | undefined;
1227
1237
  };
1228
1238
  headers: unknown;
1229
1239
  response: {
@@ -1633,9 +1643,9 @@ export declare const v4: Elysia<"/v4", false, {
1633
1643
  symbol: string;
1634
1644
  name: string | null;
1635
1645
  id: string;
1646
+ icon: string;
1636
1647
  chainId: number;
1637
1648
  address: string;
1638
- icon: string;
1639
1649
  decimals: number;
1640
1650
  displaySymbol: string;
1641
1651
  verified: boolean;
@@ -1654,9 +1664,9 @@ export declare const v4: Elysia<"/v4", false, {
1654
1664
  symbol: string;
1655
1665
  name: string | null;
1656
1666
  id: string;
1667
+ icon: string;
1657
1668
  chainId: number;
1658
1669
  address: string;
1659
- icon: string;
1660
1670
  decimals: number;
1661
1671
  displaySymbol: string;
1662
1672
  verified: boolean;
@@ -1747,9 +1757,9 @@ export declare const v4: Elysia<"/v4", false, {
1747
1757
  symbol: string;
1748
1758
  name: string | null;
1749
1759
  id: string;
1760
+ icon: string;
1750
1761
  chainId: number;
1751
1762
  address: string;
1752
- icon: string;
1753
1763
  decimals: number;
1754
1764
  displaySymbol: string;
1755
1765
  verified: boolean;
@@ -1768,9 +1778,9 @@ export declare const v4: Elysia<"/v4", false, {
1768
1778
  symbol: string;
1769
1779
  name: string | null;
1770
1780
  id: string;
1781
+ icon: string;
1771
1782
  chainId: number;
1772
1783
  address: string;
1773
- icon: string;
1774
1784
  decimals: number;
1775
1785
  displaySymbol: string;
1776
1786
  verified: boolean;
@@ -1978,13 +1988,13 @@ export declare const v4: Elysia<"/v4", false, {
1978
1988
  body: unknown;
1979
1989
  params: {};
1980
1990
  query: {
1981
- identifier?: string | undefined;
1991
+ protocolId?: string | undefined;
1992
+ identifier: string;
1982
1993
  chainId: number;
1983
- protocolId: string;
1984
1994
  };
1985
1995
  headers: unknown;
1986
1996
  response: {
1987
- 200: import("./interaction/interaction.model").InteractionTarget[] | undefined;
1997
+ 200: import("./interaction/interaction.model").InteractionTarget[];
1988
1998
  };
1989
1999
  };
1990
2000
  };
@@ -2014,7 +2024,7 @@ export declare const v4: Elysia<"/v4", false, {
2014
2024
  };
2015
2025
  } & {
2016
2026
  interaction: {
2017
- quote: {
2027
+ transaction: {
2018
2028
  get: {
2019
2029
  body: unknown;
2020
2030
  params: {};
@@ -2029,10 +2039,11 @@ export declare const v4: Elysia<"/v4", false, {
2029
2039
  headers: unknown;
2030
2040
  response: {
2031
2041
  200: {
2032
- amountOut: {};
2033
- gas: string;
2034
- feeAmount: string[];
2035
- priceImpact: number;
2042
+ amountIn: bigint;
2043
+ allowance: bigint;
2044
+ approved: boolean;
2045
+ transaction: import("./interaction/interaction.model").UserTransaction;
2046
+ approval: import("./interaction/interaction.model").UserTransaction;
2036
2047
  } | undefined;
2037
2048
  };
2038
2049
  };
@@ -2040,7 +2051,7 @@ export declare const v4: Elysia<"/v4", false, {
2040
2051
  };
2041
2052
  } & {
2042
2053
  interaction: {
2043
- transaction: {
2054
+ sponsored: {
2044
2055
  get: {
2045
2056
  body: unknown;
2046
2057
  params: {};
@@ -2055,17 +2066,25 @@ export declare const v4: Elysia<"/v4", false, {
2055
2066
  headers: unknown;
2056
2067
  response: {
2057
2068
  200: {
2058
- amountOut: string;
2059
- gas: string;
2060
- feeAmount: string[];
2061
- priceImpact: number;
2062
- createAt: number;
2063
- tx: {
2064
- data: string;
2069
+ expirationTime: string;
2070
+ expiresIn: string;
2071
+ feeTokenAmount: string;
2072
+ feeTokendecimals: string;
2073
+ feeUSD: string;
2074
+ gasLimit: string;
2075
+ gasPrice: string;
2076
+ markup: string;
2077
+ maxNonce: string;
2078
+ protocolAddress: string;
2079
+ sponsorshipRatio: string;
2080
+ tokenAddress: string;
2081
+ tokenPrice: string;
2082
+ txData: {
2065
2083
  from: string;
2066
- value: string;
2067
2084
  to: string;
2085
+ data: string;
2068
2086
  };
2087
+ warnings: string[];
2069
2088
  } | undefined;
2070
2089
  };
2071
2090
  };