@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
@@ -3,1012 +3,1020 @@ import type { Provider } from "@ethersproject/providers";
3
3
  import type { ICreditManagerV3, ICreditManagerV3Interface } from "../../ICreditManagerV3.sol/ICreditManagerV3";
4
4
  export declare class ICreditManagerV3__factory {
5
5
  static readonly abi: readonly [{
6
- readonly anonymous: false;
7
- readonly inputs: readonly [{
8
- readonly indexed: true;
9
- readonly internalType: "address";
10
- readonly name: "newConfigurator";
11
- readonly type: "address";
12
- }];
13
- readonly name: "SetCreditConfigurator";
14
- readonly type: "event";
15
- }, {
16
- readonly inputs: readonly [];
6
+ readonly type: "function";
17
7
  readonly name: "accountFactory";
8
+ readonly inputs: readonly [];
18
9
  readonly outputs: readonly [{
19
- readonly internalType: "address";
20
10
  readonly name: "";
21
11
  readonly type: "address";
12
+ readonly internalType: "address";
22
13
  }];
23
14
  readonly stateMutability: "view";
24
- readonly type: "function";
25
15
  }, {
16
+ readonly type: "function";
17
+ readonly name: "adapterToContract";
26
18
  readonly inputs: readonly [{
27
- readonly internalType: "address";
28
19
  readonly name: "adapter";
29
20
  readonly type: "address";
21
+ readonly internalType: "address";
30
22
  }];
31
- readonly name: "adapterToContract";
32
23
  readonly outputs: readonly [{
33
- readonly internalType: "address";
34
24
  readonly name: "targetContract";
35
25
  readonly type: "address";
26
+ readonly internalType: "address";
36
27
  }];
37
28
  readonly stateMutability: "view";
38
- readonly type: "function";
39
29
  }, {
30
+ readonly type: "function";
31
+ readonly name: "addCollateral";
40
32
  readonly inputs: readonly [{
41
- readonly internalType: "address";
42
33
  readonly name: "payer";
43
34
  readonly type: "address";
44
- }, {
45
35
  readonly internalType: "address";
36
+ }, {
46
37
  readonly name: "creditAccount";
47
38
  readonly type: "address";
48
- }, {
49
39
  readonly internalType: "address";
40
+ }, {
50
41
  readonly name: "token";
51
42
  readonly type: "address";
43
+ readonly internalType: "address";
52
44
  }, {
53
- readonly internalType: "uint256";
54
45
  readonly name: "amount";
55
46
  readonly type: "uint256";
47
+ readonly internalType: "uint256";
56
48
  }];
57
- readonly name: "addCollateral";
58
49
  readonly outputs: readonly [{
59
- readonly internalType: "uint256";
60
- readonly name: "tokenMask";
50
+ readonly name: "tokensToEnable";
61
51
  readonly type: "uint256";
52
+ readonly internalType: "uint256";
62
53
  }];
63
54
  readonly stateMutability: "nonpayable";
64
- readonly type: "function";
65
55
  }, {
56
+ readonly type: "function";
57
+ readonly name: "addToken";
66
58
  readonly inputs: readonly [{
67
- readonly internalType: "address";
68
59
  readonly name: "token";
69
60
  readonly type: "address";
61
+ readonly internalType: "address";
70
62
  }];
71
- readonly name: "addToken";
72
63
  readonly outputs: readonly [];
73
64
  readonly stateMutability: "nonpayable";
74
- readonly type: "function";
75
65
  }, {
76
- readonly inputs: readonly [];
66
+ readonly type: "function";
77
67
  readonly name: "addressProvider";
68
+ readonly inputs: readonly [];
78
69
  readonly outputs: readonly [{
79
- readonly internalType: "address";
80
70
  readonly name: "";
81
71
  readonly type: "address";
72
+ readonly internalType: "address";
82
73
  }];
83
74
  readonly stateMutability: "view";
84
- readonly type: "function";
85
75
  }, {
76
+ readonly type: "function";
77
+ readonly name: "approveCreditAccount";
86
78
  readonly inputs: readonly [{
87
- readonly internalType: "address";
88
79
  readonly name: "token";
89
80
  readonly type: "address";
81
+ readonly internalType: "address";
90
82
  }, {
91
- readonly internalType: "uint256";
92
83
  readonly name: "amount";
93
84
  readonly type: "uint256";
85
+ readonly internalType: "uint256";
94
86
  }];
95
- readonly name: "approveCreditAccount";
96
87
  readonly outputs: readonly [];
97
88
  readonly stateMutability: "nonpayable";
98
- readonly type: "function";
99
89
  }, {
100
- readonly inputs: readonly [{
101
- readonly internalType: "address";
102
- readonly name: "creditAccount";
103
- readonly type: "address";
104
- }, {
105
- readonly internalType: "enum CollateralCalcTask";
106
- readonly name: "task";
107
- readonly type: "uint8";
108
- }];
109
- readonly name: "calcDebtAndCollateral";
110
- readonly outputs: readonly [{
111
- readonly components: readonly [{
112
- readonly internalType: "uint256";
113
- readonly name: "debt";
114
- readonly type: "uint256";
115
- }, {
116
- readonly internalType: "uint256";
117
- readonly name: "cumulativeIndexNow";
118
- readonly type: "uint256";
119
- }, {
120
- readonly internalType: "uint256";
121
- readonly name: "cumulativeIndexLastUpdate";
122
- readonly type: "uint256";
123
- }, {
124
- readonly internalType: "uint128";
125
- readonly name: "cumulativeQuotaInterest";
126
- readonly type: "uint128";
127
- }, {
128
- readonly internalType: "uint256";
129
- readonly name: "accruedInterest";
130
- readonly type: "uint256";
131
- }, {
132
- readonly internalType: "uint256";
133
- readonly name: "accruedFees";
134
- readonly type: "uint256";
135
- }, {
136
- readonly internalType: "uint256";
137
- readonly name: "totalDebtUSD";
138
- readonly type: "uint256";
139
- }, {
140
- readonly internalType: "uint256";
141
- readonly name: "totalValue";
142
- readonly type: "uint256";
143
- }, {
144
- readonly internalType: "uint256";
145
- readonly name: "totalValueUSD";
146
- readonly type: "uint256";
147
- }, {
148
- readonly internalType: "uint256";
149
- readonly name: "twvUSD";
150
- readonly type: "uint256";
151
- }, {
152
- readonly internalType: "uint256";
153
- readonly name: "enabledTokensMask";
154
- readonly type: "uint256";
155
- }, {
156
- readonly internalType: "uint256";
157
- readonly name: "quotedTokensMask";
158
- readonly type: "uint256";
159
- }, {
160
- readonly internalType: "address[]";
161
- readonly name: "quotedTokens";
162
- readonly type: "address[]";
163
- }, {
164
- readonly internalType: "address";
165
- readonly name: "_poolQuotaKeeper";
166
- readonly type: "address";
167
- }];
168
- readonly internalType: "struct CollateralDebtData";
169
- readonly name: "cdd";
170
- readonly type: "tuple";
171
- }];
172
- readonly stateMutability: "view";
173
90
  readonly type: "function";
174
- }, {
91
+ readonly name: "approveToken";
175
92
  readonly inputs: readonly [{
176
- readonly internalType: "address";
177
93
  readonly name: "creditAccount";
178
94
  readonly type: "address";
95
+ readonly internalType: "address";
179
96
  }, {
97
+ readonly name: "token";
98
+ readonly type: "address";
180
99
  readonly internalType: "address";
181
- readonly name: "to";
100
+ }, {
101
+ readonly name: "spender";
182
102
  readonly type: "address";
103
+ readonly internalType: "address";
183
104
  }, {
184
- readonly internalType: "enum ClaimAction";
185
- readonly name: "action";
186
- readonly type: "uint8";
187
- }];
188
- readonly name: "claimWithdrawals";
189
- readonly outputs: readonly [{
190
- readonly internalType: "uint256";
191
- readonly name: "tokensToEnable";
105
+ readonly name: "amount";
192
106
  readonly type: "uint256";
107
+ readonly internalType: "uint256";
193
108
  }];
109
+ readonly outputs: readonly [];
194
110
  readonly stateMutability: "nonpayable";
195
- readonly type: "function";
196
111
  }, {
112
+ readonly type: "function";
113
+ readonly name: "calcDebtAndCollateral";
197
114
  readonly inputs: readonly [{
198
- readonly internalType: "address";
199
115
  readonly name: "creditAccount";
200
116
  readonly type: "address";
117
+ readonly internalType: "address";
201
118
  }, {
202
- readonly internalType: "enum ClosureAction";
203
- readonly name: "closureAction";
119
+ readonly name: "task";
204
120
  readonly type: "uint8";
205
- }, {
121
+ readonly internalType: "enum CollateralCalcTask";
122
+ }];
123
+ readonly outputs: readonly [{
124
+ readonly name: "cdd";
125
+ readonly type: "tuple";
126
+ readonly internalType: "struct CollateralDebtData";
206
127
  readonly components: readonly [{
207
- readonly internalType: "uint256";
208
128
  readonly name: "debt";
209
129
  readonly type: "uint256";
210
- }, {
211
130
  readonly internalType: "uint256";
131
+ }, {
212
132
  readonly name: "cumulativeIndexNow";
213
133
  readonly type: "uint256";
214
- }, {
215
134
  readonly internalType: "uint256";
135
+ }, {
216
136
  readonly name: "cumulativeIndexLastUpdate";
217
137
  readonly type: "uint256";
138
+ readonly internalType: "uint256";
218
139
  }, {
219
- readonly internalType: "uint128";
220
140
  readonly name: "cumulativeQuotaInterest";
221
141
  readonly type: "uint128";
142
+ readonly internalType: "uint128";
222
143
  }, {
223
- readonly internalType: "uint256";
224
144
  readonly name: "accruedInterest";
225
145
  readonly type: "uint256";
226
- }, {
227
146
  readonly internalType: "uint256";
147
+ }, {
228
148
  readonly name: "accruedFees";
229
149
  readonly type: "uint256";
230
- }, {
231
150
  readonly internalType: "uint256";
151
+ }, {
232
152
  readonly name: "totalDebtUSD";
233
153
  readonly type: "uint256";
234
- }, {
235
154
  readonly internalType: "uint256";
155
+ }, {
236
156
  readonly name: "totalValue";
237
157
  readonly type: "uint256";
238
- }, {
239
158
  readonly internalType: "uint256";
159
+ }, {
240
160
  readonly name: "totalValueUSD";
241
161
  readonly type: "uint256";
242
- }, {
243
162
  readonly internalType: "uint256";
163
+ }, {
244
164
  readonly name: "twvUSD";
245
165
  readonly type: "uint256";
246
- }, {
247
166
  readonly internalType: "uint256";
167
+ }, {
248
168
  readonly name: "enabledTokensMask";
249
169
  readonly type: "uint256";
250
- }, {
251
170
  readonly internalType: "uint256";
171
+ }, {
252
172
  readonly name: "quotedTokensMask";
253
173
  readonly type: "uint256";
174
+ readonly internalType: "uint256";
254
175
  }, {
255
- readonly internalType: "address[]";
256
176
  readonly name: "quotedTokens";
257
177
  readonly type: "address[]";
178
+ readonly internalType: "address[]";
258
179
  }, {
259
- readonly internalType: "address";
260
180
  readonly name: "_poolQuotaKeeper";
261
181
  readonly type: "address";
182
+ readonly internalType: "address";
262
183
  }];
263
- readonly internalType: "struct CollateralDebtData";
264
- readonly name: "collateralDebtData";
265
- readonly type: "tuple";
266
- }, {
267
- readonly internalType: "address";
268
- readonly name: "payer";
269
- readonly type: "address";
270
- }, {
271
- readonly internalType: "address";
272
- readonly name: "to";
273
- readonly type: "address";
274
- }, {
275
- readonly internalType: "uint256";
276
- readonly name: "skipTokensMask";
277
- readonly type: "uint256";
278
- }, {
279
- readonly internalType: "bool";
280
- readonly name: "convertToETH";
281
- readonly type: "bool";
282
184
  }];
185
+ readonly stateMutability: "view";
186
+ }, {
187
+ readonly type: "function";
283
188
  readonly name: "closeCreditAccount";
284
- readonly outputs: readonly [{
285
- readonly internalType: "uint256";
286
- readonly name: "remainingFunds";
287
- readonly type: "uint256";
288
- }, {
289
- readonly internalType: "uint256";
290
- readonly name: "loss";
291
- readonly type: "uint256";
189
+ readonly inputs: readonly [{
190
+ readonly name: "creditAccount";
191
+ readonly type: "address";
192
+ readonly internalType: "address";
292
193
  }];
194
+ readonly outputs: readonly [];
293
195
  readonly stateMutability: "nonpayable";
294
- readonly type: "function";
295
196
  }, {
197
+ readonly type: "function";
198
+ readonly name: "collateralTokenByMask";
296
199
  readonly inputs: readonly [{
297
- readonly internalType: "uint256";
298
200
  readonly name: "tokenMask";
299
201
  readonly type: "uint256";
202
+ readonly internalType: "uint256";
300
203
  }];
301
- readonly name: "collateralTokenByMask";
302
204
  readonly outputs: readonly [{
303
- readonly internalType: "address";
304
205
  readonly name: "token";
305
206
  readonly type: "address";
207
+ readonly internalType: "address";
306
208
  }, {
307
- readonly internalType: "uint16";
308
209
  readonly name: "liquidationThreshold";
309
210
  readonly type: "uint16";
211
+ readonly internalType: "uint16";
310
212
  }];
311
213
  readonly stateMutability: "view";
312
- readonly type: "function";
313
214
  }, {
314
- readonly inputs: readonly [];
215
+ readonly type: "function";
315
216
  readonly name: "collateralTokensCount";
217
+ readonly inputs: readonly [];
316
218
  readonly outputs: readonly [{
317
- readonly internalType: "uint8";
318
219
  readonly name: "";
319
220
  readonly type: "uint8";
221
+ readonly internalType: "uint8";
320
222
  }];
321
223
  readonly stateMutability: "view";
322
- readonly type: "function";
323
224
  }, {
225
+ readonly type: "function";
226
+ readonly name: "contractToAdapter";
324
227
  readonly inputs: readonly [{
325
- readonly internalType: "address";
326
228
  readonly name: "targetContract";
327
229
  readonly type: "address";
230
+ readonly internalType: "address";
328
231
  }];
329
- readonly name: "contractToAdapter";
330
232
  readonly outputs: readonly [{
331
- readonly internalType: "address";
332
233
  readonly name: "adapter";
333
234
  readonly type: "address";
235
+ readonly internalType: "address";
334
236
  }];
335
237
  readonly stateMutability: "view";
336
- readonly type: "function";
337
238
  }, {
239
+ readonly type: "function";
240
+ readonly name: "creditAccountInfo";
338
241
  readonly inputs: readonly [{
339
- readonly internalType: "address";
340
242
  readonly name: "creditAccount";
341
243
  readonly type: "address";
244
+ readonly internalType: "address";
342
245
  }];
343
- readonly name: "creditAccountInfo";
344
246
  readonly outputs: readonly [{
345
- readonly internalType: "uint256";
346
247
  readonly name: "debt";
347
248
  readonly type: "uint256";
348
- }, {
349
249
  readonly internalType: "uint256";
250
+ }, {
350
251
  readonly name: "cumulativeIndexLastUpdate";
351
252
  readonly type: "uint256";
253
+ readonly internalType: "uint256";
352
254
  }, {
353
- readonly internalType: "uint128";
354
255
  readonly name: "cumulativeQuotaInterest";
355
256
  readonly type: "uint128";
356
- }, {
357
257
  readonly internalType: "uint128";
258
+ }, {
358
259
  readonly name: "quotaFees";
359
260
  readonly type: "uint128";
261
+ readonly internalType: "uint128";
360
262
  }, {
361
- readonly internalType: "uint256";
362
263
  readonly name: "enabledTokensMask";
363
264
  readonly type: "uint256";
265
+ readonly internalType: "uint256";
364
266
  }, {
365
- readonly internalType: "uint16";
366
267
  readonly name: "flags";
367
268
  readonly type: "uint16";
269
+ readonly internalType: "uint16";
368
270
  }, {
369
- readonly internalType: "uint64";
370
271
  readonly name: "lastDebtUpdate";
371
272
  readonly type: "uint64";
273
+ readonly internalType: "uint64";
372
274
  }, {
373
- readonly internalType: "address";
374
275
  readonly name: "borrower";
375
276
  readonly type: "address";
277
+ readonly internalType: "address";
376
278
  }];
377
279
  readonly stateMutability: "view";
378
- readonly type: "function";
379
280
  }, {
281
+ readonly type: "function";
282
+ readonly name: "creditAccounts";
380
283
  readonly inputs: readonly [{
381
- readonly internalType: "uint256";
382
284
  readonly name: "offset";
383
285
  readonly type: "uint256";
384
- }, {
385
286
  readonly internalType: "uint256";
287
+ }, {
386
288
  readonly name: "limit";
387
289
  readonly type: "uint256";
290
+ readonly internalType: "uint256";
388
291
  }];
389
- readonly name: "creditAccounts";
390
292
  readonly outputs: readonly [{
391
- readonly internalType: "address[]";
392
293
  readonly name: "";
393
294
  readonly type: "address[]";
295
+ readonly internalType: "address[]";
394
296
  }];
395
297
  readonly stateMutability: "view";
396
- readonly type: "function";
397
298
  }, {
398
- readonly inputs: readonly [];
299
+ readonly type: "function";
399
300
  readonly name: "creditAccounts";
301
+ readonly inputs: readonly [];
400
302
  readonly outputs: readonly [{
401
- readonly internalType: "address[]";
402
303
  readonly name: "";
403
304
  readonly type: "address[]";
305
+ readonly internalType: "address[]";
404
306
  }];
405
307
  readonly stateMutability: "view";
406
- readonly type: "function";
407
308
  }, {
408
- readonly inputs: readonly [];
309
+ readonly type: "function";
409
310
  readonly name: "creditAccountsLen";
311
+ readonly inputs: readonly [];
410
312
  readonly outputs: readonly [{
411
- readonly internalType: "uint256";
412
313
  readonly name: "";
413
314
  readonly type: "uint256";
315
+ readonly internalType: "uint256";
414
316
  }];
415
317
  readonly stateMutability: "view";
416
- readonly type: "function";
417
318
  }, {
418
- readonly inputs: readonly [];
319
+ readonly type: "function";
419
320
  readonly name: "creditConfigurator";
321
+ readonly inputs: readonly [];
420
322
  readonly outputs: readonly [{
421
- readonly internalType: "address";
422
323
  readonly name: "";
423
324
  readonly type: "address";
325
+ readonly internalType: "address";
424
326
  }];
425
327
  readonly stateMutability: "view";
426
- readonly type: "function";
427
328
  }, {
428
- readonly inputs: readonly [];
329
+ readonly type: "function";
429
330
  readonly name: "creditFacade";
331
+ readonly inputs: readonly [];
430
332
  readonly outputs: readonly [{
431
- readonly internalType: "address";
432
333
  readonly name: "";
433
334
  readonly type: "address";
335
+ readonly internalType: "address";
434
336
  }];
435
337
  readonly stateMutability: "view";
436
- readonly type: "function";
437
338
  }, {
339
+ readonly type: "function";
340
+ readonly name: "enabledTokensMaskOf";
438
341
  readonly inputs: readonly [{
439
- readonly internalType: "address";
440
342
  readonly name: "creditAccount";
441
343
  readonly type: "address";
344
+ readonly internalType: "address";
442
345
  }];
443
- readonly name: "enabledTokensMaskOf";
444
346
  readonly outputs: readonly [{
445
- readonly internalType: "uint256";
446
347
  readonly name: "";
447
348
  readonly type: "uint256";
349
+ readonly internalType: "uint256";
448
350
  }];
449
351
  readonly stateMutability: "view";
450
- readonly type: "function";
451
352
  }, {
353
+ readonly type: "function";
354
+ readonly name: "execute";
452
355
  readonly inputs: readonly [{
453
- readonly internalType: "bytes";
454
356
  readonly name: "data";
455
357
  readonly type: "bytes";
358
+ readonly internalType: "bytes";
456
359
  }];
457
- readonly name: "execute";
458
360
  readonly outputs: readonly [{
459
- readonly internalType: "bytes";
460
361
  readonly name: "result";
461
362
  readonly type: "bytes";
363
+ readonly internalType: "bytes";
462
364
  }];
463
365
  readonly stateMutability: "nonpayable";
366
+ }, {
464
367
  readonly type: "function";
368
+ readonly name: "externalCall";
369
+ readonly inputs: readonly [{
370
+ readonly name: "creditAccount";
371
+ readonly type: "address";
372
+ readonly internalType: "address";
373
+ }, {
374
+ readonly name: "target";
375
+ readonly type: "address";
376
+ readonly internalType: "address";
377
+ }, {
378
+ readonly name: "callData";
379
+ readonly type: "bytes";
380
+ readonly internalType: "bytes";
381
+ }];
382
+ readonly outputs: readonly [{
383
+ readonly name: "result";
384
+ readonly type: "bytes";
385
+ readonly internalType: "bytes";
386
+ }];
387
+ readonly stateMutability: "nonpayable";
465
388
  }, {
466
- readonly inputs: readonly [];
389
+ readonly type: "function";
467
390
  readonly name: "fees";
391
+ readonly inputs: readonly [];
468
392
  readonly outputs: readonly [{
469
- readonly internalType: "uint16";
470
393
  readonly name: "feeInterest";
471
394
  readonly type: "uint16";
472
- }, {
473
395
  readonly internalType: "uint16";
396
+ }, {
474
397
  readonly name: "feeLiquidation";
475
398
  readonly type: "uint16";
476
- }, {
477
399
  readonly internalType: "uint16";
400
+ }, {
478
401
  readonly name: "liquidationDiscount";
479
402
  readonly type: "uint16";
480
- }, {
481
403
  readonly internalType: "uint16";
404
+ }, {
482
405
  readonly name: "feeLiquidationExpired";
483
406
  readonly type: "uint16";
484
- }, {
485
407
  readonly internalType: "uint16";
408
+ }, {
486
409
  readonly name: "liquidationDiscountExpired";
487
410
  readonly type: "uint16";
411
+ readonly internalType: "uint16";
488
412
  }];
489
413
  readonly stateMutability: "view";
490
- readonly type: "function";
491
414
  }, {
415
+ readonly type: "function";
416
+ readonly name: "flagsOf";
492
417
  readonly inputs: readonly [{
493
- readonly internalType: "address";
494
418
  readonly name: "creditAccount";
495
419
  readonly type: "address";
420
+ readonly internalType: "address";
496
421
  }];
497
- readonly name: "flagsOf";
498
422
  readonly outputs: readonly [{
499
- readonly internalType: "uint16";
500
423
  readonly name: "";
501
424
  readonly type: "uint16";
425
+ readonly internalType: "uint16";
502
426
  }];
503
427
  readonly stateMutability: "view";
504
- readonly type: "function";
505
428
  }, {
429
+ readonly type: "function";
430
+ readonly name: "fullCollateralCheck";
506
431
  readonly inputs: readonly [{
507
- readonly internalType: "address";
508
432
  readonly name: "creditAccount";
509
433
  readonly type: "address";
434
+ readonly internalType: "address";
510
435
  }, {
511
- readonly internalType: "uint256";
512
436
  readonly name: "enabledTokensMask";
513
437
  readonly type: "uint256";
438
+ readonly internalType: "uint256";
514
439
  }, {
515
- readonly internalType: "uint256[]";
516
440
  readonly name: "collateralHints";
517
441
  readonly type: "uint256[]";
442
+ readonly internalType: "uint256[]";
518
443
  }, {
519
- readonly internalType: "uint16";
520
444
  readonly name: "minHealthFactor";
521
445
  readonly type: "uint16";
446
+ readonly internalType: "uint16";
447
+ }, {
448
+ readonly name: "useSafePrices";
449
+ readonly type: "bool";
450
+ readonly internalType: "bool";
522
451
  }];
523
- readonly name: "fullCollateralCheck";
524
452
  readonly outputs: readonly [{
525
- readonly internalType: "uint256";
526
453
  readonly name: "enabledTokensMaskAfter";
527
454
  readonly type: "uint256";
455
+ readonly internalType: "uint256";
528
456
  }];
529
457
  readonly stateMutability: "nonpayable";
530
- readonly type: "function";
531
458
  }, {
532
- readonly inputs: readonly [];
459
+ readonly type: "function";
533
460
  readonly name: "getActiveCreditAccountOrRevert";
461
+ readonly inputs: readonly [];
534
462
  readonly outputs: readonly [{
535
- readonly internalType: "address";
536
463
  readonly name: "creditAccount";
537
464
  readonly type: "address";
465
+ readonly internalType: "address";
538
466
  }];
539
467
  readonly stateMutability: "view";
540
- readonly type: "function";
541
468
  }, {
469
+ readonly type: "function";
470
+ readonly name: "getBorrowerOrRevert";
542
471
  readonly inputs: readonly [{
543
- readonly internalType: "address";
544
472
  readonly name: "creditAccount";
545
473
  readonly type: "address";
474
+ readonly internalType: "address";
546
475
  }];
547
- readonly name: "getBorrowerOrRevert";
548
476
  readonly outputs: readonly [{
549
- readonly internalType: "address";
550
477
  readonly name: "borrower";
551
478
  readonly type: "address";
479
+ readonly internalType: "address";
552
480
  }];
553
481
  readonly stateMutability: "view";
554
- readonly type: "function";
555
482
  }, {
483
+ readonly type: "function";
484
+ readonly name: "getTokenByMask";
556
485
  readonly inputs: readonly [{
557
- readonly internalType: "uint256";
558
486
  readonly name: "tokenMask";
559
487
  readonly type: "uint256";
488
+ readonly internalType: "uint256";
560
489
  }];
561
- readonly name: "getTokenByMask";
562
490
  readonly outputs: readonly [{
563
- readonly internalType: "address";
564
491
  readonly name: "token";
565
492
  readonly type: "address";
493
+ readonly internalType: "address";
566
494
  }];
567
495
  readonly stateMutability: "view";
568
- readonly type: "function";
569
496
  }, {
497
+ readonly type: "function";
498
+ readonly name: "getTokenMaskOrRevert";
570
499
  readonly inputs: readonly [{
571
- readonly internalType: "address";
572
500
  readonly name: "token";
573
501
  readonly type: "address";
502
+ readonly internalType: "address";
574
503
  }];
575
- readonly name: "getTokenMaskOrRevert";
576
504
  readonly outputs: readonly [{
577
- readonly internalType: "uint256";
578
505
  readonly name: "tokenMask";
579
506
  readonly type: "uint256";
507
+ readonly internalType: "uint256";
580
508
  }];
581
509
  readonly stateMutability: "view";
582
- readonly type: "function";
583
510
  }, {
511
+ readonly type: "function";
512
+ readonly name: "isLiquidatable";
584
513
  readonly inputs: readonly [{
585
- readonly internalType: "address";
586
514
  readonly name: "creditAccount";
587
515
  readonly type: "address";
516
+ readonly internalType: "address";
588
517
  }, {
589
- readonly internalType: "uint16";
590
518
  readonly name: "minHealthFactor";
591
519
  readonly type: "uint16";
520
+ readonly internalType: "uint16";
592
521
  }];
593
- readonly name: "isLiquidatable";
594
522
  readonly outputs: readonly [{
595
- readonly internalType: "bool";
596
523
  readonly name: "";
597
524
  readonly type: "bool";
525
+ readonly internalType: "bool";
598
526
  }];
599
527
  readonly stateMutability: "view";
600
- readonly type: "function";
601
528
  }, {
529
+ readonly type: "function";
530
+ readonly name: "liquidateCreditAccount";
602
531
  readonly inputs: readonly [{
532
+ readonly name: "creditAccount";
533
+ readonly type: "address";
603
534
  readonly internalType: "address";
604
- readonly name: "token";
535
+ }, {
536
+ readonly name: "collateralDebtData";
537
+ readonly type: "tuple";
538
+ readonly internalType: "struct CollateralDebtData";
539
+ readonly components: readonly [{
540
+ readonly name: "debt";
541
+ readonly type: "uint256";
542
+ readonly internalType: "uint256";
543
+ }, {
544
+ readonly name: "cumulativeIndexNow";
545
+ readonly type: "uint256";
546
+ readonly internalType: "uint256";
547
+ }, {
548
+ readonly name: "cumulativeIndexLastUpdate";
549
+ readonly type: "uint256";
550
+ readonly internalType: "uint256";
551
+ }, {
552
+ readonly name: "cumulativeQuotaInterest";
553
+ readonly type: "uint128";
554
+ readonly internalType: "uint128";
555
+ }, {
556
+ readonly name: "accruedInterest";
557
+ readonly type: "uint256";
558
+ readonly internalType: "uint256";
559
+ }, {
560
+ readonly name: "accruedFees";
561
+ readonly type: "uint256";
562
+ readonly internalType: "uint256";
563
+ }, {
564
+ readonly name: "totalDebtUSD";
565
+ readonly type: "uint256";
566
+ readonly internalType: "uint256";
567
+ }, {
568
+ readonly name: "totalValue";
569
+ readonly type: "uint256";
570
+ readonly internalType: "uint256";
571
+ }, {
572
+ readonly name: "totalValueUSD";
573
+ readonly type: "uint256";
574
+ readonly internalType: "uint256";
575
+ }, {
576
+ readonly name: "twvUSD";
577
+ readonly type: "uint256";
578
+ readonly internalType: "uint256";
579
+ }, {
580
+ readonly name: "enabledTokensMask";
581
+ readonly type: "uint256";
582
+ readonly internalType: "uint256";
583
+ }, {
584
+ readonly name: "quotedTokensMask";
585
+ readonly type: "uint256";
586
+ readonly internalType: "uint256";
587
+ }, {
588
+ readonly name: "quotedTokens";
589
+ readonly type: "address[]";
590
+ readonly internalType: "address[]";
591
+ }, {
592
+ readonly name: "_poolQuotaKeeper";
593
+ readonly type: "address";
594
+ readonly internalType: "address";
595
+ }];
596
+ }, {
597
+ readonly name: "to";
605
598
  readonly type: "address";
599
+ readonly internalType: "address";
600
+ }, {
601
+ readonly name: "isExpired";
602
+ readonly type: "bool";
603
+ readonly internalType: "bool";
604
+ }];
605
+ readonly outputs: readonly [{
606
+ readonly name: "remainingFunds";
607
+ readonly type: "uint256";
608
+ readonly internalType: "uint256";
609
+ }, {
610
+ readonly name: "loss";
611
+ readonly type: "uint256";
612
+ readonly internalType: "uint256";
606
613
  }];
614
+ readonly stateMutability: "nonpayable";
615
+ }, {
616
+ readonly type: "function";
607
617
  readonly name: "liquidationThresholds";
618
+ readonly inputs: readonly [{
619
+ readonly name: "token";
620
+ readonly type: "address";
621
+ readonly internalType: "address";
622
+ }];
608
623
  readonly outputs: readonly [{
609
- readonly internalType: "uint16";
610
624
  readonly name: "lt";
611
625
  readonly type: "uint16";
626
+ readonly internalType: "uint16";
612
627
  }];
613
628
  readonly stateMutability: "view";
614
- readonly type: "function";
615
629
  }, {
630
+ readonly type: "function";
631
+ readonly name: "ltParams";
616
632
  readonly inputs: readonly [{
617
- readonly internalType: "address";
618
633
  readonly name: "token";
619
634
  readonly type: "address";
635
+ readonly internalType: "address";
620
636
  }];
621
- readonly name: "ltParams";
622
637
  readonly outputs: readonly [{
623
- readonly internalType: "uint16";
624
638
  readonly name: "ltInitial";
625
639
  readonly type: "uint16";
626
- }, {
627
640
  readonly internalType: "uint16";
641
+ }, {
628
642
  readonly name: "ltFinal";
629
643
  readonly type: "uint16";
644
+ readonly internalType: "uint16";
630
645
  }, {
631
- readonly internalType: "uint40";
632
646
  readonly name: "timestampRampStart";
633
647
  readonly type: "uint40";
648
+ readonly internalType: "uint40";
634
649
  }, {
635
- readonly internalType: "uint24";
636
650
  readonly name: "rampDuration";
637
651
  readonly type: "uint24";
652
+ readonly internalType: "uint24";
638
653
  }];
639
654
  readonly stateMutability: "view";
640
- readonly type: "function";
641
655
  }, {
656
+ readonly type: "function";
657
+ readonly name: "manageDebt";
642
658
  readonly inputs: readonly [{
643
- readonly internalType: "address";
644
659
  readonly name: "creditAccount";
645
660
  readonly type: "address";
661
+ readonly internalType: "address";
646
662
  }, {
647
- readonly internalType: "uint256";
648
663
  readonly name: "amount";
649
664
  readonly type: "uint256";
650
- }, {
651
665
  readonly internalType: "uint256";
666
+ }, {
652
667
  readonly name: "enabledTokensMask";
653
668
  readonly type: "uint256";
669
+ readonly internalType: "uint256";
654
670
  }, {
655
- readonly internalType: "enum ManageDebtAction";
656
671
  readonly name: "action";
657
672
  readonly type: "uint8";
673
+ readonly internalType: "enum ManageDebtAction";
658
674
  }];
659
- readonly name: "manageDebt";
660
675
  readonly outputs: readonly [{
661
- readonly internalType: "uint256";
662
676
  readonly name: "newDebt";
663
677
  readonly type: "uint256";
664
- }, {
665
678
  readonly internalType: "uint256";
679
+ }, {
666
680
  readonly name: "tokensToEnable";
667
681
  readonly type: "uint256";
668
- }, {
669
682
  readonly internalType: "uint256";
683
+ }, {
670
684
  readonly name: "tokensToDisable";
671
685
  readonly type: "uint256";
686
+ readonly internalType: "uint256";
672
687
  }];
673
688
  readonly stateMutability: "nonpayable";
674
- readonly type: "function";
675
689
  }, {
676
- readonly inputs: readonly [];
690
+ readonly type: "function";
677
691
  readonly name: "maxEnabledTokens";
692
+ readonly inputs: readonly [];
678
693
  readonly outputs: readonly [{
679
- readonly internalType: "uint8";
680
694
  readonly name: "";
681
695
  readonly type: "uint8";
696
+ readonly internalType: "uint8";
682
697
  }];
683
698
  readonly stateMutability: "view";
684
- readonly type: "function";
685
699
  }, {
686
- readonly inputs: readonly [];
700
+ readonly type: "function";
687
701
  readonly name: "name";
702
+ readonly inputs: readonly [];
688
703
  readonly outputs: readonly [{
689
- readonly internalType: "string";
690
704
  readonly name: "";
691
705
  readonly type: "string";
706
+ readonly internalType: "string";
692
707
  }];
693
708
  readonly stateMutability: "view";
694
- readonly type: "function";
695
709
  }, {
710
+ readonly type: "function";
711
+ readonly name: "openCreditAccount";
696
712
  readonly inputs: readonly [{
697
- readonly internalType: "address";
698
713
  readonly name: "onBehalfOf";
699
714
  readonly type: "address";
715
+ readonly internalType: "address";
700
716
  }];
701
- readonly name: "openCreditAccount";
702
717
  readonly outputs: readonly [{
703
- readonly internalType: "address";
704
718
  readonly name: "";
705
719
  readonly type: "address";
720
+ readonly internalType: "address";
706
721
  }];
707
722
  readonly stateMutability: "nonpayable";
708
- readonly type: "function";
709
723
  }, {
710
- readonly inputs: readonly [];
724
+ readonly type: "function";
711
725
  readonly name: "pool";
726
+ readonly inputs: readonly [];
712
727
  readonly outputs: readonly [{
713
- readonly internalType: "address";
714
728
  readonly name: "";
715
729
  readonly type: "address";
730
+ readonly internalType: "address";
716
731
  }];
717
732
  readonly stateMutability: "view";
718
- readonly type: "function";
719
733
  }, {
720
- readonly inputs: readonly [];
734
+ readonly type: "function";
721
735
  readonly name: "poolQuotaKeeper";
736
+ readonly inputs: readonly [];
722
737
  readonly outputs: readonly [{
723
- readonly internalType: "address";
724
738
  readonly name: "";
725
739
  readonly type: "address";
740
+ readonly internalType: "address";
726
741
  }];
727
742
  readonly stateMutability: "view";
728
- readonly type: "function";
729
743
  }, {
730
- readonly inputs: readonly [];
744
+ readonly type: "function";
731
745
  readonly name: "priceOracle";
746
+ readonly inputs: readonly [];
732
747
  readonly outputs: readonly [{
733
- readonly internalType: "address";
734
748
  readonly name: "";
735
749
  readonly type: "address";
750
+ readonly internalType: "address";
736
751
  }];
737
752
  readonly stateMutability: "view";
738
- readonly type: "function";
739
753
  }, {
740
- readonly inputs: readonly [];
754
+ readonly type: "function";
741
755
  readonly name: "quotedTokensMask";
756
+ readonly inputs: readonly [];
742
757
  readonly outputs: readonly [{
743
- readonly internalType: "uint256";
744
758
  readonly name: "";
745
759
  readonly type: "uint256";
760
+ readonly internalType: "uint256";
746
761
  }];
747
762
  readonly stateMutability: "view";
748
- readonly type: "function";
749
763
  }, {
764
+ readonly type: "function";
765
+ readonly name: "revokeAdapterAllowances";
750
766
  readonly inputs: readonly [{
751
- readonly internalType: "address";
752
767
  readonly name: "creditAccount";
753
768
  readonly type: "address";
769
+ readonly internalType: "address";
754
770
  }, {
771
+ readonly name: "revocations";
772
+ readonly type: "tuple[]";
773
+ readonly internalType: "struct RevocationPair[]";
755
774
  readonly components: readonly [{
756
- readonly internalType: "address";
757
775
  readonly name: "spender";
758
776
  readonly type: "address";
759
- }, {
760
777
  readonly internalType: "address";
778
+ }, {
761
779
  readonly name: "token";
762
780
  readonly type: "address";
781
+ readonly internalType: "address";
763
782
  }];
764
- readonly internalType: "struct RevocationPair[]";
765
- readonly name: "revocations";
766
- readonly type: "tuple[]";
767
783
  }];
768
- readonly name: "revokeAdapterAllowances";
769
784
  readonly outputs: readonly [];
770
785
  readonly stateMutability: "nonpayable";
771
- readonly type: "function";
772
786
  }, {
773
- readonly inputs: readonly [{
774
- readonly internalType: "address";
775
- readonly name: "creditAccount";
776
- readonly type: "address";
777
- }, {
778
- readonly internalType: "address";
779
- readonly name: "token";
780
- readonly type: "address";
781
- }, {
782
- readonly internalType: "uint256";
783
- readonly name: "amount";
784
- readonly type: "uint256";
785
- }];
786
- readonly name: "scheduleWithdrawal";
787
- readonly outputs: readonly [{
788
- readonly internalType: "uint256";
789
- readonly name: "tokensToDisable";
790
- readonly type: "uint256";
791
- }];
792
- readonly stateMutability: "nonpayable";
793
787
  readonly type: "function";
794
- }, {
788
+ readonly name: "setActiveCreditAccount";
795
789
  readonly inputs: readonly [{
796
- readonly internalType: "address";
797
790
  readonly name: "creditAccount";
798
791
  readonly type: "address";
792
+ readonly internalType: "address";
799
793
  }];
800
- readonly name: "setActiveCreditAccount";
801
794
  readonly outputs: readonly [];
802
795
  readonly stateMutability: "nonpayable";
803
- readonly type: "function";
804
796
  }, {
797
+ readonly type: "function";
798
+ readonly name: "setCollateralTokenData";
805
799
  readonly inputs: readonly [{
806
- readonly internalType: "address";
807
800
  readonly name: "token";
808
801
  readonly type: "address";
802
+ readonly internalType: "address";
809
803
  }, {
810
- readonly internalType: "uint16";
811
804
  readonly name: "ltInitial";
812
805
  readonly type: "uint16";
813
- }, {
814
806
  readonly internalType: "uint16";
807
+ }, {
815
808
  readonly name: "ltFinal";
816
809
  readonly type: "uint16";
810
+ readonly internalType: "uint16";
817
811
  }, {
818
- readonly internalType: "uint40";
819
812
  readonly name: "timestampRampStart";
820
813
  readonly type: "uint40";
814
+ readonly internalType: "uint40";
821
815
  }, {
822
- readonly internalType: "uint24";
823
816
  readonly name: "rampDuration";
824
817
  readonly type: "uint24";
818
+ readonly internalType: "uint24";
825
819
  }];
826
- readonly name: "setCollateralTokenData";
827
820
  readonly outputs: readonly [];
828
821
  readonly stateMutability: "nonpayable";
829
- readonly type: "function";
830
822
  }, {
823
+ readonly type: "function";
824
+ readonly name: "setContractAllowance";
831
825
  readonly inputs: readonly [{
832
- readonly internalType: "address";
833
826
  readonly name: "adapter";
834
827
  readonly type: "address";
835
- }, {
836
828
  readonly internalType: "address";
829
+ }, {
837
830
  readonly name: "targetContract";
838
831
  readonly type: "address";
832
+ readonly internalType: "address";
839
833
  }];
840
- readonly name: "setContractAllowance";
841
834
  readonly outputs: readonly [];
842
835
  readonly stateMutability: "nonpayable";
843
- readonly type: "function";
844
836
  }, {
837
+ readonly type: "function";
838
+ readonly name: "setCreditConfigurator";
845
839
  readonly inputs: readonly [{
846
- readonly internalType: "address";
847
840
  readonly name: "creditConfigurator";
848
841
  readonly type: "address";
842
+ readonly internalType: "address";
849
843
  }];
850
- readonly name: "setCreditConfigurator";
851
844
  readonly outputs: readonly [];
852
845
  readonly stateMutability: "nonpayable";
853
- readonly type: "function";
854
846
  }, {
847
+ readonly type: "function";
848
+ readonly name: "setCreditFacade";
855
849
  readonly inputs: readonly [{
856
- readonly internalType: "address";
857
850
  readonly name: "creditFacade";
858
851
  readonly type: "address";
852
+ readonly internalType: "address";
859
853
  }];
860
- readonly name: "setCreditFacade";
861
854
  readonly outputs: readonly [];
862
855
  readonly stateMutability: "nonpayable";
863
- readonly type: "function";
864
856
  }, {
857
+ readonly type: "function";
858
+ readonly name: "setFees";
865
859
  readonly inputs: readonly [{
866
- readonly internalType: "uint16";
867
860
  readonly name: "feeInterest";
868
861
  readonly type: "uint16";
869
- }, {
870
862
  readonly internalType: "uint16";
863
+ }, {
871
864
  readonly name: "feeLiquidation";
872
865
  readonly type: "uint16";
873
- }, {
874
866
  readonly internalType: "uint16";
867
+ }, {
875
868
  readonly name: "liquidationDiscount";
876
869
  readonly type: "uint16";
877
- }, {
878
870
  readonly internalType: "uint16";
871
+ }, {
879
872
  readonly name: "feeLiquidationExpired";
880
873
  readonly type: "uint16";
881
- }, {
882
874
  readonly internalType: "uint16";
875
+ }, {
883
876
  readonly name: "liquidationDiscountExpired";
884
877
  readonly type: "uint16";
878
+ readonly internalType: "uint16";
885
879
  }];
886
- readonly name: "setFees";
887
880
  readonly outputs: readonly [];
888
881
  readonly stateMutability: "nonpayable";
889
- readonly type: "function";
890
882
  }, {
883
+ readonly type: "function";
884
+ readonly name: "setFlagFor";
891
885
  readonly inputs: readonly [{
892
- readonly internalType: "address";
893
886
  readonly name: "creditAccount";
894
887
  readonly type: "address";
888
+ readonly internalType: "address";
895
889
  }, {
896
- readonly internalType: "uint16";
897
890
  readonly name: "flag";
898
891
  readonly type: "uint16";
892
+ readonly internalType: "uint16";
899
893
  }, {
900
- readonly internalType: "bool";
901
894
  readonly name: "value";
902
895
  readonly type: "bool";
896
+ readonly internalType: "bool";
903
897
  }];
904
- readonly name: "setFlagFor";
905
898
  readonly outputs: readonly [];
906
899
  readonly stateMutability: "nonpayable";
907
- readonly type: "function";
908
900
  }, {
901
+ readonly type: "function";
902
+ readonly name: "setMaxEnabledTokens";
909
903
  readonly inputs: readonly [{
910
- readonly internalType: "uint8";
911
904
  readonly name: "maxEnabledTokens";
912
905
  readonly type: "uint8";
906
+ readonly internalType: "uint8";
913
907
  }];
914
- readonly name: "setMaxEnabledTokens";
915
908
  readonly outputs: readonly [];
916
909
  readonly stateMutability: "nonpayable";
917
- readonly type: "function";
918
910
  }, {
911
+ readonly type: "function";
912
+ readonly name: "setPriceOracle";
919
913
  readonly inputs: readonly [{
920
- readonly internalType: "address";
921
914
  readonly name: "priceOracle";
922
915
  readonly type: "address";
916
+ readonly internalType: "address";
923
917
  }];
924
- readonly name: "setPriceOracle";
925
918
  readonly outputs: readonly [];
926
919
  readonly stateMutability: "nonpayable";
927
- readonly type: "function";
928
920
  }, {
921
+ readonly type: "function";
922
+ readonly name: "setQuotedMask";
929
923
  readonly inputs: readonly [{
930
- readonly internalType: "uint256";
931
924
  readonly name: "quotedTokensMask";
932
925
  readonly type: "uint256";
926
+ readonly internalType: "uint256";
933
927
  }];
934
- readonly name: "setQuotedMask";
935
928
  readonly outputs: readonly [];
936
929
  readonly stateMutability: "nonpayable";
937
- readonly type: "function";
938
930
  }, {
939
- readonly inputs: readonly [];
931
+ readonly type: "function";
940
932
  readonly name: "underlying";
933
+ readonly inputs: readonly [];
941
934
  readonly outputs: readonly [{
942
- readonly internalType: "address";
943
935
  readonly name: "";
944
936
  readonly type: "address";
937
+ readonly internalType: "address";
945
938
  }];
946
939
  readonly stateMutability: "view";
947
- readonly type: "function";
948
940
  }, {
941
+ readonly type: "function";
942
+ readonly name: "updateQuota";
949
943
  readonly inputs: readonly [{
950
- readonly internalType: "address";
951
944
  readonly name: "creditAccount";
952
945
  readonly type: "address";
953
- }, {
954
946
  readonly internalType: "address";
947
+ }, {
955
948
  readonly name: "token";
956
949
  readonly type: "address";
950
+ readonly internalType: "address";
957
951
  }, {
958
- readonly internalType: "int96";
959
952
  readonly name: "quotaChange";
960
953
  readonly type: "int96";
954
+ readonly internalType: "int96";
961
955
  }, {
962
- readonly internalType: "uint96";
963
956
  readonly name: "minQuota";
964
957
  readonly type: "uint96";
965
- }, {
966
958
  readonly internalType: "uint96";
959
+ }, {
967
960
  readonly name: "maxQuota";
968
961
  readonly type: "uint96";
962
+ readonly internalType: "uint96";
969
963
  }];
970
- readonly name: "updateQuota";
971
964
  readonly outputs: readonly [{
972
- readonly internalType: "uint256";
973
965
  readonly name: "tokensToEnable";
974
966
  readonly type: "uint256";
975
- }, {
976
967
  readonly internalType: "uint256";
968
+ }, {
977
969
  readonly name: "tokensToDisable";
978
970
  readonly type: "uint256";
971
+ readonly internalType: "uint256";
979
972
  }];
980
973
  readonly stateMutability: "nonpayable";
981
- readonly type: "function";
982
974
  }, {
983
- readonly inputs: readonly [];
975
+ readonly type: "function";
984
976
  readonly name: "version";
977
+ readonly inputs: readonly [];
985
978
  readonly outputs: readonly [{
986
- readonly internalType: "uint256";
987
979
  readonly name: "";
988
980
  readonly type: "uint256";
981
+ readonly internalType: "uint256";
989
982
  }];
990
983
  readonly stateMutability: "view";
991
- readonly type: "function";
992
984
  }, {
993
- readonly inputs: readonly [];
994
- readonly name: "weth";
995
- readonly outputs: readonly [{
985
+ readonly type: "function";
986
+ readonly name: "withdrawCollateral";
987
+ readonly inputs: readonly [{
988
+ readonly name: "creditAccount";
989
+ readonly type: "address";
996
990
  readonly internalType: "address";
997
- readonly name: "";
991
+ }, {
992
+ readonly name: "token";
993
+ readonly type: "address";
994
+ readonly internalType: "address";
995
+ }, {
996
+ readonly name: "amount";
997
+ readonly type: "uint256";
998
+ readonly internalType: "uint256";
999
+ }, {
1000
+ readonly name: "to";
998
1001
  readonly type: "address";
1002
+ readonly internalType: "address";
999
1003
  }];
1000
- readonly stateMutability: "view";
1001
- readonly type: "function";
1002
- }, {
1003
- readonly inputs: readonly [];
1004
- readonly name: "withdrawalManager";
1005
1004
  readonly outputs: readonly [{
1006
- readonly internalType: "address";
1007
- readonly name: "";
1005
+ readonly name: "tokensToDisable";
1006
+ readonly type: "uint256";
1007
+ readonly internalType: "uint256";
1008
+ }];
1009
+ readonly stateMutability: "nonpayable";
1010
+ }, {
1011
+ readonly type: "event";
1012
+ readonly name: "SetCreditConfigurator";
1013
+ readonly inputs: readonly [{
1014
+ readonly name: "newConfigurator";
1008
1015
  readonly type: "address";
1016
+ readonly indexed: true;
1017
+ readonly internalType: "address";
1009
1018
  }];
1010
- readonly stateMutability: "view";
1011
- readonly type: "function";
1019
+ readonly anonymous: false;
1012
1020
  }];
1013
1021
  static createInterface(): ICreditManagerV3Interface;
1014
1022
  static connect(address: string, signerOrProvider: Signer | Provider): ICreditManagerV3;