@gearbox-protocol/sdk 1.22.4 → 1.23.1

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 (284) 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 +3 -3
  40. package/lib/core/rewardClaimer.js +5 -48
  41. package/lib/core/rewardConvex.d.ts +1 -1
  42. package/lib/core/rewardConvex.js +58 -118
  43. package/lib/core/rewardConvex.spec.js +56 -58
  44. package/lib/core/strategy.d.ts +5 -6
  45. package/lib/core/strategy.js +67 -69
  46. package/lib/core/strategy.spec.js +32 -34
  47. package/lib/core/tokenDistributor.d.ts +1 -2
  48. package/lib/core/trade.d.ts +6 -6
  49. package/lib/core/trade.js +70 -115
  50. package/lib/core/transactions.d.ts +21 -22
  51. package/lib/core/transactions.js +285 -308
  52. package/lib/index.d.ts +0 -2
  53. package/lib/index.js +0 -2
  54. package/lib/oracles/oracles.d.ts +1 -2
  55. package/lib/oracles/priceFeeds.js +2 -3
  56. package/lib/parsers/ERC20Parser.js +20 -38
  57. package/lib/parsers/abstractParser.js +33 -31
  58. package/lib/parsers/addressProviderParser.js +12 -30
  59. package/lib/parsers/airdropDistributorParser.js +12 -30
  60. package/lib/parsers/convexBaseRewardPoolAdapterParser.js +24 -42
  61. package/lib/parsers/convexBaseRewardPoolAdapterParser.spec.js +11 -11
  62. package/lib/parsers/convexBoosterAdapterParser.js +26 -44
  63. package/lib/parsers/convexBoosterAdapterParser.spec.js +10 -10
  64. package/lib/parsers/convextRewardPoolParser.js +12 -30
  65. package/lib/parsers/creditFacadeParser.js +26 -45
  66. package/lib/parsers/creditFacadeParser.spec.js +13 -13
  67. package/lib/parsers/creditManagerParser.js +12 -30
  68. package/lib/parsers/curveAdapterParser.js +60 -78
  69. package/lib/parsers/curveAdapterParser.spec.js +20 -27
  70. package/lib/parsers/dataCompressorParser.js +12 -30
  71. package/lib/parsers/lidoAdapterParser.js +15 -33
  72. package/lib/parsers/lidoAdapterParser.spec.js +9 -9
  73. package/lib/parsers/lidoOracleParser.js +12 -30
  74. package/lib/parsers/lidoSTETHParser.js +19 -37
  75. package/lib/parsers/multicallParser.js +16 -34
  76. package/lib/parsers/offchainOracleParser.js +13 -31
  77. package/lib/parsers/poolParser.js +11 -29
  78. package/lib/parsers/priceOracleParser.js +13 -31
  79. package/lib/parsers/txParser.js +86 -96
  80. package/lib/parsers/uniV2AdapterParser.js +35 -55
  81. package/lib/parsers/uniV2AdapterParser.spec.js +15 -16
  82. package/lib/parsers/uniV3AdapterParser.js +56 -74
  83. package/lib/parsers/uniV3AdapterParser.spec.js +23 -24
  84. package/lib/parsers/wstETHAdapterParser.js +25 -43
  85. package/lib/parsers/wstETHAdapterParser.spec.js +11 -11
  86. package/lib/parsers/yearnAdapterParser.spec.js +17 -17
  87. package/lib/parsers/yearnV2AdapterParser.js +25 -43
  88. package/lib/pathfinder/core.d.ts +3 -4
  89. package/lib/pathfinder/pathOptions.js +52 -101
  90. package/lib/pathfinder/pathOptions.spec.js +55 -57
  91. package/lib/pathfinder/pathfinder.d.ts +3 -3
  92. package/lib/pathfinder/pathfinder.js +109 -202
  93. package/lib/pathfinder/pathfinder.spec.js +13 -13
  94. package/lib/strategies/convex.js +111 -123
  95. package/lib/strategies/creditFacade.js +34 -37
  96. package/lib/strategies/curve.js +74 -80
  97. package/lib/strategies/lido.js +26 -32
  98. package/lib/strategies/uniswapV2.js +21 -24
  99. package/lib/strategies/uniswapV3.js +33 -36
  100. package/lib/strategies/yearn.js +47 -59
  101. package/lib/tokens/balancer.js +3 -5
  102. package/lib/tokens/convex.js +14 -29
  103. package/lib/tokens/curveLP.js +22 -28
  104. package/lib/tokens/gear.js +1 -1
  105. package/lib/tokens/normal.js +3 -5
  106. package/lib/tokens/token.js +29 -35
  107. package/lib/tokens/tokenData.d.ts +0 -9
  108. package/lib/tokens/tokenData.js +17 -15
  109. package/lib/tokens/yearn.js +3 -5
  110. package/lib/types/factories/@chainlink/contracts/src/v0.8/interfaces/AggregatorInterface__factory.js +9 -12
  111. package/lib/types/factories/@chainlink/contracts/src/v0.8/interfaces/AggregatorV2V3Interface__factory.js +9 -12
  112. package/lib/types/factories/@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface__factory.js +9 -12
  113. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IACL.sol/IACLEvents__factory.js +9 -12
  114. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IACL.sol/IACLExceptions__factory.js +9 -12
  115. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IACL.sol/IACL__factory.js +9 -12
  116. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IAccountFactory.sol/IAccountFactoryEvents__factory.js +9 -12
  117. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IAccountFactory.sol/IAccountFactoryGetters__factory.js +9 -12
  118. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IAccountFactory.sol/IAccountFactory__factory.js +9 -12
  119. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IAddressProvider.sol/IAddressProviderEvents__factory.js +9 -12
  120. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IAddressProvider.sol/IAddressProvider__factory.js +9 -12
  121. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IAirdropDistributor.sol/IAirdropDistributorEvents__factory.js +9 -12
  122. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IAirdropDistributor.sol/IAirdropDistributor__factory.js +9 -12
  123. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IContractsRegister.sol/IContractsRegisterEvents__factory.js +9 -12
  124. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IContractsRegister.sol/IContractsRegister__factory.js +9 -12
  125. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ICreditAccount.sol/ICrediAccountExceptions__factory.js +9 -12
  126. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ICreditAccount.sol/ICreditAccount__factory.js +9 -12
  127. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ICreditConfigurator.sol/ICreditConfiguratorEvents__factory.js +9 -12
  128. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ICreditConfigurator.sol/ICreditConfiguratorExceptions__factory.js +9 -12
  129. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ICreditConfigurator.sol/ICreditConfigurator__factory.js +9 -12
  130. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ICreditFacade.sol/ICreditFacadeEvents__factory.js +9 -12
  131. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ICreditFacade.sol/ICreditFacadeExceptions__factory.js +9 -12
  132. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ICreditFacade.sol/ICreditFacadeExtended__factory.js +9 -12
  133. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ICreditFacade.sol/ICreditFacade__factory.js +9 -12
  134. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ICreditManagerV2.sol/ICreditManagerV2Events__factory.js +9 -12
  135. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ICreditManagerV2.sol/ICreditManagerV2Exceptions__factory.js +9 -12
  136. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ICreditManagerV2.sol/ICreditManagerV2__factory.js +9 -12
  137. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IDataCompressor.sol/IDataCompressorExceptions__factory.js +9 -12
  138. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IDataCompressor.sol/IDataCompressor__factory.js +9 -12
  139. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IDegenDistributor.sol/IDegenDistributorEvents__factory.js +9 -12
  140. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IDegenDistributor.sol/IDegenDistributor__factory.js +9 -12
  141. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IDegenNFT.sol/IDegenNFTEvents__factory.js +9 -12
  142. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IDegenNFT.sol/IDegenNFTExceptions__factory.js +9 -12
  143. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IDegenNFT.sol/IDegenNFT__factory.js +9 -12
  144. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IDieselToken.sol/IDieselTokenExceptions__factory.js +9 -12
  145. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IDieselToken.sol/IDieselToken__factory.js +9 -12
  146. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IInterestRateModel__factory.js +9 -12
  147. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ILPPriceFeed.sol/ILPPriceFeedEvents__factory.js +9 -12
  148. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ILPPriceFeed.sol/ILPPriceFeedExceptions__factory.js +9 -12
  149. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ILPPriceFeed.sol/ILPPriceFeed__factory.js +9 -12
  150. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IPhantomERC20__factory.js +9 -12
  151. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IPoolService.sol/IPoolServiceEvents__factory.js +9 -12
  152. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IPoolService.sol/IPoolService__factory.js +9 -12
  153. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IPriceFeedType__factory.js +9 -12
  154. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IPriceOracle.sol/IPriceOracleV2Events__factory.js +9 -12
  155. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IPriceOracle.sol/IPriceOracleV2Exceptions__factory.js +9 -12
  156. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IPriceOracle.sol/IPriceOracleV2Ext__factory.js +9 -12
  157. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IPriceOracle.sol/IPriceOracleV2__factory.js +9 -12
  158. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IVersion__factory.js +9 -12
  159. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IWETHGateway__factory.js +9 -12
  160. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/V1/ICreditFilter__factory.js +9 -12
  161. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/V1/ICreditManager__factory.js +9 -12
  162. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/adapters/IAdapter.sol/IAdapterExceptions__factory.js +9 -12
  163. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/adapters/IAdapter.sol/IAdapter__factory.js +9 -12
  164. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/adapters/IUniversalAdapter.sol/IUniversalAdapterExceptions__factory.js +9 -12
  165. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/adapters/IUniversalAdapter.sol/IUniversalAdapter__factory.js +9 -12
  166. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/external/IWETH__factory.js +9 -12
  167. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/pool/PoolService__factory.js +27 -50
  168. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/test/interfaces/ITokenTestSuite__factory.js +9 -12
  169. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/IBaseRewardPool__factory.js +9 -12
  170. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/IBooster__factory.js +9 -12
  171. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/IClaimZap__factory.js +9 -12
  172. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/IConvexToken__factory.js +9 -12
  173. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/IRewards.sol/IBasicRewards__factory.js +9 -12
  174. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/IRewards.sol/IRewards__factory.js +9 -12
  175. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/ICrvDeposit__factory.js +9 -12
  176. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/ICurveGauge__factory.js +9 -12
  177. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/ICurveVoteEscrow__factory.js +9 -12
  178. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/IDeposit__factory.js +9 -12
  179. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/IFeeDistro__factory.js +9 -12
  180. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/IMinter__factory.js +9 -12
  181. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/IPools__factory.js +9 -12
  182. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/IRegistry__factory.js +9 -12
  183. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/IRewardFactory__factory.js +9 -12
  184. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/IRewards__factory.js +9 -12
  185. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/IStaker__factory.js +9 -12
  186. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/IStashFactory__factory.js +9 -12
  187. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/IStash__factory.js +9 -12
  188. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/ITokenFactory__factory.js +9 -12
  189. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/ITokenMinter__factory.js +9 -12
  190. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/IVestedEscrow__factory.js +9 -12
  191. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/IVoting__factory.js +9 -12
  192. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/IWalletChecker__factory.js +9 -12
  193. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/curve/ICurvePoolStETH__factory.js +9 -12
  194. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/curve/ICurvePool_2.sol/ICurvePool2Assets__factory.js +9 -12
  195. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/curve/ICurvePool_3.sol/ICurvePool3Assets__factory.js +9 -12
  196. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/curve/ICurvePool_4.sol/ICurvePool4Assets__factory.js +9 -12
  197. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/curve/ICurvePool__factory.js +9 -12
  198. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/curve/ICurveRegistry__factory.js +9 -12
  199. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/lido/ILidoOracle__factory.js +9 -12
  200. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/lido/IstETH.sol/IstETHGetters__factory.js +9 -12
  201. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/lido/IstETH.sol/IstETH__factory.js +9 -12
  202. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/lido/IwstETH.sol/IwstETHGetters__factory.js +9 -12
  203. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/lido/IwstETH.sol/IwstETH__factory.js +9 -12
  204. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/lido/IwstETHGateway.sol/IwstETHGateWay__factory.js +9 -12
  205. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/uniswap/IQuoter__factory.js +9 -12
  206. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/uniswap/IUniswapV2Router01__factory.js +9 -12
  207. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/uniswap/IUniswapV2Router02__factory.js +9 -12
  208. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/uniswap/IUniswapV3.sol/ISwapRouter__factory.js +9 -12
  209. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/yearn/IYVault__factory.js +9 -12
  210. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/convex/IConvexV1BaseRewardPoolAdapter.sol/IConvexV1BaseRewardPoolAdapterErrors__factory.js +9 -12
  211. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/convex/IConvexV1BaseRewardPoolAdapter.sol/IConvexV1BaseRewardPoolAdapter__factory.js +9 -12
  212. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/convex/IConvexV1BoosterAdapter__factory.js +9 -12
  213. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/curve/ICurveV1Adapter.sol/ICurveV1AdapterExceptions__factory.js +9 -12
  214. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/curve/ICurveV1Adapter.sol/ICurveV1Adapter__factory.js +9 -12
  215. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/curve/ICurveV1_2AssetsAdapter__factory.js +9 -12
  216. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/curve/ICurveV1_3AssetsAdapter__factory.js +9 -12
  217. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/curve/ICurveV1_4AssetsAdapter__factory.js +9 -12
  218. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/lido/ILidoV1Adapter.sol/ILidoV1AdapterEvents__factory.js +9 -12
  219. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/lido/ILidoV1Adapter.sol/ILidoV1AdapterExceptions__factory.js +9 -12
  220. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/lido/ILidoV1Adapter.sol/ILidoV1Adapter__factory.js +9 -12
  221. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/lido/IwstETHV1Adapter__factory.js +9 -12
  222. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/uniswap/IUniswapPathChecker__factory.js +9 -12
  223. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/uniswap/IUniswapV2Adapter.sol/IUniswapV2AdapterExceptions__factory.js +9 -12
  224. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/uniswap/IUniswapV2Adapter.sol/IUniswapV2Adapter__factory.js +9 -12
  225. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/uniswap/IUniswapV3Adapter.sol/IUniswapV3AdapterExceptions__factory.js +9 -12
  226. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/uniswap/IUniswapV3Adapter.sol/IUniswapV3Adapter__factory.js +9 -12
  227. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/yearn/IYearnV2Adapter__factory.js +9 -12
  228. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/test/config/SupportedContracts.sol/ISupportedContracts__factory.js +9 -12
  229. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/test/mocks/integrations/LidoMock.sol/ILidoMockEvents__factory.js +9 -12
  230. package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/IClosePathResolver__factory.js +9 -12
  231. package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/IDepositor.sol/IDepositorOptions__factory.js +9 -12
  232. package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/IDepositor.sol/IDepositor__factory.js +9 -12
  233. package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/IGasPricer__factory.js +9 -12
  234. package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/ILPWorker.sol/ILPWorkerOptions__factory.js +9 -12
  235. package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/ILPWorker.sol/ILPWorker__factory.js +9 -12
  236. package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/IPathResolver__factory.js +9 -12
  237. package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/IRouterComponent__factory.js +9 -12
  238. package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/IRouter__factory.js +9 -12
  239. package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/ISwapAggregator__factory.js +9 -12
  240. package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/ISwapper__factory.js +9 -12
  241. package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/IWithdrawer.sol/IWithdrawerOptions__factory.js +9 -12
  242. package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/IWithdrawer.sol/IWithdrawer__factory.js +9 -12
  243. package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/IWrapper__factory.js +9 -12
  244. package/lib/types/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.js +9 -12
  245. package/lib/types/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory.js +9 -12
  246. package/lib/types/factories/@openzeppelin/contracts/token/ERC721/IERC721Receiver__factory.js +9 -12
  247. package/lib/types/factories/@openzeppelin/contracts/token/ERC721/IERC721__factory.js +9 -12
  248. package/lib/types/factories/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata__factory.js +9 -12
  249. package/lib/types/factories/@openzeppelin/contracts/utils/introspection/IERC165__factory.js +9 -12
  250. package/lib/types/factories/contracts/IGas__factory.js +9 -12
  251. package/lib/types/factories/contracts/IGnosisSafeSignatureValidator__factory.js +9 -12
  252. package/lib/types/factories/contracts/ITokenDistributor.sol/ITokenDistributorEvents__factory.js +9 -12
  253. package/lib/types/factories/contracts/ITokenDistributor.sol/ITokenDistributorExceptions__factory.js +9 -12
  254. package/lib/types/factories/contracts/ITokenDistributor.sol/ITokenDistributor__factory.js +9 -12
  255. package/lib/types/factories/contracts/support/IOffchainOracle__factory.js +9 -12
  256. package/lib/types/factories/contracts/support/MultiCall.sol/Multicall2__factory.js +27 -50
  257. package/lib/utils/errors.js +1 -1
  258. package/lib/utils/extracter.js +4 -4
  259. package/lib/utils/formatter.d.ts +8 -8
  260. package/lib/utils/formatter.js +73 -87
  261. package/lib/utils/loading.js +3 -3
  262. package/lib/utils/mappers.js +7 -34
  263. package/lib/utils/math.d.ts +10 -7
  264. package/lib/utils/math.js +22 -25
  265. package/lib/utils/multicall.js +32 -98
  266. package/lib/utils/price.d.ts +3 -4
  267. package/lib/utils/price.js +8 -20
  268. package/lib/utils/repeater.js +12 -53
  269. package/lib/utils/validate.js +2 -2
  270. package/lib/watchers/creditAccountWatcher.js +136 -237
  271. package/lib/watchers/creditAccountWatcher.spec.js +51 -68
  272. package/lib/watchers/creditManagerWatcher.js +21 -71
  273. package/lib/watchers/creditManagerWatcher.spec.js +20 -23
  274. package/package.json +2 -2
  275. package/lib/core/history.d.ts +0 -42
  276. package/lib/core/history.js +0 -2
  277. package/lib/core/wcOperation/abstractOperations.d.ts +0 -23
  278. package/lib/core/wcOperation/abstractOperations.js +0 -39
  279. package/lib/core/wcOperation/index.d.ts +0 -11
  280. package/lib/core/wcOperation/index.js +0 -30
  281. package/lib/core/wcOperation/operations.d.ts +0 -88
  282. package/lib/core/wcOperation/operations.js +0 -146
  283. package/lib/core/wcOperation/types.d.ts +0 -15
  284. 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.AggregatorV3Interface__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: "decimals",
@@ -118,16 +118,13 @@ var _abi = [
118
118
  type: "function",
119
119
  },
120
120
  ];
121
- var AggregatorV3Interface__factory = /** @class */ (function () {
122
- function AggregatorV3Interface__factory() {
123
- }
124
- AggregatorV3Interface__factory.createInterface = function () {
121
+ class AggregatorV3Interface__factory {
122
+ static abi = _abi;
123
+ static createInterface() {
125
124
  return new ethers_1.utils.Interface(_abi);
126
- };
127
- AggregatorV3Interface__factory.connect = function (address, signerOrProvider) {
125
+ }
126
+ static connect(address, signerOrProvider) {
128
127
  return new ethers_1.Contract(address, _abi, signerOrProvider);
129
- };
130
- AggregatorV3Interface__factory.abi = _abi;
131
- return AggregatorV3Interface__factory;
132
- }());
128
+ }
129
+ }
133
130
  exports.AggregatorV3Interface__factory = AggregatorV3Interface__factory;
@@ -4,8 +4,8 @@
4
4
  /* eslint-disable */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.IACLEvents__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: [
@@ -59,16 +59,13 @@ var _abi = [
59
59
  type: "event",
60
60
  },
61
61
  ];
62
- var IACLEvents__factory = /** @class */ (function () {
63
- function IACLEvents__factory() {
64
- }
65
- IACLEvents__factory.createInterface = function () {
62
+ class IACLEvents__factory {
63
+ static abi = _abi;
64
+ static createInterface() {
66
65
  return new ethers_1.utils.Interface(_abi);
67
- };
68
- IACLEvents__factory.connect = function (address, signerOrProvider) {
66
+ }
67
+ static connect(address, signerOrProvider) {
69
68
  return new ethers_1.Contract(address, _abi, signerOrProvider);
70
- };
71
- IACLEvents__factory.abi = _abi;
72
- return IACLEvents__factory;
73
- }());
69
+ }
70
+ }
74
71
  exports.IACLEvents__factory = IACLEvents__factory;
@@ -4,8 +4,8 @@
4
4
  /* eslint-disable */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.IACLExceptions__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
  {
@@ -29,16 +29,13 @@ var _abi = [
29
29
  type: "error",
30
30
  },
31
31
  ];
32
- var IACLExceptions__factory = /** @class */ (function () {
33
- function IACLExceptions__factory() {
34
- }
35
- IACLExceptions__factory.createInterface = function () {
32
+ class IACLExceptions__factory {
33
+ static abi = _abi;
34
+ static createInterface() {
36
35
  return new ethers_1.utils.Interface(_abi);
37
- };
38
- IACLExceptions__factory.connect = function (address, signerOrProvider) {
36
+ }
37
+ static connect(address, signerOrProvider) {
39
38
  return new ethers_1.Contract(address, _abi, signerOrProvider);
40
- };
41
- IACLExceptions__factory.abi = _abi;
42
- return IACLExceptions__factory;
43
- }());
39
+ }
40
+ }
44
41
  exports.IACLExceptions__factory = IACLExceptions__factory;
@@ -4,8 +4,8 @@
4
4
  /* eslint-disable */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.IACL__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
  {
@@ -164,16 +164,13 @@ var _abi = [
164
164
  type: "function",
165
165
  },
166
166
  ];
167
- var IACL__factory = /** @class */ (function () {
168
- function IACL__factory() {
169
- }
170
- IACL__factory.createInterface = function () {
167
+ class IACL__factory {
168
+ static abi = _abi;
169
+ static createInterface() {
171
170
  return new ethers_1.utils.Interface(_abi);
172
- };
173
- IACL__factory.connect = function (address, signerOrProvider) {
171
+ }
172
+ static connect(address, signerOrProvider) {
174
173
  return new ethers_1.Contract(address, _abi, signerOrProvider);
175
- };
176
- IACL__factory.abi = _abi;
177
- return IACL__factory;
178
- }());
174
+ }
175
+ }
179
176
  exports.IACL__factory = IACL__factory;
@@ -4,8 +4,8 @@
4
4
  /* eslint-disable */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.IAccountFactoryEvents__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: [
@@ -84,16 +84,13 @@ var _abi = [
84
84
  type: "event",
85
85
  },
86
86
  ];
87
- var IAccountFactoryEvents__factory = /** @class */ (function () {
88
- function IAccountFactoryEvents__factory() {
89
- }
90
- IAccountFactoryEvents__factory.createInterface = function () {
87
+ class IAccountFactoryEvents__factory {
88
+ static abi = _abi;
89
+ static createInterface() {
91
90
  return new ethers_1.utils.Interface(_abi);
92
- };
93
- IAccountFactoryEvents__factory.connect = function (address, signerOrProvider) {
91
+ }
92
+ static connect(address, signerOrProvider) {
94
93
  return new ethers_1.Contract(address, _abi, signerOrProvider);
95
- };
96
- IAccountFactoryEvents__factory.abi = _abi;
97
- return IAccountFactoryEvents__factory;
98
- }());
94
+ }
95
+ }
99
96
  exports.IAccountFactoryEvents__factory = IAccountFactoryEvents__factory;
@@ -4,8 +4,8 @@
4
4
  /* eslint-disable */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.IAccountFactoryGetters__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: "countCreditAccounts",
@@ -97,16 +97,13 @@ var _abi = [
97
97
  type: "function",
98
98
  },
99
99
  ];
100
- var IAccountFactoryGetters__factory = /** @class */ (function () {
101
- function IAccountFactoryGetters__factory() {
102
- }
103
- IAccountFactoryGetters__factory.createInterface = function () {
100
+ class IAccountFactoryGetters__factory {
101
+ static abi = _abi;
102
+ static createInterface() {
104
103
  return new ethers_1.utils.Interface(_abi);
105
- };
106
- IAccountFactoryGetters__factory.connect = function (address, signerOrProvider) {
104
+ }
105
+ static connect(address, signerOrProvider) {
107
106
  return new ethers_1.Contract(address, _abi, signerOrProvider);
108
- };
109
- IAccountFactoryGetters__factory.abi = _abi;
110
- return IAccountFactoryGetters__factory;
111
- }());
107
+ }
108
+ }
112
109
  exports.IAccountFactoryGetters__factory = IAccountFactoryGetters__factory;
@@ -4,8 +4,8 @@
4
4
  /* eslint-disable */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.IAccountFactory__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: [
@@ -224,16 +224,13 @@ var _abi = [
224
224
  type: "function",
225
225
  },
226
226
  ];
227
- var IAccountFactory__factory = /** @class */ (function () {
228
- function IAccountFactory__factory() {
229
- }
230
- IAccountFactory__factory.createInterface = function () {
227
+ class IAccountFactory__factory {
228
+ static abi = _abi;
229
+ static createInterface() {
231
230
  return new ethers_1.utils.Interface(_abi);
232
- };
233
- IAccountFactory__factory.connect = function (address, signerOrProvider) {
231
+ }
232
+ static connect(address, signerOrProvider) {
234
233
  return new ethers_1.Contract(address, _abi, signerOrProvider);
235
- };
236
- IAccountFactory__factory.abi = _abi;
237
- return IAccountFactory__factory;
238
- }());
234
+ }
235
+ }
239
236
  exports.IAccountFactory__factory = IAccountFactory__factory;
@@ -4,8 +4,8 @@
4
4
  /* eslint-disable */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.IAddressProviderEvents__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: [
@@ -26,16 +26,13 @@ var _abi = [
26
26
  type: "event",
27
27
  },
28
28
  ];
29
- var IAddressProviderEvents__factory = /** @class */ (function () {
30
- function IAddressProviderEvents__factory() {
31
- }
32
- IAddressProviderEvents__factory.createInterface = function () {
29
+ class IAddressProviderEvents__factory {
30
+ static abi = _abi;
31
+ static createInterface() {
33
32
  return new ethers_1.utils.Interface(_abi);
34
- };
35
- IAddressProviderEvents__factory.connect = function (address, signerOrProvider) {
33
+ }
34
+ static connect(address, signerOrProvider) {
36
35
  return new ethers_1.Contract(address, _abi, signerOrProvider);
37
- };
38
- IAddressProviderEvents__factory.abi = _abi;
39
- return IAddressProviderEvents__factory;
40
- }());
36
+ }
37
+ }
41
38
  exports.IAddressProviderEvents__factory = IAddressProviderEvents__factory;
@@ -4,8 +4,8 @@
4
4
  /* eslint-disable */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.IAddressProvider__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: [
@@ -169,16 +169,13 @@ var _abi = [
169
169
  type: "function",
170
170
  },
171
171
  ];
172
- var IAddressProvider__factory = /** @class */ (function () {
173
- function IAddressProvider__factory() {
174
- }
175
- IAddressProvider__factory.createInterface = function () {
172
+ class IAddressProvider__factory {
173
+ static abi = _abi;
174
+ static createInterface() {
176
175
  return new ethers_1.utils.Interface(_abi);
177
- };
178
- IAddressProvider__factory.connect = function (address, signerOrProvider) {
176
+ }
177
+ static connect(address, signerOrProvider) {
179
178
  return new ethers_1.Contract(address, _abi, signerOrProvider);
180
- };
181
- IAddressProvider__factory.abi = _abi;
182
- return IAddressProvider__factory;
183
- }());
179
+ }
180
+ }
184
181
  exports.IAddressProvider__factory = IAddressProvider__factory;
@@ -4,8 +4,8 @@
4
4
  /* eslint-disable */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.IAirdropDistributorEvents__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: [
@@ -76,16 +76,13 @@ var _abi = [
76
76
  type: "event",
77
77
  },
78
78
  ];
79
- var IAirdropDistributorEvents__factory = /** @class */ (function () {
80
- function IAirdropDistributorEvents__factory() {
81
- }
82
- IAirdropDistributorEvents__factory.createInterface = function () {
79
+ class IAirdropDistributorEvents__factory {
80
+ static abi = _abi;
81
+ static createInterface() {
83
82
  return new ethers_1.utils.Interface(_abi);
84
- };
85
- IAirdropDistributorEvents__factory.connect = function (address, signerOrProvider) {
83
+ }
84
+ static connect(address, signerOrProvider) {
86
85
  return new ethers_1.Contract(address, _abi, signerOrProvider);
87
- };
88
- IAirdropDistributorEvents__factory.abi = _abi;
89
- return IAirdropDistributorEvents__factory;
90
- }());
86
+ }
87
+ }
91
88
  exports.IAirdropDistributorEvents__factory = IAirdropDistributorEvents__factory;
@@ -4,8 +4,8 @@
4
4
  /* eslint-disable */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.IAirdropDistributor__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: [
@@ -149,16 +149,13 @@ var _abi = [
149
149
  type: "function",
150
150
  },
151
151
  ];
152
- var IAirdropDistributor__factory = /** @class */ (function () {
153
- function IAirdropDistributor__factory() {
154
- }
155
- IAirdropDistributor__factory.createInterface = function () {
152
+ class IAirdropDistributor__factory {
153
+ static abi = _abi;
154
+ static createInterface() {
156
155
  return new ethers_1.utils.Interface(_abi);
157
- };
158
- IAirdropDistributor__factory.connect = function (address, signerOrProvider) {
156
+ }
157
+ static connect(address, signerOrProvider) {
159
158
  return new ethers_1.Contract(address, _abi, signerOrProvider);
160
- };
161
- IAirdropDistributor__factory.abi = _abi;
162
- return IAirdropDistributor__factory;
163
- }());
159
+ }
160
+ }
164
161
  exports.IAirdropDistributor__factory = IAirdropDistributor__factory;
@@ -4,8 +4,8 @@
4
4
  /* eslint-disable */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.IContractsRegisterEvents__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: [
@@ -33,16 +33,13 @@ var _abi = [
33
33
  type: "event",
34
34
  },
35
35
  ];
36
- var IContractsRegisterEvents__factory = /** @class */ (function () {
37
- function IContractsRegisterEvents__factory() {
38
- }
39
- IContractsRegisterEvents__factory.createInterface = function () {
36
+ class IContractsRegisterEvents__factory {
37
+ static abi = _abi;
38
+ static createInterface() {
40
39
  return new ethers_1.utils.Interface(_abi);
41
- };
42
- IContractsRegisterEvents__factory.connect = function (address, signerOrProvider) {
40
+ }
41
+ static connect(address, signerOrProvider) {
43
42
  return new ethers_1.Contract(address, _abi, signerOrProvider);
44
- };
45
- IContractsRegisterEvents__factory.abi = _abi;
46
- return IContractsRegisterEvents__factory;
47
- }());
43
+ }
44
+ }
48
45
  exports.IContractsRegisterEvents__factory = IContractsRegisterEvents__factory;
@@ -4,8 +4,8 @@
4
4
  /* eslint-disable */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.IContractsRegister__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: [
@@ -174,16 +174,13 @@ var _abi = [
174
174
  type: "function",
175
175
  },
176
176
  ];
177
- var IContractsRegister__factory = /** @class */ (function () {
178
- function IContractsRegister__factory() {
179
- }
180
- IContractsRegister__factory.createInterface = function () {
177
+ class IContractsRegister__factory {
178
+ static abi = _abi;
179
+ static createInterface() {
181
180
  return new ethers_1.utils.Interface(_abi);
182
- };
183
- IContractsRegister__factory.connect = function (address, signerOrProvider) {
181
+ }
182
+ static connect(address, signerOrProvider) {
184
183
  return new ethers_1.Contract(address, _abi, signerOrProvider);
185
- };
186
- IContractsRegister__factory.abi = _abi;
187
- return IContractsRegister__factory;
188
- }());
184
+ }
185
+ }
189
186
  exports.IContractsRegister__factory = IContractsRegister__factory;
@@ -4,8 +4,8 @@
4
4
  /* eslint-disable */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ICrediAccountExceptions__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: "CallerNotCreditManagerException",
@@ -17,16 +17,13 @@ var _abi = [
17
17
  type: "error",
18
18
  },
19
19
  ];
20
- var ICrediAccountExceptions__factory = /** @class */ (function () {
21
- function ICrediAccountExceptions__factory() {
22
- }
23
- ICrediAccountExceptions__factory.createInterface = function () {
20
+ class ICrediAccountExceptions__factory {
21
+ static abi = _abi;
22
+ static createInterface() {
24
23
  return new ethers_1.utils.Interface(_abi);
25
- };
26
- ICrediAccountExceptions__factory.connect = function (address, signerOrProvider) {
24
+ }
25
+ static connect(address, signerOrProvider) {
27
26
  return new ethers_1.Contract(address, _abi, signerOrProvider);
28
- };
29
- ICrediAccountExceptions__factory.abi = _abi;
30
- return ICrediAccountExceptions__factory;
31
- }());
27
+ }
28
+ }
32
29
  exports.ICrediAccountExceptions__factory = ICrediAccountExceptions__factory;
@@ -4,8 +4,8 @@
4
4
  /* eslint-disable */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ICreditAccount__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: "CallerNotCreditManagerException",
@@ -208,16 +208,13 @@ var _abi = [
208
208
  type: "function",
209
209
  },
210
210
  ];
211
- var ICreditAccount__factory = /** @class */ (function () {
212
- function ICreditAccount__factory() {
213
- }
214
- ICreditAccount__factory.createInterface = function () {
211
+ class ICreditAccount__factory {
212
+ static abi = _abi;
213
+ static createInterface() {
215
214
  return new ethers_1.utils.Interface(_abi);
216
- };
217
- ICreditAccount__factory.connect = function (address, signerOrProvider) {
215
+ }
216
+ static connect(address, signerOrProvider) {
218
217
  return new ethers_1.Contract(address, _abi, signerOrProvider);
219
- };
220
- ICreditAccount__factory.abi = _abi;
221
- return ICreditAccount__factory;
222
- }());
218
+ }
219
+ }
223
220
  exports.ICreditAccount__factory = ICreditAccount__factory;
@@ -4,8 +4,8 @@
4
4
  /* eslint-disable */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ICreditConfiguratorEvents__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: [
@@ -296,16 +296,13 @@ var _abi = [
296
296
  type: "event",
297
297
  },
298
298
  ];
299
- var ICreditConfiguratorEvents__factory = /** @class */ (function () {
300
- function ICreditConfiguratorEvents__factory() {
301
- }
302
- ICreditConfiguratorEvents__factory.createInterface = function () {
299
+ class ICreditConfiguratorEvents__factory {
300
+ static abi = _abi;
301
+ static createInterface() {
303
302
  return new ethers_1.utils.Interface(_abi);
304
- };
305
- ICreditConfiguratorEvents__factory.connect = function (address, signerOrProvider) {
303
+ }
304
+ static connect(address, signerOrProvider) {
306
305
  return new ethers_1.Contract(address, _abi, signerOrProvider);
307
- };
308
- ICreditConfiguratorEvents__factory.abi = _abi;
309
- return ICreditConfiguratorEvents__factory;
310
- }());
306
+ }
307
+ }
311
308
  exports.ICreditConfiguratorEvents__factory = ICreditConfiguratorEvents__factory;
@@ -4,8 +4,8 @@
4
4
  /* eslint-disable */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ICreditConfiguratorExceptions__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: "AdapterUsedTwiceException",
@@ -52,16 +52,13 @@ var _abi = [
52
52
  type: "error",
53
53
  },
54
54
  ];
55
- var ICreditConfiguratorExceptions__factory = /** @class */ (function () {
56
- function ICreditConfiguratorExceptions__factory() {
57
- }
58
- ICreditConfiguratorExceptions__factory.createInterface = function () {
55
+ class ICreditConfiguratorExceptions__factory {
56
+ static abi = _abi;
57
+ static createInterface() {
59
58
  return new ethers_1.utils.Interface(_abi);
60
- };
61
- ICreditConfiguratorExceptions__factory.connect = function (address, signerOrProvider) {
59
+ }
60
+ static connect(address, signerOrProvider) {
62
61
  return new ethers_1.Contract(address, _abi, signerOrProvider);
63
- };
64
- ICreditConfiguratorExceptions__factory.abi = _abi;
65
- return ICreditConfiguratorExceptions__factory;
66
- }());
62
+ }
63
+ }
67
64
  exports.ICreditConfiguratorExceptions__factory = ICreditConfiguratorExceptions__factory;
@@ -4,8 +4,8 @@
4
4
  /* eslint-disable */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ICreditConfigurator__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: "AdapterUsedTwiceException",
@@ -718,16 +718,13 @@ var _abi = [
718
718
  type: "function",
719
719
  },
720
720
  ];
721
- var ICreditConfigurator__factory = /** @class */ (function () {
722
- function ICreditConfigurator__factory() {
723
- }
724
- ICreditConfigurator__factory.createInterface = function () {
721
+ class ICreditConfigurator__factory {
722
+ static abi = _abi;
723
+ static createInterface() {
725
724
  return new ethers_1.utils.Interface(_abi);
726
- };
727
- ICreditConfigurator__factory.connect = function (address, signerOrProvider) {
725
+ }
726
+ static connect(address, signerOrProvider) {
728
727
  return new ethers_1.Contract(address, _abi, signerOrProvider);
729
- };
730
- ICreditConfigurator__factory.abi = _abi;
731
- return ICreditConfigurator__factory;
732
- }());
728
+ }
729
+ }
733
730
  exports.ICreditConfigurator__factory = ICreditConfigurator__factory;