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