@gearbox-protocol/sdk 1.22.4 → 1.23.0

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 (283) hide show
  1. package/lib/apy/convexAPY.d.ts +10 -10
  2. package/lib/apy/convexAPY.js +100 -121
  3. package/lib/apy/curveAPY.d.ts +3 -4
  4. package/lib/apy/curveAPY.js +57 -111
  5. package/lib/apy/index.js +4 -6
  6. package/lib/apy/lidoAPY.d.ts +1 -2
  7. package/lib/apy/lidoAPY.js +14 -62
  8. package/lib/apy/yearnAPY.d.ts +2 -3
  9. package/lib/apy/yearnAPY.js +26 -82
  10. package/lib/contracts/contracts.js +9 -22
  11. package/lib/contracts/contractsRegister.js +39 -51
  12. package/lib/contracts/protocols.js +10 -11
  13. package/lib/core/adapter.js +9 -4
  14. package/lib/core/assets.d.ts +6 -7
  15. package/lib/core/assets.js +60 -70
  16. package/lib/core/chains.js +30 -80
  17. package/lib/core/constants.d.ts +9 -10
  18. package/lib/core/constants.js +9 -12
  19. package/lib/core/creditAccount.d.ts +20 -20
  20. package/lib/core/creditAccount.js +123 -134
  21. package/lib/core/creditAccount.spec.js +50 -52
  22. package/lib/core/creditManager.d.ts +26 -26
  23. package/lib/core/creditManager.js +172 -136
  24. package/lib/core/creditManager.spec.js +59 -61
  25. package/lib/core/creditSession.d.ts +12 -13
  26. package/lib/core/creditSession.js +120 -77
  27. package/lib/core/errors.d.ts +2 -3
  28. package/lib/core/errors.js +11 -27
  29. package/lib/core/eventOrTx.js +35 -73
  30. package/lib/core/events.d.ts +19 -20
  31. package/lib/core/events.js +698 -711
  32. package/lib/core/operations.js +11 -5
  33. package/lib/core/pool/data.d.ts +29 -29
  34. package/lib/core/pool/data.js +153 -112
  35. package/lib/core/pool/operation.d.ts +1 -2
  36. package/lib/core/pool/operation.js +23 -35
  37. package/lib/core/priceOracle.d.ts +6 -6
  38. package/lib/core/priceOracle.js +23 -29
  39. package/lib/core/rewardClaimer.d.ts +2 -2
  40. package/lib/core/rewardClaimer.js +5 -48
  41. package/lib/core/rewardConvex.js +54 -114
  42. package/lib/core/rewardConvex.spec.js +41 -43
  43. package/lib/core/strategy.d.ts +5 -6
  44. package/lib/core/strategy.js +67 -69
  45. package/lib/core/strategy.spec.js +32 -34
  46. package/lib/core/tokenDistributor.d.ts +1 -2
  47. package/lib/core/trade.d.ts +6 -6
  48. package/lib/core/trade.js +70 -115
  49. package/lib/core/transactions.d.ts +21 -22
  50. package/lib/core/transactions.js +285 -308
  51. package/lib/index.d.ts +0 -2
  52. package/lib/index.js +0 -2
  53. package/lib/oracles/oracles.d.ts +1 -2
  54. package/lib/oracles/priceFeeds.js +2 -3
  55. package/lib/parsers/ERC20Parser.js +20 -38
  56. package/lib/parsers/abstractParser.js +33 -31
  57. package/lib/parsers/addressProviderParser.js +12 -30
  58. package/lib/parsers/airdropDistributorParser.js +12 -30
  59. package/lib/parsers/convexBaseRewardPoolAdapterParser.js +24 -42
  60. package/lib/parsers/convexBaseRewardPoolAdapterParser.spec.js +11 -11
  61. package/lib/parsers/convexBoosterAdapterParser.js +26 -44
  62. package/lib/parsers/convexBoosterAdapterParser.spec.js +10 -10
  63. package/lib/parsers/convextRewardPoolParser.js +12 -30
  64. package/lib/parsers/creditFacadeParser.js +26 -45
  65. package/lib/parsers/creditFacadeParser.spec.js +13 -13
  66. package/lib/parsers/creditManagerParser.js +12 -30
  67. package/lib/parsers/curveAdapterParser.js +60 -78
  68. package/lib/parsers/curveAdapterParser.spec.js +20 -27
  69. package/lib/parsers/dataCompressorParser.js +12 -30
  70. package/lib/parsers/lidoAdapterParser.js +15 -33
  71. package/lib/parsers/lidoAdapterParser.spec.js +9 -9
  72. package/lib/parsers/lidoOracleParser.js +12 -30
  73. package/lib/parsers/lidoSTETHParser.js +19 -37
  74. package/lib/parsers/multicallParser.js +16 -34
  75. package/lib/parsers/offchainOracleParser.js +13 -31
  76. package/lib/parsers/poolParser.js +11 -29
  77. package/lib/parsers/priceOracleParser.js +13 -31
  78. package/lib/parsers/txParser.js +86 -96
  79. package/lib/parsers/uniV2AdapterParser.js +35 -55
  80. package/lib/parsers/uniV2AdapterParser.spec.js +15 -16
  81. package/lib/parsers/uniV3AdapterParser.js +56 -74
  82. package/lib/parsers/uniV3AdapterParser.spec.js +23 -24
  83. package/lib/parsers/wstETHAdapterParser.js +25 -43
  84. package/lib/parsers/wstETHAdapterParser.spec.js +11 -11
  85. package/lib/parsers/yearnAdapterParser.spec.js +17 -17
  86. package/lib/parsers/yearnV2AdapterParser.js +25 -43
  87. package/lib/pathfinder/core.d.ts +3 -4
  88. package/lib/pathfinder/pathOptions.js +52 -101
  89. package/lib/pathfinder/pathOptions.spec.js +55 -57
  90. package/lib/pathfinder/pathfinder.d.ts +3 -3
  91. package/lib/pathfinder/pathfinder.js +109 -202
  92. package/lib/pathfinder/pathfinder.spec.js +13 -13
  93. package/lib/strategies/convex.js +111 -123
  94. package/lib/strategies/creditFacade.js +34 -37
  95. package/lib/strategies/curve.js +74 -80
  96. package/lib/strategies/lido.js +26 -32
  97. package/lib/strategies/uniswapV2.js +21 -24
  98. package/lib/strategies/uniswapV3.js +33 -36
  99. package/lib/strategies/yearn.js +47 -59
  100. package/lib/tokens/balancer.js +3 -5
  101. package/lib/tokens/convex.js +14 -29
  102. package/lib/tokens/curveLP.js +22 -28
  103. package/lib/tokens/gear.js +1 -1
  104. package/lib/tokens/normal.js +3 -5
  105. package/lib/tokens/token.js +29 -35
  106. package/lib/tokens/tokenData.d.ts +0 -9
  107. package/lib/tokens/tokenData.js +17 -15
  108. package/lib/tokens/yearn.js +3 -5
  109. package/lib/types/factories/@chainlink/contracts/src/v0.8/interfaces/AggregatorInterface__factory.js +9 -12
  110. package/lib/types/factories/@chainlink/contracts/src/v0.8/interfaces/AggregatorV2V3Interface__factory.js +9 -12
  111. package/lib/types/factories/@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface__factory.js +9 -12
  112. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IACL.sol/IACLEvents__factory.js +9 -12
  113. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IACL.sol/IACLExceptions__factory.js +9 -12
  114. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IACL.sol/IACL__factory.js +9 -12
  115. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IAccountFactory.sol/IAccountFactoryEvents__factory.js +9 -12
  116. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IAccountFactory.sol/IAccountFactoryGetters__factory.js +9 -12
  117. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IAccountFactory.sol/IAccountFactory__factory.js +9 -12
  118. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IAddressProvider.sol/IAddressProviderEvents__factory.js +9 -12
  119. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IAddressProvider.sol/IAddressProvider__factory.js +9 -12
  120. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IAirdropDistributor.sol/IAirdropDistributorEvents__factory.js +9 -12
  121. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IAirdropDistributor.sol/IAirdropDistributor__factory.js +9 -12
  122. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IContractsRegister.sol/IContractsRegisterEvents__factory.js +9 -12
  123. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IContractsRegister.sol/IContractsRegister__factory.js +9 -12
  124. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ICreditAccount.sol/ICrediAccountExceptions__factory.js +9 -12
  125. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ICreditAccount.sol/ICreditAccount__factory.js +9 -12
  126. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ICreditConfigurator.sol/ICreditConfiguratorEvents__factory.js +9 -12
  127. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ICreditConfigurator.sol/ICreditConfiguratorExceptions__factory.js +9 -12
  128. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ICreditConfigurator.sol/ICreditConfigurator__factory.js +9 -12
  129. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ICreditFacade.sol/ICreditFacadeEvents__factory.js +9 -12
  130. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ICreditFacade.sol/ICreditFacadeExceptions__factory.js +9 -12
  131. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ICreditFacade.sol/ICreditFacadeExtended__factory.js +9 -12
  132. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ICreditFacade.sol/ICreditFacade__factory.js +9 -12
  133. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ICreditManagerV2.sol/ICreditManagerV2Events__factory.js +9 -12
  134. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ICreditManagerV2.sol/ICreditManagerV2Exceptions__factory.js +9 -12
  135. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ICreditManagerV2.sol/ICreditManagerV2__factory.js +9 -12
  136. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IDataCompressor.sol/IDataCompressorExceptions__factory.js +9 -12
  137. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IDataCompressor.sol/IDataCompressor__factory.js +9 -12
  138. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IDegenDistributor.sol/IDegenDistributorEvents__factory.js +9 -12
  139. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IDegenDistributor.sol/IDegenDistributor__factory.js +9 -12
  140. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IDegenNFT.sol/IDegenNFTEvents__factory.js +9 -12
  141. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IDegenNFT.sol/IDegenNFTExceptions__factory.js +9 -12
  142. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IDegenNFT.sol/IDegenNFT__factory.js +9 -12
  143. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IDieselToken.sol/IDieselTokenExceptions__factory.js +9 -12
  144. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IDieselToken.sol/IDieselToken__factory.js +9 -12
  145. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IInterestRateModel__factory.js +9 -12
  146. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ILPPriceFeed.sol/ILPPriceFeedEvents__factory.js +9 -12
  147. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ILPPriceFeed.sol/ILPPriceFeedExceptions__factory.js +9 -12
  148. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ILPPriceFeed.sol/ILPPriceFeed__factory.js +9 -12
  149. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IPhantomERC20__factory.js +9 -12
  150. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IPoolService.sol/IPoolServiceEvents__factory.js +9 -12
  151. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IPoolService.sol/IPoolService__factory.js +9 -12
  152. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IPriceFeedType__factory.js +9 -12
  153. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IPriceOracle.sol/IPriceOracleV2Events__factory.js +9 -12
  154. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IPriceOracle.sol/IPriceOracleV2Exceptions__factory.js +9 -12
  155. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IPriceOracle.sol/IPriceOracleV2Ext__factory.js +9 -12
  156. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IPriceOracle.sol/IPriceOracleV2__factory.js +9 -12
  157. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IVersion__factory.js +9 -12
  158. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IWETHGateway__factory.js +9 -12
  159. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/V1/ICreditFilter__factory.js +9 -12
  160. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/V1/ICreditManager__factory.js +9 -12
  161. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/adapters/IAdapter.sol/IAdapterExceptions__factory.js +9 -12
  162. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/adapters/IAdapter.sol/IAdapter__factory.js +9 -12
  163. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/adapters/IUniversalAdapter.sol/IUniversalAdapterExceptions__factory.js +9 -12
  164. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/adapters/IUniversalAdapter.sol/IUniversalAdapter__factory.js +9 -12
  165. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/external/IWETH__factory.js +9 -12
  166. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/pool/PoolService__factory.js +27 -50
  167. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/test/interfaces/ITokenTestSuite__factory.js +9 -12
  168. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/IBaseRewardPool__factory.js +9 -12
  169. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/IBooster__factory.js +9 -12
  170. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/IClaimZap__factory.js +9 -12
  171. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/IConvexToken__factory.js +9 -12
  172. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/IRewards.sol/IBasicRewards__factory.js +9 -12
  173. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/IRewards.sol/IRewards__factory.js +9 -12
  174. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/ICrvDeposit__factory.js +9 -12
  175. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/ICurveGauge__factory.js +9 -12
  176. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/ICurveVoteEscrow__factory.js +9 -12
  177. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/IDeposit__factory.js +9 -12
  178. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/IFeeDistro__factory.js +9 -12
  179. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/IMinter__factory.js +9 -12
  180. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/IPools__factory.js +9 -12
  181. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/IRegistry__factory.js +9 -12
  182. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/IRewardFactory__factory.js +9 -12
  183. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/IRewards__factory.js +9 -12
  184. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/IStaker__factory.js +9 -12
  185. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/IStashFactory__factory.js +9 -12
  186. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/IStash__factory.js +9 -12
  187. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/ITokenFactory__factory.js +9 -12
  188. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/ITokenMinter__factory.js +9 -12
  189. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/IVestedEscrow__factory.js +9 -12
  190. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/IVoting__factory.js +9 -12
  191. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/IWalletChecker__factory.js +9 -12
  192. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/curve/ICurvePoolStETH__factory.js +9 -12
  193. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/curve/ICurvePool_2.sol/ICurvePool2Assets__factory.js +9 -12
  194. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/curve/ICurvePool_3.sol/ICurvePool3Assets__factory.js +9 -12
  195. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/curve/ICurvePool_4.sol/ICurvePool4Assets__factory.js +9 -12
  196. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/curve/ICurvePool__factory.js +9 -12
  197. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/curve/ICurveRegistry__factory.js +9 -12
  198. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/lido/ILidoOracle__factory.js +9 -12
  199. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/lido/IstETH.sol/IstETHGetters__factory.js +9 -12
  200. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/lido/IstETH.sol/IstETH__factory.js +9 -12
  201. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/lido/IwstETH.sol/IwstETHGetters__factory.js +9 -12
  202. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/lido/IwstETH.sol/IwstETH__factory.js +9 -12
  203. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/lido/IwstETHGateway.sol/IwstETHGateWay__factory.js +9 -12
  204. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/uniswap/IQuoter__factory.js +9 -12
  205. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/uniswap/IUniswapV2Router01__factory.js +9 -12
  206. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/uniswap/IUniswapV2Router02__factory.js +9 -12
  207. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/uniswap/IUniswapV3.sol/ISwapRouter__factory.js +9 -12
  208. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/yearn/IYVault__factory.js +9 -12
  209. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/convex/IConvexV1BaseRewardPoolAdapter.sol/IConvexV1BaseRewardPoolAdapterErrors__factory.js +9 -12
  210. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/convex/IConvexV1BaseRewardPoolAdapter.sol/IConvexV1BaseRewardPoolAdapter__factory.js +9 -12
  211. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/convex/IConvexV1BoosterAdapter__factory.js +9 -12
  212. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/curve/ICurveV1Adapter.sol/ICurveV1AdapterExceptions__factory.js +9 -12
  213. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/curve/ICurveV1Adapter.sol/ICurveV1Adapter__factory.js +9 -12
  214. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/curve/ICurveV1_2AssetsAdapter__factory.js +9 -12
  215. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/curve/ICurveV1_3AssetsAdapter__factory.js +9 -12
  216. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/curve/ICurveV1_4AssetsAdapter__factory.js +9 -12
  217. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/lido/ILidoV1Adapter.sol/ILidoV1AdapterEvents__factory.js +9 -12
  218. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/lido/ILidoV1Adapter.sol/ILidoV1AdapterExceptions__factory.js +9 -12
  219. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/lido/ILidoV1Adapter.sol/ILidoV1Adapter__factory.js +9 -12
  220. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/lido/IwstETHV1Adapter__factory.js +9 -12
  221. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/uniswap/IUniswapPathChecker__factory.js +9 -12
  222. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/uniswap/IUniswapV2Adapter.sol/IUniswapV2AdapterExceptions__factory.js +9 -12
  223. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/uniswap/IUniswapV2Adapter.sol/IUniswapV2Adapter__factory.js +9 -12
  224. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/uniswap/IUniswapV3Adapter.sol/IUniswapV3AdapterExceptions__factory.js +9 -12
  225. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/uniswap/IUniswapV3Adapter.sol/IUniswapV3Adapter__factory.js +9 -12
  226. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/yearn/IYearnV2Adapter__factory.js +9 -12
  227. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/test/config/SupportedContracts.sol/ISupportedContracts__factory.js +9 -12
  228. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/test/mocks/integrations/LidoMock.sol/ILidoMockEvents__factory.js +9 -12
  229. package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/IClosePathResolver__factory.js +9 -12
  230. package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/IDepositor.sol/IDepositorOptions__factory.js +9 -12
  231. package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/IDepositor.sol/IDepositor__factory.js +9 -12
  232. package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/IGasPricer__factory.js +9 -12
  233. package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/ILPWorker.sol/ILPWorkerOptions__factory.js +9 -12
  234. package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/ILPWorker.sol/ILPWorker__factory.js +9 -12
  235. package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/IPathResolver__factory.js +9 -12
  236. package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/IRouterComponent__factory.js +9 -12
  237. package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/IRouter__factory.js +9 -12
  238. package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/ISwapAggregator__factory.js +9 -12
  239. package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/ISwapper__factory.js +9 -12
  240. package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/IWithdrawer.sol/IWithdrawerOptions__factory.js +9 -12
  241. package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/IWithdrawer.sol/IWithdrawer__factory.js +9 -12
  242. package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/IWrapper__factory.js +9 -12
  243. package/lib/types/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.js +9 -12
  244. package/lib/types/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory.js +9 -12
  245. package/lib/types/factories/@openzeppelin/contracts/token/ERC721/IERC721Receiver__factory.js +9 -12
  246. package/lib/types/factories/@openzeppelin/contracts/token/ERC721/IERC721__factory.js +9 -12
  247. package/lib/types/factories/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata__factory.js +9 -12
  248. package/lib/types/factories/@openzeppelin/contracts/utils/introspection/IERC165__factory.js +9 -12
  249. package/lib/types/factories/contracts/IGas__factory.js +9 -12
  250. package/lib/types/factories/contracts/IGnosisSafeSignatureValidator__factory.js +9 -12
  251. package/lib/types/factories/contracts/ITokenDistributor.sol/ITokenDistributorEvents__factory.js +9 -12
  252. package/lib/types/factories/contracts/ITokenDistributor.sol/ITokenDistributorExceptions__factory.js +9 -12
  253. package/lib/types/factories/contracts/ITokenDistributor.sol/ITokenDistributor__factory.js +9 -12
  254. package/lib/types/factories/contracts/support/IOffchainOracle__factory.js +9 -12
  255. package/lib/types/factories/contracts/support/MultiCall.sol/Multicall2__factory.js +27 -50
  256. package/lib/utils/errors.js +1 -1
  257. package/lib/utils/extracter.js +4 -4
  258. package/lib/utils/formatter.d.ts +8 -8
  259. package/lib/utils/formatter.js +73 -87
  260. package/lib/utils/loading.js +3 -3
  261. package/lib/utils/mappers.js +7 -34
  262. package/lib/utils/math.d.ts +10 -7
  263. package/lib/utils/math.js +22 -25
  264. package/lib/utils/multicall.js +32 -98
  265. package/lib/utils/price.d.ts +3 -4
  266. package/lib/utils/price.js +8 -20
  267. package/lib/utils/repeater.js +12 -53
  268. package/lib/utils/validate.js +2 -2
  269. package/lib/watchers/creditAccountWatcher.js +136 -237
  270. package/lib/watchers/creditAccountWatcher.spec.js +51 -68
  271. package/lib/watchers/creditManagerWatcher.js +21 -71
  272. package/lib/watchers/creditManagerWatcher.spec.js +20 -23
  273. package/package.json +2 -2
  274. package/lib/core/history.d.ts +0 -42
  275. package/lib/core/history.js +0 -2
  276. package/lib/core/wcOperation/abstractOperations.d.ts +0 -23
  277. package/lib/core/wcOperation/abstractOperations.js +0 -39
  278. package/lib/core/wcOperation/index.d.ts +0 -11
  279. package/lib/core/wcOperation/index.js +0 -30
  280. package/lib/core/wcOperation/operations.d.ts +0 -88
  281. package/lib/core/wcOperation/operations.js +0 -146
  282. package/lib/core/wcOperation/types.d.ts +0 -15
  283. package/lib/core/wcOperation/types.js +0 -2
@@ -4,8 +4,8 @@
4
4
  /* eslint-disable */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ICurvePool3Assets__factory = void 0;
7
- var ethers_1 = require("ethers");
8
- var _abi = [
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
9
  {
10
10
  inputs: [],
11
11
  name: "A",
@@ -698,16 +698,13 @@ var _abi = [
698
698
  type: "function",
699
699
  },
700
700
  ];
701
- var ICurvePool3Assets__factory = /** @class */ (function () {
702
- function ICurvePool3Assets__factory() {
703
- }
704
- ICurvePool3Assets__factory.createInterface = function () {
701
+ class ICurvePool3Assets__factory {
702
+ static abi = _abi;
703
+ static createInterface() {
705
704
  return new ethers_1.utils.Interface(_abi);
706
- };
707
- ICurvePool3Assets__factory.connect = function (address, signerOrProvider) {
705
+ }
706
+ static connect(address, signerOrProvider) {
708
707
  return new ethers_1.Contract(address, _abi, signerOrProvider);
709
- };
710
- ICurvePool3Assets__factory.abi = _abi;
711
- return ICurvePool3Assets__factory;
712
- }());
708
+ }
709
+ }
713
710
  exports.ICurvePool3Assets__factory = ICurvePool3Assets__factory;
@@ -4,8 +4,8 @@
4
4
  /* eslint-disable */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ICurvePool4Assets__factory = void 0;
7
- var ethers_1 = require("ethers");
8
- var _abi = [
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
9
  {
10
10
  inputs: [],
11
11
  name: "A",
@@ -698,16 +698,13 @@ var _abi = [
698
698
  type: "function",
699
699
  },
700
700
  ];
701
- var ICurvePool4Assets__factory = /** @class */ (function () {
702
- function ICurvePool4Assets__factory() {
703
- }
704
- ICurvePool4Assets__factory.createInterface = function () {
701
+ class ICurvePool4Assets__factory {
702
+ static abi = _abi;
703
+ static createInterface() {
705
704
  return new ethers_1.utils.Interface(_abi);
706
- };
707
- ICurvePool4Assets__factory.connect = function (address, signerOrProvider) {
705
+ }
706
+ static connect(address, signerOrProvider) {
708
707
  return new ethers_1.Contract(address, _abi, signerOrProvider);
709
- };
710
- ICurvePool4Assets__factory.abi = _abi;
711
- return ICurvePool4Assets__factory;
712
- }());
708
+ }
709
+ }
713
710
  exports.ICurvePool4Assets__factory = ICurvePool4Assets__factory;
@@ -4,8 +4,8 @@
4
4
  /* eslint-disable */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ICurvePool__factory = void 0;
7
- var ethers_1 = require("ethers");
8
- var _abi = [
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
9
  {
10
10
  inputs: [],
11
11
  name: "A",
@@ -552,16 +552,13 @@ var _abi = [
552
552
  type: "function",
553
553
  },
554
554
  ];
555
- var ICurvePool__factory = /** @class */ (function () {
556
- function ICurvePool__factory() {
557
- }
558
- ICurvePool__factory.createInterface = function () {
555
+ class ICurvePool__factory {
556
+ static abi = _abi;
557
+ static createInterface() {
559
558
  return new ethers_1.utils.Interface(_abi);
560
- };
561
- ICurvePool__factory.connect = function (address, signerOrProvider) {
559
+ }
560
+ static connect(address, signerOrProvider) {
562
561
  return new ethers_1.Contract(address, _abi, signerOrProvider);
563
- };
564
- ICurvePool__factory.abi = _abi;
565
- return ICurvePool__factory;
566
- }());
562
+ }
563
+ }
567
564
  exports.ICurvePool__factory = ICurvePool__factory;
@@ -4,8 +4,8 @@
4
4
  /* eslint-disable */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ICurveRegistry__factory = void 0;
7
- var ethers_1 = require("ethers");
8
- var _abi = [
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
9
  {
10
10
  inputs: [
11
11
  {
@@ -64,16 +64,13 @@ var _abi = [
64
64
  type: "function",
65
65
  },
66
66
  ];
67
- var ICurveRegistry__factory = /** @class */ (function () {
68
- function ICurveRegistry__factory() {
69
- }
70
- ICurveRegistry__factory.createInterface = function () {
67
+ class ICurveRegistry__factory {
68
+ static abi = _abi;
69
+ static createInterface() {
71
70
  return new ethers_1.utils.Interface(_abi);
72
- };
73
- ICurveRegistry__factory.connect = function (address, signerOrProvider) {
71
+ }
72
+ static connect(address, signerOrProvider) {
74
73
  return new ethers_1.Contract(address, _abi, signerOrProvider);
75
- };
76
- ICurveRegistry__factory.abi = _abi;
77
- return ICurveRegistry__factory;
78
- }());
74
+ }
75
+ }
79
76
  exports.ICurveRegistry__factory = ICurveRegistry__factory;
@@ -4,8 +4,8 @@
4
4
  /* eslint-disable */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ILidoOracle__factory = void 0;
7
- var ethers_1 = require("ethers");
8
- var _abi = [
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
9
  {
10
10
  inputs: [],
11
11
  name: "getLastCompletedReportDelta",
@@ -30,16 +30,13 @@ var _abi = [
30
30
  type: "function",
31
31
  },
32
32
  ];
33
- var ILidoOracle__factory = /** @class */ (function () {
34
- function ILidoOracle__factory() {
35
- }
36
- ILidoOracle__factory.createInterface = function () {
33
+ class ILidoOracle__factory {
34
+ static abi = _abi;
35
+ static createInterface() {
37
36
  return new ethers_1.utils.Interface(_abi);
38
- };
39
- ILidoOracle__factory.connect = function (address, signerOrProvider) {
37
+ }
38
+ static connect(address, signerOrProvider) {
40
39
  return new ethers_1.Contract(address, _abi, signerOrProvider);
41
- };
42
- ILidoOracle__factory.abi = _abi;
43
- return ILidoOracle__factory;
44
- }());
40
+ }
41
+ }
45
42
  exports.ILidoOracle__factory = ILidoOracle__factory;
@@ -4,8 +4,8 @@
4
4
  /* eslint-disable */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.IstETHGetters__factory = void 0;
7
- var ethers_1 = require("ethers");
8
- var _abi = [
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
9
  {
10
10
  anonymous: false,
11
11
  inputs: [
@@ -325,16 +325,13 @@ var _abi = [
325
325
  type: "function",
326
326
  },
327
327
  ];
328
- var IstETHGetters__factory = /** @class */ (function () {
329
- function IstETHGetters__factory() {
330
- }
331
- IstETHGetters__factory.createInterface = function () {
328
+ class IstETHGetters__factory {
329
+ static abi = _abi;
330
+ static createInterface() {
332
331
  return new ethers_1.utils.Interface(_abi);
333
- };
334
- IstETHGetters__factory.connect = function (address, signerOrProvider) {
332
+ }
333
+ static connect(address, signerOrProvider) {
335
334
  return new ethers_1.Contract(address, _abi, signerOrProvider);
336
- };
337
- IstETHGetters__factory.abi = _abi;
338
- return IstETHGetters__factory;
339
- }());
335
+ }
336
+ }
340
337
  exports.IstETHGetters__factory = IstETHGetters__factory;
@@ -4,8 +4,8 @@
4
4
  /* eslint-disable */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.IstETH__factory = void 0;
7
- var ethers_1 = require("ethers");
8
- var _abi = [
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
9
  {
10
10
  anonymous: false,
11
11
  inputs: [
@@ -344,16 +344,13 @@ var _abi = [
344
344
  type: "function",
345
345
  },
346
346
  ];
347
- var IstETH__factory = /** @class */ (function () {
348
- function IstETH__factory() {
349
- }
350
- IstETH__factory.createInterface = function () {
347
+ class IstETH__factory {
348
+ static abi = _abi;
349
+ static createInterface() {
351
350
  return new ethers_1.utils.Interface(_abi);
352
- };
353
- IstETH__factory.connect = function (address, signerOrProvider) {
351
+ }
352
+ static connect(address, signerOrProvider) {
354
353
  return new ethers_1.Contract(address, _abi, signerOrProvider);
355
- };
356
- IstETH__factory.abi = _abi;
357
- return IstETH__factory;
358
- }());
354
+ }
355
+ }
359
356
  exports.IstETH__factory = IstETH__factory;
@@ -4,8 +4,8 @@
4
4
  /* eslint-disable */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.IwstETHGetters__factory = void 0;
7
- var ethers_1 = require("ethers");
8
- var _abi = [
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
9
  {
10
10
  anonymous: false,
11
11
  inputs: [
@@ -306,16 +306,13 @@ var _abi = [
306
306
  type: "function",
307
307
  },
308
308
  ];
309
- var IwstETHGetters__factory = /** @class */ (function () {
310
- function IwstETHGetters__factory() {
311
- }
312
- IwstETHGetters__factory.createInterface = function () {
309
+ class IwstETHGetters__factory {
310
+ static abi = _abi;
311
+ static createInterface() {
313
312
  return new ethers_1.utils.Interface(_abi);
314
- };
315
- IwstETHGetters__factory.connect = function (address, signerOrProvider) {
313
+ }
314
+ static connect(address, signerOrProvider) {
316
315
  return new ethers_1.Contract(address, _abi, signerOrProvider);
317
- };
318
- IwstETHGetters__factory.abi = _abi;
319
- return IwstETHGetters__factory;
320
- }());
316
+ }
317
+ }
321
318
  exports.IwstETHGetters__factory = IwstETHGetters__factory;
@@ -4,8 +4,8 @@
4
4
  /* eslint-disable */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.IwstETH__factory = void 0;
7
- var ethers_1 = require("ethers");
8
- var _abi = [
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
9
  {
10
10
  anonymous: false,
11
11
  inputs: [
@@ -344,16 +344,13 @@ var _abi = [
344
344
  type: "function",
345
345
  },
346
346
  ];
347
- var IwstETH__factory = /** @class */ (function () {
348
- function IwstETH__factory() {
349
- }
350
- IwstETH__factory.createInterface = function () {
347
+ class IwstETH__factory {
348
+ static abi = _abi;
349
+ static createInterface() {
351
350
  return new ethers_1.utils.Interface(_abi);
352
- };
353
- IwstETH__factory.connect = function (address, signerOrProvider) {
351
+ }
352
+ static connect(address, signerOrProvider) {
354
353
  return new ethers_1.Contract(address, _abi, signerOrProvider);
355
- };
356
- IwstETH__factory.abi = _abi;
357
- return IwstETH__factory;
358
- }());
354
+ }
355
+ }
359
356
  exports.IwstETH__factory = IwstETH__factory;
@@ -4,8 +4,8 @@
4
4
  /* eslint-disable */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.IwstETHGateWay__factory = void 0;
7
- var ethers_1 = require("ethers");
8
- var _abi = [
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
9
  {
10
10
  inputs: [],
11
11
  name: "NonRegisterPoolException",
@@ -59,16 +59,13 @@ var _abi = [
59
59
  type: "function",
60
60
  },
61
61
  ];
62
- var IwstETHGateWay__factory = /** @class */ (function () {
63
- function IwstETHGateWay__factory() {
64
- }
65
- IwstETHGateWay__factory.createInterface = function () {
62
+ class IwstETHGateWay__factory {
63
+ static abi = _abi;
64
+ static createInterface() {
66
65
  return new ethers_1.utils.Interface(_abi);
67
- };
68
- IwstETHGateWay__factory.connect = function (address, signerOrProvider) {
66
+ }
67
+ static connect(address, signerOrProvider) {
69
68
  return new ethers_1.Contract(address, _abi, signerOrProvider);
70
- };
71
- IwstETHGateWay__factory.abi = _abi;
72
- return IwstETHGateWay__factory;
73
- }());
69
+ }
70
+ }
74
71
  exports.IwstETHGateWay__factory = IwstETHGateWay__factory;
@@ -4,8 +4,8 @@
4
4
  /* eslint-disable */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.IQuoter__factory = void 0;
7
- var ethers_1 = require("ethers");
8
- var _abi = [
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
9
  {
10
10
  inputs: [
11
11
  {
@@ -133,16 +133,13 @@ var _abi = [
133
133
  type: "function",
134
134
  },
135
135
  ];
136
- var IQuoter__factory = /** @class */ (function () {
137
- function IQuoter__factory() {
138
- }
139
- IQuoter__factory.createInterface = function () {
136
+ class IQuoter__factory {
137
+ static abi = _abi;
138
+ static createInterface() {
140
139
  return new ethers_1.utils.Interface(_abi);
141
- };
142
- IQuoter__factory.connect = function (address, signerOrProvider) {
140
+ }
141
+ static connect(address, signerOrProvider) {
143
142
  return new ethers_1.Contract(address, _abi, signerOrProvider);
144
- };
145
- IQuoter__factory.abi = _abi;
146
- return IQuoter__factory;
147
- }());
143
+ }
144
+ }
148
145
  exports.IQuoter__factory = IQuoter__factory;
@@ -4,8 +4,8 @@
4
4
  /* eslint-disable */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.IUniswapV2Router01__factory = void 0;
7
- var ethers_1 = require("ethers");
8
- var _abi = [
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
9
  {
10
10
  inputs: [],
11
11
  name: "WETH",
@@ -756,16 +756,13 @@ var _abi = [
756
756
  type: "function",
757
757
  },
758
758
  ];
759
- var IUniswapV2Router01__factory = /** @class */ (function () {
760
- function IUniswapV2Router01__factory() {
761
- }
762
- IUniswapV2Router01__factory.createInterface = function () {
759
+ class IUniswapV2Router01__factory {
760
+ static abi = _abi;
761
+ static createInterface() {
763
762
  return new ethers_1.utils.Interface(_abi);
764
- };
765
- IUniswapV2Router01__factory.connect = function (address, signerOrProvider) {
763
+ }
764
+ static connect(address, signerOrProvider) {
766
765
  return new ethers_1.Contract(address, _abi, signerOrProvider);
767
- };
768
- IUniswapV2Router01__factory.abi = _abi;
769
- return IUniswapV2Router01__factory;
770
- }());
766
+ }
767
+ }
771
768
  exports.IUniswapV2Router01__factory = IUniswapV2Router01__factory;
@@ -4,8 +4,8 @@
4
4
  /* eslint-disable */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.IUniswapV2Router02__factory = void 0;
7
- var ethers_1 = require("ethers");
8
- var _abi = [
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
9
  {
10
10
  inputs: [],
11
11
  name: "WETH",
@@ -958,16 +958,13 @@ var _abi = [
958
958
  type: "function",
959
959
  },
960
960
  ];
961
- var IUniswapV2Router02__factory = /** @class */ (function () {
962
- function IUniswapV2Router02__factory() {
963
- }
964
- IUniswapV2Router02__factory.createInterface = function () {
961
+ class IUniswapV2Router02__factory {
962
+ static abi = _abi;
963
+ static createInterface() {
965
964
  return new ethers_1.utils.Interface(_abi);
966
- };
967
- IUniswapV2Router02__factory.connect = function (address, signerOrProvider) {
965
+ }
966
+ static connect(address, signerOrProvider) {
968
967
  return new ethers_1.Contract(address, _abi, signerOrProvider);
969
- };
970
- IUniswapV2Router02__factory.abi = _abi;
971
- return IUniswapV2Router02__factory;
972
- }());
968
+ }
969
+ }
973
970
  exports.IUniswapV2Router02__factory = IUniswapV2Router02__factory;
@@ -4,8 +4,8 @@
4
4
  /* eslint-disable */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ISwapRouter__factory = void 0;
7
- var ethers_1 = require("ethers");
8
- var _abi = [
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
9
  {
10
10
  inputs: [
11
11
  {
@@ -221,16 +221,13 @@ var _abi = [
221
221
  type: "function",
222
222
  },
223
223
  ];
224
- var ISwapRouter__factory = /** @class */ (function () {
225
- function ISwapRouter__factory() {
226
- }
227
- ISwapRouter__factory.createInterface = function () {
224
+ class ISwapRouter__factory {
225
+ static abi = _abi;
226
+ static createInterface() {
228
227
  return new ethers_1.utils.Interface(_abi);
229
- };
230
- ISwapRouter__factory.connect = function (address, signerOrProvider) {
228
+ }
229
+ static connect(address, signerOrProvider) {
231
230
  return new ethers_1.Contract(address, _abi, signerOrProvider);
232
- };
233
- ISwapRouter__factory.abi = _abi;
234
- return ISwapRouter__factory;
235
- }());
231
+ }
232
+ }
236
233
  exports.ISwapRouter__factory = ISwapRouter__factory;
@@ -4,8 +4,8 @@
4
4
  /* eslint-disable */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.IYVault__factory = void 0;
7
- var ethers_1 = require("ethers");
8
- var _abi = [
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
9
  {
10
10
  anonymous: false,
11
11
  inputs: [
@@ -396,16 +396,13 @@ var _abi = [
396
396
  type: "function",
397
397
  },
398
398
  ];
399
- var IYVault__factory = /** @class */ (function () {
400
- function IYVault__factory() {
401
- }
402
- IYVault__factory.createInterface = function () {
399
+ class IYVault__factory {
400
+ static abi = _abi;
401
+ static createInterface() {
403
402
  return new ethers_1.utils.Interface(_abi);
404
- };
405
- IYVault__factory.connect = function (address, signerOrProvider) {
403
+ }
404
+ static connect(address, signerOrProvider) {
406
405
  return new ethers_1.Contract(address, _abi, signerOrProvider);
407
- };
408
- IYVault__factory.abi = _abi;
409
- return IYVault__factory;
410
- }());
406
+ }
407
+ }
411
408
  exports.IYVault__factory = IYVault__factory;
@@ -4,8 +4,8 @@
4
4
  /* eslint-disable */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.IConvexV1BaseRewardPoolAdapterErrors__factory = void 0;
7
- var ethers_1 = require("ethers");
8
- var _abi = [
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
9
  {
10
10
  inputs: [
11
11
  {
@@ -18,16 +18,13 @@ var _abi = [
18
18
  type: "error",
19
19
  },
20
20
  ];
21
- var IConvexV1BaseRewardPoolAdapterErrors__factory = /** @class */ (function () {
22
- function IConvexV1BaseRewardPoolAdapterErrors__factory() {
23
- }
24
- IConvexV1BaseRewardPoolAdapterErrors__factory.createInterface = function () {
21
+ class IConvexV1BaseRewardPoolAdapterErrors__factory {
22
+ static abi = _abi;
23
+ static createInterface() {
25
24
  return new ethers_1.utils.Interface(_abi);
26
- };
27
- IConvexV1BaseRewardPoolAdapterErrors__factory.connect = function (address, signerOrProvider) {
25
+ }
26
+ static connect(address, signerOrProvider) {
28
27
  return new ethers_1.Contract(address, _abi, signerOrProvider);
29
- };
30
- IConvexV1BaseRewardPoolAdapterErrors__factory.abi = _abi;
31
- return IConvexV1BaseRewardPoolAdapterErrors__factory;
32
- }());
28
+ }
29
+ }
33
30
  exports.IConvexV1BaseRewardPoolAdapterErrors__factory = IConvexV1BaseRewardPoolAdapterErrors__factory;
@@ -4,8 +4,8 @@
4
4
  /* eslint-disable */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.IConvexV1BaseRewardPoolAdapter__factory = void 0;
7
- var ethers_1 = require("ethers");
8
- var _abi = [
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
9
  {
10
10
  inputs: [
11
11
  {
@@ -661,16 +661,13 @@ var _abi = [
661
661
  type: "function",
662
662
  },
663
663
  ];
664
- var IConvexV1BaseRewardPoolAdapter__factory = /** @class */ (function () {
665
- function IConvexV1BaseRewardPoolAdapter__factory() {
666
- }
667
- IConvexV1BaseRewardPoolAdapter__factory.createInterface = function () {
664
+ class IConvexV1BaseRewardPoolAdapter__factory {
665
+ static abi = _abi;
666
+ static createInterface() {
668
667
  return new ethers_1.utils.Interface(_abi);
669
- };
670
- IConvexV1BaseRewardPoolAdapter__factory.connect = function (address, signerOrProvider) {
668
+ }
669
+ static connect(address, signerOrProvider) {
671
670
  return new ethers_1.Contract(address, _abi, signerOrProvider);
672
- };
673
- IConvexV1BaseRewardPoolAdapter__factory.abi = _abi;
674
- return IConvexV1BaseRewardPoolAdapter__factory;
675
- }());
671
+ }
672
+ }
676
673
  exports.IConvexV1BaseRewardPoolAdapter__factory = IConvexV1BaseRewardPoolAdapter__factory;
@@ -4,8 +4,8 @@
4
4
  /* eslint-disable */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.IConvexV1BoosterAdapter__factory = void 0;
7
- var ethers_1 = require("ethers");
8
- var _abi = [
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
9
  {
10
10
  inputs: [
11
11
  {
@@ -328,16 +328,13 @@ var _abi = [
328
328
  type: "function",
329
329
  },
330
330
  ];
331
- var IConvexV1BoosterAdapter__factory = /** @class */ (function () {
332
- function IConvexV1BoosterAdapter__factory() {
333
- }
334
- IConvexV1BoosterAdapter__factory.createInterface = function () {
331
+ class IConvexV1BoosterAdapter__factory {
332
+ static abi = _abi;
333
+ static createInterface() {
335
334
  return new ethers_1.utils.Interface(_abi);
336
- };
337
- IConvexV1BoosterAdapter__factory.connect = function (address, signerOrProvider) {
335
+ }
336
+ static connect(address, signerOrProvider) {
338
337
  return new ethers_1.Contract(address, _abi, signerOrProvider);
339
- };
340
- IConvexV1BoosterAdapter__factory.abi = _abi;
341
- return IConvexV1BoosterAdapter__factory;
342
- }());
338
+ }
339
+ }
343
340
  exports.IConvexV1BoosterAdapter__factory = IConvexV1BoosterAdapter__factory;