@merkl/api 0.10.78

Sign up to get free protection for your applications and to get access to all the features.
Files changed (318) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +125 -0
  3. package/dist/database/api/.generated/default.d.ts +1 -0
  4. package/dist/database/api/.generated/edge.d.ts +1 -0
  5. package/dist/database/api/.generated/index.d.ts +36404 -0
  6. package/dist/database/api/.generated/libquery_engine-debian-openssl-1.1.x.so.node +0 -0
  7. package/dist/database/api/.generated/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0 -0
  8. package/dist/database/api/.generated/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
  9. package/dist/database/api/.generated/package.json +84 -0
  10. package/dist/database/api/.generated/runtime/index-browser.d.ts +365 -0
  11. package/dist/database/api/.generated/runtime/library.d.ts +3273 -0
  12. package/dist/database/api/.generated/schema.prisma +366 -0
  13. package/dist/database/api/.generated/wasm.d.ts +1 -0
  14. package/dist/database/api/seeder/resources/protocol.d.ts +353 -0
  15. package/dist/database/engine/.generated/default.d.ts +1 -0
  16. package/dist/database/engine/.generated/edge.d.ts +1 -0
  17. package/dist/database/engine/.generated/index.d.ts +16342 -0
  18. package/dist/database/engine/.generated/libquery_engine-debian-openssl-1.1.x.so.node +0 -0
  19. package/dist/database/engine/.generated/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0 -0
  20. package/dist/database/engine/.generated/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
  21. package/dist/database/engine/.generated/package.json +84 -0
  22. package/dist/database/engine/.generated/runtime/index-browser.d.ts +365 -0
  23. package/dist/database/engine/.generated/runtime/library.d.ts +3273 -0
  24. package/dist/database/engine/.generated/schema.prisma +205 -0
  25. package/dist/database/engine/.generated/wasm.d.ts +1 -0
  26. package/dist/src/backgroundJobs/index.d.ts +1 -0
  27. package/dist/src/backgroundJobs/jobs/campaignsCacheUpdater.d.ts +45 -0
  28. package/dist/src/backgroundJobs/jobs/health.d.ts +40 -0
  29. package/dist/src/backgroundJobs/jobs/opportunityUpdater.d.ts +37 -0
  30. package/dist/src/backgroundJobs/jobs/priceUpdater.d.ts +35 -0
  31. package/dist/src/backgroundJobs/jobs/sync.d.ts +39 -0
  32. package/dist/src/cache/declaration.d.ts +153 -0
  33. package/dist/src/cache/index.d.ts +52 -0
  34. package/dist/src/cache/redis.d.ts +311 -0
  35. package/dist/src/constants.d.ts +349 -0
  36. package/dist/src/eden/index.d.ts +4882 -0
  37. package/dist/src/eden/index.js +4 -0
  38. package/dist/src/entities/campaign.d.ts +58 -0
  39. package/dist/src/entities/opportunity.d.ts +17 -0
  40. package/dist/src/errors/BadRequest.error.d.ts +4 -0
  41. package/dist/src/errors/Conflict.error.d.ts +4 -0
  42. package/dist/src/errors/HttpError.d.ts +6 -0
  43. package/dist/src/errors/NotFound.error.d.ts +4 -0
  44. package/dist/src/errors/Opportunity.error.d.ts +6 -0
  45. package/dist/src/errors/Unauthorized.error.d.ts +4 -0
  46. package/dist/src/errors/index.d.ts +5 -0
  47. package/dist/src/guards/BackOffice.guard.d.ts +7 -0
  48. package/dist/src/guards/Engine.guard.d.ts +7 -0
  49. package/dist/src/guards/TokenAuth.guard.d.ts +7 -0
  50. package/dist/src/hooks/checkQueryAddressValidity.d.ts +21 -0
  51. package/dist/src/hooks/checkQueryChainIdValidity.d.ts +21 -0
  52. package/dist/src/index.d.ts +1889 -0
  53. package/dist/src/internal/controllers/endingCampaigns.d.ts +42 -0
  54. package/dist/src/internal/controllers/unclaimed.d.ts +43 -0
  55. package/dist/src/internal/index.d.ts +1 -0
  56. package/dist/src/libs/campaigns/campaignTypes/AjnaDynamicData.d.ts +5 -0
  57. package/dist/src/libs/campaigns/campaignTypes/BadgerDynamicData.d.ts +5 -0
  58. package/dist/src/libs/campaigns/campaignTypes/CLAMMDynamicData.d.ts +3 -0
  59. package/dist/src/libs/campaigns/campaignTypes/CompoundDynamicData.d.ts +3 -0
  60. package/dist/src/libs/campaigns/campaignTypes/DolomiteDynamicData.d.ts +5 -0
  61. package/dist/src/libs/campaigns/campaignTypes/ERC20DynamicData.d.ts +3 -0
  62. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/eulerVaultNames.d.ts +1 -0
  63. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/factoryFinder.d.ts +5 -0
  64. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/getBlacklistedSupply.d.ts +1 -0
  65. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/metamorphoTvl.d.ts +1 -0
  66. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/spliceTVL.d.ts +7 -0
  67. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.d.ts +45 -0
  68. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesPrices.d.ts +4 -0
  69. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1.d.ts +23 -0
  70. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound2.d.ts +7 -0
  71. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound3.d.ts +6 -0
  72. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound4.d.ts +4 -0
  73. package/dist/src/libs/campaigns/campaignTypes/ERC20_SNAPSHOTDynamicData.d.ts +5 -0
  74. package/dist/src/libs/campaigns/campaignTypes/EulerDynamicData.d.ts +3 -0
  75. package/dist/src/libs/campaigns/campaignTypes/JSON_AIRDROPDynamicData.d.ts +5 -0
  76. package/dist/src/libs/campaigns/campaignTypes/MORPHODynamicData.d.ts +5 -0
  77. package/dist/src/libs/campaigns/campaignTypes/RadiantDynamicData.d.ts +3 -0
  78. package/dist/src/libs/campaigns/campaignTypes/SILODynamicData.d.ts +7 -0
  79. package/dist/src/libs/campaigns/campaignsDynamicData.d.ts +3 -0
  80. package/dist/src/libs/campaigns/getCampaigns.d.ts +1 -0
  81. package/dist/src/libs/campaigns/getRewards.d.ts +29 -0
  82. package/dist/src/libs/campaigns/utils/fetchA51Strategies.d.ts +18 -0
  83. package/dist/src/libs/campaigns/utils/fetchClamInfo.d.ts +2 -0
  84. package/dist/src/libs/campaigns/utils/fetchLogs.d.ts +10 -0
  85. package/dist/src/libs/campaigns/utils/getCompV2ForksVaults.d.ts +19 -0
  86. package/dist/src/libs/campaigns/utils/getContractCreationBlock.d.ts +2 -0
  87. package/dist/src/libs/campaigns/utils/getDolomiteMarkets.d.ts +7 -0
  88. package/dist/src/libs/campaigns/utils/getEulerV2Vaults.d.ts +16 -0
  89. package/dist/src/libs/campaigns/utils/getLastEligibilityRatio.d.ts +2 -0
  90. package/dist/src/libs/computeFee.d.ts +4 -0
  91. package/dist/src/libs/custom/twtParticipants.d.ts +6 -0
  92. package/dist/src/libs/deprecated-merklv3/index.d.ts +5 -0
  93. package/dist/src/libs/getTokensList.d.ts +27 -0
  94. package/dist/src/libs/merklChainData.d.ts +4 -0
  95. package/dist/src/libs/parse/marketsWithCache.d.ts +4 -0
  96. package/dist/src/libs/positions/ajna/index.d.ts +41 -0
  97. package/dist/src/libs/positions/badger/index.d.ts +27 -0
  98. package/dist/src/libs/positions/clamm/index.d.ts +8 -0
  99. package/dist/src/libs/positions/clamm/thegraph/fetchAlmPositions.d.ts +5 -0
  100. package/dist/src/libs/positions/clamm/thegraph/fetchAmmPositions.d.ts +8 -0
  101. package/dist/src/libs/positions/clamm/thegraph/fetchFarmedPositions.d.ts +11 -0
  102. package/dist/src/libs/positions/clamm/thegraph/index.d.ts +37 -0
  103. package/dist/src/libs/positions/compound/index.d.ts +26 -0
  104. package/dist/src/libs/positions/dolomite/index.d.ts +17 -0
  105. package/dist/src/libs/positions/erc20/index.d.ts +5 -0
  106. package/dist/src/libs/positions/euler/index.d.ts +5 -0
  107. package/dist/src/libs/positions/index.d.ts +3 -0
  108. package/dist/src/libs/positions/morpho/index.d.ts +40 -0
  109. package/dist/src/libs/positions/prepareFetch.d.ts +22 -0
  110. package/dist/src/libs/positions/silo/index.d.ts +5 -0
  111. package/dist/src/libs/positions/types.d.ts +20 -0
  112. package/dist/src/libs/reports/campaignReport.d.ts +9 -0
  113. package/dist/src/libs/reports/mainParameterRewards.d.ts +3 -0
  114. package/dist/src/libs/rewards/userRewards.d.ts +2 -0
  115. package/dist/src/libs/staticCampaigns.d.ts +2 -0
  116. package/dist/src/libs/tokens/balances.d.ts +11 -0
  117. package/dist/src/libs/tokens/tokenInfo.d.ts +8 -0
  118. package/dist/src/modules/v4/accounting/accounting.controller.d.ts +206 -0
  119. package/dist/src/modules/v4/accounting/accounting.model.d.ts +32 -0
  120. package/dist/src/modules/v4/accounting/accounting.repository.d.ts +99 -0
  121. package/dist/src/modules/v4/accounting/accounting.service.d.ts +44 -0
  122. package/dist/src/modules/v4/accounting/index.d.ts +3 -0
  123. package/dist/src/modules/v4/apr/apr.controller.d.ts +0 -0
  124. package/dist/src/modules/v4/apr/apr.model.d.ts +15 -0
  125. package/dist/src/modules/v4/apr/apr.repository.d.ts +0 -0
  126. package/dist/src/modules/v4/apr/apr.service.d.ts +6 -0
  127. package/dist/src/modules/v4/apr/index.d.ts +2 -0
  128. package/dist/src/modules/v4/blacklist/blacklist.controller.d.ts +122 -0
  129. package/dist/src/modules/v4/blacklist/blacklist.model.d.ts +15 -0
  130. package/dist/src/modules/v4/blacklist/blacklist.repository.d.ts +24 -0
  131. package/dist/src/modules/v4/blacklist/blacklist.service.d.ts +24 -0
  132. package/dist/src/modules/v4/blacklist/index.d.ts +3 -0
  133. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +139 -0
  134. package/dist/src/modules/v4/campaign/campaign.model.d.ts +85 -0
  135. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +110 -0
  136. package/dist/src/modules/v4/campaign/campaign.service.d.ts +180 -0
  137. package/dist/src/modules/v4/campaign/index.d.ts +3 -0
  138. package/dist/src/modules/v4/chain/chain.controller.d.ts +91 -0
  139. package/dist/src/modules/v4/chain/chain.model.d.ts +19 -0
  140. package/dist/src/modules/v4/chain/chain.repository.d.ts +66 -0
  141. package/dist/src/modules/v4/chain/chain.service.d.ts +42 -0
  142. package/dist/src/modules/v4/chain/index.d.ts +3 -0
  143. package/dist/src/modules/v4/enso/enso.model.d.ts +130 -0
  144. package/dist/src/modules/v4/enso/enso.service.d.ts +47 -0
  145. package/dist/src/modules/v4/explorer/explorer.repository.d.ts +8 -0
  146. package/dist/src/modules/v4/explorer/explorer.service.d.ts +8 -0
  147. package/dist/src/modules/v4/explorer/index.d.ts +1 -0
  148. package/dist/src/modules/v4/index.d.ts +4 -0
  149. package/dist/src/modules/v4/merklRoot/index.d.ts +3 -0
  150. package/dist/src/modules/v4/merklRoot/merklRoot.controller.d.ts +44 -0
  151. package/dist/src/modules/v4/merklRoot/merklRoot.model.d.ts +6 -0
  152. package/dist/src/modules/v4/merklRoot/merklRoot.repository.d.ts +21 -0
  153. package/dist/src/modules/v4/merklRoot/merklRoot.service.d.ts +34 -0
  154. package/dist/src/modules/v4/opportunity/index.d.ts +3 -0
  155. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +349 -0
  156. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +113 -0
  157. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +432 -0
  158. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +413 -0
  159. package/dist/src/modules/v4/opportunity/subservices/getAjnaMetadata.service.d.ts +3 -0
  160. package/dist/src/modules/v4/opportunity/subservices/getBadgerMetadata.service.d.ts +3 -0
  161. package/dist/src/modules/v4/opportunity/subservices/getClammMetadata.service.d.ts +3 -0
  162. package/dist/src/modules/v4/opportunity/subservices/getCompoundMetadata.service.d.ts +3 -0
  163. package/dist/src/modules/v4/opportunity/subservices/getDolomiteMetadata.service.d.ts +3 -0
  164. package/dist/src/modules/v4/opportunity/subservices/getErc20Metadata.service.d.ts +3 -0
  165. package/dist/src/modules/v4/opportunity/subservices/getErc20SnapshotMetadata.service.d.ts +3 -0
  166. package/dist/src/modules/v4/opportunity/subservices/getEulerMetadata.service.d.ts +3 -0
  167. package/dist/src/modules/v4/opportunity/subservices/getJsonAirDropMetadata.service.d.ts +3 -0
  168. package/dist/src/modules/v4/opportunity/subservices/getMorphoMetadata.service.d.ts +3 -0
  169. package/dist/src/modules/v4/opportunity/subservices/getRadiantMetadata.service.d.ts +3 -0
  170. package/dist/src/modules/v4/opportunity/subservices/getSiloMetadata.service.d.ts +3 -0
  171. package/dist/src/modules/v4/opportunity/transform-id.pipe.d.ts +5 -0
  172. package/dist/src/modules/v4/opportunity/validate-id.pipe.d.ts +5 -0
  173. package/dist/src/modules/v4/participate/participate.controller.d.ts +120 -0
  174. package/dist/src/modules/v4/participate/participate.model.d.ts +51 -0
  175. package/dist/src/modules/v4/participate/participate.service.d.ts +8 -0
  176. package/dist/src/modules/v4/price/index.d.ts +3 -0
  177. package/dist/src/modules/v4/price/price.controller.d.ts +169 -0
  178. package/dist/src/modules/v4/price/price.model.d.ts +32 -0
  179. package/dist/src/modules/v4/price/price.repository.d.ts +33 -0
  180. package/dist/src/modules/v4/price/price.service.d.ts +33 -0
  181. package/dist/src/modules/v4/prisma/index.d.ts +32 -0
  182. package/dist/src/modules/v4/protocol/index.d.ts +3 -0
  183. package/dist/src/modules/v4/protocol/protocol.controller.d.ts +87 -0
  184. package/dist/src/modules/v4/protocol/protocol.model.d.ts +27 -0
  185. package/dist/src/modules/v4/protocol/protocol.repository.d.ts +37 -0
  186. package/dist/src/modules/v4/protocol/protocol.service.d.ts +10 -0
  187. package/dist/src/modules/v4/reward/index.d.ts +3 -0
  188. package/dist/src/modules/v4/reward/reward.controller.d.ts +158 -0
  189. package/dist/src/modules/v4/reward/reward.model.d.ts +158 -0
  190. package/dist/src/modules/v4/reward/reward.repository.d.ts +158 -0
  191. package/dist/src/modules/v4/reward/reward.service.d.ts +523 -0
  192. package/dist/src/modules/v4/reward/rewardConvertor.service.d.ts +14 -0
  193. package/dist/src/modules/v4/router.d.ts +1865 -0
  194. package/dist/src/modules/v4/status/index.d.ts +3 -0
  195. package/dist/src/modules/v4/status/status.controller.d.ts +143 -0
  196. package/dist/src/modules/v4/status/status.model.d.ts +23 -0
  197. package/dist/src/modules/v4/status/status.repository.d.ts +68 -0
  198. package/dist/src/modules/v4/status/status.service.d.ts +38 -0
  199. package/dist/src/modules/v4/token/index.d.ts +3 -0
  200. package/dist/src/modules/v4/token/token.controller.d.ts +131 -0
  201. package/dist/src/modules/v4/token/token.model.d.ts +35 -0
  202. package/dist/src/modules/v4/token/token.repository.d.ts +59 -0
  203. package/dist/src/modules/v4/token/token.service.d.ts +165 -0
  204. package/dist/src/modules/v4/tvl/index.d.ts +2 -0
  205. package/dist/src/modules/v4/tvl/tvl.controller.d.ts +0 -0
  206. package/dist/src/modules/v4/tvl/tvl.model.d.ts +15 -0
  207. package/dist/src/modules/v4/tvl/tvl.repository.d.ts +0 -0
  208. package/dist/src/modules/v4/tvl/tvl.service.d.ts +6 -0
  209. package/dist/src/modules/v4/uniswapV4/index.d.ts +4 -0
  210. package/dist/src/modules/v4/uniswapV4/uniswapV4.controller.d.ts +52 -0
  211. package/dist/src/modules/v4/uniswapV4/uniswapV4.model.d.ts +15 -0
  212. package/dist/src/modules/v4/uniswapV4/uniswapV4.repository.d.ts +2 -0
  213. package/dist/src/modules/v4/uniswapV4/uniswapV4.service.d.ts +20 -0
  214. package/dist/src/modules/v4/user/index.d.ts +3 -0
  215. package/dist/src/modules/v4/user/user.controller.d.ts +325 -0
  216. package/dist/src/modules/v4/user/user.model.d.ts +25 -0
  217. package/dist/src/modules/v4/user/user.repository.d.ts +19 -0
  218. package/dist/src/modules/v4/user/user.service.d.ts +19 -0
  219. package/dist/src/plugins/error-handling.plugin.d.ts +28 -0
  220. package/dist/src/plugins/logger.plugin.d.ts +21 -0
  221. package/dist/src/routes/v1/allowances.d.ts +66 -0
  222. package/dist/src/routes/v1/balances.d.ts +49 -0
  223. package/dist/src/routes/v1/prices.d.ts +41 -0
  224. package/dist/src/routes/v1/tokens.d.ts +44 -0
  225. package/dist/src/routes/v2/merkl.d.ts +54 -0
  226. package/dist/src/routes/v3/ERC20Campaigns.d.ts +1910 -0
  227. package/dist/src/routes/v3/app.d.ts +39 -0
  228. package/dist/src/routes/v3/blacklist.d.ts +1910 -0
  229. package/dist/src/routes/v3/campaign/delay.d.ts +41 -0
  230. package/dist/src/routes/v3/campaignClaims.d.ts +43 -0
  231. package/dist/src/routes/v3/campaignReport.d.ts +42 -0
  232. package/dist/src/routes/v3/campaignUnclaimed.d.ts +43 -0
  233. package/dist/src/routes/v3/campaigns.d.ts +1915 -0
  234. package/dist/src/routes/v3/campaignsForMainParameter.d.ts +42 -0
  235. package/dist/src/routes/v3/campaignsInfo.d.ts +1902 -0
  236. package/dist/src/routes/v3/campaignsRewardsReport.d.ts +43 -0
  237. package/dist/src/routes/v3/claims.d.ts +45 -0
  238. package/dist/src/routes/v3/compoundV2.d.ts +40 -0
  239. package/dist/src/routes/v3/createCampaign.d.ts +46 -0
  240. package/dist/src/routes/v3/dolomite.d.ts +40 -0
  241. package/dist/src/routes/v3/euler.d.ts +40 -0
  242. package/dist/src/routes/v3/exports/campaigns.d.ts +42 -0
  243. package/dist/src/routes/v3/fetch.d.ts +45 -0
  244. package/dist/src/routes/v3/health.d.ts +39 -0
  245. package/dist/src/routes/v3/lostyield.d.ts +52 -0
  246. package/dist/src/routes/v3/merkl.d.ts +87 -0
  247. package/dist/src/routes/v3/morphoMarkets.d.ts +61 -0
  248. package/dist/src/routes/v3/morphoVaults.d.ts +51 -0
  249. package/dist/src/routes/v3/multiChainPositions.d.ts +1909 -0
  250. package/dist/src/routes/v3/opportunity.d.ts +1946 -0
  251. package/dist/src/routes/v3/overview.d.ts +60 -0
  252. package/dist/src/routes/v3/parse.d.ts +46 -0
  253. package/dist/src/routes/v3/payload.d.ts +57 -0
  254. package/dist/src/routes/v3/poolInfo.d.ts +42 -0
  255. package/dist/src/routes/v3/positions.d.ts +1927 -0
  256. package/dist/src/routes/v3/radiant.d.ts +55 -0
  257. package/dist/src/routes/v3/recipients.d.ts +38 -0
  258. package/dist/src/routes/v3/rewards.d.ts +1910 -0
  259. package/dist/src/routes/v3/rewardsReport.d.ts +48 -0
  260. package/dist/src/routes/v3/rootForTimestamp.d.ts +52 -0
  261. package/dist/src/routes/v3/silo.d.ts +52 -0
  262. package/dist/src/routes/v3/token.d.ts +50 -0
  263. package/dist/src/routes/v3/tokenUnclaimed.d.ts +43 -0
  264. package/dist/src/routes/v3/twt/participants.d.ts +40 -0
  265. package/dist/src/routes/v3/updates.d.ts +1907 -0
  266. package/dist/src/routes/v3/userRewards.d.ts +1931 -0
  267. package/dist/src/types/index.d.ts +46 -0
  268. package/dist/src/types/parameters/Action.d.ts +4 -0
  269. package/dist/src/types/parameters/Chain.d.ts +4 -0
  270. package/dist/src/types/parameters/ChainCampaignId.d.ts +4 -0
  271. package/dist/src/types/parameters/MainParameter.d.ts +4 -0
  272. package/dist/src/types/parameters/OpportunityId.d.ts +4 -0
  273. package/dist/src/types/parameters/Timestamp.d.ts +4 -0
  274. package/dist/src/types/parameters/Type.d.ts +4 -0
  275. package/dist/src/types/parameters/index.d.ts +36 -0
  276. package/dist/src/types/returnTypes.d.ts +27 -0
  277. package/dist/src/types/utils.d.ts +5 -0
  278. package/dist/src/utils/addString.d.ts +2 -0
  279. package/dist/src/utils/bigintToString.d.ts +1 -0
  280. package/dist/src/utils/crypto.d.ts +1 -0
  281. package/dist/src/utils/error.d.ts +53 -0
  282. package/dist/src/utils/execute.d.ts +32 -0
  283. package/dist/src/utils/generic.d.ts +24 -0
  284. package/dist/src/utils/hashArray.d.ts +1 -0
  285. package/dist/src/utils/lastBlockBefore.d.ts +3 -0
  286. package/dist/src/utils/logger.d.ts +24 -0
  287. package/dist/src/utils/pricer.d.ts +52 -0
  288. package/dist/src/utils/prices/chainlinkRead.d.ts +4 -0
  289. package/dist/src/utils/prices/curveVirtualPrice.d.ts +4 -0
  290. package/dist/src/utils/prices/getDQUICK.d.ts +4 -0
  291. package/dist/src/utils/prices/priceFetcherFactory.d.ts +10 -0
  292. package/dist/src/utils/prices/priceService.d.ts +13 -0
  293. package/dist/src/utils/prices/services/coinGeckoService.d.ts +12 -0
  294. package/dist/src/utils/prices/services/defillamaService.d.ts +12 -0
  295. package/dist/src/utils/prices/services/dexScreenerService.d.ts +12 -0
  296. package/dist/src/utils/prices/services/erc4626Service.d.ts +9 -0
  297. package/dist/src/utils/prices/services/getERC4626.d.ts +4 -0
  298. package/dist/src/utils/prices/services/indexCoopService.d.ts +12 -0
  299. package/dist/src/utils/prices/services/priceFetcher.d.ts +8 -0
  300. package/dist/src/utils/prices/uniV2Price.d.ts +7 -0
  301. package/dist/src/utils/prisma.d.ts +16 -0
  302. package/dist/src/utils/providers.d.ts +13 -0
  303. package/dist/src/utils/queries/activeCampaigns.d.ts +3 -0
  304. package/dist/src/utils/queries/allCampaigns.d.ts +6 -0
  305. package/dist/src/utils/queries/campaignsForMainParameter.d.ts +2 -0
  306. package/dist/src/utils/queries/claimsOverTime.d.ts +8 -0
  307. package/dist/src/utils/queries/endingCampaigns.d.ts +10 -0
  308. package/dist/src/utils/queries/futureCampaigns.d.ts +3 -0
  309. package/dist/src/utils/queries/mainParameterCampaigns.d.ts +5 -0
  310. package/dist/src/utils/queries/rewardsAmount.d.ts +10 -0
  311. package/dist/src/utils/queries/unclaimed.d.ts +11 -0
  312. package/dist/src/utils/rateLimit.d.ts +63 -0
  313. package/dist/src/utils/stryke.d.ts +2 -0
  314. package/dist/src/utils/throw.d.ts +4 -0
  315. package/dist/src/utils/trace.d.ts +26 -0
  316. package/dist/src/utils/validation.d.ts +5 -0
  317. package/dist/tsconfig.package.tsbuildinfo +1 -0
  318. package/package.json +91 -0
@@ -0,0 +1,1910 @@
1
+ import type { App } from "../../index";
2
+ export declare const query: import("@sinclair/typebox").TObject<{
3
+ user: import("@sinclair/typebox").TString;
4
+ }>;
5
+ export declare const response: import("@sinclair/typebox").TObject<{
6
+ isBlacklisted: import("@sinclair/typebox").TBoolean;
7
+ }>;
8
+ declare const _default: (app: App) => import("elysia").default<"", false, {
9
+ decorator: {};
10
+ store: {};
11
+ derive: {};
12
+ resolve: {};
13
+ }, {
14
+ type: {};
15
+ error: {
16
+ readonly HttpError: import("../../errors").HttpError;
17
+ readonly BadRequestError: import("../../errors").BadRequestError;
18
+ readonly ConflictError: import("../../errors").ConflictError;
19
+ readonly NotFoundError: import("../../errors").NotFoundError;
20
+ readonly UnauthorizedError: import("../../errors").UnauthorizedError;
21
+ readonly InvalidParameter: import("../../utils/error").InvalidParameter;
22
+ readonly UnsupportedNetwork: import("../../utils/error").UnsupportedNetwork;
23
+ readonly OpportunityNotFound: import("../../utils/error").OpportunityNotFound;
24
+ readonly MerkleRootNotFound: import("../../utils/error").MerkleRootNotFound;
25
+ readonly ValidationError: import("elysia").ValidationError;
26
+ readonly InvalidCacheCall: import("../../utils/error").InvalidCacheCall;
27
+ };
28
+ }, {
29
+ schema: {};
30
+ macro: {};
31
+ }, false & {
32
+ index: {
33
+ get: {
34
+ body: unknown;
35
+ params: Record<never, string>;
36
+ query: unknown;
37
+ headers: unknown;
38
+ response: {
39
+ 200: string;
40
+ };
41
+ };
42
+ };
43
+ } & {
44
+ v4: {};
45
+ } & {
46
+ v4: {
47
+ opportunities: {
48
+ index: {
49
+ post: {
50
+ body: {
51
+ name?: string | undefined;
52
+ type: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4";
53
+ tokens: {
54
+ chainId: number;
55
+ address: string;
56
+ }[];
57
+ status: "NONE" | "PAST" | "LIVE" | "SOON";
58
+ identifier: string;
59
+ chainId: number;
60
+ action: "INVALID" | "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW";
61
+ protocols: string[];
62
+ mainProtocol: string;
63
+ };
64
+ params: Record<never, string>;
65
+ query: unknown;
66
+ headers: {
67
+ authorization: string;
68
+ };
69
+ response: {
70
+ 200: void;
71
+ };
72
+ };
73
+ };
74
+ };
75
+ } & {
76
+ opportunities: {
77
+ ":id": {
78
+ get: {
79
+ body: unknown;
80
+ params: {
81
+ id: string;
82
+ };
83
+ query: unknown;
84
+ headers: unknown;
85
+ response: {
86
+ 200: {
87
+ aprRecord: {
88
+ cumulated: number;
89
+ cummulated: number;
90
+ timestamp: bigint;
91
+ breakdowns: {
92
+ id: number;
93
+ identifier: string;
94
+ type: import("../../../database/api/.generated").$Enums.AprType;
95
+ value: number;
96
+ aprRecordId: string;
97
+ }[];
98
+ };
99
+ tvlRecord: {
100
+ id: string;
101
+ total: number;
102
+ timestamp: bigint;
103
+ breakdowns: {
104
+ id: number;
105
+ identifier: string;
106
+ type: import("../../../database/api/.generated").$Enums.TvlType;
107
+ value: number;
108
+ tvlRecordId: string;
109
+ }[];
110
+ };
111
+ rewardsRecord: {
112
+ id: string;
113
+ total: number;
114
+ timestamp: bigint;
115
+ breakdowns: {
116
+ id: number;
117
+ value: number;
118
+ campaignId: string;
119
+ dailyRewardsRecordId: string;
120
+ }[];
121
+ };
122
+ id: string;
123
+ tokens: {
124
+ id: string;
125
+ name: string | null;
126
+ chainId: number;
127
+ address: string;
128
+ decimals: number;
129
+ symbol: string;
130
+ icon: string;
131
+ verified: boolean;
132
+ price: number | null;
133
+ }[];
134
+ chain: {
135
+ id: number;
136
+ name: string;
137
+ icon: string;
138
+ };
139
+ protocol: {
140
+ id: string;
141
+ tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
142
+ name: string;
143
+ description: string;
144
+ url: string;
145
+ icon: string;
146
+ } | undefined;
147
+ name: string;
148
+ type: import("../../../database/api/.generated").$Enums.CampaignType;
149
+ status: import("../../../database/api/.generated").$Enums.Status;
150
+ tags: string[];
151
+ identifier: string;
152
+ chainId: number;
153
+ action: import("../../../database/api/.generated").$Enums.OpportunityAction;
154
+ tvl: number;
155
+ apr: number;
156
+ dailyRewards: number;
157
+ } | null | undefined;
158
+ };
159
+ };
160
+ };
161
+ };
162
+ } & {
163
+ opportunities: {
164
+ ":id": {
165
+ campaigns: {
166
+ get: {
167
+ body: unknown;
168
+ params: {
169
+ id: string;
170
+ };
171
+ query: unknown;
172
+ headers: unknown;
173
+ response: {
174
+ 200: {
175
+ aprRecord: {
176
+ cumulated: number;
177
+ cummulated: number;
178
+ timestamp: bigint;
179
+ breakdowns: {
180
+ id: number;
181
+ identifier: string;
182
+ type: import("../../../database/api/.generated").$Enums.AprType;
183
+ value: number;
184
+ aprRecordId: string;
185
+ }[];
186
+ };
187
+ tvlRecord: {
188
+ id: string;
189
+ total: number;
190
+ timestamp: bigint;
191
+ breakdowns: {
192
+ id: number;
193
+ identifier: string;
194
+ type: import("../../../database/api/.generated").$Enums.TvlType;
195
+ value: number;
196
+ tvlRecordId: string;
197
+ }[];
198
+ };
199
+ rewardsRecord: {
200
+ id: string;
201
+ total: number;
202
+ timestamp: bigint;
203
+ breakdowns: {
204
+ id: number;
205
+ value: number;
206
+ campaignId: string;
207
+ dailyRewardsRecordId: string;
208
+ }[];
209
+ };
210
+ id: string;
211
+ tokens: {
212
+ id: string;
213
+ name: string | null;
214
+ chainId: number;
215
+ address: string;
216
+ decimals: number;
217
+ symbol: string;
218
+ icon: string;
219
+ verified: boolean;
220
+ price: number | null;
221
+ }[];
222
+ chain: {
223
+ id: number;
224
+ name: string;
225
+ icon: string;
226
+ };
227
+ protocol: {
228
+ id: string;
229
+ tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
230
+ name: string;
231
+ description: string;
232
+ url: string;
233
+ icon: string;
234
+ } | undefined;
235
+ name: string;
236
+ type: import("../../../database/api/.generated").$Enums.CampaignType;
237
+ status: import("../../../database/api/.generated").$Enums.Status;
238
+ tags: string[];
239
+ identifier: string;
240
+ chainId: number;
241
+ action: import("../../../database/api/.generated").$Enums.OpportunityAction;
242
+ tvl: number;
243
+ apr: number;
244
+ dailyRewards: number;
245
+ } | null | undefined;
246
+ };
247
+ };
248
+ };
249
+ };
250
+ };
251
+ } & {
252
+ opportunities: {
253
+ index: {
254
+ get: {
255
+ body: unknown;
256
+ params: Record<never, string>;
257
+ query: {
258
+ sort?: "tvl" | "apr" | "rewards" | undefined;
259
+ name?: string | undefined;
260
+ tokens?: string | undefined;
261
+ status?: string | undefined;
262
+ items?: number | undefined;
263
+ tags?: string | undefined;
264
+ chainId?: string | undefined;
265
+ page?: number | undefined;
266
+ action?: string | undefined;
267
+ mainProtocolId?: string | undefined;
268
+ order?: "asc" | "desc" | undefined;
269
+ };
270
+ headers: unknown;
271
+ response: {
272
+ 200: ({
273
+ aprRecord: {
274
+ cumulated: number;
275
+ cummulated: number;
276
+ timestamp: bigint;
277
+ breakdowns: {
278
+ id: number;
279
+ identifier: string;
280
+ type: import("../../../database/api/.generated").$Enums.AprType;
281
+ value: number;
282
+ aprRecordId: string;
283
+ }[];
284
+ };
285
+ tvlRecord: {
286
+ id: string;
287
+ total: number;
288
+ timestamp: bigint;
289
+ breakdowns: {
290
+ id: number;
291
+ identifier: string;
292
+ type: import("../../../database/api/.generated").$Enums.TvlType;
293
+ value: number;
294
+ tvlRecordId: string;
295
+ }[];
296
+ };
297
+ rewardsRecord: {
298
+ id: string;
299
+ total: number;
300
+ timestamp: bigint;
301
+ breakdowns: {
302
+ id: number;
303
+ value: number;
304
+ campaignId: string;
305
+ dailyRewardsRecordId: string;
306
+ }[];
307
+ };
308
+ id: string;
309
+ tokens: {
310
+ id: string;
311
+ name: string | null;
312
+ chainId: number;
313
+ address: string;
314
+ decimals: number;
315
+ symbol: string;
316
+ icon: string;
317
+ verified: boolean;
318
+ price: number | null;
319
+ }[];
320
+ chain: {
321
+ id: number;
322
+ name: string;
323
+ icon: string;
324
+ };
325
+ protocol: {
326
+ id: string;
327
+ tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
328
+ name: string;
329
+ description: string;
330
+ url: string;
331
+ icon: string;
332
+ } | undefined;
333
+ name: string;
334
+ type: import("../../../database/api/.generated").$Enums.CampaignType;
335
+ status: import("../../../database/api/.generated").$Enums.Status;
336
+ tags: string[];
337
+ identifier: string;
338
+ chainId: number;
339
+ action: import("../../../database/api/.generated").$Enums.OpportunityAction;
340
+ tvl: number;
341
+ apr: number;
342
+ dailyRewards: number;
343
+ } | null)[];
344
+ };
345
+ };
346
+ };
347
+ };
348
+ } & {
349
+ opportunities: {
350
+ count: {
351
+ get: {
352
+ body: unknown;
353
+ params: Record<never, string>;
354
+ query: {
355
+ sort?: "tvl" | "apr" | "rewards" | undefined;
356
+ name?: string | undefined;
357
+ tokens?: string | undefined;
358
+ status?: string | undefined;
359
+ items?: number | undefined;
360
+ tags?: string | undefined;
361
+ chainId?: string | undefined;
362
+ page?: number | undefined;
363
+ action?: string | undefined;
364
+ mainProtocolId?: string | undefined;
365
+ order?: "asc" | "desc" | undefined;
366
+ };
367
+ headers: unknown;
368
+ response: {
369
+ 200: number;
370
+ };
371
+ };
372
+ };
373
+ };
374
+ };
375
+ } & {
376
+ v4: {
377
+ campaigns: {
378
+ index: {
379
+ post: {
380
+ body: {
381
+ subType?: number | undefined;
382
+ type: number;
383
+ params: string;
384
+ identifier: string;
385
+ chainId: number;
386
+ startTimestamp: string;
387
+ endTimestamp: string;
388
+ computeChainId: number;
389
+ campaignId: string;
390
+ amount: string;
391
+ creator: string;
392
+ rewardTokenAddress: string;
393
+ opportunityIdentifier: string;
394
+ };
395
+ params: Record<never, string>;
396
+ query: unknown;
397
+ headers: {
398
+ authorization: string;
399
+ };
400
+ response: {
401
+ 200: unknown;
402
+ };
403
+ };
404
+ };
405
+ };
406
+ } & {
407
+ campaigns: {
408
+ index: {
409
+ get: {
410
+ body: unknown;
411
+ params: Record<never, string>;
412
+ query: {
413
+ type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | undefined;
414
+ items?: number | undefined;
415
+ identifier?: string | undefined;
416
+ subType?: number | undefined;
417
+ chainId?: number | undefined;
418
+ startTimestamp?: string | undefined;
419
+ endTimestamp?: string | undefined;
420
+ page?: number | undefined;
421
+ mainParameter?: string | undefined;
422
+ campaignId?: string | undefined;
423
+ opportunityId?: string | undefined;
424
+ };
425
+ headers: unknown;
426
+ response: {
427
+ 200: ({
428
+ params: any;
429
+ chain: {
430
+ id: number;
431
+ name: string;
432
+ icon: string;
433
+ };
434
+ rewardToken: {
435
+ id: string;
436
+ name: string | null;
437
+ chainId: number;
438
+ address: string;
439
+ decimals: number;
440
+ symbol: string;
441
+ icon: string;
442
+ verified: boolean;
443
+ price: number | null;
444
+ };
445
+ distributionChain: {
446
+ id: number;
447
+ name: string;
448
+ icon: string;
449
+ } | undefined;
450
+ id: string;
451
+ computeChainId: number;
452
+ distributionChainId: number;
453
+ identifier: string;
454
+ campaignId: string;
455
+ type: import("../../../database/api/.generated").$Enums.CampaignType;
456
+ subType: number | null;
457
+ rewardTokenId: string;
458
+ amount: string;
459
+ opportunityId: string;
460
+ startTimestamp: bigint;
461
+ endTimestamp: bigint;
462
+ creatorAddress: string;
463
+ } | null)[];
464
+ };
465
+ };
466
+ };
467
+ };
468
+ } & {
469
+ campaigns: {
470
+ count: {
471
+ get: {
472
+ body: unknown;
473
+ params: Record<never, string>;
474
+ query: {
475
+ type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | undefined;
476
+ items?: number | undefined;
477
+ identifier?: string | undefined;
478
+ subType?: number | undefined;
479
+ chainId?: number | undefined;
480
+ startTimestamp?: string | undefined;
481
+ endTimestamp?: string | undefined;
482
+ page?: number | undefined;
483
+ mainParameter?: string | undefined;
484
+ campaignId?: string | undefined;
485
+ opportunityId?: string | undefined;
486
+ };
487
+ headers: unknown;
488
+ response: {
489
+ 200: number;
490
+ };
491
+ };
492
+ };
493
+ };
494
+ };
495
+ } & {
496
+ v4: {
497
+ protocols: {
498
+ ":id": {
499
+ get: {
500
+ body: unknown;
501
+ params: Record<"id", string>;
502
+ query: unknown;
503
+ headers: unknown;
504
+ response: {
505
+ 200: ({
506
+ name: string;
507
+ url: string;
508
+ description: string;
509
+ tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
510
+ icon: string;
511
+ } & {}) | null;
512
+ };
513
+ };
514
+ };
515
+ };
516
+ } & {
517
+ protocols: {
518
+ index: {
519
+ get: {
520
+ body: unknown;
521
+ params: Record<never, string>;
522
+ query: {
523
+ name?: string | undefined;
524
+ id?: string[] | undefined;
525
+ items?: number | undefined;
526
+ tags?: ("AMM" | "ALM" | "DEX" | "LENDING")[] | undefined;
527
+ page?: number | undefined;
528
+ };
529
+ headers: unknown;
530
+ response: {
531
+ 200: ({
532
+ name: string;
533
+ url: string;
534
+ description: string;
535
+ tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
536
+ icon: string;
537
+ } & {})[] | null;
538
+ };
539
+ };
540
+ };
541
+ };
542
+ } & {
543
+ protocols: {
544
+ count: {
545
+ get: {
546
+ body: unknown;
547
+ params: Record<never, string>;
548
+ query: {
549
+ name?: string | undefined;
550
+ id?: string[] | undefined;
551
+ items?: number | undefined;
552
+ tags?: ("AMM" | "ALM" | "DEX" | "LENDING")[] | undefined;
553
+ page?: number | undefined;
554
+ };
555
+ headers: unknown;
556
+ response: {
557
+ 200: number;
558
+ };
559
+ };
560
+ };
561
+ };
562
+ };
563
+ } & {
564
+ v4: {
565
+ tokens: {
566
+ ":id": {
567
+ get: {
568
+ body: unknown;
569
+ params: {
570
+ id: string;
571
+ };
572
+ query: unknown;
573
+ headers: unknown;
574
+ response: {
575
+ 200: ({
576
+ symbol: string;
577
+ name: string | null;
578
+ id: string;
579
+ chainId: number;
580
+ address: string;
581
+ icon: string;
582
+ decimals: number;
583
+ verified: boolean;
584
+ } & {
585
+ price?: number | null | undefined;
586
+ }) | undefined;
587
+ };
588
+ };
589
+ };
590
+ };
591
+ } & {
592
+ tokens: {
593
+ balances: {
594
+ get: {
595
+ body: unknown;
596
+ params: Record<never, string>;
597
+ query: {
598
+ tokenAddress?: string | undefined;
599
+ additionalTokenAddresses?: string[] | undefined;
600
+ chainId: number;
601
+ userAddress: string;
602
+ };
603
+ headers: unknown;
604
+ response: {
605
+ 200: ({
606
+ symbol: string;
607
+ name: string | null;
608
+ id: string;
609
+ chainId: number;
610
+ address: string;
611
+ icon: string;
612
+ decimals: number;
613
+ verified: boolean;
614
+ } & {
615
+ price?: number | null | undefined;
616
+ } & {
617
+ balance: bigint;
618
+ })[];
619
+ };
620
+ };
621
+ };
622
+ };
623
+ } & {
624
+ tokens: {
625
+ index: {
626
+ get: {
627
+ body: unknown;
628
+ params: Record<never, string>;
629
+ query: {
630
+ symbol?: string | undefined;
631
+ name?: string | undefined;
632
+ chainId?: any;
633
+ address?: string | undefined;
634
+ verified?: boolean | undefined;
635
+ };
636
+ headers: unknown;
637
+ response: {
638
+ 200: ({
639
+ symbol: string;
640
+ name: string | null;
641
+ id: string;
642
+ chainId: number;
643
+ address: string;
644
+ icon: string;
645
+ decimals: number;
646
+ verified: boolean;
647
+ } & {
648
+ price?: number | null | undefined;
649
+ })[];
650
+ };
651
+ };
652
+ };
653
+ };
654
+ } & {
655
+ tokens: {
656
+ count: {
657
+ get: {
658
+ body: unknown;
659
+ params: Record<never, string>;
660
+ query: {
661
+ symbol?: string | undefined;
662
+ name?: string | undefined;
663
+ chainId?: any;
664
+ address?: string | undefined;
665
+ verified?: boolean | undefined;
666
+ };
667
+ headers: unknown;
668
+ response: {
669
+ 200: number;
670
+ };
671
+ };
672
+ };
673
+ };
674
+ };
675
+ } & {
676
+ v4: {
677
+ rewards: {
678
+ engine: {
679
+ post: {
680
+ body: {
681
+ recipient: string;
682
+ distributionChainId: number;
683
+ root: string;
684
+ proofs: string[];
685
+ rewardToken: string;
686
+ }[];
687
+ params: Record<never, string>;
688
+ query: unknown;
689
+ headers: {
690
+ authorization: string;
691
+ };
692
+ response: {
693
+ 200: import("../../../database/api/.generated").Prisma.BatchPayload;
694
+ };
695
+ };
696
+ };
697
+ };
698
+ } & {
699
+ rewards: {
700
+ engine: {
701
+ breakdowns: {
702
+ post: {
703
+ body: {
704
+ distributionChainId: number;
705
+ campaignId: string;
706
+ root: string;
707
+ rewardToken: string;
708
+ breakdowns: {
709
+ protocolId?: string | undefined;
710
+ auxiliaryData1?: string | undefined;
711
+ auxiliaryData2?: string | undefined;
712
+ reason: string;
713
+ pending: string;
714
+ recipient: string;
715
+ amount: string;
716
+ claimed: string;
717
+ }[];
718
+ }[];
719
+ params: Record<never, string>;
720
+ query: unknown;
721
+ headers: {
722
+ authorization: string;
723
+ };
724
+ response: {
725
+ 200: import("../../../database/api/.generated").Prisma.BatchPayload;
726
+ };
727
+ };
728
+ };
729
+ };
730
+ };
731
+ } & {
732
+ rewards: {
733
+ pendings: {
734
+ post: {
735
+ body: {
736
+ distributionChainId: number;
737
+ campaignId: string;
738
+ root: string;
739
+ rewardToken: string;
740
+ toUpdate: {
741
+ auxiliaryData1?: string | undefined;
742
+ auxiliaryData2?: string | undefined;
743
+ reason: string;
744
+ pending: string;
745
+ recipient: string;
746
+ }[];
747
+ toCreate: {
748
+ auxiliaryData1?: string | undefined;
749
+ auxiliaryData2?: string | undefined;
750
+ reason: string;
751
+ pending: string;
752
+ recipient: string;
753
+ }[];
754
+ };
755
+ params: Record<never, string>;
756
+ query: unknown;
757
+ headers: {
758
+ authorization: string;
759
+ };
760
+ response: {
761
+ 200: boolean;
762
+ };
763
+ };
764
+ };
765
+ };
766
+ } & {
767
+ rewards: {
768
+ count: {
769
+ get: {
770
+ body: unknown;
771
+ params: Record<never, string>;
772
+ query: unknown;
773
+ headers: {
774
+ authorization: string;
775
+ };
776
+ response: {
777
+ 200: Record<string, {
778
+ breakdown: number;
779
+ rewards: Record<string, number>;
780
+ }>;
781
+ };
782
+ };
783
+ };
784
+ };
785
+ } & {
786
+ rewards: {
787
+ breakdown: {
788
+ get: {
789
+ body: unknown;
790
+ params: Record<never, string>;
791
+ query: {
792
+ items?: number | undefined;
793
+ page?: number | undefined;
794
+ chainId: number;
795
+ campaignIdentifiers: string | string[];
796
+ };
797
+ headers: unknown;
798
+ response: {
799
+ 200: {
800
+ Campaign: {
801
+ identifier: string;
802
+ campaignId: string;
803
+ };
804
+ amount: string;
805
+ Reward: {
806
+ recipient: string;
807
+ };
808
+ }[];
809
+ };
810
+ };
811
+ };
812
+ };
813
+ };
814
+ } & {
815
+ v4: {
816
+ chains: {
817
+ ":chainId": {
818
+ get: {
819
+ body: unknown;
820
+ params: {
821
+ chainId: number;
822
+ };
823
+ query: unknown;
824
+ headers: unknown;
825
+ response: {
826
+ 200: ({
827
+ Explorer: {
828
+ id: string;
829
+ type: import("../../../database/api/.generated").$Enums.ExplorerType;
830
+ url: string;
831
+ chainId: number;
832
+ }[];
833
+ } & {
834
+ id: number;
835
+ name: string;
836
+ icon: string;
837
+ }) | null;
838
+ };
839
+ };
840
+ };
841
+ };
842
+ } & {
843
+ chains: {
844
+ index: {
845
+ get: {
846
+ body: unknown;
847
+ params: Record<never, string>;
848
+ query: {
849
+ search?: string | undefined;
850
+ };
851
+ headers: unknown;
852
+ response: {
853
+ 200: ({
854
+ Explorer: {
855
+ id: string;
856
+ type: import("../../../database/api/.generated").$Enums.ExplorerType;
857
+ url: string;
858
+ chainId: number;
859
+ }[];
860
+ } & {
861
+ id: number;
862
+ name: string;
863
+ icon: string;
864
+ })[];
865
+ };
866
+ };
867
+ };
868
+ };
869
+ } & {
870
+ chains: {
871
+ count: {
872
+ get: {
873
+ body: unknown;
874
+ params: Record<never, string>;
875
+ query: {
876
+ search?: string | undefined;
877
+ };
878
+ headers: unknown;
879
+ response: {
880
+ 200: number;
881
+ };
882
+ };
883
+ };
884
+ };
885
+ };
886
+ } & {
887
+ v4: {
888
+ prices: {
889
+ index: {
890
+ get: {
891
+ body: unknown;
892
+ params: Record<never, string>;
893
+ query: unknown;
894
+ headers: unknown;
895
+ response: {
896
+ 200: {
897
+ [token: string]: number;
898
+ };
899
+ };
900
+ };
901
+ };
902
+ } & {
903
+ symbol: {
904
+ ":symbol": {
905
+ get: {
906
+ body: unknown;
907
+ params: {
908
+ symbol: string;
909
+ };
910
+ query: unknown;
911
+ headers: unknown;
912
+ response: {
913
+ 200: number;
914
+ };
915
+ };
916
+ };
917
+ };
918
+ } & {
919
+ sources: {
920
+ index: {
921
+ get: {
922
+ body: unknown;
923
+ params: Record<never, string>;
924
+ query: unknown;
925
+ headers: unknown;
926
+ response: {
927
+ 200: {
928
+ id: number;
929
+ symbol: string;
930
+ method: import("../../../database/api/.generated").$Enums.PriceSourceMethod;
931
+ args: import("../../../database/api/.generated").Prisma.JsonValue | null;
932
+ }[];
933
+ };
934
+ };
935
+ };
936
+ };
937
+ } & {
938
+ sources: {
939
+ symbol: {
940
+ ":symbol": {
941
+ get: {
942
+ body: unknown;
943
+ params: {
944
+ symbol: string;
945
+ };
946
+ query: unknown;
947
+ headers: unknown;
948
+ response: {
949
+ 200: {
950
+ id: number;
951
+ symbol: string;
952
+ method: import("../../../database/api/.generated").$Enums.PriceSourceMethod;
953
+ args: import("../../../database/api/.generated").Prisma.JsonValue | null;
954
+ };
955
+ };
956
+ };
957
+ };
958
+ };
959
+ };
960
+ } & {
961
+ sources: {
962
+ index: {
963
+ post: {
964
+ body: {
965
+ symbol: string;
966
+ method: "COINGECKO" | "CONSTANT" | "EQUAL_TO" | "ERC4626" | "DEXSCREENER" | "INDEXCOOP" | "DEFILLAMA";
967
+ args: {};
968
+ };
969
+ params: Record<never, string>;
970
+ query: unknown;
971
+ headers: {
972
+ authorization: string;
973
+ };
974
+ response: {
975
+ 200: number | undefined;
976
+ };
977
+ };
978
+ };
979
+ };
980
+ } & {
981
+ sources: {
982
+ symbol: {
983
+ ":symbol": {
984
+ patch: {
985
+ body: {
986
+ symbol?: string | undefined;
987
+ method?: "COINGECKO" | "CONSTANT" | "EQUAL_TO" | "ERC4626" | "DEXSCREENER" | "INDEXCOOP" | "DEFILLAMA" | undefined;
988
+ args?: {} | undefined;
989
+ };
990
+ params: {
991
+ symbol: string;
992
+ };
993
+ query: unknown;
994
+ headers: {
995
+ authorization: string;
996
+ };
997
+ response: {
998
+ 200: {
999
+ id: number;
1000
+ symbol: string;
1001
+ method: import("../../../database/api/.generated").$Enums.PriceSourceMethod;
1002
+ args: import("../../../database/api/.generated").Prisma.JsonValue | null;
1003
+ };
1004
+ };
1005
+ };
1006
+ };
1007
+ };
1008
+ };
1009
+ } & {
1010
+ sources: {
1011
+ symbol: {
1012
+ ":symbol": {
1013
+ delete: {
1014
+ body: unknown;
1015
+ params: {
1016
+ symbol: string;
1017
+ };
1018
+ query: unknown;
1019
+ headers: {
1020
+ authorization: string;
1021
+ };
1022
+ response: {
1023
+ 200: {
1024
+ id: number;
1025
+ symbol: string;
1026
+ method: import("../../../database/api/.generated").$Enums.PriceSourceMethod;
1027
+ args: import("../../../database/api/.generated").Prisma.JsonValue | null;
1028
+ };
1029
+ };
1030
+ };
1031
+ };
1032
+ };
1033
+ };
1034
+ };
1035
+ };
1036
+ } & {
1037
+ v4: {
1038
+ blacklists: {
1039
+ index: {
1040
+ get: {
1041
+ body: unknown;
1042
+ params: Record<never, string>;
1043
+ query: unknown;
1044
+ headers: unknown;
1045
+ response: {
1046
+ 200: {
1047
+ id: string;
1048
+ chainId: number;
1049
+ poolAddress: string;
1050
+ userAddress: string;
1051
+ arrestTimestamp: bigint;
1052
+ arrestDetails: import("../../../database/api/.generated").Prisma.JsonValue;
1053
+ }[];
1054
+ };
1055
+ };
1056
+ };
1057
+ };
1058
+ } & {
1059
+ blacklists: {
1060
+ all: {
1061
+ get: {
1062
+ body: unknown;
1063
+ params: Record<never, string>;
1064
+ query: unknown;
1065
+ headers: unknown;
1066
+ response: {
1067
+ 200: string[];
1068
+ };
1069
+ };
1070
+ };
1071
+ };
1072
+ } & {
1073
+ blacklists: {
1074
+ check: {
1075
+ ":address": {
1076
+ get: {
1077
+ body: unknown;
1078
+ params: {
1079
+ address: string;
1080
+ };
1081
+ query: unknown;
1082
+ headers: unknown;
1083
+ response: {
1084
+ 200: boolean;
1085
+ };
1086
+ };
1087
+ };
1088
+ };
1089
+ };
1090
+ } & {
1091
+ blacklists: {
1092
+ index: {
1093
+ post: {
1094
+ body: {
1095
+ reason?: string | undefined;
1096
+ chainId: number;
1097
+ poolAddress: string;
1098
+ userAddress: string;
1099
+ };
1100
+ params: Record<never, string>;
1101
+ query: unknown;
1102
+ headers: {
1103
+ authorization: string;
1104
+ };
1105
+ response: {
1106
+ 200: {
1107
+ id: string;
1108
+ chainId: number;
1109
+ poolAddress: string;
1110
+ userAddress: string;
1111
+ arrestTimestamp: bigint;
1112
+ arrestDetails: import("../../../database/api/.generated").Prisma.JsonValue;
1113
+ };
1114
+ };
1115
+ };
1116
+ };
1117
+ };
1118
+ } & {
1119
+ blacklists: {
1120
+ user: {
1121
+ ":address": {
1122
+ delete: {
1123
+ body: unknown;
1124
+ params: {
1125
+ address: string;
1126
+ };
1127
+ query: unknown;
1128
+ headers: {
1129
+ authorization: string;
1130
+ };
1131
+ response: {
1132
+ 200: boolean;
1133
+ };
1134
+ };
1135
+ };
1136
+ };
1137
+ };
1138
+ };
1139
+ } & {
1140
+ v4: {
1141
+ users: {
1142
+ index: {
1143
+ get: {
1144
+ body: unknown;
1145
+ params: Record<never, string>;
1146
+ query: {
1147
+ items?: number | undefined;
1148
+ tags?: string[] | undefined;
1149
+ page?: number | undefined;
1150
+ address?: string | undefined;
1151
+ };
1152
+ headers: unknown;
1153
+ response: {
1154
+ 200: {
1155
+ address: string;
1156
+ tags: string[];
1157
+ }[];
1158
+ };
1159
+ };
1160
+ };
1161
+ };
1162
+ } & {
1163
+ users: {
1164
+ ":address": {
1165
+ get: {
1166
+ body: unknown;
1167
+ params: Record<"address", string>;
1168
+ query: unknown;
1169
+ headers: unknown;
1170
+ response: {
1171
+ 200: {
1172
+ address: string;
1173
+ } | null;
1174
+ };
1175
+ };
1176
+ };
1177
+ };
1178
+ } & {
1179
+ users: {
1180
+ ":address": {
1181
+ rewards: {
1182
+ full: {
1183
+ get: {
1184
+ body: unknown;
1185
+ params: {
1186
+ address: string;
1187
+ };
1188
+ query: unknown;
1189
+ headers: unknown;
1190
+ response: {
1191
+ 200: (Omit<{
1192
+ chain: import("../../../database/api/.generated").Chain;
1193
+ rewards: Awaited<ReturnType<typeof import("../../modules/v4/reward").RewardService["getByRecipient"]>>;
1194
+ }, "rewards"> & {
1195
+ rewards: (Omit<{
1196
+ token: {
1197
+ id: string;
1198
+ name: string | null;
1199
+ chainId: number;
1200
+ address: string;
1201
+ decimals: number;
1202
+ symbol: string;
1203
+ icon: string;
1204
+ verified: boolean;
1205
+ price: number | null;
1206
+ };
1207
+ breakdowns: {
1208
+ campaignId: string;
1209
+ opportunity: {
1210
+ Chain: {
1211
+ id: number;
1212
+ name: string;
1213
+ icon: string;
1214
+ };
1215
+ Tokens: {
1216
+ id: string;
1217
+ name: string | null;
1218
+ chainId: number;
1219
+ address: string;
1220
+ decimals: number;
1221
+ symbol: string;
1222
+ icon: string;
1223
+ verified: boolean;
1224
+ price: number | null;
1225
+ }[];
1226
+ Protocols: {
1227
+ id: string;
1228
+ tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
1229
+ name: string;
1230
+ description: string;
1231
+ url: string;
1232
+ icon: string;
1233
+ }[];
1234
+ MainProtocol: {
1235
+ id: string;
1236
+ tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
1237
+ name: string;
1238
+ description: string;
1239
+ url: string;
1240
+ icon: string;
1241
+ } | null;
1242
+ } & {
1243
+ id: string;
1244
+ chainId: number;
1245
+ type: import("../../../database/api/.generated").$Enums.CampaignType;
1246
+ identifier: string;
1247
+ name: string;
1248
+ status: import("../../../database/api/.generated").$Enums.Status;
1249
+ action: import("../../../database/api/.generated").$Enums.OpportunityAction;
1250
+ mainProtocolId: string | null;
1251
+ tvl: number;
1252
+ apr: number;
1253
+ dailyRewards: number;
1254
+ tags: string[];
1255
+ };
1256
+ reason: string;
1257
+ amount: string;
1258
+ claimed: string;
1259
+ pending: string;
1260
+ auxiliaryData1: string | null;
1261
+ auxiliaryData2: string | null;
1262
+ }[];
1263
+ claimed: bigint;
1264
+ amount: bigint;
1265
+ pending: bigint;
1266
+ root: string;
1267
+ recipient: string;
1268
+ proofs: string[];
1269
+ }, "breakdowns"> & {
1270
+ breakdowns: {
1271
+ opportunity: import("../../modules/v4").Opportunity["model"] | null;
1272
+ claimed: bigint;
1273
+ amount: bigint;
1274
+ pending: bigint;
1275
+ auxiliaryData1: string | null;
1276
+ auxiliaryData2: string | null;
1277
+ }[];
1278
+ })[];
1279
+ distributor: string;
1280
+ })[];
1281
+ };
1282
+ };
1283
+ };
1284
+ };
1285
+ };
1286
+ };
1287
+ } & {
1288
+ users: {
1289
+ ":address": {
1290
+ rewards: {
1291
+ get: {
1292
+ body: unknown;
1293
+ params: {
1294
+ address: string;
1295
+ };
1296
+ query: {
1297
+ chainId: number | number[];
1298
+ };
1299
+ headers: unknown;
1300
+ response: {
1301
+ 200: (Omit<{
1302
+ chain: import("../../../database/api/.generated").Chain;
1303
+ rewards: Awaited<ReturnType<typeof import("../../modules/v4/reward").RewardService["getByRecipient"]>>;
1304
+ }, "rewards"> & {
1305
+ rewards: (Omit<{
1306
+ token: {
1307
+ id: string;
1308
+ name: string | null;
1309
+ chainId: number;
1310
+ address: string;
1311
+ decimals: number;
1312
+ symbol: string;
1313
+ icon: string;
1314
+ verified: boolean;
1315
+ price: number | null;
1316
+ };
1317
+ breakdowns: {
1318
+ campaignId: string;
1319
+ opportunity: {
1320
+ Chain: {
1321
+ id: number;
1322
+ name: string;
1323
+ icon: string;
1324
+ };
1325
+ Tokens: {
1326
+ id: string;
1327
+ name: string | null;
1328
+ chainId: number;
1329
+ address: string;
1330
+ decimals: number;
1331
+ symbol: string;
1332
+ icon: string;
1333
+ verified: boolean;
1334
+ price: number | null;
1335
+ }[];
1336
+ Protocols: {
1337
+ id: string;
1338
+ tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
1339
+ name: string;
1340
+ description: string;
1341
+ url: string;
1342
+ icon: string;
1343
+ }[];
1344
+ MainProtocol: {
1345
+ id: string;
1346
+ tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
1347
+ name: string;
1348
+ description: string;
1349
+ url: string;
1350
+ icon: string;
1351
+ } | null;
1352
+ } & {
1353
+ id: string;
1354
+ chainId: number;
1355
+ type: import("../../../database/api/.generated").$Enums.CampaignType;
1356
+ identifier: string;
1357
+ name: string;
1358
+ status: import("../../../database/api/.generated").$Enums.Status;
1359
+ action: import("../../../database/api/.generated").$Enums.OpportunityAction;
1360
+ mainProtocolId: string | null;
1361
+ tvl: number;
1362
+ apr: number;
1363
+ dailyRewards: number;
1364
+ tags: string[];
1365
+ };
1366
+ reason: string;
1367
+ amount: string;
1368
+ claimed: string;
1369
+ pending: string;
1370
+ auxiliaryData1: string | null;
1371
+ auxiliaryData2: string | null;
1372
+ }[];
1373
+ claimed: bigint;
1374
+ amount: bigint;
1375
+ pending: bigint;
1376
+ root: string;
1377
+ recipient: string;
1378
+ proofs: string[];
1379
+ }, "breakdowns"> & {
1380
+ breakdowns: {
1381
+ campaignId: string;
1382
+ reason: string;
1383
+ amount: string;
1384
+ claimed: string;
1385
+ pending: string;
1386
+ auxiliaryData1: string | null;
1387
+ auxiliaryData2: string | null;
1388
+ }[];
1389
+ })[];
1390
+ })[];
1391
+ };
1392
+ };
1393
+ };
1394
+ };
1395
+ };
1396
+ } & {
1397
+ users: {
1398
+ index: {
1399
+ post: {
1400
+ body: {
1401
+ tags: string[];
1402
+ address: string;
1403
+ };
1404
+ params: Record<never, string>;
1405
+ query: unknown;
1406
+ headers: {
1407
+ authorization: string;
1408
+ };
1409
+ response: {
1410
+ 200: {
1411
+ address: string;
1412
+ tags: string[];
1413
+ };
1414
+ };
1415
+ };
1416
+ };
1417
+ };
1418
+ } & {
1419
+ users: {
1420
+ ":address": {
1421
+ tags: {
1422
+ patch: {
1423
+ body: {
1424
+ tags: string[];
1425
+ };
1426
+ params: {
1427
+ address: string;
1428
+ };
1429
+ query: unknown;
1430
+ headers: {
1431
+ authorization: string;
1432
+ };
1433
+ response: {
1434
+ 200: {
1435
+ address: string;
1436
+ tags: string[];
1437
+ };
1438
+ };
1439
+ };
1440
+ };
1441
+ };
1442
+ };
1443
+ };
1444
+ } & {
1445
+ v4: {
1446
+ roots: {
1447
+ index: {
1448
+ get: {
1449
+ body: unknown;
1450
+ params: Record<never, string>;
1451
+ query: {
1452
+ chainId: number;
1453
+ fromTimestamp: string;
1454
+ toTimestamp: string;
1455
+ };
1456
+ headers: unknown;
1457
+ response: {
1458
+ 200: {
1459
+ root: string;
1460
+ chainId: number;
1461
+ epoch: number;
1462
+ timestamp: bigint;
1463
+ }[];
1464
+ };
1465
+ };
1466
+ };
1467
+ };
1468
+ };
1469
+ } & {
1470
+ v4: {
1471
+ participate: {
1472
+ targets: {
1473
+ get: {
1474
+ body: unknown;
1475
+ params: Record<never, string>;
1476
+ query: {
1477
+ identifier?: string | undefined;
1478
+ chainId: number;
1479
+ protocolId: string;
1480
+ };
1481
+ headers: unknown;
1482
+ response: {
1483
+ 200: import("../../modules/v4/participate/participate.model").ParticipateTarget[] | undefined;
1484
+ };
1485
+ };
1486
+ };
1487
+ };
1488
+ } & {
1489
+ participate: {
1490
+ protocols: {
1491
+ get: {
1492
+ body: unknown;
1493
+ params: Record<never, string>;
1494
+ query: {
1495
+ chainId?: number | undefined;
1496
+ };
1497
+ headers: unknown;
1498
+ response: {
1499
+ 200: ({
1500
+ name: string;
1501
+ url: string;
1502
+ description: string;
1503
+ tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
1504
+ icon: string;
1505
+ } & {})[] | null;
1506
+ };
1507
+ };
1508
+ };
1509
+ };
1510
+ } & {
1511
+ participate: {
1512
+ quote: {
1513
+ get: {
1514
+ body: unknown;
1515
+ params: Record<never, string>;
1516
+ query: {
1517
+ identifier: string;
1518
+ chainId: number;
1519
+ protocolId: string;
1520
+ userAddress: string;
1521
+ fromAmount: string;
1522
+ fromTokenAddress: string;
1523
+ };
1524
+ headers: unknown;
1525
+ response: {
1526
+ 200: {
1527
+ amountOut: {};
1528
+ gas: string;
1529
+ feeAmount: string[];
1530
+ priceImpact: number;
1531
+ } | undefined;
1532
+ };
1533
+ };
1534
+ };
1535
+ };
1536
+ } & {
1537
+ participate: {
1538
+ transaction: {
1539
+ get: {
1540
+ body: unknown;
1541
+ params: Record<never, string>;
1542
+ query: {
1543
+ identifier: string;
1544
+ chainId: number;
1545
+ protocolId: string;
1546
+ userAddress: string;
1547
+ fromAmount: string;
1548
+ fromTokenAddress: string;
1549
+ };
1550
+ headers: unknown;
1551
+ response: {
1552
+ 200: {
1553
+ amountOut: string;
1554
+ gas: string;
1555
+ feeAmount: string[];
1556
+ priceImpact: number;
1557
+ createAt: number;
1558
+ tx: {
1559
+ data: string;
1560
+ from: string;
1561
+ value: string;
1562
+ to: string;
1563
+ };
1564
+ } | undefined;
1565
+ };
1566
+ };
1567
+ };
1568
+ };
1569
+ };
1570
+ } & {
1571
+ v4: {
1572
+ accounting: {
1573
+ index: {
1574
+ get: {
1575
+ body: unknown;
1576
+ params: Record<never, string>;
1577
+ query: {
1578
+ items?: number | undefined;
1579
+ page?: number | undefined;
1580
+ };
1581
+ headers: {
1582
+ authorization: string;
1583
+ };
1584
+ response: {
1585
+ 200: {
1586
+ id: string;
1587
+ chainId: number;
1588
+ fromTokenId: string;
1589
+ toTokenId: string;
1590
+ multisig: string;
1591
+ recipient: string;
1592
+ amountIn: string;
1593
+ amountOut: string;
1594
+ datetime: Date;
1595
+ timestamp: number;
1596
+ }[];
1597
+ };
1598
+ };
1599
+ };
1600
+ } & {
1601
+ revenues: {
1602
+ get: {
1603
+ body: unknown;
1604
+ params: Record<never, string>;
1605
+ query: unknown;
1606
+ headers: {
1607
+ authorization: string;
1608
+ };
1609
+ response: {
1610
+ 200: {
1611
+ totalAmount: number;
1612
+ };
1613
+ };
1614
+ };
1615
+ };
1616
+ } & {
1617
+ revenues: {
1618
+ "per-month": {
1619
+ ":year": {
1620
+ ":month": {
1621
+ get: {
1622
+ body: unknown;
1623
+ params: {
1624
+ month: number;
1625
+ year: number;
1626
+ };
1627
+ query: unknown;
1628
+ headers: {
1629
+ authorization: string;
1630
+ };
1631
+ response: {
1632
+ 200: {
1633
+ totalAmount: number;
1634
+ from: string;
1635
+ to: string;
1636
+ };
1637
+ };
1638
+ };
1639
+ };
1640
+ };
1641
+ };
1642
+ };
1643
+ } & {
1644
+ revenues: {
1645
+ chains: {
1646
+ ":chainId": {
1647
+ get: {
1648
+ body: unknown;
1649
+ params: {
1650
+ chainId: number;
1651
+ };
1652
+ query: unknown;
1653
+ headers: {
1654
+ authorization: string;
1655
+ };
1656
+ response: {
1657
+ 200: {
1658
+ totalAmount: number;
1659
+ };
1660
+ };
1661
+ };
1662
+ };
1663
+ };
1664
+ };
1665
+ } & {
1666
+ revenues: {
1667
+ chains: {
1668
+ ":chainId": {
1669
+ "per-month": {
1670
+ ":year": {
1671
+ ":month": {
1672
+ get: {
1673
+ body: unknown;
1674
+ params: {
1675
+ chainId: number;
1676
+ month: number;
1677
+ year: number;
1678
+ };
1679
+ query: unknown;
1680
+ headers: {
1681
+ authorization: string;
1682
+ };
1683
+ response: {
1684
+ 200: {
1685
+ totalAmount: number;
1686
+ from: string;
1687
+ to: string;
1688
+ };
1689
+ };
1690
+ };
1691
+ };
1692
+ };
1693
+ };
1694
+ };
1695
+ };
1696
+ };
1697
+ } & {
1698
+ tokens: {
1699
+ ":chainId": {
1700
+ ":tokenAddress": {
1701
+ get: {
1702
+ body: unknown;
1703
+ params: {
1704
+ chainId: number;
1705
+ tokenAddress: string;
1706
+ };
1707
+ query: unknown;
1708
+ headers: {
1709
+ authorization: string;
1710
+ };
1711
+ response: {
1712
+ 200: {
1713
+ totalAmount: number;
1714
+ totalAmountUSD: number;
1715
+ };
1716
+ };
1717
+ };
1718
+ };
1719
+ };
1720
+ };
1721
+ } & {
1722
+ tokens: {
1723
+ ":chainId": {
1724
+ ":tokenAddress": {
1725
+ "per-month": {
1726
+ ":year": {
1727
+ ":month": {
1728
+ get: {
1729
+ body: unknown;
1730
+ params: {
1731
+ chainId: number;
1732
+ tokenAddress: string;
1733
+ month: number;
1734
+ year: number;
1735
+ };
1736
+ query: unknown;
1737
+ headers: {
1738
+ authorization: string;
1739
+ };
1740
+ response: {
1741
+ 200: {
1742
+ totalAmount: number;
1743
+ totalAmountUSD: number;
1744
+ from: string;
1745
+ to: string;
1746
+ };
1747
+ };
1748
+ };
1749
+ };
1750
+ };
1751
+ };
1752
+ };
1753
+ };
1754
+ };
1755
+ };
1756
+ };
1757
+ } & {
1758
+ v4: {
1759
+ campaignStatus: {
1760
+ engine: {
1761
+ post: {
1762
+ body: {
1763
+ status: {
1764
+ value: "SUCCESS";
1765
+ computedUntil: number;
1766
+ } | {
1767
+ value: "PROCESSING";
1768
+ } | {
1769
+ error: string;
1770
+ details: string;
1771
+ value: "SKIPPED";
1772
+ } | {
1773
+ error: string;
1774
+ details: string;
1775
+ value: "FAILED";
1776
+ };
1777
+ campaignId: string;
1778
+ distributionChain: number;
1779
+ };
1780
+ params: Record<never, string>;
1781
+ query: unknown;
1782
+ headers: {
1783
+ authorization: string;
1784
+ };
1785
+ response: {
1786
+ 200: void;
1787
+ };
1788
+ };
1789
+ };
1790
+ };
1791
+ } & {
1792
+ campaignStatus: {
1793
+ index: {
1794
+ get: {
1795
+ body: unknown;
1796
+ params: Record<never, string>;
1797
+ query: unknown;
1798
+ headers: unknown;
1799
+ response: {
1800
+ 200: {
1801
+ campaignId: string;
1802
+ computedUntil: bigint;
1803
+ processingStarted: bigint;
1804
+ status: import("../../../database/api/.generated").$Enums.RunStatus;
1805
+ error: string;
1806
+ details: import("../../../database/api/.generated").Prisma.JsonValue;
1807
+ }[];
1808
+ };
1809
+ };
1810
+ };
1811
+ };
1812
+ } & {
1813
+ campaignStatus: {
1814
+ unique: {
1815
+ get: {
1816
+ body: unknown;
1817
+ params: Record<never, string>;
1818
+ query: {
1819
+ identifier: string;
1820
+ distributionChain: number;
1821
+ };
1822
+ headers: unknown;
1823
+ response: {
1824
+ 200: {
1825
+ campaignId: string;
1826
+ computedUntil: bigint;
1827
+ processingStarted: bigint;
1828
+ status: import("../../../database/api/.generated").$Enums.RunStatus;
1829
+ error: string;
1830
+ details: import("../../../database/api/.generated").Prisma.JsonValue;
1831
+ };
1832
+ };
1833
+ };
1834
+ };
1835
+ };
1836
+ } & {
1837
+ campaignStatus: {
1838
+ computeChain: {
1839
+ ":chainId": {
1840
+ get: {
1841
+ body: unknown;
1842
+ params: {
1843
+ chainId: number;
1844
+ };
1845
+ query: unknown;
1846
+ headers: unknown;
1847
+ response: {
1848
+ 200: {
1849
+ campaignId: string;
1850
+ computedUntil: bigint;
1851
+ processingStarted: bigint;
1852
+ status: import("../../../database/api/.generated").$Enums.RunStatus;
1853
+ error: string;
1854
+ details: import("../../../database/api/.generated").Prisma.JsonValue;
1855
+ }[];
1856
+ };
1857
+ };
1858
+ };
1859
+ };
1860
+ };
1861
+ } & {
1862
+ campaignStatus: {
1863
+ overlaps: {
1864
+ get: {
1865
+ body: unknown;
1866
+ params: Record<never, string>;
1867
+ query: {
1868
+ identifier: string;
1869
+ distributionChain: number;
1870
+ };
1871
+ headers: {
1872
+ authorization: string;
1873
+ };
1874
+ response: {
1875
+ 200: boolean;
1876
+ };
1877
+ };
1878
+ };
1879
+ };
1880
+ };
1881
+ } & {
1882
+ index: {
1883
+ get: {
1884
+ body: unknown;
1885
+ params: Record<never, string>;
1886
+ query: {
1887
+ user: string;
1888
+ };
1889
+ headers: unknown;
1890
+ response: {
1891
+ 200: {
1892
+ isBlacklisted: boolean;
1893
+ };
1894
+ };
1895
+ };
1896
+ };
1897
+ }, {
1898
+ derive: {};
1899
+ resolve: {};
1900
+ schema: {};
1901
+ }, {
1902
+ derive: {
1903
+ readonly tracer: import("dd-trace").Tracer;
1904
+ readonly span: import("dd-trace").Span;
1905
+ readonly trace: <R, T extends () => R>(handler: T) => R;
1906
+ };
1907
+ resolve: {};
1908
+ schema: {};
1909
+ }>;
1910
+ export default _default;