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