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