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