@gearbox-protocol/sdk 3.0.0-next.102 → 3.0.0-next.104

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 (343) hide show
  1. package/lib/core/creditManager.d.ts +1 -0
  2. package/lib/core/creditManager.js +5 -0
  3. package/lib/core/strategy.d.ts +5 -7
  4. package/lib/core/strategy.js +4 -6
  5. package/lib/index.d.ts +1 -3
  6. package/lib/index.js +1 -3
  7. package/lib/parsers/ERC20Parser.js +1 -1
  8. package/lib/parsers/aaveV2LendingPoolAdapterParser.d.ts +7 -0
  9. package/lib/parsers/aaveV2LendingPoolAdapterParser.js +21 -0
  10. package/lib/parsers/aaveV2WrappedATokenAdapterParser.d.ts +7 -0
  11. package/lib/parsers/aaveV2WrappedATokenAdapterParser.js +21 -0
  12. package/lib/parsers/abstractParser.d.ts +7 -5
  13. package/lib/parsers/abstractParser.js +3 -0
  14. package/lib/parsers/addressProviderParser.js +1 -1
  15. package/lib/parsers/balancerV2VaultParser.d.ts +7 -0
  16. package/lib/parsers/balancerV2VaultParser.js +34 -0
  17. package/lib/parsers/compoundV2CTokenAdapterParser.d.ts +7 -0
  18. package/lib/parsers/compoundV2CTokenAdapterParser.js +21 -0
  19. package/lib/parsers/convexBaseRewardPoolAdapterParser.js +1 -1
  20. package/lib/parsers/convexBoosterAdapterParser.js +1 -1
  21. package/lib/parsers/convextRewardPoolParser.js +1 -1
  22. package/lib/parsers/creditFacadeParser.js +1 -1
  23. package/lib/parsers/creditManagerParser.js +1 -1
  24. package/lib/parsers/curveAdapterParser.js +1 -1
  25. package/lib/parsers/erc626AdapterParser.d.ts +7 -0
  26. package/lib/parsers/erc626AdapterParser.js +21 -0
  27. package/lib/parsers/lidoAdapterParser.js +1 -1
  28. package/lib/parsers/lidoSTETHParser.js +1 -1
  29. package/lib/parsers/poolParser.js +1 -1
  30. package/lib/parsers/priceOracleParser.js +1 -1
  31. package/lib/parsers/txParser.d.ts +17 -11
  32. package/lib/parsers/txParser.js +36 -5
  33. package/lib/parsers/uniV2AdapterParser.js +1 -1
  34. package/lib/parsers/uniV3AdapterParser.js +1 -1
  35. package/lib/parsers/wstETHAdapterParser.js +1 -1
  36. package/lib/parsers/yearnV2AdapterParser.js +1 -1
  37. package/lib/pathfinder/index.d.ts +4 -0
  38. package/lib/pathfinder/index.js +20 -0
  39. package/lib/pathfinder/utils.d.ts +35 -0
  40. package/lib/pathfinder/utils.js +182 -0
  41. package/lib/types/contracts/index.d.ts +2 -0
  42. package/lib/types/contracts/interfaces/IGasPricer.d.ts +44 -0
  43. package/lib/types/contracts/interfaces/IGasPricer.js +2 -0
  44. package/lib/types/contracts/interfaces/index.d.ts +1 -0
  45. package/lib/types/contracts/interfaces/index.js +2 -0
  46. package/lib/types/factories/AddressProvider__factory.d.ts +111 -111
  47. package/lib/types/factories/AddressProvider__factory.js +119 -119
  48. package/lib/types/factories/Balances.sol/BalanceOps__factory.d.ts +3 -3
  49. package/lib/types/factories/Balances.sol/BalanceOps__factory.js +3 -3
  50. package/lib/types/factories/CalldataExtractor__factory.d.ts +34 -34
  51. package/lib/types/factories/CalldataExtractor__factory.js +37 -37
  52. package/lib/types/factories/Claimable__factory.d.ts +28 -28
  53. package/lib/types/factories/Claimable__factory.js +32 -32
  54. package/lib/types/factories/ERC20__factory.d.ts +89 -89
  55. package/lib/types/factories/ERC20__factory.js +99 -99
  56. package/lib/types/factories/Errors__factory.d.ts +99 -99
  57. package/lib/types/factories/Errors__factory.js +99 -99
  58. package/lib/types/factories/FarmAccounting__factory.d.ts +6 -6
  59. package/lib/types/factories/FarmAccounting__factory.js +6 -6
  60. package/lib/types/factories/IAaveV2_LendingPoolAdapter__factory.d.ts +42 -42
  61. package/lib/types/factories/IAaveV2_LendingPoolAdapter__factory.js +42 -42
  62. package/lib/types/factories/IAaveV2_WrappedATokenAdapter__factory.d.ts +70 -70
  63. package/lib/types/factories/IAaveV2_WrappedATokenAdapter__factory.js +70 -70
  64. package/lib/types/factories/IAdapter__factory.d.ts +15 -15
  65. package/lib/types/factories/IAdapter__factory.js +15 -15
  66. package/lib/types/factories/IAddressProvider.sol/IAddressProviderEvents__factory.d.ts +7 -7
  67. package/lib/types/factories/IAddressProvider.sol/IAddressProviderEvents__factory.js +7 -7
  68. package/lib/types/factories/IAddressProvider.sol/IAddressProvider__factory.d.ts +48 -48
  69. package/lib/types/factories/IAddressProvider.sol/IAddressProvider__factory.js +52 -52
  70. package/lib/types/factories/IAddressProviderV3.sol/IAddressProviderV3Events__factory.d.ts +9 -9
  71. package/lib/types/factories/IAddressProviderV3.sol/IAddressProviderV3Events__factory.js +9 -9
  72. package/lib/types/factories/IAddressProviderV3.sol/IAddressProviderV3__factory.d.ts +37 -37
  73. package/lib/types/factories/IAddressProviderV3.sol/IAddressProviderV3__factory.js +42 -42
  74. package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributorEvents__factory.d.ts +25 -25
  75. package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributorEvents__factory.js +25 -25
  76. package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributor__factory.d.ts +71 -71
  77. package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributor__factory.js +85 -85
  78. package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2VaultGetters__factory.d.ts +19 -19
  79. package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2VaultGetters__factory.js +19 -19
  80. package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2Vault__factory.d.ts +106 -106
  81. package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2Vault__factory.js +106 -106
  82. package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents__factory.d.ts +7 -7
  83. package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents__factory.js +7 -7
  84. package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions__factory.d.ts +2 -2
  85. package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions__factory.js +2 -2
  86. package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter__factory.d.ts +161 -161
  87. package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter__factory.js +166 -166
  88. package/lib/types/factories/IBaseRewardPool__factory.d.ts +114 -114
  89. package/lib/types/factories/IBaseRewardPool__factory.js +114 -114
  90. package/lib/types/factories/IBotListV3.sol/IBotListV3Events__factory.d.ts +38 -38
  91. package/lib/types/factories/IBotListV3.sol/IBotListV3Events__factory.js +43 -43
  92. package/lib/types/factories/IBotListV3.sol/IBotListV3__factory.d.ts +152 -152
  93. package/lib/types/factories/IBotListV3.sol/IBotListV3__factory.js +170 -170
  94. package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter__factory.d.ts +60 -60
  95. package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter__factory.js +63 -63
  96. package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions__factory.d.ts +3 -3
  97. package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions__factory.js +3 -3
  98. package/lib/types/factories/IContractsRegister.sol/IContractsRegisterEvents__factory.d.ts +10 -10
  99. package/lib/types/factories/IContractsRegister.sol/IContractsRegisterEvents__factory.js +10 -10
  100. package/lib/types/factories/IContractsRegister.sol/IContractsRegister__factory.d.ts +51 -51
  101. package/lib/types/factories/IContractsRegister.sol/IContractsRegister__factory.js +57 -57
  102. package/lib/types/factories/IControllerTimelockV3.sol/IControllerTimelockV3Events__factory.d.ts +30 -30
  103. package/lib/types/factories/IControllerTimelockV3.sol/IControllerTimelockV3Events__factory.js +30 -30
  104. package/lib/types/factories/IControllerTimelockV3.sol/IControllerTimelockV3__factory.d.ts +165 -165
  105. package/lib/types/factories/IControllerTimelockV3.sol/IControllerTimelockV3__factory.js +182 -182
  106. package/lib/types/factories/IConvexToken__factory.d.ts +86 -86
  107. package/lib/types/factories/IConvexToken__factory.js +96 -96
  108. package/lib/types/factories/IConvexV1BaseRewardPoolAdapter__factory.d.ts +80 -80
  109. package/lib/types/factories/IConvexV1BaseRewardPoolAdapter__factory.js +80 -80
  110. package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents__factory.d.ts +7 -7
  111. package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents__factory.js +7 -7
  112. package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter__factory.d.ts +62 -62
  113. package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter__factory.js +66 -66
  114. package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2Events__factory.d.ts +121 -121
  115. package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2Events__factory.js +127 -127
  116. package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2Exceptions__factory.d.ts +18 -18
  117. package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2Exceptions__factory.js +18 -18
  118. package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2__factory.d.ts +376 -376
  119. package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2__factory.js +417 -417
  120. package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3Events__factory.d.ts +118 -118
  121. package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3Events__factory.js +127 -127
  122. package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3__factory.d.ts +395 -395
  123. package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3__factory.js +420 -420
  124. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Events__factory.d.ts +107 -107
  125. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Events__factory.js +118 -118
  126. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Exceptions__factory.d.ts +65 -65
  127. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Exceptions__factory.js +65 -65
  128. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Extended__factory.d.ts +23 -23
  129. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Extended__factory.js +23 -23
  130. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2V2__factory.d.ts +5 -5
  131. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2V2__factory.js +5 -5
  132. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2__factory.d.ts +601 -601
  133. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2__factory.js +749 -749
  134. package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.d.ts +72 -72
  135. package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.js +80 -80
  136. package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.d.ts +288 -288
  137. package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.js +397 -397
  138. package/lib/types/factories/ICreditFacadeV3Multicall__factory.d.ts +59 -59
  139. package/lib/types/factories/ICreditFacadeV3Multicall__factory.js +59 -59
  140. package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2Events__factory.d.ts +11 -11
  141. package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2Events__factory.js +12 -12
  142. package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2Exceptions__factory.d.ts +26 -26
  143. package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2Exceptions__factory.js +26 -26
  144. package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2__factory.d.ts +252 -252
  145. package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2__factory.js +272 -272
  146. package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3Events__factory.d.ts +5 -5
  147. package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3Events__factory.js +5 -5
  148. package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3__factory.d.ts +294 -294
  149. package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3__factory.js +297 -297
  150. package/lib/types/factories/ICurvePool_2.sol/ICurvePool2Assets__factory.d.ts +191 -191
  151. package/lib/types/factories/ICurvePool_2.sol/ICurvePool2Assets__factory.js +191 -191
  152. package/lib/types/factories/ICurvePool_3.sol/ICurvePool3Assets__factory.d.ts +191 -191
  153. package/lib/types/factories/ICurvePool_3.sol/ICurvePool3Assets__factory.js +191 -191
  154. package/lib/types/factories/ICurvePool_4.sol/ICurvePool4Assets__factory.d.ts +191 -191
  155. package/lib/types/factories/ICurvePool_4.sol/ICurvePool4Assets__factory.js +191 -191
  156. package/lib/types/factories/ICurvePool__factory.d.ts +159 -159
  157. package/lib/types/factories/ICurvePool__factory.js +159 -159
  158. package/lib/types/factories/ICurveV1Adapter__factory.d.ts +169 -169
  159. package/lib/types/factories/ICurveV1Adapter__factory.js +169 -169
  160. package/lib/types/factories/ICurveV1_2AssetsAdapter__factory.d.ts +187 -187
  161. package/lib/types/factories/ICurveV1_2AssetsAdapter__factory.js +187 -187
  162. package/lib/types/factories/ICurveV1_3AssetsAdapter__factory.d.ts +187 -187
  163. package/lib/types/factories/ICurveV1_3AssetsAdapter__factory.js +187 -187
  164. package/lib/types/factories/ICurveV1_4AssetsAdapter__factory.d.ts +187 -187
  165. package/lib/types/factories/ICurveV1_4AssetsAdapter__factory.js +187 -187
  166. package/lib/types/factories/IDaiLikePermit__factory.d.ts +10 -10
  167. package/lib/types/factories/IDaiLikePermit__factory.js +10 -10
  168. package/lib/types/factories/IDataCompressorV2_10__factory.d.ts +334 -334
  169. package/lib/types/factories/IDataCompressorV2_10__factory.js +334 -334
  170. package/lib/types/factories/IDataCompressorV3_00__factory.d.ts +454 -454
  171. package/lib/types/factories/IDataCompressorV3_00__factory.js +454 -454
  172. package/lib/types/factories/IDegenDistributor.sol/IDegenDistributorEvents__factory.d.ts +14 -14
  173. package/lib/types/factories/IDegenDistributor.sol/IDegenDistributorEvents__factory.js +14 -14
  174. package/lib/types/factories/IDegenDistributor.sol/IDegenDistributor__factory.d.ts +43 -43
  175. package/lib/types/factories/IDegenDistributor.sol/IDegenDistributor__factory.js +51 -51
  176. package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2Events__factory.d.ts +15 -15
  177. package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2Events__factory.js +15 -15
  178. package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2Exceptions__factory.d.ts +8 -8
  179. package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2Exceptions__factory.js +8 -8
  180. package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2__factory.d.ts +180 -180
  181. package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2__factory.js +208 -208
  182. package/lib/types/factories/IERC165__factory.d.ts +4 -4
  183. package/lib/types/factories/IERC165__factory.js +4 -4
  184. package/lib/types/factories/IERC20Metadata__factory.d.ts +76 -76
  185. package/lib/types/factories/IERC20Metadata__factory.js +86 -86
  186. package/lib/types/factories/IERC20Permit__factory.d.ts +16 -16
  187. package/lib/types/factories/IERC20Permit__factory.js +16 -16
  188. package/lib/types/factories/IERC20ZapperDeposits__factory.d.ts +30 -30
  189. package/lib/types/factories/IERC20ZapperDeposits__factory.js +30 -30
  190. package/lib/types/factories/IERC20__factory.d.ts +67 -67
  191. package/lib/types/factories/IERC20__factory.js +77 -77
  192. package/lib/types/factories/IERC4626Adapter__factory.d.ts +60 -60
  193. package/lib/types/factories/IERC4626Adapter__factory.js +60 -60
  194. package/lib/types/factories/IERC4626__factory.d.ts +198 -198
  195. package/lib/types/factories/IERC4626__factory.js +221 -221
  196. package/lib/types/factories/IERC721Metadata__factory.d.ts +114 -114
  197. package/lib/types/factories/IERC721Metadata__factory.js +129 -129
  198. package/lib/types/factories/IERC721__factory.d.ts +104 -104
  199. package/lib/types/factories/IERC721__factory.js +119 -119
  200. package/lib/types/factories/IETHZapperDeposits__factory.d.ts +9 -9
  201. package/lib/types/factories/IETHZapperDeposits__factory.js +9 -9
  202. package/lib/types/factories/IFarmingPool__factory.d.ts +134 -134
  203. package/lib/types/factories/IFarmingPool__factory.js +152 -152
  204. package/lib/types/factories/IGaugeV3.sol/IGaugeV3Events__factory.d.ts +46 -46
  205. package/lib/types/factories/IGaugeV3.sol/IGaugeV3Events__factory.js +50 -50
  206. package/lib/types/factories/IGaugeV3.sol/IGaugeV3__factory.d.ts +172 -172
  207. package/lib/types/factories/IGaugeV3.sol/IGaugeV3__factory.js +200 -200
  208. package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3Events__factory.d.ts +48 -48
  209. package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3Events__factory.js +49 -49
  210. package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3__factory.d.ts +225 -225
  211. package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3__factory.js +253 -253
  212. package/lib/types/factories/IInterestRateModel__factory.d.ts +8 -8
  213. package/lib/types/factories/IInterestRateModel__factory.js +8 -8
  214. package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeedEvents__factory.d.ts +11 -11
  215. package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeedEvents__factory.js +12 -12
  216. package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeedExceptions__factory.d.ts +10 -10
  217. package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeedExceptions__factory.js +10 -10
  218. package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeed__factory.d.ts +107 -107
  219. package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeed__factory.js +119 -119
  220. package/lib/types/factories/ILidoV1Adapter__factory.d.ts +40 -40
  221. package/lib/types/factories/ILidoV1Adapter__factory.js +40 -40
  222. package/lib/types/factories/ILinearInterestRateModelV3__factory.d.ts +25 -25
  223. package/lib/types/factories/ILinearInterestRateModelV3__factory.js +25 -25
  224. package/lib/types/factories/IOffchainOracle__factory.d.ts +11 -11
  225. package/lib/types/factories/IOffchainOracle__factory.js +11 -11
  226. package/lib/types/factories/IPermit2__factory.d.ts +33 -33
  227. package/lib/types/factories/IPermit2__factory.js +33 -33
  228. package/lib/types/factories/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3Events__factory.d.ts +44 -44
  229. package/lib/types/factories/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3Events__factory.js +45 -45
  230. package/lib/types/factories/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3__factory.d.ts +190 -190
  231. package/lib/types/factories/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3__factory.js +216 -216
  232. package/lib/types/factories/IPoolService.sol/IPoolServiceEvents__factory.d.ts +66 -66
  233. package/lib/types/factories/IPoolService.sol/IPoolServiceEvents__factory.js +72 -72
  234. package/lib/types/factories/IPoolService.sol/IPoolService__factory.d.ts +235 -235
  235. package/lib/types/factories/IPoolService.sol/IPoolService__factory.js +286 -286
  236. package/lib/types/factories/IPoolV3.sol/IPoolV3Events__factory.d.ts +65 -65
  237. package/lib/types/factories/IPoolV3.sol/IPoolV3Events__factory.js +68 -68
  238. package/lib/types/factories/IPoolV3.sol/IPoolV3__factory.d.ts +574 -574
  239. package/lib/types/factories/IPoolV3.sol/IPoolV3__factory.js +696 -696
  240. package/lib/types/factories/IPriceFeed.sol/IPriceFeed__factory.d.ts +22 -22
  241. package/lib/types/factories/IPriceFeed.sol/IPriceFeed__factory.js +22 -22
  242. package/lib/types/factories/IPriceFeed.sol/IUpdatablePriceFeed__factory.d.ts +28 -28
  243. package/lib/types/factories/IPriceFeed.sol/IUpdatablePriceFeed__factory.js +28 -28
  244. package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Events__factory.d.ts +6 -6
  245. package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Events__factory.js +7 -7
  246. package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Exceptions__factory.d.ts +6 -6
  247. package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Exceptions__factory.js +6 -6
  248. package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Ext__factory.d.ts +71 -71
  249. package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Ext__factory.js +78 -78
  250. package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2__factory.d.ts +68 -68
  251. package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2__factory.js +75 -75
  252. package/lib/types/factories/IPriceOracleBase__factory.d.ts +27 -27
  253. package/lib/types/factories/IPriceOracleBase__factory.js +27 -27
  254. package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3Events__factory.d.ts +28 -28
  255. package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3Events__factory.js +31 -31
  256. package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3__factory.d.ts +139 -139
  257. package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3__factory.js +156 -156
  258. package/lib/types/factories/IRouterV3__factory.d.ts +178 -178
  259. package/lib/types/factories/IRouterV3__factory.js +191 -191
  260. package/lib/types/factories/IRouter__factory.d.ts +159 -159
  261. package/lib/types/factories/IRouter__factory.js +172 -172
  262. package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2AdapterEvents__factory.d.ts +8 -8
  263. package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2AdapterEvents__factory.js +9 -9
  264. package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2AdapterExceptions__factory.d.ts +2 -2
  265. package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2AdapterExceptions__factory.js +2 -2
  266. package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2Adapter__factory.d.ts +78 -78
  267. package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2Adapter__factory.js +84 -84
  268. package/lib/types/factories/IUniswapV3.sol/ISwapRouter__factory.d.ts +50 -50
  269. package/lib/types/factories/IUniswapV3.sol/ISwapRouter__factory.js +50 -50
  270. package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3AdapterEvents__factory.d.ts +10 -10
  271. package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3AdapterEvents__factory.js +11 -11
  272. package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3AdapterExceptions__factory.d.ts +2 -2
  273. package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3AdapterExceptions__factory.js +2 -2
  274. package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3Adapter__factory.d.ts +138 -138
  275. package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3Adapter__factory.js +145 -145
  276. package/lib/types/factories/IVersion__factory.d.ts +3 -3
  277. package/lib/types/factories/IVersion__factory.js +3 -3
  278. package/lib/types/factories/IVotingContractV3__factory.d.ts +10 -10
  279. package/lib/types/factories/IVotingContractV3__factory.js +10 -10
  280. package/lib/types/factories/IWETHGateway__factory.d.ts +14 -14
  281. package/lib/types/factories/IWETHGateway__factory.js +14 -14
  282. package/lib/types/factories/IWETH__factory.d.ts +102 -102
  283. package/lib/types/factories/IWETH__factory.js +120 -120
  284. package/lib/types/factories/IYVault__factory.d.ts +112 -112
  285. package/lib/types/factories/IYVault__factory.js +122 -122
  286. package/lib/types/factories/IYearnV2Adapter__factory.d.ts +63 -63
  287. package/lib/types/factories/IYearnV2Adapter__factory.js +63 -63
  288. package/lib/types/factories/IZapperRegister__factory.d.ts +20 -20
  289. package/lib/types/factories/IZapperRegister__factory.js +22 -22
  290. package/lib/types/factories/IZapper__factory.d.ts +34 -34
  291. package/lib/types/factories/IZapper__factory.js +34 -34
  292. package/lib/types/factories/IstETH.sol/IstETHGetters__factory.d.ts +97 -97
  293. package/lib/types/factories/IstETH.sol/IstETHGetters__factory.js +107 -107
  294. package/lib/types/factories/IstETH.sol/IstETH__factory.d.ts +101 -101
  295. package/lib/types/factories/IstETH.sol/IstETH__factory.js +111 -111
  296. package/lib/types/factories/IwstETH.sol/IwstETHGetters__factory.d.ts +93 -93
  297. package/lib/types/factories/IwstETH.sol/IwstETHGetters__factory.js +103 -103
  298. package/lib/types/factories/IwstETH.sol/IwstETH__factory.d.ts +101 -101
  299. package/lib/types/factories/IwstETH.sol/IwstETH__factory.js +111 -111
  300. package/lib/types/factories/IwstETHGateway.sol/IwstETHGateWay__factory.d.ts +14 -14
  301. package/lib/types/factories/IwstETHGateway.sol/IwstETHGateWay__factory.js +15 -15
  302. package/lib/types/factories/IwstETHV1Adapter__factory.d.ts +44 -44
  303. package/lib/types/factories/IwstETHV1Adapter__factory.js +44 -44
  304. package/lib/types/factories/NumericArrayLib__factory.d.ts +2 -2
  305. package/lib/types/factories/NumericArrayLib__factory.js +2 -2
  306. package/lib/types/factories/Ownable__factory.d.ts +23 -23
  307. package/lib/types/factories/Ownable__factory.js +27 -27
  308. package/lib/types/factories/RedstoneConstants__factory.d.ts +19 -19
  309. package/lib/types/factories/RedstoneConstants__factory.js +19 -19
  310. package/lib/types/factories/RedstoneConsumerBase__factory.d.ts +101 -101
  311. package/lib/types/factories/RedstoneConsumerBase__factory.js +123 -123
  312. package/lib/types/factories/RedstoneConsumerNumericBase__factory.d.ts +101 -101
  313. package/lib/types/factories/RedstoneConsumerNumericBase__factory.js +123 -123
  314. package/lib/types/factories/RedstoneDefaultsLib__factory.d.ts +8 -8
  315. package/lib/types/factories/RedstoneDefaultsLib__factory.js +8 -8
  316. package/lib/types/factories/RedstonePriceFeed.sol/IRedstonePriceFeedEvents__factory.d.ts +5 -5
  317. package/lib/types/factories/RedstonePriceFeed.sol/IRedstonePriceFeedEvents__factory.js +5 -5
  318. package/lib/types/factories/RedstonePriceFeed.sol/IRedstonePriceFeedExceptions__factory.d.ts +10 -10
  319. package/lib/types/factories/RedstonePriceFeed.sol/IRedstonePriceFeedExceptions__factory.js +10 -10
  320. package/lib/types/factories/RedstonePriceFeed.sol/RedstonePriceFeed__factory.d.ts +193 -193
  321. package/lib/types/factories/RedstonePriceFeed.sol/RedstonePriceFeed__factory.js +220 -220
  322. package/lib/types/factories/SafeERC20__factory.d.ts +14 -14
  323. package/lib/types/factories/SafeERC20__factory.js +14 -14
  324. package/lib/types/factories/contracts/index.d.ts +1 -0
  325. package/lib/types/factories/contracts/index.js +30 -0
  326. package/lib/types/factories/contracts/interfaces/IGasPricer__factory.d.ts +22 -0
  327. package/lib/types/factories/contracts/interfaces/index.d.ts +1 -0
  328. package/lib/types/factories/contracts/interfaces/index.js +8 -0
  329. package/lib/types/factories/index.d.ts +2 -1
  330. package/lib/types/factories/index.js +4 -4
  331. package/lib/types/factories/{IGasPricer__factory.d.ts → interfaces/IGasPricer__factory.d.ts} +5 -5
  332. package/lib/types/factories/interfaces/IGasPricer__factory.js +38 -0
  333. package/lib/types/factories/interfaces/index.d.ts +1 -0
  334. package/lib/types/factories/interfaces/index.js +8 -0
  335. package/lib/types/index.d.ts +18 -14
  336. package/lib/types/index.js +25 -25
  337. package/lib/types/{IGasPricer.d.ts → interfaces/IGasPricer.d.ts} +1 -1
  338. package/lib/types/interfaces/IGasPricer.js +2 -0
  339. package/lib/types/interfaces/index.d.ts +1 -0
  340. package/lib/types/interfaces/index.js +2 -0
  341. package/package.json +4 -4
  342. package/lib/types/{IGasPricer.js → contracts/index.js} +0 -0
  343. package/lib/types/factories/{IGasPricer__factory.js → contracts/interfaces/IGasPricer__factory.js} +4 -4
@@ -7,700 +7,700 @@ exports.ICreditFacadeV3__factory = void 0;
7
7
  const ethers_1 = require("ethers");
8
8
  const _abi = [
9
9
  {
10
- anonymous: false,
11
- inputs: [
12
- {
13
- indexed: true,
14
- internalType: "address",
15
- name: "creditAccount",
16
- type: "address",
17
- },
18
- {
19
- indexed: true,
20
- internalType: "address",
21
- name: "token",
22
- type: "address",
23
- },
24
- {
25
- indexed: false,
26
- internalType: "uint256",
27
- name: "amount",
28
- type: "uint256",
29
- },
30
- ],
31
- name: "AddCollateral",
32
- type: "event",
33
- },
34
- {
35
- anonymous: false,
36
- inputs: [
37
- {
38
- indexed: true,
39
- internalType: "address",
40
- name: "creditAccount",
41
- type: "address",
42
- },
43
- {
44
- indexed: true,
45
- internalType: "address",
46
- name: "borrower",
47
- type: "address",
48
- },
49
- ],
50
- name: "CloseCreditAccount",
51
- type: "event",
52
- },
53
- {
54
- anonymous: false,
55
- inputs: [
56
- {
57
- indexed: true,
58
- internalType: "address",
59
- name: "creditAccount",
60
- type: "address",
61
- },
62
- {
63
- indexed: false,
64
- internalType: "uint256",
65
- name: "amount",
66
- type: "uint256",
67
- },
68
- ],
69
- name: "DecreaseDebt",
70
- type: "event",
71
- },
72
- {
73
- anonymous: false,
74
- inputs: [
75
- {
76
- indexed: true,
77
- internalType: "address",
78
- name: "creditAccount",
79
- type: "address",
80
- },
81
- {
82
- indexed: true,
83
- internalType: "address",
84
- name: "targetContract",
85
- type: "address",
86
- },
87
- ],
88
- name: "Execute",
89
- type: "event",
90
- },
91
- {
92
- anonymous: false,
93
- inputs: [],
94
- name: "FinishMultiCall",
95
- type: "event",
96
- },
97
- {
98
- anonymous: false,
99
- inputs: [
100
- {
101
- indexed: true,
102
- internalType: "address",
103
- name: "creditAccount",
104
- type: "address",
105
- },
106
- {
107
- indexed: false,
108
- internalType: "uint256",
109
- name: "amount",
110
- type: "uint256",
111
- },
112
- ],
113
- name: "IncreaseDebt",
114
- type: "event",
115
- },
116
- {
117
- anonymous: false,
118
- inputs: [
119
- {
120
- indexed: true,
121
- internalType: "address",
122
- name: "creditAccount",
123
- type: "address",
124
- },
125
- {
126
- indexed: true,
127
- internalType: "address",
128
- name: "liquidator",
129
- type: "address",
130
- },
131
- {
132
- indexed: false,
133
- internalType: "address",
134
- name: "to",
135
- type: "address",
136
- },
137
- {
138
- indexed: false,
139
- internalType: "uint256",
140
- name: "remainingFunds",
141
- type: "uint256",
142
- },
143
- ],
144
- name: "LiquidateCreditAccount",
145
- type: "event",
146
- },
147
- {
148
- anonymous: false,
149
- inputs: [
150
- {
151
- indexed: true,
152
- internalType: "address",
153
- name: "creditAccount",
154
- type: "address",
155
- },
156
- {
157
- indexed: true,
158
- internalType: "address",
159
- name: "onBehalfOf",
160
- type: "address",
161
- },
162
- {
163
- indexed: true,
164
- internalType: "address",
165
- name: "caller",
166
- type: "address",
167
- },
168
- {
169
- indexed: false,
170
- internalType: "uint256",
171
- name: "referralCode",
172
- type: "uint256",
173
- },
174
- ],
175
- name: "OpenCreditAccount",
176
- type: "event",
177
- },
178
- {
179
- anonymous: false,
180
- inputs: [
181
- {
182
- indexed: true,
183
- internalType: "address",
184
- name: "creditAccount",
185
- type: "address",
186
- },
187
- {
188
- indexed: true,
189
- internalType: "address",
190
- name: "caller",
191
- type: "address",
192
- },
193
- ],
194
- name: "StartMultiCall",
195
- type: "event",
196
- },
197
- {
198
- anonymous: false,
199
- inputs: [
200
- {
201
- indexed: true,
202
- internalType: "address",
203
- name: "creditAccount",
204
- type: "address",
205
- },
206
- {
207
- indexed: true,
208
- internalType: "address",
209
- name: "token",
210
- type: "address",
211
- },
212
- {
213
- indexed: false,
214
- internalType: "uint256",
215
- name: "amount",
216
- type: "uint256",
217
- },
218
- {
219
- indexed: false,
220
- internalType: "address",
221
- name: "to",
222
- type: "address",
223
- },
224
- ],
225
- name: "WithdrawCollateral",
226
- type: "event",
227
- },
228
- {
229
- inputs: [],
10
+ type: "function",
230
11
  name: "botList",
12
+ inputs: [],
231
13
  outputs: [
232
14
  {
233
- internalType: "address",
234
15
  name: "",
235
16
  type: "address",
17
+ internalType: "address",
236
18
  },
237
19
  ],
238
20
  stateMutability: "view",
239
- type: "function",
240
21
  },
241
22
  {
23
+ type: "function",
24
+ name: "botMulticall",
242
25
  inputs: [
243
26
  {
244
- internalType: "address",
245
27
  name: "creditAccount",
246
28
  type: "address",
29
+ internalType: "address",
247
30
  },
248
31
  {
32
+ name: "calls",
33
+ type: "tuple[]",
34
+ internalType: "struct MultiCall[]",
249
35
  components: [
250
36
  {
251
- internalType: "address",
252
37
  name: "target",
253
38
  type: "address",
39
+ internalType: "address",
254
40
  },
255
41
  {
256
- internalType: "bytes",
257
42
  name: "callData",
258
43
  type: "bytes",
44
+ internalType: "bytes",
259
45
  },
260
46
  ],
261
- internalType: "struct MultiCall[]",
262
- name: "calls",
263
- type: "tuple[]",
264
47
  },
265
48
  ],
266
- name: "botMulticall",
267
49
  outputs: [],
268
50
  stateMutability: "nonpayable",
269
- type: "function",
270
51
  },
271
52
  {
53
+ type: "function",
54
+ name: "canLiquidateWhilePaused",
272
55
  inputs: [
273
56
  {
274
- internalType: "address",
275
57
  name: "",
276
58
  type: "address",
59
+ internalType: "address",
277
60
  },
278
61
  ],
279
- name: "canLiquidateWhilePaused",
280
62
  outputs: [
281
63
  {
282
- internalType: "bool",
283
64
  name: "",
284
65
  type: "bool",
66
+ internalType: "bool",
285
67
  },
286
68
  ],
287
69
  stateMutability: "view",
288
- type: "function",
289
70
  },
290
71
  {
72
+ type: "function",
73
+ name: "closeCreditAccount",
291
74
  inputs: [
292
75
  {
293
- internalType: "address",
294
76
  name: "creditAccount",
295
77
  type: "address",
78
+ internalType: "address",
296
79
  },
297
80
  {
81
+ name: "calls",
82
+ type: "tuple[]",
83
+ internalType: "struct MultiCall[]",
298
84
  components: [
299
85
  {
300
- internalType: "address",
301
86
  name: "target",
302
87
  type: "address",
88
+ internalType: "address",
303
89
  },
304
90
  {
305
- internalType: "bytes",
306
91
  name: "callData",
307
92
  type: "bytes",
93
+ internalType: "bytes",
308
94
  },
309
95
  ],
310
- internalType: "struct MultiCall[]",
311
- name: "calls",
312
- type: "tuple[]",
313
96
  },
314
97
  ],
315
- name: "closeCreditAccount",
316
98
  outputs: [],
317
99
  stateMutability: "payable",
318
- type: "function",
319
100
  },
320
101
  {
321
- inputs: [],
102
+ type: "function",
322
103
  name: "creditManager",
104
+ inputs: [],
323
105
  outputs: [
324
106
  {
325
- internalType: "address",
326
107
  name: "",
327
108
  type: "address",
109
+ internalType: "address",
328
110
  },
329
111
  ],
330
112
  stateMutability: "view",
331
- type: "function",
332
113
  },
333
114
  {
334
- inputs: [],
115
+ type: "function",
335
116
  name: "debtLimits",
117
+ inputs: [],
336
118
  outputs: [
337
119
  {
338
- internalType: "uint128",
339
120
  name: "minDebt",
340
121
  type: "uint128",
122
+ internalType: "uint128",
341
123
  },
342
124
  {
343
- internalType: "uint128",
344
125
  name: "maxDebt",
345
126
  type: "uint128",
127
+ internalType: "uint128",
346
128
  },
347
129
  ],
348
130
  stateMutability: "view",
349
- type: "function",
350
131
  },
351
132
  {
352
- inputs: [],
133
+ type: "function",
353
134
  name: "degenNFT",
135
+ inputs: [],
354
136
  outputs: [
355
137
  {
356
- internalType: "address",
357
138
  name: "",
358
139
  type: "address",
140
+ internalType: "address",
359
141
  },
360
142
  ],
361
143
  stateMutability: "view",
362
- type: "function",
363
144
  },
364
145
  {
365
- inputs: [],
146
+ type: "function",
366
147
  name: "expirable",
148
+ inputs: [],
367
149
  outputs: [
368
150
  {
369
- internalType: "bool",
370
151
  name: "",
371
152
  type: "bool",
153
+ internalType: "bool",
372
154
  },
373
155
  ],
374
156
  stateMutability: "view",
375
- type: "function",
376
157
  },
377
158
  {
378
- inputs: [],
159
+ type: "function",
379
160
  name: "expirationDate",
161
+ inputs: [],
380
162
  outputs: [
381
163
  {
382
- internalType: "uint40",
383
164
  name: "",
384
165
  type: "uint40",
166
+ internalType: "uint40",
385
167
  },
386
168
  ],
387
169
  stateMutability: "view",
388
- type: "function",
389
170
  },
390
171
  {
391
- inputs: [],
172
+ type: "function",
392
173
  name: "forbiddenTokenMask",
174
+ inputs: [],
393
175
  outputs: [
394
176
  {
395
- internalType: "uint256",
396
177
  name: "",
397
178
  type: "uint256",
179
+ internalType: "uint256",
398
180
  },
399
181
  ],
400
182
  stateMutability: "view",
401
- type: "function",
402
183
  },
403
184
  {
185
+ type: "function",
186
+ name: "liquidateCreditAccount",
404
187
  inputs: [
405
188
  {
406
- internalType: "address",
407
189
  name: "creditAccount",
408
190
  type: "address",
191
+ internalType: "address",
409
192
  },
410
193
  {
411
- internalType: "address",
412
194
  name: "to",
413
195
  type: "address",
196
+ internalType: "address",
414
197
  },
415
198
  {
199
+ name: "calls",
200
+ type: "tuple[]",
201
+ internalType: "struct MultiCall[]",
416
202
  components: [
417
203
  {
418
- internalType: "address",
419
204
  name: "target",
420
205
  type: "address",
206
+ internalType: "address",
421
207
  },
422
208
  {
423
- internalType: "bytes",
424
209
  name: "callData",
425
210
  type: "bytes",
211
+ internalType: "bytes",
426
212
  },
427
213
  ],
428
- internalType: "struct MultiCall[]",
429
- name: "calls",
430
- type: "tuple[]",
431
214
  },
432
215
  ],
433
- name: "liquidateCreditAccount",
434
216
  outputs: [],
435
217
  stateMutability: "nonpayable",
436
- type: "function",
437
218
  },
438
219
  {
439
- inputs: [],
220
+ type: "function",
440
221
  name: "lossParams",
222
+ inputs: [],
441
223
  outputs: [
442
224
  {
443
- internalType: "uint128",
444
225
  name: "currentCumulativeLoss",
445
226
  type: "uint128",
227
+ internalType: "uint128",
446
228
  },
447
229
  {
448
- internalType: "uint128",
449
230
  name: "maxCumulativeLoss",
450
231
  type: "uint128",
232
+ internalType: "uint128",
451
233
  },
452
234
  ],
453
235
  stateMutability: "view",
454
- type: "function",
455
236
  },
456
237
  {
457
- inputs: [],
238
+ type: "function",
458
239
  name: "maxDebtPerBlockMultiplier",
240
+ inputs: [],
459
241
  outputs: [
460
242
  {
461
- internalType: "uint8",
462
243
  name: "",
463
244
  type: "uint8",
245
+ internalType: "uint8",
464
246
  },
465
247
  ],
466
248
  stateMutability: "view",
467
- type: "function",
468
249
  },
469
250
  {
470
- inputs: [],
251
+ type: "function",
471
252
  name: "maxQuotaMultiplier",
253
+ inputs: [],
472
254
  outputs: [
473
255
  {
474
- internalType: "uint256",
475
256
  name: "",
476
257
  type: "uint256",
258
+ internalType: "uint256",
477
259
  },
478
260
  ],
479
261
  stateMutability: "view",
480
- type: "function",
481
262
  },
482
263
  {
264
+ type: "function",
265
+ name: "multicall",
483
266
  inputs: [
484
267
  {
485
- internalType: "address",
486
268
  name: "creditAccount",
487
269
  type: "address",
270
+ internalType: "address",
488
271
  },
489
272
  {
273
+ name: "calls",
274
+ type: "tuple[]",
275
+ internalType: "struct MultiCall[]",
490
276
  components: [
491
277
  {
492
- internalType: "address",
493
278
  name: "target",
494
279
  type: "address",
280
+ internalType: "address",
495
281
  },
496
282
  {
497
- internalType: "bytes",
498
283
  name: "callData",
499
284
  type: "bytes",
285
+ internalType: "bytes",
500
286
  },
501
287
  ],
502
- internalType: "struct MultiCall[]",
288
+ },
289
+ ],
290
+ outputs: [],
291
+ stateMutability: "payable",
292
+ },
293
+ {
294
+ type: "function",
295
+ name: "openCreditAccount",
296
+ inputs: [
297
+ {
298
+ name: "onBehalfOf",
299
+ type: "address",
300
+ internalType: "address",
301
+ },
302
+ {
503
303
  name: "calls",
504
304
  type: "tuple[]",
305
+ internalType: "struct MultiCall[]",
306
+ components: [
307
+ {
308
+ name: "target",
309
+ type: "address",
310
+ internalType: "address",
311
+ },
312
+ {
313
+ name: "callData",
314
+ type: "bytes",
315
+ internalType: "bytes",
316
+ },
317
+ ],
318
+ },
319
+ {
320
+ name: "referralCode",
321
+ type: "uint256",
322
+ internalType: "uint256",
323
+ },
324
+ ],
325
+ outputs: [
326
+ {
327
+ name: "creditAccount",
328
+ type: "address",
329
+ internalType: "address",
330
+ },
331
+ ],
332
+ stateMutability: "payable",
333
+ },
334
+ {
335
+ type: "function",
336
+ name: "setBotList",
337
+ inputs: [
338
+ {
339
+ name: "newBotList",
340
+ type: "address",
341
+ internalType: "address",
342
+ },
343
+ ],
344
+ outputs: [],
345
+ stateMutability: "nonpayable",
346
+ },
347
+ {
348
+ type: "function",
349
+ name: "setBotPermissions",
350
+ inputs: [
351
+ {
352
+ name: "creditAccount",
353
+ type: "address",
354
+ internalType: "address",
355
+ },
356
+ {
357
+ name: "bot",
358
+ type: "address",
359
+ internalType: "address",
360
+ },
361
+ {
362
+ name: "permissions",
363
+ type: "uint192",
364
+ internalType: "uint192",
365
+ },
366
+ ],
367
+ outputs: [],
368
+ stateMutability: "nonpayable",
369
+ },
370
+ {
371
+ type: "function",
372
+ name: "setCumulativeLossParams",
373
+ inputs: [
374
+ {
375
+ name: "newMaxCumulativeLoss",
376
+ type: "uint128",
377
+ internalType: "uint128",
378
+ },
379
+ {
380
+ name: "resetCumulativeLoss",
381
+ type: "bool",
382
+ internalType: "bool",
383
+ },
384
+ ],
385
+ outputs: [],
386
+ stateMutability: "nonpayable",
387
+ },
388
+ {
389
+ type: "function",
390
+ name: "setDebtLimits",
391
+ inputs: [
392
+ {
393
+ name: "newMinDebt",
394
+ type: "uint128",
395
+ internalType: "uint128",
396
+ },
397
+ {
398
+ name: "newMaxDebt",
399
+ type: "uint128",
400
+ internalType: "uint128",
401
+ },
402
+ {
403
+ name: "newMaxDebtPerBlockMultiplier",
404
+ type: "uint8",
405
+ internalType: "uint8",
406
+ },
407
+ ],
408
+ outputs: [],
409
+ stateMutability: "nonpayable",
410
+ },
411
+ {
412
+ type: "function",
413
+ name: "setEmergencyLiquidator",
414
+ inputs: [
415
+ {
416
+ name: "liquidator",
417
+ type: "address",
418
+ internalType: "address",
419
+ },
420
+ {
421
+ name: "allowance",
422
+ type: "uint8",
423
+ internalType: "enum AllowanceAction",
424
+ },
425
+ ],
426
+ outputs: [],
427
+ stateMutability: "nonpayable",
428
+ },
429
+ {
430
+ type: "function",
431
+ name: "setExpirationDate",
432
+ inputs: [
433
+ {
434
+ name: "newExpirationDate",
435
+ type: "uint40",
436
+ internalType: "uint40",
437
+ },
438
+ ],
439
+ outputs: [],
440
+ stateMutability: "nonpayable",
441
+ },
442
+ {
443
+ type: "function",
444
+ name: "setTokenAllowance",
445
+ inputs: [
446
+ {
447
+ name: "token",
448
+ type: "address",
449
+ internalType: "address",
450
+ },
451
+ {
452
+ name: "allowance",
453
+ type: "uint8",
454
+ internalType: "enum AllowanceAction",
455
+ },
456
+ ],
457
+ outputs: [],
458
+ stateMutability: "nonpayable",
459
+ },
460
+ {
461
+ type: "function",
462
+ name: "version",
463
+ inputs: [],
464
+ outputs: [
465
+ {
466
+ name: "",
467
+ type: "uint256",
468
+ internalType: "uint256",
469
+ },
470
+ ],
471
+ stateMutability: "view",
472
+ },
473
+ {
474
+ type: "function",
475
+ name: "weth",
476
+ inputs: [],
477
+ outputs: [
478
+ {
479
+ name: "",
480
+ type: "address",
481
+ internalType: "address",
505
482
  },
506
483
  ],
507
- name: "multicall",
508
- outputs: [],
509
- stateMutability: "payable",
510
- type: "function",
484
+ stateMutability: "view",
511
485
  },
512
486
  {
487
+ type: "event",
488
+ name: "AddCollateral",
513
489
  inputs: [
514
490
  {
515
- internalType: "address",
516
- name: "onBehalfOf",
491
+ name: "creditAccount",
517
492
  type: "address",
493
+ indexed: true,
494
+ internalType: "address",
518
495
  },
519
496
  {
520
- components: [
521
- {
522
- internalType: "address",
523
- name: "target",
524
- type: "address",
525
- },
526
- {
527
- internalType: "bytes",
528
- name: "callData",
529
- type: "bytes",
530
- },
531
- ],
532
- internalType: "struct MultiCall[]",
533
- name: "calls",
534
- type: "tuple[]",
497
+ name: "token",
498
+ type: "address",
499
+ indexed: true,
500
+ internalType: "address",
535
501
  },
536
502
  {
537
- internalType: "uint256",
538
- name: "referralCode",
503
+ name: "amount",
539
504
  type: "uint256",
505
+ indexed: false,
506
+ internalType: "uint256",
540
507
  },
541
508
  ],
542
- name: "openCreditAccount",
543
- outputs: [
509
+ anonymous: false,
510
+ },
511
+ {
512
+ type: "event",
513
+ name: "CloseCreditAccount",
514
+ inputs: [
544
515
  {
545
- internalType: "address",
546
516
  name: "creditAccount",
547
517
  type: "address",
518
+ indexed: true,
519
+ internalType: "address",
520
+ },
521
+ {
522
+ name: "borrower",
523
+ type: "address",
524
+ indexed: true,
525
+ internalType: "address",
548
526
  },
549
527
  ],
550
- stateMutability: "payable",
551
- type: "function",
528
+ anonymous: false,
552
529
  },
553
530
  {
531
+ type: "event",
532
+ name: "DecreaseDebt",
554
533
  inputs: [
555
534
  {
556
- internalType: "address",
557
- name: "newBotList",
535
+ name: "creditAccount",
558
536
  type: "address",
537
+ indexed: true,
538
+ internalType: "address",
539
+ },
540
+ {
541
+ name: "amount",
542
+ type: "uint256",
543
+ indexed: false,
544
+ internalType: "uint256",
559
545
  },
560
546
  ],
561
- name: "setBotList",
562
- outputs: [],
563
- stateMutability: "nonpayable",
564
- type: "function",
547
+ anonymous: false,
565
548
  },
566
549
  {
550
+ type: "event",
551
+ name: "Execute",
567
552
  inputs: [
568
553
  {
569
- internalType: "address",
570
554
  name: "creditAccount",
571
555
  type: "address",
572
- },
573
- {
556
+ indexed: true,
574
557
  internalType: "address",
575
- name: "bot",
576
- type: "address",
577
558
  },
578
559
  {
579
- internalType: "uint192",
580
- name: "permissions",
581
- type: "uint192",
560
+ name: "targetContract",
561
+ type: "address",
562
+ indexed: true,
563
+ internalType: "address",
582
564
  },
583
565
  ],
584
- name: "setBotPermissions",
585
- outputs: [],
586
- stateMutability: "nonpayable",
587
- type: "function",
566
+ anonymous: false,
567
+ },
568
+ {
569
+ type: "event",
570
+ name: "FinishMultiCall",
571
+ inputs: [],
572
+ anonymous: false,
588
573
  },
589
574
  {
575
+ type: "event",
576
+ name: "IncreaseDebt",
590
577
  inputs: [
591
578
  {
592
- internalType: "uint128",
593
- name: "newMaxCumulativeLoss",
594
- type: "uint128",
579
+ name: "creditAccount",
580
+ type: "address",
581
+ indexed: true,
582
+ internalType: "address",
595
583
  },
596
584
  {
597
- internalType: "bool",
598
- name: "resetCumulativeLoss",
599
- type: "bool",
585
+ name: "amount",
586
+ type: "uint256",
587
+ indexed: false,
588
+ internalType: "uint256",
600
589
  },
601
590
  ],
602
- name: "setCumulativeLossParams",
603
- outputs: [],
604
- stateMutability: "nonpayable",
605
- type: "function",
591
+ anonymous: false,
606
592
  },
607
593
  {
594
+ type: "event",
595
+ name: "LiquidateCreditAccount",
608
596
  inputs: [
609
597
  {
610
- internalType: "uint128",
611
- name: "newMinDebt",
612
- type: "uint128",
598
+ name: "creditAccount",
599
+ type: "address",
600
+ indexed: true,
601
+ internalType: "address",
613
602
  },
614
603
  {
615
- internalType: "uint128",
616
- name: "newMaxDebt",
617
- type: "uint128",
604
+ name: "liquidator",
605
+ type: "address",
606
+ indexed: true,
607
+ internalType: "address",
618
608
  },
619
609
  {
620
- internalType: "uint8",
621
- name: "newMaxDebtPerBlockMultiplier",
622
- type: "uint8",
610
+ name: "to",
611
+ type: "address",
612
+ indexed: false,
613
+ internalType: "address",
614
+ },
615
+ {
616
+ name: "remainingFunds",
617
+ type: "uint256",
618
+ indexed: false,
619
+ internalType: "uint256",
623
620
  },
624
621
  ],
625
- name: "setDebtLimits",
626
- outputs: [],
627
- stateMutability: "nonpayable",
628
- type: "function",
622
+ anonymous: false,
629
623
  },
630
624
  {
625
+ type: "event",
626
+ name: "OpenCreditAccount",
631
627
  inputs: [
632
628
  {
629
+ name: "creditAccount",
630
+ type: "address",
631
+ indexed: true,
633
632
  internalType: "address",
634
- name: "liquidator",
633
+ },
634
+ {
635
+ name: "onBehalfOf",
635
636
  type: "address",
637
+ indexed: true,
638
+ internalType: "address",
636
639
  },
637
640
  {
638
- internalType: "enum AllowanceAction",
639
- name: "allowance",
640
- type: "uint8",
641
+ name: "caller",
642
+ type: "address",
643
+ indexed: true,
644
+ internalType: "address",
645
+ },
646
+ {
647
+ name: "referralCode",
648
+ type: "uint256",
649
+ indexed: false,
650
+ internalType: "uint256",
641
651
  },
642
652
  ],
643
- name: "setEmergencyLiquidator",
644
- outputs: [],
645
- stateMutability: "nonpayable",
646
- type: "function",
653
+ anonymous: false,
647
654
  },
648
655
  {
656
+ type: "event",
657
+ name: "StartMultiCall",
649
658
  inputs: [
650
659
  {
651
- internalType: "uint40",
652
- name: "newExpirationDate",
653
- type: "uint40",
660
+ name: "creditAccount",
661
+ type: "address",
662
+ indexed: true,
663
+ internalType: "address",
664
+ },
665
+ {
666
+ name: "caller",
667
+ type: "address",
668
+ indexed: true,
669
+ internalType: "address",
654
670
  },
655
671
  ],
656
- name: "setExpirationDate",
657
- outputs: [],
658
- stateMutability: "nonpayable",
659
- type: "function",
672
+ anonymous: false,
660
673
  },
661
674
  {
675
+ type: "event",
676
+ name: "WithdrawCollateral",
662
677
  inputs: [
663
678
  {
664
- internalType: "address",
665
- name: "token",
679
+ name: "creditAccount",
666
680
  type: "address",
681
+ indexed: true,
682
+ internalType: "address",
667
683
  },
668
684
  {
669
- internalType: "enum AllowanceAction",
670
- name: "allowance",
671
- type: "uint8",
685
+ name: "token",
686
+ type: "address",
687
+ indexed: true,
688
+ internalType: "address",
672
689
  },
673
- ],
674
- name: "setTokenAllowance",
675
- outputs: [],
676
- stateMutability: "nonpayable",
677
- type: "function",
678
- },
679
- {
680
- inputs: [],
681
- name: "version",
682
- outputs: [
683
690
  {
684
- internalType: "uint256",
685
- name: "",
691
+ name: "amount",
686
692
  type: "uint256",
693
+ indexed: false,
694
+ internalType: "uint256",
687
695
  },
688
- ],
689
- stateMutability: "view",
690
- type: "function",
691
- },
692
- {
693
- inputs: [],
694
- name: "weth",
695
- outputs: [
696
696
  {
697
- internalType: "address",
698
- name: "",
697
+ name: "to",
699
698
  type: "address",
699
+ indexed: false,
700
+ internalType: "address",
700
701
  },
701
702
  ],
702
- stateMutability: "view",
703
- type: "function",
703
+ anonymous: false,
704
704
  },
705
705
  ];
706
706
  class ICreditFacadeV3__factory {