@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.
- package/lib/apy/convexAPY.d.ts +10 -10
- package/lib/apy/convexAPY.js +100 -121
- package/lib/apy/curveAPY.d.ts +3 -4
- package/lib/apy/curveAPY.js +57 -111
- package/lib/apy/index.js +4 -6
- package/lib/apy/lidoAPY.d.ts +1 -2
- package/lib/apy/lidoAPY.js +14 -62
- package/lib/apy/yearnAPY.d.ts +2 -3
- package/lib/apy/yearnAPY.js +26 -82
- package/lib/contracts/contracts.js +9 -22
- package/lib/contracts/contractsRegister.js +39 -51
- package/lib/contracts/protocols.js +10 -11
- package/lib/core/adapter.js +9 -4
- package/lib/core/assets.d.ts +6 -7
- package/lib/core/assets.js +60 -70
- package/lib/core/chains.js +30 -80
- package/lib/core/constants.d.ts +9 -10
- package/lib/core/constants.js +9 -12
- package/lib/core/creditAccount.d.ts +20 -20
- package/lib/core/creditAccount.js +123 -134
- package/lib/core/creditAccount.spec.js +50 -52
- package/lib/core/creditManager.d.ts +26 -26
- package/lib/core/creditManager.js +172 -136
- package/lib/core/creditManager.spec.js +59 -61
- package/lib/core/creditSession.d.ts +12 -13
- package/lib/core/creditSession.js +120 -77
- package/lib/core/errors.d.ts +2 -3
- package/lib/core/errors.js +11 -27
- package/lib/core/eventOrTx.js +35 -73
- package/lib/core/events.d.ts +19 -20
- package/lib/core/events.js +698 -711
- package/lib/core/operations.js +11 -5
- package/lib/core/pool/data.d.ts +29 -29
- package/lib/core/pool/data.js +153 -112
- package/lib/core/pool/operation.d.ts +1 -2
- package/lib/core/pool/operation.js +23 -35
- package/lib/core/priceOracle.d.ts +6 -6
- package/lib/core/priceOracle.js +23 -29
- package/lib/core/rewardClaimer.d.ts +2 -2
- package/lib/core/rewardClaimer.js +5 -48
- package/lib/core/rewardConvex.js +54 -114
- package/lib/core/rewardConvex.spec.js +41 -43
- package/lib/core/strategy.d.ts +5 -6
- package/lib/core/strategy.js +67 -69
- package/lib/core/strategy.spec.js +32 -34
- package/lib/core/tokenDistributor.d.ts +1 -2
- package/lib/core/trade.d.ts +6 -6
- package/lib/core/trade.js +70 -115
- package/lib/core/transactions.d.ts +21 -22
- package/lib/core/transactions.js +285 -308
- package/lib/index.d.ts +0 -2
- package/lib/index.js +0 -2
- package/lib/oracles/oracles.d.ts +1 -2
- package/lib/oracles/priceFeeds.js +2 -3
- package/lib/parsers/ERC20Parser.js +20 -38
- package/lib/parsers/abstractParser.js +33 -31
- package/lib/parsers/addressProviderParser.js +12 -30
- package/lib/parsers/airdropDistributorParser.js +12 -30
- package/lib/parsers/convexBaseRewardPoolAdapterParser.js +24 -42
- package/lib/parsers/convexBaseRewardPoolAdapterParser.spec.js +11 -11
- package/lib/parsers/convexBoosterAdapterParser.js +26 -44
- package/lib/parsers/convexBoosterAdapterParser.spec.js +10 -10
- package/lib/parsers/convextRewardPoolParser.js +12 -30
- package/lib/parsers/creditFacadeParser.js +26 -45
- package/lib/parsers/creditFacadeParser.spec.js +13 -13
- package/lib/parsers/creditManagerParser.js +12 -30
- package/lib/parsers/curveAdapterParser.js +60 -78
- package/lib/parsers/curveAdapterParser.spec.js +20 -27
- package/lib/parsers/dataCompressorParser.js +12 -30
- package/lib/parsers/lidoAdapterParser.js +15 -33
- package/lib/parsers/lidoAdapterParser.spec.js +9 -9
- package/lib/parsers/lidoOracleParser.js +12 -30
- package/lib/parsers/lidoSTETHParser.js +19 -37
- package/lib/parsers/multicallParser.js +16 -34
- package/lib/parsers/offchainOracleParser.js +13 -31
- package/lib/parsers/poolParser.js +11 -29
- package/lib/parsers/priceOracleParser.js +13 -31
- package/lib/parsers/txParser.js +86 -96
- package/lib/parsers/uniV2AdapterParser.js +35 -55
- package/lib/parsers/uniV2AdapterParser.spec.js +15 -16
- package/lib/parsers/uniV3AdapterParser.js +56 -74
- package/lib/parsers/uniV3AdapterParser.spec.js +23 -24
- package/lib/parsers/wstETHAdapterParser.js +25 -43
- package/lib/parsers/wstETHAdapterParser.spec.js +11 -11
- package/lib/parsers/yearnAdapterParser.spec.js +17 -17
- package/lib/parsers/yearnV2AdapterParser.js +25 -43
- package/lib/pathfinder/core.d.ts +3 -4
- package/lib/pathfinder/pathOptions.js +52 -101
- package/lib/pathfinder/pathOptions.spec.js +55 -57
- package/lib/pathfinder/pathfinder.d.ts +3 -3
- package/lib/pathfinder/pathfinder.js +109 -202
- package/lib/pathfinder/pathfinder.spec.js +13 -13
- package/lib/strategies/convex.js +111 -123
- package/lib/strategies/creditFacade.js +34 -37
- package/lib/strategies/curve.js +74 -80
- package/lib/strategies/lido.js +26 -32
- package/lib/strategies/uniswapV2.js +21 -24
- package/lib/strategies/uniswapV3.js +33 -36
- package/lib/strategies/yearn.js +47 -59
- package/lib/tokens/balancer.js +3 -5
- package/lib/tokens/convex.js +14 -29
- package/lib/tokens/curveLP.js +22 -28
- package/lib/tokens/gear.js +1 -1
- package/lib/tokens/normal.js +3 -5
- package/lib/tokens/token.js +29 -35
- package/lib/tokens/tokenData.d.ts +0 -9
- package/lib/tokens/tokenData.js +17 -15
- package/lib/tokens/yearn.js +3 -5
- package/lib/types/factories/@chainlink/contracts/src/v0.8/interfaces/AggregatorInterface__factory.js +9 -12
- package/lib/types/factories/@chainlink/contracts/src/v0.8/interfaces/AggregatorV2V3Interface__factory.js +9 -12
- package/lib/types/factories/@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IACL.sol/IACLEvents__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IACL.sol/IACLExceptions__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IACL.sol/IACL__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IAccountFactory.sol/IAccountFactoryEvents__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IAccountFactory.sol/IAccountFactoryGetters__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IAccountFactory.sol/IAccountFactory__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IAddressProvider.sol/IAddressProviderEvents__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IAddressProvider.sol/IAddressProvider__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IAirdropDistributor.sol/IAirdropDistributorEvents__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IAirdropDistributor.sol/IAirdropDistributor__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IContractsRegister.sol/IContractsRegisterEvents__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IContractsRegister.sol/IContractsRegister__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ICreditAccount.sol/ICrediAccountExceptions__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ICreditAccount.sol/ICreditAccount__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ICreditConfigurator.sol/ICreditConfiguratorEvents__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ICreditConfigurator.sol/ICreditConfiguratorExceptions__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ICreditConfigurator.sol/ICreditConfigurator__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ICreditFacade.sol/ICreditFacadeEvents__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ICreditFacade.sol/ICreditFacadeExceptions__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ICreditFacade.sol/ICreditFacadeExtended__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ICreditFacade.sol/ICreditFacade__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ICreditManagerV2.sol/ICreditManagerV2Events__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ICreditManagerV2.sol/ICreditManagerV2Exceptions__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ICreditManagerV2.sol/ICreditManagerV2__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IDataCompressor.sol/IDataCompressorExceptions__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IDataCompressor.sol/IDataCompressor__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IDegenDistributor.sol/IDegenDistributorEvents__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IDegenDistributor.sol/IDegenDistributor__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IDegenNFT.sol/IDegenNFTEvents__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IDegenNFT.sol/IDegenNFTExceptions__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IDegenNFT.sol/IDegenNFT__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IDieselToken.sol/IDieselTokenExceptions__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IDieselToken.sol/IDieselToken__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IInterestRateModel__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ILPPriceFeed.sol/ILPPriceFeedEvents__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ILPPriceFeed.sol/ILPPriceFeedExceptions__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ILPPriceFeed.sol/ILPPriceFeed__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IPhantomERC20__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IPoolService.sol/IPoolServiceEvents__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IPoolService.sol/IPoolService__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IPriceFeedType__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IPriceOracle.sol/IPriceOracleV2Events__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IPriceOracle.sol/IPriceOracleV2Exceptions__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IPriceOracle.sol/IPriceOracleV2Ext__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IPriceOracle.sol/IPriceOracleV2__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IVersion__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IWETHGateway__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/V1/ICreditFilter__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/V1/ICreditManager__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/adapters/IAdapter.sol/IAdapterExceptions__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/adapters/IAdapter.sol/IAdapter__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/adapters/IUniversalAdapter.sol/IUniversalAdapterExceptions__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/adapters/IUniversalAdapter.sol/IUniversalAdapter__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/external/IWETH__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/pool/PoolService__factory.js +27 -50
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/test/interfaces/ITokenTestSuite__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/IBaseRewardPool__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/IBooster__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/IClaimZap__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/IConvexToken__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/IRewards.sol/IBasicRewards__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/IRewards.sol/IRewards__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/ICrvDeposit__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/ICurveGauge__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/ICurveVoteEscrow__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/IDeposit__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/IFeeDistro__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/IMinter__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/IPools__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/IRegistry__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/IRewardFactory__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/IRewards__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/IStaker__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/IStashFactory__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/IStash__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/ITokenFactory__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/ITokenMinter__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/IVestedEscrow__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/IVoting__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/convex/Interfaces.sol/IWalletChecker__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/curve/ICurvePoolStETH__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/curve/ICurvePool_2.sol/ICurvePool2Assets__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/curve/ICurvePool_3.sol/ICurvePool3Assets__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/curve/ICurvePool_4.sol/ICurvePool4Assets__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/curve/ICurvePool__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/curve/ICurveRegistry__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/lido/ILidoOracle__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/lido/IstETH.sol/IstETHGetters__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/lido/IstETH.sol/IstETH__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/lido/IwstETH.sol/IwstETHGetters__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/lido/IwstETH.sol/IwstETH__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/lido/IwstETHGateway.sol/IwstETHGateWay__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/uniswap/IQuoter__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/uniswap/IUniswapV2Router01__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/uniswap/IUniswapV2Router02__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/uniswap/IUniswapV3.sol/ISwapRouter__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/integrations/yearn/IYVault__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/convex/IConvexV1BaseRewardPoolAdapter.sol/IConvexV1BaseRewardPoolAdapterErrors__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/convex/IConvexV1BaseRewardPoolAdapter.sol/IConvexV1BaseRewardPoolAdapter__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/convex/IConvexV1BoosterAdapter__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/curve/ICurveV1Adapter.sol/ICurveV1AdapterExceptions__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/curve/ICurveV1Adapter.sol/ICurveV1Adapter__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/curve/ICurveV1_2AssetsAdapter__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/curve/ICurveV1_3AssetsAdapter__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/curve/ICurveV1_4AssetsAdapter__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/lido/ILidoV1Adapter.sol/ILidoV1AdapterEvents__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/lido/ILidoV1Adapter.sol/ILidoV1AdapterExceptions__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/lido/ILidoV1Adapter.sol/ILidoV1Adapter__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/lido/IwstETHV1Adapter__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/uniswap/IUniswapPathChecker__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/uniswap/IUniswapV2Adapter.sol/IUniswapV2AdapterExceptions__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/uniswap/IUniswapV2Adapter.sol/IUniswapV2Adapter__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/uniswap/IUniswapV3Adapter.sol/IUniswapV3AdapterExceptions__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/uniswap/IUniswapV3Adapter.sol/IUniswapV3Adapter__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/yearn/IYearnV2Adapter__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/test/config/SupportedContracts.sol/ISupportedContracts__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/test/mocks/integrations/LidoMock.sol/ILidoMockEvents__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/IClosePathResolver__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/IDepositor.sol/IDepositorOptions__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/IDepositor.sol/IDepositor__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/IGasPricer__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/ILPWorker.sol/ILPWorkerOptions__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/ILPWorker.sol/ILPWorker__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/IPathResolver__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/IRouterComponent__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/IRouter__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/ISwapAggregator__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/ISwapper__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/IWithdrawer.sol/IWithdrawerOptions__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/IWithdrawer.sol/IWithdrawer__factory.js +9 -12
- package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/IWrapper__factory.js +9 -12
- package/lib/types/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.js +9 -12
- package/lib/types/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory.js +9 -12
- package/lib/types/factories/@openzeppelin/contracts/token/ERC721/IERC721Receiver__factory.js +9 -12
- package/lib/types/factories/@openzeppelin/contracts/token/ERC721/IERC721__factory.js +9 -12
- package/lib/types/factories/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata__factory.js +9 -12
- package/lib/types/factories/@openzeppelin/contracts/utils/introspection/IERC165__factory.js +9 -12
- package/lib/types/factories/contracts/IGas__factory.js +9 -12
- package/lib/types/factories/contracts/IGnosisSafeSignatureValidator__factory.js +9 -12
- package/lib/types/factories/contracts/ITokenDistributor.sol/ITokenDistributorEvents__factory.js +9 -12
- package/lib/types/factories/contracts/ITokenDistributor.sol/ITokenDistributorExceptions__factory.js +9 -12
- package/lib/types/factories/contracts/ITokenDistributor.sol/ITokenDistributor__factory.js +9 -12
- package/lib/types/factories/contracts/support/IOffchainOracle__factory.js +9 -12
- package/lib/types/factories/contracts/support/MultiCall.sol/Multicall2__factory.js +27 -50
- package/lib/utils/errors.js +1 -1
- package/lib/utils/extracter.js +4 -4
- package/lib/utils/formatter.d.ts +8 -8
- package/lib/utils/formatter.js +73 -87
- package/lib/utils/loading.js +3 -3
- package/lib/utils/mappers.js +7 -34
- package/lib/utils/math.d.ts +10 -7
- package/lib/utils/math.js +22 -25
- package/lib/utils/multicall.js +32 -98
- package/lib/utils/price.d.ts +3 -4
- package/lib/utils/price.js +8 -20
- package/lib/utils/repeater.js +12 -53
- package/lib/utils/validate.js +2 -2
- package/lib/watchers/creditAccountWatcher.js +136 -237
- package/lib/watchers/creditAccountWatcher.spec.js +51 -68
- package/lib/watchers/creditManagerWatcher.js +21 -71
- package/lib/watchers/creditManagerWatcher.spec.js +20 -23
- package/package.json +2 -2
- package/lib/core/history.d.ts +0 -42
- package/lib/core/history.js +0 -2
- package/lib/core/wcOperation/abstractOperations.d.ts +0 -23
- package/lib/core/wcOperation/abstractOperations.js +0 -39
- package/lib/core/wcOperation/index.d.ts +0 -11
- package/lib/core/wcOperation/index.js +0 -30
- package/lib/core/wcOperation/operations.d.ts +0 -88
- package/lib/core/wcOperation/operations.js +0 -146
- package/lib/core/wcOperation/types.d.ts +0 -15
- 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.ILPPriceFeedExceptions__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
inputs: [],
|
|
11
11
|
name: "IncorrectLimitsException",
|
|
@@ -17,16 +17,13 @@ var _abi = [
|
|
|
17
17
|
type: "error",
|
|
18
18
|
},
|
|
19
19
|
];
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
ILPPriceFeedExceptions__factory.createInterface = function () {
|
|
20
|
+
class ILPPriceFeedExceptions__factory {
|
|
21
|
+
static abi = _abi;
|
|
22
|
+
static createInterface() {
|
|
24
23
|
return new ethers_1.utils.Interface(_abi);
|
|
25
|
-
}
|
|
26
|
-
|
|
24
|
+
}
|
|
25
|
+
static connect(address, signerOrProvider) {
|
|
27
26
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
return ILPPriceFeedExceptions__factory;
|
|
31
|
-
}());
|
|
27
|
+
}
|
|
28
|
+
}
|
|
32
29
|
exports.ILPPriceFeedExceptions__factory = ILPPriceFeedExceptions__factory;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ILPPriceFeed__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
inputs: [],
|
|
11
11
|
name: "IncorrectLimitsException",
|
|
@@ -225,16 +225,13 @@ var _abi = [
|
|
|
225
225
|
type: "function",
|
|
226
226
|
},
|
|
227
227
|
];
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
ILPPriceFeed__factory.createInterface = function () {
|
|
228
|
+
class ILPPriceFeed__factory {
|
|
229
|
+
static abi = _abi;
|
|
230
|
+
static createInterface() {
|
|
232
231
|
return new ethers_1.utils.Interface(_abi);
|
|
233
|
-
}
|
|
234
|
-
|
|
232
|
+
}
|
|
233
|
+
static connect(address, signerOrProvider) {
|
|
235
234
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
return ILPPriceFeed__factory;
|
|
239
|
-
}());
|
|
235
|
+
}
|
|
236
|
+
}
|
|
240
237
|
exports.ILPPriceFeed__factory = ILPPriceFeed__factory;
|
package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IPhantomERC20__factory.js
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.IPhantomERC20__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
anonymous: false,
|
|
11
11
|
inputs: [
|
|
@@ -242,16 +242,13 @@ var _abi = [
|
|
|
242
242
|
type: "function",
|
|
243
243
|
},
|
|
244
244
|
];
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
IPhantomERC20__factory.createInterface = function () {
|
|
245
|
+
class IPhantomERC20__factory {
|
|
246
|
+
static abi = _abi;
|
|
247
|
+
static createInterface() {
|
|
249
248
|
return new ethers_1.utils.Interface(_abi);
|
|
250
|
-
}
|
|
251
|
-
|
|
249
|
+
}
|
|
250
|
+
static connect(address, signerOrProvider) {
|
|
252
251
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
return IPhantomERC20__factory;
|
|
256
|
-
}());
|
|
252
|
+
}
|
|
253
|
+
}
|
|
257
254
|
exports.IPhantomERC20__factory = IPhantomERC20__factory;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.IPoolServiceEvents__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
anonymous: false,
|
|
11
11
|
inputs: [
|
|
@@ -203,16 +203,13 @@ var _abi = [
|
|
|
203
203
|
type: "event",
|
|
204
204
|
},
|
|
205
205
|
];
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
IPoolServiceEvents__factory.createInterface = function () {
|
|
206
|
+
class IPoolServiceEvents__factory {
|
|
207
|
+
static abi = _abi;
|
|
208
|
+
static createInterface() {
|
|
210
209
|
return new ethers_1.utils.Interface(_abi);
|
|
211
|
-
}
|
|
212
|
-
|
|
210
|
+
}
|
|
211
|
+
static connect(address, signerOrProvider) {
|
|
213
212
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
return IPoolServiceEvents__factory;
|
|
217
|
-
}());
|
|
213
|
+
}
|
|
214
|
+
}
|
|
218
215
|
exports.IPoolServiceEvents__factory = IPoolServiceEvents__factory;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.IPoolService__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
anonymous: false,
|
|
11
11
|
inputs: [
|
|
@@ -562,16 +562,13 @@ var _abi = [
|
|
|
562
562
|
type: "function",
|
|
563
563
|
},
|
|
564
564
|
];
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
IPoolService__factory.createInterface = function () {
|
|
565
|
+
class IPoolService__factory {
|
|
566
|
+
static abi = _abi;
|
|
567
|
+
static createInterface() {
|
|
569
568
|
return new ethers_1.utils.Interface(_abi);
|
|
570
|
-
}
|
|
571
|
-
|
|
569
|
+
}
|
|
570
|
+
static connect(address, signerOrProvider) {
|
|
572
571
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
573
|
-
}
|
|
574
|
-
|
|
575
|
-
return IPoolService__factory;
|
|
576
|
-
}());
|
|
572
|
+
}
|
|
573
|
+
}
|
|
577
574
|
exports.IPoolService__factory = IPoolService__factory;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.IPriceFeedType__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
inputs: [],
|
|
11
11
|
name: "priceFeedType",
|
|
@@ -33,16 +33,13 @@ var _abi = [
|
|
|
33
33
|
type: "function",
|
|
34
34
|
},
|
|
35
35
|
];
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
IPriceFeedType__factory.createInterface = function () {
|
|
36
|
+
class IPriceFeedType__factory {
|
|
37
|
+
static abi = _abi;
|
|
38
|
+
static createInterface() {
|
|
40
39
|
return new ethers_1.utils.Interface(_abi);
|
|
41
|
-
}
|
|
42
|
-
|
|
40
|
+
}
|
|
41
|
+
static connect(address, signerOrProvider) {
|
|
43
42
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
return IPriceFeedType__factory;
|
|
47
|
-
}());
|
|
43
|
+
}
|
|
44
|
+
}
|
|
48
45
|
exports.IPriceFeedType__factory = IPriceFeedType__factory;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.IPriceOracleV2Events__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
IPriceOracleV2Events__factory.createInterface = function () {
|
|
29
|
+
class IPriceOracleV2Events__factory {
|
|
30
|
+
static abi = _abi;
|
|
31
|
+
static createInterface() {
|
|
33
32
|
return new ethers_1.utils.Interface(_abi);
|
|
34
|
-
}
|
|
35
|
-
|
|
33
|
+
}
|
|
34
|
+
static connect(address, signerOrProvider) {
|
|
36
35
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
return IPriceOracleV2Events__factory;
|
|
40
|
-
}());
|
|
36
|
+
}
|
|
37
|
+
}
|
|
41
38
|
exports.IPriceOracleV2Events__factory = IPriceOracleV2Events__factory;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.IPriceOracleV2Exceptions__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
inputs: [],
|
|
11
11
|
name: "ChainPriceStaleException",
|
|
@@ -22,16 +22,13 @@ var _abi = [
|
|
|
22
22
|
type: "error",
|
|
23
23
|
},
|
|
24
24
|
];
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
IPriceOracleV2Exceptions__factory.createInterface = function () {
|
|
25
|
+
class IPriceOracleV2Exceptions__factory {
|
|
26
|
+
static abi = _abi;
|
|
27
|
+
static createInterface() {
|
|
29
28
|
return new ethers_1.utils.Interface(_abi);
|
|
30
|
-
}
|
|
31
|
-
|
|
29
|
+
}
|
|
30
|
+
static connect(address, signerOrProvider) {
|
|
32
31
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
return IPriceOracleV2Exceptions__factory;
|
|
36
|
-
}());
|
|
32
|
+
}
|
|
33
|
+
}
|
|
37
34
|
exports.IPriceOracleV2Exceptions__factory = IPriceOracleV2Exceptions__factory;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.IPriceOracleV2Ext__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
inputs: [],
|
|
11
11
|
name: "ChainPriceStaleException",
|
|
@@ -255,16 +255,13 @@ var _abi = [
|
|
|
255
255
|
type: "function",
|
|
256
256
|
},
|
|
257
257
|
];
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
IPriceOracleV2Ext__factory.createInterface = function () {
|
|
258
|
+
class IPriceOracleV2Ext__factory {
|
|
259
|
+
static abi = _abi;
|
|
260
|
+
static createInterface() {
|
|
262
261
|
return new ethers_1.utils.Interface(_abi);
|
|
263
|
-
}
|
|
264
|
-
|
|
262
|
+
}
|
|
263
|
+
static connect(address, signerOrProvider) {
|
|
265
264
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
return IPriceOracleV2Ext__factory;
|
|
269
|
-
}());
|
|
265
|
+
}
|
|
266
|
+
}
|
|
270
267
|
exports.IPriceOracleV2Ext__factory = IPriceOracleV2Ext__factory;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.IPriceOracleV2__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
inputs: [],
|
|
11
11
|
name: "ChainPriceStaleException",
|
|
@@ -237,16 +237,13 @@ var _abi = [
|
|
|
237
237
|
type: "function",
|
|
238
238
|
},
|
|
239
239
|
];
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
IPriceOracleV2__factory.createInterface = function () {
|
|
240
|
+
class IPriceOracleV2__factory {
|
|
241
|
+
static abi = _abi;
|
|
242
|
+
static createInterface() {
|
|
244
243
|
return new ethers_1.utils.Interface(_abi);
|
|
245
|
-
}
|
|
246
|
-
|
|
244
|
+
}
|
|
245
|
+
static connect(address, signerOrProvider) {
|
|
247
246
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
return IPriceOracleV2__factory;
|
|
251
|
-
}());
|
|
247
|
+
}
|
|
248
|
+
}
|
|
252
249
|
exports.IPriceOracleV2__factory = IPriceOracleV2__factory;
|
package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IVersion__factory.js
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.IVersion__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
inputs: [],
|
|
11
11
|
name: "version",
|
|
@@ -20,16 +20,13 @@ var _abi = [
|
|
|
20
20
|
type: "function",
|
|
21
21
|
},
|
|
22
22
|
];
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
IVersion__factory.createInterface = function () {
|
|
23
|
+
class IVersion__factory {
|
|
24
|
+
static abi = _abi;
|
|
25
|
+
static createInterface() {
|
|
27
26
|
return new ethers_1.utils.Interface(_abi);
|
|
28
|
-
}
|
|
29
|
-
|
|
27
|
+
}
|
|
28
|
+
static connect(address, signerOrProvider) {
|
|
30
29
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
return IVersion__factory;
|
|
34
|
-
}());
|
|
30
|
+
}
|
|
31
|
+
}
|
|
35
32
|
exports.IVersion__factory = IVersion__factory;
|
package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/IWETHGateway__factory.js
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.IWETHGateway__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
inputs: [
|
|
11
11
|
{
|
|
@@ -71,16 +71,13 @@ var _abi = [
|
|
|
71
71
|
type: "function",
|
|
72
72
|
},
|
|
73
73
|
];
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
IWETHGateway__factory.createInterface = function () {
|
|
74
|
+
class IWETHGateway__factory {
|
|
75
|
+
static abi = _abi;
|
|
76
|
+
static createInterface() {
|
|
78
77
|
return new ethers_1.utils.Interface(_abi);
|
|
79
|
-
}
|
|
80
|
-
|
|
78
|
+
}
|
|
79
|
+
static connect(address, signerOrProvider) {
|
|
81
80
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
return IWETHGateway__factory;
|
|
85
|
-
}());
|
|
81
|
+
}
|
|
82
|
+
}
|
|
86
83
|
exports.IWETHGateway__factory = IWETHGateway__factory;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ICreditFilter__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
anonymous: false,
|
|
11
11
|
inputs: [
|
|
@@ -685,16 +685,13 @@ var _abi = [
|
|
|
685
685
|
type: "function",
|
|
686
686
|
},
|
|
687
687
|
];
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
ICreditFilter__factory.createInterface = function () {
|
|
688
|
+
class ICreditFilter__factory {
|
|
689
|
+
static abi = _abi;
|
|
690
|
+
static createInterface() {
|
|
692
691
|
return new ethers_1.utils.Interface(_abi);
|
|
693
|
-
}
|
|
694
|
-
|
|
692
|
+
}
|
|
693
|
+
static connect(address, signerOrProvider) {
|
|
695
694
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
696
|
-
}
|
|
697
|
-
|
|
698
|
-
return ICreditFilter__factory;
|
|
699
|
-
}());
|
|
695
|
+
}
|
|
696
|
+
}
|
|
700
697
|
exports.ICreditFilter__factory = ICreditFilter__factory;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ICreditManager__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
anonymous: false,
|
|
11
11
|
inputs: [
|
|
@@ -754,16 +754,13 @@ var _abi = [
|
|
|
754
754
|
type: "function",
|
|
755
755
|
},
|
|
756
756
|
];
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
ICreditManager__factory.createInterface = function () {
|
|
757
|
+
class ICreditManager__factory {
|
|
758
|
+
static abi = _abi;
|
|
759
|
+
static createInterface() {
|
|
761
760
|
return new ethers_1.utils.Interface(_abi);
|
|
762
|
-
}
|
|
763
|
-
|
|
761
|
+
}
|
|
762
|
+
static connect(address, signerOrProvider) {
|
|
764
763
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
765
|
-
}
|
|
766
|
-
|
|
767
|
-
return ICreditManager__factory;
|
|
768
|
-
}());
|
|
764
|
+
}
|
|
765
|
+
}
|
|
769
766
|
exports.ICreditManager__factory = ICreditManager__factory;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.IAdapterExceptions__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
IAdapterExceptions__factory.createInterface = function () {
|
|
21
|
+
class IAdapterExceptions__factory {
|
|
22
|
+
static abi = _abi;
|
|
23
|
+
static createInterface() {
|
|
25
24
|
return new ethers_1.utils.Interface(_abi);
|
|
26
|
-
}
|
|
27
|
-
|
|
25
|
+
}
|
|
26
|
+
static connect(address, signerOrProvider) {
|
|
28
27
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
return IAdapterExceptions__factory;
|
|
32
|
-
}());
|
|
28
|
+
}
|
|
29
|
+
}
|
|
33
30
|
exports.IAdapterExceptions__factory = IAdapterExceptions__factory;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.IAdapter__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
inputs: [
|
|
11
11
|
{
|
|
@@ -70,16 +70,13 @@ var _abi = [
|
|
|
70
70
|
type: "function",
|
|
71
71
|
},
|
|
72
72
|
];
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
IAdapter__factory.createInterface = function () {
|
|
73
|
+
class IAdapter__factory {
|
|
74
|
+
static abi = _abi;
|
|
75
|
+
static createInterface() {
|
|
77
76
|
return new ethers_1.utils.Interface(_abi);
|
|
78
|
-
}
|
|
79
|
-
|
|
77
|
+
}
|
|
78
|
+
static connect(address, signerOrProvider) {
|
|
80
79
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
return IAdapter__factory;
|
|
84
|
-
}());
|
|
80
|
+
}
|
|
81
|
+
}
|
|
85
82
|
exports.IAdapter__factory = IAdapter__factory;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.IUniversalAdapterExceptions__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
inputs: [
|
|
11
11
|
{
|
|
@@ -23,16 +23,13 @@ var _abi = [
|
|
|
23
23
|
type: "error",
|
|
24
24
|
},
|
|
25
25
|
];
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
IUniversalAdapterExceptions__factory.createInterface = function () {
|
|
26
|
+
class IUniversalAdapterExceptions__factory {
|
|
27
|
+
static abi = _abi;
|
|
28
|
+
static createInterface() {
|
|
30
29
|
return new ethers_1.utils.Interface(_abi);
|
|
31
|
-
}
|
|
32
|
-
|
|
30
|
+
}
|
|
31
|
+
static connect(address, signerOrProvider) {
|
|
33
32
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
return IUniversalAdapterExceptions__factory;
|
|
37
|
-
}());
|
|
33
|
+
}
|
|
34
|
+
}
|
|
38
35
|
exports.IUniversalAdapterExceptions__factory = IUniversalAdapterExceptions__factory;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.IUniversalAdapter__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
inputs: [
|
|
11
11
|
{
|
|
@@ -141,16 +141,13 @@ var _abi = [
|
|
|
141
141
|
type: "function",
|
|
142
142
|
},
|
|
143
143
|
];
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
IUniversalAdapter__factory.createInterface = function () {
|
|
144
|
+
class IUniversalAdapter__factory {
|
|
145
|
+
static abi = _abi;
|
|
146
|
+
static createInterface() {
|
|
148
147
|
return new ethers_1.utils.Interface(_abi);
|
|
149
|
-
}
|
|
150
|
-
|
|
148
|
+
}
|
|
149
|
+
static connect(address, signerOrProvider) {
|
|
151
150
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
return IUniversalAdapter__factory;
|
|
155
|
-
}());
|
|
151
|
+
}
|
|
152
|
+
}
|
|
156
153
|
exports.IUniversalAdapter__factory = IUniversalAdapter__factory;
|