@gearbox-protocol/sdk 3.0.0-next.11 → 3.0.0-next.111

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 (647) hide show
  1. package/contracts/index.sol +32 -3
  2. package/lib/apy/convexAPY.d.ts +3 -3
  3. package/lib/apy/convexAPY.js +7 -2
  4. package/lib/apy/curveAPY.d.ts +4 -4
  5. package/lib/apy/curveAPY.js +5 -9
  6. package/lib/apy/defiLamaAPY.d.ts +3 -0
  7. package/lib/apy/defiLamaAPY.js +72 -0
  8. package/lib/apy/index.d.ts +5 -4
  9. package/lib/apy/index.js +5 -0
  10. package/lib/apy/lidoAPY.d.ts +3 -1
  11. package/lib/apy/lidoAPY.js +6 -3
  12. package/lib/apy/yearnAPY.d.ts +3 -3
  13. package/lib/apy/yearnAPY.js +12 -9
  14. package/lib/contracts/contractsRegister.d.ts +9 -4
  15. package/lib/contracts/contractsRegister.js +15 -0
  16. package/lib/core/assets.d.ts +2 -2
  17. package/lib/core/assets.js +4 -4
  18. package/lib/core/creditAccount.d.ts +72 -15
  19. package/lib/core/creditAccount.js +156 -62
  20. package/lib/core/creditAccount.spec.js +908 -17
  21. package/lib/core/creditManager.d.ts +18 -6
  22. package/lib/core/creditManager.js +61 -13
  23. package/lib/core/creditSession.d.ts +11 -1
  24. package/lib/core/creditSession.js +20 -2
  25. package/lib/core/endpoint.d.ts +13 -0
  26. package/lib/core/endpoint.js +31 -0
  27. package/lib/core/events.js +16 -16
  28. package/lib/core/gauge.d.ts +26 -0
  29. package/lib/core/gauge.js +63 -0
  30. package/lib/core/gaugeMath.d.ts +40 -0
  31. package/lib/core/gaugeMath.js +108 -0
  32. package/lib/core/gaugeMath.spec.js +388 -0
  33. package/lib/core/{pool/data.d.ts → pool.d.ts} +16 -8
  34. package/lib/core/{pool/data.js → pool.js} +43 -20
  35. package/lib/core/strategy.d.ts +18 -21
  36. package/lib/core/strategy.js +16 -36
  37. package/lib/core/trade.d.ts +11 -12
  38. package/lib/core/trade.js +36 -29
  39. package/lib/core/transactions.d.ts +110 -14
  40. package/lib/core/transactions.js +191 -108
  41. package/lib/index.d.ts +5 -2
  42. package/lib/index.js +5 -2
  43. package/lib/parsers/ERC20Parser.js +1 -1
  44. package/lib/parsers/aaveV2LendingPoolAdapterParser.d.ts +7 -0
  45. package/lib/parsers/aaveV2LendingPoolAdapterParser.js +21 -0
  46. package/lib/parsers/aaveV2WrappedATokenAdapterParser.d.ts +7 -0
  47. package/lib/parsers/aaveV2WrappedATokenAdapterParser.js +21 -0
  48. package/lib/parsers/abstractParser.d.ts +7 -5
  49. package/lib/parsers/abstractParser.js +4 -2
  50. package/lib/parsers/addressProviderParser.js +1 -1
  51. package/lib/parsers/balancerV2VaultParser.d.ts +7 -0
  52. package/lib/parsers/balancerV2VaultParser.js +34 -0
  53. package/lib/parsers/compoundV2CTokenAdapterParser.d.ts +7 -0
  54. package/lib/parsers/compoundV2CTokenAdapterParser.js +21 -0
  55. package/lib/parsers/convexBaseRewardPoolAdapterParser.js +11 -9
  56. package/lib/parsers/convexBaseRewardPoolAdapterParser.spec.js +9 -6
  57. package/lib/parsers/convexBoosterAdapterParser.js +7 -7
  58. package/lib/parsers/convexBoosterAdapterParser.spec.js +4 -4
  59. package/lib/parsers/convextRewardPoolParser.js +1 -1
  60. package/lib/parsers/creditFacadeParser.js +33 -6
  61. package/lib/parsers/creditFacadeParser.spec.js +2 -3
  62. package/lib/parsers/creditManagerParser.js +1 -1
  63. package/lib/parsers/curveAdapterParser.js +11 -12
  64. package/lib/parsers/curveAdapterParser.spec.js +6 -2
  65. package/lib/parsers/erc626AdapterParser.d.ts +7 -0
  66. package/lib/parsers/erc626AdapterParser.js +21 -0
  67. package/lib/parsers/lidoAdapterParser.js +4 -3
  68. package/lib/parsers/lidoAdapterParser.spec.js +2 -2
  69. package/lib/parsers/lidoSTETHParser.js +1 -1
  70. package/lib/parsers/poolParser.js +1 -1
  71. package/lib/parsers/priceOracleParser.js +1 -1
  72. package/lib/parsers/txParser.d.ts +17 -11
  73. package/lib/parsers/txParser.js +41 -4
  74. package/lib/parsers/uniV2AdapterParser.js +6 -5
  75. package/lib/parsers/uniV2AdapterParser.spec.js +3 -2
  76. package/lib/parsers/uniV3AdapterParser.js +10 -8
  77. package/lib/parsers/uniV3AdapterParser.spec.js +3 -2
  78. package/lib/parsers/wstETHAdapterParser.js +7 -5
  79. package/lib/parsers/wstETHAdapterParser.spec.js +4 -4
  80. package/lib/parsers/yearnAdapterParser.spec.js +4 -4
  81. package/lib/parsers/yearnV2AdapterParser.js +14 -4
  82. package/lib/pathfinder/core.d.ts +8 -9
  83. package/lib/pathfinder/index.d.ts +4 -0
  84. package/lib/{core/pool → pathfinder}/index.js +4 -1
  85. package/lib/pathfinder/pathOptions.d.ts +2 -1
  86. package/lib/pathfinder/pathOptions.js +20 -1
  87. package/lib/pathfinder/pathOptions.spec.js +2 -2
  88. package/lib/pathfinder/pathfinder.d.ts +46 -19
  89. package/lib/pathfinder/pathfinder.js +59 -48
  90. package/lib/pathfinder/pathfinder.spec.js +21 -4
  91. package/lib/pathfinder/utils.d.ts +35 -0
  92. package/lib/pathfinder/utils.js +182 -0
  93. package/lib/pathfinder/v1/core.d.ts +16 -0
  94. package/lib/pathfinder/v1/pathfinderv1.d.ts +46 -0
  95. package/lib/pathfinder/v1/pathfinderv1.js +155 -0
  96. package/lib/pathfinder/v1/pathfinderv1.spec.d.ts +1 -0
  97. package/lib/pathfinder/v1/pathfinderv1.spec.js +39 -0
  98. package/lib/payload/creditAccount.d.ts +3 -4
  99. package/lib/payload/creditManager.d.ts +3 -0
  100. package/lib/payload/creditSession.d.ts +11 -0
  101. package/lib/payload/gauge.d.ts +12 -0
  102. package/lib/payload/pool.d.ts +4 -0
  103. package/lib/types/CalldataExtractor.d.ts +44 -0
  104. package/lib/types/ERC20.d.ts +198 -0
  105. package/lib/types/FarmAccounting.d.ts +27 -0
  106. package/lib/types/IAaveV2_LendingPoolAdapter.d.ts +171 -0
  107. package/lib/types/IAaveV2_WrappedATokenAdapter.d.ts +290 -0
  108. package/lib/types/IBalancerV2Vault.sol/IBalancerV2Vault.d.ts +308 -0
  109. package/lib/types/IBalancerV2Vault.sol/IBalancerV2VaultGetters.d.ts +112 -0
  110. package/lib/types/IBalancerV2Vault.sol/index.d.ts +2 -0
  111. package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter.d.ts +466 -0
  112. package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter.js +2 -0
  113. package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents.d.ts +43 -0
  114. package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents.js +2 -0
  115. package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions.d.ts +27 -0
  116. package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions.js +2 -0
  117. package/lib/types/IBalancerV2VaultAdapter.sol/index.d.ts +3 -0
  118. package/lib/types/IBalancerV2VaultAdapter.sol/index.js +2 -0
  119. package/lib/types/IBotListV3.sol/IBotListV3.d.ts +286 -0
  120. package/lib/types/IBotListV3.sol/IBotListV3.js +2 -0
  121. package/lib/types/IBotListV3.sol/IBotListV3Events.d.ts +103 -0
  122. package/lib/types/IBotListV3.sol/IBotListV3Events.js +2 -0
  123. package/lib/types/IBotListV3.sol/index.d.ts +2 -0
  124. package/lib/types/IBotListV3.sol/index.js +2 -0
  125. package/lib/types/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter.d.ts +216 -0
  126. package/lib/types/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter.js +2 -0
  127. package/lib/types/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions.d.ts +27 -0
  128. package/lib/types/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions.js +2 -0
  129. package/lib/types/ICompoundV2_CTokenAdapter.sol/index.d.ts +2 -0
  130. package/lib/types/ICompoundV2_CTokenAdapter.sol/index.js +2 -0
  131. package/lib/types/IContractsRegister.sol/IContractsRegister.d.ts +128 -0
  132. package/lib/types/IContractsRegister.sol/IContractsRegister.js +2 -0
  133. package/lib/types/IContractsRegister.sol/IContractsRegisterEvents.d.ts +50 -0
  134. package/lib/types/IContractsRegister.sol/IContractsRegisterEvents.js +2 -0
  135. package/lib/types/IContractsRegister.sol/index.d.ts +2 -0
  136. package/lib/types/IContractsRegister.sol/index.js +2 -0
  137. package/lib/types/IControllerTimelockV3.sol/IControllerTimelockV3.d.ts +504 -0
  138. package/lib/types/IControllerTimelockV3.sol/IControllerTimelockV3.js +2 -0
  139. package/lib/types/IControllerTimelockV3.sol/IControllerTimelockV3Events.d.ts +82 -0
  140. package/lib/types/IControllerTimelockV3.sol/IControllerTimelockV3Events.js +2 -0
  141. package/lib/types/IControllerTimelockV3.sol/index.d.ts +2 -0
  142. package/lib/types/IControllerTimelockV3.sol/index.js +2 -0
  143. package/lib/types/IConvexToken.d.ts +9 -1
  144. package/lib/types/IConvexV1BaseRewardPoolAdapter.d.ts +46 -30
  145. package/lib/types/{IConvexV1BoosterAdapter.d.ts → IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter.d.ts} +40 -21
  146. package/lib/types/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter.js +2 -0
  147. package/lib/types/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents.d.ts +43 -0
  148. package/lib/types/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents.js +2 -0
  149. package/lib/types/IConvexV1BoosterAdapter.sol/index.d.ts +2 -0
  150. package/lib/types/IConvexV1BoosterAdapter.sol/index.js +2 -0
  151. package/lib/types/ICreditFacadeV2.sol/ICreditFacadeV2Extended.d.ts +7 -11
  152. package/lib/types/ICreditFacadeV3.sol/ICreditFacadeV3.d.ts +58 -109
  153. package/lib/types/ICreditFacadeV3.sol/ICreditFacadeV3Events.d.ts +31 -35
  154. package/lib/types/ICreditFacadeV3Multicall.d.ts +91 -60
  155. package/lib/types/ICreditManagerV3.sol/ICreditManagerV3.d.ts +117 -97
  156. package/lib/types/ICurveV1Adapter.d.ts +41 -105
  157. package/lib/types/ICurveV1_2AssetsAdapter.d.ts +41 -105
  158. package/lib/types/ICurveV1_3AssetsAdapter.d.ts +41 -105
  159. package/lib/types/ICurveV1_4AssetsAdapter.d.ts +41 -105
  160. package/lib/types/IDaiLikePermit.d.ts +59 -0
  161. package/lib/types/IDaiLikePermit.js +2 -0
  162. package/lib/types/IDataCompressorV2_10.d.ts +26 -41
  163. package/lib/types/IDataCompressorV3_00.d.ts +123 -42
  164. package/lib/types/IDegenNFTV2.sol/IDegenNFTV2.d.ts +339 -0
  165. package/lib/types/IDegenNFTV2.sol/IDegenNFTV2.js +2 -0
  166. package/lib/types/IDegenNFTV2.sol/IDegenNFTV2Events.d.ts +61 -0
  167. package/lib/types/IDegenNFTV2.sol/IDegenNFTV2Events.js +2 -0
  168. package/lib/types/IDegenNFTV2.sol/IDegenNFTV2Exceptions.d.ts +27 -0
  169. package/lib/types/IDegenNFTV2.sol/IDegenNFTV2Exceptions.js +2 -0
  170. package/lib/types/IDegenNFTV2.sol/index.d.ts +3 -0
  171. package/lib/types/IDegenNFTV2.sol/index.js +2 -0
  172. package/lib/types/IERC165.d.ts +42 -0
  173. package/lib/types/IERC165.js +2 -0
  174. package/lib/types/IERC20Permit.d.ts +74 -0
  175. package/lib/types/IERC20Permit.js +2 -0
  176. package/lib/types/IERC20ZapperDeposits.d.ts +117 -0
  177. package/lib/types/IERC20ZapperDeposits.js +2 -0
  178. package/lib/types/IERC4626Adapter.d.ts +238 -0
  179. package/lib/types/IERC4626Adapter.js +2 -0
  180. package/lib/types/IERC721.d.ts +220 -0
  181. package/lib/types/IERC721.js +2 -0
  182. package/lib/types/IERC721Metadata.d.ts +244 -0
  183. package/lib/types/IERC721Metadata.js +2 -0
  184. package/lib/types/IETHZapperDeposits.d.ts +66 -0
  185. package/lib/types/IETHZapperDeposits.js +2 -0
  186. package/lib/types/IFarmingPool.d.ts +318 -0
  187. package/lib/types/IFarmingPool.js +2 -0
  188. package/lib/types/IGaugeV3.sol/IGaugeV3.d.ts +366 -0
  189. package/lib/types/IGaugeV3.sol/IGaugeV3.js +2 -0
  190. package/lib/types/IGaugeV3.sol/IGaugeV3Events.d.ts +114 -0
  191. package/lib/types/IGaugeV3.sol/IGaugeV3Events.js +2 -0
  192. package/lib/types/IGaugeV3.sol/index.d.ts +2 -0
  193. package/lib/types/IGaugeV3.sol/index.js +2 -0
  194. package/lib/types/IGearStakingV3.sol/IGearStakingV3.d.ts +408 -0
  195. package/lib/types/IGearStakingV3.sol/IGearStakingV3.js +2 -0
  196. package/lib/types/IGearStakingV3.sol/IGearStakingV3Events.d.ts +117 -0
  197. package/lib/types/IGearStakingV3.sol/IGearStakingV3Events.js +2 -0
  198. package/lib/types/IGearStakingV3.sol/index.d.ts +2 -0
  199. package/lib/types/IGearStakingV3.sol/index.js +2 -0
  200. package/lib/types/ILPPriceFeed.sol/ILPPriceFeed.d.ts +285 -0
  201. package/lib/types/ILPPriceFeed.sol/ILPPriceFeed.js +2 -0
  202. package/lib/types/ILPPriceFeed.sol/ILPPriceFeedEvents.d.ts +54 -0
  203. package/lib/types/ILPPriceFeed.sol/ILPPriceFeedEvents.js +2 -0
  204. package/lib/types/ILPPriceFeed.sol/ILPPriceFeedExceptions.d.ts +27 -0
  205. package/lib/types/ILPPriceFeed.sol/ILPPriceFeedExceptions.js +2 -0
  206. package/lib/types/ILPPriceFeed.sol/index.d.ts +3 -0
  207. package/lib/types/ILPPriceFeed.sol/index.js +2 -0
  208. package/lib/types/{ILidoV1Adapter.sol/ILidoV1Adapter.d.ts → ILidoV1Adapter.d.ts} +13 -48
  209. package/lib/types/ILidoV1Adapter.js +2 -0
  210. package/lib/types/ILinearInterestRateModelV3.d.ts +120 -0
  211. package/lib/types/ILinearInterestRateModelV3.js +2 -0
  212. package/lib/types/IPermit2.d.ts +130 -0
  213. package/lib/types/IPermit2.js +2 -0
  214. package/lib/types/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3.d.ts +473 -0
  215. package/lib/types/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3.js +2 -0
  216. package/lib/types/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3Events.d.ts +113 -0
  217. package/lib/types/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3Events.js +2 -0
  218. package/lib/types/IPoolQuotaKeeperV3.sol/index.d.ts +2 -0
  219. package/lib/types/IPoolQuotaKeeperV3.sol/index.js +2 -0
  220. package/lib/types/IPoolV3.sol/IPoolV3.d.ts +43 -3
  221. package/lib/types/IPriceFeed.sol/IPriceFeed.d.ts +109 -0
  222. package/lib/types/IPriceFeed.sol/IPriceFeed.js +2 -0
  223. package/lib/types/IPriceFeed.sol/IUpdatablePriceFeed.d.ts +133 -0
  224. package/lib/types/IPriceFeed.sol/IUpdatablePriceFeed.js +2 -0
  225. package/lib/types/IPriceFeed.sol/index.d.ts +2 -0
  226. package/lib/types/IPriceFeed.sol/index.js +2 -0
  227. package/lib/types/IPriceOracle.sol/IPriceOracleV2.d.ts +166 -0
  228. package/lib/types/IPriceOracle.sol/IPriceOracleV2.js +2 -0
  229. package/lib/types/IPriceOracle.sol/IPriceOracleV2Events.d.ts +43 -0
  230. package/lib/types/IPriceOracle.sol/IPriceOracleV2Events.js +2 -0
  231. package/lib/types/{ILidoV1Adapter.sol/ILidoV1AdapterExceptions.d.ts → IPriceOracle.sol/IPriceOracleV2Exceptions.d.ts} +3 -3
  232. package/lib/types/IPriceOracle.sol/IPriceOracleV2Exceptions.js +2 -0
  233. package/lib/types/IPriceOracle.sol/IPriceOracleV2Ext.d.ts +182 -0
  234. package/lib/types/IPriceOracle.sol/IPriceOracleV2Ext.js +2 -0
  235. package/lib/types/IPriceOracle.sol/index.d.ts +4 -0
  236. package/lib/types/IPriceOracle.sol/index.js +2 -0
  237. package/lib/types/IPriceOracleV3.sol/IPriceOracleV3.d.ts +272 -0
  238. package/lib/types/IPriceOracleV3.sol/IPriceOracleV3.js +2 -0
  239. package/lib/types/IPriceOracleV3.sol/IPriceOracleV3Events.d.ts +79 -0
  240. package/lib/types/IPriceOracleV3.sol/IPriceOracleV3Events.js +2 -0
  241. package/lib/types/IPriceOracleV3.sol/index.d.ts +2 -0
  242. package/lib/types/IPriceOracleV3.sol/index.js +2 -0
  243. package/lib/types/IRouter.d.ts +11 -1
  244. package/lib/types/IRouterV3.d.ts +281 -0
  245. package/lib/types/IRouterV3.js +2 -0
  246. package/lib/types/IUniswapV2Adapter.sol/IUniswapV2Adapter.d.ts +10 -9
  247. package/lib/types/IUniswapV3Adapter.sol/IUniswapV3Adapter.d.ts +27 -21
  248. package/lib/types/IVotingContractV3.d.ts +74 -0
  249. package/lib/types/IVotingContractV3.js +2 -0
  250. package/lib/types/IWETH.d.ts +197 -0
  251. package/lib/types/IWETH.js +2 -0
  252. package/lib/types/IYearnV2Adapter.d.ts +22 -22
  253. package/lib/types/IZapper.d.ts +56 -37
  254. package/lib/types/IZapperRegister.d.ts +62 -0
  255. package/lib/types/IZapperRegister.js +2 -0
  256. package/lib/types/IwstETHV1Adapter.d.ts +17 -17
  257. package/lib/types/NumericArrayLib.d.ts +27 -0
  258. package/lib/types/NumericArrayLib.js +2 -0
  259. package/lib/types/RedstoneConstants.d.ts +27 -0
  260. package/lib/types/RedstoneConstants.js +2 -0
  261. package/lib/types/RedstoneConsumerBase.d.ts +84 -0
  262. package/lib/types/RedstoneConsumerBase.js +2 -0
  263. package/lib/types/RedstoneConsumerNumericBase.d.ts +84 -0
  264. package/lib/types/RedstoneConsumerNumericBase.js +2 -0
  265. package/lib/types/RedstoneDefaultsLib.d.ts +27 -0
  266. package/lib/types/RedstoneDefaultsLib.js +2 -0
  267. package/lib/types/{ILidoV1Adapter.sol/ILidoV1AdapterEvents.d.ts → RedstonePriceFeed.sol/IRedstonePriceFeedEvents.d.ts} +11 -11
  268. package/lib/types/RedstonePriceFeed.sol/IRedstonePriceFeedEvents.js +2 -0
  269. package/lib/types/RedstonePriceFeed.sol/IRedstonePriceFeedExceptions.d.ts +27 -0
  270. package/lib/types/RedstonePriceFeed.sol/IRedstonePriceFeedExceptions.js +2 -0
  271. package/lib/types/RedstonePriceFeed.sol/RedstonePriceFeed.d.ts +279 -0
  272. package/lib/types/RedstonePriceFeed.sol/RedstonePriceFeed.js +2 -0
  273. package/lib/types/RedstonePriceFeed.sol/index.d.ts +3 -0
  274. package/lib/types/RedstonePriceFeed.sol/index.js +2 -0
  275. package/lib/types/SafeERC20.d.ts +27 -0
  276. package/lib/types/SafeERC20.js +2 -0
  277. package/lib/types/contracts/index.d.ts +2 -0
  278. package/lib/types/contracts/index.js +2 -0
  279. package/lib/types/contracts/interfaces/IGasPricer.d.ts +44 -0
  280. package/lib/types/contracts/interfaces/IGasPricer.js +2 -0
  281. package/lib/types/contracts/interfaces/index.d.ts +1 -0
  282. package/lib/types/contracts/interfaces/index.js +2 -0
  283. package/lib/types/factories/AddressProvider__factory.d.ts +112 -112
  284. package/lib/types/factories/AddressProvider__factory.js +120 -120
  285. package/lib/types/factories/Balances.sol/BalanceOps__factory.d.ts +4 -4
  286. package/lib/types/factories/Balances.sol/BalanceOps__factory.js +4 -4
  287. package/lib/types/factories/CalldataExtractor__factory.d.ts +87 -0
  288. package/lib/types/factories/CalldataExtractor__factory.js +127 -0
  289. package/lib/types/factories/Claimable__factory.d.ts +29 -29
  290. package/lib/types/factories/Claimable__factory.js +33 -33
  291. package/lib/types/factories/ERC20__factory.d.ts +239 -0
  292. package/lib/types/factories/ERC20__factory.js +328 -0
  293. package/lib/types/factories/Errors__factory.d.ts +100 -100
  294. package/lib/types/factories/Errors__factory.js +100 -100
  295. package/lib/types/factories/FarmAccounting__factory.d.ts +33 -0
  296. package/lib/types/factories/FarmAccounting__factory.js +57 -0
  297. package/lib/types/factories/{IWERC20Zapper__factory.d.ts → IAaveV2_LendingPoolAdapter__factory.d.ts} +103 -83
  298. package/lib/types/factories/{IWERC20Zapper__factory.js → IAaveV2_LendingPoolAdapter__factory.js} +114 -90
  299. package/lib/types/factories/IAaveV2_WrappedATokenAdapter__factory.d.ts +252 -0
  300. package/lib/types/factories/IAaveV2_WrappedATokenAdapter__factory.js +341 -0
  301. package/lib/types/factories/IAdapter__factory.d.ts +15 -15
  302. package/lib/types/factories/IAdapter__factory.js +15 -15
  303. package/lib/types/factories/IAddressProvider.sol/IAddressProviderEvents__factory.d.ts +7 -7
  304. package/lib/types/factories/IAddressProvider.sol/IAddressProviderEvents__factory.js +7 -7
  305. package/lib/types/factories/IAddressProvider.sol/IAddressProvider__factory.d.ts +48 -48
  306. package/lib/types/factories/IAddressProvider.sol/IAddressProvider__factory.js +52 -52
  307. package/lib/types/factories/IAddressProviderV3.sol/IAddressProviderV3Events__factory.d.ts +9 -9
  308. package/lib/types/factories/IAddressProviderV3.sol/IAddressProviderV3Events__factory.js +9 -9
  309. package/lib/types/factories/IAddressProviderV3.sol/IAddressProviderV3__factory.d.ts +37 -37
  310. package/lib/types/factories/IAddressProviderV3.sol/IAddressProviderV3__factory.js +42 -42
  311. package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributorEvents__factory.d.ts +25 -25
  312. package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributorEvents__factory.js +25 -25
  313. package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributor__factory.d.ts +71 -71
  314. package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributor__factory.js +85 -85
  315. package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2VaultGetters__factory.d.ts +78 -0
  316. package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2VaultGetters__factory.js +111 -0
  317. package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2Vault__factory.d.ts +360 -0
  318. package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2Vault__factory.js +475 -0
  319. package/lib/types/factories/IBalancerV2Vault.sol/index.d.ts +2 -0
  320. package/lib/types/factories/IBalancerV2Vault.sol/index.js +10 -0
  321. package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents__factory.d.ts +23 -0
  322. package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents__factory.js +38 -0
  323. package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions__factory.d.ts +12 -0
  324. package/lib/types/factories/{ILidoV1Adapter.sol/ILidoV1AdapterExceptions__factory.js → IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions__factory.js} +5 -5
  325. package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter__factory.d.ts +514 -0
  326. package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter__factory.js +675 -0
  327. package/lib/types/factories/IBalancerV2VaultAdapter.sol/index.d.ts +3 -0
  328. package/lib/types/factories/IBalancerV2VaultAdapter.sol/index.js +12 -0
  329. package/lib/types/factories/IBaseRewardPool__factory.d.ts +114 -114
  330. package/lib/types/factories/IBaseRewardPool__factory.js +114 -114
  331. package/lib/types/factories/IBotListV3.sol/IBotListV3Events__factory.d.ts +103 -0
  332. package/lib/types/factories/IBotListV3.sol/IBotListV3Events__factory.js +138 -0
  333. package/lib/types/factories/IBotListV3.sol/IBotListV3__factory.d.ts +315 -0
  334. package/lib/types/factories/IBotListV3.sol/IBotListV3__factory.js +416 -0
  335. package/lib/types/factories/IBotListV3.sol/index.d.ts +2 -0
  336. package/lib/types/factories/IBotListV3.sol/index.js +10 -0
  337. package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter__factory.d.ts +196 -0
  338. package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter__factory.js +267 -0
  339. package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions__factory.d.ts +16 -0
  340. package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions__factory.js +30 -0
  341. package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/index.d.ts +2 -0
  342. package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/index.js +10 -0
  343. package/lib/types/factories/IContractsRegister.sol/IContractsRegisterEvents__factory.d.ts +28 -0
  344. package/lib/types/factories/IContractsRegister.sol/IContractsRegisterEvents__factory.js +45 -0
  345. package/lib/types/factories/{IWETHZapper__factory.d.ts → IContractsRegister.sol/IContractsRegister__factory.d.ts} +80 -76
  346. package/lib/types/factories/{IWETHZapper__factory.js → IContractsRegister.sol/IContractsRegister__factory.js} +85 -80
  347. package/lib/types/factories/IContractsRegister.sol/index.d.ts +2 -0
  348. package/lib/types/factories/IContractsRegister.sol/index.js +10 -0
  349. package/lib/types/factories/IControllerTimelockV3.sol/IControllerTimelockV3Events__factory.d.ts +73 -0
  350. package/lib/types/factories/IControllerTimelockV3.sol/IControllerTimelockV3Events__factory.js +101 -0
  351. package/lib/types/factories/IControllerTimelockV3.sol/IControllerTimelockV3__factory.d.ts +427 -0
  352. package/lib/types/factories/IControllerTimelockV3.sol/IControllerTimelockV3__factory.js +556 -0
  353. package/lib/types/factories/IControllerTimelockV3.sol/index.d.ts +2 -0
  354. package/lib/types/factories/IControllerTimelockV3.sol/index.js +10 -0
  355. package/lib/types/factories/IConvexToken__factory.d.ts +89 -79
  356. package/lib/types/factories/IConvexToken__factory.js +99 -86
  357. package/lib/types/factories/IConvexV1BaseRewardPoolAdapter__factory.d.ts +103 -71
  358. package/lib/types/factories/IConvexV1BaseRewardPoolAdapter__factory.js +113 -71
  359. package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents__factory.d.ts +23 -0
  360. package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents__factory.js +38 -0
  361. package/lib/types/factories/{IConvexV1BoosterAdapter__factory.d.ts → IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter__factory.d.ts} +67 -44
  362. package/lib/types/factories/{IConvexV1BoosterAdapter__factory.js → IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter__factory.js} +72 -43
  363. package/lib/types/factories/IConvexV1BoosterAdapter.sol/index.d.ts +2 -0
  364. package/lib/types/factories/IConvexV1BoosterAdapter.sol/index.js +10 -0
  365. package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2Events__factory.d.ts +121 -121
  366. package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2Events__factory.js +127 -127
  367. package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2Exceptions__factory.d.ts +18 -18
  368. package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2Exceptions__factory.js +18 -18
  369. package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2__factory.d.ts +376 -376
  370. package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2__factory.js +417 -417
  371. package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3Events__factory.d.ts +118 -118
  372. package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3Events__factory.js +127 -127
  373. package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3__factory.d.ts +395 -395
  374. package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3__factory.js +420 -420
  375. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Events__factory.d.ts +107 -107
  376. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Events__factory.js +118 -118
  377. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Exceptions__factory.d.ts +65 -65
  378. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Exceptions__factory.js +65 -65
  379. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Extended__factory.d.ts +23 -27
  380. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Extended__factory.js +23 -28
  381. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2V2__factory.d.ts +5 -5
  382. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2V2__factory.js +5 -5
  383. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2__factory.d.ts +601 -601
  384. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2__factory.js +749 -749
  385. package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.d.ts +77 -87
  386. package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.js +84 -96
  387. package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.d.ts +281 -357
  388. package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.js +372 -468
  389. package/lib/types/factories/ICreditFacadeV3Multicall__factory.d.ts +106 -72
  390. package/lib/types/factories/ICreditFacadeV3Multicall__factory.js +122 -80
  391. package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2Events__factory.d.ts +11 -11
  392. package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2Events__factory.js +12 -12
  393. package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2Exceptions__factory.d.ts +26 -26
  394. package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2Exceptions__factory.js +26 -26
  395. package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2__factory.d.ts +252 -252
  396. package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2__factory.js +272 -272
  397. package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3Events__factory.d.ts +5 -5
  398. package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3Events__factory.js +5 -5
  399. package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3__factory.d.ts +404 -400
  400. package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3__factory.js +450 -445
  401. package/lib/types/factories/ICurvePool_2.sol/ICurvePool2Assets__factory.d.ts +191 -191
  402. package/lib/types/factories/ICurvePool_2.sol/ICurvePool2Assets__factory.js +191 -191
  403. package/lib/types/factories/ICurvePool_3.sol/ICurvePool3Assets__factory.d.ts +191 -191
  404. package/lib/types/factories/ICurvePool_3.sol/ICurvePool3Assets__factory.js +191 -191
  405. package/lib/types/factories/ICurvePool_4.sol/ICurvePool4Assets__factory.d.ts +191 -191
  406. package/lib/types/factories/ICurvePool_4.sol/ICurvePool4Assets__factory.js +191 -191
  407. package/lib/types/factories/ICurvePool__factory.d.ts +159 -159
  408. package/lib/types/factories/ICurvePool__factory.js +159 -159
  409. package/lib/types/factories/ICurveV1Adapter__factory.d.ts +171 -229
  410. package/lib/types/factories/ICurveV1Adapter__factory.js +171 -248
  411. package/lib/types/factories/ICurveV1_2AssetsAdapter__factory.d.ts +189 -247
  412. package/lib/types/factories/ICurveV1_2AssetsAdapter__factory.js +189 -266
  413. package/lib/types/factories/ICurveV1_3AssetsAdapter__factory.d.ts +189 -247
  414. package/lib/types/factories/ICurveV1_3AssetsAdapter__factory.js +189 -266
  415. package/lib/types/factories/ICurveV1_4AssetsAdapter__factory.d.ts +189 -247
  416. package/lib/types/factories/ICurveV1_4AssetsAdapter__factory.js +189 -266
  417. package/lib/types/factories/IDaiLikePermit__factory.d.ts +46 -0
  418. package/lib/types/factories/IDaiLikePermit__factory.js +67 -0
  419. package/lib/types/factories/IDataCompressorV2_10__factory.d.ts +374 -384
  420. package/lib/types/factories/IDataCompressorV2_10__factory.js +386 -400
  421. package/lib/types/factories/IDataCompressorV3_00__factory.d.ts +683 -457
  422. package/lib/types/factories/IDataCompressorV3_00__factory.js +765 -478
  423. package/lib/types/factories/IDegenDistributor.sol/IDegenDistributorEvents__factory.d.ts +14 -14
  424. package/lib/types/factories/IDegenDistributor.sol/IDegenDistributorEvents__factory.js +14 -14
  425. package/lib/types/factories/IDegenDistributor.sol/IDegenDistributor__factory.d.ts +43 -43
  426. package/lib/types/factories/IDegenDistributor.sol/IDegenDistributor__factory.js +51 -51
  427. package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2Events__factory.d.ts +38 -0
  428. package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2Events__factory.js +58 -0
  429. package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2Exceptions__factory.d.ts +24 -0
  430. package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2Exceptions__factory.js +39 -0
  431. package/lib/types/factories/{IWithdrawalManagerV3.sol/IWithdrawalManagerV3__factory.d.ts → IDegenNFTV2.sol/IDegenNFTV2__factory.d.ts} +248 -238
  432. package/lib/types/factories/{IWithdrawalManagerV3.sol/IWithdrawalManagerV3__factory.js → IDegenNFTV2.sol/IDegenNFTV2__factory.js} +270 -253
  433. package/lib/types/factories/IDegenNFTV2.sol/index.d.ts +3 -0
  434. package/lib/types/factories/IDegenNFTV2.sol/index.js +12 -0
  435. package/lib/types/factories/IERC165__factory.d.ts +22 -0
  436. package/lib/types/factories/IERC165__factory.js +38 -0
  437. package/lib/types/factories/IERC20Metadata__factory.d.ts +76 -76
  438. package/lib/types/factories/IERC20Metadata__factory.js +86 -86
  439. package/lib/types/factories/IERC20Permit__factory.d.ts +66 -0
  440. package/lib/types/factories/IERC20Permit__factory.js +94 -0
  441. package/lib/types/factories/IERC20ZapperDeposits__factory.d.ts +120 -0
  442. package/lib/types/factories/IERC20ZapperDeposits__factory.js +165 -0
  443. package/lib/types/factories/IERC20__factory.d.ts +67 -67
  444. package/lib/types/factories/IERC20__factory.js +77 -77
  445. package/lib/types/factories/IERC4626Adapter__factory.d.ts +220 -0
  446. package/lib/types/factories/IERC4626Adapter__factory.js +297 -0
  447. package/lib/types/factories/IERC4626__factory.d.ts +198 -198
  448. package/lib/types/factories/IERC4626__factory.js +221 -221
  449. package/lib/types/factories/IERC721Metadata__factory.d.ts +262 -0
  450. package/lib/types/factories/IERC721Metadata__factory.js +349 -0
  451. package/lib/types/factories/IERC721__factory.d.ts +228 -0
  452. package/lib/types/factories/IERC721__factory.js +304 -0
  453. package/lib/types/factories/IETHZapperDeposits__factory.d.ts +40 -0
  454. package/lib/types/factories/IETHZapperDeposits__factory.js +62 -0
  455. package/lib/types/factories/IFarmingPool__factory.d.ts +299 -0
  456. package/lib/types/factories/IFarmingPool__factory.js +396 -0
  457. package/lib/types/factories/IGaugeV3.sol/IGaugeV3Events__factory.d.ts +118 -0
  458. package/lib/types/factories/IGaugeV3.sol/IGaugeV3Events__factory.js +157 -0
  459. package/lib/types/factories/IGaugeV3.sol/IGaugeV3__factory.d.ts +342 -0
  460. package/lib/types/factories/IGaugeV3.sol/IGaugeV3__factory.js +448 -0
  461. package/lib/types/factories/IGaugeV3.sol/index.d.ts +2 -0
  462. package/lib/types/factories/IGaugeV3.sol/index.js +10 -0
  463. package/lib/types/factories/{IWithdrawalManagerV3.sol/IWithdrawalManagerV3Events__factory.d.ts → IGearStakingV3.sol/IGearStakingV3Events__factory.d.ts} +55 -85
  464. package/lib/types/factories/{IWithdrawalManagerV3.sol/IWithdrawalManagerV3Events__factory.js → IGearStakingV3.sol/IGearStakingV3Events__factory.js} +58 -94
  465. package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3__factory.d.ts +504 -0
  466. package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3__factory.js +660 -0
  467. package/lib/types/factories/IGearStakingV3.sol/index.d.ts +2 -0
  468. package/lib/types/factories/IGearStakingV3.sol/index.js +10 -0
  469. package/lib/types/factories/IInterestRateModel__factory.d.ts +8 -8
  470. package/lib/types/factories/IInterestRateModel__factory.js +8 -8
  471. package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeedEvents__factory.d.ts +33 -0
  472. package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeedEvents__factory.js +51 -0
  473. package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeedExceptions__factory.d.ts +28 -0
  474. package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeedExceptions__factory.js +44 -0
  475. package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeed__factory.d.ts +261 -0
  476. package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeed__factory.js +344 -0
  477. package/lib/types/factories/ILPPriceFeed.sol/index.d.ts +3 -0
  478. package/lib/types/factories/ILPPriceFeed.sol/index.js +12 -0
  479. package/lib/types/factories/{ILidoV1Adapter.sol/ILidoV1Adapter__factory.d.ts → ILidoV1Adapter__factory.d.ts} +44 -74
  480. package/lib/types/factories/{ILidoV1Adapter.sol/ILidoV1Adapter__factory.js → ILidoV1Adapter__factory.js} +45 -83
  481. package/lib/types/factories/ILinearInterestRateModelV3__factory.d.ts +98 -0
  482. package/lib/types/factories/ILinearInterestRateModelV3__factory.js +136 -0
  483. package/lib/types/factories/IOffchainOracle__factory.d.ts +11 -11
  484. package/lib/types/factories/IOffchainOracle__factory.js +11 -11
  485. package/lib/types/factories/IPermit2__factory.d.ts +113 -0
  486. package/lib/types/factories/IPermit2__factory.js +155 -0
  487. package/lib/types/factories/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3Events__factory.d.ts +103 -0
  488. package/lib/types/factories/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3Events__factory.js +140 -0
  489. package/lib/types/factories/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3__factory.d.ts +441 -0
  490. package/lib/types/factories/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3__factory.js +580 -0
  491. package/lib/types/factories/IPoolQuotaKeeperV3.sol/index.d.ts +2 -0
  492. package/lib/types/factories/IPoolQuotaKeeperV3.sol/index.js +10 -0
  493. package/lib/types/factories/IPoolService.sol/IPoolServiceEvents__factory.d.ts +66 -66
  494. package/lib/types/factories/IPoolService.sol/IPoolServiceEvents__factory.js +72 -72
  495. package/lib/types/factories/IPoolService.sol/IPoolService__factory.d.ts +235 -235
  496. package/lib/types/factories/IPoolService.sol/IPoolService__factory.js +286 -286
  497. package/lib/types/factories/IPoolV3.sol/IPoolV3Events__factory.d.ts +65 -65
  498. package/lib/types/factories/IPoolV3.sol/IPoolV3Events__factory.js +68 -68
  499. package/lib/types/factories/IPoolV3.sol/IPoolV3__factory.d.ts +591 -533
  500. package/lib/types/factories/IPoolV3.sol/IPoolV3__factory.js +734 -659
  501. package/lib/types/factories/IPriceFeed.sol/IPriceFeed__factory.d.ts +84 -0
  502. package/lib/types/factories/IPriceFeed.sol/IPriceFeed__factory.js +117 -0
  503. package/lib/types/factories/IPriceFeed.sol/IUpdatablePriceFeed__factory.d.ts +104 -0
  504. package/lib/types/factories/IPriceFeed.sol/IUpdatablePriceFeed__factory.js +143 -0
  505. package/lib/types/factories/IPriceFeed.sol/index.d.ts +2 -0
  506. package/lib/types/factories/IPriceFeed.sol/index.js +10 -0
  507. package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Events__factory.d.ts +23 -0
  508. package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Events__factory.js +38 -0
  509. package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Exceptions__factory.d.ts +20 -0
  510. package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Exceptions__factory.js +34 -0
  511. package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Ext__factory.d.ts +197 -0
  512. package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Ext__factory.js +267 -0
  513. package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2__factory.d.ts +183 -0
  514. package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2__factory.js +249 -0
  515. package/lib/types/factories/IPriceOracle.sol/index.d.ts +4 -0
  516. package/lib/types/factories/IPriceOracle.sol/index.js +14 -0
  517. package/lib/types/factories/IPriceOracleBase__factory.d.ts +27 -27
  518. package/lib/types/factories/IPriceOracleBase__factory.js +27 -27
  519. package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3Events__factory.d.ts +78 -0
  520. package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3Events__factory.js +106 -0
  521. package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3__factory.d.ts +326 -0
  522. package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3__factory.js +433 -0
  523. package/lib/types/factories/IPriceOracleV3.sol/index.d.ts +2 -0
  524. package/lib/types/factories/IPriceOracleV3.sol/index.js +10 -0
  525. package/lib/types/factories/IRouterV3__factory.d.ts +451 -0
  526. package/lib/types/factories/IRouterV3__factory.js +597 -0
  527. package/lib/types/factories/IRouter__factory.d.ts +168 -154
  528. package/lib/types/factories/IRouter__factory.js +186 -167
  529. package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2AdapterEvents__factory.d.ts +8 -8
  530. package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2AdapterEvents__factory.js +9 -9
  531. package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2AdapterExceptions__factory.d.ts +2 -2
  532. package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2AdapterExceptions__factory.js +2 -2
  533. package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2Adapter__factory.d.ts +80 -76
  534. package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2Adapter__factory.js +87 -82
  535. package/lib/types/factories/IUniswapV3.sol/ISwapRouter__factory.d.ts +50 -50
  536. package/lib/types/factories/IUniswapV3.sol/ISwapRouter__factory.js +50 -50
  537. package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3AdapterEvents__factory.d.ts +10 -10
  538. package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3AdapterEvents__factory.js +11 -11
  539. package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3AdapterExceptions__factory.d.ts +2 -2
  540. package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3AdapterExceptions__factory.js +2 -2
  541. package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3Adapter__factory.d.ts +142 -134
  542. package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3Adapter__factory.js +151 -141
  543. package/lib/types/factories/IVersion__factory.d.ts +3 -3
  544. package/lib/types/factories/IVersion__factory.js +3 -3
  545. package/lib/types/factories/IVotingContractV3__factory.d.ts +44 -0
  546. package/lib/types/factories/IVotingContractV3__factory.js +65 -0
  547. package/lib/types/factories/IWETHGateway__factory.d.ts +14 -14
  548. package/lib/types/factories/IWETHGateway__factory.js +14 -14
  549. package/lib/types/factories/IWETH__factory.d.ts +194 -0
  550. package/lib/types/factories/IWETH__factory.js +260 -0
  551. package/lib/types/factories/IYVault__factory.d.ts +112 -112
  552. package/lib/types/factories/IYVault__factory.js +122 -122
  553. package/lib/types/factories/IYearnV2Adapter__factory.d.ts +76 -68
  554. package/lib/types/factories/IYearnV2Adapter__factory.js +82 -70
  555. package/lib/types/factories/IZapperRegister__factory.d.ts +42 -0
  556. package/lib/types/factories/IZapperRegister__factory.js +64 -0
  557. package/lib/types/factories/IZapper__factory.d.ts +63 -33
  558. package/lib/types/factories/IZapper__factory.js +72 -33
  559. package/lib/types/factories/IstETH.sol/IstETHGetters__factory.d.ts +97 -97
  560. package/lib/types/factories/IstETH.sol/IstETHGetters__factory.js +107 -107
  561. package/lib/types/factories/IstETH.sol/IstETH__factory.d.ts +101 -101
  562. package/lib/types/factories/IstETH.sol/IstETH__factory.js +111 -111
  563. package/lib/types/factories/IwstETH.sol/IwstETHGetters__factory.d.ts +93 -93
  564. package/lib/types/factories/IwstETH.sol/IwstETHGetters__factory.js +103 -103
  565. package/lib/types/factories/IwstETH.sol/IwstETH__factory.d.ts +101 -101
  566. package/lib/types/factories/IwstETH.sol/IwstETH__factory.js +111 -111
  567. package/lib/types/factories/IwstETHGateway.sol/IwstETHGateWay__factory.d.ts +14 -14
  568. package/lib/types/factories/IwstETHGateway.sol/IwstETHGateWay__factory.js +15 -15
  569. package/lib/types/factories/IwstETHV1Adapter__factory.d.ts +52 -44
  570. package/lib/types/factories/IwstETHV1Adapter__factory.js +56 -44
  571. package/lib/types/factories/NumericArrayLib__factory.d.ts +25 -0
  572. package/lib/types/factories/NumericArrayLib__factory.js +47 -0
  573. package/lib/types/factories/Ownable__factory.d.ts +23 -23
  574. package/lib/types/factories/Ownable__factory.js +27 -27
  575. package/lib/types/factories/RedstoneConstants__factory.d.ts +65 -0
  576. package/lib/types/factories/RedstoneConstants__factory.js +99 -0
  577. package/lib/types/factories/RedstoneConsumerBase__factory.d.ts +164 -0
  578. package/lib/types/factories/RedstoneConsumerBase__factory.js +223 -0
  579. package/lib/types/factories/RedstoneConsumerNumericBase__factory.d.ts +164 -0
  580. package/lib/types/factories/RedstoneConsumerNumericBase__factory.js +223 -0
  581. package/lib/types/factories/RedstoneDefaultsLib__factory.d.ts +45 -0
  582. package/lib/types/factories/RedstoneDefaultsLib__factory.js +74 -0
  583. package/lib/types/factories/{ILidoV1Adapter.sol/ILidoV1AdapterEvents__factory.d.ts → RedstonePriceFeed.sol/IRedstonePriceFeedEvents__factory.d.ts} +9 -9
  584. package/lib/types/factories/{ILidoV1Adapter.sol/ILidoV1AdapterEvents__factory.js → RedstonePriceFeed.sol/IRedstonePriceFeedEvents__factory.js} +8 -8
  585. package/lib/types/factories/RedstonePriceFeed.sol/IRedstonePriceFeedExceptions__factory.d.ts +28 -0
  586. package/lib/types/factories/RedstonePriceFeed.sol/IRedstonePriceFeedExceptions__factory.js +44 -0
  587. package/lib/types/factories/RedstonePriceFeed.sol/RedstonePriceFeed__factory.d.ts +443 -0
  588. package/lib/types/factories/RedstonePriceFeed.sol/RedstonePriceFeed__factory.js +589 -0
  589. package/lib/types/factories/RedstonePriceFeed.sol/index.d.ts +3 -0
  590. package/lib/types/factories/RedstonePriceFeed.sol/index.js +12 -0
  591. package/lib/types/factories/SafeERC20__factory.d.ts +49 -0
  592. package/lib/types/factories/SafeERC20__factory.js +77 -0
  593. package/lib/types/factories/contracts/index.d.ts +1 -0
  594. package/lib/types/factories/contracts/index.js +30 -0
  595. package/lib/types/factories/contracts/interfaces/IGasPricer__factory.d.ts +22 -0
  596. package/lib/types/factories/contracts/interfaces/IGasPricer__factory.js +38 -0
  597. package/lib/types/factories/contracts/interfaces/index.d.ts +1 -0
  598. package/lib/types/factories/contracts/interfaces/index.js +8 -0
  599. package/lib/types/factories/index.d.ts +45 -5
  600. package/lib/types/factories/index.js +74 -10
  601. package/lib/types/factories/interfaces/IGasPricer__factory.d.ts +22 -0
  602. package/lib/types/factories/interfaces/IGasPricer__factory.js +38 -0
  603. package/lib/types/factories/interfaces/index.d.ts +1 -0
  604. package/lib/types/factories/interfaces/index.js +8 -0
  605. package/lib/types/index.d.ts +168 -20
  606. package/lib/types/index.js +133 -16
  607. package/lib/types/interfaces/IGasPricer.d.ts +44 -0
  608. package/lib/types/interfaces/IGasPricer.js +2 -0
  609. package/lib/types/interfaces/index.d.ts +1 -0
  610. package/lib/types/interfaces/index.js +2 -0
  611. package/lib/utils/formatter.d.ts +1 -4
  612. package/lib/utils/formatter.js +3 -69
  613. package/lib/utils/math.d.ts +2 -0
  614. package/lib/utils/math.js +2 -0
  615. package/lib/utils/types.d.ts +1 -0
  616. package/lib/watchers/creditAccountWatcher.d.ts +3 -2
  617. package/lib/watchers/creditAccountWatcher.js +19 -13
  618. package/lib/watchers/creditAccountWatcher.spec.js +18 -18
  619. package/lib/watchers/creditManagerWatcher.d.ts +5 -3
  620. package/lib/watchers/creditManagerWatcher.js +32 -10
  621. package/lib/watchers/creditManagerWatcher.spec.js +12 -4
  622. package/package.json +13 -9
  623. package/contracts/IRouter.sol +0 -100
  624. package/lib/core/pool/index.d.ts +0 -1
  625. package/lib/core/strategy.spec.js +0 -62
  626. package/lib/types/ILidoV1Adapter.sol/index.d.ts +0 -3
  627. package/lib/types/IWERC20Zapper.d.ts +0 -142
  628. package/lib/types/IWETHZapper.d.ts +0 -138
  629. package/lib/types/IWithdrawalManagerV3.sol/IWithdrawalManagerV3.d.ts +0 -370
  630. package/lib/types/IWithdrawalManagerV3.sol/IWithdrawalManagerV3Events.d.ts +0 -133
  631. package/lib/types/IWithdrawalManagerV3.sol/index.d.ts +0 -2
  632. package/lib/types/factories/ILidoV1Adapter.sol/ILidoV1AdapterExceptions__factory.d.ts +0 -12
  633. package/lib/types/factories/ILidoV1Adapter.sol/index.d.ts +0 -3
  634. package/lib/types/factories/ILidoV1Adapter.sol/index.js +0 -12
  635. package/lib/types/factories/IWithdrawalManagerV3.sol/index.d.ts +0 -2
  636. package/lib/types/factories/IWithdrawalManagerV3.sol/index.js +0 -10
  637. /package/lib/core/{strategy.spec.d.ts → gaugeMath.spec.d.ts} +0 -0
  638. /package/lib/{types/IConvexV1BoosterAdapter.js → pathfinder/v1/core.js} +0 -0
  639. /package/lib/{types/ILidoV1Adapter.sol/ILidoV1Adapter.js → payload/gauge.js} +0 -0
  640. /package/lib/types/{ILidoV1Adapter.sol/ILidoV1AdapterEvents.js → CalldataExtractor.js} +0 -0
  641. /package/lib/types/{ILidoV1Adapter.sol/ILidoV1AdapterExceptions.js → ERC20.js} +0 -0
  642. /package/lib/types/{ILidoV1Adapter.sol/index.js → FarmAccounting.js} +0 -0
  643. /package/lib/types/{IWERC20Zapper.js → IAaveV2_LendingPoolAdapter.js} +0 -0
  644. /package/lib/types/{IWETHZapper.js → IAaveV2_WrappedATokenAdapter.js} +0 -0
  645. /package/lib/types/{IWithdrawalManagerV3.sol/IWithdrawalManagerV3.js → IBalancerV2Vault.sol/IBalancerV2Vault.js} +0 -0
  646. /package/lib/types/{IWithdrawalManagerV3.sol/IWithdrawalManagerV3Events.js → IBalancerV2Vault.sol/IBalancerV2VaultGetters.js} +0 -0
  647. /package/lib/types/{IWithdrawalManagerV3.sol → IBalancerV2Vault.sol}/index.js +0 -0
@@ -7,1718 +7,2005 @@ exports.IDataCompressorV3_00__factory = void 0;
7
7
  const ethers_1 = require("ethers");
8
8
  const _abi = [
9
9
  {
10
+ type: "function",
11
+ name: "getCreditAccountData",
10
12
  inputs: [
11
13
  {
12
- internalType: "address",
13
14
  name: "creditAccount",
14
15
  type: "address",
16
+ internalType: "address",
15
17
  },
16
18
  {
19
+ name: "priceUpdates",
20
+ type: "tuple[]",
21
+ internalType: "struct PriceOnDemand[]",
17
22
  components: [
18
23
  {
19
- internalType: "address",
20
24
  name: "token",
21
25
  type: "address",
26
+ internalType: "address",
22
27
  },
23
28
  {
24
- internalType: "bytes",
25
29
  name: "callData",
26
30
  type: "bytes",
31
+ internalType: "bytes",
27
32
  },
28
33
  ],
29
- internalType: "struct PriceOnDemand[]",
30
- name: "priceUpdates",
31
- type: "tuple[]",
32
34
  },
33
35
  ],
34
- name: "getCreditAccountData",
35
36
  outputs: [
36
37
  {
38
+ name: "",
39
+ type: "tuple",
40
+ internalType: "struct CreditAccountData",
37
41
  components: [
38
42
  {
39
- internalType: "bool",
40
43
  name: "isSuccessful",
41
44
  type: "bool",
45
+ internalType: "bool",
42
46
  },
43
47
  {
44
- internalType: "address[]",
45
48
  name: "priceFeedsNeeded",
46
49
  type: "address[]",
50
+ internalType: "address[]",
47
51
  },
48
52
  {
49
- internalType: "address",
50
53
  name: "addr",
51
54
  type: "address",
55
+ internalType: "address",
52
56
  },
53
57
  {
54
- internalType: "address",
55
58
  name: "borrower",
56
59
  type: "address",
60
+ internalType: "address",
57
61
  },
58
62
  {
59
- internalType: "address",
60
63
  name: "creditManager",
61
64
  type: "address",
65
+ internalType: "address",
66
+ },
67
+ {
68
+ name: "cmName",
69
+ type: "string",
70
+ internalType: "string",
62
71
  },
63
72
  {
64
- internalType: "address",
65
73
  name: "creditFacade",
66
74
  type: "address",
75
+ internalType: "address",
67
76
  },
68
77
  {
69
- internalType: "address",
70
78
  name: "underlying",
71
79
  type: "address",
80
+ internalType: "address",
72
81
  },
73
82
  {
74
- internalType: "uint256",
75
83
  name: "debt",
76
84
  type: "uint256",
77
- },
78
- {
79
85
  internalType: "uint256",
80
- name: "cumulativeIndexNow",
81
- type: "uint256",
82
86
  },
83
87
  {
84
- internalType: "uint256",
85
88
  name: "cumulativeIndexLastUpdate",
86
89
  type: "uint256",
90
+ internalType: "uint256",
87
91
  },
88
92
  {
89
- internalType: "uint128",
90
93
  name: "cumulativeQuotaInterest",
91
94
  type: "uint128",
95
+ internalType: "uint128",
92
96
  },
93
97
  {
94
- internalType: "uint256",
95
98
  name: "accruedInterest",
96
99
  type: "uint256",
100
+ internalType: "uint256",
97
101
  },
98
102
  {
99
- internalType: "uint256",
100
103
  name: "accruedFees",
101
104
  type: "uint256",
105
+ internalType: "uint256",
102
106
  },
103
107
  {
104
- internalType: "uint256",
105
108
  name: "totalDebtUSD",
106
109
  type: "uint256",
110
+ internalType: "uint256",
107
111
  },
108
112
  {
109
- internalType: "uint256",
110
113
  name: "totalValue",
111
114
  type: "uint256",
115
+ internalType: "uint256",
112
116
  },
113
117
  {
114
- internalType: "uint256",
115
118
  name: "totalValueUSD",
116
119
  type: "uint256",
120
+ internalType: "uint256",
117
121
  },
118
122
  {
119
- internalType: "uint256",
120
123
  name: "twvUSD",
121
124
  type: "uint256",
125
+ internalType: "uint256",
122
126
  },
123
127
  {
124
- internalType: "uint256",
125
128
  name: "enabledTokensMask",
126
129
  type: "uint256",
130
+ internalType: "uint256",
127
131
  },
128
132
  {
129
- internalType: "uint256",
130
133
  name: "healthFactor",
131
134
  type: "uint256",
135
+ internalType: "uint256",
132
136
  },
133
137
  {
134
- internalType: "uint256",
135
138
  name: "baseBorrowRate",
136
139
  type: "uint256",
140
+ internalType: "uint256",
137
141
  },
138
142
  {
139
- internalType: "uint256",
140
143
  name: "aggregatedBorrowRate",
141
144
  type: "uint256",
145
+ internalType: "uint256",
142
146
  },
143
147
  {
148
+ name: "balances",
149
+ type: "tuple[]",
150
+ internalType: "struct TokenBalance[]",
144
151
  components: [
145
152
  {
146
- internalType: "address",
147
153
  name: "token",
148
154
  type: "address",
155
+ internalType: "address",
149
156
  },
150
157
  {
151
- internalType: "uint256",
152
158
  name: "balance",
153
159
  type: "uint256",
160
+ internalType: "uint256",
154
161
  },
155
162
  {
156
- internalType: "bool",
157
163
  name: "isForbidden",
158
164
  type: "bool",
165
+ internalType: "bool",
159
166
  },
160
167
  {
161
- internalType: "bool",
162
168
  name: "isEnabled",
163
169
  type: "bool",
170
+ internalType: "bool",
164
171
  },
165
172
  {
166
- internalType: "bool",
167
173
  name: "isQuoted",
168
174
  type: "bool",
175
+ internalType: "bool",
169
176
  },
170
177
  {
171
- internalType: "uint256",
172
178
  name: "quota",
173
179
  type: "uint256",
180
+ internalType: "uint256",
174
181
  },
175
182
  {
176
- internalType: "uint16",
177
183
  name: "quotaRate",
178
184
  type: "uint16",
185
+ internalType: "uint16",
186
+ },
187
+ {
188
+ name: "quotaCumulativeIndexLU",
189
+ type: "uint256",
190
+ internalType: "uint256",
179
191
  },
180
192
  ],
181
- internalType: "struct TokenBalance[]",
182
- name: "balances",
183
- type: "tuple[]",
184
193
  },
185
194
  {
186
- internalType: "uint64",
187
195
  name: "since",
188
196
  type: "uint64",
197
+ internalType: "uint64",
189
198
  },
190
199
  {
191
- internalType: "uint256",
192
200
  name: "cfVersion",
193
201
  type: "uint256",
202
+ internalType: "uint256",
194
203
  },
195
204
  {
196
- internalType: "uint40",
197
205
  name: "expirationDate",
198
206
  type: "uint40",
207
+ internalType: "uint40",
199
208
  },
200
209
  {
201
- internalType: "address[]",
202
210
  name: "activeBots",
203
211
  type: "address[]",
204
- },
205
- {
206
- internalType: "uint256",
207
- name: "maxApprovedBots",
208
- type: "uint256",
209
- },
210
- {
211
- components: [
212
- {
213
- internalType: "uint8",
214
- name: "tokenIndex",
215
- type: "uint8",
216
- },
217
- {
218
- internalType: "uint40",
219
- name: "maturity",
220
- type: "uint40",
221
- },
222
- {
223
- internalType: "address",
224
- name: "token",
225
- type: "address",
226
- },
227
- {
228
- internalType: "uint256",
229
- name: "amount",
230
- type: "uint256",
231
- },
232
- ],
233
- internalType: "struct ScheduledWithdrawal[2]",
234
- name: "schedultedWithdrawals",
235
- type: "tuple[2]",
212
+ internalType: "address[]",
236
213
  },
237
214
  ],
238
- internalType: "struct CreditAccountData",
239
- name: "",
240
- type: "tuple",
241
215
  },
242
216
  ],
243
217
  stateMutability: "nonpayable",
244
- type: "function",
245
218
  },
246
219
  {
220
+ type: "function",
221
+ name: "getCreditAccountsByBorrower",
247
222
  inputs: [
248
223
  {
249
- internalType: "address",
250
224
  name: "borrower",
251
225
  type: "address",
226
+ internalType: "address",
252
227
  },
253
228
  {
229
+ name: "priceUpdates",
230
+ type: "tuple[]",
231
+ internalType: "struct PriceOnDemand[]",
254
232
  components: [
255
233
  {
256
- internalType: "address",
257
234
  name: "token",
258
235
  type: "address",
236
+ internalType: "address",
259
237
  },
260
238
  {
261
- internalType: "bytes",
262
239
  name: "callData",
263
240
  type: "bytes",
241
+ internalType: "bytes",
264
242
  },
265
243
  ],
266
- internalType: "struct PriceOnDemand[]",
267
- name: "priceUpdates",
268
- type: "tuple[]",
269
244
  },
270
245
  ],
271
- name: "getCreditAccountsByBorrower",
272
246
  outputs: [
273
247
  {
248
+ name: "",
249
+ type: "tuple[]",
250
+ internalType: "struct CreditAccountData[]",
274
251
  components: [
275
252
  {
276
- internalType: "bool",
277
253
  name: "isSuccessful",
278
254
  type: "bool",
255
+ internalType: "bool",
279
256
  },
280
257
  {
281
- internalType: "address[]",
282
258
  name: "priceFeedsNeeded",
283
259
  type: "address[]",
260
+ internalType: "address[]",
284
261
  },
285
262
  {
286
- internalType: "address",
287
263
  name: "addr",
288
264
  type: "address",
265
+ internalType: "address",
289
266
  },
290
267
  {
291
- internalType: "address",
292
268
  name: "borrower",
293
269
  type: "address",
270
+ internalType: "address",
294
271
  },
295
272
  {
296
- internalType: "address",
297
273
  name: "creditManager",
298
274
  type: "address",
275
+ internalType: "address",
276
+ },
277
+ {
278
+ name: "cmName",
279
+ type: "string",
280
+ internalType: "string",
299
281
  },
300
282
  {
301
- internalType: "address",
302
283
  name: "creditFacade",
303
284
  type: "address",
285
+ internalType: "address",
304
286
  },
305
287
  {
306
- internalType: "address",
307
288
  name: "underlying",
308
289
  type: "address",
290
+ internalType: "address",
309
291
  },
310
292
  {
311
- internalType: "uint256",
312
293
  name: "debt",
313
294
  type: "uint256",
314
- },
315
- {
316
295
  internalType: "uint256",
317
- name: "cumulativeIndexNow",
318
- type: "uint256",
319
296
  },
320
297
  {
321
- internalType: "uint256",
322
298
  name: "cumulativeIndexLastUpdate",
323
299
  type: "uint256",
300
+ internalType: "uint256",
324
301
  },
325
302
  {
326
- internalType: "uint128",
327
303
  name: "cumulativeQuotaInterest",
328
304
  type: "uint128",
305
+ internalType: "uint128",
329
306
  },
330
307
  {
331
- internalType: "uint256",
332
308
  name: "accruedInterest",
333
309
  type: "uint256",
310
+ internalType: "uint256",
334
311
  },
335
312
  {
336
- internalType: "uint256",
337
313
  name: "accruedFees",
338
314
  type: "uint256",
315
+ internalType: "uint256",
339
316
  },
340
317
  {
341
- internalType: "uint256",
342
318
  name: "totalDebtUSD",
343
319
  type: "uint256",
320
+ internalType: "uint256",
344
321
  },
345
322
  {
346
- internalType: "uint256",
347
323
  name: "totalValue",
348
324
  type: "uint256",
325
+ internalType: "uint256",
349
326
  },
350
327
  {
351
- internalType: "uint256",
352
328
  name: "totalValueUSD",
353
329
  type: "uint256",
330
+ internalType: "uint256",
354
331
  },
355
332
  {
356
- internalType: "uint256",
357
333
  name: "twvUSD",
358
334
  type: "uint256",
335
+ internalType: "uint256",
359
336
  },
360
337
  {
361
- internalType: "uint256",
362
338
  name: "enabledTokensMask",
363
339
  type: "uint256",
340
+ internalType: "uint256",
364
341
  },
365
342
  {
366
- internalType: "uint256",
367
343
  name: "healthFactor",
368
344
  type: "uint256",
345
+ internalType: "uint256",
369
346
  },
370
347
  {
371
- internalType: "uint256",
372
348
  name: "baseBorrowRate",
373
349
  type: "uint256",
350
+ internalType: "uint256",
374
351
  },
375
352
  {
376
- internalType: "uint256",
377
353
  name: "aggregatedBorrowRate",
378
354
  type: "uint256",
355
+ internalType: "uint256",
379
356
  },
380
357
  {
358
+ name: "balances",
359
+ type: "tuple[]",
360
+ internalType: "struct TokenBalance[]",
381
361
  components: [
382
362
  {
383
- internalType: "address",
384
363
  name: "token",
385
364
  type: "address",
365
+ internalType: "address",
386
366
  },
387
367
  {
388
- internalType: "uint256",
389
368
  name: "balance",
390
369
  type: "uint256",
370
+ internalType: "uint256",
391
371
  },
392
372
  {
393
- internalType: "bool",
394
373
  name: "isForbidden",
395
374
  type: "bool",
375
+ internalType: "bool",
396
376
  },
397
377
  {
398
- internalType: "bool",
399
378
  name: "isEnabled",
400
379
  type: "bool",
380
+ internalType: "bool",
401
381
  },
402
382
  {
403
- internalType: "bool",
404
383
  name: "isQuoted",
405
384
  type: "bool",
385
+ internalType: "bool",
406
386
  },
407
387
  {
408
- internalType: "uint256",
409
388
  name: "quota",
410
389
  type: "uint256",
390
+ internalType: "uint256",
411
391
  },
412
392
  {
413
- internalType: "uint16",
414
393
  name: "quotaRate",
415
394
  type: "uint16",
395
+ internalType: "uint16",
396
+ },
397
+ {
398
+ name: "quotaCumulativeIndexLU",
399
+ type: "uint256",
400
+ internalType: "uint256",
416
401
  },
417
402
  ],
418
- internalType: "struct TokenBalance[]",
419
- name: "balances",
420
- type: "tuple[]",
421
403
  },
422
404
  {
423
- internalType: "uint64",
424
405
  name: "since",
425
406
  type: "uint64",
407
+ internalType: "uint64",
426
408
  },
427
409
  {
428
- internalType: "uint256",
429
410
  name: "cfVersion",
430
411
  type: "uint256",
412
+ internalType: "uint256",
431
413
  },
432
414
  {
433
- internalType: "uint40",
434
415
  name: "expirationDate",
435
416
  type: "uint40",
417
+ internalType: "uint40",
436
418
  },
437
419
  {
438
- internalType: "address[]",
439
420
  name: "activeBots",
440
421
  type: "address[]",
441
- },
442
- {
443
- internalType: "uint256",
444
- name: "maxApprovedBots",
445
- type: "uint256",
446
- },
447
- {
448
- components: [
449
- {
450
- internalType: "uint8",
451
- name: "tokenIndex",
452
- type: "uint8",
453
- },
454
- {
455
- internalType: "uint40",
456
- name: "maturity",
457
- type: "uint40",
458
- },
459
- {
460
- internalType: "address",
461
- name: "token",
462
- type: "address",
463
- },
464
- {
465
- internalType: "uint256",
466
- name: "amount",
467
- type: "uint256",
468
- },
469
- ],
470
- internalType: "struct ScheduledWithdrawal[2]",
471
- name: "schedultedWithdrawals",
472
- type: "tuple[2]",
422
+ internalType: "address[]",
473
423
  },
474
424
  ],
475
- internalType: "struct CreditAccountData[]",
476
- name: "",
477
- type: "tuple[]",
478
425
  },
479
426
  ],
480
427
  stateMutability: "nonpayable",
481
- type: "function",
482
428
  },
483
429
  {
430
+ type: "function",
431
+ name: "getCreditAccountsByCreditManager",
484
432
  inputs: [
485
433
  {
486
- internalType: "address",
487
434
  name: "creditManager",
488
435
  type: "address",
436
+ internalType: "address",
489
437
  },
490
438
  {
439
+ name: "priceUpdates",
440
+ type: "tuple[]",
441
+ internalType: "struct PriceOnDemand[]",
491
442
  components: [
492
443
  {
493
- internalType: "address",
494
444
  name: "token",
495
445
  type: "address",
446
+ internalType: "address",
496
447
  },
497
448
  {
498
- internalType: "bytes",
499
449
  name: "callData",
500
450
  type: "bytes",
451
+ internalType: "bytes",
501
452
  },
502
453
  ],
503
- internalType: "struct PriceOnDemand[]",
504
- name: "priceUpdates",
505
- type: "tuple[]",
506
454
  },
507
455
  ],
508
- name: "getCreditAccountsByCreditManager",
509
456
  outputs: [
510
457
  {
458
+ name: "",
459
+ type: "tuple[]",
460
+ internalType: "struct CreditAccountData[]",
511
461
  components: [
512
462
  {
513
- internalType: "bool",
514
463
  name: "isSuccessful",
515
464
  type: "bool",
465
+ internalType: "bool",
516
466
  },
517
467
  {
518
- internalType: "address[]",
519
468
  name: "priceFeedsNeeded",
520
469
  type: "address[]",
470
+ internalType: "address[]",
521
471
  },
522
472
  {
523
- internalType: "address",
524
473
  name: "addr",
525
474
  type: "address",
475
+ internalType: "address",
526
476
  },
527
477
  {
528
- internalType: "address",
529
478
  name: "borrower",
530
479
  type: "address",
480
+ internalType: "address",
531
481
  },
532
482
  {
533
- internalType: "address",
534
483
  name: "creditManager",
535
484
  type: "address",
485
+ internalType: "address",
486
+ },
487
+ {
488
+ name: "cmName",
489
+ type: "string",
490
+ internalType: "string",
536
491
  },
537
492
  {
538
- internalType: "address",
539
493
  name: "creditFacade",
540
494
  type: "address",
495
+ internalType: "address",
541
496
  },
542
497
  {
543
- internalType: "address",
544
498
  name: "underlying",
545
499
  type: "address",
500
+ internalType: "address",
546
501
  },
547
502
  {
548
- internalType: "uint256",
549
503
  name: "debt",
550
504
  type: "uint256",
551
- },
552
- {
553
505
  internalType: "uint256",
554
- name: "cumulativeIndexNow",
555
- type: "uint256",
556
506
  },
557
507
  {
558
- internalType: "uint256",
559
508
  name: "cumulativeIndexLastUpdate",
560
509
  type: "uint256",
510
+ internalType: "uint256",
561
511
  },
562
512
  {
563
- internalType: "uint128",
564
513
  name: "cumulativeQuotaInterest",
565
514
  type: "uint128",
515
+ internalType: "uint128",
566
516
  },
567
517
  {
568
- internalType: "uint256",
569
518
  name: "accruedInterest",
570
519
  type: "uint256",
520
+ internalType: "uint256",
571
521
  },
572
522
  {
573
- internalType: "uint256",
574
523
  name: "accruedFees",
575
524
  type: "uint256",
525
+ internalType: "uint256",
576
526
  },
577
527
  {
578
- internalType: "uint256",
579
528
  name: "totalDebtUSD",
580
529
  type: "uint256",
530
+ internalType: "uint256",
581
531
  },
582
532
  {
583
- internalType: "uint256",
584
533
  name: "totalValue",
585
534
  type: "uint256",
535
+ internalType: "uint256",
586
536
  },
587
537
  {
588
- internalType: "uint256",
589
538
  name: "totalValueUSD",
590
539
  type: "uint256",
540
+ internalType: "uint256",
591
541
  },
592
542
  {
593
- internalType: "uint256",
594
543
  name: "twvUSD",
595
544
  type: "uint256",
545
+ internalType: "uint256",
596
546
  },
597
547
  {
598
- internalType: "uint256",
599
548
  name: "enabledTokensMask",
600
549
  type: "uint256",
550
+ internalType: "uint256",
601
551
  },
602
552
  {
603
- internalType: "uint256",
604
553
  name: "healthFactor",
605
554
  type: "uint256",
555
+ internalType: "uint256",
606
556
  },
607
557
  {
608
- internalType: "uint256",
609
558
  name: "baseBorrowRate",
610
559
  type: "uint256",
560
+ internalType: "uint256",
611
561
  },
612
562
  {
613
- internalType: "uint256",
614
563
  name: "aggregatedBorrowRate",
615
564
  type: "uint256",
565
+ internalType: "uint256",
616
566
  },
617
567
  {
568
+ name: "balances",
569
+ type: "tuple[]",
570
+ internalType: "struct TokenBalance[]",
618
571
  components: [
619
572
  {
620
- internalType: "address",
621
573
  name: "token",
622
574
  type: "address",
575
+ internalType: "address",
623
576
  },
624
577
  {
625
- internalType: "uint256",
626
578
  name: "balance",
627
579
  type: "uint256",
580
+ internalType: "uint256",
628
581
  },
629
582
  {
630
- internalType: "bool",
631
583
  name: "isForbidden",
632
584
  type: "bool",
585
+ internalType: "bool",
633
586
  },
634
587
  {
635
- internalType: "bool",
636
588
  name: "isEnabled",
637
589
  type: "bool",
590
+ internalType: "bool",
638
591
  },
639
592
  {
640
- internalType: "bool",
641
593
  name: "isQuoted",
642
594
  type: "bool",
595
+ internalType: "bool",
643
596
  },
644
597
  {
645
- internalType: "uint256",
646
598
  name: "quota",
647
599
  type: "uint256",
600
+ internalType: "uint256",
648
601
  },
649
602
  {
650
- internalType: "uint16",
651
603
  name: "quotaRate",
652
604
  type: "uint16",
605
+ internalType: "uint16",
606
+ },
607
+ {
608
+ name: "quotaCumulativeIndexLU",
609
+ type: "uint256",
610
+ internalType: "uint256",
653
611
  },
654
612
  ],
655
- internalType: "struct TokenBalance[]",
656
- name: "balances",
657
- type: "tuple[]",
658
613
  },
659
614
  {
660
- internalType: "uint64",
661
615
  name: "since",
662
616
  type: "uint64",
617
+ internalType: "uint64",
663
618
  },
664
619
  {
665
- internalType: "uint256",
666
620
  name: "cfVersion",
667
621
  type: "uint256",
622
+ internalType: "uint256",
668
623
  },
669
624
  {
670
- internalType: "uint40",
671
625
  name: "expirationDate",
672
626
  type: "uint40",
627
+ internalType: "uint40",
673
628
  },
674
629
  {
675
- internalType: "address[]",
676
630
  name: "activeBots",
677
631
  type: "address[]",
678
- },
679
- {
680
- internalType: "uint256",
681
- name: "maxApprovedBots",
682
- type: "uint256",
683
- },
684
- {
685
- components: [
686
- {
687
- internalType: "uint8",
688
- name: "tokenIndex",
689
- type: "uint8",
690
- },
691
- {
692
- internalType: "uint40",
693
- name: "maturity",
694
- type: "uint40",
695
- },
696
- {
697
- internalType: "address",
698
- name: "token",
699
- type: "address",
700
- },
701
- {
702
- internalType: "uint256",
703
- name: "amount",
704
- type: "uint256",
705
- },
706
- ],
707
- internalType: "struct ScheduledWithdrawal[2]",
708
- name: "schedultedWithdrawals",
709
- type: "tuple[2]",
632
+ internalType: "address[]",
710
633
  },
711
634
  ],
712
- internalType: "struct CreditAccountData[]",
713
- name: "",
714
- type: "tuple[]",
715
635
  },
716
636
  ],
717
637
  stateMutability: "nonpayable",
718
- type: "function",
719
638
  },
720
639
  {
640
+ type: "function",
641
+ name: "getCreditManagerData",
721
642
  inputs: [
722
643
  {
723
- internalType: "address",
724
644
  name: "creditManager",
725
645
  type: "address",
646
+ internalType: "address",
726
647
  },
727
648
  ],
728
- name: "getCreditManagerData",
729
649
  outputs: [
730
650
  {
651
+ name: "",
652
+ type: "tuple",
653
+ internalType: "struct CreditManagerData",
731
654
  components: [
732
655
  {
733
- internalType: "address",
734
656
  name: "addr",
735
657
  type: "address",
658
+ internalType: "address",
659
+ },
660
+ {
661
+ name: "name",
662
+ type: "string",
663
+ internalType: "string",
736
664
  },
737
665
  {
738
- internalType: "uint256",
739
666
  name: "cfVersion",
740
667
  type: "uint256",
668
+ internalType: "uint256",
741
669
  },
742
670
  {
743
- internalType: "address",
744
671
  name: "creditFacade",
745
672
  type: "address",
673
+ internalType: "address",
746
674
  },
747
675
  {
748
- internalType: "address",
749
676
  name: "creditConfigurator",
750
677
  type: "address",
678
+ internalType: "address",
751
679
  },
752
680
  {
753
- internalType: "address",
754
681
  name: "underlying",
755
682
  type: "address",
683
+ internalType: "address",
756
684
  },
757
685
  {
758
- internalType: "address",
759
686
  name: "pool",
760
687
  type: "address",
688
+ internalType: "address",
761
689
  },
762
690
  {
763
- internalType: "uint256",
764
691
  name: "totalDebt",
765
692
  type: "uint256",
693
+ internalType: "uint256",
766
694
  },
767
695
  {
768
- internalType: "uint256",
769
696
  name: "totalDebtLimit",
770
697
  type: "uint256",
698
+ internalType: "uint256",
771
699
  },
772
700
  {
773
- internalType: "uint256",
774
701
  name: "baseBorrowRate",
775
702
  type: "uint256",
703
+ internalType: "uint256",
776
704
  },
777
705
  {
778
- internalType: "uint256",
779
706
  name: "minDebt",
780
707
  type: "uint256",
708
+ internalType: "uint256",
781
709
  },
782
710
  {
783
- internalType: "uint256",
784
711
  name: "maxDebt",
785
712
  type: "uint256",
713
+ internalType: "uint256",
786
714
  },
787
715
  {
788
- internalType: "uint256",
789
716
  name: "availableToBorrow",
790
717
  type: "uint256",
718
+ internalType: "uint256",
791
719
  },
792
720
  {
793
- internalType: "address[]",
794
721
  name: "collateralTokens",
795
722
  type: "address[]",
723
+ internalType: "address[]",
796
724
  },
797
725
  {
726
+ name: "adapters",
727
+ type: "tuple[]",
728
+ internalType: "struct ContractAdapter[]",
798
729
  components: [
799
730
  {
800
- internalType: "address",
801
731
  name: "targetContract",
802
732
  type: "address",
733
+ internalType: "address",
803
734
  },
804
735
  {
805
- internalType: "address",
806
736
  name: "adapter",
807
737
  type: "address",
738
+ internalType: "address",
808
739
  },
809
740
  ],
810
- internalType: "struct ContractAdapter[]",
811
- name: "adapters",
812
- type: "tuple[]",
813
741
  },
814
742
  {
815
- internalType: "uint256[]",
816
743
  name: "liquidationThresholds",
817
744
  type: "uint256[]",
745
+ internalType: "uint256[]",
818
746
  },
819
747
  {
820
- internalType: "bool",
821
748
  name: "isDegenMode",
822
749
  type: "bool",
750
+ internalType: "bool",
823
751
  },
824
752
  {
825
- internalType: "address",
826
753
  name: "degenNFT",
827
754
  type: "address",
755
+ internalType: "address",
828
756
  },
829
757
  {
830
- internalType: "uint256",
831
758
  name: "forbiddenTokenMask",
832
759
  type: "uint256",
760
+ internalType: "uint256",
833
761
  },
834
762
  {
835
- internalType: "uint8",
836
763
  name: "maxEnabledTokensLength",
837
764
  type: "uint8",
765
+ internalType: "uint8",
838
766
  },
839
767
  {
840
- internalType: "uint16",
841
768
  name: "feeInterest",
842
769
  type: "uint16",
770
+ internalType: "uint16",
843
771
  },
844
772
  {
845
- internalType: "uint16",
846
773
  name: "feeLiquidation",
847
774
  type: "uint16",
775
+ internalType: "uint16",
848
776
  },
849
777
  {
850
- internalType: "uint16",
851
778
  name: "liquidationDiscount",
852
779
  type: "uint16",
780
+ internalType: "uint16",
853
781
  },
854
782
  {
855
- internalType: "uint16",
856
783
  name: "feeLiquidationExpired",
857
784
  type: "uint16",
785
+ internalType: "uint16",
858
786
  },
859
787
  {
860
- internalType: "uint16",
861
788
  name: "liquidationDiscountExpired",
862
789
  type: "uint16",
790
+ internalType: "uint16",
863
791
  },
864
792
  {
793
+ name: "quotas",
794
+ type: "tuple[]",
795
+ internalType: "struct QuotaInfo[]",
865
796
  components: [
866
797
  {
867
- internalType: "address",
868
798
  name: "token",
869
799
  type: "address",
800
+ internalType: "address",
870
801
  },
871
802
  {
872
- internalType: "uint16",
873
803
  name: "rate",
874
804
  type: "uint16",
805
+ internalType: "uint16",
875
806
  },
876
807
  {
877
- internalType: "uint16",
878
808
  name: "quotaIncreaseFee",
879
809
  type: "uint16",
810
+ internalType: "uint16",
880
811
  },
881
812
  {
882
- internalType: "uint96",
883
813
  name: "totalQuoted",
884
814
  type: "uint96",
815
+ internalType: "uint96",
885
816
  },
886
817
  {
887
- internalType: "uint96",
888
818
  name: "limit",
889
819
  type: "uint96",
820
+ internalType: "uint96",
890
821
  },
891
822
  {
892
- internalType: "bool",
893
823
  name: "isActive",
894
824
  type: "bool",
825
+ internalType: "bool",
895
826
  },
896
827
  ],
897
- internalType: "struct QuotaInfo[]",
898
- name: "quotas",
899
- type: "tuple[]",
900
828
  },
901
829
  {
830
+ name: "lirm",
831
+ type: "tuple",
832
+ internalType: "struct LinearModel",
902
833
  components: [
903
834
  {
904
- internalType: "address",
905
835
  name: "interestModel",
906
836
  type: "address",
837
+ internalType: "address",
907
838
  },
908
839
  {
909
- internalType: "uint256",
910
840
  name: "version",
911
841
  type: "uint256",
842
+ internalType: "uint256",
912
843
  },
913
844
  {
914
- internalType: "uint16",
915
845
  name: "U_1",
916
846
  type: "uint16",
847
+ internalType: "uint16",
917
848
  },
918
849
  {
919
- internalType: "uint16",
920
850
  name: "U_2",
921
851
  type: "uint16",
852
+ internalType: "uint16",
922
853
  },
923
854
  {
924
- internalType: "uint16",
925
855
  name: "R_base",
926
856
  type: "uint16",
857
+ internalType: "uint16",
927
858
  },
928
859
  {
929
- internalType: "uint16",
930
860
  name: "R_slope1",
931
861
  type: "uint16",
862
+ internalType: "uint16",
932
863
  },
933
864
  {
934
- internalType: "uint16",
935
865
  name: "R_slope2",
936
866
  type: "uint16",
867
+ internalType: "uint16",
937
868
  },
938
869
  {
939
- internalType: "uint16",
940
870
  name: "R_slope3",
941
871
  type: "uint16",
872
+ internalType: "uint16",
942
873
  },
943
874
  {
944
- internalType: "bool",
945
875
  name: "isBorrowingMoreU2Forbidden",
946
876
  type: "bool",
877
+ internalType: "bool",
947
878
  },
948
879
  ],
949
- internalType: "struct LinearModel",
950
- name: "lirm",
951
- type: "tuple",
952
880
  },
953
881
  {
954
- internalType: "bool",
955
882
  name: "isPaused",
956
883
  type: "bool",
884
+ internalType: "bool",
957
885
  },
958
886
  ],
959
- internalType: "struct CreditManagerData",
960
- name: "",
961
- type: "tuple",
962
887
  },
963
888
  ],
964
889
  stateMutability: "view",
965
- type: "function",
966
890
  },
967
891
  {
968
- inputs: [],
892
+ type: "function",
969
893
  name: "getCreditManagersV3List",
894
+ inputs: [],
970
895
  outputs: [
971
896
  {
897
+ name: "",
898
+ type: "tuple[]",
899
+ internalType: "struct CreditManagerData[]",
972
900
  components: [
973
901
  {
974
- internalType: "address",
975
902
  name: "addr",
976
903
  type: "address",
904
+ internalType: "address",
905
+ },
906
+ {
907
+ name: "name",
908
+ type: "string",
909
+ internalType: "string",
977
910
  },
978
911
  {
979
- internalType: "uint256",
980
912
  name: "cfVersion",
981
913
  type: "uint256",
914
+ internalType: "uint256",
982
915
  },
983
916
  {
984
- internalType: "address",
985
917
  name: "creditFacade",
986
918
  type: "address",
919
+ internalType: "address",
987
920
  },
988
921
  {
989
- internalType: "address",
990
922
  name: "creditConfigurator",
991
923
  type: "address",
924
+ internalType: "address",
992
925
  },
993
926
  {
994
- internalType: "address",
995
927
  name: "underlying",
996
928
  type: "address",
929
+ internalType: "address",
997
930
  },
998
931
  {
999
- internalType: "address",
1000
932
  name: "pool",
1001
933
  type: "address",
934
+ internalType: "address",
1002
935
  },
1003
936
  {
1004
- internalType: "uint256",
1005
937
  name: "totalDebt",
1006
938
  type: "uint256",
939
+ internalType: "uint256",
1007
940
  },
1008
941
  {
1009
- internalType: "uint256",
1010
942
  name: "totalDebtLimit",
1011
943
  type: "uint256",
944
+ internalType: "uint256",
1012
945
  },
1013
946
  {
1014
- internalType: "uint256",
1015
947
  name: "baseBorrowRate",
1016
948
  type: "uint256",
949
+ internalType: "uint256",
1017
950
  },
1018
951
  {
1019
- internalType: "uint256",
1020
952
  name: "minDebt",
1021
953
  type: "uint256",
954
+ internalType: "uint256",
1022
955
  },
1023
956
  {
1024
- internalType: "uint256",
1025
957
  name: "maxDebt",
1026
958
  type: "uint256",
959
+ internalType: "uint256",
1027
960
  },
1028
961
  {
1029
- internalType: "uint256",
1030
962
  name: "availableToBorrow",
1031
963
  type: "uint256",
964
+ internalType: "uint256",
1032
965
  },
1033
966
  {
1034
- internalType: "address[]",
1035
967
  name: "collateralTokens",
1036
968
  type: "address[]",
969
+ internalType: "address[]",
1037
970
  },
1038
971
  {
972
+ name: "adapters",
973
+ type: "tuple[]",
974
+ internalType: "struct ContractAdapter[]",
1039
975
  components: [
1040
976
  {
1041
- internalType: "address",
1042
977
  name: "targetContract",
1043
978
  type: "address",
979
+ internalType: "address",
1044
980
  },
1045
981
  {
1046
- internalType: "address",
1047
982
  name: "adapter",
1048
983
  type: "address",
984
+ internalType: "address",
1049
985
  },
1050
986
  ],
1051
- internalType: "struct ContractAdapter[]",
1052
- name: "adapters",
1053
- type: "tuple[]",
1054
987
  },
1055
988
  {
1056
- internalType: "uint256[]",
1057
989
  name: "liquidationThresholds",
1058
990
  type: "uint256[]",
991
+ internalType: "uint256[]",
1059
992
  },
1060
993
  {
1061
- internalType: "bool",
1062
994
  name: "isDegenMode",
1063
995
  type: "bool",
996
+ internalType: "bool",
1064
997
  },
1065
998
  {
1066
- internalType: "address",
1067
999
  name: "degenNFT",
1068
1000
  type: "address",
1001
+ internalType: "address",
1069
1002
  },
1070
1003
  {
1071
- internalType: "uint256",
1072
1004
  name: "forbiddenTokenMask",
1073
1005
  type: "uint256",
1006
+ internalType: "uint256",
1074
1007
  },
1075
1008
  {
1076
- internalType: "uint8",
1077
1009
  name: "maxEnabledTokensLength",
1078
1010
  type: "uint8",
1011
+ internalType: "uint8",
1079
1012
  },
1080
1013
  {
1081
- internalType: "uint16",
1082
1014
  name: "feeInterest",
1083
1015
  type: "uint16",
1016
+ internalType: "uint16",
1084
1017
  },
1085
1018
  {
1086
- internalType: "uint16",
1087
1019
  name: "feeLiquidation",
1088
1020
  type: "uint16",
1021
+ internalType: "uint16",
1089
1022
  },
1090
1023
  {
1091
- internalType: "uint16",
1092
1024
  name: "liquidationDiscount",
1093
1025
  type: "uint16",
1026
+ internalType: "uint16",
1094
1027
  },
1095
1028
  {
1096
- internalType: "uint16",
1097
1029
  name: "feeLiquidationExpired",
1098
1030
  type: "uint16",
1031
+ internalType: "uint16",
1099
1032
  },
1100
1033
  {
1101
- internalType: "uint16",
1102
1034
  name: "liquidationDiscountExpired",
1103
1035
  type: "uint16",
1036
+ internalType: "uint16",
1104
1037
  },
1105
1038
  {
1039
+ name: "quotas",
1040
+ type: "tuple[]",
1041
+ internalType: "struct QuotaInfo[]",
1106
1042
  components: [
1107
1043
  {
1108
- internalType: "address",
1109
1044
  name: "token",
1110
1045
  type: "address",
1046
+ internalType: "address",
1111
1047
  },
1112
1048
  {
1113
- internalType: "uint16",
1114
1049
  name: "rate",
1115
1050
  type: "uint16",
1051
+ internalType: "uint16",
1116
1052
  },
1117
1053
  {
1118
- internalType: "uint16",
1119
1054
  name: "quotaIncreaseFee",
1120
1055
  type: "uint16",
1056
+ internalType: "uint16",
1121
1057
  },
1122
1058
  {
1123
- internalType: "uint96",
1124
1059
  name: "totalQuoted",
1125
1060
  type: "uint96",
1061
+ internalType: "uint96",
1126
1062
  },
1127
1063
  {
1128
- internalType: "uint96",
1129
1064
  name: "limit",
1130
1065
  type: "uint96",
1066
+ internalType: "uint96",
1131
1067
  },
1132
1068
  {
1133
- internalType: "bool",
1134
1069
  name: "isActive",
1135
1070
  type: "bool",
1071
+ internalType: "bool",
1136
1072
  },
1137
1073
  ],
1138
- internalType: "struct QuotaInfo[]",
1139
- name: "quotas",
1140
- type: "tuple[]",
1141
1074
  },
1142
1075
  {
1076
+ name: "lirm",
1077
+ type: "tuple",
1078
+ internalType: "struct LinearModel",
1143
1079
  components: [
1144
1080
  {
1145
- internalType: "address",
1146
1081
  name: "interestModel",
1147
1082
  type: "address",
1083
+ internalType: "address",
1148
1084
  },
1149
1085
  {
1150
- internalType: "uint256",
1151
1086
  name: "version",
1152
1087
  type: "uint256",
1088
+ internalType: "uint256",
1153
1089
  },
1154
1090
  {
1155
- internalType: "uint16",
1156
1091
  name: "U_1",
1157
1092
  type: "uint16",
1093
+ internalType: "uint16",
1158
1094
  },
1159
1095
  {
1160
- internalType: "uint16",
1161
1096
  name: "U_2",
1162
1097
  type: "uint16",
1098
+ internalType: "uint16",
1163
1099
  },
1164
1100
  {
1165
- internalType: "uint16",
1166
1101
  name: "R_base",
1167
1102
  type: "uint16",
1103
+ internalType: "uint16",
1168
1104
  },
1169
1105
  {
1170
- internalType: "uint16",
1171
1106
  name: "R_slope1",
1172
1107
  type: "uint16",
1108
+ internalType: "uint16",
1173
1109
  },
1174
1110
  {
1175
- internalType: "uint16",
1176
1111
  name: "R_slope2",
1177
1112
  type: "uint16",
1113
+ internalType: "uint16",
1178
1114
  },
1179
1115
  {
1180
- internalType: "uint16",
1181
1116
  name: "R_slope3",
1182
1117
  type: "uint16",
1118
+ internalType: "uint16",
1183
1119
  },
1184
1120
  {
1185
- internalType: "bool",
1186
1121
  name: "isBorrowingMoreU2Forbidden",
1187
1122
  type: "bool",
1123
+ internalType: "bool",
1188
1124
  },
1189
1125
  ],
1190
- internalType: "struct LinearModel",
1191
- name: "lirm",
1192
- type: "tuple",
1193
1126
  },
1194
1127
  {
1195
- internalType: "bool",
1196
1128
  name: "isPaused",
1197
1129
  type: "bool",
1130
+ internalType: "bool",
1198
1131
  },
1199
1132
  ],
1200
- internalType: "struct CreditManagerData[]",
1201
- name: "",
1133
+ },
1134
+ ],
1135
+ stateMutability: "view",
1136
+ },
1137
+ {
1138
+ type: "function",
1139
+ name: "getGaugesV3Data",
1140
+ inputs: [
1141
+ {
1142
+ name: "staker",
1143
+ type: "address",
1144
+ internalType: "address",
1145
+ },
1146
+ ],
1147
+ outputs: [
1148
+ {
1149
+ name: "result",
1202
1150
  type: "tuple[]",
1151
+ internalType: "struct GaugeInfo[]",
1152
+ components: [
1153
+ {
1154
+ name: "addr",
1155
+ type: "address",
1156
+ internalType: "address",
1157
+ },
1158
+ {
1159
+ name: "pool",
1160
+ type: "address",
1161
+ internalType: "address",
1162
+ },
1163
+ {
1164
+ name: "symbol",
1165
+ type: "string",
1166
+ internalType: "string",
1167
+ },
1168
+ {
1169
+ name: "name",
1170
+ type: "string",
1171
+ internalType: "string",
1172
+ },
1173
+ {
1174
+ name: "underlying",
1175
+ type: "address",
1176
+ internalType: "address",
1177
+ },
1178
+ {
1179
+ name: "currentEpoch",
1180
+ type: "uint16",
1181
+ internalType: "uint16",
1182
+ },
1183
+ {
1184
+ name: "epochFrozen",
1185
+ type: "bool",
1186
+ internalType: "bool",
1187
+ },
1188
+ {
1189
+ name: "quotaParams",
1190
+ type: "tuple[]",
1191
+ internalType: "struct GaugeQuotaParams[]",
1192
+ components: [
1193
+ {
1194
+ name: "token",
1195
+ type: "address",
1196
+ internalType: "address",
1197
+ },
1198
+ {
1199
+ name: "minRate",
1200
+ type: "uint16",
1201
+ internalType: "uint16",
1202
+ },
1203
+ {
1204
+ name: "maxRate",
1205
+ type: "uint16",
1206
+ internalType: "uint16",
1207
+ },
1208
+ {
1209
+ name: "totalVotesLpSide",
1210
+ type: "uint96",
1211
+ internalType: "uint96",
1212
+ },
1213
+ {
1214
+ name: "totalVotesCaSide",
1215
+ type: "uint96",
1216
+ internalType: "uint96",
1217
+ },
1218
+ {
1219
+ name: "rate",
1220
+ type: "uint16",
1221
+ internalType: "uint16",
1222
+ },
1223
+ {
1224
+ name: "quotaIncreaseFee",
1225
+ type: "uint16",
1226
+ internalType: "uint16",
1227
+ },
1228
+ {
1229
+ name: "totalQuoted",
1230
+ type: "uint96",
1231
+ internalType: "uint96",
1232
+ },
1233
+ {
1234
+ name: "limit",
1235
+ type: "uint96",
1236
+ internalType: "uint96",
1237
+ },
1238
+ {
1239
+ name: "isActive",
1240
+ type: "bool",
1241
+ internalType: "bool",
1242
+ },
1243
+ {
1244
+ name: "stakerVotesLpSide",
1245
+ type: "uint96",
1246
+ internalType: "uint96",
1247
+ },
1248
+ {
1249
+ name: "stakerVotesCaSide",
1250
+ type: "uint96",
1251
+ internalType: "uint96",
1252
+ },
1253
+ ],
1254
+ },
1255
+ ],
1203
1256
  },
1204
1257
  ],
1205
1258
  stateMutability: "view",
1259
+ },
1260
+ {
1206
1261
  type: "function",
1262
+ name: "getLiquidatableCreditAccounts",
1263
+ inputs: [
1264
+ {
1265
+ name: "priceUpdates",
1266
+ type: "tuple[]",
1267
+ internalType: "struct PriceOnDemand[]",
1268
+ components: [
1269
+ {
1270
+ name: "token",
1271
+ type: "address",
1272
+ internalType: "address",
1273
+ },
1274
+ {
1275
+ name: "callData",
1276
+ type: "bytes",
1277
+ internalType: "bytes",
1278
+ },
1279
+ ],
1280
+ },
1281
+ ],
1282
+ outputs: [
1283
+ {
1284
+ name: "result",
1285
+ type: "tuple[]",
1286
+ internalType: "struct CreditAccountData[]",
1287
+ components: [
1288
+ {
1289
+ name: "isSuccessful",
1290
+ type: "bool",
1291
+ internalType: "bool",
1292
+ },
1293
+ {
1294
+ name: "priceFeedsNeeded",
1295
+ type: "address[]",
1296
+ internalType: "address[]",
1297
+ },
1298
+ {
1299
+ name: "addr",
1300
+ type: "address",
1301
+ internalType: "address",
1302
+ },
1303
+ {
1304
+ name: "borrower",
1305
+ type: "address",
1306
+ internalType: "address",
1307
+ },
1308
+ {
1309
+ name: "creditManager",
1310
+ type: "address",
1311
+ internalType: "address",
1312
+ },
1313
+ {
1314
+ name: "cmName",
1315
+ type: "string",
1316
+ internalType: "string",
1317
+ },
1318
+ {
1319
+ name: "creditFacade",
1320
+ type: "address",
1321
+ internalType: "address",
1322
+ },
1323
+ {
1324
+ name: "underlying",
1325
+ type: "address",
1326
+ internalType: "address",
1327
+ },
1328
+ {
1329
+ name: "debt",
1330
+ type: "uint256",
1331
+ internalType: "uint256",
1332
+ },
1333
+ {
1334
+ name: "cumulativeIndexLastUpdate",
1335
+ type: "uint256",
1336
+ internalType: "uint256",
1337
+ },
1338
+ {
1339
+ name: "cumulativeQuotaInterest",
1340
+ type: "uint128",
1341
+ internalType: "uint128",
1342
+ },
1343
+ {
1344
+ name: "accruedInterest",
1345
+ type: "uint256",
1346
+ internalType: "uint256",
1347
+ },
1348
+ {
1349
+ name: "accruedFees",
1350
+ type: "uint256",
1351
+ internalType: "uint256",
1352
+ },
1353
+ {
1354
+ name: "totalDebtUSD",
1355
+ type: "uint256",
1356
+ internalType: "uint256",
1357
+ },
1358
+ {
1359
+ name: "totalValue",
1360
+ type: "uint256",
1361
+ internalType: "uint256",
1362
+ },
1363
+ {
1364
+ name: "totalValueUSD",
1365
+ type: "uint256",
1366
+ internalType: "uint256",
1367
+ },
1368
+ {
1369
+ name: "twvUSD",
1370
+ type: "uint256",
1371
+ internalType: "uint256",
1372
+ },
1373
+ {
1374
+ name: "enabledTokensMask",
1375
+ type: "uint256",
1376
+ internalType: "uint256",
1377
+ },
1378
+ {
1379
+ name: "healthFactor",
1380
+ type: "uint256",
1381
+ internalType: "uint256",
1382
+ },
1383
+ {
1384
+ name: "baseBorrowRate",
1385
+ type: "uint256",
1386
+ internalType: "uint256",
1387
+ },
1388
+ {
1389
+ name: "aggregatedBorrowRate",
1390
+ type: "uint256",
1391
+ internalType: "uint256",
1392
+ },
1393
+ {
1394
+ name: "balances",
1395
+ type: "tuple[]",
1396
+ internalType: "struct TokenBalance[]",
1397
+ components: [
1398
+ {
1399
+ name: "token",
1400
+ type: "address",
1401
+ internalType: "address",
1402
+ },
1403
+ {
1404
+ name: "balance",
1405
+ type: "uint256",
1406
+ internalType: "uint256",
1407
+ },
1408
+ {
1409
+ name: "isForbidden",
1410
+ type: "bool",
1411
+ internalType: "bool",
1412
+ },
1413
+ {
1414
+ name: "isEnabled",
1415
+ type: "bool",
1416
+ internalType: "bool",
1417
+ },
1418
+ {
1419
+ name: "isQuoted",
1420
+ type: "bool",
1421
+ internalType: "bool",
1422
+ },
1423
+ {
1424
+ name: "quota",
1425
+ type: "uint256",
1426
+ internalType: "uint256",
1427
+ },
1428
+ {
1429
+ name: "quotaRate",
1430
+ type: "uint16",
1431
+ internalType: "uint16",
1432
+ },
1433
+ {
1434
+ name: "quotaCumulativeIndexLU",
1435
+ type: "uint256",
1436
+ internalType: "uint256",
1437
+ },
1438
+ ],
1439
+ },
1440
+ {
1441
+ name: "since",
1442
+ type: "uint64",
1443
+ internalType: "uint64",
1444
+ },
1445
+ {
1446
+ name: "cfVersion",
1447
+ type: "uint256",
1448
+ internalType: "uint256",
1449
+ },
1450
+ {
1451
+ name: "expirationDate",
1452
+ type: "uint40",
1453
+ internalType: "uint40",
1454
+ },
1455
+ {
1456
+ name: "activeBots",
1457
+ type: "address[]",
1458
+ internalType: "address[]",
1459
+ },
1460
+ ],
1461
+ },
1462
+ ],
1463
+ stateMutability: "nonpayable",
1207
1464
  },
1208
1465
  {
1466
+ type: "function",
1467
+ name: "getPoolData",
1209
1468
  inputs: [
1210
1469
  {
1211
- internalType: "address",
1212
1470
  name: "_pool",
1213
1471
  type: "address",
1472
+ internalType: "address",
1214
1473
  },
1215
1474
  ],
1216
- name: "getPoolData",
1217
1475
  outputs: [
1218
1476
  {
1477
+ name: "",
1478
+ type: "tuple",
1479
+ internalType: "struct PoolData",
1219
1480
  components: [
1220
1481
  {
1221
- internalType: "address",
1222
1482
  name: "addr",
1223
1483
  type: "address",
1484
+ internalType: "address",
1224
1485
  },
1225
1486
  {
1226
- internalType: "address",
1227
1487
  name: "underlying",
1228
1488
  type: "address",
1489
+ internalType: "address",
1229
1490
  },
1230
1491
  {
1231
- internalType: "address",
1232
1492
  name: "dieselToken",
1233
1493
  type: "address",
1494
+ internalType: "address",
1234
1495
  },
1235
1496
  {
1236
- internalType: "uint256",
1237
- name: "linearCumulativeIndex",
1238
- type: "uint256",
1497
+ name: "symbol",
1498
+ type: "string",
1499
+ internalType: "string",
1239
1500
  },
1240
1501
  {
1502
+ name: "name",
1503
+ type: "string",
1504
+ internalType: "string",
1505
+ },
1506
+ {
1507
+ name: "baseInterestIndex",
1508
+ type: "uint256",
1241
1509
  internalType: "uint256",
1510
+ },
1511
+ {
1242
1512
  name: "availableLiquidity",
1243
1513
  type: "uint256",
1514
+ internalType: "uint256",
1244
1515
  },
1245
1516
  {
1246
- internalType: "uint256",
1247
1517
  name: "expectedLiquidity",
1248
1518
  type: "uint256",
1519
+ internalType: "uint256",
1249
1520
  },
1250
1521
  {
1251
- internalType: "uint256",
1252
1522
  name: "totalBorrowed",
1253
1523
  type: "uint256",
1524
+ internalType: "uint256",
1254
1525
  },
1255
1526
  {
1256
- internalType: "uint256",
1257
1527
  name: "totalDebtLimit",
1258
1528
  type: "uint256",
1529
+ internalType: "uint256",
1259
1530
  },
1260
1531
  {
1532
+ name: "creditManagerDebtParams",
1533
+ type: "tuple[]",
1534
+ internalType: "struct CreditManagerDebtParams[]",
1261
1535
  components: [
1262
1536
  {
1263
- internalType: "address",
1264
1537
  name: "creditManager",
1265
1538
  type: "address",
1539
+ internalType: "address",
1266
1540
  },
1267
1541
  {
1268
- internalType: "uint256",
1269
1542
  name: "borrowed",
1270
1543
  type: "uint256",
1544
+ internalType: "uint256",
1271
1545
  },
1272
1546
  {
1273
- internalType: "uint256",
1274
1547
  name: "limit",
1275
1548
  type: "uint256",
1549
+ internalType: "uint256",
1276
1550
  },
1277
1551
  {
1278
- internalType: "uint256",
1279
1552
  name: "availableToBorrow",
1280
1553
  type: "uint256",
1554
+ internalType: "uint256",
1281
1555
  },
1282
1556
  ],
1283
- internalType: "struct CreditManagerDebtParams[]",
1284
- name: "creditManagerDebtParams",
1285
- type: "tuple[]",
1286
1557
  },
1287
1558
  {
1288
- internalType: "uint256",
1289
1559
  name: "totalAssets",
1290
1560
  type: "uint256",
1561
+ internalType: "uint256",
1291
1562
  },
1292
1563
  {
1293
- internalType: "uint256",
1294
1564
  name: "totalSupply",
1295
1565
  type: "uint256",
1566
+ internalType: "uint256",
1296
1567
  },
1297
1568
  {
1298
- internalType: "uint256",
1299
1569
  name: "supplyRate",
1300
1570
  type: "uint256",
1571
+ internalType: "uint256",
1301
1572
  },
1302
1573
  {
1303
- internalType: "uint256",
1304
1574
  name: "baseInterestRate",
1305
1575
  type: "uint256",
1576
+ internalType: "uint256",
1306
1577
  },
1307
1578
  {
1308
- internalType: "uint256",
1309
1579
  name: "dieselRate_RAY",
1310
1580
  type: "uint256",
1581
+ internalType: "uint256",
1311
1582
  },
1312
1583
  {
1313
- internalType: "uint256",
1314
1584
  name: "withdrawFee",
1315
1585
  type: "uint256",
1586
+ internalType: "uint256",
1316
1587
  },
1317
1588
  {
1318
- internalType: "uint256",
1319
- name: "cumulativeIndex_RAY",
1589
+ name: "lastBaseInterestUpdate",
1320
1590
  type: "uint256",
1591
+ internalType: "uint256",
1321
1592
  },
1322
1593
  {
1323
- internalType: "uint256",
1324
1594
  name: "baseInterestIndexLU",
1325
1595
  type: "uint256",
1596
+ internalType: "uint256",
1326
1597
  },
1327
1598
  {
1328
- internalType: "uint256",
1329
1599
  name: "version",
1330
1600
  type: "uint256",
1601
+ internalType: "uint256",
1331
1602
  },
1332
1603
  {
1333
- internalType: "address",
1334
1604
  name: "poolQuotaKeeper",
1335
1605
  type: "address",
1606
+ internalType: "address",
1336
1607
  },
1337
1608
  {
1338
- internalType: "address",
1339
1609
  name: "gauge",
1340
1610
  type: "address",
1611
+ internalType: "address",
1341
1612
  },
1342
1613
  {
1614
+ name: "quotas",
1615
+ type: "tuple[]",
1616
+ internalType: "struct QuotaInfo[]",
1343
1617
  components: [
1344
1618
  {
1345
- internalType: "address",
1346
1619
  name: "token",
1347
1620
  type: "address",
1621
+ internalType: "address",
1348
1622
  },
1349
1623
  {
1350
- internalType: "uint16",
1351
1624
  name: "rate",
1352
1625
  type: "uint16",
1626
+ internalType: "uint16",
1353
1627
  },
1354
1628
  {
1355
- internalType: "uint16",
1356
1629
  name: "quotaIncreaseFee",
1357
1630
  type: "uint16",
1631
+ internalType: "uint16",
1358
1632
  },
1359
1633
  {
1360
- internalType: "uint96",
1361
1634
  name: "totalQuoted",
1362
1635
  type: "uint96",
1636
+ internalType: "uint96",
1363
1637
  },
1364
1638
  {
1365
- internalType: "uint96",
1366
1639
  name: "limit",
1367
1640
  type: "uint96",
1641
+ internalType: "uint96",
1368
1642
  },
1369
1643
  {
1370
- internalType: "bool",
1371
1644
  name: "isActive",
1372
1645
  type: "bool",
1646
+ internalType: "bool",
1373
1647
  },
1374
1648
  ],
1375
- internalType: "struct QuotaInfo[]",
1376
- name: "quotas",
1377
- type: "tuple[]",
1378
1649
  },
1379
1650
  {
1651
+ name: "zappers",
1652
+ type: "tuple[]",
1653
+ internalType: "struct ZapperInfo[]",
1380
1654
  components: [
1381
1655
  {
1382
- internalType: "address",
1383
- name: "tokenFrom",
1656
+ name: "zapper",
1384
1657
  type: "address",
1658
+ internalType: "address",
1385
1659
  },
1386
1660
  {
1661
+ name: "tokenIn",
1662
+ type: "address",
1387
1663
  internalType: "address",
1388
- name: "zapper",
1664
+ },
1665
+ {
1666
+ name: "tokenOut",
1389
1667
  type: "address",
1668
+ internalType: "address",
1390
1669
  },
1391
1670
  ],
1392
- internalType: "struct ZapperInfo[]",
1393
- name: "zappers",
1394
- type: "tuple[]",
1395
1671
  },
1396
1672
  {
1673
+ name: "lirm",
1674
+ type: "tuple",
1675
+ internalType: "struct LinearModel",
1397
1676
  components: [
1398
1677
  {
1399
- internalType: "address",
1400
1678
  name: "interestModel",
1401
1679
  type: "address",
1680
+ internalType: "address",
1402
1681
  },
1403
1682
  {
1404
- internalType: "uint256",
1405
1683
  name: "version",
1406
1684
  type: "uint256",
1685
+ internalType: "uint256",
1407
1686
  },
1408
1687
  {
1409
- internalType: "uint16",
1410
1688
  name: "U_1",
1411
1689
  type: "uint16",
1690
+ internalType: "uint16",
1412
1691
  },
1413
1692
  {
1414
- internalType: "uint16",
1415
1693
  name: "U_2",
1416
1694
  type: "uint16",
1695
+ internalType: "uint16",
1417
1696
  },
1418
1697
  {
1419
- internalType: "uint16",
1420
1698
  name: "R_base",
1421
1699
  type: "uint16",
1700
+ internalType: "uint16",
1422
1701
  },
1423
1702
  {
1424
- internalType: "uint16",
1425
1703
  name: "R_slope1",
1426
1704
  type: "uint16",
1705
+ internalType: "uint16",
1427
1706
  },
1428
1707
  {
1429
- internalType: "uint16",
1430
1708
  name: "R_slope2",
1431
1709
  type: "uint16",
1710
+ internalType: "uint16",
1432
1711
  },
1433
1712
  {
1434
- internalType: "uint16",
1435
1713
  name: "R_slope3",
1436
1714
  type: "uint16",
1715
+ internalType: "uint16",
1437
1716
  },
1438
1717
  {
1439
- internalType: "bool",
1440
1718
  name: "isBorrowingMoreU2Forbidden",
1441
1719
  type: "bool",
1720
+ internalType: "bool",
1442
1721
  },
1443
1722
  ],
1444
- internalType: "struct LinearModel",
1445
- name: "lirm",
1446
- type: "tuple",
1447
1723
  },
1448
1724
  {
1449
- internalType: "bool",
1450
1725
  name: "isPaused",
1451
1726
  type: "bool",
1727
+ internalType: "bool",
1452
1728
  },
1453
1729
  ],
1454
- internalType: "struct PoolData",
1455
- name: "",
1456
- type: "tuple",
1457
1730
  },
1458
1731
  ],
1459
1732
  stateMutability: "view",
1460
- type: "function",
1461
1733
  },
1462
1734
  {
1463
- inputs: [],
1735
+ type: "function",
1464
1736
  name: "getPoolsV3List",
1737
+ inputs: [],
1465
1738
  outputs: [
1466
1739
  {
1740
+ name: "",
1741
+ type: "tuple[]",
1742
+ internalType: "struct PoolData[]",
1467
1743
  components: [
1468
1744
  {
1469
- internalType: "address",
1470
1745
  name: "addr",
1471
1746
  type: "address",
1747
+ internalType: "address",
1472
1748
  },
1473
1749
  {
1474
- internalType: "address",
1475
1750
  name: "underlying",
1476
1751
  type: "address",
1752
+ internalType: "address",
1477
1753
  },
1478
1754
  {
1479
- internalType: "address",
1480
1755
  name: "dieselToken",
1481
1756
  type: "address",
1757
+ internalType: "address",
1482
1758
  },
1483
1759
  {
1484
- internalType: "uint256",
1485
- name: "linearCumulativeIndex",
1486
- type: "uint256",
1760
+ name: "symbol",
1761
+ type: "string",
1762
+ internalType: "string",
1487
1763
  },
1488
1764
  {
1765
+ name: "name",
1766
+ type: "string",
1767
+ internalType: "string",
1768
+ },
1769
+ {
1770
+ name: "baseInterestIndex",
1771
+ type: "uint256",
1489
1772
  internalType: "uint256",
1773
+ },
1774
+ {
1490
1775
  name: "availableLiquidity",
1491
1776
  type: "uint256",
1777
+ internalType: "uint256",
1492
1778
  },
1493
1779
  {
1494
- internalType: "uint256",
1495
1780
  name: "expectedLiquidity",
1496
1781
  type: "uint256",
1782
+ internalType: "uint256",
1497
1783
  },
1498
1784
  {
1499
- internalType: "uint256",
1500
1785
  name: "totalBorrowed",
1501
1786
  type: "uint256",
1787
+ internalType: "uint256",
1502
1788
  },
1503
1789
  {
1504
- internalType: "uint256",
1505
1790
  name: "totalDebtLimit",
1506
1791
  type: "uint256",
1792
+ internalType: "uint256",
1507
1793
  },
1508
1794
  {
1795
+ name: "creditManagerDebtParams",
1796
+ type: "tuple[]",
1797
+ internalType: "struct CreditManagerDebtParams[]",
1509
1798
  components: [
1510
1799
  {
1511
- internalType: "address",
1512
1800
  name: "creditManager",
1513
1801
  type: "address",
1802
+ internalType: "address",
1514
1803
  },
1515
1804
  {
1516
- internalType: "uint256",
1517
1805
  name: "borrowed",
1518
1806
  type: "uint256",
1807
+ internalType: "uint256",
1519
1808
  },
1520
1809
  {
1521
- internalType: "uint256",
1522
1810
  name: "limit",
1523
1811
  type: "uint256",
1812
+ internalType: "uint256",
1524
1813
  },
1525
1814
  {
1526
- internalType: "uint256",
1527
1815
  name: "availableToBorrow",
1528
1816
  type: "uint256",
1817
+ internalType: "uint256",
1529
1818
  },
1530
1819
  ],
1531
- internalType: "struct CreditManagerDebtParams[]",
1532
- name: "creditManagerDebtParams",
1533
- type: "tuple[]",
1534
1820
  },
1535
1821
  {
1536
- internalType: "uint256",
1537
1822
  name: "totalAssets",
1538
1823
  type: "uint256",
1824
+ internalType: "uint256",
1539
1825
  },
1540
1826
  {
1541
- internalType: "uint256",
1542
1827
  name: "totalSupply",
1543
1828
  type: "uint256",
1829
+ internalType: "uint256",
1544
1830
  },
1545
1831
  {
1546
- internalType: "uint256",
1547
1832
  name: "supplyRate",
1548
1833
  type: "uint256",
1834
+ internalType: "uint256",
1549
1835
  },
1550
1836
  {
1551
- internalType: "uint256",
1552
1837
  name: "baseInterestRate",
1553
1838
  type: "uint256",
1839
+ internalType: "uint256",
1554
1840
  },
1555
1841
  {
1556
- internalType: "uint256",
1557
1842
  name: "dieselRate_RAY",
1558
1843
  type: "uint256",
1844
+ internalType: "uint256",
1559
1845
  },
1560
1846
  {
1561
- internalType: "uint256",
1562
1847
  name: "withdrawFee",
1563
1848
  type: "uint256",
1849
+ internalType: "uint256",
1564
1850
  },
1565
1851
  {
1566
- internalType: "uint256",
1567
- name: "cumulativeIndex_RAY",
1852
+ name: "lastBaseInterestUpdate",
1568
1853
  type: "uint256",
1854
+ internalType: "uint256",
1569
1855
  },
1570
1856
  {
1571
- internalType: "uint256",
1572
1857
  name: "baseInterestIndexLU",
1573
1858
  type: "uint256",
1859
+ internalType: "uint256",
1574
1860
  },
1575
1861
  {
1576
- internalType: "uint256",
1577
1862
  name: "version",
1578
1863
  type: "uint256",
1864
+ internalType: "uint256",
1579
1865
  },
1580
1866
  {
1581
- internalType: "address",
1582
1867
  name: "poolQuotaKeeper",
1583
1868
  type: "address",
1869
+ internalType: "address",
1584
1870
  },
1585
1871
  {
1586
- internalType: "address",
1587
1872
  name: "gauge",
1588
1873
  type: "address",
1874
+ internalType: "address",
1589
1875
  },
1590
1876
  {
1877
+ name: "quotas",
1878
+ type: "tuple[]",
1879
+ internalType: "struct QuotaInfo[]",
1591
1880
  components: [
1592
1881
  {
1593
- internalType: "address",
1594
1882
  name: "token",
1595
1883
  type: "address",
1884
+ internalType: "address",
1596
1885
  },
1597
1886
  {
1598
- internalType: "uint16",
1599
1887
  name: "rate",
1600
1888
  type: "uint16",
1889
+ internalType: "uint16",
1601
1890
  },
1602
1891
  {
1603
- internalType: "uint16",
1604
1892
  name: "quotaIncreaseFee",
1605
1893
  type: "uint16",
1894
+ internalType: "uint16",
1606
1895
  },
1607
1896
  {
1608
- internalType: "uint96",
1609
1897
  name: "totalQuoted",
1610
1898
  type: "uint96",
1899
+ internalType: "uint96",
1611
1900
  },
1612
1901
  {
1613
- internalType: "uint96",
1614
1902
  name: "limit",
1615
1903
  type: "uint96",
1904
+ internalType: "uint96",
1616
1905
  },
1617
1906
  {
1618
- internalType: "bool",
1619
1907
  name: "isActive",
1620
1908
  type: "bool",
1909
+ internalType: "bool",
1621
1910
  },
1622
1911
  ],
1623
- internalType: "struct QuotaInfo[]",
1624
- name: "quotas",
1625
- type: "tuple[]",
1626
1912
  },
1627
1913
  {
1914
+ name: "zappers",
1915
+ type: "tuple[]",
1916
+ internalType: "struct ZapperInfo[]",
1628
1917
  components: [
1629
1918
  {
1630
- internalType: "address",
1631
- name: "tokenFrom",
1919
+ name: "zapper",
1632
1920
  type: "address",
1921
+ internalType: "address",
1633
1922
  },
1634
1923
  {
1924
+ name: "tokenIn",
1925
+ type: "address",
1635
1926
  internalType: "address",
1636
- name: "zapper",
1927
+ },
1928
+ {
1929
+ name: "tokenOut",
1637
1930
  type: "address",
1931
+ internalType: "address",
1638
1932
  },
1639
1933
  ],
1640
- internalType: "struct ZapperInfo[]",
1641
- name: "zappers",
1642
- type: "tuple[]",
1643
1934
  },
1644
1935
  {
1936
+ name: "lirm",
1937
+ type: "tuple",
1938
+ internalType: "struct LinearModel",
1645
1939
  components: [
1646
1940
  {
1647
- internalType: "address",
1648
1941
  name: "interestModel",
1649
1942
  type: "address",
1943
+ internalType: "address",
1650
1944
  },
1651
1945
  {
1652
- internalType: "uint256",
1653
1946
  name: "version",
1654
1947
  type: "uint256",
1948
+ internalType: "uint256",
1655
1949
  },
1656
1950
  {
1657
- internalType: "uint16",
1658
1951
  name: "U_1",
1659
1952
  type: "uint16",
1953
+ internalType: "uint16",
1660
1954
  },
1661
1955
  {
1662
- internalType: "uint16",
1663
1956
  name: "U_2",
1664
1957
  type: "uint16",
1958
+ internalType: "uint16",
1665
1959
  },
1666
1960
  {
1667
- internalType: "uint16",
1668
1961
  name: "R_base",
1669
1962
  type: "uint16",
1963
+ internalType: "uint16",
1670
1964
  },
1671
1965
  {
1672
- internalType: "uint16",
1673
1966
  name: "R_slope1",
1674
1967
  type: "uint16",
1968
+ internalType: "uint16",
1675
1969
  },
1676
1970
  {
1677
- internalType: "uint16",
1678
1971
  name: "R_slope2",
1679
1972
  type: "uint16",
1973
+ internalType: "uint16",
1680
1974
  },
1681
1975
  {
1682
- internalType: "uint16",
1683
1976
  name: "R_slope3",
1684
1977
  type: "uint16",
1978
+ internalType: "uint16",
1685
1979
  },
1686
1980
  {
1687
- internalType: "bool",
1688
1981
  name: "isBorrowingMoreU2Forbidden",
1689
1982
  type: "bool",
1983
+ internalType: "bool",
1690
1984
  },
1691
1985
  ],
1692
- internalType: "struct LinearModel",
1693
- name: "lirm",
1694
- type: "tuple",
1695
1986
  },
1696
1987
  {
1697
- internalType: "bool",
1698
1988
  name: "isPaused",
1699
1989
  type: "bool",
1990
+ internalType: "bool",
1700
1991
  },
1701
1992
  ],
1702
- internalType: "struct PoolData[]",
1703
- name: "",
1704
- type: "tuple[]",
1705
1993
  },
1706
1994
  ],
1707
1995
  stateMutability: "view",
1708
- type: "function",
1709
1996
  },
1710
1997
  {
1711
- inputs: [],
1998
+ type: "function",
1712
1999
  name: "version",
2000
+ inputs: [],
1713
2001
  outputs: [
1714
2002
  {
1715
- internalType: "uint256",
1716
2003
  name: "",
1717
2004
  type: "uint256",
2005
+ internalType: "uint256",
1718
2006
  },
1719
2007
  ],
1720
2008
  stateMutability: "view",
1721
- type: "function",
1722
2009
  },
1723
2010
  ];
1724
2011
  class IDataCompressorV3_00__factory {