@merkl/api 0.10.78

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