@gearbox-protocol/sdk 3.0.0-next.15 → 3.0.0-next.151

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 (650) hide show
  1. package/contracts/index.sol +34 -5
  2. package/lib/apy/auraAPY.d.ts +1 -0
  3. package/lib/apy/auraAPY.js +23 -0
  4. package/lib/apy/auraAbi.d.ts +17 -0
  5. package/lib/apy/auraAbi.js +26 -0
  6. package/lib/apy/convexAPY.d.ts +8 -7
  7. package/lib/apy/convexAPY.js +19 -8
  8. package/lib/apy/curveAPY.d.ts +57 -5
  9. package/lib/apy/curveAPY.js +112 -59
  10. package/lib/apy/defiLamaAPY.d.ts +3 -0
  11. package/lib/apy/defiLamaAPY.js +74 -0
  12. package/lib/apy/index.d.ts +3 -2
  13. package/lib/apy/index.js +9 -0
  14. package/lib/apy/lidoAPY.d.ts +4 -1
  15. package/lib/apy/lidoAPY.js +6 -3
  16. package/lib/apy/yearnAPY.d.ts +3 -3
  17. package/lib/apy/yearnAPY.js +15 -12
  18. package/lib/contracts/contractsRegister.d.ts +13 -6
  19. package/lib/contracts/contractsRegister.js +39 -2
  20. package/lib/core/assets.js +2 -2
  21. package/lib/core/creditAccount.d.ts +59 -16
  22. package/lib/core/creditAccount.js +176 -77
  23. package/lib/core/creditAccount.spec.js +639 -27
  24. package/lib/core/creditManager.d.ts +18 -5
  25. package/lib/core/creditManager.js +70 -12
  26. package/lib/core/creditSession.d.ts +24 -3
  27. package/lib/core/creditSession.js +32 -7
  28. package/lib/core/endpoint.d.ts +14 -0
  29. package/lib/core/endpoint.js +34 -0
  30. package/lib/core/eventOrTx.d.ts +2 -3
  31. package/lib/core/events.js +16 -16
  32. package/lib/core/gauge.d.ts +26 -0
  33. package/lib/core/gauge.js +63 -0
  34. package/lib/core/gaugeMath.d.ts +40 -0
  35. package/lib/core/gaugeMath.js +108 -0
  36. package/lib/core/gaugeMath.spec.js +388 -0
  37. package/lib/core/{pool/data.d.ts → pool.d.ts} +14 -8
  38. package/lib/core/{pool/data.js → pool.js} +38 -20
  39. package/lib/core/rewardClaimer.d.ts +4 -2
  40. package/lib/core/rewardConvex.d.ts +26 -9
  41. package/lib/core/rewardConvex.js +183 -56
  42. package/lib/core/rewardConvex.spec.js +32 -68
  43. package/lib/core/strategy.d.ts +18 -21
  44. package/lib/core/strategy.js +16 -36
  45. package/lib/core/trade.d.ts +11 -12
  46. package/lib/core/trade.js +36 -29
  47. package/lib/core/transactions.d.ts +97 -15
  48. package/lib/core/transactions.js +164 -117
  49. package/lib/index.d.ts +6 -2
  50. package/lib/index.js +6 -2
  51. package/lib/parsers/ERC20Parser.js +1 -1
  52. package/lib/parsers/aaveV2LendingPoolAdapterParser.d.ts +7 -0
  53. package/lib/parsers/aaveV2LendingPoolAdapterParser.js +21 -0
  54. package/lib/parsers/aaveV2WrappedATokenAdapterParser.d.ts +7 -0
  55. package/lib/parsers/aaveV2WrappedATokenAdapterParser.js +21 -0
  56. package/lib/parsers/abstractParser.d.ts +7 -5
  57. package/lib/parsers/abstractParser.js +4 -2
  58. package/lib/parsers/addressProviderParser.js +1 -1
  59. package/lib/parsers/balancerV2VaultParser.d.ts +7 -0
  60. package/lib/parsers/balancerV2VaultParser.js +34 -0
  61. package/lib/parsers/compoundV2CTokenAdapterParser.d.ts +7 -0
  62. package/lib/parsers/compoundV2CTokenAdapterParser.js +21 -0
  63. package/lib/parsers/convexBaseRewardPoolAdapterParser.js +13 -9
  64. package/lib/parsers/convexBaseRewardPoolAdapterParser.spec.js +9 -6
  65. package/lib/parsers/convexBoosterAdapterParser.js +7 -7
  66. package/lib/parsers/convexBoosterAdapterParser.spec.js +4 -4
  67. package/lib/parsers/convextRewardPoolParser.js +1 -1
  68. package/lib/parsers/creditFacadeParser.js +34 -7
  69. package/lib/parsers/creditFacadeParser.spec.js +2 -3
  70. package/lib/parsers/creditManagerParser.js +1 -1
  71. package/lib/parsers/curveAdapterParser.js +11 -12
  72. package/lib/parsers/curveAdapterParser.spec.js +6 -2
  73. package/lib/parsers/erc626AdapterParser.d.ts +7 -0
  74. package/lib/parsers/erc626AdapterParser.js +21 -0
  75. package/lib/parsers/lidoAdapterParser.js +4 -3
  76. package/lib/parsers/lidoAdapterParser.spec.js +2 -2
  77. package/lib/parsers/lidoSTETHParser.js +1 -1
  78. package/lib/parsers/poolParser.js +1 -1
  79. package/lib/parsers/priceOracleParser.js +1 -1
  80. package/lib/parsers/txParser.d.ts +17 -11
  81. package/lib/parsers/txParser.js +41 -4
  82. package/lib/parsers/uniV2AdapterParser.js +6 -5
  83. package/lib/parsers/uniV2AdapterParser.spec.js +3 -2
  84. package/lib/parsers/uniV3AdapterParser.js +10 -8
  85. package/lib/parsers/uniV3AdapterParser.spec.js +3 -2
  86. package/lib/parsers/wstETHAdapterParser.js +7 -5
  87. package/lib/parsers/wstETHAdapterParser.spec.js +4 -4
  88. package/lib/parsers/yearnAdapterParser.spec.js +4 -4
  89. package/lib/parsers/yearnV2AdapterParser.js +14 -4
  90. package/lib/pathfinder/balancerVault.d.ts +33 -0
  91. package/lib/pathfinder/balancerVault.js +59 -0
  92. package/lib/pathfinder/core.d.ts +8 -9
  93. package/lib/pathfinder/index.d.ts +4 -0
  94. package/lib/{core/pool → pathfinder}/index.js +4 -1
  95. package/lib/pathfinder/pathOptions.d.ts +2 -1
  96. package/lib/pathfinder/pathOptions.js +33 -11
  97. package/lib/pathfinder/pathOptions.spec.js +2 -2
  98. package/lib/pathfinder/pathfinder.d.ts +46 -19
  99. package/lib/pathfinder/pathfinder.js +67 -55
  100. package/lib/pathfinder/pathfinder.spec.js +22 -9
  101. package/lib/pathfinder/utils.d.ts +36 -0
  102. package/lib/pathfinder/utils.js +181 -0
  103. package/lib/pathfinder/v1/core.d.ts +16 -0
  104. package/lib/pathfinder/v1/pathfinderv1.d.ts +46 -0
  105. package/lib/pathfinder/v1/pathfinderv1.js +155 -0
  106. package/lib/pathfinder/v1/pathfinderv1.spec.d.ts +1 -0
  107. package/lib/pathfinder/v1/pathfinderv1.spec.js +39 -0
  108. package/lib/payload/creditAccount.d.ts +3 -4
  109. package/lib/payload/creditManager.d.ts +5 -1
  110. package/lib/payload/creditSession.d.ts +15 -1
  111. package/lib/payload/gauge.d.ts +12 -0
  112. package/lib/payload/pool.d.ts +6 -2
  113. package/lib/payload/token.d.ts +3 -1
  114. package/lib/tokens/tokenData.d.ts +5 -4
  115. package/lib/tokens/tokenData.js +21 -5
  116. package/lib/types/CalldataExtractor.d.ts +44 -0
  117. package/lib/types/ERC20.d.ts +198 -0
  118. package/lib/types/FarmAccounting.d.ts +27 -0
  119. package/lib/types/IAaveV2_LendingPoolAdapter.d.ts +171 -0
  120. package/lib/types/IAaveV2_WrappedATokenAdapter.d.ts +290 -0
  121. package/lib/types/IBalancerV2Vault.sol/IBalancerV2Vault.d.ts +308 -0
  122. package/lib/types/IBalancerV2Vault.sol/IBalancerV2VaultGetters.d.ts +112 -0
  123. package/lib/types/IBalancerV2Vault.sol/index.d.ts +2 -0
  124. package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter.d.ts +466 -0
  125. package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents.d.ts +43 -0
  126. package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions.d.ts +27 -0
  127. package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions.js +2 -0
  128. package/lib/types/IBalancerV2VaultAdapter.sol/index.d.ts +3 -0
  129. package/lib/types/IBalancerV2VaultAdapter.sol/index.js +2 -0
  130. package/lib/types/IBotListV3.sol/IBotListV3.d.ts +286 -0
  131. package/lib/types/IBotListV3.sol/IBotListV3.js +2 -0
  132. package/lib/types/IBotListV3.sol/IBotListV3Events.d.ts +103 -0
  133. package/lib/types/IBotListV3.sol/IBotListV3Events.js +2 -0
  134. package/lib/types/IBotListV3.sol/index.d.ts +2 -0
  135. package/lib/types/IBotListV3.sol/index.js +2 -0
  136. package/lib/types/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter.d.ts +216 -0
  137. package/lib/types/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter.js +2 -0
  138. package/lib/types/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions.d.ts +27 -0
  139. package/lib/types/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions.js +2 -0
  140. package/lib/types/ICompoundV2_CTokenAdapter.sol/index.d.ts +2 -0
  141. package/lib/types/ICompoundV2_CTokenAdapter.sol/index.js +2 -0
  142. package/lib/types/IContractsRegister.sol/IContractsRegister.d.ts +128 -0
  143. package/lib/types/IContractsRegister.sol/IContractsRegister.js +2 -0
  144. package/lib/types/IContractsRegister.sol/IContractsRegisterEvents.d.ts +50 -0
  145. package/lib/types/IContractsRegister.sol/IContractsRegisterEvents.js +2 -0
  146. package/lib/types/IContractsRegister.sol/index.d.ts +2 -0
  147. package/lib/types/IContractsRegister.sol/index.js +2 -0
  148. package/lib/types/IControllerTimelockV3.sol/IControllerTimelockV3.d.ts +504 -0
  149. package/lib/types/IControllerTimelockV3.sol/IControllerTimelockV3.js +2 -0
  150. package/lib/types/IControllerTimelockV3.sol/IControllerTimelockV3Events.d.ts +82 -0
  151. package/lib/types/IControllerTimelockV3.sol/IControllerTimelockV3Events.js +2 -0
  152. package/lib/types/IControllerTimelockV3.sol/index.d.ts +2 -0
  153. package/lib/types/IControllerTimelockV3.sol/index.js +2 -0
  154. package/lib/types/IConvexToken.d.ts +9 -1
  155. package/lib/types/IConvexV1BaseRewardPoolAdapter.d.ts +46 -30
  156. package/lib/types/{IConvexV1BoosterAdapter.d.ts → IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter.d.ts} +40 -21
  157. package/lib/types/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter.js +2 -0
  158. package/lib/types/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents.d.ts +43 -0
  159. package/lib/types/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents.js +2 -0
  160. package/lib/types/IConvexV1BoosterAdapter.sol/index.d.ts +2 -0
  161. package/lib/types/IConvexV1BoosterAdapter.sol/index.js +2 -0
  162. package/lib/types/ICreditFacadeV2.sol/ICreditFacadeV2Extended.d.ts +7 -11
  163. package/lib/types/ICreditFacadeV3.sol/ICreditFacadeV3.d.ts +52 -100
  164. package/lib/types/ICreditFacadeV3.sol/ICreditFacadeV3Events.d.ts +30 -32
  165. package/lib/types/ICreditFacadeV3Multicall.d.ts +68 -60
  166. package/lib/types/ICreditManagerV3.sol/ICreditManagerV3.d.ts +99 -79
  167. package/lib/types/ICurveV1Adapter.d.ts +41 -105
  168. package/lib/types/ICurveV1_2AssetsAdapter.d.ts +41 -105
  169. package/lib/types/ICurveV1_3AssetsAdapter.d.ts +41 -105
  170. package/lib/types/ICurveV1_4AssetsAdapter.d.ts +41 -105
  171. package/lib/types/IDaiLikePermit.d.ts +59 -0
  172. package/lib/types/IDaiLikePermit.js +2 -0
  173. package/lib/types/{IDataCompressorV2_10.d.ts → IDataCompressorV2_1.d.ts} +14 -43
  174. package/lib/types/IDataCompressorV2_1.js +2 -0
  175. package/lib/types/{IDataCompressorV3_00.d.ts → IDataCompressorV3.d.ts} +111 -44
  176. package/lib/types/IDataCompressorV3.js +2 -0
  177. package/lib/types/IDegenNFTV2.sol/IDegenNFTV2.d.ts +339 -0
  178. package/lib/types/IDegenNFTV2.sol/IDegenNFTV2.js +2 -0
  179. package/lib/types/IDegenNFTV2.sol/IDegenNFTV2Events.d.ts +61 -0
  180. package/lib/types/IDegenNFTV2.sol/IDegenNFTV2Events.js +2 -0
  181. package/lib/types/IDegenNFTV2.sol/IDegenNFTV2Exceptions.d.ts +27 -0
  182. package/lib/types/IDegenNFTV2.sol/IDegenNFTV2Exceptions.js +2 -0
  183. package/lib/types/IDegenNFTV2.sol/index.d.ts +3 -0
  184. package/lib/types/IDegenNFTV2.sol/index.js +2 -0
  185. package/lib/types/IERC165.d.ts +42 -0
  186. package/lib/types/IERC165.js +2 -0
  187. package/lib/types/IERC20ZapperDeposits.d.ts +117 -0
  188. package/lib/types/IERC20ZapperDeposits.js +2 -0
  189. package/lib/types/IERC4626Adapter.d.ts +238 -0
  190. package/lib/types/IERC4626Adapter.js +2 -0
  191. package/lib/types/IERC721.d.ts +220 -0
  192. package/lib/types/IERC721.js +2 -0
  193. package/lib/types/IERC721Metadata.d.ts +244 -0
  194. package/lib/types/IERC721Metadata.js +2 -0
  195. package/lib/types/IETHZapperDeposits.d.ts +66 -0
  196. package/lib/types/IETHZapperDeposits.js +2 -0
  197. package/lib/types/IFarmingPool.d.ts +318 -0
  198. package/lib/types/IFarmingPool.js +2 -0
  199. package/lib/types/IGaugeV3.sol/IGaugeV3.d.ts +366 -0
  200. package/lib/types/IGaugeV3.sol/IGaugeV3.js +2 -0
  201. package/lib/types/IGaugeV3.sol/IGaugeV3Events.d.ts +114 -0
  202. package/lib/types/IGaugeV3.sol/IGaugeV3Events.js +2 -0
  203. package/lib/types/IGaugeV3.sol/index.d.ts +2 -0
  204. package/lib/types/IGaugeV3.sol/index.js +2 -0
  205. package/lib/types/IGearStakingV3.sol/IGearStakingV3.d.ts +408 -0
  206. package/lib/types/IGearStakingV3.sol/IGearStakingV3.js +2 -0
  207. package/lib/types/IGearStakingV3.sol/IGearStakingV3Events.d.ts +117 -0
  208. package/lib/types/IGearStakingV3.sol/IGearStakingV3Events.js +2 -0
  209. package/lib/types/IGearStakingV3.sol/index.d.ts +2 -0
  210. package/lib/types/IGearStakingV3.sol/index.js +2 -0
  211. package/lib/types/ILPPriceFeed.sol/ILPPriceFeed.d.ts +285 -0
  212. package/lib/types/ILPPriceFeed.sol/ILPPriceFeed.js +2 -0
  213. package/lib/types/ILPPriceFeed.sol/ILPPriceFeedEvents.d.ts +54 -0
  214. package/lib/types/ILPPriceFeed.sol/ILPPriceFeedEvents.js +2 -0
  215. package/lib/types/ILPPriceFeed.sol/ILPPriceFeedExceptions.d.ts +27 -0
  216. package/lib/types/ILPPriceFeed.sol/ILPPriceFeedExceptions.js +2 -0
  217. package/lib/types/ILPPriceFeed.sol/index.d.ts +3 -0
  218. package/lib/types/ILPPriceFeed.sol/index.js +2 -0
  219. package/lib/types/{ILidoV1Adapter.sol/ILidoV1Adapter.d.ts → ILidoV1Adapter.d.ts} +13 -48
  220. package/lib/types/ILidoV1Adapter.js +2 -0
  221. package/lib/types/ILinearInterestRateModelV3.d.ts +120 -0
  222. package/lib/types/ILinearInterestRateModelV3.js +2 -0
  223. package/lib/types/IPermit2.d.ts +130 -0
  224. package/lib/types/IPermit2.js +2 -0
  225. package/lib/types/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3.d.ts +473 -0
  226. package/lib/types/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3.js +2 -0
  227. package/lib/types/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3Events.d.ts +113 -0
  228. package/lib/types/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3Events.js +2 -0
  229. package/lib/types/IPoolQuotaKeeperV3.sol/index.d.ts +2 -0
  230. package/lib/types/IPoolQuotaKeeperV3.sol/index.js +2 -0
  231. package/lib/types/IPoolV3.sol/IPoolV3.d.ts +2 -2
  232. package/lib/types/IPriceFeed.sol/IPriceFeed.d.ts +109 -0
  233. package/lib/types/IPriceFeed.sol/IPriceFeed.js +2 -0
  234. package/lib/types/IPriceFeed.sol/IUpdatablePriceFeed.d.ts +133 -0
  235. package/lib/types/IPriceFeed.sol/IUpdatablePriceFeed.js +2 -0
  236. package/lib/types/IPriceFeed.sol/index.d.ts +2 -0
  237. package/lib/types/IPriceFeed.sol/index.js +2 -0
  238. package/lib/types/IPriceOracle.sol/IPriceOracleV2.d.ts +166 -0
  239. package/lib/types/IPriceOracle.sol/IPriceOracleV2.js +2 -0
  240. package/lib/types/IPriceOracle.sol/IPriceOracleV2Events.d.ts +43 -0
  241. package/lib/types/IPriceOracle.sol/IPriceOracleV2Events.js +2 -0
  242. package/lib/types/{ILidoV1Adapter.sol/ILidoV1AdapterExceptions.d.ts → IPriceOracle.sol/IPriceOracleV2Exceptions.d.ts} +3 -3
  243. package/lib/types/IPriceOracle.sol/IPriceOracleV2Exceptions.js +2 -0
  244. package/lib/types/IPriceOracle.sol/IPriceOracleV2Ext.d.ts +182 -0
  245. package/lib/types/IPriceOracle.sol/IPriceOracleV2Ext.js +2 -0
  246. package/lib/types/IPriceOracle.sol/index.d.ts +4 -0
  247. package/lib/types/IPriceOracle.sol/index.js +2 -0
  248. package/lib/types/IPriceOracleV3.sol/IPriceOracleV3.d.ts +272 -0
  249. package/lib/types/IPriceOracleV3.sol/IPriceOracleV3.js +2 -0
  250. package/lib/types/IPriceOracleV3.sol/IPriceOracleV3Events.d.ts +79 -0
  251. package/lib/types/IPriceOracleV3.sol/IPriceOracleV3Events.js +2 -0
  252. package/lib/types/IPriceOracleV3.sol/index.d.ts +2 -0
  253. package/lib/types/IPriceOracleV3.sol/index.js +2 -0
  254. package/lib/types/IRouter.d.ts +11 -1
  255. package/lib/types/IRouterV3.d.ts +315 -0
  256. package/lib/types/IRouterV3.js +2 -0
  257. package/lib/types/IUniswapV2Adapter.sol/IUniswapV2Adapter.d.ts +10 -9
  258. package/lib/types/IUniswapV3Adapter.sol/IUniswapV3Adapter.d.ts +27 -21
  259. package/lib/types/IVotingContractV3.d.ts +74 -0
  260. package/lib/types/IVotingContractV3.js +2 -0
  261. package/lib/types/IWETH.d.ts +197 -0
  262. package/lib/types/IWETH.js +2 -0
  263. package/lib/types/IYearnV2Adapter.d.ts +22 -22
  264. package/lib/types/IZapper.d.ts +42 -47
  265. package/lib/types/IZapperRegister.d.ts +62 -0
  266. package/lib/types/IZapperRegister.js +2 -0
  267. package/lib/types/IwstETHV1Adapter.d.ts +17 -17
  268. package/lib/types/NumericArrayLib.d.ts +27 -0
  269. package/lib/types/NumericArrayLib.js +2 -0
  270. package/lib/types/RedstoneConstants.d.ts +27 -0
  271. package/lib/types/RedstoneConstants.js +2 -0
  272. package/lib/types/RedstoneConsumerBase.d.ts +84 -0
  273. package/lib/types/RedstoneConsumerBase.js +2 -0
  274. package/lib/types/RedstoneConsumerNumericBase.d.ts +84 -0
  275. package/lib/types/RedstoneConsumerNumericBase.js +2 -0
  276. package/lib/types/RedstoneDefaultsLib.d.ts +27 -0
  277. package/lib/types/RedstoneDefaultsLib.js +2 -0
  278. package/lib/types/{ILidoV1Adapter.sol/ILidoV1AdapterEvents.d.ts → RedstonePriceFeed.sol/IRedstonePriceFeedEvents.d.ts} +11 -11
  279. package/lib/types/RedstonePriceFeed.sol/IRedstonePriceFeedEvents.js +2 -0
  280. package/lib/types/RedstonePriceFeed.sol/IRedstonePriceFeedExceptions.d.ts +27 -0
  281. package/lib/types/RedstonePriceFeed.sol/IRedstonePriceFeedExceptions.js +2 -0
  282. package/lib/types/RedstonePriceFeed.sol/RedstonePriceFeed.d.ts +279 -0
  283. package/lib/types/RedstonePriceFeed.sol/RedstonePriceFeed.js +2 -0
  284. package/lib/types/RedstonePriceFeed.sol/index.d.ts +3 -0
  285. package/lib/types/RedstonePriceFeed.sol/index.js +2 -0
  286. package/lib/types/SafeERC20.d.ts +27 -0
  287. package/lib/types/SafeERC20.js +2 -0
  288. package/lib/types/contracts/index.d.ts +2 -0
  289. package/lib/types/contracts/index.js +2 -0
  290. package/lib/types/contracts/interfaces/IGasPricer.d.ts +44 -0
  291. package/lib/types/contracts/interfaces/IGasPricer.js +2 -0
  292. package/lib/types/contracts/interfaces/index.d.ts +1 -0
  293. package/lib/types/contracts/interfaces/index.js +2 -0
  294. package/lib/types/factories/AddressProvider__factory.d.ts +112 -112
  295. package/lib/types/factories/AddressProvider__factory.js +120 -120
  296. package/lib/types/factories/Balances.sol/BalanceOps__factory.d.ts +4 -4
  297. package/lib/types/factories/Balances.sol/BalanceOps__factory.js +4 -4
  298. package/lib/types/factories/CalldataExtractor__factory.d.ts +87 -0
  299. package/lib/types/factories/CalldataExtractor__factory.js +127 -0
  300. package/lib/types/factories/Claimable__factory.d.ts +29 -29
  301. package/lib/types/factories/Claimable__factory.js +33 -33
  302. package/lib/types/factories/ERC20__factory.d.ts +239 -0
  303. package/lib/types/factories/ERC20__factory.js +328 -0
  304. package/lib/types/factories/Errors__factory.d.ts +100 -100
  305. package/lib/types/factories/Errors__factory.js +100 -100
  306. package/lib/types/factories/FarmAccounting__factory.d.ts +33 -0
  307. package/lib/types/factories/FarmAccounting__factory.js +57 -0
  308. package/lib/types/factories/{IWERC20Zapper__factory.d.ts → IAaveV2_LendingPoolAdapter__factory.d.ts} +96 -114
  309. package/lib/types/factories/{IWETHZapper__factory.js → IAaveV2_LendingPoolAdapter__factory.js} +105 -120
  310. package/lib/types/factories/IAaveV2_WrappedATokenAdapter__factory.d.ts +252 -0
  311. package/lib/types/factories/IAaveV2_WrappedATokenAdapter__factory.js +341 -0
  312. package/lib/types/factories/IAdapter__factory.d.ts +15 -15
  313. package/lib/types/factories/IAdapter__factory.js +15 -15
  314. package/lib/types/factories/IAddressProvider.sol/IAddressProviderEvents__factory.d.ts +7 -7
  315. package/lib/types/factories/IAddressProvider.sol/IAddressProviderEvents__factory.js +7 -7
  316. package/lib/types/factories/IAddressProvider.sol/IAddressProvider__factory.d.ts +48 -48
  317. package/lib/types/factories/IAddressProvider.sol/IAddressProvider__factory.js +52 -52
  318. package/lib/types/factories/IAddressProviderV3.sol/IAddressProviderV3Events__factory.d.ts +9 -9
  319. package/lib/types/factories/IAddressProviderV3.sol/IAddressProviderV3Events__factory.js +9 -9
  320. package/lib/types/factories/IAddressProviderV3.sol/IAddressProviderV3__factory.d.ts +37 -37
  321. package/lib/types/factories/IAddressProviderV3.sol/IAddressProviderV3__factory.js +42 -42
  322. package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributorEvents__factory.d.ts +25 -25
  323. package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributorEvents__factory.js +25 -25
  324. package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributor__factory.d.ts +71 -71
  325. package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributor__factory.js +85 -85
  326. package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2VaultGetters__factory.d.ts +78 -0
  327. package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2VaultGetters__factory.js +111 -0
  328. package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2Vault__factory.d.ts +360 -0
  329. package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2Vault__factory.js +475 -0
  330. package/lib/types/factories/IBalancerV2Vault.sol/index.d.ts +2 -0
  331. package/lib/types/factories/IBalancerV2Vault.sol/index.js +10 -0
  332. package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents__factory.d.ts +23 -0
  333. package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents__factory.js +38 -0
  334. package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions__factory.d.ts +12 -0
  335. package/lib/types/factories/{ILidoV1Adapter.sol/ILidoV1AdapterExceptions__factory.js → IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions__factory.js} +5 -5
  336. package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter__factory.d.ts +514 -0
  337. package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter__factory.js +675 -0
  338. package/lib/types/factories/IBalancerV2VaultAdapter.sol/index.d.ts +3 -0
  339. package/lib/types/factories/IBalancerV2VaultAdapter.sol/index.js +12 -0
  340. package/lib/types/factories/IBaseRewardPool__factory.d.ts +114 -114
  341. package/lib/types/factories/IBaseRewardPool__factory.js +114 -114
  342. package/lib/types/factories/IBotListV3.sol/IBotListV3Events__factory.d.ts +103 -0
  343. package/lib/types/factories/IBotListV3.sol/IBotListV3Events__factory.js +138 -0
  344. package/lib/types/factories/IBotListV3.sol/IBotListV3__factory.d.ts +315 -0
  345. package/lib/types/factories/IBotListV3.sol/IBotListV3__factory.js +416 -0
  346. package/lib/types/factories/IBotListV3.sol/index.d.ts +2 -0
  347. package/lib/types/factories/IBotListV3.sol/index.js +10 -0
  348. package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter__factory.d.ts +196 -0
  349. package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter__factory.js +267 -0
  350. package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions__factory.d.ts +16 -0
  351. package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions__factory.js +30 -0
  352. package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/index.d.ts +2 -0
  353. package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/index.js +10 -0
  354. package/lib/types/factories/IContractsRegister.sol/IContractsRegisterEvents__factory.d.ts +28 -0
  355. package/lib/types/factories/IContractsRegister.sol/IContractsRegisterEvents__factory.js +45 -0
  356. package/lib/types/factories/IContractsRegister.sol/IContractsRegister__factory.d.ts +134 -0
  357. package/lib/types/factories/IContractsRegister.sol/IContractsRegister__factory.js +186 -0
  358. package/lib/types/factories/IContractsRegister.sol/index.d.ts +2 -0
  359. package/lib/types/factories/IContractsRegister.sol/index.js +10 -0
  360. package/lib/types/factories/IControllerTimelockV3.sol/IControllerTimelockV3Events__factory.d.ts +73 -0
  361. package/lib/types/factories/IControllerTimelockV3.sol/IControllerTimelockV3Events__factory.js +101 -0
  362. package/lib/types/factories/IControllerTimelockV3.sol/IControllerTimelockV3__factory.d.ts +427 -0
  363. package/lib/types/factories/IControllerTimelockV3.sol/IControllerTimelockV3__factory.js +556 -0
  364. package/lib/types/factories/IControllerTimelockV3.sol/index.d.ts +2 -0
  365. package/lib/types/factories/IControllerTimelockV3.sol/index.js +10 -0
  366. package/lib/types/factories/IConvexToken__factory.d.ts +89 -79
  367. package/lib/types/factories/IConvexToken__factory.js +99 -86
  368. package/lib/types/factories/IConvexV1BaseRewardPoolAdapter__factory.d.ts +103 -71
  369. package/lib/types/factories/IConvexV1BaseRewardPoolAdapter__factory.js +113 -71
  370. package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents__factory.d.ts +23 -0
  371. package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents__factory.js +38 -0
  372. package/lib/types/factories/{IConvexV1BoosterAdapter__factory.d.ts → IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter__factory.d.ts} +67 -44
  373. package/lib/types/factories/{IConvexV1BoosterAdapter__factory.js → IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter__factory.js} +72 -43
  374. package/lib/types/factories/IConvexV1BoosterAdapter.sol/index.d.ts +2 -0
  375. package/lib/types/factories/IConvexV1BoosterAdapter.sol/index.js +10 -0
  376. package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2Events__factory.d.ts +121 -121
  377. package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2Events__factory.js +127 -127
  378. package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2Exceptions__factory.d.ts +18 -18
  379. package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2Exceptions__factory.js +18 -18
  380. package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2__factory.d.ts +376 -376
  381. package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2__factory.js +417 -417
  382. package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3Events__factory.d.ts +118 -118
  383. package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3Events__factory.js +127 -127
  384. package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3__factory.d.ts +395 -395
  385. package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3__factory.js +420 -420
  386. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Events__factory.d.ts +107 -107
  387. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Events__factory.js +118 -118
  388. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Exceptions__factory.d.ts +65 -65
  389. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Exceptions__factory.js +65 -65
  390. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Extended__factory.d.ts +23 -27
  391. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Extended__factory.js +23 -28
  392. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2V2__factory.d.ts +5 -5
  393. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2V2__factory.js +5 -5
  394. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2__factory.d.ts +601 -601
  395. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2__factory.js +749 -749
  396. package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.d.ts +78 -83
  397. package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.js +85 -91
  398. package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.d.ts +281 -348
  399. package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.js +372 -457
  400. package/lib/types/factories/ICreditFacadeV3Multicall__factory.d.ts +85 -81
  401. package/lib/types/factories/ICreditFacadeV3Multicall__factory.js +93 -89
  402. package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2Events__factory.d.ts +11 -11
  403. package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2Events__factory.js +12 -12
  404. package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2Exceptions__factory.d.ts +26 -26
  405. package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2Exceptions__factory.js +26 -26
  406. package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2__factory.d.ts +252 -252
  407. package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2__factory.js +272 -272
  408. package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3Events__factory.d.ts +5 -5
  409. package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3Events__factory.js +5 -5
  410. package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3__factory.d.ts +398 -390
  411. package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3__factory.js +436 -426
  412. package/lib/types/factories/ICurvePool_2.sol/ICurvePool2Assets__factory.d.ts +191 -191
  413. package/lib/types/factories/ICurvePool_2.sol/ICurvePool2Assets__factory.js +191 -191
  414. package/lib/types/factories/ICurvePool_3.sol/ICurvePool3Assets__factory.d.ts +191 -191
  415. package/lib/types/factories/ICurvePool_3.sol/ICurvePool3Assets__factory.js +191 -191
  416. package/lib/types/factories/ICurvePool_4.sol/ICurvePool4Assets__factory.d.ts +191 -191
  417. package/lib/types/factories/ICurvePool_4.sol/ICurvePool4Assets__factory.js +191 -191
  418. package/lib/types/factories/ICurvePool__factory.d.ts +159 -159
  419. package/lib/types/factories/ICurvePool__factory.js +159 -159
  420. package/lib/types/factories/ICurveV1Adapter__factory.d.ts +171 -229
  421. package/lib/types/factories/ICurveV1Adapter__factory.js +171 -248
  422. package/lib/types/factories/ICurveV1_2AssetsAdapter__factory.d.ts +189 -247
  423. package/lib/types/factories/ICurveV1_2AssetsAdapter__factory.js +189 -266
  424. package/lib/types/factories/ICurveV1_3AssetsAdapter__factory.d.ts +189 -247
  425. package/lib/types/factories/ICurveV1_3AssetsAdapter__factory.js +189 -266
  426. package/lib/types/factories/ICurveV1_4AssetsAdapter__factory.d.ts +189 -247
  427. package/lib/types/factories/ICurveV1_4AssetsAdapter__factory.js +189 -266
  428. package/lib/types/factories/IDaiLikePermit__factory.d.ts +46 -0
  429. package/lib/types/factories/IDaiLikePermit__factory.js +67 -0
  430. package/lib/types/factories/{IDataCompressorV2_10__factory.d.ts → IDataCompressorV2_1__factory.d.ts} +348 -398
  431. package/lib/types/factories/{IDataCompressorV2_10__factory.js → IDataCompressorV2_1__factory.js} +349 -413
  432. package/lib/types/factories/{IDataCompressorV3_00__factory.d.ts → IDataCompressorV3__factory.d.ts} +654 -472
  433. package/lib/types/factories/{IDataCompressorV3_00__factory.js → IDataCompressorV3__factory.js} +727 -495
  434. package/lib/types/factories/IDegenDistributor.sol/IDegenDistributorEvents__factory.d.ts +14 -14
  435. package/lib/types/factories/IDegenDistributor.sol/IDegenDistributorEvents__factory.js +14 -14
  436. package/lib/types/factories/IDegenDistributor.sol/IDegenDistributor__factory.d.ts +43 -43
  437. package/lib/types/factories/IDegenDistributor.sol/IDegenDistributor__factory.js +51 -51
  438. package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2Events__factory.d.ts +38 -0
  439. package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2Events__factory.js +58 -0
  440. package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2Exceptions__factory.d.ts +24 -0
  441. package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2Exceptions__factory.js +39 -0
  442. package/lib/types/factories/{IWithdrawalManagerV3.sol/IWithdrawalManagerV3__factory.d.ts → IDegenNFTV2.sol/IDegenNFTV2__factory.d.ts} +248 -238
  443. package/lib/types/factories/{IWithdrawalManagerV3.sol/IWithdrawalManagerV3__factory.js → IDegenNFTV2.sol/IDegenNFTV2__factory.js} +270 -253
  444. package/lib/types/factories/IDegenNFTV2.sol/index.d.ts +3 -0
  445. package/lib/types/factories/IDegenNFTV2.sol/index.js +12 -0
  446. package/lib/types/factories/IERC165__factory.d.ts +22 -0
  447. package/lib/types/factories/IERC165__factory.js +38 -0
  448. package/lib/types/factories/IERC20Metadata__factory.d.ts +76 -76
  449. package/lib/types/factories/IERC20Metadata__factory.js +86 -86
  450. package/lib/types/factories/IERC20Permit__factory.d.ts +16 -16
  451. package/lib/types/factories/IERC20Permit__factory.js +16 -16
  452. package/lib/types/factories/IERC20ZapperDeposits__factory.d.ts +120 -0
  453. package/lib/types/factories/IERC20ZapperDeposits__factory.js +165 -0
  454. package/lib/types/factories/IERC20__factory.d.ts +67 -67
  455. package/lib/types/factories/IERC20__factory.js +77 -77
  456. package/lib/types/factories/IERC4626Adapter__factory.d.ts +220 -0
  457. package/lib/types/factories/IERC4626Adapter__factory.js +297 -0
  458. package/lib/types/factories/IERC4626__factory.d.ts +198 -198
  459. package/lib/types/factories/IERC4626__factory.js +221 -221
  460. package/lib/types/factories/IERC721Metadata__factory.d.ts +262 -0
  461. package/lib/types/factories/IERC721Metadata__factory.js +349 -0
  462. package/lib/types/factories/IERC721__factory.d.ts +228 -0
  463. package/lib/types/factories/IERC721__factory.js +304 -0
  464. package/lib/types/factories/IETHZapperDeposits__factory.d.ts +40 -0
  465. package/lib/types/factories/IETHZapperDeposits__factory.js +62 -0
  466. package/lib/types/factories/IFarmingPool__factory.d.ts +299 -0
  467. package/lib/types/factories/IFarmingPool__factory.js +396 -0
  468. package/lib/types/factories/IGaugeV3.sol/IGaugeV3Events__factory.d.ts +118 -0
  469. package/lib/types/factories/IGaugeV3.sol/IGaugeV3Events__factory.js +157 -0
  470. package/lib/types/factories/IGaugeV3.sol/IGaugeV3__factory.d.ts +342 -0
  471. package/lib/types/factories/IGaugeV3.sol/IGaugeV3__factory.js +448 -0
  472. package/lib/types/factories/IGaugeV3.sol/index.d.ts +2 -0
  473. package/lib/types/factories/IGaugeV3.sol/index.js +10 -0
  474. package/lib/types/factories/{IWithdrawalManagerV3.sol/IWithdrawalManagerV3Events__factory.d.ts → IGearStakingV3.sol/IGearStakingV3Events__factory.d.ts} +55 -85
  475. package/lib/types/factories/{IWithdrawalManagerV3.sol/IWithdrawalManagerV3Events__factory.js → IGearStakingV3.sol/IGearStakingV3Events__factory.js} +58 -94
  476. package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3__factory.d.ts +504 -0
  477. package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3__factory.js +660 -0
  478. package/lib/types/factories/IGearStakingV3.sol/index.d.ts +2 -0
  479. package/lib/types/factories/IGearStakingV3.sol/index.js +10 -0
  480. package/lib/types/factories/IInterestRateModel__factory.d.ts +8 -8
  481. package/lib/types/factories/IInterestRateModel__factory.js +8 -8
  482. package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeedEvents__factory.d.ts +33 -0
  483. package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeedEvents__factory.js +51 -0
  484. package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeedExceptions__factory.d.ts +28 -0
  485. package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeedExceptions__factory.js +44 -0
  486. package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeed__factory.d.ts +261 -0
  487. package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeed__factory.js +344 -0
  488. package/lib/types/factories/ILPPriceFeed.sol/index.d.ts +3 -0
  489. package/lib/types/factories/ILPPriceFeed.sol/index.js +12 -0
  490. package/lib/types/factories/{ILidoV1Adapter.sol/ILidoV1Adapter__factory.d.ts → ILidoV1Adapter__factory.d.ts} +44 -74
  491. package/lib/types/factories/{ILidoV1Adapter.sol/ILidoV1Adapter__factory.js → ILidoV1Adapter__factory.js} +45 -83
  492. package/lib/types/factories/ILinearInterestRateModelV3__factory.d.ts +98 -0
  493. package/lib/types/factories/ILinearInterestRateModelV3__factory.js +136 -0
  494. package/lib/types/factories/IOffchainOracle__factory.d.ts +11 -11
  495. package/lib/types/factories/IOffchainOracle__factory.js +11 -11
  496. package/lib/types/factories/IPermit2__factory.d.ts +113 -0
  497. package/lib/types/factories/IPermit2__factory.js +155 -0
  498. package/lib/types/factories/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3Events__factory.d.ts +103 -0
  499. package/lib/types/factories/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3Events__factory.js +140 -0
  500. package/lib/types/factories/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3__factory.d.ts +441 -0
  501. package/lib/types/factories/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3__factory.js +580 -0
  502. package/lib/types/factories/IPoolQuotaKeeperV3.sol/index.d.ts +2 -0
  503. package/lib/types/factories/IPoolQuotaKeeperV3.sol/index.js +10 -0
  504. package/lib/types/factories/IPoolService.sol/IPoolServiceEvents__factory.d.ts +66 -66
  505. package/lib/types/factories/IPoolService.sol/IPoolServiceEvents__factory.js +72 -72
  506. package/lib/types/factories/IPoolService.sol/IPoolService__factory.d.ts +235 -235
  507. package/lib/types/factories/IPoolService.sol/IPoolService__factory.js +286 -286
  508. package/lib/types/factories/IPoolV3.sol/IPoolV3Events__factory.d.ts +65 -65
  509. package/lib/types/factories/IPoolV3.sol/IPoolV3Events__factory.js +68 -68
  510. package/lib/types/factories/IPoolV3.sol/IPoolV3__factory.d.ts +574 -574
  511. package/lib/types/factories/IPoolV3.sol/IPoolV3__factory.js +698 -698
  512. package/lib/types/factories/IPriceFeed.sol/IPriceFeed__factory.d.ts +84 -0
  513. package/lib/types/factories/IPriceFeed.sol/IPriceFeed__factory.js +117 -0
  514. package/lib/types/factories/IPriceFeed.sol/IUpdatablePriceFeed__factory.d.ts +104 -0
  515. package/lib/types/factories/IPriceFeed.sol/IUpdatablePriceFeed__factory.js +143 -0
  516. package/lib/types/factories/IPriceFeed.sol/index.d.ts +2 -0
  517. package/lib/types/factories/IPriceFeed.sol/index.js +10 -0
  518. package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Events__factory.d.ts +23 -0
  519. package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Events__factory.js +38 -0
  520. package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Exceptions__factory.d.ts +20 -0
  521. package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Exceptions__factory.js +34 -0
  522. package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Ext__factory.d.ts +197 -0
  523. package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Ext__factory.js +267 -0
  524. package/lib/types/factories/{IWETHZapper__factory.d.ts → IPriceOracle.sol/IPriceOracleV2__factory.d.ts} +114 -99
  525. package/lib/types/factories/{IWERC20Zapper__factory.js → IPriceOracle.sol/IPriceOracleV2__factory.js} +119 -110
  526. package/lib/types/factories/IPriceOracle.sol/index.d.ts +4 -0
  527. package/lib/types/factories/IPriceOracle.sol/index.js +14 -0
  528. package/lib/types/factories/IPriceOracleBase__factory.d.ts +27 -27
  529. package/lib/types/factories/IPriceOracleBase__factory.js +27 -27
  530. package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3Events__factory.d.ts +78 -0
  531. package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3Events__factory.js +106 -0
  532. package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3__factory.d.ts +326 -0
  533. package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3__factory.js +433 -0
  534. package/lib/types/factories/IPriceOracleV3.sol/index.d.ts +2 -0
  535. package/lib/types/factories/IPriceOracleV3.sol/index.js +10 -0
  536. package/lib/types/factories/IRouterV3__factory.d.ts +512 -0
  537. package/lib/types/factories/IRouterV3__factory.js +676 -0
  538. package/lib/types/factories/IRouter__factory.d.ts +168 -154
  539. package/lib/types/factories/IRouter__factory.js +186 -167
  540. package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2AdapterEvents__factory.d.ts +8 -8
  541. package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2AdapterEvents__factory.js +9 -9
  542. package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2AdapterExceptions__factory.d.ts +2 -2
  543. package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2AdapterExceptions__factory.js +2 -2
  544. package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2Adapter__factory.d.ts +80 -76
  545. package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2Adapter__factory.js +87 -82
  546. package/lib/types/factories/IUniswapV3.sol/ISwapRouter__factory.d.ts +50 -50
  547. package/lib/types/factories/IUniswapV3.sol/ISwapRouter__factory.js +50 -50
  548. package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3AdapterEvents__factory.d.ts +10 -10
  549. package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3AdapterEvents__factory.js +11 -11
  550. package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3AdapterExceptions__factory.d.ts +2 -2
  551. package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3AdapterExceptions__factory.js +2 -2
  552. package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3Adapter__factory.d.ts +142 -134
  553. package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3Adapter__factory.js +151 -141
  554. package/lib/types/factories/IVersion__factory.d.ts +3 -3
  555. package/lib/types/factories/IVersion__factory.js +3 -3
  556. package/lib/types/factories/IVotingContractV3__factory.d.ts +44 -0
  557. package/lib/types/factories/IVotingContractV3__factory.js +65 -0
  558. package/lib/types/factories/IWETHGateway__factory.d.ts +14 -14
  559. package/lib/types/factories/IWETHGateway__factory.js +14 -14
  560. package/lib/types/factories/IWETH__factory.d.ts +194 -0
  561. package/lib/types/factories/IWETH__factory.js +260 -0
  562. package/lib/types/factories/IYVault__factory.d.ts +112 -112
  563. package/lib/types/factories/IYVault__factory.js +122 -122
  564. package/lib/types/factories/IYearnV2Adapter__factory.d.ts +76 -68
  565. package/lib/types/factories/IYearnV2Adapter__factory.js +82 -70
  566. package/lib/types/factories/IZapperRegister__factory.d.ts +42 -0
  567. package/lib/types/factories/IZapperRegister__factory.js +64 -0
  568. package/lib/types/factories/IZapper__factory.d.ts +40 -48
  569. package/lib/types/factories/IZapper__factory.js +40 -50
  570. package/lib/types/factories/IstETH.sol/IstETHGetters__factory.d.ts +97 -97
  571. package/lib/types/factories/IstETH.sol/IstETHGetters__factory.js +107 -107
  572. package/lib/types/factories/IstETH.sol/IstETH__factory.d.ts +101 -101
  573. package/lib/types/factories/IstETH.sol/IstETH__factory.js +111 -111
  574. package/lib/types/factories/IwstETH.sol/IwstETHGetters__factory.d.ts +93 -93
  575. package/lib/types/factories/IwstETH.sol/IwstETHGetters__factory.js +103 -103
  576. package/lib/types/factories/IwstETH.sol/IwstETH__factory.d.ts +101 -101
  577. package/lib/types/factories/IwstETH.sol/IwstETH__factory.js +111 -111
  578. package/lib/types/factories/IwstETHGateway.sol/IwstETHGateWay__factory.d.ts +14 -14
  579. package/lib/types/factories/IwstETHGateway.sol/IwstETHGateWay__factory.js +15 -15
  580. package/lib/types/factories/IwstETHV1Adapter__factory.d.ts +52 -44
  581. package/lib/types/factories/IwstETHV1Adapter__factory.js +56 -44
  582. package/lib/types/factories/NumericArrayLib__factory.d.ts +25 -0
  583. package/lib/types/factories/NumericArrayLib__factory.js +47 -0
  584. package/lib/types/factories/Ownable__factory.d.ts +23 -23
  585. package/lib/types/factories/Ownable__factory.js +27 -27
  586. package/lib/types/factories/RedstoneConstants__factory.d.ts +65 -0
  587. package/lib/types/factories/RedstoneConstants__factory.js +99 -0
  588. package/lib/types/factories/RedstoneConsumerBase__factory.d.ts +164 -0
  589. package/lib/types/factories/RedstoneConsumerBase__factory.js +223 -0
  590. package/lib/types/factories/RedstoneConsumerNumericBase__factory.d.ts +164 -0
  591. package/lib/types/factories/RedstoneConsumerNumericBase__factory.js +223 -0
  592. package/lib/types/factories/RedstoneDefaultsLib__factory.d.ts +45 -0
  593. package/lib/types/factories/RedstoneDefaultsLib__factory.js +74 -0
  594. package/lib/types/factories/{ILidoV1Adapter.sol/ILidoV1AdapterEvents__factory.d.ts → RedstonePriceFeed.sol/IRedstonePriceFeedEvents__factory.d.ts} +9 -9
  595. package/lib/types/factories/{ILidoV1Adapter.sol/ILidoV1AdapterEvents__factory.js → RedstonePriceFeed.sol/IRedstonePriceFeedEvents__factory.js} +8 -8
  596. package/lib/types/factories/RedstonePriceFeed.sol/IRedstonePriceFeedExceptions__factory.d.ts +28 -0
  597. package/lib/types/factories/RedstonePriceFeed.sol/IRedstonePriceFeedExceptions__factory.js +44 -0
  598. package/lib/types/factories/RedstonePriceFeed.sol/RedstonePriceFeed__factory.d.ts +443 -0
  599. package/lib/types/factories/RedstonePriceFeed.sol/RedstonePriceFeed__factory.js +589 -0
  600. package/lib/types/factories/RedstonePriceFeed.sol/index.d.ts +3 -0
  601. package/lib/types/factories/RedstonePriceFeed.sol/index.js +12 -0
  602. package/lib/types/factories/SafeERC20__factory.d.ts +49 -0
  603. package/lib/types/factories/SafeERC20__factory.js +77 -0
  604. package/lib/types/factories/contracts/index.d.ts +1 -0
  605. package/lib/types/factories/contracts/index.js +30 -0
  606. package/lib/types/factories/contracts/interfaces/IGasPricer__factory.d.ts +22 -0
  607. package/lib/types/factories/contracts/interfaces/IGasPricer__factory.js +38 -0
  608. package/lib/types/factories/contracts/interfaces/index.d.ts +1 -0
  609. package/lib/types/factories/contracts/interfaces/index.js +8 -0
  610. package/lib/types/factories/index.d.ts +45 -7
  611. package/lib/types/factories/index.js +75 -14
  612. package/lib/types/index.d.ts +168 -24
  613. package/lib/types/index.js +135 -20
  614. package/lib/utils/formatter.d.ts +1 -4
  615. package/lib/utils/formatter.js +3 -69
  616. package/lib/utils/types.d.ts +1 -0
  617. package/lib/watchers/creditAccountWatcher.d.ts +3 -2
  618. package/lib/watchers/creditAccountWatcher.js +20 -14
  619. package/lib/watchers/creditAccountWatcher.spec.js +18 -18
  620. package/lib/watchers/creditManagerWatcher.d.ts +5 -3
  621. package/lib/watchers/creditManagerWatcher.js +32 -10
  622. package/lib/watchers/creditManagerWatcher.spec.js +12 -4
  623. package/package.json +12 -8
  624. package/contracts/IRouter.sol +0 -100
  625. package/lib/core/pool/index.d.ts +0 -1
  626. package/lib/core/strategy.spec.js +0 -62
  627. package/lib/types/ILidoV1Adapter.sol/index.d.ts +0 -3
  628. package/lib/types/IWERC20Zapper.d.ts +0 -166
  629. package/lib/types/IWETHZapper.d.ts +0 -162
  630. package/lib/types/IWithdrawalManagerV3.sol/IWithdrawalManagerV3.d.ts +0 -370
  631. package/lib/types/IWithdrawalManagerV3.sol/IWithdrawalManagerV3Events.d.ts +0 -133
  632. package/lib/types/IWithdrawalManagerV3.sol/index.d.ts +0 -2
  633. package/lib/types/factories/ILidoV1Adapter.sol/ILidoV1AdapterExceptions__factory.d.ts +0 -12
  634. package/lib/types/factories/ILidoV1Adapter.sol/index.d.ts +0 -3
  635. package/lib/types/factories/ILidoV1Adapter.sol/index.js +0 -12
  636. package/lib/types/factories/IWithdrawalManagerV3.sol/index.d.ts +0 -2
  637. package/lib/types/factories/IWithdrawalManagerV3.sol/index.js +0 -10
  638. /package/lib/core/{strategy.spec.d.ts → gaugeMath.spec.d.ts} +0 -0
  639. /package/lib/{types/IConvexV1BoosterAdapter.js → pathfinder/v1/core.js} +0 -0
  640. /package/lib/{types/IDataCompressorV2_10.js → payload/gauge.js} +0 -0
  641. /package/lib/types/{IDataCompressorV3_00.js → CalldataExtractor.js} +0 -0
  642. /package/lib/types/{ILidoV1Adapter.sol/ILidoV1Adapter.js → ERC20.js} +0 -0
  643. /package/lib/types/{ILidoV1Adapter.sol/ILidoV1AdapterEvents.js → FarmAccounting.js} +0 -0
  644. /package/lib/types/{ILidoV1Adapter.sol/ILidoV1AdapterExceptions.js → IAaveV2_LendingPoolAdapter.js} +0 -0
  645. /package/lib/types/{ILidoV1Adapter.sol/index.js → IAaveV2_WrappedATokenAdapter.js} +0 -0
  646. /package/lib/types/{IWERC20Zapper.js → IBalancerV2Vault.sol/IBalancerV2Vault.js} +0 -0
  647. /package/lib/types/{IWETHZapper.js → IBalancerV2Vault.sol/IBalancerV2VaultGetters.js} +0 -0
  648. /package/lib/types/{IWithdrawalManagerV3.sol → IBalancerV2Vault.sol}/index.js +0 -0
  649. /package/lib/types/{IWithdrawalManagerV3.sol/IWithdrawalManagerV3.js → IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter.js} +0 -0
  650. /package/lib/types/{IWithdrawalManagerV3.sol/IWithdrawalManagerV3Events.js → IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents.js} +0 -0
@@ -7,917 +7,917 @@ exports.ICreditManagerV2__factory = void 0;
7
7
  const ethers_1 = require("ethers");
8
8
  const _abi = [
9
9
  {
10
- inputs: [],
11
- name: "AdaptersOrCreditFacadeOnlyException",
12
- type: "error",
13
- },
14
- {
15
- inputs: [],
16
- name: "AllowanceFailedException",
17
- type: "error",
18
- },
19
- {
20
- inputs: [],
21
- name: "CreditConfiguratorOnlyException",
22
- type: "error",
23
- },
24
- {
25
- inputs: [],
26
- name: "CreditFacadeOnlyException",
27
- type: "error",
28
- },
29
- {
30
- inputs: [],
31
- name: "HasNoOpenedAccountException",
32
- type: "error",
33
- },
34
- {
35
- inputs: [],
36
- name: "NotEnoughCollateralException",
37
- type: "error",
38
- },
39
- {
40
- inputs: [],
41
- name: "ReentrancyLockException",
42
- type: "error",
43
- },
44
- {
45
- inputs: [],
46
- name: "TargetContractNotAllowedException",
47
- type: "error",
48
- },
49
- {
50
- inputs: [],
51
- name: "TokenAlreadyAddedException",
52
- type: "error",
53
- },
54
- {
55
- inputs: [],
56
- name: "TokenNotAllowedException",
57
- type: "error",
58
- },
59
- {
60
- inputs: [],
61
- name: "TooManyEnabledTokensException",
62
- type: "error",
63
- },
64
- {
65
- inputs: [],
66
- name: "TooManyTokensException",
67
- type: "error",
68
- },
69
- {
70
- inputs: [],
71
- name: "ZeroAddressOrUserAlreadyHasAccountException",
72
- type: "error",
73
- },
74
- {
75
- anonymous: false,
76
- inputs: [
77
- {
78
- indexed: true,
79
- internalType: "address",
80
- name: "borrower",
81
- type: "address",
82
- },
83
- {
84
- indexed: true,
85
- internalType: "address",
86
- name: "target",
87
- type: "address",
88
- },
89
- ],
90
- name: "ExecuteOrder",
91
- type: "event",
92
- },
93
- {
94
- anonymous: false,
95
- inputs: [
96
- {
97
- indexed: true,
98
- internalType: "address",
99
- name: "newConfigurator",
100
- type: "address",
101
- },
102
- ],
103
- name: "NewConfigurator",
104
- type: "event",
105
- },
106
- {
10
+ type: "function",
11
+ name: "adapterToContract",
107
12
  inputs: [
108
13
  {
109
- internalType: "address",
110
14
  name: "adapter",
111
15
  type: "address",
16
+ internalType: "address",
112
17
  },
113
18
  ],
114
- name: "adapterToContract",
115
19
  outputs: [
116
20
  {
117
- internalType: "address",
118
21
  name: "",
119
22
  type: "address",
23
+ internalType: "address",
120
24
  },
121
25
  ],
122
26
  stateMutability: "view",
123
- type: "function",
124
27
  },
125
28
  {
29
+ type: "function",
30
+ name: "addCollateral",
126
31
  inputs: [
127
32
  {
128
- internalType: "address",
129
33
  name: "payer",
130
34
  type: "address",
35
+ internalType: "address",
131
36
  },
132
37
  {
133
- internalType: "address",
134
38
  name: "creditAccount",
135
39
  type: "address",
40
+ internalType: "address",
136
41
  },
137
42
  {
138
- internalType: "address",
139
43
  name: "token",
140
44
  type: "address",
45
+ internalType: "address",
141
46
  },
142
47
  {
143
- internalType: "uint256",
144
48
  name: "amount",
145
49
  type: "uint256",
50
+ internalType: "uint256",
146
51
  },
147
52
  ],
148
- name: "addCollateral",
149
53
  outputs: [],
150
54
  stateMutability: "nonpayable",
151
- type: "function",
152
55
  },
153
56
  {
57
+ type: "function",
58
+ name: "approveCreditAccount",
154
59
  inputs: [
155
60
  {
156
- internalType: "address",
157
61
  name: "borrower",
158
62
  type: "address",
63
+ internalType: "address",
159
64
  },
160
65
  {
161
- internalType: "address",
162
66
  name: "targetContract",
163
67
  type: "address",
68
+ internalType: "address",
164
69
  },
165
70
  {
166
- internalType: "address",
167
71
  name: "token",
168
72
  type: "address",
73
+ internalType: "address",
169
74
  },
170
75
  {
171
- internalType: "uint256",
172
76
  name: "amount",
173
77
  type: "uint256",
78
+ internalType: "uint256",
174
79
  },
175
80
  ],
176
- name: "approveCreditAccount",
177
81
  outputs: [],
178
82
  stateMutability: "nonpayable",
179
- type: "function",
180
83
  },
181
84
  {
85
+ type: "function",
86
+ name: "calcClosePayments",
182
87
  inputs: [
183
88
  {
184
- internalType: "uint256",
185
89
  name: "totalValue",
186
90
  type: "uint256",
91
+ internalType: "uint256",
187
92
  },
188
93
  {
189
- internalType: "enum ClosureAction",
190
94
  name: "closureActionType",
191
95
  type: "uint8",
96
+ internalType: "enum ClosureAction",
192
97
  },
193
98
  {
194
- internalType: "uint256",
195
99
  name: "borrowedAmount",
196
100
  type: "uint256",
101
+ internalType: "uint256",
197
102
  },
198
103
  {
199
- internalType: "uint256",
200
104
  name: "borrowedAmountWithInterest",
201
105
  type: "uint256",
106
+ internalType: "uint256",
202
107
  },
203
108
  ],
204
- name: "calcClosePayments",
205
109
  outputs: [
206
110
  {
207
- internalType: "uint256",
208
111
  name: "amountToPool",
209
112
  type: "uint256",
113
+ internalType: "uint256",
210
114
  },
211
115
  {
212
- internalType: "uint256",
213
116
  name: "remainingFunds",
214
117
  type: "uint256",
118
+ internalType: "uint256",
215
119
  },
216
120
  {
217
- internalType: "uint256",
218
121
  name: "profit",
219
122
  type: "uint256",
123
+ internalType: "uint256",
220
124
  },
221
125
  {
222
- internalType: "uint256",
223
126
  name: "loss",
224
127
  type: "uint256",
128
+ internalType: "uint256",
225
129
  },
226
130
  ],
227
131
  stateMutability: "view",
228
- type: "function",
229
132
  },
230
133
  {
134
+ type: "function",
135
+ name: "calcCreditAccountAccruedInterest",
231
136
  inputs: [
232
137
  {
233
- internalType: "address",
234
138
  name: "creditAccount",
235
139
  type: "address",
140
+ internalType: "address",
236
141
  },
237
142
  ],
238
- name: "calcCreditAccountAccruedInterest",
239
143
  outputs: [
240
144
  {
241
- internalType: "uint256",
242
145
  name: "borrowedAmount",
243
146
  type: "uint256",
147
+ internalType: "uint256",
244
148
  },
245
149
  {
246
- internalType: "uint256",
247
150
  name: "borrowedAmountWithInterest",
248
151
  type: "uint256",
152
+ internalType: "uint256",
249
153
  },
250
154
  {
251
- internalType: "uint256",
252
155
  name: "borrowedAmountWithInterestAndFees",
253
156
  type: "uint256",
157
+ internalType: "uint256",
254
158
  },
255
159
  ],
256
160
  stateMutability: "view",
257
- type: "function",
258
161
  },
259
162
  {
163
+ type: "function",
164
+ name: "canLiquidateWhilePaused",
260
165
  inputs: [
261
166
  {
262
- internalType: "address",
263
167
  name: "",
264
168
  type: "address",
169
+ internalType: "address",
265
170
  },
266
171
  ],
267
- name: "canLiquidateWhilePaused",
268
172
  outputs: [
269
173
  {
270
- internalType: "bool",
271
174
  name: "",
272
175
  type: "bool",
176
+ internalType: "bool",
273
177
  },
274
178
  ],
275
179
  stateMutability: "view",
276
- type: "function",
277
180
  },
278
181
  {
182
+ type: "function",
183
+ name: "checkAndEnableToken",
279
184
  inputs: [
280
185
  {
281
- internalType: "address",
282
186
  name: "creditAccount",
283
187
  type: "address",
188
+ internalType: "address",
284
189
  },
285
190
  {
286
- internalType: "address",
287
191
  name: "token",
288
192
  type: "address",
193
+ internalType: "address",
289
194
  },
290
195
  ],
291
- name: "checkAndEnableToken",
292
196
  outputs: [],
293
197
  stateMutability: "nonpayable",
294
- type: "function",
295
198
  },
296
199
  {
200
+ type: "function",
201
+ name: "checkAndOptimizeEnabledTokens",
297
202
  inputs: [
298
203
  {
299
- internalType: "address",
300
204
  name: "creditAccount",
301
205
  type: "address",
206
+ internalType: "address",
302
207
  },
303
208
  ],
304
- name: "checkAndOptimizeEnabledTokens",
305
209
  outputs: [],
306
210
  stateMutability: "nonpayable",
307
- type: "function",
308
211
  },
309
212
  {
213
+ type: "function",
214
+ name: "checkEmergencyPausable",
310
215
  inputs: [
311
216
  {
312
- internalType: "address",
313
217
  name: "caller",
314
218
  type: "address",
219
+ internalType: "address",
315
220
  },
316
221
  {
317
- internalType: "bool",
318
222
  name: "state",
319
223
  type: "bool",
224
+ internalType: "bool",
320
225
  },
321
226
  ],
322
- name: "checkEmergencyPausable",
323
227
  outputs: [
324
228
  {
325
- internalType: "bool",
326
229
  name: "",
327
230
  type: "bool",
231
+ internalType: "bool",
328
232
  },
329
233
  ],
330
234
  stateMutability: "nonpayable",
331
- type: "function",
332
235
  },
333
236
  {
237
+ type: "function",
238
+ name: "closeCreditAccount",
334
239
  inputs: [
335
240
  {
336
- internalType: "address",
337
241
  name: "borrower",
338
242
  type: "address",
243
+ internalType: "address",
339
244
  },
340
245
  {
341
- internalType: "enum ClosureAction",
342
246
  name: "closureActionType",
343
247
  type: "uint8",
248
+ internalType: "enum ClosureAction",
344
249
  },
345
250
  {
346
- internalType: "uint256",
347
251
  name: "totalValue",
348
252
  type: "uint256",
253
+ internalType: "uint256",
349
254
  },
350
255
  {
351
- internalType: "address",
352
256
  name: "payer",
353
257
  type: "address",
258
+ internalType: "address",
354
259
  },
355
260
  {
356
- internalType: "address",
357
261
  name: "to",
358
262
  type: "address",
263
+ internalType: "address",
359
264
  },
360
265
  {
361
- internalType: "uint256",
362
266
  name: "skipTokenMask",
363
267
  type: "uint256",
268
+ internalType: "uint256",
364
269
  },
365
270
  {
366
- internalType: "bool",
367
271
  name: "convertWETH",
368
272
  type: "bool",
273
+ internalType: "bool",
369
274
  },
370
275
  ],
371
- name: "closeCreditAccount",
372
276
  outputs: [
373
277
  {
374
- internalType: "uint256",
375
278
  name: "remainingFunds",
376
279
  type: "uint256",
280
+ internalType: "uint256",
377
281
  },
378
282
  ],
379
283
  stateMutability: "nonpayable",
380
- type: "function",
381
284
  },
382
285
  {
286
+ type: "function",
287
+ name: "collateralTokens",
383
288
  inputs: [
384
289
  {
385
- internalType: "uint256",
386
290
  name: "id",
387
291
  type: "uint256",
292
+ internalType: "uint256",
388
293
  },
389
294
  ],
390
- name: "collateralTokens",
391
295
  outputs: [
392
296
  {
393
- internalType: "address",
394
297
  name: "token",
395
298
  type: "address",
299
+ internalType: "address",
396
300
  },
397
301
  {
398
- internalType: "uint16",
399
302
  name: "liquidationThreshold",
400
303
  type: "uint16",
304
+ internalType: "uint16",
401
305
  },
402
306
  ],
403
307
  stateMutability: "view",
404
- type: "function",
405
308
  },
406
309
  {
310
+ type: "function",
311
+ name: "collateralTokensByMask",
407
312
  inputs: [
408
313
  {
409
- internalType: "uint256",
410
314
  name: "tokenMask",
411
315
  type: "uint256",
316
+ internalType: "uint256",
412
317
  },
413
318
  ],
414
- name: "collateralTokensByMask",
415
319
  outputs: [
416
320
  {
417
- internalType: "address",
418
321
  name: "token",
419
322
  type: "address",
323
+ internalType: "address",
420
324
  },
421
325
  {
422
- internalType: "uint16",
423
326
  name: "liquidationThreshold",
424
327
  type: "uint16",
328
+ internalType: "uint16",
425
329
  },
426
330
  ],
427
331
  stateMutability: "view",
428
- type: "function",
429
332
  },
430
333
  {
431
- inputs: [],
334
+ type: "function",
432
335
  name: "collateralTokensCount",
336
+ inputs: [],
433
337
  outputs: [
434
338
  {
435
- internalType: "uint256",
436
339
  name: "",
437
340
  type: "uint256",
341
+ internalType: "uint256",
438
342
  },
439
343
  ],
440
344
  stateMutability: "view",
441
- type: "function",
442
345
  },
443
346
  {
347
+ type: "function",
348
+ name: "contractToAdapter",
444
349
  inputs: [
445
350
  {
446
- internalType: "address",
447
351
  name: "targetContract",
448
352
  type: "address",
353
+ internalType: "address",
449
354
  },
450
355
  ],
451
- name: "contractToAdapter",
452
356
  outputs: [
453
357
  {
454
- internalType: "address",
455
358
  name: "",
456
359
  type: "address",
360
+ internalType: "address",
457
361
  },
458
362
  ],
459
363
  stateMutability: "view",
460
- type: "function",
461
364
  },
462
365
  {
366
+ type: "function",
367
+ name: "creditAccounts",
463
368
  inputs: [
464
369
  {
465
- internalType: "address",
466
370
  name: "borrower",
467
371
  type: "address",
372
+ internalType: "address",
468
373
  },
469
374
  ],
470
- name: "creditAccounts",
471
375
  outputs: [
472
376
  {
473
- internalType: "address",
474
377
  name: "",
475
378
  type: "address",
379
+ internalType: "address",
476
380
  },
477
381
  ],
478
382
  stateMutability: "view",
479
- type: "function",
480
383
  },
481
384
  {
482
- inputs: [],
385
+ type: "function",
483
386
  name: "creditConfigurator",
387
+ inputs: [],
484
388
  outputs: [
485
389
  {
486
- internalType: "address",
487
390
  name: "",
488
391
  type: "address",
392
+ internalType: "address",
489
393
  },
490
394
  ],
491
395
  stateMutability: "view",
492
- type: "function",
493
396
  },
494
397
  {
495
- inputs: [],
398
+ type: "function",
496
399
  name: "creditFacade",
400
+ inputs: [],
497
401
  outputs: [
498
402
  {
499
- internalType: "address",
500
403
  name: "",
501
404
  type: "address",
405
+ internalType: "address",
502
406
  },
503
407
  ],
504
408
  stateMutability: "view",
505
- type: "function",
506
409
  },
507
410
  {
411
+ type: "function",
412
+ name: "cumulativeDropAtFastCheckRAY",
508
413
  inputs: [
509
414
  {
510
- internalType: "address",
511
415
  name: "creditAccount",
512
416
  type: "address",
417
+ internalType: "address",
513
418
  },
514
419
  ],
515
- name: "cumulativeDropAtFastCheckRAY",
516
420
  outputs: [
517
421
  {
518
- internalType: "uint256",
519
422
  name: "",
520
423
  type: "uint256",
424
+ internalType: "uint256",
521
425
  },
522
426
  ],
523
427
  stateMutability: "view",
524
- type: "function",
525
428
  },
526
429
  {
430
+ type: "function",
431
+ name: "disableToken",
527
432
  inputs: [
528
433
  {
529
- internalType: "address",
530
434
  name: "creditAccount",
531
435
  type: "address",
436
+ internalType: "address",
532
437
  },
533
438
  {
534
- internalType: "address",
535
439
  name: "token",
536
440
  type: "address",
441
+ internalType: "address",
537
442
  },
538
443
  ],
539
- name: "disableToken",
540
444
  outputs: [
541
445
  {
542
- internalType: "bool",
543
446
  name: "",
544
447
  type: "bool",
448
+ internalType: "bool",
545
449
  },
546
450
  ],
547
451
  stateMutability: "nonpayable",
548
- type: "function",
549
452
  },
550
453
  {
454
+ type: "function",
455
+ name: "enabledTokensMap",
551
456
  inputs: [
552
457
  {
553
- internalType: "address",
554
458
  name: "creditAccount",
555
459
  type: "address",
460
+ internalType: "address",
556
461
  },
557
462
  ],
558
- name: "enabledTokensMap",
559
463
  outputs: [
560
464
  {
561
- internalType: "uint256",
562
465
  name: "",
563
466
  type: "uint256",
467
+ internalType: "uint256",
564
468
  },
565
469
  ],
566
470
  stateMutability: "view",
567
- type: "function",
568
471
  },
569
472
  {
473
+ type: "function",
474
+ name: "executeOrder",
570
475
  inputs: [
571
476
  {
572
- internalType: "address",
573
477
  name: "borrower",
574
478
  type: "address",
479
+ internalType: "address",
575
480
  },
576
481
  {
577
- internalType: "address",
578
482
  name: "targetContract",
579
483
  type: "address",
484
+ internalType: "address",
580
485
  },
581
486
  {
582
- internalType: "bytes",
583
487
  name: "data",
584
488
  type: "bytes",
489
+ internalType: "bytes",
585
490
  },
586
491
  ],
587
- name: "executeOrder",
588
492
  outputs: [
589
493
  {
590
- internalType: "bytes",
591
494
  name: "",
592
495
  type: "bytes",
496
+ internalType: "bytes",
593
497
  },
594
498
  ],
595
499
  stateMutability: "nonpayable",
596
- type: "function",
597
500
  },
598
501
  {
502
+ type: "function",
503
+ name: "fastCollateralCheck",
599
504
  inputs: [
600
505
  {
601
- internalType: "address",
602
506
  name: "creditAccount",
603
507
  type: "address",
508
+ internalType: "address",
604
509
  },
605
510
  {
606
- internalType: "address",
607
511
  name: "tokenIn",
608
512
  type: "address",
513
+ internalType: "address",
609
514
  },
610
515
  {
611
- internalType: "address",
612
516
  name: "tokenOut",
613
517
  type: "address",
518
+ internalType: "address",
614
519
  },
615
520
  {
616
- internalType: "uint256",
617
521
  name: "balanceInBefore",
618
522
  type: "uint256",
523
+ internalType: "uint256",
619
524
  },
620
525
  {
621
- internalType: "uint256",
622
526
  name: "balanceOutBefore",
623
527
  type: "uint256",
528
+ internalType: "uint256",
624
529
  },
625
530
  ],
626
- name: "fastCollateralCheck",
627
531
  outputs: [],
628
532
  stateMutability: "nonpayable",
629
- type: "function",
630
533
  },
631
534
  {
632
- inputs: [],
535
+ type: "function",
633
536
  name: "fees",
537
+ inputs: [],
634
538
  outputs: [
635
539
  {
636
- internalType: "uint16",
637
540
  name: "feeInterest",
638
541
  type: "uint16",
542
+ internalType: "uint16",
639
543
  },
640
544
  {
641
- internalType: "uint16",
642
545
  name: "feeLiquidation",
643
546
  type: "uint16",
547
+ internalType: "uint16",
644
548
  },
645
549
  {
646
- internalType: "uint16",
647
550
  name: "liquidationDiscount",
648
551
  type: "uint16",
552
+ internalType: "uint16",
649
553
  },
650
554
  {
651
- internalType: "uint16",
652
555
  name: "feeLiquidationExpired",
653
556
  type: "uint16",
557
+ internalType: "uint16",
654
558
  },
655
559
  {
656
- internalType: "uint16",
657
560
  name: "liquidationDiscountExpired",
658
561
  type: "uint16",
562
+ internalType: "uint16",
659
563
  },
660
564
  ],
661
565
  stateMutability: "view",
662
- type: "function",
663
566
  },
664
567
  {
665
- inputs: [],
568
+ type: "function",
666
569
  name: "forbiddenTokenMask",
570
+ inputs: [],
667
571
  outputs: [
668
572
  {
669
- internalType: "uint256",
670
573
  name: "",
671
574
  type: "uint256",
575
+ internalType: "uint256",
672
576
  },
673
577
  ],
674
578
  stateMutability: "view",
675
- type: "function",
676
579
  },
677
580
  {
581
+ type: "function",
582
+ name: "fullCollateralCheck",
678
583
  inputs: [
679
584
  {
680
- internalType: "address",
681
585
  name: "creditAccount",
682
586
  type: "address",
587
+ internalType: "address",
683
588
  },
684
589
  ],
685
- name: "fullCollateralCheck",
686
590
  outputs: [],
687
591
  stateMutability: "nonpayable",
688
- type: "function",
689
592
  },
690
593
  {
594
+ type: "function",
595
+ name: "getCreditAccountOrRevert",
691
596
  inputs: [
692
597
  {
693
- internalType: "address",
694
598
  name: "borrower",
695
599
  type: "address",
600
+ internalType: "address",
696
601
  },
697
602
  ],
698
- name: "getCreditAccountOrRevert",
699
603
  outputs: [
700
604
  {
701
- internalType: "address",
702
605
  name: "",
703
606
  type: "address",
607
+ internalType: "address",
704
608
  },
705
609
  ],
706
610
  stateMutability: "view",
707
- type: "function",
708
611
  },
709
612
  {
613
+ type: "function",
614
+ name: "liquidationThresholds",
710
615
  inputs: [
711
616
  {
712
- internalType: "address",
713
617
  name: "token",
714
618
  type: "address",
619
+ internalType: "address",
715
620
  },
716
621
  ],
717
- name: "liquidationThresholds",
718
622
  outputs: [
719
623
  {
720
- internalType: "uint16",
721
624
  name: "",
722
625
  type: "uint16",
626
+ internalType: "uint16",
723
627
  },
724
628
  ],
725
629
  stateMutability: "view",
726
- type: "function",
727
630
  },
728
631
  {
632
+ type: "function",
633
+ name: "manageDebt",
729
634
  inputs: [
730
635
  {
731
- internalType: "address",
732
636
  name: "creditAccount",
733
637
  type: "address",
638
+ internalType: "address",
734
639
  },
735
640
  {
736
- internalType: "uint256",
737
641
  name: "amount",
738
642
  type: "uint256",
643
+ internalType: "uint256",
739
644
  },
740
645
  {
741
- internalType: "bool",
742
646
  name: "increase",
743
647
  type: "bool",
648
+ internalType: "bool",
744
649
  },
745
650
  ],
746
- name: "manageDebt",
747
651
  outputs: [
748
652
  {
749
- internalType: "uint256",
750
653
  name: "newBorrowedAmount",
751
654
  type: "uint256",
655
+ internalType: "uint256",
752
656
  },
753
657
  ],
754
658
  stateMutability: "nonpayable",
755
- type: "function",
756
659
  },
757
660
  {
758
- inputs: [],
661
+ type: "function",
759
662
  name: "maxAllowedEnabledTokenLength",
663
+ inputs: [],
760
664
  outputs: [
761
665
  {
762
- internalType: "uint8",
763
666
  name: "",
764
667
  type: "uint8",
668
+ internalType: "uint8",
765
669
  },
766
670
  ],
767
671
  stateMutability: "view",
768
- type: "function",
769
672
  },
770
673
  {
674
+ type: "function",
675
+ name: "openCreditAccount",
771
676
  inputs: [
772
677
  {
773
- internalType: "uint256",
774
678
  name: "borrowedAmount",
775
679
  type: "uint256",
680
+ internalType: "uint256",
776
681
  },
777
682
  {
778
- internalType: "address",
779
683
  name: "onBehalfOf",
780
684
  type: "address",
685
+ internalType: "address",
781
686
  },
782
687
  ],
783
- name: "openCreditAccount",
784
688
  outputs: [
785
689
  {
786
- internalType: "address",
787
690
  name: "",
788
691
  type: "address",
692
+ internalType: "address",
789
693
  },
790
694
  ],
791
695
  stateMutability: "nonpayable",
792
- type: "function",
793
696
  },
794
697
  {
795
- inputs: [],
698
+ type: "function",
796
699
  name: "pool",
700
+ inputs: [],
797
701
  outputs: [
798
702
  {
799
- internalType: "address",
800
703
  name: "",
801
704
  type: "address",
705
+ internalType: "address",
802
706
  },
803
707
  ],
804
708
  stateMutability: "view",
805
- type: "function",
806
709
  },
807
710
  {
808
- inputs: [],
711
+ type: "function",
809
712
  name: "poolService",
713
+ inputs: [],
810
714
  outputs: [
811
715
  {
812
- internalType: "address",
813
716
  name: "",
814
717
  type: "address",
718
+ internalType: "address",
815
719
  },
816
720
  ],
817
721
  stateMutability: "view",
818
- type: "function",
819
722
  },
820
723
  {
821
- inputs: [],
724
+ type: "function",
822
725
  name: "priceOracle",
726
+ inputs: [],
823
727
  outputs: [
824
728
  {
825
- internalType: "address",
826
729
  name: "",
827
730
  type: "address",
731
+ internalType: "address",
828
732
  },
829
733
  ],
830
734
  stateMutability: "view",
831
- type: "function",
832
735
  },
833
736
  {
737
+ type: "function",
738
+ name: "tokenMasksMap",
834
739
  inputs: [
835
740
  {
836
- internalType: "address",
837
741
  name: "token",
838
742
  type: "address",
743
+ internalType: "address",
839
744
  },
840
745
  ],
841
- name: "tokenMasksMap",
842
746
  outputs: [
843
747
  {
844
- internalType: "uint256",
845
748
  name: "",
846
749
  type: "uint256",
750
+ internalType: "uint256",
847
751
  },
848
752
  ],
849
753
  stateMutability: "view",
850
- type: "function",
851
754
  },
852
755
  {
756
+ type: "function",
757
+ name: "transferAccountOwnership",
853
758
  inputs: [
854
759
  {
855
- internalType: "address",
856
760
  name: "from",
857
761
  type: "address",
762
+ internalType: "address",
858
763
  },
859
764
  {
860
- internalType: "address",
861
765
  name: "to",
862
766
  type: "address",
767
+ internalType: "address",
863
768
  },
864
769
  ],
865
- name: "transferAccountOwnership",
866
770
  outputs: [],
867
771
  stateMutability: "nonpayable",
868
- type: "function",
869
772
  },
870
773
  {
871
- inputs: [],
774
+ type: "function",
872
775
  name: "underlying",
776
+ inputs: [],
873
777
  outputs: [
874
778
  {
875
- internalType: "address",
876
779
  name: "",
877
780
  type: "address",
781
+ internalType: "address",
878
782
  },
879
783
  ],
880
784
  stateMutability: "view",
881
- type: "function",
882
785
  },
883
786
  {
884
- inputs: [],
787
+ type: "function",
885
788
  name: "universalAdapter",
789
+ inputs: [],
886
790
  outputs: [
887
791
  {
888
- internalType: "address",
889
792
  name: "",
890
793
  type: "address",
794
+ internalType: "address",
891
795
  },
892
796
  ],
893
797
  stateMutability: "view",
894
- type: "function",
895
798
  },
896
799
  {
897
- inputs: [],
800
+ type: "function",
898
801
  name: "version",
802
+ inputs: [],
899
803
  outputs: [
900
804
  {
901
- internalType: "uint256",
902
805
  name: "",
903
806
  type: "uint256",
807
+ internalType: "uint256",
904
808
  },
905
809
  ],
906
810
  stateMutability: "view",
907
- type: "function",
908
811
  },
909
812
  {
910
- inputs: [],
813
+ type: "function",
911
814
  name: "wethAddress",
815
+ inputs: [],
912
816
  outputs: [
913
817
  {
914
- internalType: "address",
915
818
  name: "",
916
819
  type: "address",
820
+ internalType: "address",
917
821
  },
918
822
  ],
919
823
  stateMutability: "view",
920
- type: "function",
824
+ },
825
+ {
826
+ type: "event",
827
+ name: "ExecuteOrder",
828
+ inputs: [
829
+ {
830
+ name: "borrower",
831
+ type: "address",
832
+ indexed: true,
833
+ internalType: "address",
834
+ },
835
+ {
836
+ name: "target",
837
+ type: "address",
838
+ indexed: true,
839
+ internalType: "address",
840
+ },
841
+ ],
842
+ anonymous: false,
843
+ },
844
+ {
845
+ type: "event",
846
+ name: "NewConfigurator",
847
+ inputs: [
848
+ {
849
+ name: "newConfigurator",
850
+ type: "address",
851
+ indexed: true,
852
+ internalType: "address",
853
+ },
854
+ ],
855
+ anonymous: false,
856
+ },
857
+ {
858
+ type: "error",
859
+ name: "AdaptersOrCreditFacadeOnlyException",
860
+ inputs: [],
861
+ },
862
+ {
863
+ type: "error",
864
+ name: "AllowanceFailedException",
865
+ inputs: [],
866
+ },
867
+ {
868
+ type: "error",
869
+ name: "CreditConfiguratorOnlyException",
870
+ inputs: [],
871
+ },
872
+ {
873
+ type: "error",
874
+ name: "CreditFacadeOnlyException",
875
+ inputs: [],
876
+ },
877
+ {
878
+ type: "error",
879
+ name: "HasNoOpenedAccountException",
880
+ inputs: [],
881
+ },
882
+ {
883
+ type: "error",
884
+ name: "NotEnoughCollateralException",
885
+ inputs: [],
886
+ },
887
+ {
888
+ type: "error",
889
+ name: "ReentrancyLockException",
890
+ inputs: [],
891
+ },
892
+ {
893
+ type: "error",
894
+ name: "TargetContractNotAllowedException",
895
+ inputs: [],
896
+ },
897
+ {
898
+ type: "error",
899
+ name: "TokenAlreadyAddedException",
900
+ inputs: [],
901
+ },
902
+ {
903
+ type: "error",
904
+ name: "TokenNotAllowedException",
905
+ inputs: [],
906
+ },
907
+ {
908
+ type: "error",
909
+ name: "TooManyEnabledTokensException",
910
+ inputs: [],
911
+ },
912
+ {
913
+ type: "error",
914
+ name: "TooManyTokensException",
915
+ inputs: [],
916
+ },
917
+ {
918
+ type: "error",
919
+ name: "ZeroAddressOrUserAlreadyHasAccountException",
920
+ inputs: [],
921
921
  },
922
922
  ];
923
923
  class ICreditManagerV2__factory {