@gearbox-protocol/sdk 3.0.0-next.5 → 3.0.0-next.50

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 (264) hide show
  1. package/contracts/IAirdropDistributor.sol +55 -0
  2. package/contracts/IDegenDistributor.sol +28 -0
  3. package/contracts/IOffchainOracle.sol +17 -0
  4. package/contracts/IWETHGateway.sol +33 -0
  5. package/contracts/IwstETHGateway.sol +24 -0
  6. package/contracts/index.sol +11 -3
  7. package/lib/apy/curveAPY.js +2 -1
  8. package/lib/apy/index.d.ts +2 -2
  9. package/lib/apy/yearnAPY.js +1 -1
  10. package/lib/config.d.ts +0 -1
  11. package/lib/config.js +1 -2
  12. package/lib/core/assets.d.ts +4 -4
  13. package/lib/core/assets.js +28 -17
  14. package/lib/core/creditAccount.d.ts +31 -6
  15. package/lib/core/creditAccount.js +101 -37
  16. package/lib/core/creditAccount.spec.js +693 -10
  17. package/lib/core/creditManager.d.ts +22 -8
  18. package/lib/core/creditManager.js +86 -30
  19. package/lib/core/events.js +14 -14
  20. package/lib/core/gauge.d.ts +26 -0
  21. package/lib/core/gauge.js +63 -0
  22. package/lib/core/gaugeMath.d.ts +40 -0
  23. package/lib/core/gaugeMath.js +108 -0
  24. package/lib/core/gaugeMath.spec.d.ts +1 -0
  25. package/lib/core/gaugeMath.spec.js +388 -0
  26. package/lib/core/{pool/data.d.ts → pool.d.ts} +18 -10
  27. package/lib/core/{pool/data.js → pool.js} +69 -24
  28. package/lib/core/strategy.js +2 -2
  29. package/lib/core/trade.d.ts +5 -23
  30. package/lib/core/trade.js +4 -61
  31. package/lib/core/transactions.d.ts +50 -3
  32. package/lib/core/transactions.js +136 -105
  33. package/lib/index.d.ts +3 -0
  34. package/lib/index.js +3 -0
  35. package/lib/parsers/abstractParser.js +1 -2
  36. package/lib/parsers/creditFacadeParser.d.ts +2 -1
  37. package/lib/parsers/creditFacadeParser.js +17 -5
  38. package/lib/parsers/creditFacadeParser.spec.js +2 -3
  39. package/lib/parsers/curveAdapterParser.js +2 -3
  40. package/lib/parsers/txParser.d.ts +4 -4
  41. package/lib/parsers/txParser.js +9 -3
  42. package/lib/parsers/uniV2AdapterParser.js +2 -2
  43. package/lib/parsers/uniV3AdapterParser.js +3 -3
  44. package/lib/pathfinder/core.d.ts +4 -4
  45. package/lib/pathfinder/pathOptions.d.ts +2 -1
  46. package/lib/pathfinder/pathOptions.js +20 -1
  47. package/lib/pathfinder/pathOptions.spec.js +2 -2
  48. package/lib/pathfinder/pathfinder.js +4 -3
  49. package/lib/pathfinder/pathfinder.spec.js +3 -1
  50. package/lib/payload/creditAccount.d.ts +2 -2
  51. package/lib/payload/gauge.d.ts +12 -0
  52. package/lib/payload/pool.d.ts +6 -1
  53. package/lib/types/IAirdropDistributor.sol/IAirdropDistributor.d.ts +124 -0
  54. package/lib/types/IAirdropDistributor.sol/IAirdropDistributorEvents.d.ts +73 -0
  55. package/lib/types/IAirdropDistributor.sol/index.d.ts +2 -0
  56. package/lib/types/IConvexToken.d.ts +9 -1
  57. package/lib/types/IConvexV1BaseRewardPoolAdapter.d.ts +17 -1
  58. package/lib/types/{IConvexV1BoosterAdapter.d.ts → IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter.d.ts} +19 -4
  59. package/lib/types/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents.d.ts +43 -0
  60. package/lib/types/IConvexV1BoosterAdapter.sol/index.d.ts +2 -0
  61. package/lib/types/ICreditConfiguratorV3.sol/ICreditConfiguratorV3.d.ts +716 -0
  62. package/lib/types/ICreditConfiguratorV3.sol/ICreditConfiguratorV3Events.d.ts +275 -0
  63. package/lib/types/ICreditConfiguratorV3.sol/index.d.ts +2 -0
  64. package/lib/types/ICreditFacadeV2.sol/ICreditFacadeV2Extended.d.ts +7 -11
  65. package/lib/types/ICreditFacadeV3.sol/ICreditFacadeV3.d.ts +165 -20
  66. package/lib/types/ICreditFacadeV3.sol/ICreditFacadeV3Events.d.ts +5 -7
  67. package/lib/types/ICreditFacadeV3Multicall.d.ts +35 -12
  68. package/lib/types/ICreditManagerV3.sol/ICreditManagerV3.d.ts +273 -39
  69. package/lib/types/IDataCompressorV2_10.d.ts +43 -9
  70. package/lib/types/IDataCompressorV3_00.d.ts +140 -10
  71. package/lib/types/IDegenDistributor.sol/IDegenDistributor.d.ts +96 -0
  72. package/lib/types/IDegenDistributor.sol/IDegenDistributorEvents.d.ts +53 -0
  73. package/lib/types/IDegenDistributor.sol/index.d.ts +2 -0
  74. package/lib/types/{draft-IERC20Permit.sol/IERC20Permit.d.ts → IERC20Permit.d.ts} +1 -1
  75. package/lib/types/IERC20ZapperDeposits.d.ts +117 -0
  76. package/lib/types/IETHZapperDeposits.d.ts +66 -0
  77. package/lib/types/IGasPricer.d.ts +44 -0
  78. package/lib/types/IGearStakingV3.sol/IGearStakingV3.d.ts +408 -0
  79. package/lib/types/IGearStakingV3.sol/IGearStakingV3Events.d.ts +117 -0
  80. package/lib/types/IGearStakingV3.sol/index.d.ts +2 -0
  81. package/lib/types/{ILidoV1Adapter.sol/ILidoV1Adapter.d.ts → ILidoV1Adapter.d.ts} +5 -40
  82. package/lib/types/ILidoV1Adapter.js +2 -0
  83. package/lib/types/IOffchainOracle.d.ts +58 -0
  84. package/lib/types/IOffchainOracle.js +2 -0
  85. package/lib/types/IPoolV3.sol/IPoolV3.d.ts +43 -11
  86. package/lib/types/IPoolV3.sol/index.d.ts +0 -1
  87. package/lib/types/IWETHGateway.d.ts +90 -0
  88. package/lib/types/IWETHGateway.js +2 -0
  89. package/lib/types/IZapper.d.ts +130 -0
  90. package/lib/types/IZapper.js +2 -0
  91. package/lib/types/IwstETHGateway.sol/IwstETHGateWay.d.ts +70 -0
  92. package/lib/types/IwstETHGateway.sol/IwstETHGateWay.js +2 -0
  93. package/lib/types/IwstETHGateway.sol/index.d.ts +1 -0
  94. package/lib/types/IwstETHGateway.sol/index.js +2 -0
  95. package/lib/types/factories/AddressProvider__factory.d.ts +1 -1
  96. package/lib/types/factories/AddressProvider__factory.js +1 -1
  97. package/lib/types/factories/Balances.sol/BalanceOps__factory.d.ts +1 -1
  98. package/lib/types/factories/Balances.sol/BalanceOps__factory.js +1 -1
  99. package/lib/types/factories/Claimable__factory.d.ts +1 -1
  100. package/lib/types/factories/Claimable__factory.js +1 -1
  101. package/lib/types/factories/Errors__factory.d.ts +1 -1
  102. package/lib/types/factories/Errors__factory.js +1 -1
  103. package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributorEvents__factory.d.ts +63 -0
  104. package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributorEvents__factory.js +88 -0
  105. package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributor__factory.d.ts +119 -0
  106. package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributor__factory.js +161 -0
  107. package/lib/types/factories/IAirdropDistributor.sol/index.d.ts +2 -0
  108. package/lib/types/factories/IAirdropDistributor.sol/index.js +10 -0
  109. package/lib/types/factories/IConvexToken__factory.d.ts +10 -0
  110. package/lib/types/factories/IConvexToken__factory.js +13 -0
  111. package/lib/types/factories/IConvexV1BaseRewardPoolAdapter__factory.d.ts +20 -0
  112. package/lib/types/factories/IConvexV1BaseRewardPoolAdapter__factory.js +26 -0
  113. package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents__factory.d.ts +23 -0
  114. package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents__factory.js +38 -0
  115. package/lib/types/factories/{IConvexV1BoosterAdapter__factory.d.ts → IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter__factory.d.ts} +16 -1
  116. package/lib/types/factories/{IConvexV1BoosterAdapter__factory.js → IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter__factory.js} +19 -0
  117. package/lib/types/factories/IConvexV1BoosterAdapter.sol/index.d.ts +2 -0
  118. package/lib/types/factories/IConvexV1BoosterAdapter.sol/index.js +10 -0
  119. package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3Events__factory.d.ts +273 -0
  120. package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3Events__factory.js +357 -0
  121. package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3__factory.d.ts +605 -0
  122. package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3__factory.js +785 -0
  123. package/lib/types/factories/ICreditConfiguratorV3.sol/index.d.ts +2 -0
  124. package/lib/types/factories/ICreditConfiguratorV3.sol/index.js +10 -0
  125. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Extended__factory.d.ts +0 -4
  126. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Extended__factory.js +0 -5
  127. package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.d.ts +1 -6
  128. package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.js +1 -7
  129. package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.d.ts +144 -13
  130. package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.js +185 -15
  131. package/lib/types/factories/ICreditFacadeV3Multicall__factory.d.ts +35 -5
  132. package/lib/types/factories/ICreditFacadeV3Multicall__factory.js +43 -5
  133. package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3__factory.d.ts +199 -25
  134. package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3__factory.js +252 -28
  135. package/lib/types/factories/IDataCompressorV2_10__factory.d.ts +110 -12
  136. package/lib/types/factories/IDataCompressorV2_10__factory.js +138 -14
  137. package/lib/types/factories/IDataCompressorV3_00__factory.d.ts +400 -16
  138. package/lib/types/factories/IDataCompressorV3_00__factory.js +508 -19
  139. package/lib/types/factories/IDegenDistributor.sol/IDegenDistributorEvents__factory.d.ts +38 -0
  140. package/lib/types/factories/{AaveV2_WrappedAToken.sol/IWrappedATokenEvents__factory.js → IDegenDistributor.sol/IDegenDistributorEvents__factory.js} +13 -25
  141. package/lib/types/factories/IDegenDistributor.sol/IDegenDistributor__factory.d.ts +84 -0
  142. package/lib/types/factories/{IPoolV3.sol/IPoolBase__factory.js → IDegenDistributor.sol/IDegenDistributor__factory.js} +46 -41
  143. package/lib/types/factories/IDegenDistributor.sol/index.d.ts +2 -0
  144. package/lib/types/factories/IDegenDistributor.sol/index.js +10 -0
  145. package/lib/types/factories/{draft-IERC20Permit.sol/IERC20Permit__factory.d.ts → IERC20Permit__factory.d.ts} +1 -1
  146. package/lib/types/factories/IERC20ZapperDeposits__factory.d.ts +120 -0
  147. package/lib/types/factories/IERC20ZapperDeposits__factory.js +165 -0
  148. package/lib/types/factories/IETHZapperDeposits__factory.d.ts +40 -0
  149. package/lib/types/factories/IETHZapperDeposits__factory.js +62 -0
  150. package/lib/types/factories/IGasPricer__factory.d.ts +22 -0
  151. package/lib/types/factories/{ILidoV1Adapter.sol/ILidoV1AdapterEvents__factory.js → IGasPricer__factory.js} +14 -8
  152. package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3Events__factory.d.ts +113 -0
  153. package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3Events__factory.js +152 -0
  154. package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3__factory.d.ts +504 -0
  155. package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3__factory.js +660 -0
  156. package/lib/types/factories/IGearStakingV3.sol/index.d.ts +2 -0
  157. package/lib/types/factories/IGearStakingV3.sol/index.js +10 -0
  158. package/lib/types/factories/{ILidoV1Adapter.sol/ILidoV1Adapter__factory.d.ts → ILidoV1Adapter__factory.d.ts} +1 -35
  159. package/lib/types/factories/{ILidoV1Adapter.sol/ILidoV1Adapter__factory.js → ILidoV1Adapter__factory.js} +0 -44
  160. package/lib/types/factories/IOffchainOracle__factory.d.ts +48 -0
  161. package/lib/types/factories/IOffchainOracle__factory.js +72 -0
  162. package/lib/types/factories/IPoolV3.sol/IPoolV3__factory.d.ts +62 -14
  163. package/lib/types/factories/IPoolV3.sol/IPoolV3__factory.js +79 -17
  164. package/lib/types/factories/IPoolV3.sol/index.d.ts +0 -1
  165. package/lib/types/factories/IPoolV3.sol/index.js +1 -3
  166. package/lib/types/factories/IWETHGateway__factory.d.ts +58 -0
  167. package/lib/types/factories/IWETHGateway__factory.js +83 -0
  168. package/lib/types/factories/{WERC20ZapperBase__factory.d.ts → IZapper__factory.d.ts} +57 -61
  169. package/lib/types/factories/{WERC20ZapperBase__factory.js → IZapper__factory.js} +65 -71
  170. package/lib/types/factories/{ZapperBase__factory.d.ts → IwstETHGateway.sol/IwstETHGateWay__factory.d.ts} +22 -34
  171. package/lib/types/factories/{ZapperBase__factory.js → IwstETHGateway.sol/IwstETHGateWay__factory.js} +22 -39
  172. package/lib/types/factories/IwstETHGateway.sol/index.d.ts +1 -0
  173. package/lib/types/factories/IwstETHGateway.sol/index.js +8 -0
  174. package/lib/types/factories/SafeERC20__factory.d.ts +1 -1
  175. package/lib/types/factories/SafeERC20__factory.js +1 -1
  176. package/lib/types/factories/index.d.ts +15 -13
  177. package/lib/types/factories/index.js +25 -25
  178. package/lib/types/factories/{IRouter__factory.d.ts → interfaces/IRouter__factory.d.ts} +15 -1
  179. package/lib/types/factories/{IRouter__factory.js → interfaces/IRouter__factory.js} +19 -0
  180. package/lib/types/factories/interfaces/index.d.ts +1 -0
  181. package/lib/types/factories/interfaces/index.js +8 -0
  182. package/lib/types/index.d.ts +62 -48
  183. package/lib/types/index.js +52 -46
  184. package/lib/types/{IRouter.d.ts → interfaces/IRouter.d.ts} +12 -2
  185. package/lib/types/interfaces/IRouter.js +2 -0
  186. package/lib/types/interfaces/index.d.ts +1 -0
  187. package/lib/types/interfaces/index.js +2 -0
  188. package/lib/utils/formatter.d.ts +0 -3
  189. package/lib/utils/formatter.js +1 -67
  190. package/lib/utils/math.d.ts +2 -0
  191. package/lib/utils/math.js +2 -0
  192. package/lib/utils/types.d.ts +1 -0
  193. package/lib/watchers/creditAccountWatcher.d.ts +3 -2
  194. package/lib/watchers/creditAccountWatcher.js +19 -13
  195. package/lib/watchers/creditAccountWatcher.spec.js +18 -18
  196. package/lib/watchers/creditManagerWatcher.d.ts +5 -3
  197. package/lib/watchers/creditManagerWatcher.js +32 -10
  198. package/lib/watchers/creditManagerWatcher.spec.js +12 -4
  199. package/package.json +10 -9
  200. package/contracts/IRouter.sol +0 -100
  201. package/lib/core/pool/index.d.ts +0 -1
  202. package/lib/core/pool/index.js +0 -17
  203. package/lib/types/AaveV2_WrappedAToken.sol/IWrappedATokenEvents.d.ts +0 -60
  204. package/lib/types/AaveV2_WrappedAToken.sol/WrappedAToken.d.ts +0 -332
  205. package/lib/types/AaveV2_WrappedAToken.sol/index.d.ts +0 -2
  206. package/lib/types/ERC20.d.ts +0 -198
  207. package/lib/types/IAToken.d.ts +0 -182
  208. package/lib/types/ILendingPool.d.ts +0 -140
  209. package/lib/types/ILidoV1Adapter.sol/ILidoV1AdapterEvents.d.ts +0 -39
  210. package/lib/types/ILidoV1Adapter.sol/ILidoV1AdapterExceptions.d.ts +0 -27
  211. package/lib/types/ILidoV1Adapter.sol/index.d.ts +0 -3
  212. package/lib/types/IPoolV3.sol/IPoolBase.d.ts +0 -102
  213. package/lib/types/WATokenZapper.d.ts +0 -134
  214. package/lib/types/WERC20ZapperBase.d.ts +0 -134
  215. package/lib/types/WETHZapper.d.ts +0 -122
  216. package/lib/types/WstETHZapper.d.ts +0 -134
  217. package/lib/types/ZapperBase.d.ts +0 -70
  218. package/lib/types/draft-IERC20Permit.sol/index.d.ts +0 -1
  219. package/lib/types/factories/AaveV2_WrappedAToken.sol/IWrappedATokenEvents__factory.d.ts +0 -48
  220. package/lib/types/factories/AaveV2_WrappedAToken.sol/WrappedAToken__factory.d.ts +0 -397
  221. package/lib/types/factories/AaveV2_WrappedAToken.sol/WrappedAToken__factory.js +0 -535
  222. package/lib/types/factories/AaveV2_WrappedAToken.sol/index.d.ts +0 -2
  223. package/lib/types/factories/AaveV2_WrappedAToken.sol/index.js +0 -10
  224. package/lib/types/factories/ERC20__factory.d.ts +0 -239
  225. package/lib/types/factories/ERC20__factory.js +0 -328
  226. package/lib/types/factories/IAToken__factory.d.ts +0 -198
  227. package/lib/types/factories/IAToken__factory.js +0 -267
  228. package/lib/types/factories/ILendingPool__factory.d.ts +0 -134
  229. package/lib/types/factories/ILendingPool__factory.js +0 -183
  230. package/lib/types/factories/ILidoV1Adapter.sol/ILidoV1AdapterEvents__factory.d.ts +0 -18
  231. package/lib/types/factories/ILidoV1Adapter.sol/ILidoV1AdapterExceptions__factory.d.ts +0 -12
  232. package/lib/types/factories/ILidoV1Adapter.sol/ILidoV1AdapterExceptions__factory.js +0 -24
  233. package/lib/types/factories/ILidoV1Adapter.sol/index.d.ts +0 -3
  234. package/lib/types/factories/ILidoV1Adapter.sol/index.js +0 -12
  235. package/lib/types/factories/IPoolV3.sol/IPoolBase__factory.d.ts +0 -80
  236. package/lib/types/factories/WATokenZapper__factory.d.ts +0 -161
  237. package/lib/types/factories/WATokenZapper__factory.js +0 -227
  238. package/lib/types/factories/WETHZapper__factory.d.ts +0 -138
  239. package/lib/types/factories/WETHZapper__factory.js +0 -198
  240. package/lib/types/factories/WstETHZapper__factory.d.ts +0 -161
  241. package/lib/types/factories/WstETHZapper__factory.js +0 -227
  242. package/lib/types/factories/draft-IERC20Permit.sol/index.d.ts +0 -1
  243. package/lib/types/factories/draft-IERC20Permit.sol/index.js +0 -8
  244. /package/lib/{types/AaveV2_WrappedAToken.sol/IWrappedATokenEvents.js → payload/gauge.js} +0 -0
  245. /package/lib/types/{AaveV2_WrappedAToken.sol/WrappedAToken.js → IAirdropDistributor.sol/IAirdropDistributor.js} +0 -0
  246. /package/lib/types/{AaveV2_WrappedAToken.sol/index.js → IAirdropDistributor.sol/IAirdropDistributorEvents.js} +0 -0
  247. /package/lib/types/{ILidoV1Adapter.sol → IAirdropDistributor.sol}/index.js +0 -0
  248. /package/lib/types/{IConvexV1BoosterAdapter.js → IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter.js} +0 -0
  249. /package/lib/types/{ERC20.js → IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents.js} +0 -0
  250. /package/lib/types/{draft-IERC20Permit.sol → IConvexV1BoosterAdapter.sol}/index.js +0 -0
  251. /package/lib/types/{IAToken.js → ICreditConfiguratorV3.sol/ICreditConfiguratorV3.js} +0 -0
  252. /package/lib/types/{ILendingPool.js → ICreditConfiguratorV3.sol/ICreditConfiguratorV3Events.js} +0 -0
  253. /package/lib/types/{ILidoV1Adapter.sol/ILidoV1Adapter.js → ICreditConfiguratorV3.sol/index.js} +0 -0
  254. /package/lib/types/{ILidoV1Adapter.sol/ILidoV1AdapterEvents.js → IDegenDistributor.sol/IDegenDistributor.js} +0 -0
  255. /package/lib/types/{ILidoV1Adapter.sol/ILidoV1AdapterExceptions.js → IDegenDistributor.sol/IDegenDistributorEvents.js} +0 -0
  256. /package/lib/types/{IPoolV3.sol/IPoolBase.js → IDegenDistributor.sol/index.js} +0 -0
  257. /package/lib/types/{draft-IERC20Permit.sol/IERC20Permit.js → IERC20Permit.js} +0 -0
  258. /package/lib/types/{IRouter.js → IERC20ZapperDeposits.js} +0 -0
  259. /package/lib/types/{WATokenZapper.js → IETHZapperDeposits.js} +0 -0
  260. /package/lib/types/{WERC20ZapperBase.js → IGasPricer.js} +0 -0
  261. /package/lib/types/{WETHZapper.js → IGearStakingV3.sol/IGearStakingV3.js} +0 -0
  262. /package/lib/types/{WstETHZapper.js → IGearStakingV3.sol/IGearStakingV3Events.js} +0 -0
  263. /package/lib/types/{ZapperBase.js → IGearStakingV3.sol/index.js} +0 -0
  264. /package/lib/types/factories/{draft-IERC20Permit.sol/IERC20Permit__factory.js → IERC20Permit__factory.js} +0 -0
@@ -60,6 +60,11 @@ const _abi = [
60
60
  name: "creditManager",
61
61
  type: "address",
62
62
  },
63
+ {
64
+ internalType: "string",
65
+ name: "cmName",
66
+ type: "string",
67
+ },
63
68
  {
64
69
  internalType: "address",
65
70
  name: "creditFacade",
@@ -75,11 +80,6 @@ const _abi = [
75
80
  name: "debt",
76
81
  type: "uint256",
77
82
  },
78
- {
79
- internalType: "uint256",
80
- name: "cumulativeIndexNow",
81
- type: "uint256",
82
- },
83
83
  {
84
84
  internalType: "uint256",
85
85
  name: "cumulativeIndexLastUpdate",
@@ -177,6 +177,11 @@ const _abi = [
177
177
  name: "quotaRate",
178
178
  type: "uint16",
179
179
  },
180
+ {
181
+ internalType: "uint256",
182
+ name: "quotaCumulativeIndexLU",
183
+ type: "uint256",
184
+ },
180
185
  ],
181
186
  internalType: "struct TokenBalance[]",
182
187
  name: "balances",
@@ -297,6 +302,11 @@ const _abi = [
297
302
  name: "creditManager",
298
303
  type: "address",
299
304
  },
305
+ {
306
+ internalType: "string",
307
+ name: "cmName",
308
+ type: "string",
309
+ },
300
310
  {
301
311
  internalType: "address",
302
312
  name: "creditFacade",
@@ -312,11 +322,6 @@ const _abi = [
312
322
  name: "debt",
313
323
  type: "uint256",
314
324
  },
315
- {
316
- internalType: "uint256",
317
- name: "cumulativeIndexNow",
318
- type: "uint256",
319
- },
320
325
  {
321
326
  internalType: "uint256",
322
327
  name: "cumulativeIndexLastUpdate",
@@ -414,6 +419,11 @@ const _abi = [
414
419
  name: "quotaRate",
415
420
  type: "uint16",
416
421
  },
422
+ {
423
+ internalType: "uint256",
424
+ name: "quotaCumulativeIndexLU",
425
+ type: "uint256",
426
+ },
417
427
  ],
418
428
  internalType: "struct TokenBalance[]",
419
429
  name: "balances",
@@ -534,6 +544,11 @@ const _abi = [
534
544
  name: "creditManager",
535
545
  type: "address",
536
546
  },
547
+ {
548
+ internalType: "string",
549
+ name: "cmName",
550
+ type: "string",
551
+ },
537
552
  {
538
553
  internalType: "address",
539
554
  name: "creditFacade",
@@ -549,11 +564,6 @@ const _abi = [
549
564
  name: "debt",
550
565
  type: "uint256",
551
566
  },
552
- {
553
- internalType: "uint256",
554
- name: "cumulativeIndexNow",
555
- type: "uint256",
556
- },
557
567
  {
558
568
  internalType: "uint256",
559
569
  name: "cumulativeIndexLastUpdate",
@@ -651,6 +661,11 @@ const _abi = [
651
661
  name: "quotaRate",
652
662
  type: "uint16",
653
663
  },
664
+ {
665
+ internalType: "uint256",
666
+ name: "quotaCumulativeIndexLU",
667
+ type: "uint256",
668
+ },
654
669
  ],
655
670
  internalType: "struct TokenBalance[]",
656
671
  name: "balances",
@@ -734,6 +749,11 @@ const _abi = [
734
749
  name: "addr",
735
750
  type: "address",
736
751
  },
752
+ {
753
+ internalType: "string",
754
+ name: "name",
755
+ type: "string",
756
+ },
737
757
  {
738
758
  internalType: "uint256",
739
759
  name: "cfVersion",
@@ -940,6 +960,11 @@ const _abi = [
940
960
  name: "R_slope3",
941
961
  type: "uint16",
942
962
  },
963
+ {
964
+ internalType: "bool",
965
+ name: "isBorrowingMoreU2Forbidden",
966
+ type: "bool",
967
+ },
943
968
  ],
944
969
  internalType: "struct LinearModel",
945
970
  name: "lirm",
@@ -970,6 +995,11 @@ const _abi = [
970
995
  name: "addr",
971
996
  type: "address",
972
997
  },
998
+ {
999
+ internalType: "string",
1000
+ name: "name",
1001
+ type: "string",
1002
+ },
973
1003
  {
974
1004
  internalType: "uint256",
975
1005
  name: "cfVersion",
@@ -1176,6 +1206,11 @@ const _abi = [
1176
1206
  name: "R_slope3",
1177
1207
  type: "uint16",
1178
1208
  },
1209
+ {
1210
+ internalType: "bool",
1211
+ name: "isBorrowingMoreU2Forbidden",
1212
+ type: "bool",
1213
+ },
1179
1214
  ],
1180
1215
  internalType: "struct LinearModel",
1181
1216
  name: "lirm",
@@ -1195,6 +1230,366 @@ const _abi = [
1195
1230
  stateMutability: "view",
1196
1231
  type: "function",
1197
1232
  },
1233
+ {
1234
+ inputs: [
1235
+ {
1236
+ internalType: "address",
1237
+ name: "staker",
1238
+ type: "address",
1239
+ },
1240
+ ],
1241
+ name: "getGaugesV3Data",
1242
+ outputs: [
1243
+ {
1244
+ components: [
1245
+ {
1246
+ internalType: "address",
1247
+ name: "addr",
1248
+ type: "address",
1249
+ },
1250
+ {
1251
+ internalType: "address",
1252
+ name: "pool",
1253
+ type: "address",
1254
+ },
1255
+ {
1256
+ internalType: "string",
1257
+ name: "symbol",
1258
+ type: "string",
1259
+ },
1260
+ {
1261
+ internalType: "string",
1262
+ name: "name",
1263
+ type: "string",
1264
+ },
1265
+ {
1266
+ internalType: "address",
1267
+ name: "underlying",
1268
+ type: "address",
1269
+ },
1270
+ {
1271
+ internalType: "uint16",
1272
+ name: "currentEpoch",
1273
+ type: "uint16",
1274
+ },
1275
+ {
1276
+ internalType: "bool",
1277
+ name: "epochFrozen",
1278
+ type: "bool",
1279
+ },
1280
+ {
1281
+ components: [
1282
+ {
1283
+ internalType: "address",
1284
+ name: "token",
1285
+ type: "address",
1286
+ },
1287
+ {
1288
+ internalType: "uint16",
1289
+ name: "minRate",
1290
+ type: "uint16",
1291
+ },
1292
+ {
1293
+ internalType: "uint16",
1294
+ name: "maxRate",
1295
+ type: "uint16",
1296
+ },
1297
+ {
1298
+ internalType: "uint96",
1299
+ name: "totalVotesLpSide",
1300
+ type: "uint96",
1301
+ },
1302
+ {
1303
+ internalType: "uint96",
1304
+ name: "totalVotesCaSide",
1305
+ type: "uint96",
1306
+ },
1307
+ {
1308
+ internalType: "uint16",
1309
+ name: "rate",
1310
+ type: "uint16",
1311
+ },
1312
+ {
1313
+ internalType: "uint16",
1314
+ name: "quotaIncreaseFee",
1315
+ type: "uint16",
1316
+ },
1317
+ {
1318
+ internalType: "uint96",
1319
+ name: "totalQuoted",
1320
+ type: "uint96",
1321
+ },
1322
+ {
1323
+ internalType: "uint96",
1324
+ name: "limit",
1325
+ type: "uint96",
1326
+ },
1327
+ {
1328
+ internalType: "bool",
1329
+ name: "isActive",
1330
+ type: "bool",
1331
+ },
1332
+ {
1333
+ internalType: "uint96",
1334
+ name: "stakerVotesLpSide",
1335
+ type: "uint96",
1336
+ },
1337
+ {
1338
+ internalType: "uint96",
1339
+ name: "stakerVotesCaSide",
1340
+ type: "uint96",
1341
+ },
1342
+ ],
1343
+ internalType: "struct GaugeQuotaParams[]",
1344
+ name: "quotaParams",
1345
+ type: "tuple[]",
1346
+ },
1347
+ ],
1348
+ internalType: "struct GaugeInfo[]",
1349
+ name: "result",
1350
+ type: "tuple[]",
1351
+ },
1352
+ ],
1353
+ stateMutability: "view",
1354
+ type: "function",
1355
+ },
1356
+ {
1357
+ inputs: [
1358
+ {
1359
+ components: [
1360
+ {
1361
+ internalType: "address",
1362
+ name: "token",
1363
+ type: "address",
1364
+ },
1365
+ {
1366
+ internalType: "bytes",
1367
+ name: "callData",
1368
+ type: "bytes",
1369
+ },
1370
+ ],
1371
+ internalType: "struct PriceOnDemand[]",
1372
+ name: "priceUpdates",
1373
+ type: "tuple[]",
1374
+ },
1375
+ ],
1376
+ name: "getLiquidatableCreditAccounts",
1377
+ outputs: [
1378
+ {
1379
+ components: [
1380
+ {
1381
+ internalType: "bool",
1382
+ name: "isSuccessful",
1383
+ type: "bool",
1384
+ },
1385
+ {
1386
+ internalType: "address[]",
1387
+ name: "priceFeedsNeeded",
1388
+ type: "address[]",
1389
+ },
1390
+ {
1391
+ internalType: "address",
1392
+ name: "addr",
1393
+ type: "address",
1394
+ },
1395
+ {
1396
+ internalType: "address",
1397
+ name: "borrower",
1398
+ type: "address",
1399
+ },
1400
+ {
1401
+ internalType: "address",
1402
+ name: "creditManager",
1403
+ type: "address",
1404
+ },
1405
+ {
1406
+ internalType: "string",
1407
+ name: "cmName",
1408
+ type: "string",
1409
+ },
1410
+ {
1411
+ internalType: "address",
1412
+ name: "creditFacade",
1413
+ type: "address",
1414
+ },
1415
+ {
1416
+ internalType: "address",
1417
+ name: "underlying",
1418
+ type: "address",
1419
+ },
1420
+ {
1421
+ internalType: "uint256",
1422
+ name: "debt",
1423
+ type: "uint256",
1424
+ },
1425
+ {
1426
+ internalType: "uint256",
1427
+ name: "cumulativeIndexLastUpdate",
1428
+ type: "uint256",
1429
+ },
1430
+ {
1431
+ internalType: "uint128",
1432
+ name: "cumulativeQuotaInterest",
1433
+ type: "uint128",
1434
+ },
1435
+ {
1436
+ internalType: "uint256",
1437
+ name: "accruedInterest",
1438
+ type: "uint256",
1439
+ },
1440
+ {
1441
+ internalType: "uint256",
1442
+ name: "accruedFees",
1443
+ type: "uint256",
1444
+ },
1445
+ {
1446
+ internalType: "uint256",
1447
+ name: "totalDebtUSD",
1448
+ type: "uint256",
1449
+ },
1450
+ {
1451
+ internalType: "uint256",
1452
+ name: "totalValue",
1453
+ type: "uint256",
1454
+ },
1455
+ {
1456
+ internalType: "uint256",
1457
+ name: "totalValueUSD",
1458
+ type: "uint256",
1459
+ },
1460
+ {
1461
+ internalType: "uint256",
1462
+ name: "twvUSD",
1463
+ type: "uint256",
1464
+ },
1465
+ {
1466
+ internalType: "uint256",
1467
+ name: "enabledTokensMask",
1468
+ type: "uint256",
1469
+ },
1470
+ {
1471
+ internalType: "uint256",
1472
+ name: "healthFactor",
1473
+ type: "uint256",
1474
+ },
1475
+ {
1476
+ internalType: "uint256",
1477
+ name: "baseBorrowRate",
1478
+ type: "uint256",
1479
+ },
1480
+ {
1481
+ internalType: "uint256",
1482
+ name: "aggregatedBorrowRate",
1483
+ type: "uint256",
1484
+ },
1485
+ {
1486
+ components: [
1487
+ {
1488
+ internalType: "address",
1489
+ name: "token",
1490
+ type: "address",
1491
+ },
1492
+ {
1493
+ internalType: "uint256",
1494
+ name: "balance",
1495
+ type: "uint256",
1496
+ },
1497
+ {
1498
+ internalType: "bool",
1499
+ name: "isForbidden",
1500
+ type: "bool",
1501
+ },
1502
+ {
1503
+ internalType: "bool",
1504
+ name: "isEnabled",
1505
+ type: "bool",
1506
+ },
1507
+ {
1508
+ internalType: "bool",
1509
+ name: "isQuoted",
1510
+ type: "bool",
1511
+ },
1512
+ {
1513
+ internalType: "uint256",
1514
+ name: "quota",
1515
+ type: "uint256",
1516
+ },
1517
+ {
1518
+ internalType: "uint16",
1519
+ name: "quotaRate",
1520
+ type: "uint16",
1521
+ },
1522
+ {
1523
+ internalType: "uint256",
1524
+ name: "quotaCumulativeIndexLU",
1525
+ type: "uint256",
1526
+ },
1527
+ ],
1528
+ internalType: "struct TokenBalance[]",
1529
+ name: "balances",
1530
+ type: "tuple[]",
1531
+ },
1532
+ {
1533
+ internalType: "uint64",
1534
+ name: "since",
1535
+ type: "uint64",
1536
+ },
1537
+ {
1538
+ internalType: "uint256",
1539
+ name: "cfVersion",
1540
+ type: "uint256",
1541
+ },
1542
+ {
1543
+ internalType: "uint40",
1544
+ name: "expirationDate",
1545
+ type: "uint40",
1546
+ },
1547
+ {
1548
+ internalType: "address[]",
1549
+ name: "activeBots",
1550
+ type: "address[]",
1551
+ },
1552
+ {
1553
+ internalType: "uint256",
1554
+ name: "maxApprovedBots",
1555
+ type: "uint256",
1556
+ },
1557
+ {
1558
+ components: [
1559
+ {
1560
+ internalType: "uint8",
1561
+ name: "tokenIndex",
1562
+ type: "uint8",
1563
+ },
1564
+ {
1565
+ internalType: "uint40",
1566
+ name: "maturity",
1567
+ type: "uint40",
1568
+ },
1569
+ {
1570
+ internalType: "address",
1571
+ name: "token",
1572
+ type: "address",
1573
+ },
1574
+ {
1575
+ internalType: "uint256",
1576
+ name: "amount",
1577
+ type: "uint256",
1578
+ },
1579
+ ],
1580
+ internalType: "struct ScheduledWithdrawal[2]",
1581
+ name: "schedultedWithdrawals",
1582
+ type: "tuple[2]",
1583
+ },
1584
+ ],
1585
+ internalType: "struct CreditAccountData[]",
1586
+ name: "result",
1587
+ type: "tuple[]",
1588
+ },
1589
+ ],
1590
+ stateMutability: "nonpayable",
1591
+ type: "function",
1592
+ },
1198
1593
  {
1199
1594
  inputs: [
1200
1595
  {
@@ -1222,9 +1617,19 @@ const _abi = [
1222
1617
  name: "dieselToken",
1223
1618
  type: "address",
1224
1619
  },
1620
+ {
1621
+ internalType: "string",
1622
+ name: "symbol",
1623
+ type: "string",
1624
+ },
1625
+ {
1626
+ internalType: "string",
1627
+ name: "name",
1628
+ type: "string",
1629
+ },
1225
1630
  {
1226
1631
  internalType: "uint256",
1227
- name: "linearCumulativeIndex",
1632
+ name: "baseInterestIndex",
1228
1633
  type: "uint256",
1229
1634
  },
1230
1635
  {
@@ -1306,7 +1711,7 @@ const _abi = [
1306
1711
  },
1307
1712
  {
1308
1713
  internalType: "uint256",
1309
- name: "cumulativeIndex_RAY",
1714
+ name: "lastBaseInterestUpdate",
1310
1715
  type: "uint256",
1311
1716
  },
1312
1717
  {
@@ -1319,6 +1724,16 @@ const _abi = [
1319
1724
  name: "version",
1320
1725
  type: "uint256",
1321
1726
  },
1727
+ {
1728
+ internalType: "address",
1729
+ name: "poolQuotaKeeper",
1730
+ type: "address",
1731
+ },
1732
+ {
1733
+ internalType: "address",
1734
+ name: "gauge",
1735
+ type: "address",
1736
+ },
1322
1737
  {
1323
1738
  components: [
1324
1739
  {
@@ -1356,6 +1771,28 @@ const _abi = [
1356
1771
  name: "quotas",
1357
1772
  type: "tuple[]",
1358
1773
  },
1774
+ {
1775
+ components: [
1776
+ {
1777
+ internalType: "address",
1778
+ name: "zapper",
1779
+ type: "address",
1780
+ },
1781
+ {
1782
+ internalType: "address",
1783
+ name: "tokenIn",
1784
+ type: "address",
1785
+ },
1786
+ {
1787
+ internalType: "address",
1788
+ name: "tokenOut",
1789
+ type: "address",
1790
+ },
1791
+ ],
1792
+ internalType: "struct ZapperInfo[]",
1793
+ name: "zappers",
1794
+ type: "tuple[]",
1795
+ },
1359
1796
  {
1360
1797
  components: [
1361
1798
  {
@@ -1398,6 +1835,11 @@ const _abi = [
1398
1835
  name: "R_slope3",
1399
1836
  type: "uint16",
1400
1837
  },
1838
+ {
1839
+ internalType: "bool",
1840
+ name: "isBorrowingMoreU2Forbidden",
1841
+ type: "bool",
1842
+ },
1401
1843
  ],
1402
1844
  internalType: "struct LinearModel",
1403
1845
  name: "lirm",
@@ -1438,9 +1880,19 @@ const _abi = [
1438
1880
  name: "dieselToken",
1439
1881
  type: "address",
1440
1882
  },
1883
+ {
1884
+ internalType: "string",
1885
+ name: "symbol",
1886
+ type: "string",
1887
+ },
1888
+ {
1889
+ internalType: "string",
1890
+ name: "name",
1891
+ type: "string",
1892
+ },
1441
1893
  {
1442
1894
  internalType: "uint256",
1443
- name: "linearCumulativeIndex",
1895
+ name: "baseInterestIndex",
1444
1896
  type: "uint256",
1445
1897
  },
1446
1898
  {
@@ -1522,7 +1974,7 @@ const _abi = [
1522
1974
  },
1523
1975
  {
1524
1976
  internalType: "uint256",
1525
- name: "cumulativeIndex_RAY",
1977
+ name: "lastBaseInterestUpdate",
1526
1978
  type: "uint256",
1527
1979
  },
1528
1980
  {
@@ -1535,6 +1987,16 @@ const _abi = [
1535
1987
  name: "version",
1536
1988
  type: "uint256",
1537
1989
  },
1990
+ {
1991
+ internalType: "address",
1992
+ name: "poolQuotaKeeper",
1993
+ type: "address",
1994
+ },
1995
+ {
1996
+ internalType: "address",
1997
+ name: "gauge",
1998
+ type: "address",
1999
+ },
1538
2000
  {
1539
2001
  components: [
1540
2002
  {
@@ -1572,6 +2034,28 @@ const _abi = [
1572
2034
  name: "quotas",
1573
2035
  type: "tuple[]",
1574
2036
  },
2037
+ {
2038
+ components: [
2039
+ {
2040
+ internalType: "address",
2041
+ name: "zapper",
2042
+ type: "address",
2043
+ },
2044
+ {
2045
+ internalType: "address",
2046
+ name: "tokenIn",
2047
+ type: "address",
2048
+ },
2049
+ {
2050
+ internalType: "address",
2051
+ name: "tokenOut",
2052
+ type: "address",
2053
+ },
2054
+ ],
2055
+ internalType: "struct ZapperInfo[]",
2056
+ name: "zappers",
2057
+ type: "tuple[]",
2058
+ },
1575
2059
  {
1576
2060
  components: [
1577
2061
  {
@@ -1614,6 +2098,11 @@ const _abi = [
1614
2098
  name: "R_slope3",
1615
2099
  type: "uint16",
1616
2100
  },
2101
+ {
2102
+ internalType: "bool",
2103
+ name: "isBorrowingMoreU2Forbidden",
2104
+ type: "bool",
2105
+ },
1617
2106
  ],
1618
2107
  internalType: "struct LinearModel",
1619
2108
  name: "lirm",