@gearbox-protocol/sdk 3.0.0-next.17 → 3.0.0-next.170

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 (694) hide show
  1. package/contracts/index.sol +37 -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 +10 -7
  7. package/lib/apy/convexAPY.js +22 -14
  8. package/lib/apy/curveAPY.d.ts +54 -5
  9. package/lib/apy/curveAPY.js +118 -71
  10. package/lib/apy/defiLamaAPY.d.ts +3 -0
  11. package/lib/apy/defiLamaAPY.js +68 -0
  12. package/lib/apy/index.d.ts +4 -3
  13. package/lib/apy/index.js +13 -3
  14. package/lib/apy/lidoAPY.d.ts +4 -1
  15. package/lib/apy/lidoAPY.js +7 -10
  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 +47 -2
  20. package/lib/core/assets.js +2 -2
  21. package/lib/core/bot.d.ts +11 -0
  22. package/lib/core/bot.js +23 -0
  23. package/lib/core/creditAccount.d.ts +60 -20
  24. package/lib/core/creditAccount.js +198 -89
  25. package/lib/core/creditAccount.spec.js +728 -81
  26. package/lib/core/creditManager.d.ts +18 -5
  27. package/lib/core/creditManager.js +70 -12
  28. package/lib/core/creditSession.d.ts +24 -3
  29. package/lib/core/creditSession.js +32 -7
  30. package/lib/core/endpoint.d.ts +11 -0
  31. package/lib/core/endpoint.js +37 -0
  32. package/lib/core/eventOrTx.d.ts +2 -3
  33. package/lib/core/events.js +16 -16
  34. package/lib/core/gauge.d.ts +26 -0
  35. package/lib/core/gauge.js +63 -0
  36. package/lib/core/gaugeMath.d.ts +40 -0
  37. package/lib/core/gaugeMath.js +108 -0
  38. package/lib/core/gaugeMath.spec.js +388 -0
  39. package/lib/core/{pool/data.d.ts → pool.d.ts} +17 -9
  40. package/lib/core/{pool/data.js → pool.js} +54 -29
  41. package/lib/core/rewardClaimer.d.ts +4 -2
  42. package/lib/core/rewardConvex.d.ts +26 -9
  43. package/lib/core/rewardConvex.js +192 -56
  44. package/lib/core/rewardConvex.spec.js +32 -68
  45. package/lib/core/strategy.d.ts +18 -21
  46. package/lib/core/strategy.js +14 -34
  47. package/lib/core/trade.d.ts +11 -12
  48. package/lib/core/trade.js +36 -29
  49. package/lib/core/transactions.d.ts +118 -18
  50. package/lib/core/transactions.js +211 -122
  51. package/lib/gearboxRewards/abi.d.ts +2 -0
  52. package/lib/gearboxRewards/abi.js +54 -0
  53. package/lib/gearboxRewards/api.d.ts +83 -0
  54. package/lib/gearboxRewards/api.js +247 -0
  55. package/lib/gearboxRewards/apy.d.ts +37 -0
  56. package/lib/gearboxRewards/apy.js +65 -0
  57. package/lib/gearboxRewards/extraAPY.d.ts +34 -0
  58. package/lib/gearboxRewards/extraAPY.js +130 -0
  59. package/lib/gearboxRewards/index.d.ts +4 -0
  60. package/lib/{core/pool → gearboxRewards}/index.js +4 -1
  61. package/lib/index.d.ts +9 -2
  62. package/lib/index.js +9 -2
  63. package/lib/parsers/ERC20Parser.js +1 -1
  64. package/lib/parsers/aaveV2LendingPoolAdapterParser.d.ts +7 -0
  65. package/lib/parsers/aaveV2LendingPoolAdapterParser.js +21 -0
  66. package/lib/parsers/aaveV2WrappedATokenAdapterParser.d.ts +7 -0
  67. package/lib/parsers/aaveV2WrappedATokenAdapterParser.js +21 -0
  68. package/lib/parsers/abstractParser.d.ts +7 -5
  69. package/lib/parsers/abstractParser.js +4 -2
  70. package/lib/parsers/addressProviderParser.js +1 -1
  71. package/lib/parsers/balancerV2VaultParser.d.ts +7 -0
  72. package/lib/parsers/balancerV2VaultParser.js +34 -0
  73. package/lib/parsers/compoundV2CTokenAdapterParser.d.ts +7 -0
  74. package/lib/parsers/compoundV2CTokenAdapterParser.js +21 -0
  75. package/lib/parsers/convexBaseRewardPoolAdapterParser.js +13 -9
  76. package/lib/parsers/convexBaseRewardPoolAdapterParser.spec.js +9 -6
  77. package/lib/parsers/convexBoosterAdapterParser.js +7 -7
  78. package/lib/parsers/convexBoosterAdapterParser.spec.js +4 -4
  79. package/lib/parsers/convextRewardPoolParser.js +1 -1
  80. package/lib/parsers/creditFacadeParser.js +34 -7
  81. package/lib/parsers/creditFacadeParser.spec.js +2 -3
  82. package/lib/parsers/creditManagerParser.js +1 -1
  83. package/lib/parsers/curveAdapterParser.js +11 -12
  84. package/lib/parsers/curveAdapterParser.spec.js +6 -2
  85. package/lib/parsers/erc626AdapterParser.d.ts +7 -0
  86. package/lib/parsers/erc626AdapterParser.js +21 -0
  87. package/lib/parsers/lidoAdapterParser.js +4 -3
  88. package/lib/parsers/lidoAdapterParser.spec.js +2 -2
  89. package/lib/parsers/lidoSTETHParser.js +1 -1
  90. package/lib/parsers/poolParser.js +1 -1
  91. package/lib/parsers/priceOracleParser.js +1 -1
  92. package/lib/parsers/txParser.d.ts +17 -11
  93. package/lib/parsers/txParser.js +41 -4
  94. package/lib/parsers/uniV2AdapterParser.js +6 -5
  95. package/lib/parsers/uniV2AdapterParser.spec.js +3 -2
  96. package/lib/parsers/uniV3AdapterParser.js +10 -8
  97. package/lib/parsers/uniV3AdapterParser.spec.js +3 -2
  98. package/lib/parsers/wstETHAdapterParser.js +7 -5
  99. package/lib/parsers/wstETHAdapterParser.spec.js +4 -4
  100. package/lib/parsers/yearnAdapterParser.spec.js +4 -4
  101. package/lib/parsers/yearnV2AdapterParser.js +14 -4
  102. package/lib/pathfinder/balancerVault.d.ts +33 -0
  103. package/lib/pathfinder/balancerVault.js +59 -0
  104. package/lib/pathfinder/core.d.ts +8 -9
  105. package/lib/pathfinder/index.d.ts +4 -0
  106. package/lib/pathfinder/index.js +20 -0
  107. package/lib/pathfinder/pathOptions.d.ts +3 -3
  108. package/lib/pathfinder/pathOptions.js +34 -18
  109. package/lib/pathfinder/pathOptions.spec.js +3 -6
  110. package/lib/pathfinder/pathfinder.d.ts +47 -19
  111. package/lib/pathfinder/pathfinder.js +68 -56
  112. package/lib/pathfinder/pathfinder.spec.js +22 -9
  113. package/lib/pathfinder/utils.d.ts +36 -0
  114. package/lib/pathfinder/utils.js +181 -0
  115. package/lib/pathfinder/v1/core.d.ts +16 -0
  116. package/lib/pathfinder/v1/pathfinderv1.d.ts +46 -0
  117. package/lib/pathfinder/v1/pathfinderv1.js +155 -0
  118. package/lib/pathfinder/v1/pathfinderv1.spec.d.ts +1 -0
  119. package/lib/pathfinder/v1/pathfinderv1.spec.js +39 -0
  120. package/lib/payload/bot.d.ts +13 -0
  121. package/lib/payload/creditAccount.d.ts +3 -4
  122. package/lib/payload/creditManager.d.ts +6 -2
  123. package/lib/payload/creditSession.d.ts +15 -1
  124. package/lib/payload/gauge.d.ts +12 -0
  125. package/lib/payload/pool.d.ts +6 -2
  126. package/lib/payload/token.d.ts +3 -1
  127. package/lib/tokens/tokenData.d.ts +5 -4
  128. package/lib/tokens/tokenData.js +24 -5
  129. package/lib/types/CalldataExtractor.d.ts +44 -0
  130. package/lib/types/CompositePriceFeed.d.ts +162 -0
  131. package/lib/types/ContractsRegisterTrait.d.ts +42 -0
  132. package/lib/types/ERC20.d.ts +198 -0
  133. package/lib/types/FarmAccounting.d.ts +27 -0
  134. package/lib/types/IAaveV2_LendingPoolAdapter.d.ts +171 -0
  135. package/lib/types/IAaveV2_WrappedATokenAdapter.d.ts +290 -0
  136. package/lib/types/IBalancerV2Vault.sol/IBalancerV2Vault.d.ts +308 -0
  137. package/lib/types/IBalancerV2Vault.sol/IBalancerV2VaultGetters.d.ts +112 -0
  138. package/lib/types/IBalancerV2Vault.sol/index.d.ts +2 -0
  139. package/lib/types/IBalancerV2Vault.sol/index.js +2 -0
  140. package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter.d.ts +466 -0
  141. package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter.js +2 -0
  142. package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents.d.ts +43 -0
  143. package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents.js +2 -0
  144. package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions.d.ts +27 -0
  145. package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions.js +2 -0
  146. package/lib/types/IBalancerV2VaultAdapter.sol/index.d.ts +3 -0
  147. package/lib/types/IBalancerV2VaultAdapter.sol/index.js +2 -0
  148. package/lib/types/IBotListV3.sol/IBotListV3.d.ts +286 -0
  149. package/lib/types/IBotListV3.sol/IBotListV3.js +2 -0
  150. package/lib/types/IBotListV3.sol/IBotListV3Events.d.ts +103 -0
  151. package/lib/types/IBotListV3.sol/IBotListV3Events.js +2 -0
  152. package/lib/types/IBotListV3.sol/index.d.ts +2 -0
  153. package/lib/types/IBotListV3.sol/index.js +2 -0
  154. package/lib/types/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter.d.ts +216 -0
  155. package/lib/types/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter.js +2 -0
  156. package/lib/types/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions.d.ts +27 -0
  157. package/lib/types/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions.js +2 -0
  158. package/lib/types/ICompoundV2_CTokenAdapter.sol/index.d.ts +2 -0
  159. package/lib/types/ICompoundV2_CTokenAdapter.sol/index.js +2 -0
  160. package/lib/types/IContractsRegister.sol/IContractsRegister.d.ts +128 -0
  161. package/lib/types/IContractsRegister.sol/IContractsRegister.js +2 -0
  162. package/lib/types/IContractsRegister.sol/IContractsRegisterEvents.d.ts +50 -0
  163. package/lib/types/IContractsRegister.sol/IContractsRegisterEvents.js +2 -0
  164. package/lib/types/IContractsRegister.sol/index.d.ts +2 -0
  165. package/lib/types/IContractsRegister.sol/index.js +2 -0
  166. package/lib/types/IControllerTimelockV3.sol/IControllerTimelockV3.d.ts +504 -0
  167. package/lib/types/IControllerTimelockV3.sol/IControllerTimelockV3.js +2 -0
  168. package/lib/types/IControllerTimelockV3.sol/IControllerTimelockV3Events.d.ts +82 -0
  169. package/lib/types/IControllerTimelockV3.sol/IControllerTimelockV3Events.js +2 -0
  170. package/lib/types/IControllerTimelockV3.sol/index.d.ts +2 -0
  171. package/lib/types/IControllerTimelockV3.sol/index.js +2 -0
  172. package/lib/types/IConvexToken.d.ts +9 -1
  173. package/lib/types/IConvexV1BaseRewardPoolAdapter.d.ts +62 -30
  174. package/lib/types/{IConvexV1BoosterAdapter.d.ts → IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter.d.ts} +40 -21
  175. package/lib/types/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter.js +2 -0
  176. package/lib/types/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents.d.ts +43 -0
  177. package/lib/types/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents.js +2 -0
  178. package/lib/types/IConvexV1BoosterAdapter.sol/index.d.ts +2 -0
  179. package/lib/types/IConvexV1BoosterAdapter.sol/index.js +2 -0
  180. package/lib/types/ICreditAccountV3.sol/ICreditAccountBase.d.ts +86 -0
  181. package/lib/types/ICreditAccountV3.sol/ICreditAccountBase.js +2 -0
  182. package/lib/types/ICreditAccountV3.sol/ICreditAccountV3.d.ts +110 -0
  183. package/lib/types/ICreditAccountV3.sol/ICreditAccountV3.js +2 -0
  184. package/lib/types/ICreditAccountV3.sol/index.d.ts +2 -0
  185. package/lib/types/ICreditAccountV3.sol/index.js +2 -0
  186. package/lib/types/ICreditFacadeV2.sol/ICreditFacadeV2Extended.d.ts +7 -11
  187. package/lib/types/ICreditFacadeV3.sol/ICreditFacadeV3.d.ts +52 -100
  188. package/lib/types/ICreditFacadeV3.sol/ICreditFacadeV3Events.d.ts +30 -32
  189. package/lib/types/ICreditFacadeV3Multicall.d.ts +68 -60
  190. package/lib/types/ICreditManagerV3.sol/ICreditManagerV3.d.ts +99 -79
  191. package/lib/types/ICurveV1Adapter.d.ts +41 -105
  192. package/lib/types/ICurveV1_2AssetsAdapter.d.ts +41 -105
  193. package/lib/types/ICurveV1_3AssetsAdapter.d.ts +41 -105
  194. package/lib/types/ICurveV1_4AssetsAdapter.d.ts +41 -105
  195. package/lib/types/IDaiLikePermit.d.ts +59 -0
  196. package/lib/types/IDaiLikePermit.js +2 -0
  197. package/lib/types/{IDataCompressorV2_10.d.ts → IDataCompressorV2_1.d.ts} +14 -43
  198. package/lib/types/IDataCompressorV2_1.js +2 -0
  199. package/lib/types/{IDataCompressorV3_00.d.ts → IDataCompressorV3.d.ts} +111 -44
  200. package/lib/types/IDataCompressorV3.js +2 -0
  201. package/lib/types/IDegenNFTV2.sol/IDegenNFTV2.d.ts +339 -0
  202. package/lib/types/IDegenNFTV2.sol/IDegenNFTV2.js +2 -0
  203. package/lib/types/IDegenNFTV2.sol/IDegenNFTV2Events.d.ts +61 -0
  204. package/lib/types/IDegenNFTV2.sol/IDegenNFTV2Events.js +2 -0
  205. package/lib/types/IDegenNFTV2.sol/IDegenNFTV2Exceptions.d.ts +27 -0
  206. package/lib/types/IDegenNFTV2.sol/IDegenNFTV2Exceptions.js +2 -0
  207. package/lib/types/IDegenNFTV2.sol/index.d.ts +3 -0
  208. package/lib/types/IDegenNFTV2.sol/index.js +2 -0
  209. package/lib/types/IERC165.d.ts +42 -0
  210. package/lib/types/IERC165.js +2 -0
  211. package/lib/types/IERC20ZapperDeposits.d.ts +117 -0
  212. package/lib/types/IERC20ZapperDeposits.js +2 -0
  213. package/lib/types/IERC4626Adapter.d.ts +238 -0
  214. package/lib/types/IERC4626Adapter.js +2 -0
  215. package/lib/types/IERC721.d.ts +220 -0
  216. package/lib/types/IERC721.js +2 -0
  217. package/lib/types/IERC721Metadata.d.ts +244 -0
  218. package/lib/types/IERC721Metadata.js +2 -0
  219. package/lib/types/IETHZapperDeposits.d.ts +66 -0
  220. package/lib/types/IETHZapperDeposits.js +2 -0
  221. package/lib/types/IFarmingPool.d.ts +318 -0
  222. package/lib/types/IFarmingPool.js +2 -0
  223. package/lib/types/IGaugeV3.sol/IGaugeV3.d.ts +366 -0
  224. package/lib/types/IGaugeV3.sol/IGaugeV3.js +2 -0
  225. package/lib/types/IGaugeV3.sol/IGaugeV3Events.d.ts +114 -0
  226. package/lib/types/IGaugeV3.sol/IGaugeV3Events.js +2 -0
  227. package/lib/types/IGaugeV3.sol/index.d.ts +2 -0
  228. package/lib/types/IGaugeV3.sol/index.js +2 -0
  229. package/lib/types/IGearStakingV3.sol/IGearStakingV3.d.ts +408 -0
  230. package/lib/types/IGearStakingV3.sol/IGearStakingV3.js +2 -0
  231. package/lib/types/IGearStakingV3.sol/IGearStakingV3Events.d.ts +117 -0
  232. package/lib/types/IGearStakingV3.sol/IGearStakingV3Events.js +2 -0
  233. package/lib/types/IGearStakingV3.sol/index.d.ts +2 -0
  234. package/lib/types/IGearStakingV3.sol/index.js +2 -0
  235. package/lib/types/ILPPriceFeed.sol/ILPPriceFeed.d.ts +285 -0
  236. package/lib/types/ILPPriceFeed.sol/ILPPriceFeed.js +2 -0
  237. package/lib/types/ILPPriceFeed.sol/ILPPriceFeedEvents.d.ts +54 -0
  238. package/lib/types/ILPPriceFeed.sol/ILPPriceFeedEvents.js +2 -0
  239. package/lib/types/ILPPriceFeed.sol/ILPPriceFeedExceptions.d.ts +27 -0
  240. package/lib/types/ILPPriceFeed.sol/ILPPriceFeedExceptions.js +2 -0
  241. package/lib/types/ILPPriceFeed.sol/index.d.ts +3 -0
  242. package/lib/types/ILPPriceFeed.sol/index.js +2 -0
  243. package/lib/types/{ILidoV1Adapter.sol/ILidoV1Adapter.d.ts → ILidoV1Adapter.d.ts} +13 -48
  244. package/lib/types/ILidoV1Adapter.js +2 -0
  245. package/lib/types/ILinearInterestRateModelV3.d.ts +120 -0
  246. package/lib/types/ILinearInterestRateModelV3.js +2 -0
  247. package/lib/types/IPartialLiquidationBotV3.d.ts +163 -0
  248. package/lib/types/IPartialLiquidationBotV3.js +2 -0
  249. package/lib/types/IPermit2.d.ts +130 -0
  250. package/lib/types/IPermit2.js +2 -0
  251. package/lib/types/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3.d.ts +473 -0
  252. package/lib/types/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3.js +2 -0
  253. package/lib/types/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3Events.d.ts +113 -0
  254. package/lib/types/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3Events.js +2 -0
  255. package/lib/types/IPoolQuotaKeeperV3.sol/index.d.ts +2 -0
  256. package/lib/types/IPoolQuotaKeeperV3.sol/index.js +2 -0
  257. package/lib/types/IPoolV3.sol/IPoolV3.d.ts +2 -2
  258. package/lib/types/IPriceFeed.sol/IPriceFeed.d.ts +109 -0
  259. package/lib/types/IPriceFeed.sol/IPriceFeed.js +2 -0
  260. package/lib/types/IPriceFeed.sol/IUpdatablePriceFeed.d.ts +133 -0
  261. package/lib/types/IPriceFeed.sol/IUpdatablePriceFeed.js +2 -0
  262. package/lib/types/IPriceFeed.sol/index.d.ts +2 -0
  263. package/lib/types/IPriceFeed.sol/index.js +2 -0
  264. package/lib/types/IPriceOracle.sol/IPriceOracleV2.d.ts +166 -0
  265. package/lib/types/IPriceOracle.sol/IPriceOracleV2.js +2 -0
  266. package/lib/types/IPriceOracle.sol/IPriceOracleV2Events.d.ts +43 -0
  267. package/lib/types/IPriceOracle.sol/IPriceOracleV2Events.js +2 -0
  268. package/lib/types/{ILidoV1Adapter.sol/ILidoV1AdapterExceptions.d.ts → IPriceOracle.sol/IPriceOracleV2Exceptions.d.ts} +3 -3
  269. package/lib/types/IPriceOracle.sol/IPriceOracleV2Exceptions.js +2 -0
  270. package/lib/types/IPriceOracle.sol/IPriceOracleV2Ext.d.ts +182 -0
  271. package/lib/types/IPriceOracle.sol/IPriceOracleV2Ext.js +2 -0
  272. package/lib/types/IPriceOracle.sol/index.d.ts +4 -0
  273. package/lib/types/IPriceOracle.sol/index.js +2 -0
  274. package/lib/types/IPriceOracleV3.sol/IPriceOracleV3.d.ts +272 -0
  275. package/lib/types/IPriceOracleV3.sol/IPriceOracleV3.js +2 -0
  276. package/lib/types/IPriceOracleV3.sol/IPriceOracleV3Events.d.ts +79 -0
  277. package/lib/types/IPriceOracleV3.sol/IPriceOracleV3Events.js +2 -0
  278. package/lib/types/IPriceOracleV3.sol/index.d.ts +2 -0
  279. package/lib/types/IPriceOracleV3.sol/index.js +2 -0
  280. package/lib/types/IRouter.d.ts +11 -1
  281. package/lib/types/IRouterV3.d.ts +315 -0
  282. package/lib/types/IRouterV3.js +2 -0
  283. package/lib/types/IUniswapV2Adapter.sol/IUniswapV2Adapter.d.ts +10 -9
  284. package/lib/types/IUniswapV3Adapter.sol/IUniswapV3Adapter.d.ts +27 -21
  285. package/lib/types/IVotingContractV3.d.ts +74 -0
  286. package/lib/types/IVotingContractV3.js +2 -0
  287. package/lib/types/IWETH.d.ts +197 -0
  288. package/lib/types/IWETH.js +2 -0
  289. package/lib/types/IYearnV2Adapter.d.ts +22 -22
  290. package/lib/types/IZapper.d.ts +42 -47
  291. package/lib/types/IZapperRegister.d.ts +62 -0
  292. package/lib/types/IZapperRegister.js +2 -0
  293. package/lib/types/IwstETHV1Adapter.d.ts +17 -17
  294. package/lib/types/NumericArrayLib.d.ts +27 -0
  295. package/lib/types/NumericArrayLib.js +2 -0
  296. package/lib/types/PartialLiquidationBotV3.d.ts +171 -0
  297. package/lib/types/PartialLiquidationBotV3.js +2 -0
  298. package/lib/types/RedstoneConstants.d.ts +27 -0
  299. package/lib/types/RedstoneConstants.js +2 -0
  300. package/lib/types/RedstoneConsumerBase.d.ts +84 -0
  301. package/lib/types/RedstoneConsumerBase.js +2 -0
  302. package/lib/types/RedstoneConsumerNumericBase.d.ts +84 -0
  303. package/lib/types/RedstoneConsumerNumericBase.js +2 -0
  304. package/lib/types/RedstoneDefaultsLib.d.ts +27 -0
  305. package/lib/types/RedstoneDefaultsLib.js +2 -0
  306. package/lib/types/{ILidoV1Adapter.sol/ILidoV1AdapterEvents.d.ts → RedstonePriceFeed.sol/IRedstonePriceFeedEvents.d.ts} +11 -11
  307. package/lib/types/RedstonePriceFeed.sol/IRedstonePriceFeedEvents.js +2 -0
  308. package/lib/types/RedstonePriceFeed.sol/IRedstonePriceFeedExceptions.d.ts +27 -0
  309. package/lib/types/RedstonePriceFeed.sol/IRedstonePriceFeedExceptions.js +2 -0
  310. package/lib/types/RedstonePriceFeed.sol/RedstonePriceFeed.d.ts +279 -0
  311. package/lib/types/RedstonePriceFeed.sol/RedstonePriceFeed.js +2 -0
  312. package/lib/types/RedstonePriceFeed.sol/index.d.ts +3 -0
  313. package/lib/types/RedstonePriceFeed.sol/index.js +2 -0
  314. package/lib/types/SafeERC20.d.ts +27 -0
  315. package/lib/types/SafeERC20.js +2 -0
  316. package/lib/types/contracts/index.d.ts +2 -0
  317. package/lib/types/contracts/index.js +2 -0
  318. package/lib/types/contracts/interfaces/IGasPricer.d.ts +44 -0
  319. package/lib/types/contracts/interfaces/IGasPricer.js +2 -0
  320. package/lib/types/contracts/interfaces/index.d.ts +1 -0
  321. package/lib/types/contracts/interfaces/index.js +2 -0
  322. package/lib/types/factories/AddressProvider__factory.d.ts +112 -112
  323. package/lib/types/factories/AddressProvider__factory.js +120 -120
  324. package/lib/types/factories/Balances.sol/BalanceOps__factory.d.ts +4 -4
  325. package/lib/types/factories/Balances.sol/BalanceOps__factory.js +4 -4
  326. package/lib/types/factories/CalldataExtractor__factory.d.ts +87 -0
  327. package/lib/types/factories/CalldataExtractor__factory.js +127 -0
  328. package/lib/types/factories/Claimable__factory.d.ts +29 -29
  329. package/lib/types/factories/Claimable__factory.js +33 -33
  330. package/lib/types/factories/CompositePriceFeed__factory.d.ts +202 -0
  331. package/lib/types/factories/CompositePriceFeed__factory.js +277 -0
  332. package/lib/types/factories/ContractsRegisterTrait__factory.d.ts +22 -0
  333. package/lib/types/factories/ContractsRegisterTrait__factory.js +37 -0
  334. package/lib/types/factories/ERC20__factory.d.ts +239 -0
  335. package/lib/types/factories/ERC20__factory.js +328 -0
  336. package/lib/types/factories/Errors__factory.d.ts +100 -100
  337. package/lib/types/factories/Errors__factory.js +100 -100
  338. package/lib/types/factories/FarmAccounting__factory.d.ts +33 -0
  339. package/lib/types/factories/FarmAccounting__factory.js +57 -0
  340. package/lib/types/factories/{IWERC20Zapper__factory.d.ts → IAaveV2_LendingPoolAdapter__factory.d.ts} +96 -114
  341. package/lib/types/factories/{IWETHZapper__factory.js → IAaveV2_LendingPoolAdapter__factory.js} +105 -120
  342. package/lib/types/factories/IAaveV2_WrappedATokenAdapter__factory.d.ts +252 -0
  343. package/lib/types/factories/IAaveV2_WrappedATokenAdapter__factory.js +341 -0
  344. package/lib/types/factories/IAdapter__factory.d.ts +15 -15
  345. package/lib/types/factories/IAdapter__factory.js +15 -15
  346. package/lib/types/factories/IAddressProvider.sol/IAddressProviderEvents__factory.d.ts +7 -7
  347. package/lib/types/factories/IAddressProvider.sol/IAddressProviderEvents__factory.js +7 -7
  348. package/lib/types/factories/IAddressProvider.sol/IAddressProvider__factory.d.ts +48 -48
  349. package/lib/types/factories/IAddressProvider.sol/IAddressProvider__factory.js +52 -52
  350. package/lib/types/factories/IAddressProviderV3.sol/IAddressProviderV3Events__factory.d.ts +9 -9
  351. package/lib/types/factories/IAddressProviderV3.sol/IAddressProviderV3Events__factory.js +9 -9
  352. package/lib/types/factories/IAddressProviderV3.sol/IAddressProviderV3__factory.d.ts +37 -37
  353. package/lib/types/factories/IAddressProviderV3.sol/IAddressProviderV3__factory.js +42 -42
  354. package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributorEvents__factory.d.ts +25 -25
  355. package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributorEvents__factory.js +25 -25
  356. package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributor__factory.d.ts +71 -71
  357. package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributor__factory.js +85 -85
  358. package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2VaultGetters__factory.d.ts +78 -0
  359. package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2VaultGetters__factory.js +111 -0
  360. package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2Vault__factory.d.ts +360 -0
  361. package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2Vault__factory.js +475 -0
  362. package/lib/types/factories/IBalancerV2Vault.sol/index.d.ts +2 -0
  363. package/lib/types/factories/IBalancerV2Vault.sol/index.js +10 -0
  364. package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents__factory.d.ts +23 -0
  365. package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents__factory.js +38 -0
  366. package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions__factory.d.ts +12 -0
  367. package/lib/types/factories/{ILidoV1Adapter.sol/ILidoV1AdapterExceptions__factory.js → IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions__factory.js} +5 -5
  368. package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter__factory.d.ts +514 -0
  369. package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter__factory.js +675 -0
  370. package/lib/types/factories/IBalancerV2VaultAdapter.sol/index.d.ts +3 -0
  371. package/lib/types/factories/IBalancerV2VaultAdapter.sol/index.js +12 -0
  372. package/lib/types/factories/IBaseRewardPool__factory.d.ts +114 -114
  373. package/lib/types/factories/IBaseRewardPool__factory.js +114 -114
  374. package/lib/types/factories/IBotListV3.sol/IBotListV3Events__factory.d.ts +103 -0
  375. package/lib/types/factories/IBotListV3.sol/IBotListV3Events__factory.js +138 -0
  376. package/lib/types/factories/IBotListV3.sol/IBotListV3__factory.d.ts +315 -0
  377. package/lib/types/factories/IBotListV3.sol/IBotListV3__factory.js +416 -0
  378. package/lib/types/factories/IBotListV3.sol/index.d.ts +2 -0
  379. package/lib/types/factories/IBotListV3.sol/index.js +10 -0
  380. package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter__factory.d.ts +196 -0
  381. package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter__factory.js +267 -0
  382. package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions__factory.d.ts +16 -0
  383. package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions__factory.js +30 -0
  384. package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/index.d.ts +2 -0
  385. package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/index.js +10 -0
  386. package/lib/types/factories/IContractsRegister.sol/IContractsRegisterEvents__factory.d.ts +28 -0
  387. package/lib/types/factories/IContractsRegister.sol/IContractsRegisterEvents__factory.js +45 -0
  388. package/lib/types/factories/IContractsRegister.sol/IContractsRegister__factory.d.ts +134 -0
  389. package/lib/types/factories/IContractsRegister.sol/IContractsRegister__factory.js +186 -0
  390. package/lib/types/factories/IContractsRegister.sol/index.d.ts +2 -0
  391. package/lib/types/factories/IContractsRegister.sol/index.js +10 -0
  392. package/lib/types/factories/IControllerTimelockV3.sol/IControllerTimelockV3Events__factory.d.ts +73 -0
  393. package/lib/types/factories/IControllerTimelockV3.sol/IControllerTimelockV3Events__factory.js +101 -0
  394. package/lib/types/factories/IControllerTimelockV3.sol/IControllerTimelockV3__factory.d.ts +427 -0
  395. package/lib/types/factories/IControllerTimelockV3.sol/IControllerTimelockV3__factory.js +556 -0
  396. package/lib/types/factories/IControllerTimelockV3.sol/index.d.ts +2 -0
  397. package/lib/types/factories/IControllerTimelockV3.sol/index.js +10 -0
  398. package/lib/types/factories/IConvexToken__factory.d.ts +89 -79
  399. package/lib/types/factories/IConvexToken__factory.js +99 -86
  400. package/lib/types/factories/IConvexV1BaseRewardPoolAdapter__factory.d.ts +121 -69
  401. package/lib/types/factories/IConvexV1BaseRewardPoolAdapter__factory.js +137 -69
  402. package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents__factory.d.ts +23 -0
  403. package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents__factory.js +38 -0
  404. package/lib/types/factories/{IConvexV1BoosterAdapter__factory.d.ts → IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter__factory.d.ts} +67 -44
  405. package/lib/types/factories/{IConvexV1BoosterAdapter__factory.js → IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter__factory.js} +72 -43
  406. package/lib/types/factories/IConvexV1BoosterAdapter.sol/index.d.ts +2 -0
  407. package/lib/types/factories/IConvexV1BoosterAdapter.sol/index.js +10 -0
  408. package/lib/types/factories/ICreditAccountV3.sol/ICreditAccountBase__factory.d.ts +64 -0
  409. package/lib/types/factories/ICreditAccountV3.sol/ICreditAccountBase__factory.js +92 -0
  410. package/lib/types/factories/ICreditAccountV3.sol/ICreditAccountV3__factory.d.ts +88 -0
  411. package/lib/types/factories/ICreditAccountV3.sol/ICreditAccountV3__factory.js +123 -0
  412. package/lib/types/factories/ICreditAccountV3.sol/index.d.ts +2 -0
  413. package/lib/types/factories/ICreditAccountV3.sol/index.js +10 -0
  414. package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2Events__factory.d.ts +121 -121
  415. package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2Events__factory.js +127 -127
  416. package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2Exceptions__factory.d.ts +18 -18
  417. package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2Exceptions__factory.js +18 -18
  418. package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2__factory.d.ts +376 -376
  419. package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2__factory.js +417 -417
  420. package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3Events__factory.d.ts +118 -118
  421. package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3Events__factory.js +127 -127
  422. package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3__factory.d.ts +395 -395
  423. package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3__factory.js +420 -420
  424. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Events__factory.d.ts +107 -107
  425. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Events__factory.js +118 -118
  426. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Exceptions__factory.d.ts +65 -65
  427. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Exceptions__factory.js +65 -65
  428. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Extended__factory.d.ts +23 -27
  429. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Extended__factory.js +23 -28
  430. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2V2__factory.d.ts +5 -5
  431. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2V2__factory.js +5 -5
  432. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2__factory.d.ts +601 -601
  433. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2__factory.js +749 -749
  434. package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.d.ts +78 -83
  435. package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.js +85 -91
  436. package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.d.ts +281 -348
  437. package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.js +372 -457
  438. package/lib/types/factories/ICreditFacadeV3Multicall__factory.d.ts +85 -81
  439. package/lib/types/factories/ICreditFacadeV3Multicall__factory.js +93 -89
  440. package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2Events__factory.d.ts +11 -11
  441. package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2Events__factory.js +12 -12
  442. package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2Exceptions__factory.d.ts +26 -26
  443. package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2Exceptions__factory.js +26 -26
  444. package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2__factory.d.ts +252 -252
  445. package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2__factory.js +272 -272
  446. package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3Events__factory.d.ts +5 -5
  447. package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3Events__factory.js +5 -5
  448. package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3__factory.d.ts +398 -390
  449. package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3__factory.js +436 -426
  450. package/lib/types/factories/ICurvePool_2.sol/ICurvePool2Assets__factory.d.ts +191 -191
  451. package/lib/types/factories/ICurvePool_2.sol/ICurvePool2Assets__factory.js +191 -191
  452. package/lib/types/factories/ICurvePool_3.sol/ICurvePool3Assets__factory.d.ts +191 -191
  453. package/lib/types/factories/ICurvePool_3.sol/ICurvePool3Assets__factory.js +191 -191
  454. package/lib/types/factories/ICurvePool_4.sol/ICurvePool4Assets__factory.d.ts +191 -191
  455. package/lib/types/factories/ICurvePool_4.sol/ICurvePool4Assets__factory.js +191 -191
  456. package/lib/types/factories/ICurvePool__factory.d.ts +159 -159
  457. package/lib/types/factories/ICurvePool__factory.js +159 -159
  458. package/lib/types/factories/ICurveV1Adapter__factory.d.ts +171 -229
  459. package/lib/types/factories/ICurveV1Adapter__factory.js +171 -248
  460. package/lib/types/factories/ICurveV1_2AssetsAdapter__factory.d.ts +189 -247
  461. package/lib/types/factories/ICurveV1_2AssetsAdapter__factory.js +189 -266
  462. package/lib/types/factories/ICurveV1_3AssetsAdapter__factory.d.ts +189 -247
  463. package/lib/types/factories/ICurveV1_3AssetsAdapter__factory.js +189 -266
  464. package/lib/types/factories/ICurveV1_4AssetsAdapter__factory.d.ts +189 -247
  465. package/lib/types/factories/ICurveV1_4AssetsAdapter__factory.js +189 -266
  466. package/lib/types/factories/IDaiLikePermit__factory.d.ts +46 -0
  467. package/lib/types/factories/IDaiLikePermit__factory.js +67 -0
  468. package/lib/types/factories/{IDataCompressorV2_10__factory.d.ts → IDataCompressorV2_1__factory.d.ts} +348 -398
  469. package/lib/types/factories/{IDataCompressorV2_10__factory.js → IDataCompressorV2_1__factory.js} +349 -413
  470. package/lib/types/factories/{IDataCompressorV3_00__factory.d.ts → IDataCompressorV3__factory.d.ts} +654 -472
  471. package/lib/types/factories/{IDataCompressorV3_00__factory.js → IDataCompressorV3__factory.js} +727 -495
  472. package/lib/types/factories/IDegenDistributor.sol/IDegenDistributorEvents__factory.d.ts +14 -14
  473. package/lib/types/factories/IDegenDistributor.sol/IDegenDistributorEvents__factory.js +14 -14
  474. package/lib/types/factories/IDegenDistributor.sol/IDegenDistributor__factory.d.ts +43 -43
  475. package/lib/types/factories/IDegenDistributor.sol/IDegenDistributor__factory.js +51 -51
  476. package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2Events__factory.d.ts +38 -0
  477. package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2Events__factory.js +58 -0
  478. package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2Exceptions__factory.d.ts +24 -0
  479. package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2Exceptions__factory.js +39 -0
  480. package/lib/types/factories/{IWithdrawalManagerV3.sol/IWithdrawalManagerV3__factory.d.ts → IDegenNFTV2.sol/IDegenNFTV2__factory.d.ts} +248 -238
  481. package/lib/types/factories/{IWithdrawalManagerV3.sol/IWithdrawalManagerV3__factory.js → IDegenNFTV2.sol/IDegenNFTV2__factory.js} +270 -253
  482. package/lib/types/factories/IDegenNFTV2.sol/index.d.ts +3 -0
  483. package/lib/types/factories/IDegenNFTV2.sol/index.js +12 -0
  484. package/lib/types/factories/IERC165__factory.d.ts +22 -0
  485. package/lib/types/factories/IERC165__factory.js +38 -0
  486. package/lib/types/factories/IERC20Metadata__factory.d.ts +76 -76
  487. package/lib/types/factories/IERC20Metadata__factory.js +86 -86
  488. package/lib/types/factories/IERC20Permit__factory.d.ts +16 -16
  489. package/lib/types/factories/IERC20Permit__factory.js +16 -16
  490. package/lib/types/factories/IERC20ZapperDeposits__factory.d.ts +120 -0
  491. package/lib/types/factories/IERC20ZapperDeposits__factory.js +165 -0
  492. package/lib/types/factories/IERC20__factory.d.ts +67 -67
  493. package/lib/types/factories/IERC20__factory.js +77 -77
  494. package/lib/types/factories/IERC4626Adapter__factory.d.ts +220 -0
  495. package/lib/types/factories/IERC4626Adapter__factory.js +297 -0
  496. package/lib/types/factories/IERC4626__factory.d.ts +198 -198
  497. package/lib/types/factories/IERC4626__factory.js +221 -221
  498. package/lib/types/factories/IERC721Metadata__factory.d.ts +262 -0
  499. package/lib/types/factories/IERC721Metadata__factory.js +349 -0
  500. package/lib/types/factories/IERC721__factory.d.ts +228 -0
  501. package/lib/types/factories/IERC721__factory.js +304 -0
  502. package/lib/types/factories/IETHZapperDeposits__factory.d.ts +40 -0
  503. package/lib/types/factories/IETHZapperDeposits__factory.js +62 -0
  504. package/lib/types/factories/IFarmingPool__factory.d.ts +299 -0
  505. package/lib/types/factories/IFarmingPool__factory.js +396 -0
  506. package/lib/types/factories/IGaugeV3.sol/IGaugeV3Events__factory.d.ts +118 -0
  507. package/lib/types/factories/IGaugeV3.sol/IGaugeV3Events__factory.js +157 -0
  508. package/lib/types/factories/IGaugeV3.sol/IGaugeV3__factory.d.ts +342 -0
  509. package/lib/types/factories/IGaugeV3.sol/IGaugeV3__factory.js +448 -0
  510. package/lib/types/factories/IGaugeV3.sol/index.d.ts +2 -0
  511. package/lib/types/factories/IGaugeV3.sol/index.js +10 -0
  512. package/lib/types/factories/{IWithdrawalManagerV3.sol/IWithdrawalManagerV3Events__factory.d.ts → IGearStakingV3.sol/IGearStakingV3Events__factory.d.ts} +55 -85
  513. package/lib/types/factories/{IWithdrawalManagerV3.sol/IWithdrawalManagerV3Events__factory.js → IGearStakingV3.sol/IGearStakingV3Events__factory.js} +58 -94
  514. package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3__factory.d.ts +504 -0
  515. package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3__factory.js +660 -0
  516. package/lib/types/factories/IGearStakingV3.sol/index.d.ts +2 -0
  517. package/lib/types/factories/IGearStakingV3.sol/index.js +10 -0
  518. package/lib/types/factories/IInterestRateModel__factory.d.ts +8 -8
  519. package/lib/types/factories/IInterestRateModel__factory.js +8 -8
  520. package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeedEvents__factory.d.ts +33 -0
  521. package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeedEvents__factory.js +51 -0
  522. package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeedExceptions__factory.d.ts +28 -0
  523. package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeedExceptions__factory.js +44 -0
  524. package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeed__factory.d.ts +261 -0
  525. package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeed__factory.js +344 -0
  526. package/lib/types/factories/ILPPriceFeed.sol/index.d.ts +3 -0
  527. package/lib/types/factories/ILPPriceFeed.sol/index.js +12 -0
  528. package/lib/types/factories/{ILidoV1Adapter.sol/ILidoV1Adapter__factory.d.ts → ILidoV1Adapter__factory.d.ts} +44 -74
  529. package/lib/types/factories/{ILidoV1Adapter.sol/ILidoV1Adapter__factory.js → ILidoV1Adapter__factory.js} +45 -83
  530. package/lib/types/factories/ILinearInterestRateModelV3__factory.d.ts +98 -0
  531. package/lib/types/factories/ILinearInterestRateModelV3__factory.js +136 -0
  532. package/lib/types/factories/IOffchainOracle__factory.d.ts +11 -11
  533. package/lib/types/factories/IOffchainOracle__factory.js +11 -11
  534. package/lib/types/factories/IPartialLiquidationBotV3__factory.d.ts +217 -0
  535. package/lib/types/factories/IPartialLiquidationBotV3__factory.js +287 -0
  536. package/lib/types/factories/IPermit2__factory.d.ts +113 -0
  537. package/lib/types/factories/IPermit2__factory.js +155 -0
  538. package/lib/types/factories/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3Events__factory.d.ts +103 -0
  539. package/lib/types/factories/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3Events__factory.js +140 -0
  540. package/lib/types/factories/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3__factory.d.ts +441 -0
  541. package/lib/types/factories/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3__factory.js +580 -0
  542. package/lib/types/factories/IPoolQuotaKeeperV3.sol/index.d.ts +2 -0
  543. package/lib/types/factories/IPoolQuotaKeeperV3.sol/index.js +10 -0
  544. package/lib/types/factories/IPoolService.sol/IPoolServiceEvents__factory.d.ts +66 -66
  545. package/lib/types/factories/IPoolService.sol/IPoolServiceEvents__factory.js +72 -72
  546. package/lib/types/factories/IPoolService.sol/IPoolService__factory.d.ts +235 -235
  547. package/lib/types/factories/IPoolService.sol/IPoolService__factory.js +286 -286
  548. package/lib/types/factories/IPoolV3.sol/IPoolV3Events__factory.d.ts +65 -65
  549. package/lib/types/factories/IPoolV3.sol/IPoolV3Events__factory.js +68 -68
  550. package/lib/types/factories/IPoolV3.sol/IPoolV3__factory.d.ts +574 -574
  551. package/lib/types/factories/IPoolV3.sol/IPoolV3__factory.js +698 -698
  552. package/lib/types/factories/IPriceFeed.sol/IPriceFeed__factory.d.ts +84 -0
  553. package/lib/types/factories/IPriceFeed.sol/IPriceFeed__factory.js +117 -0
  554. package/lib/types/factories/IPriceFeed.sol/IUpdatablePriceFeed__factory.d.ts +104 -0
  555. package/lib/types/factories/IPriceFeed.sol/IUpdatablePriceFeed__factory.js +143 -0
  556. package/lib/types/factories/IPriceFeed.sol/index.d.ts +2 -0
  557. package/lib/types/factories/IPriceFeed.sol/index.js +10 -0
  558. package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Events__factory.d.ts +23 -0
  559. package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Events__factory.js +38 -0
  560. package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Exceptions__factory.d.ts +20 -0
  561. package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Exceptions__factory.js +34 -0
  562. package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Ext__factory.d.ts +197 -0
  563. package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Ext__factory.js +267 -0
  564. package/lib/types/factories/{IWETHZapper__factory.d.ts → IPriceOracle.sol/IPriceOracleV2__factory.d.ts} +114 -99
  565. package/lib/types/factories/{IWERC20Zapper__factory.js → IPriceOracle.sol/IPriceOracleV2__factory.js} +119 -110
  566. package/lib/types/factories/IPriceOracle.sol/index.d.ts +4 -0
  567. package/lib/types/factories/IPriceOracle.sol/index.js +14 -0
  568. package/lib/types/factories/IPriceOracleBase__factory.d.ts +27 -27
  569. package/lib/types/factories/IPriceOracleBase__factory.js +27 -27
  570. package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3Events__factory.d.ts +78 -0
  571. package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3Events__factory.js +106 -0
  572. package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3__factory.d.ts +326 -0
  573. package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3__factory.js +433 -0
  574. package/lib/types/factories/IPriceOracleV3.sol/index.d.ts +2 -0
  575. package/lib/types/factories/IPriceOracleV3.sol/index.js +10 -0
  576. package/lib/types/factories/IRouterV3__factory.d.ts +512 -0
  577. package/lib/types/factories/IRouterV3__factory.js +676 -0
  578. package/lib/types/factories/IRouter__factory.d.ts +168 -154
  579. package/lib/types/factories/IRouter__factory.js +186 -167
  580. package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2AdapterEvents__factory.d.ts +8 -8
  581. package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2AdapterEvents__factory.js +9 -9
  582. package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2AdapterExceptions__factory.d.ts +2 -2
  583. package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2AdapterExceptions__factory.js +2 -2
  584. package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2Adapter__factory.d.ts +80 -76
  585. package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2Adapter__factory.js +87 -82
  586. package/lib/types/factories/IUniswapV3.sol/ISwapRouter__factory.d.ts +50 -50
  587. package/lib/types/factories/IUniswapV3.sol/ISwapRouter__factory.js +50 -50
  588. package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3AdapterEvents__factory.d.ts +10 -10
  589. package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3AdapterEvents__factory.js +11 -11
  590. package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3AdapterExceptions__factory.d.ts +2 -2
  591. package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3AdapterExceptions__factory.js +2 -2
  592. package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3Adapter__factory.d.ts +142 -134
  593. package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3Adapter__factory.js +151 -141
  594. package/lib/types/factories/IVersion__factory.d.ts +3 -3
  595. package/lib/types/factories/IVersion__factory.js +3 -3
  596. package/lib/types/factories/IVotingContractV3__factory.d.ts +44 -0
  597. package/lib/types/factories/IVotingContractV3__factory.js +65 -0
  598. package/lib/types/factories/IWETHGateway__factory.d.ts +14 -14
  599. package/lib/types/factories/IWETHGateway__factory.js +14 -14
  600. package/lib/types/factories/IWETH__factory.d.ts +194 -0
  601. package/lib/types/factories/IWETH__factory.js +260 -0
  602. package/lib/types/factories/IYVault__factory.d.ts +112 -112
  603. package/lib/types/factories/IYVault__factory.js +122 -122
  604. package/lib/types/factories/IYearnV2Adapter__factory.d.ts +76 -68
  605. package/lib/types/factories/IYearnV2Adapter__factory.js +82 -70
  606. package/lib/types/factories/IZapperRegister__factory.d.ts +42 -0
  607. package/lib/types/factories/IZapperRegister__factory.js +64 -0
  608. package/lib/types/factories/IZapper__factory.d.ts +40 -48
  609. package/lib/types/factories/IZapper__factory.js +40 -50
  610. package/lib/types/factories/IstETH.sol/IstETHGetters__factory.d.ts +97 -97
  611. package/lib/types/factories/IstETH.sol/IstETHGetters__factory.js +107 -107
  612. package/lib/types/factories/IstETH.sol/IstETH__factory.d.ts +101 -101
  613. package/lib/types/factories/IstETH.sol/IstETH__factory.js +111 -111
  614. package/lib/types/factories/IwstETH.sol/IwstETHGetters__factory.d.ts +93 -93
  615. package/lib/types/factories/IwstETH.sol/IwstETHGetters__factory.js +103 -103
  616. package/lib/types/factories/IwstETH.sol/IwstETH__factory.d.ts +101 -101
  617. package/lib/types/factories/IwstETH.sol/IwstETH__factory.js +111 -111
  618. package/lib/types/factories/IwstETHGateway.sol/IwstETHGateWay__factory.d.ts +14 -14
  619. package/lib/types/factories/IwstETHGateway.sol/IwstETHGateWay__factory.js +15 -15
  620. package/lib/types/factories/IwstETHV1Adapter__factory.d.ts +52 -44
  621. package/lib/types/factories/IwstETHV1Adapter__factory.js +56 -44
  622. package/lib/types/factories/NumericArrayLib__factory.d.ts +25 -0
  623. package/lib/types/factories/NumericArrayLib__factory.js +47 -0
  624. package/lib/types/factories/Ownable__factory.d.ts +23 -23
  625. package/lib/types/factories/Ownable__factory.js +27 -27
  626. package/lib/types/factories/PartialLiquidationBotV3__factory.d.ts +284 -0
  627. package/lib/types/factories/PartialLiquidationBotV3__factory.js +379 -0
  628. package/lib/types/factories/RedstoneConstants__factory.d.ts +65 -0
  629. package/lib/types/factories/RedstoneConstants__factory.js +99 -0
  630. package/lib/types/factories/RedstoneConsumerBase__factory.d.ts +164 -0
  631. package/lib/types/factories/RedstoneConsumerBase__factory.js +223 -0
  632. package/lib/types/factories/RedstoneConsumerNumericBase__factory.d.ts +164 -0
  633. package/lib/types/factories/RedstoneConsumerNumericBase__factory.js +223 -0
  634. package/lib/types/factories/RedstoneDefaultsLib__factory.d.ts +45 -0
  635. package/lib/types/factories/RedstoneDefaultsLib__factory.js +74 -0
  636. package/lib/types/factories/{ILidoV1Adapter.sol/ILidoV1AdapterEvents__factory.d.ts → RedstonePriceFeed.sol/IRedstonePriceFeedEvents__factory.d.ts} +9 -9
  637. package/lib/types/factories/{ILidoV1Adapter.sol/ILidoV1AdapterEvents__factory.js → RedstonePriceFeed.sol/IRedstonePriceFeedEvents__factory.js} +8 -8
  638. package/lib/types/factories/RedstonePriceFeed.sol/IRedstonePriceFeedExceptions__factory.d.ts +28 -0
  639. package/lib/types/factories/RedstonePriceFeed.sol/IRedstonePriceFeedExceptions__factory.js +44 -0
  640. package/lib/types/factories/RedstonePriceFeed.sol/RedstonePriceFeed__factory.d.ts +443 -0
  641. package/lib/types/factories/RedstonePriceFeed.sol/RedstonePriceFeed__factory.js +589 -0
  642. package/lib/types/factories/RedstonePriceFeed.sol/index.d.ts +3 -0
  643. package/lib/types/factories/RedstonePriceFeed.sol/index.js +12 -0
  644. package/lib/types/factories/SafeERC20__factory.d.ts +49 -0
  645. package/lib/types/factories/SafeERC20__factory.js +77 -0
  646. package/lib/types/factories/contracts/index.d.ts +1 -0
  647. package/lib/types/factories/contracts/index.js +30 -0
  648. package/lib/types/factories/contracts/interfaces/IGasPricer__factory.d.ts +22 -0
  649. package/lib/types/factories/contracts/interfaces/IGasPricer__factory.js +38 -0
  650. package/lib/types/factories/contracts/interfaces/index.d.ts +1 -0
  651. package/lib/types/factories/contracts/interfaces/index.js +8 -0
  652. package/lib/types/factories/index.d.ts +50 -7
  653. package/lib/types/factories/index.js +84 -14
  654. package/lib/types/index.d.ts +182 -24
  655. package/lib/types/index.js +147 -20
  656. package/lib/utils/formatter.d.ts +1 -4
  657. package/lib/utils/formatter.js +3 -69
  658. package/lib/utils/math.d.ts +1 -0
  659. package/lib/utils/math.js +1 -0
  660. package/lib/utils/types.d.ts +1 -0
  661. package/lib/watchers/creditAccountWatcher.d.ts +3 -2
  662. package/lib/watchers/creditAccountWatcher.js +20 -14
  663. package/lib/watchers/creditAccountWatcher.spec.js +18 -18
  664. package/lib/watchers/creditManagerWatcher.d.ts +5 -3
  665. package/lib/watchers/creditManagerWatcher.js +32 -10
  666. package/lib/watchers/creditManagerWatcher.spec.js +12 -4
  667. package/package.json +13 -8
  668. package/contracts/IRouter.sol +0 -100
  669. package/lib/core/pool/index.d.ts +0 -1
  670. package/lib/core/strategy.spec.js +0 -62
  671. package/lib/types/ILidoV1Adapter.sol/index.d.ts +0 -3
  672. package/lib/types/IWERC20Zapper.d.ts +0 -166
  673. package/lib/types/IWETHZapper.d.ts +0 -162
  674. package/lib/types/IWithdrawalManagerV3.sol/IWithdrawalManagerV3.d.ts +0 -370
  675. package/lib/types/IWithdrawalManagerV3.sol/IWithdrawalManagerV3Events.d.ts +0 -133
  676. package/lib/types/IWithdrawalManagerV3.sol/index.d.ts +0 -2
  677. package/lib/types/factories/ILidoV1Adapter.sol/ILidoV1AdapterExceptions__factory.d.ts +0 -12
  678. package/lib/types/factories/ILidoV1Adapter.sol/index.d.ts +0 -3
  679. package/lib/types/factories/ILidoV1Adapter.sol/index.js +0 -12
  680. package/lib/types/factories/IWithdrawalManagerV3.sol/index.d.ts +0 -2
  681. package/lib/types/factories/IWithdrawalManagerV3.sol/index.js +0 -10
  682. /package/lib/core/{strategy.spec.d.ts → gaugeMath.spec.d.ts} +0 -0
  683. /package/lib/{types/IConvexV1BoosterAdapter.js → pathfinder/v1/core.js} +0 -0
  684. /package/lib/{types/IDataCompressorV2_10.js → payload/bot.js} +0 -0
  685. /package/lib/{types/IDataCompressorV3_00.js → payload/gauge.js} +0 -0
  686. /package/lib/types/{ILidoV1Adapter.sol/ILidoV1Adapter.js → CalldataExtractor.js} +0 -0
  687. /package/lib/types/{ILidoV1Adapter.sol/ILidoV1AdapterEvents.js → CompositePriceFeed.js} +0 -0
  688. /package/lib/types/{ILidoV1Adapter.sol/ILidoV1AdapterExceptions.js → ContractsRegisterTrait.js} +0 -0
  689. /package/lib/types/{ILidoV1Adapter.sol/index.js → ERC20.js} +0 -0
  690. /package/lib/types/{IWERC20Zapper.js → FarmAccounting.js} +0 -0
  691. /package/lib/types/{IWETHZapper.js → IAaveV2_LendingPoolAdapter.js} +0 -0
  692. /package/lib/types/{IWithdrawalManagerV3.sol/IWithdrawalManagerV3.js → IAaveV2_WrappedATokenAdapter.js} +0 -0
  693. /package/lib/types/{IWithdrawalManagerV3.sol/IWithdrawalManagerV3Events.js → IBalancerV2Vault.sol/IBalancerV2Vault.js} +0 -0
  694. /package/lib/types/{IWithdrawalManagerV3.sol/index.js → IBalancerV2Vault.sol/IBalancerV2VaultGetters.js} +0 -0
@@ -3,1065 +3,1065 @@ import type { Provider } from "@ethersproject/providers";
3
3
  import type { IPoolV3, IPoolV3Interface } from "../../IPoolV3.sol/IPoolV3";
4
4
  export declare class IPoolV3__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: "creditManager";
6
+ readonly type: "function";
7
+ readonly name: "DOMAIN_SEPARATOR";
8
+ readonly inputs: readonly [];
9
+ readonly outputs: readonly [{
10
+ readonly name: "";
11
+ readonly type: "bytes32";
12
+ readonly internalType: "bytes32";
13
+ }];
14
+ readonly stateMutability: "view";
15
+ }, {
16
+ readonly type: "function";
17
+ readonly name: "addressProvider";
18
+ readonly inputs: readonly [];
19
+ readonly outputs: readonly [{
20
+ readonly name: "";
11
21
  readonly type: "address";
22
+ readonly internalType: "address";
12
23
  }];
13
- readonly name: "AddCreditManager";
14
- readonly type: "event";
24
+ readonly stateMutability: "view";
15
25
  }, {
16
- readonly anonymous: false;
26
+ readonly type: "function";
27
+ readonly name: "allowance";
17
28
  readonly inputs: readonly [{
18
- readonly indexed: true;
19
- readonly internalType: "address";
20
29
  readonly name: "owner";
21
30
  readonly type: "address";
22
- }, {
23
- readonly indexed: true;
24
31
  readonly internalType: "address";
32
+ }, {
25
33
  readonly name: "spender";
26
34
  readonly type: "address";
27
- }, {
28
- readonly indexed: false;
29
- readonly internalType: "uint256";
30
- readonly name: "value";
35
+ readonly internalType: "address";
36
+ }];
37
+ readonly outputs: readonly [{
38
+ readonly name: "";
31
39
  readonly type: "uint256";
40
+ readonly internalType: "uint256";
32
41
  }];
33
- readonly name: "Approval";
34
- readonly type: "event";
42
+ readonly stateMutability: "view";
35
43
  }, {
36
- readonly anonymous: false;
44
+ readonly type: "function";
45
+ readonly name: "approve";
37
46
  readonly inputs: readonly [{
38
- readonly indexed: true;
39
- readonly internalType: "address";
40
- readonly name: "creditManager";
47
+ readonly name: "spender";
41
48
  readonly type: "address";
42
- }, {
43
- readonly indexed: true;
44
49
  readonly internalType: "address";
45
- readonly name: "creditAccount";
46
- readonly type: "address";
47
50
  }, {
48
- readonly indexed: false;
49
- readonly internalType: "uint256";
50
51
  readonly name: "amount";
51
52
  readonly type: "uint256";
53
+ readonly internalType: "uint256";
52
54
  }];
53
- readonly name: "Borrow";
54
- readonly type: "event";
55
+ readonly outputs: readonly [{
56
+ readonly name: "";
57
+ readonly type: "bool";
58
+ readonly internalType: "bool";
59
+ }];
60
+ readonly stateMutability: "nonpayable";
55
61
  }, {
56
- readonly anonymous: false;
57
- readonly inputs: readonly [{
58
- readonly indexed: true;
59
- readonly internalType: "address";
60
- readonly name: "sender";
62
+ readonly type: "function";
63
+ readonly name: "asset";
64
+ readonly inputs: readonly [];
65
+ readonly outputs: readonly [{
66
+ readonly name: "assetTokenAddress";
61
67
  readonly type: "address";
62
- }, {
63
- readonly indexed: true;
64
68
  readonly internalType: "address";
65
- readonly name: "owner";
66
- readonly type: "address";
67
- }, {
68
- readonly indexed: false;
69
- readonly internalType: "uint256";
70
- readonly name: "assets";
69
+ }];
70
+ readonly stateMutability: "view";
71
+ }, {
72
+ readonly type: "function";
73
+ readonly name: "availableLiquidity";
74
+ readonly inputs: readonly [];
75
+ readonly outputs: readonly [{
76
+ readonly name: "";
71
77
  readonly type: "uint256";
72
- }, {
73
- readonly indexed: false;
74
78
  readonly internalType: "uint256";
75
- readonly name: "shares";
76
- readonly type: "uint256";
77
79
  }];
78
- readonly name: "Deposit";
79
- readonly type: "event";
80
+ readonly stateMutability: "view";
80
81
  }, {
81
- readonly anonymous: false;
82
+ readonly type: "function";
83
+ readonly name: "balanceOf";
82
84
  readonly inputs: readonly [{
83
- readonly indexed: true;
84
- readonly internalType: "address";
85
- readonly name: "creditManager";
85
+ readonly name: "account";
86
86
  readonly type: "address";
87
- }, {
88
- readonly indexed: false;
89
- readonly internalType: "uint256";
90
- readonly name: "loss";
87
+ readonly internalType: "address";
88
+ }];
89
+ readonly outputs: readonly [{
90
+ readonly name: "";
91
91
  readonly type: "uint256";
92
+ readonly internalType: "uint256";
92
93
  }];
93
- readonly name: "IncurUncoveredLoss";
94
- readonly type: "event";
94
+ readonly stateMutability: "view";
95
95
  }, {
96
- readonly anonymous: false;
97
- readonly inputs: readonly [{
98
- readonly indexed: true;
99
- readonly internalType: "address";
100
- readonly name: "onBehalfOf";
101
- readonly type: "address";
102
- }, {
103
- readonly indexed: true;
96
+ readonly type: "function";
97
+ readonly name: "baseInterestIndex";
98
+ readonly inputs: readonly [];
99
+ readonly outputs: readonly [{
100
+ readonly name: "";
101
+ readonly type: "uint256";
104
102
  readonly internalType: "uint256";
105
- readonly name: "referralCode";
103
+ }];
104
+ readonly stateMutability: "view";
105
+ }, {
106
+ readonly type: "function";
107
+ readonly name: "baseInterestIndexLU";
108
+ readonly inputs: readonly [];
109
+ readonly outputs: readonly [{
110
+ readonly name: "";
106
111
  readonly type: "uint256";
107
- }, {
108
- readonly indexed: false;
109
112
  readonly internalType: "uint256";
110
- readonly name: "amount";
113
+ }];
114
+ readonly stateMutability: "view";
115
+ }, {
116
+ readonly type: "function";
117
+ readonly name: "baseInterestRate";
118
+ readonly inputs: readonly [];
119
+ readonly outputs: readonly [{
120
+ readonly name: "";
111
121
  readonly type: "uint256";
122
+ readonly internalType: "uint256";
112
123
  }];
113
- readonly name: "Refer";
114
- readonly type: "event";
124
+ readonly stateMutability: "view";
115
125
  }, {
116
- readonly anonymous: false;
126
+ readonly type: "function";
127
+ readonly name: "convertToAssets";
117
128
  readonly inputs: readonly [{
118
- readonly indexed: true;
119
- readonly internalType: "address";
120
- readonly name: "creditManager";
121
- readonly type: "address";
122
- }, {
123
- readonly indexed: false;
124
- readonly internalType: "uint256";
125
- readonly name: "borrowedAmount";
129
+ readonly name: "shares";
126
130
  readonly type: "uint256";
127
- }, {
128
- readonly indexed: false;
129
131
  readonly internalType: "uint256";
130
- readonly name: "profit";
132
+ }];
133
+ readonly outputs: readonly [{
134
+ readonly name: "assets";
131
135
  readonly type: "uint256";
132
- }, {
133
- readonly indexed: false;
134
136
  readonly internalType: "uint256";
135
- readonly name: "loss";
136
- readonly type: "uint256";
137
137
  }];
138
- readonly name: "Repay";
139
- readonly type: "event";
138
+ readonly stateMutability: "view";
140
139
  }, {
141
- readonly anonymous: false;
140
+ readonly type: "function";
141
+ readonly name: "convertToShares";
142
142
  readonly inputs: readonly [{
143
- readonly indexed: true;
144
- readonly internalType: "address";
145
- readonly name: "creditManager";
146
- readonly type: "address";
147
- }, {
148
- readonly indexed: false;
143
+ readonly name: "assets";
144
+ readonly type: "uint256";
149
145
  readonly internalType: "uint256";
150
- readonly name: "newLimit";
146
+ }];
147
+ readonly outputs: readonly [{
148
+ readonly name: "shares";
151
149
  readonly type: "uint256";
150
+ readonly internalType: "uint256";
152
151
  }];
153
- readonly name: "SetCreditManagerDebtLimit";
154
- readonly type: "event";
152
+ readonly stateMutability: "view";
155
153
  }, {
156
- readonly anonymous: false;
154
+ readonly type: "function";
155
+ readonly name: "creditManagerBorrowable";
157
156
  readonly inputs: readonly [{
158
- readonly indexed: true;
159
- readonly internalType: "address";
160
- readonly name: "newInterestRateModel";
157
+ readonly name: "creditManager";
161
158
  readonly type: "address";
162
- }];
163
- readonly name: "SetInterestRateModel";
164
- readonly type: "event";
165
- }, {
166
- readonly anonymous: false;
167
- readonly inputs: readonly [{
168
- readonly indexed: true;
169
159
  readonly internalType: "address";
170
- readonly name: "newPoolQuotaKeeper";
171
- readonly type: "address";
172
160
  }];
173
- readonly name: "SetPoolQuotaKeeper";
174
- readonly type: "event";
175
- }, {
176
- readonly anonymous: false;
177
- readonly inputs: readonly [{
178
- readonly indexed: false;
179
- readonly internalType: "uint256";
180
- readonly name: "limit";
161
+ readonly outputs: readonly [{
162
+ readonly name: "borrowable";
181
163
  readonly type: "uint256";
164
+ readonly internalType: "uint256";
182
165
  }];
183
- readonly name: "SetTotalDebtLimit";
184
- readonly type: "event";
166
+ readonly stateMutability: "view";
185
167
  }, {
186
- readonly anonymous: false;
168
+ readonly type: "function";
169
+ readonly name: "creditManagerBorrowed";
187
170
  readonly inputs: readonly [{
188
- readonly indexed: false;
189
- readonly internalType: "uint256";
190
- readonly name: "fee";
171
+ readonly name: "creditManager";
172
+ readonly type: "address";
173
+ readonly internalType: "address";
174
+ }];
175
+ readonly outputs: readonly [{
176
+ readonly name: "";
191
177
  readonly type: "uint256";
178
+ readonly internalType: "uint256";
192
179
  }];
193
- readonly name: "SetWithdrawFee";
194
- readonly type: "event";
180
+ readonly stateMutability: "view";
195
181
  }, {
196
- readonly anonymous: false;
182
+ readonly type: "function";
183
+ readonly name: "creditManagerDebtLimit";
197
184
  readonly inputs: readonly [{
198
- readonly indexed: true;
199
- readonly internalType: "address";
200
- readonly name: "from";
185
+ readonly name: "creditManager";
201
186
  readonly type: "address";
202
- }, {
203
- readonly indexed: true;
204
187
  readonly internalType: "address";
205
- readonly name: "to";
206
- readonly type: "address";
207
- }, {
208
- readonly indexed: false;
209
- readonly internalType: "uint256";
210
- readonly name: "value";
211
- readonly type: "uint256";
212
188
  }];
213
- readonly name: "Transfer";
214
- readonly type: "event";
215
- }, {
216
- readonly anonymous: false;
217
- readonly inputs: readonly [{
218
- readonly indexed: true;
219
- readonly internalType: "address";
220
- readonly name: "sender";
221
- readonly type: "address";
222
- }, {
223
- readonly indexed: true;
224
- readonly internalType: "address";
225
- readonly name: "receiver";
226
- readonly type: "address";
227
- }, {
228
- readonly indexed: true;
229
- readonly internalType: "address";
230
- readonly name: "owner";
231
- readonly type: "address";
232
- }, {
233
- readonly indexed: false;
234
- readonly internalType: "uint256";
235
- readonly name: "assets";
189
+ readonly outputs: readonly [{
190
+ readonly name: "";
236
191
  readonly type: "uint256";
237
- }, {
238
- readonly indexed: false;
239
192
  readonly internalType: "uint256";
240
- readonly name: "shares";
241
- readonly type: "uint256";
242
193
  }];
243
- readonly name: "Withdraw";
244
- readonly type: "event";
194
+ readonly stateMutability: "view";
245
195
  }, {
196
+ readonly type: "function";
197
+ readonly name: "creditManagers";
246
198
  readonly inputs: readonly [];
247
- readonly name: "DOMAIN_SEPARATOR";
248
199
  readonly outputs: readonly [{
249
- readonly internalType: "bytes32";
250
200
  readonly name: "";
251
- readonly type: "bytes32";
201
+ readonly type: "address[]";
202
+ readonly internalType: "address[]";
252
203
  }];
253
204
  readonly stateMutability: "view";
254
- readonly type: "function";
255
205
  }, {
206
+ readonly type: "function";
207
+ readonly name: "decimals";
256
208
  readonly inputs: readonly [];
257
- readonly name: "addressProvider";
258
209
  readonly outputs: readonly [{
259
- readonly internalType: "address";
260
210
  readonly name: "";
261
- readonly type: "address";
211
+ readonly type: "uint8";
212
+ readonly internalType: "uint8";
262
213
  }];
263
214
  readonly stateMutability: "view";
264
- readonly type: "function";
265
215
  }, {
216
+ readonly type: "function";
217
+ readonly name: "deposit";
266
218
  readonly inputs: readonly [{
267
- readonly internalType: "address";
268
- readonly name: "owner";
269
- readonly type: "address";
219
+ readonly name: "assets";
220
+ readonly type: "uint256";
221
+ readonly internalType: "uint256";
270
222
  }, {
271
- readonly internalType: "address";
272
- readonly name: "spender";
223
+ readonly name: "receiver";
273
224
  readonly type: "address";
225
+ readonly internalType: "address";
274
226
  }];
275
- readonly name: "allowance";
276
227
  readonly outputs: readonly [{
277
- readonly internalType: "uint256";
278
- readonly name: "";
228
+ readonly name: "shares";
279
229
  readonly type: "uint256";
230
+ readonly internalType: "uint256";
280
231
  }];
281
- readonly stateMutability: "view";
282
- readonly type: "function";
232
+ readonly stateMutability: "nonpayable";
283
233
  }, {
234
+ readonly type: "function";
235
+ readonly name: "depositWithReferral";
284
236
  readonly inputs: readonly [{
285
- readonly internalType: "address";
286
- readonly name: "spender";
237
+ readonly name: "assets";
238
+ readonly type: "uint256";
239
+ readonly internalType: "uint256";
240
+ }, {
241
+ readonly name: "receiver";
287
242
  readonly type: "address";
243
+ readonly internalType: "address";
288
244
  }, {
289
- readonly internalType: "uint256";
290
- readonly name: "amount";
245
+ readonly name: "referralCode";
291
246
  readonly type: "uint256";
247
+ readonly internalType: "uint256";
292
248
  }];
293
- readonly name: "approve";
294
249
  readonly outputs: readonly [{
295
- readonly internalType: "bool";
296
- readonly name: "";
297
- readonly type: "bool";
250
+ readonly name: "shares";
251
+ readonly type: "uint256";
252
+ readonly internalType: "uint256";
298
253
  }];
299
254
  readonly stateMutability: "nonpayable";
300
- readonly type: "function";
301
255
  }, {
302
- readonly inputs: readonly [];
303
- readonly name: "asset";
304
- readonly outputs: readonly [{
305
- readonly internalType: "address";
306
- readonly name: "assetTokenAddress";
307
- readonly type: "address";
308
- }];
309
- readonly stateMutability: "view";
310
256
  readonly type: "function";
311
- }, {
257
+ readonly name: "expectedLiquidity";
312
258
  readonly inputs: readonly [];
313
- readonly name: "availableLiquidity";
314
259
  readonly outputs: readonly [{
315
- readonly internalType: "uint256";
316
260
  readonly name: "";
317
261
  readonly type: "uint256";
262
+ readonly internalType: "uint256";
318
263
  }];
319
264
  readonly stateMutability: "view";
320
- readonly type: "function";
321
265
  }, {
322
- readonly inputs: readonly [{
323
- readonly internalType: "address";
324
- readonly name: "account";
325
- readonly type: "address";
326
- }];
327
- readonly name: "balanceOf";
266
+ readonly type: "function";
267
+ readonly name: "expectedLiquidityLU";
268
+ readonly inputs: readonly [];
328
269
  readonly outputs: readonly [{
329
- readonly internalType: "uint256";
330
270
  readonly name: "";
331
271
  readonly type: "uint256";
272
+ readonly internalType: "uint256";
332
273
  }];
333
274
  readonly stateMutability: "view";
334
- readonly type: "function";
335
275
  }, {
276
+ readonly type: "function";
277
+ readonly name: "interestRateModel";
336
278
  readonly inputs: readonly [];
337
- readonly name: "baseInterestIndex";
338
279
  readonly outputs: readonly [{
339
- readonly internalType: "uint256";
340
280
  readonly name: "";
341
- readonly type: "uint256";
281
+ readonly type: "address";
282
+ readonly internalType: "address";
342
283
  }];
343
284
  readonly stateMutability: "view";
344
- readonly type: "function";
345
285
  }, {
286
+ readonly type: "function";
287
+ readonly name: "lastBaseInterestUpdate";
346
288
  readonly inputs: readonly [];
347
- readonly name: "baseInterestIndexLU";
348
289
  readonly outputs: readonly [{
349
- readonly internalType: "uint256";
350
290
  readonly name: "";
351
- readonly type: "uint256";
291
+ readonly type: "uint40";
292
+ readonly internalType: "uint40";
352
293
  }];
353
294
  readonly stateMutability: "view";
354
- readonly type: "function";
355
295
  }, {
296
+ readonly type: "function";
297
+ readonly name: "lastQuotaRevenueUpdate";
356
298
  readonly inputs: readonly [];
357
- readonly name: "baseInterestRate";
358
299
  readonly outputs: readonly [{
359
- readonly internalType: "uint256";
360
300
  readonly name: "";
361
- readonly type: "uint256";
301
+ readonly type: "uint40";
302
+ readonly internalType: "uint40";
362
303
  }];
363
304
  readonly stateMutability: "view";
364
- readonly type: "function";
365
305
  }, {
306
+ readonly type: "function";
307
+ readonly name: "lendCreditAccount";
366
308
  readonly inputs: readonly [{
367
- readonly internalType: "uint256";
368
- readonly name: "shares";
309
+ readonly name: "borrowedAmount";
369
310
  readonly type: "uint256";
370
- }];
371
- readonly name: "convertToAssets";
372
- readonly outputs: readonly [{
373
311
  readonly internalType: "uint256";
374
- readonly name: "assets";
375
- readonly type: "uint256";
312
+ }, {
313
+ readonly name: "creditAccount";
314
+ readonly type: "address";
315
+ readonly internalType: "address";
376
316
  }];
377
- readonly stateMutability: "view";
378
- readonly type: "function";
317
+ readonly outputs: readonly [];
318
+ readonly stateMutability: "nonpayable";
379
319
  }, {
320
+ readonly type: "function";
321
+ readonly name: "maxDeposit";
380
322
  readonly inputs: readonly [{
381
- readonly internalType: "uint256";
382
- readonly name: "assets";
383
- readonly type: "uint256";
323
+ readonly name: "receiver";
324
+ readonly type: "address";
325
+ readonly internalType: "address";
384
326
  }];
385
- readonly name: "convertToShares";
386
327
  readonly outputs: readonly [{
387
- readonly internalType: "uint256";
388
- readonly name: "shares";
328
+ readonly name: "maxAssets";
389
329
  readonly type: "uint256";
330
+ readonly internalType: "uint256";
390
331
  }];
391
332
  readonly stateMutability: "view";
392
- readonly type: "function";
393
333
  }, {
334
+ readonly type: "function";
335
+ readonly name: "maxMint";
394
336
  readonly inputs: readonly [{
395
- readonly internalType: "address";
396
- readonly name: "creditManager";
337
+ readonly name: "receiver";
397
338
  readonly type: "address";
339
+ readonly internalType: "address";
398
340
  }];
399
- readonly name: "creditManagerBorrowable";
400
341
  readonly outputs: readonly [{
401
- readonly internalType: "uint256";
402
- readonly name: "borrowable";
342
+ readonly name: "maxShares";
403
343
  readonly type: "uint256";
344
+ readonly internalType: "uint256";
404
345
  }];
405
346
  readonly stateMutability: "view";
406
- readonly type: "function";
407
347
  }, {
348
+ readonly type: "function";
349
+ readonly name: "maxRedeem";
408
350
  readonly inputs: readonly [{
409
- readonly internalType: "address";
410
- readonly name: "creditManager";
351
+ readonly name: "owner";
411
352
  readonly type: "address";
353
+ readonly internalType: "address";
412
354
  }];
413
- readonly name: "creditManagerBorrowed";
414
355
  readonly outputs: readonly [{
415
- readonly internalType: "uint256";
416
- readonly name: "";
356
+ readonly name: "maxShares";
417
357
  readonly type: "uint256";
358
+ readonly internalType: "uint256";
418
359
  }];
419
360
  readonly stateMutability: "view";
420
- readonly type: "function";
421
361
  }, {
362
+ readonly type: "function";
363
+ readonly name: "maxWithdraw";
422
364
  readonly inputs: readonly [{
423
- readonly internalType: "address";
424
- readonly name: "creditManager";
365
+ readonly name: "owner";
425
366
  readonly type: "address";
367
+ readonly internalType: "address";
426
368
  }];
427
- readonly name: "creditManagerDebtLimit";
428
369
  readonly outputs: readonly [{
429
- readonly internalType: "uint256";
430
- readonly name: "";
370
+ readonly name: "maxAssets";
431
371
  readonly type: "uint256";
372
+ readonly internalType: "uint256";
432
373
  }];
433
374
  readonly stateMutability: "view";
434
- readonly type: "function";
435
- }, {
436
- readonly inputs: readonly [];
437
- readonly name: "creditManagers";
438
- readonly outputs: readonly [{
439
- readonly internalType: "address[]";
440
- readonly name: "";
441
- readonly type: "address[]";
442
- }];
443
- readonly stateMutability: "view";
444
- readonly type: "function";
445
375
  }, {
446
- readonly inputs: readonly [];
447
- readonly name: "decimals";
448
- readonly outputs: readonly [{
449
- readonly internalType: "uint8";
450
- readonly name: "";
451
- readonly type: "uint8";
452
- }];
453
- readonly stateMutability: "view";
454
376
  readonly type: "function";
455
- }, {
377
+ readonly name: "mint";
456
378
  readonly inputs: readonly [{
457
- readonly internalType: "uint256";
458
- readonly name: "assets";
379
+ readonly name: "shares";
459
380
  readonly type: "uint256";
381
+ readonly internalType: "uint256";
460
382
  }, {
461
- readonly internalType: "address";
462
383
  readonly name: "receiver";
463
384
  readonly type: "address";
385
+ readonly internalType: "address";
464
386
  }];
465
- readonly name: "deposit";
466
387
  readonly outputs: readonly [{
467
- readonly internalType: "uint256";
468
- readonly name: "shares";
388
+ readonly name: "assets";
469
389
  readonly type: "uint256";
390
+ readonly internalType: "uint256";
470
391
  }];
471
392
  readonly stateMutability: "nonpayable";
472
- readonly type: "function";
473
393
  }, {
394
+ readonly type: "function";
395
+ readonly name: "mintWithReferral";
474
396
  readonly inputs: readonly [{
475
- readonly internalType: "uint256";
476
- readonly name: "assets";
397
+ readonly name: "shares";
477
398
  readonly type: "uint256";
399
+ readonly internalType: "uint256";
478
400
  }, {
479
- readonly internalType: "address";
480
401
  readonly name: "receiver";
481
402
  readonly type: "address";
403
+ readonly internalType: "address";
482
404
  }, {
483
- readonly internalType: "uint16";
484
405
  readonly name: "referralCode";
485
- readonly type: "uint16";
486
- }];
487
- readonly name: "depositWithReferral";
488
- readonly outputs: readonly [{
489
- readonly internalType: "uint256";
490
- readonly name: "shares";
491
- readonly type: "uint256";
492
- }];
493
- readonly stateMutability: "nonpayable";
494
- readonly type: "function";
495
- }, {
496
- readonly inputs: readonly [];
497
- readonly name: "expectedLiquidity";
498
- readonly outputs: readonly [{
499
- readonly internalType: "uint256";
500
- readonly name: "";
501
- readonly type: "uint256";
502
- }];
503
- readonly stateMutability: "view";
504
- readonly type: "function";
505
- }, {
506
- readonly inputs: readonly [];
507
- readonly name: "expectedLiquidityLU";
508
- readonly outputs: readonly [{
509
- readonly internalType: "uint256";
510
- readonly name: "";
511
- readonly type: "uint256";
512
- }];
513
- readonly stateMutability: "view";
514
- readonly type: "function";
515
- }, {
516
- readonly inputs: readonly [];
517
- readonly name: "interestRateModel";
518
- readonly outputs: readonly [{
519
- readonly internalType: "address";
520
- readonly name: "";
521
- readonly type: "address";
522
- }];
523
- readonly stateMutability: "view";
524
- readonly type: "function";
525
- }, {
526
- readonly inputs: readonly [];
527
- readonly name: "lastBaseInterestUpdate";
528
- readonly outputs: readonly [{
529
- readonly internalType: "uint40";
530
- readonly name: "";
531
- readonly type: "uint40";
532
- }];
533
- readonly stateMutability: "view";
534
- readonly type: "function";
535
- }, {
536
- readonly inputs: readonly [];
537
- readonly name: "lastQuotaRevenueUpdate";
538
- readonly outputs: readonly [{
539
- readonly internalType: "uint40";
540
- readonly name: "";
541
- readonly type: "uint40";
542
- }];
543
- readonly stateMutability: "view";
544
- readonly type: "function";
545
- }, {
546
- readonly inputs: readonly [{
547
- readonly internalType: "uint256";
548
- readonly name: "borrowedAmount";
549
- readonly type: "uint256";
550
- }, {
551
- readonly internalType: "address";
552
- readonly name: "creditAccount";
553
- readonly type: "address";
554
- }];
555
- readonly name: "lendCreditAccount";
556
- readonly outputs: readonly [];
557
- readonly stateMutability: "nonpayable";
558
- readonly type: "function";
559
- }, {
560
- readonly inputs: readonly [{
561
- readonly internalType: "address";
562
- readonly name: "receiver";
563
- readonly type: "address";
564
- }];
565
- readonly name: "maxDeposit";
566
- readonly outputs: readonly [{
567
- readonly internalType: "uint256";
568
- readonly name: "maxAssets";
569
- readonly type: "uint256";
570
- }];
571
- readonly stateMutability: "view";
572
- readonly type: "function";
573
- }, {
574
- readonly inputs: readonly [{
575
- readonly internalType: "address";
576
- readonly name: "receiver";
577
- readonly type: "address";
578
- }];
579
- readonly name: "maxMint";
580
- readonly outputs: readonly [{
581
- readonly internalType: "uint256";
582
- readonly name: "maxShares";
583
- readonly type: "uint256";
584
- }];
585
- readonly stateMutability: "view";
586
- readonly type: "function";
587
- }, {
588
- readonly inputs: readonly [{
589
- readonly internalType: "address";
590
- readonly name: "owner";
591
- readonly type: "address";
592
- }];
593
- readonly name: "maxRedeem";
594
- readonly outputs: readonly [{
595
- readonly internalType: "uint256";
596
- readonly name: "maxShares";
597
- readonly type: "uint256";
598
- }];
599
- readonly stateMutability: "view";
600
- readonly type: "function";
601
- }, {
602
- readonly inputs: readonly [{
603
- readonly internalType: "address";
604
- readonly name: "owner";
605
- readonly type: "address";
606
- }];
607
- readonly name: "maxWithdraw";
608
- readonly outputs: readonly [{
609
- readonly internalType: "uint256";
610
- readonly name: "maxAssets";
611
406
  readonly type: "uint256";
612
- }];
613
- readonly stateMutability: "view";
614
- readonly type: "function";
615
- }, {
616
- readonly inputs: readonly [{
617
407
  readonly internalType: "uint256";
618
- readonly name: "shares";
619
- readonly type: "uint256";
620
- }, {
621
- readonly internalType: "address";
622
- readonly name: "receiver";
623
- readonly type: "address";
624
408
  }];
625
- readonly name: "mint";
626
409
  readonly outputs: readonly [{
627
- readonly internalType: "uint256";
628
410
  readonly name: "assets";
629
411
  readonly type: "uint256";
630
- }];
631
- readonly stateMutability: "nonpayable";
632
- readonly type: "function";
633
- }, {
634
- readonly inputs: readonly [{
635
- readonly internalType: "uint256";
636
- readonly name: "shares";
637
- readonly type: "uint256";
638
- }, {
639
- readonly internalType: "address";
640
- readonly name: "receiver";
641
- readonly type: "address";
642
- }, {
643
- readonly internalType: "uint16";
644
- readonly name: "referralCode";
645
- readonly type: "uint16";
646
- }];
647
- readonly name: "mintWithReferral";
648
- readonly outputs: readonly [{
649
412
  readonly internalType: "uint256";
650
- readonly name: "assets";
651
- readonly type: "uint256";
652
413
  }];
653
414
  readonly stateMutability: "nonpayable";
654
- readonly type: "function";
655
415
  }, {
656
- readonly inputs: readonly [];
416
+ readonly type: "function";
657
417
  readonly name: "name";
418
+ readonly inputs: readonly [];
658
419
  readonly outputs: readonly [{
659
- readonly internalType: "string";
660
420
  readonly name: "";
661
421
  readonly type: "string";
422
+ readonly internalType: "string";
662
423
  }];
663
424
  readonly stateMutability: "view";
664
- readonly type: "function";
665
425
  }, {
426
+ readonly type: "function";
427
+ readonly name: "nonces";
666
428
  readonly inputs: readonly [{
667
- readonly internalType: "address";
668
429
  readonly name: "owner";
669
430
  readonly type: "address";
431
+ readonly internalType: "address";
670
432
  }];
671
- readonly name: "nonces";
672
433
  readonly outputs: readonly [{
673
- readonly internalType: "uint256";
674
434
  readonly name: "";
675
435
  readonly type: "uint256";
436
+ readonly internalType: "uint256";
676
437
  }];
677
438
  readonly stateMutability: "view";
678
- readonly type: "function";
679
439
  }, {
440
+ readonly type: "function";
441
+ readonly name: "permit";
680
442
  readonly inputs: readonly [{
681
- readonly internalType: "address";
682
443
  readonly name: "owner";
683
444
  readonly type: "address";
684
- }, {
685
445
  readonly internalType: "address";
446
+ }, {
686
447
  readonly name: "spender";
687
448
  readonly type: "address";
449
+ readonly internalType: "address";
688
450
  }, {
689
- readonly internalType: "uint256";
690
451
  readonly name: "value";
691
452
  readonly type: "uint256";
692
- }, {
693
453
  readonly internalType: "uint256";
454
+ }, {
694
455
  readonly name: "deadline";
695
456
  readonly type: "uint256";
457
+ readonly internalType: "uint256";
696
458
  }, {
697
- readonly internalType: "uint8";
698
459
  readonly name: "v";
699
460
  readonly type: "uint8";
461
+ readonly internalType: "uint8";
700
462
  }, {
701
- readonly internalType: "bytes32";
702
463
  readonly name: "r";
703
464
  readonly type: "bytes32";
704
- }, {
705
465
  readonly internalType: "bytes32";
466
+ }, {
706
467
  readonly name: "s";
707
468
  readonly type: "bytes32";
469
+ readonly internalType: "bytes32";
708
470
  }];
709
- readonly name: "permit";
710
471
  readonly outputs: readonly [];
711
472
  readonly stateMutability: "nonpayable";
712
- readonly type: "function";
713
473
  }, {
714
- readonly inputs: readonly [];
474
+ readonly type: "function";
715
475
  readonly name: "poolQuotaKeeper";
476
+ readonly inputs: readonly [];
716
477
  readonly outputs: readonly [{
717
- readonly internalType: "address";
718
478
  readonly name: "";
719
479
  readonly type: "address";
480
+ readonly internalType: "address";
720
481
  }];
721
482
  readonly stateMutability: "view";
722
- readonly type: "function";
723
483
  }, {
484
+ readonly type: "function";
485
+ readonly name: "previewDeposit";
724
486
  readonly inputs: readonly [{
725
- readonly internalType: "uint256";
726
487
  readonly name: "assets";
727
488
  readonly type: "uint256";
489
+ readonly internalType: "uint256";
728
490
  }];
729
- readonly name: "previewDeposit";
730
491
  readonly outputs: readonly [{
731
- readonly internalType: "uint256";
732
492
  readonly name: "shares";
733
493
  readonly type: "uint256";
494
+ readonly internalType: "uint256";
734
495
  }];
735
496
  readonly stateMutability: "view";
736
- readonly type: "function";
737
497
  }, {
498
+ readonly type: "function";
499
+ readonly name: "previewMint";
738
500
  readonly inputs: readonly [{
739
- readonly internalType: "uint256";
740
501
  readonly name: "shares";
741
502
  readonly type: "uint256";
503
+ readonly internalType: "uint256";
742
504
  }];
743
- readonly name: "previewMint";
744
505
  readonly outputs: readonly [{
745
- readonly internalType: "uint256";
746
506
  readonly name: "assets";
747
507
  readonly type: "uint256";
508
+ readonly internalType: "uint256";
748
509
  }];
749
510
  readonly stateMutability: "view";
750
- readonly type: "function";
751
511
  }, {
512
+ readonly type: "function";
513
+ readonly name: "previewRedeem";
752
514
  readonly inputs: readonly [{
753
- readonly internalType: "uint256";
754
515
  readonly name: "shares";
755
516
  readonly type: "uint256";
517
+ readonly internalType: "uint256";
756
518
  }];
757
- readonly name: "previewRedeem";
758
519
  readonly outputs: readonly [{
759
- readonly internalType: "uint256";
760
520
  readonly name: "assets";
761
521
  readonly type: "uint256";
522
+ readonly internalType: "uint256";
762
523
  }];
763
524
  readonly stateMutability: "view";
764
- readonly type: "function";
765
525
  }, {
526
+ readonly type: "function";
527
+ readonly name: "previewWithdraw";
766
528
  readonly inputs: readonly [{
767
- readonly internalType: "uint256";
768
529
  readonly name: "assets";
769
530
  readonly type: "uint256";
531
+ readonly internalType: "uint256";
770
532
  }];
771
- readonly name: "previewWithdraw";
772
533
  readonly outputs: readonly [{
773
- readonly internalType: "uint256";
774
534
  readonly name: "shares";
775
535
  readonly type: "uint256";
536
+ readonly internalType: "uint256";
776
537
  }];
777
538
  readonly stateMutability: "view";
778
- readonly type: "function";
779
539
  }, {
780
- readonly inputs: readonly [];
540
+ readonly type: "function";
781
541
  readonly name: "quotaRevenue";
542
+ readonly inputs: readonly [];
782
543
  readonly outputs: readonly [{
783
- readonly internalType: "uint256";
784
544
  readonly name: "";
785
545
  readonly type: "uint256";
546
+ readonly internalType: "uint256";
786
547
  }];
787
548
  readonly stateMutability: "view";
788
- readonly type: "function";
789
549
  }, {
550
+ readonly type: "function";
551
+ readonly name: "redeem";
790
552
  readonly inputs: readonly [{
791
- readonly internalType: "uint256";
792
553
  readonly name: "shares";
793
554
  readonly type: "uint256";
555
+ readonly internalType: "uint256";
794
556
  }, {
795
- readonly internalType: "address";
796
557
  readonly name: "receiver";
797
558
  readonly type: "address";
798
- }, {
799
559
  readonly internalType: "address";
560
+ }, {
800
561
  readonly name: "owner";
801
562
  readonly type: "address";
563
+ readonly internalType: "address";
802
564
  }];
803
- readonly name: "redeem";
804
565
  readonly outputs: readonly [{
805
- readonly internalType: "uint256";
806
566
  readonly name: "assets";
807
567
  readonly type: "uint256";
568
+ readonly internalType: "uint256";
808
569
  }];
809
570
  readonly stateMutability: "nonpayable";
810
- readonly type: "function";
811
571
  }, {
572
+ readonly type: "function";
573
+ readonly name: "repayCreditAccount";
812
574
  readonly inputs: readonly [{
813
- readonly internalType: "uint256";
814
575
  readonly name: "repaidAmount";
815
576
  readonly type: "uint256";
816
- }, {
817
577
  readonly internalType: "uint256";
578
+ }, {
818
579
  readonly name: "profit";
819
580
  readonly type: "uint256";
820
- }, {
821
581
  readonly internalType: "uint256";
582
+ }, {
822
583
  readonly name: "loss";
823
584
  readonly type: "uint256";
585
+ readonly internalType: "uint256";
824
586
  }];
825
- readonly name: "repayCreditAccount";
826
587
  readonly outputs: readonly [];
827
588
  readonly stateMutability: "nonpayable";
828
- readonly type: "function";
829
589
  }, {
590
+ readonly type: "function";
591
+ readonly name: "setCreditManagerDebtLimit";
830
592
  readonly inputs: readonly [{
831
- readonly internalType: "address";
832
593
  readonly name: "creditManager";
833
594
  readonly type: "address";
595
+ readonly internalType: "address";
834
596
  }, {
835
- readonly internalType: "uint256";
836
597
  readonly name: "newLimit";
837
598
  readonly type: "uint256";
599
+ readonly internalType: "uint256";
838
600
  }];
839
- readonly name: "setCreditManagerDebtLimit";
840
601
  readonly outputs: readonly [];
841
602
  readonly stateMutability: "nonpayable";
842
- readonly type: "function";
843
603
  }, {
604
+ readonly type: "function";
605
+ readonly name: "setInterestRateModel";
844
606
  readonly inputs: readonly [{
845
- readonly internalType: "address";
846
607
  readonly name: "newInterestRateModel";
847
608
  readonly type: "address";
609
+ readonly internalType: "address";
848
610
  }];
849
- readonly name: "setInterestRateModel";
850
611
  readonly outputs: readonly [];
851
612
  readonly stateMutability: "nonpayable";
852
- readonly type: "function";
853
613
  }, {
614
+ readonly type: "function";
615
+ readonly name: "setPoolQuotaKeeper";
854
616
  readonly inputs: readonly [{
855
- readonly internalType: "address";
856
617
  readonly name: "newPoolQuotaKeeper";
857
618
  readonly type: "address";
619
+ readonly internalType: "address";
858
620
  }];
859
- readonly name: "setPoolQuotaKeeper";
860
621
  readonly outputs: readonly [];
861
622
  readonly stateMutability: "nonpayable";
862
- readonly type: "function";
863
623
  }, {
624
+ readonly type: "function";
625
+ readonly name: "setQuotaRevenue";
864
626
  readonly inputs: readonly [{
865
- readonly internalType: "uint256";
866
627
  readonly name: "newQuotaRevenue";
867
628
  readonly type: "uint256";
629
+ readonly internalType: "uint256";
868
630
  }];
869
- readonly name: "setQuotaRevenue";
870
631
  readonly outputs: readonly [];
871
632
  readonly stateMutability: "nonpayable";
872
- readonly type: "function";
873
633
  }, {
634
+ readonly type: "function";
635
+ readonly name: "setTotalDebtLimit";
874
636
  readonly inputs: readonly [{
875
- readonly internalType: "uint256";
876
637
  readonly name: "newLimit";
877
638
  readonly type: "uint256";
639
+ readonly internalType: "uint256";
878
640
  }];
879
- readonly name: "setTotalDebtLimit";
880
641
  readonly outputs: readonly [];
881
642
  readonly stateMutability: "nonpayable";
882
- readonly type: "function";
883
643
  }, {
644
+ readonly type: "function";
645
+ readonly name: "setWithdrawFee";
884
646
  readonly inputs: readonly [{
885
- readonly internalType: "uint256";
886
647
  readonly name: "newWithdrawFee";
887
648
  readonly type: "uint256";
649
+ readonly internalType: "uint256";
888
650
  }];
889
- readonly name: "setWithdrawFee";
890
651
  readonly outputs: readonly [];
891
652
  readonly stateMutability: "nonpayable";
892
- readonly type: "function";
893
653
  }, {
894
- readonly inputs: readonly [];
654
+ readonly type: "function";
895
655
  readonly name: "supplyRate";
656
+ readonly inputs: readonly [];
896
657
  readonly outputs: readonly [{
897
- readonly internalType: "uint256";
898
658
  readonly name: "";
899
659
  readonly type: "uint256";
660
+ readonly internalType: "uint256";
900
661
  }];
901
662
  readonly stateMutability: "view";
902
- readonly type: "function";
903
663
  }, {
904
- readonly inputs: readonly [];
664
+ readonly type: "function";
905
665
  readonly name: "symbol";
666
+ readonly inputs: readonly [];
906
667
  readonly outputs: readonly [{
907
- readonly internalType: "string";
908
668
  readonly name: "";
909
669
  readonly type: "string";
670
+ readonly internalType: "string";
910
671
  }];
911
672
  readonly stateMutability: "view";
912
- readonly type: "function";
913
673
  }, {
914
- readonly inputs: readonly [];
674
+ readonly type: "function";
915
675
  readonly name: "totalAssets";
676
+ readonly inputs: readonly [];
916
677
  readonly outputs: readonly [{
917
- readonly internalType: "uint256";
918
678
  readonly name: "totalManagedAssets";
919
679
  readonly type: "uint256";
680
+ readonly internalType: "uint256";
920
681
  }];
921
682
  readonly stateMutability: "view";
922
- readonly type: "function";
923
683
  }, {
924
- readonly inputs: readonly [];
684
+ readonly type: "function";
925
685
  readonly name: "totalBorrowed";
686
+ readonly inputs: readonly [];
926
687
  readonly outputs: readonly [{
927
- readonly internalType: "uint256";
928
688
  readonly name: "";
929
689
  readonly type: "uint256";
690
+ readonly internalType: "uint256";
930
691
  }];
931
692
  readonly stateMutability: "view";
932
- readonly type: "function";
933
693
  }, {
934
- readonly inputs: readonly [];
694
+ readonly type: "function";
935
695
  readonly name: "totalDebtLimit";
696
+ readonly inputs: readonly [];
936
697
  readonly outputs: readonly [{
937
- readonly internalType: "uint256";
938
698
  readonly name: "";
939
699
  readonly type: "uint256";
700
+ readonly internalType: "uint256";
940
701
  }];
941
702
  readonly stateMutability: "view";
942
- readonly type: "function";
943
703
  }, {
944
- readonly inputs: readonly [];
704
+ readonly type: "function";
945
705
  readonly name: "totalSupply";
706
+ readonly inputs: readonly [];
946
707
  readonly outputs: readonly [{
947
- readonly internalType: "uint256";
948
708
  readonly name: "";
949
709
  readonly type: "uint256";
710
+ readonly internalType: "uint256";
950
711
  }];
951
712
  readonly stateMutability: "view";
952
- readonly type: "function";
953
713
  }, {
714
+ readonly type: "function";
715
+ readonly name: "transfer";
954
716
  readonly inputs: readonly [{
955
- readonly internalType: "address";
956
717
  readonly name: "to";
957
718
  readonly type: "address";
719
+ readonly internalType: "address";
958
720
  }, {
959
- readonly internalType: "uint256";
960
721
  readonly name: "amount";
961
722
  readonly type: "uint256";
723
+ readonly internalType: "uint256";
962
724
  }];
963
- readonly name: "transfer";
964
725
  readonly outputs: readonly [{
965
- readonly internalType: "bool";
966
726
  readonly name: "";
967
727
  readonly type: "bool";
728
+ readonly internalType: "bool";
968
729
  }];
969
730
  readonly stateMutability: "nonpayable";
970
- readonly type: "function";
971
731
  }, {
732
+ readonly type: "function";
733
+ readonly name: "transferFrom";
972
734
  readonly inputs: readonly [{
973
- readonly internalType: "address";
974
735
  readonly name: "from";
975
736
  readonly type: "address";
976
- }, {
977
737
  readonly internalType: "address";
738
+ }, {
978
739
  readonly name: "to";
979
740
  readonly type: "address";
741
+ readonly internalType: "address";
980
742
  }, {
981
- readonly internalType: "uint256";
982
743
  readonly name: "amount";
983
744
  readonly type: "uint256";
745
+ readonly internalType: "uint256";
984
746
  }];
985
- readonly name: "transferFrom";
986
747
  readonly outputs: readonly [{
987
- readonly internalType: "bool";
988
748
  readonly name: "";
989
749
  readonly type: "bool";
750
+ readonly internalType: "bool";
990
751
  }];
991
752
  readonly stateMutability: "nonpayable";
992
- readonly type: "function";
993
753
  }, {
994
- readonly inputs: readonly [];
754
+ readonly type: "function";
995
755
  readonly name: "treasury";
756
+ readonly inputs: readonly [];
996
757
  readonly outputs: readonly [{
997
- readonly internalType: "address";
998
758
  readonly name: "";
999
759
  readonly type: "address";
760
+ readonly internalType: "address";
1000
761
  }];
1001
762
  readonly stateMutability: "view";
1002
- readonly type: "function";
1003
763
  }, {
1004
- readonly inputs: readonly [];
764
+ readonly type: "function";
1005
765
  readonly name: "underlyingToken";
766
+ readonly inputs: readonly [];
1006
767
  readonly outputs: readonly [{
1007
- readonly internalType: "address";
1008
768
  readonly name: "";
1009
769
  readonly type: "address";
770
+ readonly internalType: "address";
1010
771
  }];
1011
772
  readonly stateMutability: "view";
1012
- readonly type: "function";
1013
773
  }, {
774
+ readonly type: "function";
775
+ readonly name: "updateQuotaRevenue";
1014
776
  readonly inputs: readonly [{
1015
- readonly internalType: "int256";
1016
777
  readonly name: "quotaRevenueDelta";
1017
778
  readonly type: "int256";
779
+ readonly internalType: "int256";
1018
780
  }];
1019
- readonly name: "updateQuotaRevenue";
1020
781
  readonly outputs: readonly [];
1021
782
  readonly stateMutability: "nonpayable";
1022
- readonly type: "function";
1023
783
  }, {
1024
- readonly inputs: readonly [];
784
+ readonly type: "function";
1025
785
  readonly name: "version";
786
+ readonly inputs: readonly [];
1026
787
  readonly outputs: readonly [{
1027
- readonly internalType: "uint256";
1028
788
  readonly name: "";
1029
789
  readonly type: "uint256";
790
+ readonly internalType: "uint256";
1030
791
  }];
1031
792
  readonly stateMutability: "view";
1032
- readonly type: "function";
1033
793
  }, {
794
+ readonly type: "function";
795
+ readonly name: "withdraw";
1034
796
  readonly inputs: readonly [{
1035
- readonly internalType: "uint256";
1036
797
  readonly name: "assets";
1037
798
  readonly type: "uint256";
799
+ readonly internalType: "uint256";
1038
800
  }, {
1039
- readonly internalType: "address";
1040
801
  readonly name: "receiver";
1041
802
  readonly type: "address";
1042
- }, {
1043
803
  readonly internalType: "address";
804
+ }, {
1044
805
  readonly name: "owner";
1045
806
  readonly type: "address";
807
+ readonly internalType: "address";
1046
808
  }];
1047
- readonly name: "withdraw";
1048
809
  readonly outputs: readonly [{
1049
- readonly internalType: "uint256";
1050
810
  readonly name: "shares";
1051
811
  readonly type: "uint256";
812
+ readonly internalType: "uint256";
1052
813
  }];
1053
814
  readonly stateMutability: "nonpayable";
1054
- readonly type: "function";
1055
815
  }, {
1056
- readonly inputs: readonly [];
816
+ readonly type: "function";
1057
817
  readonly name: "withdrawFee";
818
+ readonly inputs: readonly [];
1058
819
  readonly outputs: readonly [{
1059
- readonly internalType: "uint16";
1060
820
  readonly name: "";
1061
821
  readonly type: "uint16";
822
+ readonly internalType: "uint16";
1062
823
  }];
1063
824
  readonly stateMutability: "view";
1064
- readonly type: "function";
825
+ }, {
826
+ readonly type: "event";
827
+ readonly name: "AddCreditManager";
828
+ readonly inputs: readonly [{
829
+ readonly name: "creditManager";
830
+ readonly type: "address";
831
+ readonly indexed: true;
832
+ readonly internalType: "address";
833
+ }];
834
+ readonly anonymous: false;
835
+ }, {
836
+ readonly type: "event";
837
+ readonly name: "Approval";
838
+ readonly inputs: readonly [{
839
+ readonly name: "owner";
840
+ readonly type: "address";
841
+ readonly indexed: true;
842
+ readonly internalType: "address";
843
+ }, {
844
+ readonly name: "spender";
845
+ readonly type: "address";
846
+ readonly indexed: true;
847
+ readonly internalType: "address";
848
+ }, {
849
+ readonly name: "value";
850
+ readonly type: "uint256";
851
+ readonly indexed: false;
852
+ readonly internalType: "uint256";
853
+ }];
854
+ readonly anonymous: false;
855
+ }, {
856
+ readonly type: "event";
857
+ readonly name: "Borrow";
858
+ readonly inputs: readonly [{
859
+ readonly name: "creditManager";
860
+ readonly type: "address";
861
+ readonly indexed: true;
862
+ readonly internalType: "address";
863
+ }, {
864
+ readonly name: "creditAccount";
865
+ readonly type: "address";
866
+ readonly indexed: true;
867
+ readonly internalType: "address";
868
+ }, {
869
+ readonly name: "amount";
870
+ readonly type: "uint256";
871
+ readonly indexed: false;
872
+ readonly internalType: "uint256";
873
+ }];
874
+ readonly anonymous: false;
875
+ }, {
876
+ readonly type: "event";
877
+ readonly name: "Deposit";
878
+ readonly inputs: readonly [{
879
+ readonly name: "sender";
880
+ readonly type: "address";
881
+ readonly indexed: true;
882
+ readonly internalType: "address";
883
+ }, {
884
+ readonly name: "owner";
885
+ readonly type: "address";
886
+ readonly indexed: true;
887
+ readonly internalType: "address";
888
+ }, {
889
+ readonly name: "assets";
890
+ readonly type: "uint256";
891
+ readonly indexed: false;
892
+ readonly internalType: "uint256";
893
+ }, {
894
+ readonly name: "shares";
895
+ readonly type: "uint256";
896
+ readonly indexed: false;
897
+ readonly internalType: "uint256";
898
+ }];
899
+ readonly anonymous: false;
900
+ }, {
901
+ readonly type: "event";
902
+ readonly name: "IncurUncoveredLoss";
903
+ readonly inputs: readonly [{
904
+ readonly name: "creditManager";
905
+ readonly type: "address";
906
+ readonly indexed: true;
907
+ readonly internalType: "address";
908
+ }, {
909
+ readonly name: "loss";
910
+ readonly type: "uint256";
911
+ readonly indexed: false;
912
+ readonly internalType: "uint256";
913
+ }];
914
+ readonly anonymous: false;
915
+ }, {
916
+ readonly type: "event";
917
+ readonly name: "Refer";
918
+ readonly inputs: readonly [{
919
+ readonly name: "onBehalfOf";
920
+ readonly type: "address";
921
+ readonly indexed: true;
922
+ readonly internalType: "address";
923
+ }, {
924
+ readonly name: "referralCode";
925
+ readonly type: "uint256";
926
+ readonly indexed: true;
927
+ readonly internalType: "uint256";
928
+ }, {
929
+ readonly name: "amount";
930
+ readonly type: "uint256";
931
+ readonly indexed: false;
932
+ readonly internalType: "uint256";
933
+ }];
934
+ readonly anonymous: false;
935
+ }, {
936
+ readonly type: "event";
937
+ readonly name: "Repay";
938
+ readonly inputs: readonly [{
939
+ readonly name: "creditManager";
940
+ readonly type: "address";
941
+ readonly indexed: true;
942
+ readonly internalType: "address";
943
+ }, {
944
+ readonly name: "borrowedAmount";
945
+ readonly type: "uint256";
946
+ readonly indexed: false;
947
+ readonly internalType: "uint256";
948
+ }, {
949
+ readonly name: "profit";
950
+ readonly type: "uint256";
951
+ readonly indexed: false;
952
+ readonly internalType: "uint256";
953
+ }, {
954
+ readonly name: "loss";
955
+ readonly type: "uint256";
956
+ readonly indexed: false;
957
+ readonly internalType: "uint256";
958
+ }];
959
+ readonly anonymous: false;
960
+ }, {
961
+ readonly type: "event";
962
+ readonly name: "SetCreditManagerDebtLimit";
963
+ readonly inputs: readonly [{
964
+ readonly name: "creditManager";
965
+ readonly type: "address";
966
+ readonly indexed: true;
967
+ readonly internalType: "address";
968
+ }, {
969
+ readonly name: "newLimit";
970
+ readonly type: "uint256";
971
+ readonly indexed: false;
972
+ readonly internalType: "uint256";
973
+ }];
974
+ readonly anonymous: false;
975
+ }, {
976
+ readonly type: "event";
977
+ readonly name: "SetInterestRateModel";
978
+ readonly inputs: readonly [{
979
+ readonly name: "newInterestRateModel";
980
+ readonly type: "address";
981
+ readonly indexed: true;
982
+ readonly internalType: "address";
983
+ }];
984
+ readonly anonymous: false;
985
+ }, {
986
+ readonly type: "event";
987
+ readonly name: "SetPoolQuotaKeeper";
988
+ readonly inputs: readonly [{
989
+ readonly name: "newPoolQuotaKeeper";
990
+ readonly type: "address";
991
+ readonly indexed: true;
992
+ readonly internalType: "address";
993
+ }];
994
+ readonly anonymous: false;
995
+ }, {
996
+ readonly type: "event";
997
+ readonly name: "SetTotalDebtLimit";
998
+ readonly inputs: readonly [{
999
+ readonly name: "limit";
1000
+ readonly type: "uint256";
1001
+ readonly indexed: false;
1002
+ readonly internalType: "uint256";
1003
+ }];
1004
+ readonly anonymous: false;
1005
+ }, {
1006
+ readonly type: "event";
1007
+ readonly name: "SetWithdrawFee";
1008
+ readonly inputs: readonly [{
1009
+ readonly name: "fee";
1010
+ readonly type: "uint256";
1011
+ readonly indexed: false;
1012
+ readonly internalType: "uint256";
1013
+ }];
1014
+ readonly anonymous: false;
1015
+ }, {
1016
+ readonly type: "event";
1017
+ readonly name: "Transfer";
1018
+ readonly inputs: readonly [{
1019
+ readonly name: "from";
1020
+ readonly type: "address";
1021
+ readonly indexed: true;
1022
+ readonly internalType: "address";
1023
+ }, {
1024
+ readonly name: "to";
1025
+ readonly type: "address";
1026
+ readonly indexed: true;
1027
+ readonly internalType: "address";
1028
+ }, {
1029
+ readonly name: "value";
1030
+ readonly type: "uint256";
1031
+ readonly indexed: false;
1032
+ readonly internalType: "uint256";
1033
+ }];
1034
+ readonly anonymous: false;
1035
+ }, {
1036
+ readonly type: "event";
1037
+ readonly name: "Withdraw";
1038
+ readonly inputs: readonly [{
1039
+ readonly name: "sender";
1040
+ readonly type: "address";
1041
+ readonly indexed: true;
1042
+ readonly internalType: "address";
1043
+ }, {
1044
+ readonly name: "receiver";
1045
+ readonly type: "address";
1046
+ readonly indexed: true;
1047
+ readonly internalType: "address";
1048
+ }, {
1049
+ readonly name: "owner";
1050
+ readonly type: "address";
1051
+ readonly indexed: true;
1052
+ readonly internalType: "address";
1053
+ }, {
1054
+ readonly name: "assets";
1055
+ readonly type: "uint256";
1056
+ readonly indexed: false;
1057
+ readonly internalType: "uint256";
1058
+ }, {
1059
+ readonly name: "shares";
1060
+ readonly type: "uint256";
1061
+ readonly indexed: false;
1062
+ readonly internalType: "uint256";
1063
+ }];
1064
+ readonly anonymous: false;
1065
1065
  }];
1066
1066
  static createInterface(): IPoolV3Interface;
1067
1067
  static connect(address: string, signerOrProvider: Signer | Provider): IPoolV3;