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