@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
@@ -7,1387 +7,1387 @@ exports.IPoolV3__factory = void 0;
7
7
  const ethers_1 = require("ethers");
8
8
  const _abi = [
9
9
  {
10
- anonymous: false,
11
- inputs: [
10
+ type: "function",
11
+ name: "DOMAIN_SEPARATOR",
12
+ inputs: [],
13
+ outputs: [
12
14
  {
13
- indexed: true,
14
- internalType: "address",
15
- name: "creditManager",
15
+ name: "",
16
+ type: "bytes32",
17
+ internalType: "bytes32",
18
+ },
19
+ ],
20
+ stateMutability: "view",
21
+ },
22
+ {
23
+ type: "function",
24
+ name: "addressProvider",
25
+ inputs: [],
26
+ outputs: [
27
+ {
28
+ name: "",
16
29
  type: "address",
30
+ internalType: "address",
17
31
  },
18
32
  ],
19
- name: "AddCreditManager",
20
- type: "event",
33
+ stateMutability: "view",
21
34
  },
22
35
  {
23
- anonymous: false,
36
+ type: "function",
37
+ name: "allowance",
24
38
  inputs: [
25
39
  {
26
- indexed: true,
27
- internalType: "address",
28
40
  name: "owner",
29
41
  type: "address",
42
+ internalType: "address",
30
43
  },
31
44
  {
32
- indexed: true,
33
- internalType: "address",
34
45
  name: "spender",
35
46
  type: "address",
47
+ internalType: "address",
36
48
  },
49
+ ],
50
+ outputs: [
37
51
  {
38
- indexed: false,
39
- internalType: "uint256",
40
- name: "value",
52
+ name: "",
41
53
  type: "uint256",
54
+ internalType: "uint256",
42
55
  },
43
56
  ],
44
- name: "Approval",
45
- type: "event",
57
+ stateMutability: "view",
46
58
  },
47
59
  {
48
- anonymous: false,
60
+ type: "function",
61
+ name: "approve",
49
62
  inputs: [
50
63
  {
51
- indexed: true,
52
- internalType: "address",
53
- name: "creditManager",
64
+ name: "spender",
54
65
  type: "address",
55
- },
56
- {
57
- indexed: true,
58
66
  internalType: "address",
59
- name: "creditAccount",
60
- type: "address",
61
67
  },
62
68
  {
63
- indexed: false,
64
- internalType: "uint256",
65
69
  name: "amount",
66
70
  type: "uint256",
71
+ internalType: "uint256",
67
72
  },
68
73
  ],
69
- name: "Borrow",
70
- type: "event",
74
+ outputs: [
75
+ {
76
+ name: "",
77
+ type: "bool",
78
+ internalType: "bool",
79
+ },
80
+ ],
81
+ stateMutability: "nonpayable",
71
82
  },
72
83
  {
73
- anonymous: false,
74
- inputs: [
84
+ type: "function",
85
+ name: "asset",
86
+ inputs: [],
87
+ outputs: [
75
88
  {
76
- indexed: true,
77
- internalType: "address",
78
- name: "sender",
89
+ name: "assetTokenAddress",
79
90
  type: "address",
80
- },
81
- {
82
- indexed: true,
83
91
  internalType: "address",
84
- name: "owner",
85
- type: "address",
86
92
  },
93
+ ],
94
+ stateMutability: "view",
95
+ },
96
+ {
97
+ type: "function",
98
+ name: "availableLiquidity",
99
+ inputs: [],
100
+ outputs: [
87
101
  {
88
- indexed: false,
89
- internalType: "uint256",
90
- name: "assets",
102
+ name: "",
91
103
  type: "uint256",
92
- },
93
- {
94
- indexed: false,
95
104
  internalType: "uint256",
96
- name: "shares",
97
- type: "uint256",
98
105
  },
99
106
  ],
100
- name: "Deposit",
101
- type: "event",
107
+ stateMutability: "view",
102
108
  },
103
109
  {
104
- anonymous: false,
110
+ type: "function",
111
+ name: "balanceOf",
105
112
  inputs: [
106
113
  {
107
- indexed: true,
108
- internalType: "address",
109
- name: "creditManager",
114
+ name: "account",
110
115
  type: "address",
116
+ internalType: "address",
111
117
  },
118
+ ],
119
+ outputs: [
112
120
  {
113
- indexed: false,
114
- internalType: "uint256",
115
- name: "loss",
121
+ name: "",
116
122
  type: "uint256",
123
+ internalType: "uint256",
117
124
  },
118
125
  ],
119
- name: "IncurUncoveredLoss",
120
- type: "event",
126
+ stateMutability: "view",
121
127
  },
122
128
  {
123
- anonymous: false,
124
- inputs: [
129
+ type: "function",
130
+ name: "baseInterestIndex",
131
+ inputs: [],
132
+ outputs: [
125
133
  {
126
- indexed: true,
127
- internalType: "address",
128
- name: "onBehalfOf",
129
- type: "address",
134
+ name: "",
135
+ type: "uint256",
136
+ internalType: "uint256",
130
137
  },
138
+ ],
139
+ stateMutability: "view",
140
+ },
141
+ {
142
+ type: "function",
143
+ name: "baseInterestIndexLU",
144
+ inputs: [],
145
+ outputs: [
131
146
  {
132
- indexed: true,
133
- internalType: "uint256",
134
- name: "referralCode",
147
+ name: "",
135
148
  type: "uint256",
149
+ internalType: "uint256",
136
150
  },
151
+ ],
152
+ stateMutability: "view",
153
+ },
154
+ {
155
+ type: "function",
156
+ name: "baseInterestRate",
157
+ inputs: [],
158
+ outputs: [
137
159
  {
138
- indexed: false,
139
- internalType: "uint256",
140
- name: "amount",
160
+ name: "",
141
161
  type: "uint256",
162
+ internalType: "uint256",
142
163
  },
143
164
  ],
144
- name: "Refer",
145
- type: "event",
165
+ stateMutability: "view",
146
166
  },
147
167
  {
148
- anonymous: false,
168
+ type: "function",
169
+ name: "convertToAssets",
149
170
  inputs: [
150
171
  {
151
- indexed: true,
152
- internalType: "address",
153
- name: "creditManager",
154
- type: "address",
172
+ name: "shares",
173
+ type: "uint256",
174
+ internalType: "uint256",
155
175
  },
176
+ ],
177
+ outputs: [
156
178
  {
157
- indexed: false,
158
- internalType: "uint256",
159
- name: "borrowedAmount",
179
+ name: "assets",
160
180
  type: "uint256",
181
+ internalType: "uint256",
161
182
  },
183
+ ],
184
+ stateMutability: "view",
185
+ },
186
+ {
187
+ type: "function",
188
+ name: "convertToShares",
189
+ inputs: [
162
190
  {
163
- indexed: false,
164
- internalType: "uint256",
165
- name: "profit",
191
+ name: "assets",
166
192
  type: "uint256",
193
+ internalType: "uint256",
167
194
  },
195
+ ],
196
+ outputs: [
168
197
  {
169
- indexed: false,
170
- internalType: "uint256",
171
- name: "loss",
198
+ name: "shares",
172
199
  type: "uint256",
200
+ internalType: "uint256",
173
201
  },
174
202
  ],
175
- name: "Repay",
176
- type: "event",
203
+ stateMutability: "view",
177
204
  },
178
205
  {
179
- anonymous: false,
206
+ type: "function",
207
+ name: "creditManagerBorrowable",
180
208
  inputs: [
181
209
  {
182
- indexed: true,
183
- internalType: "address",
184
210
  name: "creditManager",
185
211
  type: "address",
212
+ internalType: "address",
186
213
  },
214
+ ],
215
+ outputs: [
187
216
  {
188
- indexed: false,
189
- internalType: "uint256",
190
- name: "newLimit",
217
+ name: "borrowable",
191
218
  type: "uint256",
219
+ internalType: "uint256",
192
220
  },
193
221
  ],
194
- name: "SetCreditManagerDebtLimit",
195
- type: "event",
222
+ stateMutability: "view",
196
223
  },
197
224
  {
198
- anonymous: false,
225
+ type: "function",
226
+ name: "creditManagerBorrowed",
199
227
  inputs: [
200
228
  {
201
- indexed: true,
202
- internalType: "address",
203
- name: "newInterestRateModel",
229
+ name: "creditManager",
204
230
  type: "address",
231
+ internalType: "address",
205
232
  },
206
233
  ],
207
- name: "SetInterestRateModel",
208
- type: "event",
209
- },
210
- {
211
- anonymous: false,
212
- inputs: [
234
+ outputs: [
213
235
  {
214
- indexed: true,
215
- internalType: "address",
216
- name: "newPoolQuotaKeeper",
217
- type: "address",
236
+ name: "",
237
+ type: "uint256",
238
+ internalType: "uint256",
218
239
  },
219
240
  ],
220
- name: "SetPoolQuotaKeeper",
221
- type: "event",
241
+ stateMutability: "view",
222
242
  },
223
243
  {
224
- anonymous: false,
244
+ type: "function",
245
+ name: "creditManagerDebtLimit",
225
246
  inputs: [
226
247
  {
227
- indexed: false,
228
- internalType: "uint256",
229
- name: "limit",
230
- type: "uint256",
248
+ name: "creditManager",
249
+ type: "address",
250
+ internalType: "address",
231
251
  },
232
252
  ],
233
- name: "SetTotalDebtLimit",
234
- type: "event",
235
- },
236
- {
237
- anonymous: false,
238
- inputs: [
239
- {
240
- indexed: false,
241
- internalType: "uint256",
242
- name: "fee",
243
- type: "uint256",
244
- },
245
- ],
246
- name: "SetWithdrawFee",
247
- type: "event",
248
- },
249
- {
250
- anonymous: false,
251
- inputs: [
252
- {
253
- indexed: true,
254
- internalType: "address",
255
- name: "from",
256
- type: "address",
257
- },
258
- {
259
- indexed: true,
260
- internalType: "address",
261
- name: "to",
262
- type: "address",
263
- },
264
- {
265
- indexed: false,
266
- internalType: "uint256",
267
- name: "value",
268
- type: "uint256",
269
- },
270
- ],
271
- name: "Transfer",
272
- type: "event",
273
- },
274
- {
275
- anonymous: false,
276
- inputs: [
277
- {
278
- indexed: true,
279
- internalType: "address",
280
- name: "sender",
281
- type: "address",
282
- },
283
- {
284
- indexed: true,
285
- internalType: "address",
286
- name: "receiver",
287
- type: "address",
288
- },
289
- {
290
- indexed: true,
291
- internalType: "address",
292
- name: "owner",
293
- type: "address",
294
- },
253
+ outputs: [
295
254
  {
296
- indexed: false,
297
- internalType: "uint256",
298
- name: "assets",
255
+ name: "",
299
256
  type: "uint256",
300
- },
301
- {
302
- indexed: false,
303
257
  internalType: "uint256",
304
- name: "shares",
305
- type: "uint256",
306
258
  },
307
259
  ],
308
- name: "Withdraw",
309
- type: "event",
260
+ stateMutability: "view",
310
261
  },
311
262
  {
263
+ type: "function",
264
+ name: "creditManagers",
312
265
  inputs: [],
313
- name: "DOMAIN_SEPARATOR",
314
266
  outputs: [
315
267
  {
316
- internalType: "bytes32",
317
268
  name: "",
318
- type: "bytes32",
269
+ type: "address[]",
270
+ internalType: "address[]",
319
271
  },
320
272
  ],
321
273
  stateMutability: "view",
322
- type: "function",
323
274
  },
324
275
  {
276
+ type: "function",
277
+ name: "decimals",
325
278
  inputs: [],
326
- name: "addressProvider",
327
279
  outputs: [
328
280
  {
329
- internalType: "address",
330
281
  name: "",
331
- type: "address",
282
+ type: "uint8",
283
+ internalType: "uint8",
332
284
  },
333
285
  ],
334
286
  stateMutability: "view",
335
- type: "function",
336
287
  },
337
288
  {
289
+ type: "function",
290
+ name: "deposit",
338
291
  inputs: [
339
292
  {
340
- internalType: "address",
341
- name: "owner",
342
- type: "address",
293
+ name: "assets",
294
+ type: "uint256",
295
+ internalType: "uint256",
343
296
  },
344
297
  {
345
- internalType: "address",
346
- name: "spender",
298
+ name: "receiver",
347
299
  type: "address",
300
+ internalType: "address",
348
301
  },
349
302
  ],
350
- name: "allowance",
351
303
  outputs: [
352
304
  {
353
- internalType: "uint256",
354
- name: "",
305
+ name: "shares",
355
306
  type: "uint256",
307
+ internalType: "uint256",
356
308
  },
357
309
  ],
358
- stateMutability: "view",
359
- type: "function",
310
+ stateMutability: "nonpayable",
360
311
  },
361
312
  {
313
+ type: "function",
314
+ name: "depositWithReferral",
362
315
  inputs: [
363
316
  {
364
- internalType: "address",
365
- name: "spender",
317
+ name: "assets",
318
+ type: "uint256",
319
+ internalType: "uint256",
320
+ },
321
+ {
322
+ name: "receiver",
366
323
  type: "address",
324
+ internalType: "address",
367
325
  },
368
326
  {
369
- internalType: "uint256",
370
- name: "amount",
327
+ name: "referralCode",
371
328
  type: "uint256",
329
+ internalType: "uint256",
372
330
  },
373
331
  ],
374
- name: "approve",
375
332
  outputs: [
376
333
  {
377
- internalType: "bool",
378
- name: "",
379
- type: "bool",
334
+ name: "shares",
335
+ type: "uint256",
336
+ internalType: "uint256",
380
337
  },
381
338
  ],
382
339
  stateMutability: "nonpayable",
383
- type: "function",
384
340
  },
385
341
  {
386
- inputs: [],
387
- name: "asset",
388
- outputs: [
389
- {
390
- internalType: "address",
391
- name: "assetTokenAddress",
392
- type: "address",
393
- },
394
- ],
395
- stateMutability: "view",
396
342
  type: "function",
397
- },
398
- {
343
+ name: "expectedLiquidity",
399
344
  inputs: [],
400
- name: "availableLiquidity",
401
345
  outputs: [
402
346
  {
403
- internalType: "uint256",
404
347
  name: "",
405
348
  type: "uint256",
349
+ internalType: "uint256",
406
350
  },
407
351
  ],
408
352
  stateMutability: "view",
409
- type: "function",
410
353
  },
411
354
  {
412
- inputs: [
413
- {
414
- internalType: "address",
415
- name: "account",
416
- type: "address",
417
- },
418
- ],
419
- name: "balanceOf",
355
+ type: "function",
356
+ name: "expectedLiquidityLU",
357
+ inputs: [],
420
358
  outputs: [
421
359
  {
422
- internalType: "uint256",
423
360
  name: "",
424
361
  type: "uint256",
362
+ internalType: "uint256",
425
363
  },
426
364
  ],
427
365
  stateMutability: "view",
428
- type: "function",
429
366
  },
430
367
  {
368
+ type: "function",
369
+ name: "interestRateModel",
431
370
  inputs: [],
432
- name: "baseInterestIndex",
433
371
  outputs: [
434
372
  {
435
- internalType: "uint256",
436
373
  name: "",
437
- type: "uint256",
374
+ type: "address",
375
+ internalType: "address",
438
376
  },
439
377
  ],
440
378
  stateMutability: "view",
441
- type: "function",
442
379
  },
443
380
  {
381
+ type: "function",
382
+ name: "lastBaseInterestUpdate",
444
383
  inputs: [],
445
- name: "baseInterestIndexLU",
446
384
  outputs: [
447
385
  {
448
- internalType: "uint256",
449
386
  name: "",
450
- type: "uint256",
387
+ type: "uint40",
388
+ internalType: "uint40",
451
389
  },
452
390
  ],
453
391
  stateMutability: "view",
454
- type: "function",
455
392
  },
456
393
  {
394
+ type: "function",
395
+ name: "lastQuotaRevenueUpdate",
457
396
  inputs: [],
458
- name: "baseInterestRate",
459
397
  outputs: [
460
398
  {
461
- internalType: "uint256",
462
399
  name: "",
463
- type: "uint256",
400
+ type: "uint40",
401
+ internalType: "uint40",
464
402
  },
465
403
  ],
466
404
  stateMutability: "view",
467
- type: "function",
468
405
  },
469
406
  {
407
+ type: "function",
408
+ name: "lendCreditAccount",
470
409
  inputs: [
471
410
  {
472
- internalType: "uint256",
473
- name: "shares",
411
+ name: "borrowedAmount",
474
412
  type: "uint256",
413
+ internalType: "uint256",
475
414
  },
476
- ],
477
- name: "convertToAssets",
478
- outputs: [
479
415
  {
480
- internalType: "uint256",
481
- name: "assets",
482
- type: "uint256",
416
+ name: "creditAccount",
417
+ type: "address",
418
+ internalType: "address",
483
419
  },
484
420
  ],
485
- stateMutability: "view",
486
- type: "function",
421
+ outputs: [],
422
+ stateMutability: "nonpayable",
487
423
  },
488
424
  {
425
+ type: "function",
426
+ name: "maxDeposit",
489
427
  inputs: [
490
428
  {
491
- internalType: "uint256",
492
- name: "assets",
493
- type: "uint256",
429
+ name: "receiver",
430
+ type: "address",
431
+ internalType: "address",
494
432
  },
495
433
  ],
496
- name: "convertToShares",
497
434
  outputs: [
498
435
  {
499
- internalType: "uint256",
500
- name: "shares",
436
+ name: "maxAssets",
501
437
  type: "uint256",
438
+ internalType: "uint256",
502
439
  },
503
440
  ],
504
441
  stateMutability: "view",
505
- type: "function",
506
442
  },
507
443
  {
444
+ type: "function",
445
+ name: "maxMint",
508
446
  inputs: [
509
447
  {
510
- internalType: "address",
511
- name: "creditManager",
448
+ name: "receiver",
512
449
  type: "address",
450
+ internalType: "address",
513
451
  },
514
452
  ],
515
- name: "creditManagerBorrowable",
516
453
  outputs: [
517
454
  {
518
- internalType: "uint256",
519
- name: "borrowable",
455
+ name: "maxShares",
520
456
  type: "uint256",
457
+ internalType: "uint256",
521
458
  },
522
459
  ],
523
460
  stateMutability: "view",
524
- type: "function",
525
461
  },
526
462
  {
463
+ type: "function",
464
+ name: "maxRedeem",
527
465
  inputs: [
528
466
  {
529
- internalType: "address",
530
- name: "creditManager",
467
+ name: "owner",
531
468
  type: "address",
469
+ internalType: "address",
532
470
  },
533
471
  ],
534
- name: "creditManagerBorrowed",
535
472
  outputs: [
536
473
  {
537
- internalType: "uint256",
538
- name: "",
474
+ name: "maxShares",
539
475
  type: "uint256",
476
+ internalType: "uint256",
540
477
  },
541
478
  ],
542
479
  stateMutability: "view",
543
- type: "function",
544
480
  },
545
481
  {
482
+ type: "function",
483
+ name: "maxWithdraw",
546
484
  inputs: [
547
485
  {
548
- internalType: "address",
549
- name: "creditManager",
486
+ name: "owner",
550
487
  type: "address",
488
+ internalType: "address",
551
489
  },
552
490
  ],
553
- name: "creditManagerDebtLimit",
554
491
  outputs: [
555
492
  {
556
- internalType: "uint256",
557
- name: "",
493
+ name: "maxAssets",
558
494
  type: "uint256",
495
+ internalType: "uint256",
559
496
  },
560
497
  ],
561
498
  stateMutability: "view",
562
- type: "function",
563
- },
564
- {
565
- inputs: [],
566
- name: "creditManagers",
567
- outputs: [
568
- {
569
- internalType: "address[]",
570
- name: "",
571
- type: "address[]",
572
- },
573
- ],
574
- stateMutability: "view",
575
- type: "function",
576
499
  },
577
500
  {
578
- inputs: [],
579
- name: "decimals",
580
- outputs: [
581
- {
582
- internalType: "uint8",
583
- name: "",
584
- type: "uint8",
585
- },
586
- ],
587
- stateMutability: "view",
588
501
  type: "function",
589
- },
590
- {
502
+ name: "mint",
591
503
  inputs: [
592
504
  {
593
- internalType: "uint256",
594
- name: "assets",
505
+ name: "shares",
595
506
  type: "uint256",
507
+ internalType: "uint256",
596
508
  },
597
509
  {
598
- internalType: "address",
599
510
  name: "receiver",
600
511
  type: "address",
512
+ internalType: "address",
601
513
  },
602
514
  ],
603
- name: "deposit",
604
515
  outputs: [
605
516
  {
606
- internalType: "uint256",
607
- name: "shares",
517
+ name: "assets",
608
518
  type: "uint256",
519
+ internalType: "uint256",
609
520
  },
610
521
  ],
611
522
  stateMutability: "nonpayable",
612
- type: "function",
613
523
  },
614
524
  {
525
+ type: "function",
526
+ name: "mintWithReferral",
615
527
  inputs: [
616
528
  {
617
- internalType: "uint256",
618
- name: "assets",
529
+ name: "shares",
619
530
  type: "uint256",
531
+ internalType: "uint256",
620
532
  },
621
533
  {
622
- internalType: "address",
623
534
  name: "receiver",
624
535
  type: "address",
536
+ internalType: "address",
625
537
  },
626
538
  {
627
- internalType: "uint16",
628
539
  name: "referralCode",
629
- type: "uint16",
540
+ type: "uint256",
541
+ internalType: "uint256",
630
542
  },
631
543
  ],
632
- name: "depositWithReferral",
633
544
  outputs: [
634
545
  {
635
- internalType: "uint256",
636
- name: "shares",
546
+ name: "assets",
637
547
  type: "uint256",
548
+ internalType: "uint256",
638
549
  },
639
550
  ],
640
551
  stateMutability: "nonpayable",
641
- type: "function",
642
552
  },
643
553
  {
554
+ type: "function",
555
+ name: "name",
644
556
  inputs: [],
645
- name: "expectedLiquidity",
646
557
  outputs: [
647
558
  {
648
- internalType: "uint256",
649
559
  name: "",
650
- type: "uint256",
560
+ type: "string",
561
+ internalType: "string",
651
562
  },
652
563
  ],
653
564
  stateMutability: "view",
654
- type: "function",
655
565
  },
656
566
  {
657
- inputs: [],
658
- name: "expectedLiquidityLU",
567
+ type: "function",
568
+ name: "nonces",
569
+ inputs: [
570
+ {
571
+ name: "owner",
572
+ type: "address",
573
+ internalType: "address",
574
+ },
575
+ ],
659
576
  outputs: [
660
577
  {
661
- internalType: "uint256",
662
578
  name: "",
663
579
  type: "uint256",
580
+ internalType: "uint256",
664
581
  },
665
582
  ],
666
583
  stateMutability: "view",
667
- type: "function",
668
584
  },
669
585
  {
670
- inputs: [],
671
- name: "interestRateModel",
672
- outputs: [
586
+ type: "function",
587
+ name: "permit",
588
+ inputs: [
673
589
  {
590
+ name: "owner",
591
+ type: "address",
674
592
  internalType: "address",
675
- name: "",
593
+ },
594
+ {
595
+ name: "spender",
676
596
  type: "address",
597
+ internalType: "address",
677
598
  },
678
- ],
679
- stateMutability: "view",
680
- type: "function",
681
- },
682
- {
683
- inputs: [],
684
- name: "lastBaseInterestUpdate",
685
- outputs: [
686
599
  {
687
- internalType: "uint40",
688
- name: "",
689
- type: "uint40",
600
+ name: "value",
601
+ type: "uint256",
602
+ internalType: "uint256",
603
+ },
604
+ {
605
+ name: "deadline",
606
+ type: "uint256",
607
+ internalType: "uint256",
608
+ },
609
+ {
610
+ name: "v",
611
+ type: "uint8",
612
+ internalType: "uint8",
613
+ },
614
+ {
615
+ name: "r",
616
+ type: "bytes32",
617
+ internalType: "bytes32",
618
+ },
619
+ {
620
+ name: "s",
621
+ type: "bytes32",
622
+ internalType: "bytes32",
690
623
  },
691
624
  ],
692
- stateMutability: "view",
693
- type: "function",
625
+ outputs: [],
626
+ stateMutability: "nonpayable",
694
627
  },
695
628
  {
629
+ type: "function",
630
+ name: "poolQuotaKeeper",
696
631
  inputs: [],
697
- name: "lastQuotaRevenueUpdate",
698
632
  outputs: [
699
633
  {
700
- internalType: "uint40",
701
634
  name: "",
702
- type: "uint40",
635
+ type: "address",
636
+ internalType: "address",
703
637
  },
704
638
  ],
705
639
  stateMutability: "view",
706
- type: "function",
707
640
  },
708
641
  {
642
+ type: "function",
643
+ name: "previewDeposit",
709
644
  inputs: [
710
645
  {
711
- internalType: "uint256",
712
- name: "borrowedAmount",
646
+ name: "assets",
713
647
  type: "uint256",
648
+ internalType: "uint256",
714
649
  },
650
+ ],
651
+ outputs: [
715
652
  {
716
- internalType: "address",
717
- name: "creditAccount",
718
- type: "address",
653
+ name: "shares",
654
+ type: "uint256",
655
+ internalType: "uint256",
719
656
  },
720
657
  ],
721
- name: "lendCreditAccount",
722
- outputs: [],
723
- stateMutability: "nonpayable",
724
- type: "function",
658
+ stateMutability: "view",
725
659
  },
726
660
  {
661
+ type: "function",
662
+ name: "previewMint",
727
663
  inputs: [
728
664
  {
729
- internalType: "address",
730
- name: "receiver",
731
- type: "address",
665
+ name: "shares",
666
+ type: "uint256",
667
+ internalType: "uint256",
732
668
  },
733
669
  ],
734
- name: "maxDeposit",
735
670
  outputs: [
736
671
  {
737
- internalType: "uint256",
738
- name: "maxAssets",
672
+ name: "assets",
739
673
  type: "uint256",
674
+ internalType: "uint256",
740
675
  },
741
676
  ],
742
677
  stateMutability: "view",
743
- type: "function",
744
678
  },
745
679
  {
680
+ type: "function",
681
+ name: "previewRedeem",
746
682
  inputs: [
747
683
  {
748
- internalType: "address",
749
- name: "receiver",
750
- type: "address",
684
+ name: "shares",
685
+ type: "uint256",
686
+ internalType: "uint256",
751
687
  },
752
688
  ],
753
- name: "maxMint",
754
689
  outputs: [
755
690
  {
756
- internalType: "uint256",
757
- name: "maxShares",
691
+ name: "assets",
758
692
  type: "uint256",
693
+ internalType: "uint256",
759
694
  },
760
695
  ],
761
696
  stateMutability: "view",
762
- type: "function",
763
697
  },
764
698
  {
699
+ type: "function",
700
+ name: "previewWithdraw",
765
701
  inputs: [
766
702
  {
767
- internalType: "address",
768
- name: "owner",
769
- type: "address",
703
+ name: "assets",
704
+ type: "uint256",
705
+ internalType: "uint256",
770
706
  },
771
707
  ],
772
- name: "maxRedeem",
773
708
  outputs: [
774
709
  {
775
- internalType: "uint256",
776
- name: "maxShares",
710
+ name: "shares",
777
711
  type: "uint256",
712
+ internalType: "uint256",
778
713
  },
779
714
  ],
780
715
  stateMutability: "view",
781
- type: "function",
782
716
  },
783
717
  {
784
- inputs: [
785
- {
786
- internalType: "address",
787
- name: "owner",
788
- type: "address",
789
- },
790
- ],
791
- name: "maxWithdraw",
718
+ type: "function",
719
+ name: "quotaRevenue",
720
+ inputs: [],
792
721
  outputs: [
793
722
  {
794
- internalType: "uint256",
795
- name: "maxAssets",
723
+ name: "",
796
724
  type: "uint256",
725
+ internalType: "uint256",
797
726
  },
798
727
  ],
799
728
  stateMutability: "view",
800
- type: "function",
801
729
  },
802
730
  {
731
+ type: "function",
732
+ name: "redeem",
803
733
  inputs: [
804
734
  {
805
- internalType: "uint256",
806
735
  name: "shares",
807
736
  type: "uint256",
737
+ internalType: "uint256",
808
738
  },
809
739
  {
810
- internalType: "address",
811
740
  name: "receiver",
812
741
  type: "address",
742
+ internalType: "address",
743
+ },
744
+ {
745
+ name: "owner",
746
+ type: "address",
747
+ internalType: "address",
813
748
  },
814
749
  ],
815
- name: "mint",
816
750
  outputs: [
817
751
  {
818
- internalType: "uint256",
819
752
  name: "assets",
820
753
  type: "uint256",
754
+ internalType: "uint256",
821
755
  },
822
756
  ],
823
757
  stateMutability: "nonpayable",
824
- type: "function",
825
758
  },
826
759
  {
760
+ type: "function",
761
+ name: "repayCreditAccount",
827
762
  inputs: [
828
763
  {
829
- internalType: "uint256",
830
- name: "shares",
764
+ name: "repaidAmount",
831
765
  type: "uint256",
766
+ internalType: "uint256",
832
767
  },
833
768
  {
834
- internalType: "address",
835
- name: "receiver",
836
- type: "address",
837
- },
838
- {
839
- internalType: "uint16",
840
- name: "referralCode",
841
- type: "uint16",
769
+ name: "profit",
770
+ type: "uint256",
771
+ internalType: "uint256",
842
772
  },
843
- ],
844
- name: "mintWithReferral",
845
- outputs: [
846
773
  {
847
- internalType: "uint256",
848
- name: "assets",
774
+ name: "loss",
849
775
  type: "uint256",
776
+ internalType: "uint256",
850
777
  },
851
778
  ],
779
+ outputs: [],
852
780
  stateMutability: "nonpayable",
853
- type: "function",
854
781
  },
855
782
  {
856
- inputs: [],
857
- name: "name",
858
- outputs: [
859
- {
860
- internalType: "string",
861
- name: "",
862
- type: "string",
863
- },
864
- ],
865
- stateMutability: "view",
866
783
  type: "function",
867
- },
868
- {
784
+ name: "setCreditManagerDebtLimit",
869
785
  inputs: [
870
786
  {
871
- internalType: "address",
872
- name: "owner",
787
+ name: "creditManager",
873
788
  type: "address",
789
+ internalType: "address",
874
790
  },
875
- ],
876
- name: "nonces",
877
- outputs: [
878
791
  {
879
- internalType: "uint256",
880
- name: "",
792
+ name: "newLimit",
881
793
  type: "uint256",
794
+ internalType: "uint256",
882
795
  },
883
796
  ],
884
- stateMutability: "view",
885
- type: "function",
797
+ outputs: [],
798
+ stateMutability: "nonpayable",
886
799
  },
887
800
  {
801
+ type: "function",
802
+ name: "setInterestRateModel",
888
803
  inputs: [
889
804
  {
890
- internalType: "address",
891
- name: "owner",
805
+ name: "newInterestRateModel",
892
806
  type: "address",
893
- },
894
- {
895
807
  internalType: "address",
896
- name: "spender",
897
- type: "address",
898
- },
899
- {
900
- internalType: "uint256",
901
- name: "value",
902
- type: "uint256",
903
- },
904
- {
905
- internalType: "uint256",
906
- name: "deadline",
907
- type: "uint256",
908
- },
909
- {
910
- internalType: "uint8",
911
- name: "v",
912
- type: "uint8",
913
- },
914
- {
915
- internalType: "bytes32",
916
- name: "r",
917
- type: "bytes32",
918
- },
919
- {
920
- internalType: "bytes32",
921
- name: "s",
922
- type: "bytes32",
923
808
  },
924
809
  ],
925
- name: "permit",
926
810
  outputs: [],
927
811
  stateMutability: "nonpayable",
928
- type: "function",
929
812
  },
930
813
  {
931
- inputs: [],
932
- name: "poolQuotaKeeper",
933
- outputs: [
814
+ type: "function",
815
+ name: "setPoolQuotaKeeper",
816
+ inputs: [
934
817
  {
935
- internalType: "address",
936
- name: "",
818
+ name: "newPoolQuotaKeeper",
937
819
  type: "address",
820
+ internalType: "address",
938
821
  },
939
822
  ],
940
- stateMutability: "view",
941
- type: "function",
823
+ outputs: [],
824
+ stateMutability: "nonpayable",
942
825
  },
943
826
  {
827
+ type: "function",
828
+ name: "setQuotaRevenue",
944
829
  inputs: [
945
830
  {
946
- internalType: "uint256",
947
- name: "assets",
831
+ name: "newQuotaRevenue",
948
832
  type: "uint256",
833
+ internalType: "uint256",
949
834
  },
950
835
  ],
951
- name: "previewDeposit",
952
- outputs: [
836
+ outputs: [],
837
+ stateMutability: "nonpayable",
838
+ },
839
+ {
840
+ type: "function",
841
+ name: "setTotalDebtLimit",
842
+ inputs: [
953
843
  {
954
- internalType: "uint256",
955
- name: "shares",
844
+ name: "newLimit",
956
845
  type: "uint256",
846
+ internalType: "uint256",
957
847
  },
958
848
  ],
959
- stateMutability: "view",
960
- type: "function",
849
+ outputs: [],
850
+ stateMutability: "nonpayable",
961
851
  },
962
852
  {
853
+ type: "function",
854
+ name: "setWithdrawFee",
963
855
  inputs: [
964
856
  {
965
- internalType: "uint256",
966
- name: "shares",
857
+ name: "newWithdrawFee",
967
858
  type: "uint256",
859
+ internalType: "uint256",
968
860
  },
969
861
  ],
970
- name: "previewMint",
862
+ outputs: [],
863
+ stateMutability: "nonpayable",
864
+ },
865
+ {
866
+ type: "function",
867
+ name: "supplyRate",
868
+ inputs: [],
971
869
  outputs: [
972
870
  {
973
- internalType: "uint256",
974
- name: "assets",
871
+ name: "",
975
872
  type: "uint256",
873
+ internalType: "uint256",
976
874
  },
977
875
  ],
978
876
  stateMutability: "view",
979
- type: "function",
980
877
  },
981
878
  {
982
- inputs: [
879
+ type: "function",
880
+ name: "symbol",
881
+ inputs: [],
882
+ outputs: [
983
883
  {
984
- internalType: "uint256",
985
- name: "shares",
986
- type: "uint256",
884
+ name: "",
885
+ type: "string",
886
+ internalType: "string",
987
887
  },
988
888
  ],
989
- name: "previewRedeem",
889
+ stateMutability: "view",
890
+ },
891
+ {
892
+ type: "function",
893
+ name: "totalAssets",
894
+ inputs: [],
990
895
  outputs: [
991
896
  {
992
- internalType: "uint256",
993
- name: "assets",
897
+ name: "totalManagedAssets",
994
898
  type: "uint256",
899
+ internalType: "uint256",
995
900
  },
996
901
  ],
997
902
  stateMutability: "view",
998
- type: "function",
999
903
  },
1000
904
  {
1001
- inputs: [
905
+ type: "function",
906
+ name: "totalBorrowed",
907
+ inputs: [],
908
+ outputs: [
1002
909
  {
1003
- internalType: "uint256",
1004
- name: "assets",
910
+ name: "",
1005
911
  type: "uint256",
912
+ internalType: "uint256",
1006
913
  },
1007
914
  ],
1008
- name: "previewWithdraw",
915
+ stateMutability: "view",
916
+ },
917
+ {
918
+ type: "function",
919
+ name: "totalDebtLimit",
920
+ inputs: [],
1009
921
  outputs: [
1010
922
  {
1011
- internalType: "uint256",
1012
- name: "shares",
923
+ name: "",
1013
924
  type: "uint256",
925
+ internalType: "uint256",
1014
926
  },
1015
927
  ],
1016
928
  stateMutability: "view",
1017
- type: "function",
1018
929
  },
1019
930
  {
931
+ type: "function",
932
+ name: "totalSupply",
1020
933
  inputs: [],
1021
- name: "quotaRevenue",
1022
934
  outputs: [
1023
935
  {
1024
- internalType: "uint256",
1025
936
  name: "",
1026
937
  type: "uint256",
938
+ internalType: "uint256",
1027
939
  },
1028
940
  ],
1029
941
  stateMutability: "view",
1030
- type: "function",
1031
942
  },
1032
943
  {
944
+ type: "function",
945
+ name: "transfer",
1033
946
  inputs: [
1034
947
  {
1035
- internalType: "uint256",
1036
- name: "shares",
1037
- type: "uint256",
1038
- },
1039
- {
1040
- internalType: "address",
1041
- name: "receiver",
948
+ name: "to",
1042
949
  type: "address",
950
+ internalType: "address",
1043
951
  },
1044
952
  {
1045
- internalType: "address",
1046
- name: "owner",
1047
- type: "address",
953
+ name: "amount",
954
+ type: "uint256",
955
+ internalType: "uint256",
1048
956
  },
1049
957
  ],
1050
- name: "redeem",
1051
958
  outputs: [
1052
959
  {
1053
- internalType: "uint256",
1054
- name: "assets",
1055
- type: "uint256",
960
+ name: "",
961
+ type: "bool",
962
+ internalType: "bool",
1056
963
  },
1057
964
  ],
1058
965
  stateMutability: "nonpayable",
1059
- type: "function",
1060
966
  },
1061
967
  {
968
+ type: "function",
969
+ name: "transferFrom",
1062
970
  inputs: [
1063
971
  {
1064
- internalType: "uint256",
1065
- name: "repaidAmount",
1066
- type: "uint256",
972
+ name: "from",
973
+ type: "address",
974
+ internalType: "address",
1067
975
  },
1068
976
  {
1069
- internalType: "uint256",
1070
- name: "profit",
1071
- type: "uint256",
977
+ name: "to",
978
+ type: "address",
979
+ internalType: "address",
1072
980
  },
1073
981
  {
1074
- internalType: "uint256",
1075
- name: "loss",
982
+ name: "amount",
1076
983
  type: "uint256",
984
+ internalType: "uint256",
1077
985
  },
1078
986
  ],
1079
- name: "repayCreditAccount",
1080
- outputs: [],
1081
- stateMutability: "nonpayable",
1082
- type: "function",
1083
- },
1084
- {
1085
- inputs: [
1086
- {
1087
- internalType: "address",
1088
- name: "creditManager",
1089
- type: "address",
1090
- },
987
+ outputs: [
1091
988
  {
1092
- internalType: "uint256",
1093
- name: "newLimit",
1094
- type: "uint256",
989
+ name: "",
990
+ type: "bool",
991
+ internalType: "bool",
1095
992
  },
1096
993
  ],
1097
- name: "setCreditManagerDebtLimit",
1098
- outputs: [],
1099
994
  stateMutability: "nonpayable",
1100
- type: "function",
1101
995
  },
1102
996
  {
1103
- inputs: [
997
+ type: "function",
998
+ name: "treasury",
999
+ inputs: [],
1000
+ outputs: [
1104
1001
  {
1105
- internalType: "address",
1106
- name: "newInterestRateModel",
1002
+ name: "",
1107
1003
  type: "address",
1004
+ internalType: "address",
1108
1005
  },
1109
1006
  ],
1110
- name: "setInterestRateModel",
1111
- outputs: [],
1112
- stateMutability: "nonpayable",
1113
- type: "function",
1007
+ stateMutability: "view",
1114
1008
  },
1115
1009
  {
1116
- inputs: [
1010
+ type: "function",
1011
+ name: "underlyingToken",
1012
+ inputs: [],
1013
+ outputs: [
1117
1014
  {
1118
- internalType: "address",
1119
- name: "newPoolQuotaKeeper",
1015
+ name: "",
1120
1016
  type: "address",
1017
+ internalType: "address",
1121
1018
  },
1122
1019
  ],
1123
- name: "setPoolQuotaKeeper",
1124
- outputs: [],
1125
- stateMutability: "nonpayable",
1126
- type: "function",
1020
+ stateMutability: "view",
1127
1021
  },
1128
1022
  {
1023
+ type: "function",
1024
+ name: "updateQuotaRevenue",
1129
1025
  inputs: [
1130
1026
  {
1131
- internalType: "uint256",
1132
- name: "newQuotaRevenue",
1133
- type: "uint256",
1027
+ name: "quotaRevenueDelta",
1028
+ type: "int256",
1029
+ internalType: "int256",
1134
1030
  },
1135
1031
  ],
1136
- name: "setQuotaRevenue",
1137
1032
  outputs: [],
1138
1033
  stateMutability: "nonpayable",
1139
- type: "function",
1140
1034
  },
1141
1035
  {
1142
- inputs: [
1036
+ type: "function",
1037
+ name: "version",
1038
+ inputs: [],
1039
+ outputs: [
1143
1040
  {
1144
- internalType: "uint256",
1145
- name: "newLimit",
1041
+ name: "",
1146
1042
  type: "uint256",
1043
+ internalType: "uint256",
1147
1044
  },
1148
1045
  ],
1149
- name: "setTotalDebtLimit",
1150
- outputs: [],
1151
- stateMutability: "nonpayable",
1152
- type: "function",
1046
+ stateMutability: "view",
1153
1047
  },
1154
1048
  {
1049
+ type: "function",
1050
+ name: "withdraw",
1155
1051
  inputs: [
1156
1052
  {
1053
+ name: "assets",
1054
+ type: "uint256",
1157
1055
  internalType: "uint256",
1158
- name: "newWithdrawFee",
1056
+ },
1057
+ {
1058
+ name: "receiver",
1059
+ type: "address",
1060
+ internalType: "address",
1061
+ },
1062
+ {
1063
+ name: "owner",
1064
+ type: "address",
1065
+ internalType: "address",
1066
+ },
1067
+ ],
1068
+ outputs: [
1069
+ {
1070
+ name: "shares",
1159
1071
  type: "uint256",
1072
+ internalType: "uint256",
1160
1073
  },
1161
1074
  ],
1162
- name: "setWithdrawFee",
1163
- outputs: [],
1164
1075
  stateMutability: "nonpayable",
1165
- type: "function",
1166
1076
  },
1167
1077
  {
1078
+ type: "function",
1079
+ name: "withdrawFee",
1168
1080
  inputs: [],
1169
- name: "supplyRate",
1170
1081
  outputs: [
1171
1082
  {
1172
- internalType: "uint256",
1173
1083
  name: "",
1174
- type: "uint256",
1084
+ type: "uint16",
1085
+ internalType: "uint16",
1175
1086
  },
1176
1087
  ],
1177
1088
  stateMutability: "view",
1178
- type: "function",
1179
1089
  },
1180
1090
  {
1181
- inputs: [],
1182
- name: "symbol",
1183
- outputs: [
1091
+ type: "event",
1092
+ name: "AddCreditManager",
1093
+ inputs: [
1184
1094
  {
1185
- internalType: "string",
1186
- name: "",
1187
- type: "string",
1095
+ name: "creditManager",
1096
+ type: "address",
1097
+ indexed: true,
1098
+ internalType: "address",
1188
1099
  },
1189
1100
  ],
1190
- stateMutability: "view",
1191
- type: "function",
1101
+ anonymous: false,
1192
1102
  },
1193
1103
  {
1194
- inputs: [],
1195
- name: "totalAssets",
1196
- outputs: [
1104
+ type: "event",
1105
+ name: "Approval",
1106
+ inputs: [
1197
1107
  {
1198
- internalType: "uint256",
1199
- name: "totalManagedAssets",
1108
+ name: "owner",
1109
+ type: "address",
1110
+ indexed: true,
1111
+ internalType: "address",
1112
+ },
1113
+ {
1114
+ name: "spender",
1115
+ type: "address",
1116
+ indexed: true,
1117
+ internalType: "address",
1118
+ },
1119
+ {
1120
+ name: "value",
1200
1121
  type: "uint256",
1122
+ indexed: false,
1123
+ internalType: "uint256",
1201
1124
  },
1202
1125
  ],
1203
- stateMutability: "view",
1204
- type: "function",
1126
+ anonymous: false,
1205
1127
  },
1206
1128
  {
1207
- inputs: [],
1208
- name: "totalBorrowed",
1209
- outputs: [
1129
+ type: "event",
1130
+ name: "Borrow",
1131
+ inputs: [
1210
1132
  {
1211
- internalType: "uint256",
1212
- name: "",
1133
+ name: "creditManager",
1134
+ type: "address",
1135
+ indexed: true,
1136
+ internalType: "address",
1137
+ },
1138
+ {
1139
+ name: "creditAccount",
1140
+ type: "address",
1141
+ indexed: true,
1142
+ internalType: "address",
1143
+ },
1144
+ {
1145
+ name: "amount",
1213
1146
  type: "uint256",
1147
+ indexed: false,
1148
+ internalType: "uint256",
1214
1149
  },
1215
1150
  ],
1216
- stateMutability: "view",
1217
- type: "function",
1151
+ anonymous: false,
1218
1152
  },
1219
1153
  {
1220
- inputs: [],
1221
- name: "totalDebtLimit",
1222
- outputs: [
1154
+ type: "event",
1155
+ name: "Deposit",
1156
+ inputs: [
1223
1157
  {
1158
+ name: "sender",
1159
+ type: "address",
1160
+ indexed: true,
1161
+ internalType: "address",
1162
+ },
1163
+ {
1164
+ name: "owner",
1165
+ type: "address",
1166
+ indexed: true,
1167
+ internalType: "address",
1168
+ },
1169
+ {
1170
+ name: "assets",
1171
+ type: "uint256",
1172
+ indexed: false,
1224
1173
  internalType: "uint256",
1225
- name: "",
1174
+ },
1175
+ {
1176
+ name: "shares",
1226
1177
  type: "uint256",
1178
+ indexed: false,
1179
+ internalType: "uint256",
1227
1180
  },
1228
1181
  ],
1229
- stateMutability: "view",
1230
- type: "function",
1182
+ anonymous: false,
1231
1183
  },
1232
1184
  {
1233
- inputs: [],
1234
- name: "totalSupply",
1235
- outputs: [
1185
+ type: "event",
1186
+ name: "IncurUncoveredLoss",
1187
+ inputs: [
1236
1188
  {
1237
- internalType: "uint256",
1238
- name: "",
1189
+ name: "creditManager",
1190
+ type: "address",
1191
+ indexed: true,
1192
+ internalType: "address",
1193
+ },
1194
+ {
1195
+ name: "loss",
1239
1196
  type: "uint256",
1197
+ indexed: false,
1198
+ internalType: "uint256",
1240
1199
  },
1241
1200
  ],
1242
- stateMutability: "view",
1243
- type: "function",
1201
+ anonymous: false,
1244
1202
  },
1245
1203
  {
1204
+ type: "event",
1205
+ name: "Refer",
1246
1206
  inputs: [
1247
1207
  {
1248
- internalType: "address",
1249
- name: "to",
1208
+ name: "onBehalfOf",
1250
1209
  type: "address",
1210
+ indexed: true,
1211
+ internalType: "address",
1251
1212
  },
1252
1213
  {
1253
- internalType: "uint256",
1254
- name: "amount",
1214
+ name: "referralCode",
1255
1215
  type: "uint256",
1216
+ indexed: true,
1217
+ internalType: "uint256",
1256
1218
  },
1257
- ],
1258
- name: "transfer",
1259
- outputs: [
1260
1219
  {
1261
- internalType: "bool",
1262
- name: "",
1263
- type: "bool",
1220
+ name: "amount",
1221
+ type: "uint256",
1222
+ indexed: false,
1223
+ internalType: "uint256",
1264
1224
  },
1265
1225
  ],
1266
- stateMutability: "nonpayable",
1267
- type: "function",
1226
+ anonymous: false,
1268
1227
  },
1269
1228
  {
1229
+ type: "event",
1230
+ name: "Repay",
1270
1231
  inputs: [
1271
1232
  {
1272
- internalType: "address",
1273
- name: "from",
1233
+ name: "creditManager",
1274
1234
  type: "address",
1235
+ indexed: true,
1236
+ internalType: "address",
1275
1237
  },
1276
1238
  {
1277
- internalType: "address",
1278
- name: "to",
1279
- type: "address",
1239
+ name: "borrowedAmount",
1240
+ type: "uint256",
1241
+ indexed: false,
1242
+ internalType: "uint256",
1280
1243
  },
1281
1244
  {
1245
+ name: "profit",
1246
+ type: "uint256",
1247
+ indexed: false,
1282
1248
  internalType: "uint256",
1283
- name: "amount",
1249
+ },
1250
+ {
1251
+ name: "loss",
1284
1252
  type: "uint256",
1253
+ indexed: false,
1254
+ internalType: "uint256",
1285
1255
  },
1286
1256
  ],
1287
- name: "transferFrom",
1288
- outputs: [
1257
+ anonymous: false,
1258
+ },
1259
+ {
1260
+ type: "event",
1261
+ name: "SetCreditManagerDebtLimit",
1262
+ inputs: [
1289
1263
  {
1290
- internalType: "bool",
1291
- name: "",
1292
- type: "bool",
1264
+ name: "creditManager",
1265
+ type: "address",
1266
+ indexed: true,
1267
+ internalType: "address",
1268
+ },
1269
+ {
1270
+ name: "newLimit",
1271
+ type: "uint256",
1272
+ indexed: false,
1273
+ internalType: "uint256",
1293
1274
  },
1294
1275
  ],
1295
- stateMutability: "nonpayable",
1296
- type: "function",
1276
+ anonymous: false,
1297
1277
  },
1298
1278
  {
1299
- inputs: [],
1300
- name: "treasury",
1301
- outputs: [
1279
+ type: "event",
1280
+ name: "SetInterestRateModel",
1281
+ inputs: [
1302
1282
  {
1303
- internalType: "address",
1304
- name: "",
1283
+ name: "newInterestRateModel",
1305
1284
  type: "address",
1285
+ indexed: true,
1286
+ internalType: "address",
1306
1287
  },
1307
1288
  ],
1308
- stateMutability: "view",
1309
- type: "function",
1289
+ anonymous: false,
1310
1290
  },
1311
1291
  {
1312
- inputs: [],
1313
- name: "underlyingToken",
1314
- outputs: [
1292
+ type: "event",
1293
+ name: "SetPoolQuotaKeeper",
1294
+ inputs: [
1315
1295
  {
1316
- internalType: "address",
1317
- name: "",
1296
+ name: "newPoolQuotaKeeper",
1318
1297
  type: "address",
1298
+ indexed: true,
1299
+ internalType: "address",
1319
1300
  },
1320
1301
  ],
1321
- stateMutability: "view",
1322
- type: "function",
1302
+ anonymous: false,
1323
1303
  },
1324
1304
  {
1305
+ type: "event",
1306
+ name: "SetTotalDebtLimit",
1325
1307
  inputs: [
1326
1308
  {
1327
- internalType: "int256",
1328
- name: "quotaRevenueDelta",
1329
- type: "int256",
1309
+ name: "limit",
1310
+ type: "uint256",
1311
+ indexed: false,
1312
+ internalType: "uint256",
1330
1313
  },
1331
1314
  ],
1332
- name: "updateQuotaRevenue",
1333
- outputs: [],
1334
- stateMutability: "nonpayable",
1335
- type: "function",
1315
+ anonymous: false,
1336
1316
  },
1337
1317
  {
1338
- inputs: [],
1339
- name: "version",
1340
- outputs: [
1318
+ type: "event",
1319
+ name: "SetWithdrawFee",
1320
+ inputs: [
1341
1321
  {
1342
- internalType: "uint256",
1343
- name: "",
1322
+ name: "fee",
1344
1323
  type: "uint256",
1324
+ indexed: false,
1325
+ internalType: "uint256",
1345
1326
  },
1346
1327
  ],
1347
- stateMutability: "view",
1348
- type: "function",
1328
+ anonymous: false,
1349
1329
  },
1350
1330
  {
1331
+ type: "event",
1332
+ name: "Transfer",
1351
1333
  inputs: [
1352
1334
  {
1353
- internalType: "uint256",
1354
- name: "assets",
1335
+ name: "from",
1336
+ type: "address",
1337
+ indexed: true,
1338
+ internalType: "address",
1339
+ },
1340
+ {
1341
+ name: "to",
1342
+ type: "address",
1343
+ indexed: true,
1344
+ internalType: "address",
1345
+ },
1346
+ {
1347
+ name: "value",
1355
1348
  type: "uint256",
1349
+ indexed: false,
1350
+ internalType: "uint256",
1356
1351
  },
1352
+ ],
1353
+ anonymous: false,
1354
+ },
1355
+ {
1356
+ type: "event",
1357
+ name: "Withdraw",
1358
+ inputs: [
1357
1359
  {
1360
+ name: "sender",
1361
+ type: "address",
1362
+ indexed: true,
1358
1363
  internalType: "address",
1364
+ },
1365
+ {
1359
1366
  name: "receiver",
1360
1367
  type: "address",
1368
+ indexed: true,
1369
+ internalType: "address",
1361
1370
  },
1362
1371
  {
1363
- internalType: "address",
1364
1372
  name: "owner",
1365
1373
  type: "address",
1374
+ indexed: true,
1375
+ internalType: "address",
1366
1376
  },
1367
- ],
1368
- name: "withdraw",
1369
- outputs: [
1370
1377
  {
1371
- internalType: "uint256",
1372
- name: "shares",
1378
+ name: "assets",
1373
1379
  type: "uint256",
1380
+ indexed: false,
1381
+ internalType: "uint256",
1374
1382
  },
1375
- ],
1376
- stateMutability: "nonpayable",
1377
- type: "function",
1378
- },
1379
- {
1380
- inputs: [],
1381
- name: "withdrawFee",
1382
- outputs: [
1383
1383
  {
1384
- internalType: "uint16",
1385
- name: "",
1386
- type: "uint16",
1384
+ name: "shares",
1385
+ type: "uint256",
1386
+ indexed: false,
1387
+ internalType: "uint256",
1387
1388
  },
1388
1389
  ],
1389
- stateMutability: "view",
1390
- type: "function",
1390
+ anonymous: false,
1391
1391
  },
1392
1392
  ];
1393
1393
  class IPoolV3__factory {