@merkl/api 0.21.47 → 1.0.0

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 (841) hide show
  1. package/dist/src/cache/index.d.ts +1 -1
  2. package/dist/src/constants.d.ts +8 -8
  3. package/dist/src/eden/index.d.ts +16937 -8167
  4. package/dist/src/eden/index.js +1 -1
  5. package/dist/src/engine/deprecated/dynamicData/implementations/Ajna.d.ts +1 -1
  6. package/dist/src/engine/deprecated/dynamicData/implementations/Badger.d.ts +1 -1
  7. package/dist/src/engine/deprecated/dynamicData/implementations/Clamm.d.ts +1 -1
  8. package/dist/src/engine/deprecated/dynamicData/implementations/Compound.d.ts +1 -1
  9. package/dist/src/engine/deprecated/dynamicData/implementations/CompoundV3.d.ts +1 -1
  10. package/dist/src/engine/deprecated/dynamicData/implementations/Dolomite.d.ts +1 -1
  11. package/dist/src/engine/deprecated/dynamicData/implementations/ERC721.d.ts +2 -2
  12. package/dist/src/engine/deprecated/dynamicData/implementations/ERCMultiToken.d.ts +2 -2
  13. package/dist/src/engine/deprecated/dynamicData/implementations/EigenLayer.d.ts +1 -1
  14. package/dist/src/engine/deprecated/dynamicData/implementations/Encompassing.d.ts +1 -1
  15. package/dist/src/engine/deprecated/dynamicData/implementations/Erc20.d.ts +105 -3
  16. package/dist/src/engine/deprecated/dynamicData/implementations/Erc20Snapshot.d.ts +1 -1
  17. package/dist/src/engine/deprecated/dynamicData/implementations/EventBased.d.ts +1 -1
  18. package/dist/src/engine/deprecated/dynamicData/implementations/Hyperdrive.d.ts +2 -2
  19. package/dist/src/engine/deprecated/dynamicData/implementations/Morpho.d.ts +1 -1
  20. package/dist/src/engine/deprecated/dynamicData/implementations/Radiant.d.ts +1 -1
  21. package/dist/src/engine/deprecated/dynamicData/implementations/Silo.d.ts +1 -1
  22. package/dist/src/engine/deprecated/dynamicData/implementations/UniswapV4.d.ts +1 -1
  23. package/dist/src/engine/deprecated/dynamicData/implementations/Vest.d.ts +1 -1
  24. package/dist/src/engine/deprecated/dynamicData/implementations/default.d.ts +2 -2
  25. package/dist/src/engine/deprecated/dynamicData/utils/fetchA51Strategies.d.ts +1 -1
  26. package/dist/src/engine/deprecated/dynamicData/utils/fetchClamInfo.d.ts +1 -1
  27. package/dist/src/engine/deprecated/dynamicData/utils/fetchLogs.d.ts +1 -1
  28. package/dist/src/engine/deprecated/dynamicData/utils/getCompV2ForksVaults.d.ts +1 -1
  29. package/dist/src/engine/deprecated/dynamicData/utils/getDolomiteMarkets.d.ts +1 -1
  30. package/dist/src/engine/deprecated/dynamicData/utils/getEulerV2Vaults.d.ts +1 -1
  31. package/dist/src/engine/deprecated/dynamicData/utils/getFixedApr.d.ts +1 -1
  32. package/dist/src/engine/deprecated/erc20SubTypeProcessors/GenericProcessor.d.ts +6 -6
  33. package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/factoryFinder.d.ts +1 -1
  34. package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/hardcoded.d.ts +2 -2
  35. package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/ownerFinder.d.ts +1 -1
  36. package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/treasuryFinder.d.ts +1 -1
  37. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/AaveProcessor.d.ts +3 -3
  38. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/AnglesLiquid.d.ts +3 -3
  39. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/AssetProcessor.d.ts +3 -3
  40. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/AuraProcessor.d.ts +4 -4
  41. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BEXRewardGaugeProcessor.d.ts +4 -4
  42. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BalancerGaugeProcessor.d.ts +4 -4
  43. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BalancerPoolProcessor.d.ts +4 -4
  44. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BalancerV3PoolProcessor.d.ts +3 -3
  45. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BeefyProcessor.d.ts +3 -3
  46. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BunniV2Processor.d.ts +4 -4
  47. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/CompoundProcessor.d.ts +3 -3
  48. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/ERC4626Processor.d.ts +3 -3
  49. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/EnzymeProcessor.d.ts +3 -3
  50. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/EqualizerGaugeProcessor.d.ts +3 -3
  51. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/EulerBorrowProcessor.d.ts +3 -3
  52. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/EulerLendProcessor.d.ts +2 -2
  53. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/FluidProcessor.d.ts +3 -3
  54. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/FraxProcessor.d.ts +3 -3
  55. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/GammaALMProcessor.d.ts +3 -3
  56. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/GammaProcessor.d.ts +3 -3
  57. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/GearboxProcessor.d.ts +3 -3
  58. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/HanjiVaultProcessor.d.ts +3 -3
  59. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/HoldStationProcessor.d.ts +3 -3
  60. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/HourglassProcessor.d.ts +3 -3
  61. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/MaverickBPProcessor.d.ts +3 -3
  62. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/MetamorphoProcessor.d.ts +3 -3
  63. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/NoLinkVaultProcessor.d.ts +3 -3
  64. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/PendleProcessor.d.ts +3 -3
  65. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/PendleYTProcessor.d.ts +3 -3
  66. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/RadiantProcessor.d.ts +3 -3
  67. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/RfxProcessor.d.ts +3 -3
  68. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/Satlayer.d.ts +3 -3
  69. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/SpectraProcessor.d.ts +3 -3
  70. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/SpectraYTProcessor.d.ts +3 -3
  71. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/SpliceProcessor.d.ts +3 -3
  72. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/StabilityProcessor.d.ts +3 -3
  73. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/SturdySiloProcessor.d.ts +3 -3
  74. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/TempestVaultProcessor.d.ts +3 -3
  75. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/TemplateProcessor.d.ts +3 -3
  76. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/TorosProcessor.d.ts +3 -3
  77. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/UniswapProcessor.d.ts +3 -3
  78. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/VicunaProcessor.d.ts +3 -3
  79. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/WoofiProcessor.d.ts +3 -3
  80. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/ZkSwapThreePoolProcessor.d.ts +3 -3
  81. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/curveNPoolProcessor.d.ts +3 -3
  82. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/curveProcessor.d.ts +3 -3
  83. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/processorMapping.d.ts +1 -1
  84. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/stakedCurveProcessor.d.ts +3 -3
  85. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/xU308Processor.d.ts +3 -3
  86. package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesPrices.d.ts +3 -3
  87. package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesRound1.d.ts +1 -1
  88. package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesRound2.d.ts +2 -2
  89. package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesRound3.d.ts +2 -2
  90. package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesRound4.d.ts +2 -2
  91. package/dist/src/engine/deprecated/erc20SubTypeProcessors/tokenTypeStruct.d.ts +2 -2
  92. package/dist/src/engine/deprecated/erc20SubTypeProcessors/tokenTypeToProtocolAndAction.d.ts +3 -3
  93. package/dist/src/engine/implementations/Ajna/metadata.d.ts +5 -5
  94. package/dist/src/engine/implementations/Ajna/tvl.d.ts +2 -2
  95. package/dist/src/engine/implementations/Ambient/metadata.d.ts +5 -5
  96. package/dist/src/engine/implementations/Ambient/tvl.d.ts +2 -2
  97. package/dist/src/engine/implementations/Badger/metadata.d.ts +4 -4
  98. package/dist/src/engine/implementations/Clamm/metadata.d.ts +22 -22
  99. package/dist/src/engine/implementations/Compound/metadata.d.ts +4 -4
  100. package/dist/src/engine/implementations/CompoundV3/metadata.d.ts +4 -4
  101. package/dist/src/engine/implementations/Default/metadata.d.ts +3 -3
  102. package/dist/src/engine/implementations/Dolomite/metadata.d.ts +5 -5
  103. package/dist/src/engine/implementations/EigenLayer/metadata.d.ts +5 -5
  104. package/dist/src/engine/implementations/EigenLayer/tvl.d.ts +2 -2
  105. package/dist/src/engine/implementations/Encompassing/metadata.d.ts +3 -3
  106. package/dist/src/engine/implementations/Erc20/metadata.d.ts +4 -4
  107. package/dist/src/engine/implementations/Erc20/subTypes/detect.d.ts +2 -2
  108. package/dist/src/engine/implementations/Erc20/subTypes/factories.d.ts +4 -4
  109. package/dist/src/engine/implementations/Erc20/subTypes/implementations/aave/metadata.d.ts +6 -6
  110. package/dist/src/engine/implementations/Erc20/subTypes/implementations/aave/tvl.d.ts +4 -4
  111. package/dist/src/engine/implementations/Erc20/subTypes/implementations/euler/metadata.d.ts +6 -6
  112. package/dist/src/engine/implementations/Erc20/subTypes/implementations/euler/tvl.d.ts +2 -2
  113. package/dist/src/engine/implementations/Erc20/subTypes/implementations/gearbox/metadata.d.ts +5 -5
  114. package/dist/src/engine/implementations/Erc20/subTypes/implementations/gearbox/tvl.d.ts +4 -4
  115. package/dist/src/engine/implementations/Erc20/subTypes/implementations/hypurrfiIsolatedMarket/metadata.d.ts +6 -6
  116. package/dist/src/engine/implementations/Erc20/subTypes/implementations/hypurrfiIsolatedMarket/tvl.d.ts +4 -4
  117. package/dist/src/engine/implementations/Erc20/subTypes/implementations/lendleVaults/metadata.d.ts +5 -5
  118. package/dist/src/engine/implementations/Erc20/subTypes/implementations/lendleVaults/tvl.d.ts +4 -4
  119. package/dist/src/engine/implementations/Erc20/subTypes/implementations/metamorpho/metadata.d.ts +17 -0
  120. package/dist/src/engine/implementations/Erc20/subTypes/implementations/metamorpho/tvl.d.ts +6 -0
  121. package/dist/src/engine/implementations/Erc20/subTypes/implementations/pino/metadata.d.ts +4 -4
  122. package/dist/src/engine/implementations/Erc20/subTypes/implementations/pino/tvl.d.ts +4 -4
  123. package/dist/src/engine/implementations/Erc20/subTypes/implementations/termmax/metadata.d.ts +5 -5
  124. package/dist/src/engine/implementations/Erc20/subTypes/implementations/termmax/tvl.d.ts +4 -4
  125. package/dist/src/engine/implementations/Erc20/subTypes/implementations/termmaxVault/metadata.d.ts +18 -0
  126. package/dist/src/engine/implementations/Erc20/subTypes/implementations/termmaxVault/tvl.d.ts +6 -0
  127. package/dist/src/engine/implementations/Erc20/subTypes/implementations/uniswapV2/metadata.d.ts +5 -5
  128. package/dist/src/engine/implementations/Erc20/subTypes/implementations/uniswapV2/tvl.d.ts +4 -4
  129. package/dist/src/engine/implementations/Erc20/subTypes/index.d.ts +3 -2
  130. package/dist/src/engine/implementations/Erc20/tvl.d.ts +4 -4
  131. package/dist/src/engine/implementations/Erc20Snapshot/metadata.d.ts +4 -4
  132. package/dist/src/engine/implementations/Erc721/metadata.d.ts +4 -4
  133. package/dist/src/engine/implementations/ErcMultiToken/metadata.d.ts +6 -6
  134. package/dist/src/engine/implementations/EventBased/metadata.d.ts +5 -5
  135. package/dist/src/engine/implementations/FraxLend/metadataBorrow.d.ts +24 -0
  136. package/dist/src/engine/implementations/FraxLend/metadataCollateral.d.ts +18 -0
  137. package/dist/src/engine/implementations/FraxLend/tvlBorrow.d.ts +7 -0
  138. package/dist/src/engine/implementations/FraxLend/tvlCollateral.d.ts +7 -0
  139. package/dist/src/engine/implementations/Hyperdrive/metadata.d.ts +5 -5
  140. package/dist/src/engine/implementations/Invalid/metadata.d.ts +2 -2
  141. package/dist/src/engine/implementations/Ion/metadata.d.ts +5 -5
  142. package/dist/src/engine/implementations/JsonAirdrop/metadata.d.ts +7 -7
  143. package/dist/src/engine/implementations/Locker/metadata.d.ts +5 -5
  144. package/dist/src/engine/implementations/Locker/tvl.d.ts +2 -2
  145. package/dist/src/engine/implementations/Morpho/metadata.d.ts +7 -7
  146. package/dist/src/engine/implementations/MultiLog/metadata.d.ts +4 -4
  147. package/dist/src/engine/implementations/MultiLog/tvl.d.ts +3 -3
  148. package/dist/src/engine/implementations/Radiant/metadata.d.ts +4 -4
  149. package/dist/src/engine/implementations/Silo/metadata.d.ts +5 -5
  150. package/dist/src/engine/implementations/UniswapV4/metadata.d.ts +5 -5
  151. package/dist/src/engine/implementations/UniswapV4/tvl.d.ts +2 -2
  152. package/dist/src/engine/implementations/Vest/metadata.d.ts +4 -4
  153. package/dist/src/engine/implementations/morphoBorrow/metadata.d.ts +20 -0
  154. package/dist/src/engine/implementations/morphoBorrow/tvl.d.ts +7 -0
  155. package/dist/src/engine/implementations/morphoCollateral/metadata.d.ts +20 -0
  156. package/dist/src/engine/implementations/morphoCollateral/tvl.d.ts +7 -0
  157. package/dist/src/engine/implementations/morphoSupply/metadata.d.ts +20 -0
  158. package/dist/src/engine/implementations/morphoSupply/tvl.d.ts +7 -0
  159. package/dist/src/engine/metadata/factory.d.ts +1 -1
  160. package/dist/src/engine/tvl/factory.d.ts +2 -2
  161. package/dist/src/engine/tvl/logStates.d.ts +1 -1
  162. package/dist/src/hooks/checkQueryAddressValidity.d.ts +6 -2
  163. package/dist/src/hooks/checkQueryChainIdValidity.d.ts +6 -2
  164. package/dist/src/index.d.ts +5548 -2626
  165. package/dist/src/jobs/{dynamic-data.d.ts → update-v3-caches.d.ts} +4 -1
  166. package/dist/src/libs/computeFee.d.ts +1 -1
  167. package/dist/src/libs/deprecated-merklv3/index.d.ts +3 -3
  168. package/dist/src/libs/merklChainData.d.ts +1 -1
  169. package/dist/src/libs/parse/marketsWithCache.d.ts +1 -1
  170. package/dist/src/libs/positions/EigenLayer/index.d.ts +2 -2
  171. package/dist/src/libs/positions/ajna/index.d.ts +2 -2
  172. package/dist/src/libs/positions/badger/index.d.ts +2 -2
  173. package/dist/src/libs/positions/clamm/index.d.ts +1 -1
  174. package/dist/src/libs/positions/clamm/thegraph/fetchAlmPositions.d.ts +1 -1
  175. package/dist/src/libs/positions/clamm/thegraph/fetchAmmPositions.d.ts +1 -1
  176. package/dist/src/libs/positions/clamm/thegraph/fetchFarmedPositions.d.ts +1 -1
  177. package/dist/src/libs/positions/compound/index.d.ts +2 -2
  178. package/dist/src/libs/positions/dolomite/index.d.ts +2 -2
  179. package/dist/src/libs/positions/erc20/index.d.ts +2 -2
  180. package/dist/src/libs/positions/euler/index.d.ts +2 -2
  181. package/dist/src/libs/positions/index.d.ts +1 -1
  182. package/dist/src/libs/positions/morpho/index.d.ts +2 -2
  183. package/dist/src/libs/positions/prepareFetch.d.ts +1 -1
  184. package/dist/src/libs/positions/silo/index.d.ts +2 -2
  185. package/dist/src/libs/positions/types.d.ts +1 -1
  186. package/dist/src/libs/staticCampaigns.d.ts +1 -1
  187. package/dist/src/libs/tokens/balances.d.ts +1 -1
  188. package/dist/src/libs/tokens/tokenInfo.d.ts +1 -1
  189. package/dist/src/modules/v4/accounting/accounting.controller.d.ts +98 -33
  190. package/dist/src/modules/v4/accounting/accounting.repository.d.ts +41 -41
  191. package/dist/src/modules/v4/accounting/accounting.service.d.ts +7 -7
  192. package/dist/src/modules/v4/apr/apr.model.d.ts +8 -8
  193. package/dist/src/modules/v4/apr/apr.service.d.ts +1 -1
  194. package/dist/src/modules/v4/authentication/authentication.controller.d.ts +24 -2
  195. package/dist/src/modules/v4/blacklist/blacklist.controller.d.ts +64 -37
  196. package/dist/src/modules/v4/blacklist/blacklist.repository.d.ts +4 -4
  197. package/dist/src/modules/v4/blacklist/blacklist.service.d.ts +5 -5
  198. package/dist/src/modules/v4/boost/boost.controller.d.ts +25 -3
  199. package/dist/src/modules/v4/cache/cache.repository.d.ts +1 -1
  200. package/dist/src/modules/v4/cache/cache.service.d.ts +1 -1
  201. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +665 -504
  202. package/dist/src/modules/v4/campaign/campaign.model.d.ts +30 -9
  203. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +191 -191
  204. package/dist/src/modules/v4/campaign/campaign.service.d.ts +415 -319
  205. package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +352 -282
  206. package/dist/src/modules/v4/chain/chain.controller.d.ts +91 -47
  207. package/dist/src/modules/v4/chain/chain.model.d.ts +11 -3
  208. package/dist/src/modules/v4/chain/chain.repository.d.ts +10 -10
  209. package/dist/src/modules/v4/chain/chain.service.d.ts +10 -10
  210. package/dist/src/modules/v4/chainInteraction/chainInteraction.service.d.ts +1 -1
  211. package/dist/src/modules/v4/claims/claims.controller.d.ts +15 -2
  212. package/dist/src/modules/v4/claims/claims.repository.d.ts +1 -1
  213. package/dist/src/modules/v4/claims/claims.service.d.ts +3 -3
  214. package/dist/src/modules/v4/computedValue/computedValue.controller.d.ts +47 -7
  215. package/dist/src/modules/v4/computedValue/computedValue.repository.d.ts +2 -2
  216. package/dist/src/modules/v4/computedValue/computedValue.service.d.ts +2 -2
  217. package/dist/src/modules/v4/creator/creator.controller.d.ts +160 -88
  218. package/dist/src/modules/v4/creator/creator.model.d.ts +1 -1
  219. package/dist/src/modules/v4/creator/creator.repository.d.ts +20 -20
  220. package/dist/src/modules/v4/creator/creator.service.d.ts +47 -47
  221. package/dist/src/modules/v4/dynamicData/dynamicData.model.d.ts +1 -1
  222. package/dist/src/modules/v4/dynamicData/dynamicData.service.d.ts +1 -1
  223. package/dist/src/modules/v4/enso/enso.service.d.ts +17 -17
  224. package/dist/src/modules/v4/explorer/explorer.controller.d.ts +19 -6
  225. package/dist/src/modules/v4/explorer/explorer.model.d.ts +2 -2
  226. package/dist/src/modules/v4/explorer/explorer.repository.d.ts +5 -5
  227. package/dist/src/modules/v4/explorer/explorer.service.d.ts +7 -7
  228. package/dist/src/modules/v4/interaction/interaction.controller.d.ts +39 -8
  229. package/dist/src/modules/v4/interaction/interaction.model.d.ts +1 -1
  230. package/dist/src/modules/v4/interaction/interaction.service.d.ts +2 -2
  231. package/dist/src/modules/v4/kyberzap/kyberzap.service.d.ts +1 -1
  232. package/dist/src/modules/v4/liquidity/implementations/AjnaPositionFetcher.d.ts +2 -2
  233. package/dist/src/modules/v4/liquidity/implementations/BadgerPositionFetcher.d.ts +2 -2
  234. package/dist/src/modules/v4/liquidity/implementations/ClammPositionFetcher.d.ts +2 -2
  235. package/dist/src/modules/v4/liquidity/implementations/DolomitePositionFetcher.d.ts +2 -2
  236. package/dist/src/modules/v4/liquidity/implementations/ERC20PositionFetcher.d.ts +3 -3
  237. package/dist/src/modules/v4/liquidity/implementations/EulerPositionFetcher.d.ts +2 -2
  238. package/dist/src/modules/v4/liquidity/liquidity.controller.d.ts +24 -13
  239. package/dist/src/modules/v4/liquidity/liquidity.model.d.ts +2 -2
  240. package/dist/src/modules/v4/liquidity/liquidity.repository.d.ts +1 -1
  241. package/dist/src/modules/v4/merklRoot/merklRoot.controller.d.ts +42 -22
  242. package/dist/src/modules/v4/merklRoot/merklRoot.repository.d.ts +7 -7
  243. package/dist/src/modules/v4/merklRoot/merklRoot.service.d.ts +18 -8
  244. package/dist/src/modules/v4/nodes/node.controller.d.ts +65 -0
  245. package/dist/src/modules/v4/nodes/node.model.d.ts +21 -0
  246. package/dist/src/modules/v4/nodes/node.repository.d.ts +21 -0
  247. package/dist/src/modules/v4/nodes/node.service.d.ts +21 -0
  248. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +743 -644
  249. package/dist/src/modules/v4/opportunity/opportunity.converter.d.ts +111 -5
  250. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +116 -81
  251. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +408 -408
  252. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +489 -459
  253. package/dist/src/modules/v4/parse/parse.controller.d.ts +64 -0
  254. package/dist/src/modules/v4/parse/parse.model.d.ts +10 -0
  255. package/dist/src/modules/v4/payload/payload.controller.d.ts +125 -0
  256. package/dist/src/modules/v4/payload/payload.model.d.ts +307 -0
  257. package/dist/src/modules/v4/payload/payload.service.d.ts +27 -0
  258. package/dist/src/modules/v4/price/price.controller.d.ts +93 -50
  259. package/dist/src/modules/v4/price/price.model.d.ts +16 -16
  260. package/dist/src/modules/v4/price/price.repository.d.ts +11 -11
  261. package/dist/src/modules/v4/price/price.service.d.ts +9 -9
  262. package/dist/src/modules/v4/prisma/index.d.ts +1 -1
  263. package/dist/src/modules/v4/programPayload/programPayload.controller.d.ts +939 -146
  264. package/dist/src/modules/v4/programPayload/programPayload.model.d.ts +12 -14
  265. package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +450 -362
  266. package/dist/src/modules/v4/programPayload/programPayload.service.d.ts +40 -19
  267. package/dist/src/modules/v4/protocol/protocol.controller.d.ts +117 -67
  268. package/dist/src/modules/v4/protocol/protocol.model.d.ts +2 -2
  269. package/dist/src/modules/v4/protocol/protocol.repository.d.ts +29 -29
  270. package/dist/src/modules/v4/protocol/protocol.service.d.ts +9 -6
  271. package/dist/src/modules/v4/referral/referral.controller.d.ts +29 -7
  272. package/dist/src/modules/v4/referral/referral.service.d.ts +8 -8
  273. package/dist/src/modules/v4/reward/reward.controller.d.ts +261 -93
  274. package/dist/src/modules/v4/reward/reward.converter.d.ts +1 -1
  275. package/dist/src/modules/v4/reward/reward.model.d.ts +3 -3
  276. package/dist/src/modules/v4/reward/reward.repository.d.ts +55 -54
  277. package/dist/src/modules/v4/reward/reward.service.d.ts +260 -260
  278. package/dist/src/modules/v4/router.d.ts +4706 -2394
  279. package/dist/src/modules/v4/status/status.controller.d.ts +127 -64
  280. package/dist/src/modules/v4/status/status.model.d.ts +10 -10
  281. package/dist/src/modules/v4/status/status.repository.d.ts +35 -35
  282. package/dist/src/modules/v4/status/status.service.d.ts +23 -23
  283. package/dist/src/modules/v4/token/token.controller.d.ts +224 -130
  284. package/dist/src/modules/v4/token/token.model.d.ts +1 -1
  285. package/dist/src/modules/v4/token/token.repository.d.ts +41 -37
  286. package/dist/src/modules/v4/token/token.service.d.ts +106 -101
  287. package/dist/src/modules/v4/turtle/turtle.controller.d.ts +15 -2
  288. package/dist/src/modules/v4/tvl/tvl.model.d.ts +5 -5
  289. package/dist/src/modules/v4/tvl/tvl.service.d.ts +1 -1
  290. package/dist/src/modules/v4/uniswap/uniswap.controller.d.ts +248 -11
  291. package/dist/src/modules/v4/uniswap/uniswap.model.d.ts +3 -3
  292. package/dist/src/modules/v4/uniswap/uniswap.repository.d.ts +4 -4
  293. package/dist/src/modules/v4/uniswap/uniswap.service.d.ts +3 -3
  294. package/dist/src/modules/v4/user/user.controller.d.ts +175 -164
  295. package/dist/src/modules/v4/user/user.model.d.ts +10 -1
  296. package/dist/src/modules/v4/user/user.repository.d.ts +7 -7
  297. package/dist/src/modules/v4/user/user.service.d.ts +7 -7
  298. package/dist/src/plugins/error-handling.plugin.d.ts +7 -3
  299. package/dist/src/routes/v1/allowances.d.ts +18 -5
  300. package/dist/src/routes/v1/balances.d.ts +16 -3
  301. package/dist/src/routes/v1/prices.d.ts +15 -2
  302. package/dist/src/routes/v1/router.d.ts +44 -4
  303. package/dist/src/routes/v1/tokens.d.ts +15 -2
  304. package/dist/src/routes/v2/merkl.d.ts +41 -4
  305. package/dist/src/routes/v2/router.d.ts +41 -4
  306. package/dist/src/routes/v3/app.d.ts +15 -2
  307. package/dist/src/routes/v3/blacklist.d.ts +15 -2
  308. package/dist/src/routes/v3/campaign/delay.d.ts +27 -16
  309. package/dist/src/routes/v3/campaignClaims.d.ts +15 -2
  310. package/dist/src/routes/v3/campaignUnclaimed.d.ts +15 -2
  311. package/dist/src/routes/v3/campaigns.d.ts +17 -4
  312. package/dist/src/routes/v3/campaignsForMainParameter.d.ts +15 -2
  313. package/dist/src/routes/v3/campaignsRewardsReport.d.ts +15 -2
  314. package/dist/src/routes/v3/claims.d.ts +15 -2
  315. package/dist/src/routes/v3/compoundV2.d.ts +15 -2
  316. package/dist/src/routes/v3/createCampaign.d.ts +16 -3
  317. package/dist/src/routes/v3/dolomite.d.ts +15 -2
  318. package/dist/src/routes/v3/euler.d.ts +43 -14
  319. package/dist/src/routes/v3/fetch.d.ts +15 -2
  320. package/dist/src/routes/v3/health.d.ts +15 -2
  321. package/dist/src/routes/v3/lostyield.d.ts +15 -2
  322. package/dist/src/routes/v3/merkl.d.ts +34 -6
  323. package/dist/src/routes/v3/morphoMarkets.d.ts +15 -2
  324. package/dist/src/routes/v3/morphoVaults.d.ts +15 -2
  325. package/dist/src/routes/v3/multiChainPositions.d.ts +15 -2
  326. package/dist/src/routes/v3/opportunity.d.ts +72 -6
  327. package/dist/src/routes/v3/overview.d.ts +15 -2
  328. package/dist/src/routes/v3/parse.d.ts +15 -2
  329. package/dist/src/routes/v3/payload.d.ts +19 -6
  330. package/dist/src/routes/v3/poolInfo.d.ts +18 -5
  331. package/dist/src/routes/v3/positions.d.ts +15 -2
  332. package/dist/src/routes/v3/radiant.d.ts +15 -2
  333. package/dist/src/routes/v3/recipients.d.ts +15 -2
  334. package/dist/src/routes/v3/rewards.d.ts +18 -5
  335. package/dist/src/routes/v3/rewardsReport.d.ts +16 -3
  336. package/dist/src/routes/v3/router.d.ts +608 -55
  337. package/dist/src/routes/v3/silo.d.ts +15 -2
  338. package/dist/src/routes/v3/token.d.ts +16 -3
  339. package/dist/src/routes/v3/twt/participants.d.ts +24 -13
  340. package/dist/src/routes/v3/uniswapv4.d.ts +192 -19
  341. package/dist/src/routes/v3/updates.d.ts +15 -2
  342. package/dist/src/routes/v3/userRewards.d.ts +18 -5
  343. package/dist/src/utils/decodeCalls.d.ts +1 -1
  344. package/dist/src/utils/encodeCalls.d.ts +2 -2
  345. package/dist/src/utils/error.d.ts +8 -4
  346. package/dist/src/utils/generateCardName.d.ts +2 -2
  347. package/dist/src/utils/generic.d.ts +2 -2
  348. package/dist/src/utils/lastBlockBefore.d.ts +1 -1
  349. package/dist/src/utils/logger.d.ts +0 -8
  350. package/dist/src/utils/pricer.d.ts +1 -1
  351. package/dist/src/utils/prices/chainlinkRead.d.ts +1 -1
  352. package/dist/src/utils/prices/curveVirtualPrice.d.ts +1 -1
  353. package/dist/src/utils/prices/getDQUICK.d.ts +1 -1
  354. package/dist/src/utils/prices/priceFetcherFactory.d.ts +1 -1
  355. package/dist/src/utils/prices/services/OnChainCallService.d.ts +1 -1
  356. package/dist/src/utils/prices/services/coinGeckoService.d.ts +1 -1
  357. package/dist/src/utils/prices/services/defillamaService.d.ts +1 -1
  358. package/dist/src/utils/prices/services/dexScreenerService.d.ts +1 -1
  359. package/dist/src/utils/prices/services/erc4626Service.d.ts +1 -1
  360. package/dist/src/utils/prices/services/getERC4626.d.ts +1 -1
  361. package/dist/src/utils/prices/services/indexCoopService.d.ts +1 -1
  362. package/dist/src/utils/prices/services/priceFetcher.d.ts +1 -1
  363. package/dist/src/utils/prices/uniV2Price.d.ts +1 -1
  364. package/dist/src/utils/providers.d.ts +113 -2
  365. package/dist/src/utils/queries/allCampaigns.d.ts +1 -2
  366. package/dist/src/utils/sanitizeChain.d.ts +2 -2
  367. package/dist/src/utils/stryke.d.ts +1 -1
  368. package/dist/src/utils/throw.d.ts +1 -1
  369. package/dist/tsconfig.tsbuildinfo +1 -0
  370. package/package.json +28 -48
  371. package/dist/database/api/.generated/default.d.ts +0 -1
  372. package/dist/database/api/.generated/default.js +0 -1
  373. package/dist/database/api/.generated/drizzle/schema.d.ts +0 -3342
  374. package/dist/database/api/.generated/drizzle/schema.js +0 -928
  375. package/dist/database/api/.generated/drizzle/schema.ts +0 -989
  376. package/dist/database/api/.generated/edge.d.ts +0 -1
  377. package/dist/database/api/.generated/edge.js +0 -725
  378. package/dist/database/api/.generated/index-browser.js +0 -696
  379. package/dist/database/api/.generated/index.d.ts +0 -48645
  380. package/dist/database/api/.generated/index.js +0 -758
  381. package/dist/database/api/.generated/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
  382. package/dist/database/api/.generated/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0 -0
  383. package/dist/database/api/.generated/libquery_engine-linux-arm64-openssl-3.0.x.so.node +0 -0
  384. package/dist/database/api/.generated/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
  385. package/dist/database/api/.generated/package.json +0 -97
  386. package/dist/database/api/.generated/runtime/edge-esm.js +0 -31
  387. package/dist/database/api/.generated/runtime/edge.js +0 -31
  388. package/dist/database/api/.generated/runtime/index-browser.d.ts +0 -365
  389. package/dist/database/api/.generated/runtime/index-browser.js +0 -13
  390. package/dist/database/api/.generated/runtime/library.d.ts +0 -3447
  391. package/dist/database/api/.generated/runtime/library.js +0 -143
  392. package/dist/database/api/.generated/runtime/react-native.js +0 -80
  393. package/dist/database/api/.generated/runtime/wasm.js +0 -32
  394. package/dist/database/api/.generated/schema.prisma +0 -482
  395. package/dist/database/api/.generated/wasm.d.ts +0 -1
  396. package/dist/database/api/.generated/wasm.js +0 -696
  397. package/dist/database/engine/.generated/default.d.ts +0 -1
  398. package/dist/database/engine/.generated/default.js +0 -1
  399. package/dist/database/engine/.generated/edge.d.ts +0 -1
  400. package/dist/database/engine/.generated/edge.js +0 -485
  401. package/dist/database/engine/.generated/index-browser.js +0 -456
  402. package/dist/database/engine/.generated/index.d.ts +0 -22107
  403. package/dist/database/engine/.generated/index.js +0 -518
  404. package/dist/database/engine/.generated/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
  405. package/dist/database/engine/.generated/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0 -0
  406. package/dist/database/engine/.generated/libquery_engine-linux-arm64-openssl-3.0.x.so.node +0 -0
  407. package/dist/database/engine/.generated/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
  408. package/dist/database/engine/.generated/package.json +0 -97
  409. package/dist/database/engine/.generated/runtime/edge-esm.js +0 -31
  410. package/dist/database/engine/.generated/runtime/edge.js +0 -31
  411. package/dist/database/engine/.generated/runtime/index-browser.d.ts +0 -365
  412. package/dist/database/engine/.generated/runtime/index-browser.js +0 -13
  413. package/dist/database/engine/.generated/runtime/library.d.ts +0 -3447
  414. package/dist/database/engine/.generated/runtime/library.js +0 -143
  415. package/dist/database/engine/.generated/runtime/react-native.js +0 -80
  416. package/dist/database/engine/.generated/runtime/wasm.js +0 -32
  417. package/dist/database/engine/.generated/schema.prisma +0 -248
  418. package/dist/database/engine/.generated/wasm.d.ts +0 -1
  419. package/dist/database/engine/.generated/wasm.js +0 -456
  420. package/dist/database/index.d.ts +0 -29
  421. package/dist/database/index.js +0 -17
  422. package/dist/src/cache/declaration.js +0 -121
  423. package/dist/src/cache/index.js +0 -161
  424. package/dist/src/cache/redis.js +0 -57
  425. package/dist/src/constants.js +0 -93
  426. package/dist/src/engine/deprecated/dynamicData/implementations/Ajna.js +0 -107
  427. package/dist/src/engine/deprecated/dynamicData/implementations/Badger.js +0 -90
  428. package/dist/src/engine/deprecated/dynamicData/implementations/Clamm.js +0 -975
  429. package/dist/src/engine/deprecated/dynamicData/implementations/Compound.js +0 -139
  430. package/dist/src/engine/deprecated/dynamicData/implementations/CompoundV3.js +0 -101
  431. package/dist/src/engine/deprecated/dynamicData/implementations/Dolomite.js +0 -59
  432. package/dist/src/engine/deprecated/dynamicData/implementations/ERC721.js +0 -87
  433. package/dist/src/engine/deprecated/dynamicData/implementations/ERCMultiToken.js +0 -161
  434. package/dist/src/engine/deprecated/dynamicData/implementations/EigenLayer.js +0 -67
  435. package/dist/src/engine/deprecated/dynamicData/implementations/Encompassing.js +0 -26
  436. package/dist/src/engine/deprecated/dynamicData/implementations/Erc20.js +0 -162
  437. package/dist/src/engine/deprecated/dynamicData/implementations/Erc20Snapshot.js +0 -32
  438. package/dist/src/engine/deprecated/dynamicData/implementations/EventBased.js +0 -129
  439. package/dist/src/engine/deprecated/dynamicData/implementations/Hyperdrive.js +0 -112
  440. package/dist/src/engine/deprecated/dynamicData/implementations/Morpho.js +0 -132
  441. package/dist/src/engine/deprecated/dynamicData/implementations/Radiant.js +0 -123
  442. package/dist/src/engine/deprecated/dynamicData/implementations/Silo.js +0 -112
  443. package/dist/src/engine/deprecated/dynamicData/implementations/UniswapV4.js +0 -255
  444. package/dist/src/engine/deprecated/dynamicData/implementations/Vest.js +0 -61
  445. package/dist/src/engine/deprecated/dynamicData/implementations/default.js +0 -5
  446. package/dist/src/engine/deprecated/dynamicData/utils/fetchA51Strategies.js +0 -44
  447. package/dist/src/engine/deprecated/dynamicData/utils/fetchClamInfo.js +0 -27
  448. package/dist/src/engine/deprecated/dynamicData/utils/fetchLogs.js +0 -149
  449. package/dist/src/engine/deprecated/dynamicData/utils/getCompV2ForksVaults.js +0 -141
  450. package/dist/src/engine/deprecated/dynamicData/utils/getContractCreationBlock.js +0 -44
  451. package/dist/src/engine/deprecated/dynamicData/utils/getDolomiteMarkets.js +0 -53
  452. package/dist/src/engine/deprecated/dynamicData/utils/getEulerV2Vaults.js +0 -266
  453. package/dist/src/engine/deprecated/dynamicData/utils/getFixedApr.js +0 -27
  454. package/dist/src/engine/deprecated/erc20SubTypeProcessors/GenericProcessor.js +0 -335
  455. package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/eulerVaultNames.js +0 -13
  456. package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/factoryFinder.js +0 -47
  457. package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/getBlacklistedSupply.js +0 -22
  458. package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/getCrossCurveTokenPrice.js +0 -13
  459. package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/hardcoded.js +0 -30
  460. package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/metamorphoTvl.d.ts +0 -1
  461. package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/metamorphoTvl.js +0 -35
  462. package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/ownerFinder.js +0 -16
  463. package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/spliceTVL.js +0 -23
  464. package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/treasuryFinder.js +0 -10
  465. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/AaveProcessor.js +0 -26
  466. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/AnglesLiquid.js +0 -51
  467. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/AssetProcessor.js +0 -48
  468. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/AuraProcessor.js +0 -113
  469. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BEXRewardGaugeProcessor.js +0 -111
  470. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BalancerGaugeProcessor.js +0 -86
  471. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BalancerPoolProcessor.js +0 -101
  472. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BalancerV3PoolProcessor.js +0 -81
  473. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BeefyProcessor.js +0 -54
  474. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BunniV2Processor.js +0 -91
  475. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/CompoundProcessor.js +0 -37
  476. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/ERC4626Processor.js +0 -37
  477. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/EnzymeProcessor.js +0 -52
  478. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/EqualizerGaugeProcessor.js +0 -54
  479. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/EulerBorrowProcessor.js +0 -51
  480. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/EulerLendProcessor.js +0 -58
  481. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/FluidProcessor.js +0 -37
  482. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/FraxProcessor.js +0 -42
  483. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/GammaALMProcessor.js +0 -52
  484. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/GammaProcessor.js +0 -67
  485. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/GearboxProcessor.js +0 -58
  486. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/HanjiVaultProcessor.js +0 -63
  487. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/HoldStationProcessor.js +0 -35
  488. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/HourglassProcessor.js +0 -35
  489. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/MaverickBPProcessor.js +0 -78
  490. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/MetamorphoProcessor.js +0 -48
  491. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/NoLinkVaultProcessor.js +0 -82
  492. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/PendleProcessor.js +0 -30
  493. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/PendleYTProcessor.js +0 -30
  494. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/RadiantProcessor.js +0 -59
  495. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/RfxProcessor.js +0 -71
  496. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/Satlayer.js +0 -28
  497. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/SpectraProcessor.js +0 -42
  498. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/SpectraYTProcessor.js +0 -40
  499. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/SpliceProcessor.js +0 -37
  500. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/StabilityProcessor.js +0 -30
  501. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/SturdySiloProcessor.js +0 -38
  502. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/TempestVaultProcessor.js +0 -83
  503. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/TemplateProcessor.js +0 -40
  504. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/TorosProcessor.js +0 -34
  505. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/UniswapProcessor.js +0 -72
  506. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/VicunaProcessor.js +0 -36
  507. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/WoofiProcessor.js +0 -41
  508. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/ZkSwapThreePoolProcessor.js +0 -60
  509. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/curveNPoolProcessor.js +0 -102
  510. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/curveProcessor.js +0 -85
  511. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/processorMapping.js +0 -159
  512. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/stakedCurveProcessor.js +0 -88
  513. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/xU308Processor.js +0 -42
  514. package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesPrices.js +0 -28
  515. package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesRound1.js +0 -353
  516. package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesRound2.js +0 -22
  517. package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesRound3.js +0 -22
  518. package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesRound4.js +0 -22
  519. package/dist/src/engine/deprecated/erc20SubTypeProcessors/tokenTypeStruct.js +0 -1
  520. package/dist/src/engine/deprecated/erc20SubTypeProcessors/tokenTypeToProtocolAndAction.js +0 -155
  521. package/dist/src/engine/implementations/Ajna/metadata.js +0 -59
  522. package/dist/src/engine/implementations/Ajna/tvl.js +0 -91
  523. package/dist/src/engine/implementations/Ambient/metadata.js +0 -36
  524. package/dist/src/engine/implementations/Ambient/tvl.js +0 -178
  525. package/dist/src/engine/implementations/Badger/metadata.js +0 -31
  526. package/dist/src/engine/implementations/Clamm/metadata.js +0 -176
  527. package/dist/src/engine/implementations/Compound/metadata.js +0 -23
  528. package/dist/src/engine/implementations/CompoundV3/metadata.js +0 -23
  529. package/dist/src/engine/implementations/Default/metadata.js +0 -12
  530. package/dist/src/engine/implementations/Dolomite/metadata.js +0 -20
  531. package/dist/src/engine/implementations/EigenLayer/metadata.js +0 -12
  532. package/dist/src/engine/implementations/EigenLayer/tvl.js +0 -60
  533. package/dist/src/engine/implementations/Encompassing/metadata.js +0 -43
  534. package/dist/src/engine/implementations/Erc20/metadata.js +0 -64
  535. package/dist/src/engine/implementations/Erc20/subTypes/detect.js +0 -170
  536. package/dist/src/engine/implementations/Erc20/subTypes/factories.js +0 -69
  537. package/dist/src/engine/implementations/Erc20/subTypes/implementations/aave/metadata.js +0 -46
  538. package/dist/src/engine/implementations/Erc20/subTypes/implementations/aave/tvl.js +0 -51
  539. package/dist/src/engine/implementations/Erc20/subTypes/implementations/euler/metadata.js +0 -35
  540. package/dist/src/engine/implementations/Erc20/subTypes/implementations/euler/tvl.js +0 -59
  541. package/dist/src/engine/implementations/Erc20/subTypes/implementations/gearbox/metadata.js +0 -21
  542. package/dist/src/engine/implementations/Erc20/subTypes/implementations/gearbox/tvl.js +0 -46
  543. package/dist/src/engine/implementations/Erc20/subTypes/implementations/hypurrfiIsolatedMarket/metadata.js +0 -40
  544. package/dist/src/engine/implementations/Erc20/subTypes/implementations/hypurrfiIsolatedMarket/tvl.js +0 -57
  545. package/dist/src/engine/implementations/Erc20/subTypes/implementations/lendleVaults/metadata.js +0 -20
  546. package/dist/src/engine/implementations/Erc20/subTypes/implementations/lendleVaults/tvl.js +0 -52
  547. package/dist/src/engine/implementations/Erc20/subTypes/implementations/pino/metadata.js +0 -38
  548. package/dist/src/engine/implementations/Erc20/subTypes/implementations/pino/tvl.js +0 -83
  549. package/dist/src/engine/implementations/Erc20/subTypes/implementations/termmax/metadata.js +0 -24
  550. package/dist/src/engine/implementations/Erc20/subTypes/implementations/termmax/tvl.js +0 -69
  551. package/dist/src/engine/implementations/Erc20/subTypes/implementations/uniswapV2/metadata.js +0 -65
  552. package/dist/src/engine/implementations/Erc20/subTypes/implementations/uniswapV2/tvl.js +0 -94
  553. package/dist/src/engine/implementations/Erc20/subTypes/index.js +0 -119
  554. package/dist/src/engine/implementations/Erc20/tvl.js +0 -99
  555. package/dist/src/engine/implementations/Erc20Snapshot/metadata.js +0 -11
  556. package/dist/src/engine/implementations/Erc721/metadata.js +0 -13
  557. package/dist/src/engine/implementations/ErcMultiToken/metadata.js +0 -63
  558. package/dist/src/engine/implementations/EventBased/metadata.js +0 -181
  559. package/dist/src/engine/implementations/Hyperdrive/metadata.js +0 -29
  560. package/dist/src/engine/implementations/Invalid/metadata.js +0 -10
  561. package/dist/src/engine/implementations/Ion/metadata.js +0 -16
  562. package/dist/src/engine/implementations/JsonAirdrop/metadata.js +0 -43
  563. package/dist/src/engine/implementations/Locker/metadata.js +0 -36
  564. package/dist/src/engine/implementations/Locker/tvl.js +0 -26
  565. package/dist/src/engine/implementations/Morpho/metadata.js +0 -63
  566. package/dist/src/engine/implementations/MultiLog/metadata.js +0 -36
  567. package/dist/src/engine/implementations/MultiLog/tvl.js +0 -59
  568. package/dist/src/engine/implementations/Radiant/metadata.js +0 -33
  569. package/dist/src/engine/implementations/Silo/metadata.js +0 -20
  570. package/dist/src/engine/implementations/UniswapV4/metadata.js +0 -36
  571. package/dist/src/engine/implementations/UniswapV4/tvl.js +0 -158
  572. package/dist/src/engine/implementations/Vest/metadata.js +0 -13
  573. package/dist/src/engine/metadata/factory.js +0 -76
  574. package/dist/src/engine/tvl/factory.js +0 -87
  575. package/dist/src/engine/tvl/logStates.js +0 -106
  576. package/dist/src/errors/BadRequest.error.js +0 -7
  577. package/dist/src/errors/Conflict.error.js +0 -7
  578. package/dist/src/errors/HttpError.js +0 -17
  579. package/dist/src/errors/InvalidParameter.error.js +0 -7
  580. package/dist/src/errors/NotFound.error.js +0 -12
  581. package/dist/src/errors/Opportunity.error.js +0 -11
  582. package/dist/src/errors/UnableToFindPrice.error.js +0 -7
  583. package/dist/src/errors/Unauthorized.error.js +0 -7
  584. package/dist/src/errors/VoidString.error.js +0 -7
  585. package/dist/src/errors/index.js +0 -6
  586. package/dist/src/guards/BackOffice.guard.js +0 -10
  587. package/dist/src/guards/Engine.guard.js +0 -9
  588. package/dist/src/guards/TokenAuth.guard.js +0 -10
  589. package/dist/src/guards/VerifyJwt.guard.js +0 -13
  590. package/dist/src/hooks/checkQueryAddressValidity.js +0 -7
  591. package/dist/src/hooks/checkQueryChainIdValidity.js +0 -7
  592. package/dist/src/index.js +0 -113
  593. package/dist/src/jobs/dynamic-data.js +0 -159
  594. package/dist/src/jobs/pendings.js +0 -238
  595. package/dist/src/jobs/prices.js +0 -10
  596. package/dist/src/jobs/reward-breakdowns.js +0 -163
  597. package/dist/src/jobs/rewards.js +0 -112
  598. package/dist/src/jobs/set-dungeon-keeper.js +0 -90
  599. package/dist/src/jobs/update-analytics.js +0 -548
  600. package/dist/src/jobs/update-dynamic-data.js +0 -57
  601. package/dist/src/jobs/update-euler-vaults.js +0 -18
  602. package/dist/src/jobs/update-rpc-calls-cache.js +0 -30
  603. package/dist/src/jobs/update-uniswap-v4-pools.js +0 -15
  604. package/dist/src/libs/computeFee.js +0 -34
  605. package/dist/src/libs/deprecated-merklv3/index.js +0 -183
  606. package/dist/src/libs/getTokensList.js +0 -19
  607. package/dist/src/libs/merklChainData.js +0 -116
  608. package/dist/src/libs/parse/marketsWithCache.js +0 -8
  609. package/dist/src/libs/positions/EigenLayer/index.js +0 -54
  610. package/dist/src/libs/positions/ajna/index.js +0 -107
  611. package/dist/src/libs/positions/badger/index.js +0 -80
  612. package/dist/src/libs/positions/clamm/index.js +0 -412
  613. package/dist/src/libs/positions/clamm/thegraph/fetchAlmPositions.js +0 -36
  614. package/dist/src/libs/positions/clamm/thegraph/fetchAmmPositions.js +0 -36
  615. package/dist/src/libs/positions/clamm/thegraph/fetchFarmedPositions.js +0 -42
  616. package/dist/src/libs/positions/clamm/thegraph/index.js +0 -163
  617. package/dist/src/libs/positions/compound/index.js +0 -91
  618. package/dist/src/libs/positions/dolomite/index.js +0 -51
  619. package/dist/src/libs/positions/erc20/index.js +0 -55
  620. package/dist/src/libs/positions/euler/index.js +0 -56
  621. package/dist/src/libs/positions/index.js +0 -56
  622. package/dist/src/libs/positions/morpho/index.js +0 -177
  623. package/dist/src/libs/positions/prepareFetch.js +0 -392
  624. package/dist/src/libs/positions/silo/index.js +0 -68
  625. package/dist/src/libs/positions/types.js +0 -1
  626. package/dist/src/libs/staticCampaigns.js +0 -15
  627. package/dist/src/libs/tokens/allowances.js +0 -18
  628. package/dist/src/libs/tokens/balances.js +0 -128
  629. package/dist/src/libs/tokens/tokenInfo.js +0 -22
  630. package/dist/src/modules/v4/accounting/accounting.controller.js +0 -61
  631. package/dist/src/modules/v4/accounting/accounting.model.js +0 -32
  632. package/dist/src/modules/v4/accounting/accounting.repository.js +0 -154
  633. package/dist/src/modules/v4/accounting/accounting.service.js +0 -107
  634. package/dist/src/modules/v4/airflow/airflow.service.js +0 -20
  635. package/dist/src/modules/v4/apr/apr.model.js +0 -13
  636. package/dist/src/modules/v4/apr/apr.service.js +0 -52
  637. package/dist/src/modules/v4/authentication/authentication.controller.js +0 -23
  638. package/dist/src/modules/v4/authentication/authentication.model.js +0 -6
  639. package/dist/src/modules/v4/authentication/authentication.service.js +0 -31
  640. package/dist/src/modules/v4/blacklist/blacklist.controller.js +0 -42
  641. package/dist/src/modules/v4/blacklist/blacklist.model.js +0 -13
  642. package/dist/src/modules/v4/blacklist/blacklist.repository.js +0 -50
  643. package/dist/src/modules/v4/blacklist/blacklist.service.js +0 -31
  644. package/dist/src/modules/v4/boost/boost.controller.js +0 -15
  645. package/dist/src/modules/v4/boost/boost.model.js +0 -14
  646. package/dist/src/modules/v4/boost/boost.service.js +0 -20
  647. package/dist/src/modules/v4/bucket/bucket.model.js +0 -85
  648. package/dist/src/modules/v4/bucket/bucket.service.js +0 -178
  649. package/dist/src/modules/v4/cache/cache.model.js +0 -14
  650. package/dist/src/modules/v4/cache/cache.repository.js +0 -22
  651. package/dist/src/modules/v4/cache/cache.service.js +0 -59
  652. package/dist/src/modules/v4/campaign/campaign.controller.js +0 -174
  653. package/dist/src/modules/v4/campaign/campaign.model.js +0 -140
  654. package/dist/src/modules/v4/campaign/campaign.repository.js +0 -535
  655. package/dist/src/modules/v4/campaign/campaign.service.js +0 -455
  656. package/dist/src/modules/v4/campaign/campaign.test.controller.js +0 -127
  657. package/dist/src/modules/v4/chain/chain.controller.js +0 -44
  658. package/dist/src/modules/v4/chain/chain.model.js +0 -36
  659. package/dist/src/modules/v4/chain/chain.repository.js +0 -79
  660. package/dist/src/modules/v4/chain/chain.service.js +0 -55
  661. package/dist/src/modules/v4/chainInteraction/chainInteraction.service.js +0 -4
  662. package/dist/src/modules/v4/claims/claims.controller.js +0 -19
  663. package/dist/src/modules/v4/claims/claims.model.js +0 -1
  664. package/dist/src/modules/v4/claims/claims.repository.js +0 -39
  665. package/dist/src/modules/v4/claims/claims.service.js +0 -40
  666. package/dist/src/modules/v4/coingecko/coingecko.model.js +0 -1
  667. package/dist/src/modules/v4/coingecko/coingecko.repository.js +0 -9
  668. package/dist/src/modules/v4/coingecko/coingecko.service.js +0 -65
  669. package/dist/src/modules/v4/computedValue/computedValue.controller.js +0 -46
  670. package/dist/src/modules/v4/computedValue/computedValue.model.js +0 -30
  671. package/dist/src/modules/v4/computedValue/computedValue.repository.js +0 -48
  672. package/dist/src/modules/v4/computedValue/computedValue.service.js +0 -23
  673. package/dist/src/modules/v4/creator/creator.controller.js +0 -43
  674. package/dist/src/modules/v4/creator/creator.model.js +0 -42
  675. package/dist/src/modules/v4/creator/creator.repository.js +0 -69
  676. package/dist/src/modules/v4/creator/creator.service.js +0 -92
  677. package/dist/src/modules/v4/dynamicData/dynamicData.model.js +0 -56
  678. package/dist/src/modules/v4/dynamicData/dynamicData.service.js +0 -263
  679. package/dist/src/modules/v4/enso/enso.model.js +0 -147
  680. package/dist/src/modules/v4/enso/enso.service.js +0 -116
  681. package/dist/src/modules/v4/explorer/explorer.controller.js +0 -13
  682. package/dist/src/modules/v4/explorer/explorer.model.js +0 -8
  683. package/dist/src/modules/v4/explorer/explorer.repository.js +0 -23
  684. package/dist/src/modules/v4/explorer/explorer.service.js +0 -24
  685. package/dist/src/modules/v4/icon/icon.model.js +0 -1
  686. package/dist/src/modules/v4/icon/icon.service.js +0 -16
  687. package/dist/src/modules/v4/interaction/interaction.controller.js +0 -45
  688. package/dist/src/modules/v4/interaction/interaction.model.js +0 -25
  689. package/dist/src/modules/v4/interaction/interaction.service.js +0 -95
  690. package/dist/src/modules/v4/kyberzap/kyberzap.model.js +0 -83
  691. package/dist/src/modules/v4/kyberzap/kyberzap.service.js +0 -176
  692. package/dist/src/modules/v4/liquidity/implementations/AjnaPositionFetcher.js +0 -90
  693. package/dist/src/modules/v4/liquidity/implementations/BadgerPositionFetcher.js +0 -69
  694. package/dist/src/modules/v4/liquidity/implementations/ClammPositionFetcher.js +0 -61
  695. package/dist/src/modules/v4/liquidity/implementations/DolomitePositionFetcher.js +0 -45
  696. package/dist/src/modules/v4/liquidity/implementations/ERC20PositionFetcher.js +0 -47
  697. package/dist/src/modules/v4/liquidity/implementations/EulerPositionFetcher.js +0 -40
  698. package/dist/src/modules/v4/liquidity/liquidity.controller.js +0 -16
  699. package/dist/src/modules/v4/liquidity/liquidity.model.js +0 -5
  700. package/dist/src/modules/v4/liquidity/liquidity.repository.js +0 -6
  701. package/dist/src/modules/v4/liquidity/liquidity.service.js +0 -34
  702. package/dist/src/modules/v4/merklRoot/merklRoot.controller.js +0 -31
  703. package/dist/src/modules/v4/merklRoot/merklRoot.model.js +0 -12
  704. package/dist/src/modules/v4/merklRoot/merklRoot.repository.js +0 -56
  705. package/dist/src/modules/v4/merklRoot/merklRoot.service.js +0 -48
  706. package/dist/src/modules/v4/opportunity/opportunity.controller.js +0 -189
  707. package/dist/src/modules/v4/opportunity/opportunity.converter.js +0 -174
  708. package/dist/src/modules/v4/opportunity/opportunity.model.js +0 -132
  709. package/dist/src/modules/v4/opportunity/opportunity.repository.js +0 -515
  710. package/dist/src/modules/v4/opportunity/opportunity.service.js +0 -380
  711. package/dist/src/modules/v4/opportunity/transform-id.pipe.js +0 -6
  712. package/dist/src/modules/v4/opportunity/validate-id.pipe.js +0 -12
  713. package/dist/src/modules/v4/price/price.controller.js +0 -56
  714. package/dist/src/modules/v4/price/price.model.js +0 -12
  715. package/dist/src/modules/v4/price/price.repository.js +0 -22
  716. package/dist/src/modules/v4/price/price.service.js +0 -63
  717. package/dist/src/modules/v4/prisma/index.js +0 -1
  718. package/dist/src/modules/v4/programPayload/programPayload.controller.js +0 -85
  719. package/dist/src/modules/v4/programPayload/programPayload.model.js +0 -179
  720. package/dist/src/modules/v4/programPayload/programPayload.repository.js +0 -7567
  721. package/dist/src/modules/v4/programPayload/programPayload.service.js +0 -240
  722. package/dist/src/modules/v4/protocol/protocol.controller.js +0 -42
  723. package/dist/src/modules/v4/protocol/protocol.model.js +0 -186
  724. package/dist/src/modules/v4/protocol/protocol.repository.js +0 -175
  725. package/dist/src/modules/v4/protocol/protocol.service.js +0 -73
  726. package/dist/src/modules/v4/referral/referral.controller.js +0 -25
  727. package/dist/src/modules/v4/referral/referral.model.js +0 -12
  728. package/dist/src/modules/v4/referral/referral.service.js +0 -171
  729. package/dist/src/modules/v4/reward/reward.controller.js +0 -140
  730. package/dist/src/modules/v4/reward/reward.converter.js +0 -124
  731. package/dist/src/modules/v4/reward/reward.model.js +0 -153
  732. package/dist/src/modules/v4/reward/reward.repository.js +0 -350
  733. package/dist/src/modules/v4/reward/reward.service.js +0 -406
  734. package/dist/src/modules/v4/router.js +0 -93
  735. package/dist/src/modules/v4/status/status.controller.js +0 -68
  736. package/dist/src/modules/v4/status/status.model.js +0 -34
  737. package/dist/src/modules/v4/status/status.repository.js +0 -146
  738. package/dist/src/modules/v4/status/status.service.js +0 -150
  739. package/dist/src/modules/v4/token/token.controller.js +0 -118
  740. package/dist/src/modules/v4/token/token.model.js +0 -87
  741. package/dist/src/modules/v4/token/token.repository.js +0 -192
  742. package/dist/src/modules/v4/token/token.service.js +0 -410
  743. package/dist/src/modules/v4/tracer/tracer.service.js +0 -30
  744. package/dist/src/modules/v4/turtle/turtle.controller.js +0 -20
  745. package/dist/src/modules/v4/turtle/turtle.repository.js +0 -40
  746. package/dist/src/modules/v4/turtle/turtle.service.js +0 -28
  747. package/dist/src/modules/v4/tvl/tvl.model.js +0 -13
  748. package/dist/src/modules/v4/tvl/tvl.service.js +0 -63
  749. package/dist/src/modules/v4/uniswap/uniswap.controller.js +0 -100
  750. package/dist/src/modules/v4/uniswap/uniswap.model.js +0 -46
  751. package/dist/src/modules/v4/uniswap/uniswap.repository.js +0 -12
  752. package/dist/src/modules/v4/uniswap/uniswap.service.js +0 -245
  753. package/dist/src/modules/v4/user/user.controller.js +0 -77
  754. package/dist/src/modules/v4/user/user.model.js +0 -66
  755. package/dist/src/modules/v4/user/user.repository.js +0 -41
  756. package/dist/src/modules/v4/user/user.service.js +0 -102
  757. package/dist/src/plugins/error-handling.plugin.js +0 -34
  758. package/dist/src/routes/v1/allowances.js +0 -115
  759. package/dist/src/routes/v1/balances.js +0 -25
  760. package/dist/src/routes/v1/prices.js +0 -9
  761. package/dist/src/routes/v1/router.js +0 -6
  762. package/dist/src/routes/v1/tokens.js +0 -17
  763. package/dist/src/routes/v2/merkl.js +0 -13
  764. package/dist/src/routes/v2/router.js +0 -3
  765. package/dist/src/routes/v3/app.js +0 -43
  766. package/dist/src/routes/v3/blacklist.js +0 -19
  767. package/dist/src/routes/v3/campaign/delay.js +0 -81
  768. package/dist/src/routes/v3/campaignClaims.js +0 -29
  769. package/dist/src/routes/v3/campaignUnclaimed.js +0 -28
  770. package/dist/src/routes/v3/campaigns.js +0 -136
  771. package/dist/src/routes/v3/campaignsForMainParameter.js +0 -33
  772. package/dist/src/routes/v3/campaignsRewardsReport.js +0 -48
  773. package/dist/src/routes/v3/claims.js +0 -16
  774. package/dist/src/routes/v3/compoundV2.js +0 -9
  775. package/dist/src/routes/v3/createCampaign.js +0 -66
  776. package/dist/src/routes/v3/dolomite.js +0 -12
  777. package/dist/src/routes/v3/euler.js +0 -52
  778. package/dist/src/routes/v3/fetch.js +0 -27
  779. package/dist/src/routes/v3/health.js +0 -13
  780. package/dist/src/routes/v3/lostyield.js +0 -101
  781. package/dist/src/routes/v3/merkl.js +0 -119
  782. package/dist/src/routes/v3/morphoMarkets.js +0 -27
  783. package/dist/src/routes/v3/morphoVaults.js +0 -22
  784. package/dist/src/routes/v3/multiChainPositions.js +0 -70
  785. package/dist/src/routes/v3/opportunity.js +0 -28
  786. package/dist/src/routes/v3/overview.js +0 -72
  787. package/dist/src/routes/v3/parse.js +0 -23
  788. package/dist/src/routes/v3/payload.js +0 -40
  789. package/dist/src/routes/v3/poolInfo.js +0 -88
  790. package/dist/src/routes/v3/positions.js +0 -62
  791. package/dist/src/routes/v3/radiant.js +0 -26
  792. package/dist/src/routes/v3/recipients.js +0 -29
  793. package/dist/src/routes/v3/rewards.js +0 -36
  794. package/dist/src/routes/v3/rewardsReport.js +0 -40
  795. package/dist/src/routes/v3/router.js +0 -70
  796. package/dist/src/routes/v3/silo.js +0 -20
  797. package/dist/src/routes/v3/token.js +0 -24
  798. package/dist/src/routes/v3/twt/participants.js +0 -63
  799. package/dist/src/routes/v3/uniswapv4.js +0 -29
  800. package/dist/src/routes/v3/updates.js +0 -47
  801. package/dist/src/routes/v3/userRewards.js +0 -63
  802. package/dist/src/scripts/fill-coingecko-data.js +0 -3
  803. package/dist/src/scripts/fill-descriptions.js +0 -101
  804. package/dist/src/scripts/fill-unknown-tokens.js +0 -58
  805. package/dist/src/scripts/reparse-opportunities.js +0 -75
  806. package/dist/src/types/external/spectraAPI.js +0 -1
  807. package/dist/src/types/index.js +0 -1
  808. package/dist/src/utils/TailSampler.js +0 -23
  809. package/dist/src/utils/bigintToString.js +0 -20
  810. package/dist/src/utils/caseChanges.js +0 -15
  811. package/dist/src/utils/decodeCalls.js +0 -340
  812. package/dist/src/utils/encodeCalls.js +0 -506
  813. package/dist/src/utils/error.js +0 -114
  814. package/dist/src/utils/execute.js +0 -117
  815. package/dist/src/utils/generateCardName.js +0 -209
  816. package/dist/src/utils/generic.js +0 -43
  817. package/dist/src/utils/hashArray.js +0 -7
  818. package/dist/src/utils/lastBlockBefore.js +0 -78
  819. package/dist/src/utils/logger.js +0 -52
  820. package/dist/src/utils/parseDistributionType.js +0 -16
  821. package/dist/src/utils/pricer.js +0 -189
  822. package/dist/src/utils/prices/chainlinkRead.js +0 -8
  823. package/dist/src/utils/prices/curveVirtualPrice.js +0 -7
  824. package/dist/src/utils/prices/getDQUICK.js +0 -8
  825. package/dist/src/utils/prices/priceFetcherFactory.js +0 -32
  826. package/dist/src/utils/prices/priceService.js +0 -274
  827. package/dist/src/utils/prices/services/OnChainCallService.js +0 -38
  828. package/dist/src/utils/prices/services/coinGeckoService.js +0 -63
  829. package/dist/src/utils/prices/services/defillamaService.js +0 -53
  830. package/dist/src/utils/prices/services/dexScreenerService.js +0 -62
  831. package/dist/src/utils/prices/services/erc4626Service.js +0 -38
  832. package/dist/src/utils/prices/services/getERC4626.js +0 -11
  833. package/dist/src/utils/prices/services/indexCoopService.js +0 -55
  834. package/dist/src/utils/prices/services/priceFetcher.js +0 -1
  835. package/dist/src/utils/prices/uniV2Price.js +0 -40
  836. package/dist/src/utils/providers.js +0 -37
  837. package/dist/src/utils/queries/allCampaigns.js +0 -12
  838. package/dist/src/utils/sanitizeChain.js +0 -6
  839. package/dist/src/utils/stryke.js +0 -4
  840. package/dist/src/utils/throw.js +0 -55
  841. package/dist/tsconfig.package.tsbuildinfo +0 -1
@@ -1,27 +0,0 @@
1
- // TODO: Enhance APR display for non-dollar denominations when front-end is ready.
2
- // This should handle cases where one or both token price are unavailable, showing the APR as a direct ratio
3
- // (e.g., X reward tokens per Y target tokens) instead of dollar values.
4
- export function getFixedApr(campaignParameters, priceRewardToken, priceTargetToken) {
5
- const { targetTokenPricing, rewardTokenPricing, apr: fixedApr } = campaignParameters.campaignParameters;
6
- const targetApr = Number(fixedApr);
7
- // Handle all pricing configurations
8
- if (targetTokenPricing && rewardTokenPricing) {
9
- // Case 1: Fixed $ amount of reward per $ of liquidity
10
- return targetApr * 100;
11
- }
12
- if (targetTokenPricing && !rewardTokenPricing) {
13
- // Case 2: Fixed # amount of reward per $ of liquidity
14
- // Return 0 if reward token price is invalid
15
- return !priceRewardToken ? 0 : targetApr * priceRewardToken * 100;
16
- }
17
- if (!targetTokenPricing && rewardTokenPricing) {
18
- // Case 3: Fixed $ amount of reward per # of liquidity
19
- // Return 0 if target token price is invalid
20
- return !priceTargetToken || priceTargetToken === 0 ? 0 : targetApr * (1 / priceTargetToken) * 100;
21
- }
22
- // Case 4: Fixed # amount of reward per # of liquidity
23
- // Return 0 if either price is invalid
24
- return !priceRewardToken || !priceTargetToken || priceTargetToken === 0
25
- ? 0
26
- : targetApr * (priceRewardToken / priceTargetToken) * 100;
27
- }
@@ -1,335 +0,0 @@
1
- import { TokenService } from "@/modules/v4/token/token.service";
2
- import { decodeCall } from "@/utils/decodeCalls";
3
- import { createCall } from "@/utils/encodeCalls";
4
- import { generateCardName } from "@/utils/generateCardName";
5
- import { BN2Number } from "@sdk";
6
- import { tokenTypeToProtocolAndAction } from "./tokenTypeToProtocolAndAction";
7
- export var Round;
8
- (function (Round) {
9
- Round["one"] = "round1";
10
- Round["two"] = "round2";
11
- Round["three"] = "round3";
12
- Round["four"] = "round4";
13
- })(Round || (Round = {}));
14
- /**
15
- * Generic Processor to compute dynamic data of ERC20 tokens
16
- *
17
- * @params Input - Sets of value that will be passed from rounds to rounds in order to query the blockchain
18
- * @params DataRaw - Raw data output from the view function calls
19
- * @params Output - Final output of the processor
20
- */
21
- export class GenericProcessor {
22
- rounds = {
23
- round1: [],
24
- round2: [],
25
- round3: [],
26
- round4: [{ key: "totalSupply", call: "totalSupply", target: "tokenAddress" }],
27
- };
28
- stakingRounds = {
29
- round1: [
30
- { key: "lockNFT", call: "lockNFT", target: "stakingContract", optional: true },
31
- { key: "eip712DomainName", call: "eip712DomainName", target: "stakingContract", optional: true },
32
- { key: "stakingName", call: "name", target: "stakingContract", optional: true },
33
- { key: "stakingSymbol", call: "symbol", target: "stakingContract", optional: true },
34
- ],
35
- round2: [{ key: "stakingSymbol", call: "symbol", target: "lockNFT", optional: true }],
36
- round3: [],
37
- round4: [],
38
- };
39
- debug = false;
40
- processingRound1(_typeInfo) { }
41
- processingRound2(_typeInfo, _campaign) { }
42
- processingRound3(_typeInfo) { }
43
- processingRound4(_typeInfo) { }
44
- handleWhiteListBlacklistRound5(typeInfo, campaign) {
45
- const blacklistedSupplyBN = BigInt(typeInfo.blacklistedSupply);
46
- const totalSupplyBN = BigInt(typeInfo.totalSupply);
47
- const totalSupply = BN2Number(typeInfo.totalSupply, campaign.campaignParameters.decimalsTargetToken);
48
- const whitelistedSupply = BN2Number(typeInfo.whitelistedSupply, campaign.campaignParameters.decimalsTargetToken);
49
- const blacklistedSupply = BN2Number(typeInfo.blacklistedSupply, campaign.campaignParameters.decimalsTargetToken);
50
- let whitelistedSupplyTargetToken = whitelistedSupply
51
- ? whitelistedSupply
52
- : BN2Number(totalSupplyBN - blacklistedSupplyBN, campaign.campaignParameters.decimalsTargetToken);
53
- whitelistedSupplyTargetToken = whitelistedSupplyTargetToken ? whitelistedSupplyTargetToken : 0.00001;
54
- return {
55
- whitelistedSupplyTargetToken,
56
- totalSupply,
57
- blacklistedSupply,
58
- };
59
- }
60
- async processingRound5(_index, type, typeInfo, _calls, campaign, pricer) {
61
- const { whitelistedSupplyTargetToken, totalSupply, blacklistedSupply } = this.handleWhiteListBlacklistRound5(typeInfo, campaign);
62
- const priceTargetToken = await TokenService.getPrice({
63
- address: campaign.campaignParameters.targetToken,
64
- chainId: campaign.computeChainId,
65
- });
66
- const tvl = whitelistedSupplyTargetToken * priceTargetToken;
67
- return {
68
- protocol: typeInfo.protocol,
69
- type,
70
- whitelistedSupplyTargetToken,
71
- totalSupply,
72
- priceTargetToken,
73
- tvl,
74
- blacklistedSupply,
75
- cardName: generateCardName(type, typeInfo, campaign),
76
- tokensDisplay: [{ symbol: campaign.campaignParameters.symbolTargetToken, address: typeInfo.tokenAddress }],
77
- };
78
- }
79
- computeRound1(type, typeInfo) {
80
- typeInfo = { type, ...tokenTypeToProtocolAndAction[type], ...typeInfo };
81
- this.processingRound1(typeInfo);
82
- let calls = this.encodeNextRound(Round.one, type, typeInfo);
83
- if (typeInfo.isStaking === "true") {
84
- calls = calls.concat(this.encodeStakingNextRound(Round.one, type, typeInfo));
85
- }
86
- if (this.debug) {
87
- console.log("Round 1", {
88
- type: type,
89
- calls,
90
- typeInfo,
91
- });
92
- }
93
- return {
94
- type: type,
95
- calls,
96
- typeInfo,
97
- };
98
- }
99
- computeRound2(index, type, typeInfo, calls, campaign) {
100
- this.decodePreviousRound(Round.one, calls, typeInfo, type, index);
101
- if (typeInfo.isStaking === "true") {
102
- this.decodePreviousStakingRound(Round.one, calls, typeInfo, type, index + this.rounds.round1.length);
103
- }
104
- this.processingRound2(typeInfo, campaign);
105
- let nextCalls = this.encodeNextRound(Round.two, type, typeInfo);
106
- if (typeInfo.isStaking === "true") {
107
- nextCalls = nextCalls.concat(this.encodeStakingNextRound(Round.two, type, typeInfo));
108
- }
109
- if (this.debug) {
110
- console.log("Round 2", {
111
- type: type,
112
- calls: nextCalls,
113
- typeInfo,
114
- });
115
- }
116
- return {
117
- type: type,
118
- calls: nextCalls,
119
- typeInfo,
120
- };
121
- }
122
- computeRound3(index, type, typeInfo, calls) {
123
- this.decodePreviousRound(Round.two, calls, typeInfo, type, index);
124
- if (typeInfo.isStaking === "true") {
125
- this.decodePreviousStakingRound(Round.two, calls, typeInfo, type, index + this.rounds.round2.length);
126
- }
127
- this.processingRound3(typeInfo);
128
- let nextCalls = this.encodeNextRound(Round.three, type, typeInfo);
129
- if (typeInfo.isStaking === "true") {
130
- nextCalls = nextCalls.concat(this.encodeStakingNextRound(Round.three, type, typeInfo));
131
- }
132
- if (this.debug) {
133
- console.log("Round 3", {
134
- type: type,
135
- calls: nextCalls,
136
- typeInfo,
137
- });
138
- }
139
- return {
140
- type: type,
141
- calls: nextCalls,
142
- typeInfo,
143
- };
144
- }
145
- computeRound4(index, type, typeInfo, calls, campaign) {
146
- const blacklistedLiquidityCalls = this.generateBlackListCall(type, typeInfo, campaign);
147
- const whitelistedLiquidityCalls = this.generateWhitelistCall(type, typeInfo, campaign);
148
- this.decodePreviousRound(Round.three, calls, typeInfo, type, index);
149
- if (typeInfo.isStaking === "true") {
150
- this.decodePreviousStakingRound(Round.three, calls, typeInfo, type, index + this.rounds.round3.length);
151
- }
152
- this.processingRound4(typeInfo);
153
- let nextCalls = this.encodeNextRound(Round.four, type, typeInfo);
154
- if (typeInfo.isStaking === "true") {
155
- nextCalls = nextCalls.concat(this.encodeStakingNextRound(Round.four, type, typeInfo));
156
- }
157
- if (this.debug) {
158
- console.log("Round 4", {
159
- type: type,
160
- calls: nextCalls,
161
- typeInfo,
162
- });
163
- }
164
- return {
165
- type: type,
166
- calls: whitelistedLiquidityCalls.concat(blacklistedLiquidityCalls).concat(nextCalls),
167
- typeInfo: {
168
- ...typeInfo,
169
- },
170
- };
171
- }
172
- async computeRound5(index, type, typeInfo, calls, campaign, pricer) {
173
- typeInfo.whitelistedSupply = this.decodeListedSupply(index, campaign.campaignParameters.whitelist, calls);
174
- index = index + campaign.campaignParameters.whitelist.length;
175
- typeInfo.blacklistedSupply = this.decodeListedSupply(index, campaign.campaignParameters.blacklist, calls);
176
- index = index + campaign.campaignParameters.blacklist.length;
177
- this.decodePreviousRound(Round.four, calls, typeInfo, type, index);
178
- if (typeInfo.isStaking === "true") {
179
- this.decodePreviousStakingRound(Round.four, calls, typeInfo, type, index + this.rounds.round4.length);
180
- }
181
- const outputInfo = (await this.processingRound5(index, type, typeInfo, calls, campaign, pricer));
182
- if (this.debug) {
183
- console.log("Round 5", {
184
- type: type,
185
- calls: [],
186
- typeInfo: {
187
- ...outputInfo,
188
- },
189
- });
190
- }
191
- return {
192
- type: type,
193
- calls: [],
194
- typeInfo: {
195
- ...outputInfo,
196
- },
197
- };
198
- }
199
- generateWhitelistCall(type, typeInfo, campaign) {
200
- const whitelistedLiquidityCalls = [];
201
- if (campaign.campaignParameters.whitelist.length > 0) {
202
- for (const whitelistedAddress of campaign.campaignParameters.whitelist) {
203
- if (!campaign.campaignParameters.blacklist.includes(whitelistedAddress)) {
204
- whitelistedLiquidityCalls.push(createCall(typeInfo.tokenAddress, "balanceOf", type, whitelistedAddress));
205
- }
206
- }
207
- }
208
- return whitelistedLiquidityCalls;
209
- }
210
- generateBlackListCall(type, typeInfo, campaign) {
211
- const blacklistedLiquidityCalls = [];
212
- if (campaign.campaignParameters.blacklist.length > 0) {
213
- for (const blacklistedAddress of campaign.campaignParameters.blacklist) {
214
- blacklistedLiquidityCalls.push(createCall(typeInfo.tokenAddress, "balanceOf", type, blacklistedAddress));
215
- }
216
- }
217
- return blacklistedLiquidityCalls;
218
- }
219
- decodeListedSupply(index, list, calls) {
220
- if (list.length === 0) {
221
- return "0";
222
- }
223
- let listedSupply = 0n;
224
- for (const _ of list) {
225
- listedSupply += BigInt(decodeCall(calls, index++, "balanceOf"));
226
- }
227
- return listedSupply.toString();
228
- }
229
- decodeRound(round, index, calls, type, data) {
230
- round.map(({ key, call, optional }) => {
231
- if (optional) {
232
- try {
233
- const value = decodeCall(calls, index, call, type);
234
- index++;
235
- data[key] = value;
236
- }
237
- catch {
238
- index++;
239
- }
240
- }
241
- else {
242
- const value = decodeCall(calls, index, call, type);
243
- index++;
244
- data[key] = value;
245
- }
246
- });
247
- }
248
- decodePreviousRound(round, calls, data, type, index) {
249
- if (round === Round.one) {
250
- this.decodeRound(this.rounds.round1, index, calls, type, data);
251
- }
252
- if (round === Round.two) {
253
- this.decodeRound(this.rounds.round2, index, calls, type, data);
254
- }
255
- if (round === Round.three) {
256
- this.decodeRound(this.rounds.round3, index, calls, type, data);
257
- }
258
- if (round === Round.four) {
259
- this.decodeRound(this.rounds.round4, index, calls, type, data);
260
- }
261
- }
262
- decodePreviousStakingRound(round, calls, data, type, index) {
263
- if (round === Round.one) {
264
- this.decodeRound(this.stakingRounds.round1, index, calls, type, data);
265
- }
266
- if (round === Round.two) {
267
- this.decodeRound(this.stakingRounds.round2, index, calls, type, data);
268
- }
269
- if (round === Round.three) {
270
- this.decodeRound(this.stakingRounds.round3, index, calls, type, data);
271
- }
272
- if (round === Round.four) {
273
- this.decodeRound(this.stakingRounds.round4, index, calls, type, data);
274
- }
275
- }
276
- encodeRound(round, callInfo, type) {
277
- return round
278
- .map(({ call, target, metaData, optional }) => {
279
- if (optional && !callInfo[target]) {
280
- return [];
281
- }
282
- if (metaData) {
283
- return createCall(callInfo[target], call, type, callInfo[metaData]);
284
- }
285
- return createCall(callInfo[target], call, type);
286
- })
287
- .filter(call => Array.isArray(call) === false);
288
- }
289
- encodeNextRound(round, type, data) {
290
- const keys = Object.keys(data);
291
- const callInfo = keys.reduce((acc, key) => {
292
- if (data[key]) {
293
- acc[key] = data[key];
294
- }
295
- return acc;
296
- }, {});
297
- let calls = [];
298
- if (round === Round.one) {
299
- calls = this.encodeRound(this.rounds.round1, callInfo, type);
300
- }
301
- if (round === Round.two) {
302
- calls = this.encodeRound(this.rounds.round2, callInfo, type);
303
- }
304
- if (round === Round.three) {
305
- calls = this.encodeRound(this.rounds.round3, callInfo, type);
306
- }
307
- if (round === Round.four) {
308
- calls = this.encodeRound(this.rounds.round4, callInfo, type);
309
- }
310
- return calls;
311
- }
312
- encodeStakingNextRound(round, type, data) {
313
- const keys = Object.keys(data);
314
- const callInfo = keys.reduce((acc, key) => {
315
- if (data[key]) {
316
- acc[key] = data[key];
317
- }
318
- return acc;
319
- }, {});
320
- let calls = [];
321
- if (round === Round.one) {
322
- calls = this.encodeRound(this.stakingRounds.round1, callInfo, type);
323
- }
324
- if (round === Round.two) {
325
- calls = this.encodeRound(this.stakingRounds.round2, callInfo, type);
326
- }
327
- if (round === Round.three) {
328
- calls = this.encodeRound(this.stakingRounds.round3, callInfo, type);
329
- }
330
- if (round === Round.four) {
331
- calls = this.encodeRound(this.stakingRounds.round4, callInfo, type);
332
- }
333
- return calls;
334
- }
335
- }
@@ -1,13 +0,0 @@
1
- // https://splice-api-ad64cd01a25d.herokuapp.com/mode/markets?market=0x34cf9BF641bd5f34197060A3f3478a1f97f78f0a
2
- import axios from "axios";
3
- export async function fetchEulerVaultName(vaultAddress, chainId) {
4
- const url = `https://raw.githubusercontent.com/euler-xyz/euler-labels/refs/heads/master/${chainId}/vaults.json`;
5
- try {
6
- const response = await axios.get(url);
7
- const vaultName = response.data[vaultAddress].name;
8
- return vaultName;
9
- }
10
- catch {
11
- return null;
12
- }
13
- }
@@ -1,47 +0,0 @@
1
- import { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
2
- const factoryAddresses = {
3
- "0x420DD381b31aEf6683db6B902084cB0FFECe40Da": Erc20SubType.aerodrome, // Aerodrome Base Factory
4
- "0x31832f2a97Fd20664D76Cc421207669b55CE4BC0": Erc20SubType.velodrome, // Velodrome Mode Factory
5
- "0xc9Fe0C63Af9A39402e8a5514f9c43Af0322b665F": Erc20SubType.curve, // Curve Factory Fraxtal
6
- "0xc6C09471Ee39C7E30a067952FcC89c8922f9Ab53": Erc20SubType.curve, // Curve Optimism Factory
7
- "0x98EE851a00abeE0d95D08cF4CA2BdCE32aeaAF7F": Erc20SubType.curve, // Curve Mainnet Factory
8
- "0x9e6d12097339ddd5402FDD39fc0Ef86Eec54AB39": Erc20SubType.splice, // Splice Mode Factory
9
- "0x49Afe3abCf66CF09Fab86cb1139D8811C8afe56F": Erc20SubType.toros, // Toros Base Factory
10
- "0xAf39606bec181887951Ab6912Ac7EA216Bd6E4B4": Erc20SubType.akron, // Akron Arbitrum Factory
11
- "0xC3DC853dD716bd5754f421ef94fdCbac3902ab32": Erc20SubType.enzyme, // Enzyme ETH Factory
12
- "0x2e25271297537B8124b8f883a92fFd95C4032733": Erc20SubType.enzyme, // Enzyme Polygon Factory
13
- "0x71f6b49ae1558357bBb5A6074f1143c46cBcA03d": Erc20SubType.dragonswap, // DragonSwap SEI Factory
14
- "0x40be1cBa6C5B47cDF9da7f963B6F761F4C60627D": Erc20SubType.koi, // Silo Staking Factory
15
- "0xFDa619b6d20975be80A10332cD39b9a4b0FAa8BB": Erc20SubType.baseswap, // Poolside Factory
16
- "0xa19C51D91891D3DF7C13Ed22a2f89d328A82950f": Erc20SubType.fenix, // Fenix Factory
17
- "0x3a76e377ED58c8731F9DF3A36155942438744Ce3": Erc20SubType.zkswap, // ZKSwap Factory
18
- "0x6fcf753f2C67b83f7B09746Bbc4FA0047b35D050": Erc20SubType.pendle, // Pendle Factory
19
- "0x35A338522a435D46f77Be32C70E215B813D0e3aC": Erc20SubType.pendleYT, // Pendle YT Factory
20
- "0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73": Erc20SubType.pancakeswap, // PancakeSwap Factory BNB
21
- "0x70ee0A6DB4F5a2Dc4d9c0b57bE97B9987e75BAFD": Erc20SubType.pendleYT, // Pendle YT Factory
22
- "0x0582D93FD9c9d42f26bE5D86a5f75291F92102C2": Erc20SubType.pendleYT, // Pendle Factory
23
- "0xFeE31A6eC6eBefa0b5A594Bf5b1139e3c6fAA0fB": Erc20SubType.pendle, // Pendle Factory
24
- "0xFD513630F697A9C1731F196185fb9ebA6eAAc20B": Erc20SubType.cpmmGamma, // CPMMGAMMA Factory
25
- "0x9Ad6C38BE94206cA50bb0d90783181662f0Cfa10": Erc20SubType.traderJoe, // Trader Joe Factory
26
- "0x5Ea9DD3b6f042A34Df818C6c1324BC5A7c61427a": Erc20SubType.curve, // Curve Corn 2crypto Factory
27
- "0xd7E72f3615aa65b92A4DBdC211E296a35512988B": Erc20SubType.curveNPool, // Curve Corn Stableswap Factory
28
- "0x7Ca46A636b02D4aBC66883D7FF164bDE506DC66a": Erc20SubType.curveNPool, // Curve Corn 3crypto Factory
29
- "0xbC0797015fcFc47d9C1856639CaE50D0e69FbEE8": Erc20SubType.curveTricrypto, // Curve Arbitrum 3crypto Factory
30
- "0xA5961898870943c68037F6848d2D866Ed2016bcB": Erc20SubType.curveNPool, // Curve Base
31
- "0xB255D6A720BB7c39fee173cE22113397119cB930": Erc20SubType.katana, // Katana Ronin
32
- "0x29372c22459a4e373851798bFd6808e71EA34A71": Erc20SubType.punchswap, // Punchswap Flow EVM
33
- "0x724412C00059bf7d6ee7d4a1d0D5cd4de3ea1C48": Erc20SubType.hyperswap, // Hyperswap Factory HyperEVM
34
- "0x8909Dc15e40173Ff4699343b6eB8132c65e18eC6": Erc20SubType.uniswapv2, // Uniswap Factory Base
35
- "0xBA51AA60B3b8d9A36cc748a62Aa56801060183f8": Erc20SubType.pinto, // Pinto Factory on Base
36
- };
37
- export function getTypeFromFactoryAddress(address) {
38
- if (factoryAddresses[address]) {
39
- return factoryAddresses[address];
40
- }
41
- return Erc20SubType.unknown;
42
- }
43
- // Mapping of dispatcher to fund value calculator for enzyme
44
- export const enzymeFundValueCalculatorRouterMapping = {
45
- "0xC3DC853dD716bd5754f421ef94fdCbac3902ab32": "0x7c728cd0CfA92401E01A4849a01b57EE53F5b2b9", // ETH
46
- "0x2e25271297537B8124b8f883a92fFd95C4032733": "0xD70389a7d6171e1DBA6C3df4DB7331811fd93f08", // Polygon
47
- };
@@ -1,22 +0,0 @@
1
- import { BN2Number, ERC20Interface } from "@sdk";
2
- export function getBlacklistedSupply(index, decimals, blacklist, calls) {
3
- if (blacklist.length === 0) {
4
- return 0;
5
- }
6
- let blacklistedSupply = 0;
7
- for (const _ of blacklist) {
8
- blacklistedSupply += BN2Number(ERC20Interface.decodeFunctionResult("balanceOf", calls[index++])[0], decimals);
9
- }
10
- return blacklistedSupply;
11
- }
12
- export function getWhitelistedSupply(index, decimals, blacklist, whitelist, calls) {
13
- if (whitelist.length === 0) {
14
- return 0;
15
- }
16
- let start = index + blacklist.length;
17
- let whitelistedSupply = 0;
18
- for (const _ of whitelist) {
19
- whitelistedSupply += BN2Number(ERC20Interface.decodeFunctionResult("balanceOf", calls[start++])[0], decimals);
20
- }
21
- return whitelistedSupply;
22
- }
@@ -1,13 +0,0 @@
1
- import axios from "axios";
2
- export async function getCrossCurveTokenPrice(address) {
3
- const apiUrl = `https://api.crosscurve.fi/prices/${address}`;
4
- let price = 0;
5
- try {
6
- const response = await axios.get(apiUrl);
7
- if (response.data) {
8
- price = Number(response.data);
9
- }
10
- }
11
- catch (e) { }
12
- return price;
13
- }
@@ -1,30 +0,0 @@
1
- import { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
2
- import { ChainId } from "@sdk";
3
- const chainAddressToType = {
4
- [ChainId.CORN]: {
5
- "0xab3291b73a1087265e126e330cede0cfd4b8a693": Erc20SubType.curveNPool,
6
- "0xf024586aacaf91fc4f77468fa758df280b2c9cd4": Erc20SubType.curveNPool,
7
- "0x29c1b0baa9ac0182cf9f6ffceaf143f3ef3546a0": Erc20SubType.curveNPool,
8
- "0xebe423b5466f9675669b2a4521b6e9f852dd1f52": Erc20SubType.curveNPool,
9
- "0xb27d447cf1d211ca60676728ac28060ecfb90800": Erc20SubType.curveNPool,
10
- },
11
- [ChainId.MAINNET]: {
12
- "0x08c6F91e2B681FaF5e17227F2a44C307b3C1364C": Erc20SubType.veda,
13
- "0x5401b8620E5FB570064CA9114fd1e135fd77D57c": Erc20SubType.veda,
14
- "0xFE0C961A49E1aEe2AE2d842fE40157365C6d978f": Erc20SubType.veda,
15
- "0x42A03534DBe07077d705311854E3B6933dD6Af85": Erc20SubType.veda,
16
- "0x352180974C71f84a934953Cf49C4E538a6F9c997": Erc20SubType.veda,
17
- "0xeDa663610638E6557c27e2f4e973D3393e844E70": Erc20SubType.veda,
18
- "0xf0bb20865277aBd641a307eCe5Ee04E79073416C": Erc20SubType.veda,
19
- "0xFF94993fA7EA27Efc943645F95Adb36C1b81244b": Erc20SubType.gearbox,
20
- },
21
- [ChainId.BOB]: {
22
- "0x9998e05030Aee3Af9AD3df35A34F5C51e1628779": Erc20SubType.veda,
23
- },
24
- [ChainId.ETHERLINK]: {
25
- "0x79052Ab3C166D4899a1e0DD033aC3b379AF0B1fD": Erc20SubType.xU308,
26
- },
27
- };
28
- export function getTypeFromAddressChain(chain, token) {
29
- return chainAddressToType?.[chain]?.[token] ?? Erc20SubType.unknown;
30
- }
@@ -1 +0,0 @@
1
- export declare function fetchMetamorphoTvl(chainId: number, vaultAddress: string): Promise<number>;
@@ -1,35 +0,0 @@
1
- export async function fetchMetamorphoTvl(chainId, vaultAddress) {
2
- const metamorphoAPI = "https://blue-api.morpho.org/graphql";
3
- const query = `
4
- query {
5
- vaultByAddress(
6
- address: "${vaultAddress}"
7
- chainId: ${chainId}
8
- ) {
9
- state {
10
- allocation {
11
- supplyAssetsUsd
12
- }
13
- }
14
- }
15
- }
16
- `;
17
- const response = await fetch(metamorphoAPI, {
18
- method: "POST",
19
- headers: {
20
- "Content-Type": "application/json",
21
- },
22
- body: JSON.stringify({ query }),
23
- });
24
- const data = await response.json();
25
- let tvl = 0;
26
- if (!data?.data) {
27
- return tvl;
28
- }
29
- for (const allocation of data.data.vaultByAddress.state.allocation) {
30
- if (allocation.supplyAssetsUsd) {
31
- tvl += Number(allocation.supplyAssetsUsd);
32
- }
33
- }
34
- return tvl;
35
- }
@@ -1,16 +0,0 @@
1
- import { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
2
- const ownerAddresses = {
3
- "0xbF7E49483881C76487b0989CD7d9A8239B20CA41": Erc20SubType.curve_2,
4
- "0x42a856dbEBB97AbC1269EAB32f3bb40C15102819": Erc20SubType.satlayer,
5
- "0x4C911bf7A008C497719CBEb1a376f1cEc9e2c1d6": Erc20SubType.hanji_liquidity_vault_token,
6
- "0x6e9d701fB6478Ed5972a37886C2BA6C82a4cBb4C": Erc20SubType.gamma, // Gamma Bob owner
7
- "0x14fB20565a11b15cA2065A06740A0C46F5986eD0": Erc20SubType.lendle_vaults, // Gamma Alice owner
8
- "0xBebB5CEe893110cF477901AF7FA94E4840606421": Erc20SubType.termmax,
9
- "0x65955cac2B4a91BB19ee64df82Af6C18758c5FD6": Erc20SubType.hypurrfi_isolated_market,
10
- };
11
- export function getTypeFromOwnerAddress(address) {
12
- if (ownerAddresses[address]) {
13
- return ownerAddresses[address];
14
- }
15
- return Erc20SubType.unknown;
16
- }
@@ -1,23 +0,0 @@
1
- // https://splice-api-ad64cd01a25d.herokuapp.com/mode/markets?market=0x34cf9BF641bd5f34197060A3f3478a1f97f78f0a
2
- import axios from "axios";
3
- export async function fetchSpliceInformation(marketAddress) {
4
- const url = `https://splice-api-ad64cd01a25d.herokuapp.com/mode/markets?market=${marketAddress}`;
5
- try {
6
- const response = await axios.get(url);
7
- const market = response.data?.markets[0];
8
- return {
9
- symbolUnderlyingToken: market.token.symbol,
10
- address: market.token.address,
11
- priceTargetToken: market.pool.price,
12
- tvl: market.pool.tvl,
13
- };
14
- }
15
- catch (e) {
16
- return {
17
- symbolUnderlyingToken: "",
18
- priceTargetToken: 0,
19
- address: "",
20
- tvl: 1,
21
- };
22
- }
23
- }
@@ -1,10 +0,0 @@
1
- import { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
2
- const treasuryAddresses = {
3
- "0x3E965117A51186e41c2BB58b729A1e518A715e5F": Erc20SubType.gearbox, // Gearbox ETH Treasury
4
- };
5
- export function getTypeFromTreasuryAddress(address) {
6
- if (treasuryAddresses[address]) {
7
- return treasuryAddresses[address];
8
- }
9
- return Erc20SubType.unknown;
10
- }
@@ -1,26 +0,0 @@
1
- import { generateCardName } from "@/utils/generateCardName";
2
- import { GenericProcessor } from "../GenericProcessor";
3
- export class AaveProcessor extends GenericProcessor {
4
- rounds = {
5
- round1: [{ key: "underlying", call: "underlying", target: "tokenAddress" }],
6
- round2: [{ key: "symbolUnderlyingToken", call: "symbol", target: "underlying" }],
7
- round3: [],
8
- round4: [{ key: "totalSupply", call: "totalSupply", target: "tokenAddress" }],
9
- };
10
- // // override computeRound1(): void {}
11
- async processingRound5(_index, type, typeInfo, _calls, campaign, pricer) {
12
- const { whitelistedSupplyTargetToken, totalSupply, blacklistedSupply } = this.handleWhiteListBlacklistRound5(typeInfo, campaign);
13
- const priceTargetToken = (await pricer.get({ symbol: typeInfo.symbolUnderlyingToken })) ?? 0;
14
- const tvl = priceTargetToken * totalSupply;
15
- return {
16
- ...typeInfo,
17
- whitelistedSupplyTargetToken,
18
- tvl: tvl,
19
- priceTargetToken,
20
- cardName: generateCardName(type, typeInfo, campaign),
21
- blacklistedSupply,
22
- totalSupply,
23
- tokensDisplay: [{ symbol: typeInfo.symbolUnderlyingToken, address: typeInfo.underlying }],
24
- };
25
- }
26
- }
@@ -1,51 +0,0 @@
1
- import { generateCardName } from "@/utils/generateCardName";
2
- import { BN2Number } from "@sdk";
3
- import { GenericProcessor } from "../GenericProcessor";
4
- export class AnglesLiquidProcessor extends GenericProcessor {
5
- rounds = {
6
- round1: [],
7
- round2: [],
8
- round3: [],
9
- round4: [
10
- { key: "poolToken", call: "asset", target: "tokenAddress" },
11
- { key: "totalAssets", call: "totalAssets", target: "tokenAddress" },
12
- { key: "totalSupply", call: "totalSupply", target: "tokenAddress" },
13
- ],
14
- };
15
- // override computeRound1(): void {}
16
- async processingRound5(_index, type, typeInfo, _calls, campaign, pricer) {
17
- const { whitelistedSupplyTargetToken, totalSupply, blacklistedSupply } = this.handleWhiteListBlacklistRound5(typeInfo, campaign);
18
- const priceUnderlying = (await pricer.get({ symbol: "S" })) ?? 0;
19
- const tvl = priceUnderlying * BN2Number(typeInfo.totalAssets, 18);
20
- const priceTargetToken = totalSupply ? tvl / totalSupply : 0;
21
- const symbolUnderlyingToken = "S";
22
- return {
23
- ...typeInfo,
24
- tvl,
25
- whitelistedSupplyTargetToken,
26
- blacklistedSupply,
27
- priceTargetToken,
28
- totalSupply,
29
- symbolUnderlyingToken,
30
- totalAssets: typeInfo.totalAssets,
31
- poolToken: typeInfo.poolToken,
32
- cardName: generateCardName(type, typeInfo, campaign),
33
- tokensDisplay: [{ symbol: symbolUnderlyingToken, address: typeInfo.poolToken }],
34
- };
35
- }
36
- computeRound1(type, typeInfo) {
37
- return super.computeRound1(type, typeInfo);
38
- }
39
- computeRound2(index, type, typeInfo, calls) {
40
- return super.computeRound2(index, type, typeInfo, calls);
41
- }
42
- computeRound3(index, type, typeInfo, calls) {
43
- return super.computeRound3(index, type, typeInfo, calls);
44
- }
45
- computeRound4(index, type, typeInfo, calls, campaign) {
46
- return super.computeRound4(index, type, typeInfo, calls, campaign);
47
- }
48
- async computeRound5(index, type, typeInfo, calls, campaign, pricer) {
49
- return super.computeRound5(index, type, typeInfo, calls, campaign, pricer);
50
- }
51
- }