@merkl/api 0.10.78

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,311 @@
1
+ export declare const REDIS_RETRIES = 0;
2
+ export declare const REDIS_READ_TIMEOUT: number;
3
+ export declare const REDIS_WRITE_TIMEOUT = 4000;
4
+ export declare const REDIS_CRON_READ_TIMEOUT = 5000;
5
+ export declare const REDIS_CRON_WRITE_TIMEOUT = 10000;
6
+ export declare enum TTLType {
7
+ HalfBlock = 4,
8
+ Block = 11,
9
+ Seconds30 = 30,
10
+ Minutes2 = 120,
11
+ Minutes3 = 180,
12
+ Minutes5 = 300,
13
+ Minutes10 = 600,
14
+ Minutes25 = 1500,
15
+ Minutes30 = 1800,
16
+ Minutes35 = 2100,
17
+ Hours3 = 10800,
18
+ Hours12 = 43200,
19
+ Day = 86400,
20
+ Week = 604800
21
+ }
22
+ export declare const redisClient: import("@redis/client").RedisClientType<{
23
+ graph: {
24
+ CONFIG_GET: typeof import("@redis/graph/dist/commands/CONFIG_GET");
25
+ configGet: typeof import("@redis/graph/dist/commands/CONFIG_GET");
26
+ CONFIG_SET: typeof import("@redis/graph/dist/commands/CONFIG_SET");
27
+ configSet: typeof import("@redis/graph/dist/commands/CONFIG_SET");
28
+ DELETE: typeof import("@redis/graph/dist/commands/DELETE");
29
+ delete: typeof import("@redis/graph/dist/commands/DELETE");
30
+ EXPLAIN: typeof import("@redis/graph/dist/commands/EXPLAIN");
31
+ explain: typeof import("@redis/graph/dist/commands/EXPLAIN");
32
+ LIST: typeof import("@redis/graph/dist/commands/LIST");
33
+ list: typeof import("@redis/graph/dist/commands/LIST");
34
+ PROFILE: typeof import("@redis/graph/dist/commands/PROFILE");
35
+ profile: typeof import("@redis/graph/dist/commands/PROFILE");
36
+ QUERY: typeof import("@redis/graph/dist/commands/QUERY");
37
+ query: typeof import("@redis/graph/dist/commands/QUERY");
38
+ RO_QUERY: typeof import("@redis/graph/dist/commands/RO_QUERY");
39
+ roQuery: typeof import("@redis/graph/dist/commands/RO_QUERY");
40
+ SLOWLOG: typeof import("@redis/graph/dist/commands/SLOWLOG");
41
+ slowLog: typeof import("@redis/graph/dist/commands/SLOWLOG");
42
+ };
43
+ json: {
44
+ ARRAPPEND: typeof import("@redis/json/dist/commands/ARRAPPEND");
45
+ arrAppend: typeof import("@redis/json/dist/commands/ARRAPPEND");
46
+ ARRINDEX: typeof import("@redis/json/dist/commands/ARRINDEX");
47
+ arrIndex: typeof import("@redis/json/dist/commands/ARRINDEX");
48
+ ARRINSERT: typeof import("@redis/json/dist/commands/ARRINSERT");
49
+ arrInsert: typeof import("@redis/json/dist/commands/ARRINSERT");
50
+ ARRLEN: typeof import("@redis/json/dist/commands/ARRLEN");
51
+ arrLen: typeof import("@redis/json/dist/commands/ARRLEN");
52
+ ARRPOP: typeof import("@redis/json/dist/commands/ARRPOP");
53
+ arrPop: typeof import("@redis/json/dist/commands/ARRPOP");
54
+ ARRTRIM: typeof import("@redis/json/dist/commands/ARRTRIM");
55
+ arrTrim: typeof import("@redis/json/dist/commands/ARRTRIM");
56
+ DEBUG_MEMORY: typeof import("@redis/json/dist/commands/DEBUG_MEMORY");
57
+ debugMemory: typeof import("@redis/json/dist/commands/DEBUG_MEMORY");
58
+ DEL: typeof import("@redis/json/dist/commands/DEL");
59
+ del: typeof import("@redis/json/dist/commands/DEL");
60
+ FORGET: typeof import("@redis/json/dist/commands/FORGET");
61
+ forget: typeof import("@redis/json/dist/commands/FORGET");
62
+ GET: typeof import("@redis/json/dist/commands/GET");
63
+ get: typeof import("@redis/json/dist/commands/GET");
64
+ MERGE: typeof import("@redis/json/dist/commands/MERGE");
65
+ merge: typeof import("@redis/json/dist/commands/MERGE");
66
+ MGET: typeof import("@redis/json/dist/commands/MGET");
67
+ mGet: typeof import("@redis/json/dist/commands/MGET");
68
+ MSET: typeof import("@redis/json/dist/commands/MSET");
69
+ mSet: typeof import("@redis/json/dist/commands/MSET");
70
+ NUMINCRBY: typeof import("@redis/json/dist/commands/NUMINCRBY");
71
+ numIncrBy: typeof import("@redis/json/dist/commands/NUMINCRBY");
72
+ NUMMULTBY: typeof import("@redis/json/dist/commands/NUMMULTBY");
73
+ numMultBy: typeof import("@redis/json/dist/commands/NUMMULTBY");
74
+ OBJKEYS: typeof import("@redis/json/dist/commands/OBJKEYS");
75
+ objKeys: typeof import("@redis/json/dist/commands/OBJKEYS");
76
+ OBJLEN: typeof import("@redis/json/dist/commands/OBJLEN");
77
+ objLen: typeof import("@redis/json/dist/commands/OBJLEN");
78
+ RESP: typeof import("@redis/json/dist/commands/RESP");
79
+ resp: typeof import("@redis/json/dist/commands/RESP");
80
+ SET: typeof import("@redis/json/dist/commands/SET");
81
+ set: typeof import("@redis/json/dist/commands/SET");
82
+ STRAPPEND: typeof import("@redis/json/dist/commands/STRAPPEND");
83
+ strAppend: typeof import("@redis/json/dist/commands/STRAPPEND");
84
+ STRLEN: typeof import("@redis/json/dist/commands/STRLEN");
85
+ strLen: typeof import("@redis/json/dist/commands/STRLEN");
86
+ TYPE: typeof import("@redis/json/dist/commands/TYPE");
87
+ type: typeof import("@redis/json/dist/commands/TYPE");
88
+ };
89
+ ft: {
90
+ _LIST: typeof import("@redis/search/dist/commands/_LIST");
91
+ _list: typeof import("@redis/search/dist/commands/_LIST");
92
+ ALTER: typeof import("@redis/search/dist/commands/ALTER");
93
+ alter: typeof import("@redis/search/dist/commands/ALTER");
94
+ AGGREGATE_WITHCURSOR: typeof import("@redis/search/dist/commands/AGGREGATE_WITHCURSOR");
95
+ aggregateWithCursor: typeof import("@redis/search/dist/commands/AGGREGATE_WITHCURSOR");
96
+ AGGREGATE: typeof import("@redis/search/dist/commands/AGGREGATE");
97
+ aggregate: typeof import("@redis/search/dist/commands/AGGREGATE");
98
+ ALIASADD: typeof import("@redis/search/dist/commands/ALIASADD");
99
+ aliasAdd: typeof import("@redis/search/dist/commands/ALIASADD");
100
+ ALIASDEL: typeof import("@redis/search/dist/commands/ALIASDEL");
101
+ aliasDel: typeof import("@redis/search/dist/commands/ALIASDEL");
102
+ ALIASUPDATE: typeof import("@redis/search/dist/commands/ALIASUPDATE");
103
+ aliasUpdate: typeof import("@redis/search/dist/commands/ALIASUPDATE");
104
+ CONFIG_GET: typeof import("@redis/search/dist/commands/CONFIG_GET");
105
+ configGet: typeof import("@redis/search/dist/commands/CONFIG_GET");
106
+ CONFIG_SET: typeof import("@redis/search/dist/commands/CONFIG_SET");
107
+ configSet: typeof import("@redis/search/dist/commands/CONFIG_SET");
108
+ CREATE: typeof import("@redis/search/dist/commands/CREATE");
109
+ create: typeof import("@redis/search/dist/commands/CREATE");
110
+ CURSOR_DEL: typeof import("@redis/search/dist/commands/CURSOR_DEL");
111
+ cursorDel: typeof import("@redis/search/dist/commands/CURSOR_DEL");
112
+ CURSOR_READ: typeof import("@redis/search/dist/commands/CURSOR_READ");
113
+ cursorRead: typeof import("@redis/search/dist/commands/CURSOR_READ");
114
+ DICTADD: typeof import("@redis/search/dist/commands/DICTADD");
115
+ dictAdd: typeof import("@redis/search/dist/commands/DICTADD");
116
+ DICTDEL: typeof import("@redis/search/dist/commands/DICTDEL");
117
+ dictDel: typeof import("@redis/search/dist/commands/DICTDEL");
118
+ DICTDUMP: typeof import("@redis/search/dist/commands/DICTDUMP");
119
+ dictDump: typeof import("@redis/search/dist/commands/DICTDUMP");
120
+ DROPINDEX: typeof import("@redis/search/dist/commands/DROPINDEX");
121
+ dropIndex: typeof import("@redis/search/dist/commands/DROPINDEX");
122
+ EXPLAIN: typeof import("@redis/search/dist/commands/EXPLAIN");
123
+ explain: typeof import("@redis/search/dist/commands/EXPLAIN");
124
+ EXPLAINCLI: typeof import("@redis/search/dist/commands/EXPLAINCLI");
125
+ explainCli: typeof import("@redis/search/dist/commands/EXPLAINCLI");
126
+ INFO: typeof import("@redis/search/dist/commands/INFO");
127
+ info: typeof import("@redis/search/dist/commands/INFO");
128
+ PROFILESEARCH: typeof import("@redis/search/dist/commands/PROFILE_SEARCH");
129
+ profileSearch: typeof import("@redis/search/dist/commands/PROFILE_SEARCH");
130
+ PROFILEAGGREGATE: typeof import("@redis/search/dist/commands/PROFILE_AGGREGATE");
131
+ profileAggregate: typeof import("@redis/search/dist/commands/PROFILE_AGGREGATE");
132
+ SEARCH: typeof import("@redis/search/dist/commands/SEARCH");
133
+ search: typeof import("@redis/search/dist/commands/SEARCH");
134
+ SEARCH_NOCONTENT: typeof import("@redis/search/dist/commands/SEARCH_NOCONTENT");
135
+ searchNoContent: typeof import("@redis/search/dist/commands/SEARCH_NOCONTENT");
136
+ SPELLCHECK: typeof import("@redis/search/dist/commands/SPELLCHECK");
137
+ spellCheck: typeof import("@redis/search/dist/commands/SPELLCHECK");
138
+ SUGADD: typeof import("@redis/search/dist/commands/SUGADD");
139
+ sugAdd: typeof import("@redis/search/dist/commands/SUGADD");
140
+ SUGDEL: typeof import("@redis/search/dist/commands/SUGDEL");
141
+ sugDel: typeof import("@redis/search/dist/commands/SUGDEL");
142
+ SUGGET_WITHPAYLOADS: typeof import("@redis/search/dist/commands/SUGGET_WITHPAYLOADS");
143
+ sugGetWithPayloads: typeof import("@redis/search/dist/commands/SUGGET_WITHPAYLOADS");
144
+ SUGGET_WITHSCORES_WITHPAYLOADS: typeof import("@redis/search/dist/commands/SUGGET_WITHSCORES_WITHPAYLOADS");
145
+ sugGetWithScoresWithPayloads: typeof import("@redis/search/dist/commands/SUGGET_WITHSCORES_WITHPAYLOADS");
146
+ SUGGET_WITHSCORES: typeof import("@redis/search/dist/commands/SUGGET_WITHSCORES");
147
+ sugGetWithScores: typeof import("@redis/search/dist/commands/SUGGET_WITHSCORES");
148
+ SUGGET: typeof import("@redis/search/dist/commands/SUGGET");
149
+ sugGet: typeof import("@redis/search/dist/commands/SUGGET");
150
+ SUGLEN: typeof import("@redis/search/dist/commands/SUGLEN");
151
+ sugLen: typeof import("@redis/search/dist/commands/SUGLEN");
152
+ SYNDUMP: typeof import("@redis/search/dist/commands/SYNDUMP");
153
+ synDump: typeof import("@redis/search/dist/commands/SYNDUMP");
154
+ SYNUPDATE: typeof import("@redis/search/dist/commands/SYNUPDATE");
155
+ synUpdate: typeof import("@redis/search/dist/commands/SYNUPDATE");
156
+ TAGVALS: typeof import("@redis/search/dist/commands/TAGVALS");
157
+ tagVals: typeof import("@redis/search/dist/commands/TAGVALS");
158
+ };
159
+ ts: {
160
+ ADD: typeof import("@redis/time-series/dist/commands/ADD");
161
+ add: typeof import("@redis/time-series/dist/commands/ADD");
162
+ ALTER: typeof import("@redis/time-series/dist/commands/ALTER");
163
+ alter: typeof import("@redis/time-series/dist/commands/ALTER");
164
+ CREATE: typeof import("@redis/time-series/dist/commands/CREATE");
165
+ create: typeof import("@redis/time-series/dist/commands/CREATE");
166
+ CREATERULE: typeof import("@redis/time-series/dist/commands/CREATERULE");
167
+ createRule: typeof import("@redis/time-series/dist/commands/CREATERULE");
168
+ DECRBY: typeof import("@redis/time-series/dist/commands/DECRBY");
169
+ decrBy: typeof import("@redis/time-series/dist/commands/DECRBY");
170
+ DEL: typeof import("@redis/time-series/dist/commands/DEL");
171
+ del: typeof import("@redis/time-series/dist/commands/DEL");
172
+ DELETERULE: typeof import("@redis/time-series/dist/commands/DELETERULE");
173
+ deleteRule: typeof import("@redis/time-series/dist/commands/DELETERULE");
174
+ GET: typeof import("@redis/time-series/dist/commands/GET");
175
+ get: typeof import("@redis/time-series/dist/commands/GET");
176
+ INCRBY: typeof import("@redis/time-series/dist/commands/INCRBY");
177
+ incrBy: typeof import("@redis/time-series/dist/commands/INCRBY");
178
+ INFO_DEBUG: typeof import("@redis/time-series/dist/commands/INFO_DEBUG");
179
+ infoDebug: typeof import("@redis/time-series/dist/commands/INFO_DEBUG");
180
+ INFO: typeof import("@redis/time-series/dist/commands/INFO");
181
+ info: typeof import("@redis/time-series/dist/commands/INFO");
182
+ MADD: typeof import("@redis/time-series/dist/commands/MADD");
183
+ mAdd: typeof import("@redis/time-series/dist/commands/MADD");
184
+ MGET: typeof import("@redis/time-series/dist/commands/MGET");
185
+ mGet: typeof import("@redis/time-series/dist/commands/MGET");
186
+ MGET_WITHLABELS: typeof import("@redis/time-series/dist/commands/MGET_WITHLABELS");
187
+ mGetWithLabels: typeof import("@redis/time-series/dist/commands/MGET_WITHLABELS");
188
+ QUERYINDEX: typeof import("@redis/time-series/dist/commands/QUERYINDEX");
189
+ queryIndex: typeof import("@redis/time-series/dist/commands/QUERYINDEX");
190
+ RANGE: typeof import("@redis/time-series/dist/commands/RANGE");
191
+ range: typeof import("@redis/time-series/dist/commands/RANGE");
192
+ REVRANGE: typeof import("@redis/time-series/dist/commands/REVRANGE");
193
+ revRange: typeof import("@redis/time-series/dist/commands/REVRANGE");
194
+ MRANGE: typeof import("@redis/time-series/dist/commands/MRANGE");
195
+ mRange: typeof import("@redis/time-series/dist/commands/MRANGE");
196
+ MRANGE_WITHLABELS: typeof import("@redis/time-series/dist/commands/MRANGE_WITHLABELS");
197
+ mRangeWithLabels: typeof import("@redis/time-series/dist/commands/MRANGE_WITHLABELS");
198
+ MREVRANGE: typeof import("@redis/time-series/dist/commands/MREVRANGE");
199
+ mRevRange: typeof import("@redis/time-series/dist/commands/MREVRANGE");
200
+ MREVRANGE_WITHLABELS: typeof import("@redis/time-series/dist/commands/MREVRANGE_WITHLABELS");
201
+ mRevRangeWithLabels: typeof import("@redis/time-series/dist/commands/MREVRANGE_WITHLABELS");
202
+ };
203
+ bf: {
204
+ ADD: typeof import("@redis/bloom/dist/commands/bloom/ADD");
205
+ add: typeof import("@redis/bloom/dist/commands/bloom/ADD");
206
+ CARD: typeof import("@redis/bloom/dist/commands/bloom/CARD");
207
+ card: typeof import("@redis/bloom/dist/commands/bloom/CARD");
208
+ EXISTS: typeof import("@redis/bloom/dist/commands/bloom/EXISTS");
209
+ exists: typeof import("@redis/bloom/dist/commands/bloom/EXISTS");
210
+ INFO: typeof import("@redis/bloom/dist/commands/bloom/INFO");
211
+ info: typeof import("@redis/bloom/dist/commands/bloom/INFO");
212
+ INSERT: typeof import("@redis/bloom/dist/commands/bloom/INSERT");
213
+ insert: typeof import("@redis/bloom/dist/commands/bloom/INSERT");
214
+ LOADCHUNK: typeof import("@redis/bloom/dist/commands/bloom/LOADCHUNK");
215
+ loadChunk: typeof import("@redis/bloom/dist/commands/bloom/LOADCHUNK");
216
+ MADD: typeof import("@redis/bloom/dist/commands/bloom/MADD");
217
+ mAdd: typeof import("@redis/bloom/dist/commands/bloom/MADD");
218
+ MEXISTS: typeof import("@redis/bloom/dist/commands/bloom/MEXISTS");
219
+ mExists: typeof import("@redis/bloom/dist/commands/bloom/MEXISTS");
220
+ RESERVE: typeof import("@redis/bloom/dist/commands/bloom/RESERVE");
221
+ reserve: typeof import("@redis/bloom/dist/commands/bloom/RESERVE");
222
+ SCANDUMP: typeof import("@redis/bloom/dist/commands/bloom/SCANDUMP");
223
+ scanDump: typeof import("@redis/bloom/dist/commands/bloom/SCANDUMP");
224
+ };
225
+ cms: {
226
+ INCRBY: typeof import("@redis/bloom/dist/commands/count-min-sketch/INCRBY");
227
+ incrBy: typeof import("@redis/bloom/dist/commands/count-min-sketch/INCRBY");
228
+ INFO: typeof import("@redis/bloom/dist/commands/count-min-sketch/INFO");
229
+ info: typeof import("@redis/bloom/dist/commands/count-min-sketch/INFO");
230
+ INITBYDIM: typeof import("@redis/bloom/dist/commands/count-min-sketch/INITBYDIM");
231
+ initByDim: typeof import("@redis/bloom/dist/commands/count-min-sketch/INITBYDIM");
232
+ INITBYPROB: typeof import("@redis/bloom/dist/commands/count-min-sketch/INITBYPROB");
233
+ initByProb: typeof import("@redis/bloom/dist/commands/count-min-sketch/INITBYPROB");
234
+ MERGE: typeof import("@redis/bloom/dist/commands/count-min-sketch/MERGE");
235
+ merge: typeof import("@redis/bloom/dist/commands/count-min-sketch/MERGE");
236
+ QUERY: typeof import("@redis/bloom/dist/commands/count-min-sketch/QUERY");
237
+ query: typeof import("@redis/bloom/dist/commands/count-min-sketch/QUERY");
238
+ };
239
+ cf: {
240
+ ADD: typeof import("@redis/bloom/dist/commands/cuckoo/ADD");
241
+ add: typeof import("@redis/bloom/dist/commands/cuckoo/ADD");
242
+ ADDNX: typeof import("@redis/bloom/dist/commands/cuckoo/ADDNX");
243
+ addNX: typeof import("@redis/bloom/dist/commands/cuckoo/ADDNX");
244
+ COUNT: typeof import("@redis/bloom/dist/commands/cuckoo/COUNT");
245
+ count: typeof import("@redis/bloom/dist/commands/cuckoo/COUNT");
246
+ DEL: typeof import("@redis/bloom/dist/commands/cuckoo/DEL");
247
+ del: typeof import("@redis/bloom/dist/commands/cuckoo/DEL");
248
+ EXISTS: typeof import("@redis/bloom/dist/commands/cuckoo/EXISTS");
249
+ exists: typeof import("@redis/bloom/dist/commands/cuckoo/EXISTS");
250
+ INFO: typeof import("@redis/bloom/dist/commands/cuckoo/INFO");
251
+ info: typeof import("@redis/bloom/dist/commands/cuckoo/INFO");
252
+ INSERT: typeof import("@redis/bloom/dist/commands/cuckoo/INSERT");
253
+ insert: typeof import("@redis/bloom/dist/commands/cuckoo/INSERT");
254
+ INSERTNX: typeof import("@redis/bloom/dist/commands/cuckoo/INSERTNX");
255
+ insertNX: typeof import("@redis/bloom/dist/commands/cuckoo/INSERTNX");
256
+ LOADCHUNK: typeof import("@redis/bloom/dist/commands/cuckoo/LOADCHUNK");
257
+ loadChunk: typeof import("@redis/bloom/dist/commands/cuckoo/LOADCHUNK");
258
+ RESERVE: typeof import("@redis/bloom/dist/commands/cuckoo/RESERVE");
259
+ reserve: typeof import("@redis/bloom/dist/commands/cuckoo/RESERVE");
260
+ SCANDUMP: typeof import("@redis/bloom/dist/commands/cuckoo/SCANDUMP");
261
+ scanDump: typeof import("@redis/bloom/dist/commands/cuckoo/SCANDUMP");
262
+ };
263
+ tDigest: {
264
+ ADD: typeof import("@redis/bloom/dist/commands/t-digest/ADD");
265
+ add: typeof import("@redis/bloom/dist/commands/t-digest/ADD");
266
+ BYRANK: typeof import("@redis/bloom/dist/commands/t-digest/BYRANK");
267
+ byRank: typeof import("@redis/bloom/dist/commands/t-digest/BYRANK");
268
+ BYREVRANK: typeof import("@redis/bloom/dist/commands/t-digest/BYREVRANK");
269
+ byRevRank: typeof import("@redis/bloom/dist/commands/t-digest/BYREVRANK");
270
+ CDF: typeof import("@redis/bloom/dist/commands/t-digest/CDF");
271
+ cdf: typeof import("@redis/bloom/dist/commands/t-digest/CDF");
272
+ CREATE: typeof import("@redis/bloom/dist/commands/t-digest/CREATE");
273
+ create: typeof import("@redis/bloom/dist/commands/t-digest/CREATE");
274
+ INFO: typeof import("@redis/bloom/dist/commands/t-digest/INFO");
275
+ info: typeof import("@redis/bloom/dist/commands/t-digest/INFO");
276
+ MAX: typeof import("@redis/bloom/dist/commands/t-digest/MAX");
277
+ max: typeof import("@redis/bloom/dist/commands/t-digest/MAX");
278
+ MERGE: typeof import("@redis/bloom/dist/commands/t-digest/MERGE");
279
+ merge: typeof import("@redis/bloom/dist/commands/t-digest/MERGE");
280
+ MIN: typeof import("@redis/bloom/dist/commands/t-digest/MIN");
281
+ min: typeof import("@redis/bloom/dist/commands/t-digest/MIN");
282
+ QUANTILE: typeof import("@redis/bloom/dist/commands/t-digest/QUANTILE");
283
+ quantile: typeof import("@redis/bloom/dist/commands/t-digest/QUANTILE");
284
+ RANK: typeof import("@redis/bloom/dist/commands/t-digest/RANK");
285
+ rank: typeof import("@redis/bloom/dist/commands/t-digest/RANK");
286
+ RESET: typeof import("@redis/bloom/dist/commands/t-digest/RESET");
287
+ reset: typeof import("@redis/bloom/dist/commands/t-digest/RESET");
288
+ REVRANK: typeof import("@redis/bloom/dist/commands/t-digest/REVRANK");
289
+ revRank: typeof import("@redis/bloom/dist/commands/t-digest/REVRANK");
290
+ TRIMMED_MEAN: typeof import("@redis/bloom/dist/commands/t-digest/TRIMMED_MEAN");
291
+ trimmedMean: typeof import("@redis/bloom/dist/commands/t-digest/TRIMMED_MEAN");
292
+ };
293
+ topK: {
294
+ ADD: typeof import("@redis/bloom/dist/commands/top-k/ADD");
295
+ add: typeof import("@redis/bloom/dist/commands/top-k/ADD");
296
+ COUNT: typeof import("@redis/bloom/dist/commands/top-k/COUNT");
297
+ count: typeof import("@redis/bloom/dist/commands/top-k/COUNT");
298
+ INCRBY: typeof import("@redis/bloom/dist/commands/top-k/INCRBY");
299
+ incrBy: typeof import("@redis/bloom/dist/commands/top-k/INCRBY");
300
+ INFO: typeof import("@redis/bloom/dist/commands/top-k/INFO");
301
+ info: typeof import("@redis/bloom/dist/commands/top-k/INFO");
302
+ LIST_WITHCOUNT: typeof import("@redis/bloom/dist/commands/top-k/LIST_WITHCOUNT");
303
+ listWithCount: typeof import("@redis/bloom/dist/commands/top-k/LIST_WITHCOUNT");
304
+ LIST: typeof import("@redis/bloom/dist/commands/top-k/LIST");
305
+ list: typeof import("@redis/bloom/dist/commands/top-k/LIST");
306
+ QUERY: typeof import("@redis/bloom/dist/commands/top-k/QUERY");
307
+ query: typeof import("@redis/bloom/dist/commands/top-k/QUERY");
308
+ RESERVE: typeof import("@redis/bloom/dist/commands/top-k/RESERVE");
309
+ reserve: typeof import("@redis/bloom/dist/commands/top-k/RESERVE");
310
+ };
311
+ } & import("redis").RedisModules, import("redis").RedisFunctions, import("redis").RedisScripts>;
@@ -0,0 +1,349 @@
1
+ import Big from "big.js";
2
+ export declare const zeroBN: Big.Big;
3
+ export declare const baseTestAnalyticsGraphUrl = "https://api.thegraph.com/subgraphs/name/angleprotocol/test-analytics-";
4
+ export declare const baseAnalyticsGraphUrl = "https://api.thegraph.com/subgraphs/name/angleprotocol/test-analytics-";
5
+ export declare const EXPORTER_URL = "https://exporter.angle.money";
6
+ export declare const DEFAULT_LOCAL_TTL = 120;
7
+ export declare const subgraphSuffixMapping: {
8
+ [chainId in ChainId]?: string;
9
+ };
10
+ export declare const MAX_NUM_SUBCALLS = 100;
11
+ export declare const MERKL_TREE_OPTIONS: {
12
+ hashLeaves: boolean;
13
+ sortLeaves: boolean;
14
+ sortPairs: boolean;
15
+ };
16
+ export declare const MERKL_USER_POSITION_FETCHING_TIMEOUT = 8000;
17
+ export declare const MERKL_USER_POSITION_FETCHING_GLOBAL_TIMEOUT = 10000;
18
+ export declare const MERKL_USER_CLAIMED_TOKENS_TIMEOUT = 10000;
19
+ export declare const MERKL_ALM_FETCHING_TIMEOUT = 10000;
20
+ export declare const MERKL_ALM_POSITION_FETCHING_TIMEOUT = 100000;
21
+ export declare const MERKL_USER_REWARDS_FETCHING_TIMEOUT = 10000;
22
+ export declare const GITHUB_MERKL_REWARDS_URL = "https://raw.githubusercontent.com/AngleProtocol/merkl-rewards/main/";
23
+ export declare const GCLOUD_STORAGE_MERKL_PUBLIC_URL = "https://storage.googleapis.com/merkl-production-rewards/";
24
+ export declare const MERKL_BLACKLIST: string[];
25
+ export declare const EBTC_ADDRESS = "0x661c70333AA1850CcDBAe82776Bb436A0fCfeEfB";
26
+ export declare const CDPMANAGER_ADDRESS = "0xc4cbaE499bb4Ca41E78f52F07f5d98c375711774";
27
+ export declare const SORTEDCDPS_ADDRESS = "0x591AcB5AE192c147948c12651a0a5f24f0529BE3";
28
+ export declare const DOPEX_OPTION_MARKET: {
29
+ [market: string]: string;
30
+ };
31
+ import { ChainId } from "@sdk";
32
+ export declare const constantChain: {
33
+ [x: number]: {
34
+ apw: string;
35
+ convexEndpoint: string;
36
+ crv: string;
37
+ crv3: string;
38
+ crvANGLESDANGLE: string;
39
+ crvEURAEUROC: string;
40
+ crvEURAEURe: string;
41
+ crvEuropool: string;
42
+ crvFRAX: string;
43
+ crvFRAXEURA: string;
44
+ crvLUSD3CRV: string;
45
+ cvx: string;
46
+ dai: string;
47
+ frax: string;
48
+ fxs: string;
49
+ morpho: string;
50
+ rKP3R: string;
51
+ sdt: string;
52
+ stakeEndpoint: string;
53
+ sushi: string;
54
+ usdc: string;
55
+ weth: string;
56
+ wstETH: string;
57
+ arb?: undefined;
58
+ chr?: undefined;
59
+ convexProxy?: undefined;
60
+ crv2Pool?: undefined;
61
+ jeur?: undefined;
62
+ ram?: undefined;
63
+ sliz?: undefined;
64
+ mai?: undefined;
65
+ op?: undefined;
66
+ usdce?: undefined;
67
+ velo?: undefined;
68
+ veloV2?: undefined;
69
+ aero?: undefined;
70
+ am3CRV?: undefined;
71
+ amDAI?: undefined;
72
+ amUSDC?: undefined;
73
+ amUSDT?: undefined;
74
+ jrt?: undefined;
75
+ oretro?: undefined;
76
+ glcr?: undefined;
77
+ cake?: undefined;
78
+ } | {
79
+ arb: string;
80
+ chr: string;
81
+ convexProxy: string;
82
+ crv: string;
83
+ crv2Pool: string;
84
+ cvx: string;
85
+ frax: string;
86
+ jeur: string;
87
+ ram: string;
88
+ sdt: string;
89
+ sliz: string;
90
+ stakeEndpoint: string;
91
+ usdc: string;
92
+ apw?: undefined;
93
+ convexEndpoint?: undefined;
94
+ crv3?: undefined;
95
+ crvANGLESDANGLE?: undefined;
96
+ crvEURAEUROC?: undefined;
97
+ crvEURAEURe?: undefined;
98
+ crvEuropool?: undefined;
99
+ crvFRAX?: undefined;
100
+ crvFRAXEURA?: undefined;
101
+ crvLUSD3CRV?: undefined;
102
+ dai?: undefined;
103
+ fxs?: undefined;
104
+ morpho?: undefined;
105
+ rKP3R?: undefined;
106
+ sushi?: undefined;
107
+ weth?: undefined;
108
+ wstETH?: undefined;
109
+ mai?: undefined;
110
+ op?: undefined;
111
+ usdce?: undefined;
112
+ velo?: undefined;
113
+ veloV2?: undefined;
114
+ aero?: undefined;
115
+ am3CRV?: undefined;
116
+ amDAI?: undefined;
117
+ amUSDC?: undefined;
118
+ amUSDT?: undefined;
119
+ jrt?: undefined;
120
+ oretro?: undefined;
121
+ glcr?: undefined;
122
+ cake?: undefined;
123
+ } | {
124
+ jeur: string;
125
+ mai: string;
126
+ op: string;
127
+ usdc: string;
128
+ usdce: string;
129
+ velo: string;
130
+ veloV2: string;
131
+ apw?: undefined;
132
+ convexEndpoint?: undefined;
133
+ crv?: undefined;
134
+ crv3?: undefined;
135
+ crvANGLESDANGLE?: undefined;
136
+ crvEURAEUROC?: undefined;
137
+ crvEURAEURe?: undefined;
138
+ crvEuropool?: undefined;
139
+ crvFRAX?: undefined;
140
+ crvFRAXEURA?: undefined;
141
+ crvLUSD3CRV?: undefined;
142
+ cvx?: undefined;
143
+ dai?: undefined;
144
+ frax?: undefined;
145
+ fxs?: undefined;
146
+ morpho?: undefined;
147
+ rKP3R?: undefined;
148
+ sdt?: undefined;
149
+ stakeEndpoint?: undefined;
150
+ sushi?: undefined;
151
+ weth?: undefined;
152
+ wstETH?: undefined;
153
+ arb?: undefined;
154
+ chr?: undefined;
155
+ convexProxy?: undefined;
156
+ crv2Pool?: undefined;
157
+ ram?: undefined;
158
+ sliz?: undefined;
159
+ aero?: undefined;
160
+ am3CRV?: undefined;
161
+ amDAI?: undefined;
162
+ amUSDC?: undefined;
163
+ amUSDT?: undefined;
164
+ jrt?: undefined;
165
+ oretro?: undefined;
166
+ glcr?: undefined;
167
+ cake?: undefined;
168
+ } | {
169
+ aero: string;
170
+ usdc: string;
171
+ apw?: undefined;
172
+ convexEndpoint?: undefined;
173
+ crv?: undefined;
174
+ crv3?: undefined;
175
+ crvANGLESDANGLE?: undefined;
176
+ crvEURAEUROC?: undefined;
177
+ crvEURAEURe?: undefined;
178
+ crvEuropool?: undefined;
179
+ crvFRAX?: undefined;
180
+ crvFRAXEURA?: undefined;
181
+ crvLUSD3CRV?: undefined;
182
+ cvx?: undefined;
183
+ dai?: undefined;
184
+ frax?: undefined;
185
+ fxs?: undefined;
186
+ morpho?: undefined;
187
+ rKP3R?: undefined;
188
+ sdt?: undefined;
189
+ stakeEndpoint?: undefined;
190
+ sushi?: undefined;
191
+ weth?: undefined;
192
+ wstETH?: undefined;
193
+ arb?: undefined;
194
+ chr?: undefined;
195
+ convexProxy?: undefined;
196
+ crv2Pool?: undefined;
197
+ jeur?: undefined;
198
+ ram?: undefined;
199
+ sliz?: undefined;
200
+ mai?: undefined;
201
+ op?: undefined;
202
+ usdce?: undefined;
203
+ velo?: undefined;
204
+ veloV2?: undefined;
205
+ am3CRV?: undefined;
206
+ amDAI?: undefined;
207
+ amUSDC?: undefined;
208
+ amUSDT?: undefined;
209
+ jrt?: undefined;
210
+ oretro?: undefined;
211
+ glcr?: undefined;
212
+ cake?: undefined;
213
+ } | {
214
+ am3CRV: string;
215
+ amDAI: string;
216
+ amUSDC: string;
217
+ amUSDT: string;
218
+ jeur: string;
219
+ jrt: string;
220
+ oretro: string;
221
+ usdc: string;
222
+ apw?: undefined;
223
+ convexEndpoint?: undefined;
224
+ crv?: undefined;
225
+ crv3?: undefined;
226
+ crvANGLESDANGLE?: undefined;
227
+ crvEURAEUROC?: undefined;
228
+ crvEURAEURe?: undefined;
229
+ crvEuropool?: undefined;
230
+ crvFRAX?: undefined;
231
+ crvFRAXEURA?: undefined;
232
+ crvLUSD3CRV?: undefined;
233
+ cvx?: undefined;
234
+ dai?: undefined;
235
+ frax?: undefined;
236
+ fxs?: undefined;
237
+ morpho?: undefined;
238
+ rKP3R?: undefined;
239
+ sdt?: undefined;
240
+ stakeEndpoint?: undefined;
241
+ sushi?: undefined;
242
+ weth?: undefined;
243
+ wstETH?: undefined;
244
+ arb?: undefined;
245
+ chr?: undefined;
246
+ convexProxy?: undefined;
247
+ crv2Pool?: undefined;
248
+ ram?: undefined;
249
+ sliz?: undefined;
250
+ mai?: undefined;
251
+ op?: undefined;
252
+ usdce?: undefined;
253
+ velo?: undefined;
254
+ veloV2?: undefined;
255
+ aero?: undefined;
256
+ glcr?: undefined;
257
+ cake?: undefined;
258
+ } | {
259
+ glcr: string;
260
+ usdc: string;
261
+ apw?: undefined;
262
+ convexEndpoint?: undefined;
263
+ crv?: undefined;
264
+ crv3?: undefined;
265
+ crvANGLESDANGLE?: undefined;
266
+ crvEURAEUROC?: undefined;
267
+ crvEURAEURe?: undefined;
268
+ crvEuropool?: undefined;
269
+ crvFRAX?: undefined;
270
+ crvFRAXEURA?: undefined;
271
+ crvLUSD3CRV?: undefined;
272
+ cvx?: undefined;
273
+ dai?: undefined;
274
+ frax?: undefined;
275
+ fxs?: undefined;
276
+ morpho?: undefined;
277
+ rKP3R?: undefined;
278
+ sdt?: undefined;
279
+ stakeEndpoint?: undefined;
280
+ sushi?: undefined;
281
+ weth?: undefined;
282
+ wstETH?: undefined;
283
+ arb?: undefined;
284
+ chr?: undefined;
285
+ convexProxy?: undefined;
286
+ crv2Pool?: undefined;
287
+ jeur?: undefined;
288
+ ram?: undefined;
289
+ sliz?: undefined;
290
+ mai?: undefined;
291
+ op?: undefined;
292
+ usdce?: undefined;
293
+ velo?: undefined;
294
+ veloV2?: undefined;
295
+ aero?: undefined;
296
+ am3CRV?: undefined;
297
+ amDAI?: undefined;
298
+ amUSDC?: undefined;
299
+ amUSDT?: undefined;
300
+ jrt?: undefined;
301
+ oretro?: undefined;
302
+ cake?: undefined;
303
+ } | {
304
+ cake: string;
305
+ apw?: undefined;
306
+ convexEndpoint?: undefined;
307
+ crv?: undefined;
308
+ crv3?: undefined;
309
+ crvANGLESDANGLE?: undefined;
310
+ crvEURAEUROC?: undefined;
311
+ crvEURAEURe?: undefined;
312
+ crvEuropool?: undefined;
313
+ crvFRAX?: undefined;
314
+ crvFRAXEURA?: undefined;
315
+ crvLUSD3CRV?: undefined;
316
+ cvx?: undefined;
317
+ dai?: undefined;
318
+ frax?: undefined;
319
+ fxs?: undefined;
320
+ morpho?: undefined;
321
+ rKP3R?: undefined;
322
+ sdt?: undefined;
323
+ stakeEndpoint?: undefined;
324
+ sushi?: undefined;
325
+ usdc?: undefined;
326
+ weth?: undefined;
327
+ wstETH?: undefined;
328
+ arb?: undefined;
329
+ chr?: undefined;
330
+ convexProxy?: undefined;
331
+ crv2Pool?: undefined;
332
+ jeur?: undefined;
333
+ ram?: undefined;
334
+ sliz?: undefined;
335
+ mai?: undefined;
336
+ op?: undefined;
337
+ usdce?: undefined;
338
+ velo?: undefined;
339
+ veloV2?: undefined;
340
+ aero?: undefined;
341
+ am3CRV?: undefined;
342
+ amDAI?: undefined;
343
+ amUSDC?: undefined;
344
+ amUSDT?: undefined;
345
+ jrt?: undefined;
346
+ oretro?: undefined;
347
+ glcr?: undefined;
348
+ };
349
+ };