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