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