@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.
- 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 +3 -3
- package/lib/core/rewardClaimer.js +5 -48
- package/lib/core/rewardConvex.d.ts +1 -1
- package/lib/core/rewardConvex.js +58 -118
- package/lib/core/rewardConvex.spec.js +56 -58
- 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.IDepositorOptions__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
inputs: [
|
|
11
11
|
{
|
|
@@ -1043,16 +1043,13 @@ var _abi = [
|
|
|
1043
1043
|
type: "function",
|
|
1044
1044
|
},
|
|
1045
1045
|
];
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
IDepositorOptions__factory.createInterface = function () {
|
|
1046
|
+
class IDepositorOptions__factory {
|
|
1047
|
+
static abi = _abi;
|
|
1048
|
+
static createInterface() {
|
|
1050
1049
|
return new ethers_1.utils.Interface(_abi);
|
|
1051
|
-
}
|
|
1052
|
-
|
|
1050
|
+
}
|
|
1051
|
+
static connect(address, signerOrProvider) {
|
|
1053
1052
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
1054
|
-
}
|
|
1055
|
-
|
|
1056
|
-
return IDepositorOptions__factory;
|
|
1057
|
-
}());
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1058
1055
|
exports.IDepositorOptions__factory = IDepositorOptions__factory;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.IDepositor__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
inputs: [
|
|
11
11
|
{
|
|
@@ -773,16 +773,13 @@ var _abi = [
|
|
|
773
773
|
type: "function",
|
|
774
774
|
},
|
|
775
775
|
];
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
IDepositor__factory.createInterface = function () {
|
|
776
|
+
class IDepositor__factory {
|
|
777
|
+
static abi = _abi;
|
|
778
|
+
static createInterface() {
|
|
780
779
|
return new ethers_1.utils.Interface(_abi);
|
|
781
|
-
}
|
|
782
|
-
|
|
780
|
+
}
|
|
781
|
+
static connect(address, signerOrProvider) {
|
|
783
782
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
784
|
-
}
|
|
785
|
-
|
|
786
|
-
return IDepositor__factory;
|
|
787
|
-
}());
|
|
783
|
+
}
|
|
784
|
+
}
|
|
788
785
|
exports.IDepositor__factory = IDepositor__factory;
|
package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/IGasPricer__factory.js
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.IGasPricer__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
inputs: [
|
|
11
11
|
{
|
|
@@ -26,16 +26,13 @@ var _abi = [
|
|
|
26
26
|
type: "function",
|
|
27
27
|
},
|
|
28
28
|
];
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
IGasPricer__factory.createInterface = function () {
|
|
29
|
+
class IGasPricer__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 IGasPricer__factory;
|
|
40
|
-
}());
|
|
36
|
+
}
|
|
37
|
+
}
|
|
41
38
|
exports.IGasPricer__factory = IGasPricer__factory;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ILPWorkerOptions__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
inputs: [],
|
|
11
11
|
name: "getComponentId",
|
|
@@ -283,16 +283,13 @@ var _abi = [
|
|
|
283
283
|
type: "function",
|
|
284
284
|
},
|
|
285
285
|
];
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
ILPWorkerOptions__factory.createInterface = function () {
|
|
286
|
+
class ILPWorkerOptions__factory {
|
|
287
|
+
static abi = _abi;
|
|
288
|
+
static createInterface() {
|
|
290
289
|
return new ethers_1.utils.Interface(_abi);
|
|
291
|
-
}
|
|
292
|
-
|
|
290
|
+
}
|
|
291
|
+
static connect(address, signerOrProvider) {
|
|
293
292
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
return ILPWorkerOptions__factory;
|
|
297
|
-
}());
|
|
293
|
+
}
|
|
294
|
+
}
|
|
298
295
|
exports.ILPWorkerOptions__factory = ILPWorkerOptions__factory;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ILPWorker__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
inputs: [],
|
|
11
11
|
name: "getComponentId",
|
|
@@ -278,16 +278,13 @@ var _abi = [
|
|
|
278
278
|
type: "function",
|
|
279
279
|
},
|
|
280
280
|
];
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
ILPWorker__factory.createInterface = function () {
|
|
281
|
+
class ILPWorker__factory {
|
|
282
|
+
static abi = _abi;
|
|
283
|
+
static createInterface() {
|
|
285
284
|
return new ethers_1.utils.Interface(_abi);
|
|
286
|
-
}
|
|
287
|
-
|
|
285
|
+
}
|
|
286
|
+
static connect(address, signerOrProvider) {
|
|
288
287
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
return ILPWorker__factory;
|
|
292
|
-
}());
|
|
288
|
+
}
|
|
289
|
+
}
|
|
293
290
|
exports.ILPWorker__factory = ILPWorker__factory;
|
package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/IPathResolver__factory.js
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.IPathResolver__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
inputs: [
|
|
11
11
|
{
|
|
@@ -518,16 +518,13 @@ var _abi = [
|
|
|
518
518
|
type: "function",
|
|
519
519
|
},
|
|
520
520
|
];
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
IPathResolver__factory.createInterface = function () {
|
|
521
|
+
class IPathResolver__factory {
|
|
522
|
+
static abi = _abi;
|
|
523
|
+
static createInterface() {
|
|
525
524
|
return new ethers_1.utils.Interface(_abi);
|
|
526
|
-
}
|
|
527
|
-
|
|
525
|
+
}
|
|
526
|
+
static connect(address, signerOrProvider) {
|
|
528
527
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
return IPathResolver__factory;
|
|
532
|
-
}());
|
|
528
|
+
}
|
|
529
|
+
}
|
|
533
530
|
exports.IPathResolver__factory = IPathResolver__factory;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.IRouterComponent__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
inputs: [],
|
|
11
11
|
name: "getComponentId",
|
|
@@ -33,16 +33,13 @@ var _abi = [
|
|
|
33
33
|
type: "function",
|
|
34
34
|
},
|
|
35
35
|
];
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
IRouterComponent__factory.createInterface = function () {
|
|
36
|
+
class IRouterComponent__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 IRouterComponent__factory;
|
|
47
|
-
}());
|
|
43
|
+
}
|
|
44
|
+
}
|
|
48
45
|
exports.IRouterComponent__factory = IRouterComponent__factory;
|
package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/IRouter__factory.js
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.IRouter__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
anonymous: false,
|
|
11
11
|
inputs: [
|
|
@@ -514,16 +514,13 @@ var _abi = [
|
|
|
514
514
|
type: "function",
|
|
515
515
|
},
|
|
516
516
|
];
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
IRouter__factory.createInterface = function () {
|
|
517
|
+
class IRouter__factory {
|
|
518
|
+
static abi = _abi;
|
|
519
|
+
static createInterface() {
|
|
521
520
|
return new ethers_1.utils.Interface(_abi);
|
|
522
|
-
}
|
|
523
|
-
|
|
521
|
+
}
|
|
522
|
+
static connect(address, signerOrProvider) {
|
|
524
523
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
return IRouter__factory;
|
|
528
|
-
}());
|
|
524
|
+
}
|
|
525
|
+
}
|
|
529
526
|
exports.IRouter__factory = IRouter__factory;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ISwapAggregator__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
inputs: [
|
|
11
11
|
{
|
|
@@ -1738,16 +1738,13 @@ var _abi = [
|
|
|
1738
1738
|
type: "function",
|
|
1739
1739
|
},
|
|
1740
1740
|
];
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
ISwapAggregator__factory.createInterface = function () {
|
|
1741
|
+
class ISwapAggregator__factory {
|
|
1742
|
+
static abi = _abi;
|
|
1743
|
+
static createInterface() {
|
|
1745
1744
|
return new ethers_1.utils.Interface(_abi);
|
|
1746
|
-
}
|
|
1747
|
-
|
|
1745
|
+
}
|
|
1746
|
+
static connect(address, signerOrProvider) {
|
|
1748
1747
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
1749
|
-
}
|
|
1750
|
-
|
|
1751
|
-
return ISwapAggregator__factory;
|
|
1752
|
-
}());
|
|
1748
|
+
}
|
|
1749
|
+
}
|
|
1753
1750
|
exports.ISwapAggregator__factory = ISwapAggregator__factory;
|
package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/ISwapper__factory.js
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ISwapper__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
inputs: [
|
|
11
11
|
{
|
|
@@ -233,16 +233,13 @@ var _abi = [
|
|
|
233
233
|
type: "function",
|
|
234
234
|
},
|
|
235
235
|
];
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
ISwapper__factory.createInterface = function () {
|
|
236
|
+
class ISwapper__factory {
|
|
237
|
+
static abi = _abi;
|
|
238
|
+
static createInterface() {
|
|
240
239
|
return new ethers_1.utils.Interface(_abi);
|
|
241
|
-
}
|
|
242
|
-
|
|
240
|
+
}
|
|
241
|
+
static connect(address, signerOrProvider) {
|
|
243
242
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
return ISwapper__factory;
|
|
247
|
-
}());
|
|
243
|
+
}
|
|
244
|
+
}
|
|
248
245
|
exports.ISwapper__factory = ISwapper__factory;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.IWithdrawerOptions__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
inputs: [],
|
|
11
11
|
name: "getComponentId",
|
|
@@ -1055,16 +1055,13 @@ var _abi = [
|
|
|
1055
1055
|
type: "function",
|
|
1056
1056
|
},
|
|
1057
1057
|
];
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
IWithdrawerOptions__factory.createInterface = function () {
|
|
1058
|
+
class IWithdrawerOptions__factory {
|
|
1059
|
+
static abi = _abi;
|
|
1060
|
+
static createInterface() {
|
|
1062
1061
|
return new ethers_1.utils.Interface(_abi);
|
|
1063
|
-
}
|
|
1064
|
-
|
|
1062
|
+
}
|
|
1063
|
+
static connect(address, signerOrProvider) {
|
|
1065
1064
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
1066
|
-
}
|
|
1067
|
-
|
|
1068
|
-
return IWithdrawerOptions__factory;
|
|
1069
|
-
}());
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
1070
1067
|
exports.IWithdrawerOptions__factory = IWithdrawerOptions__factory;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.IWithdrawer__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
inputs: [],
|
|
11
11
|
name: "getComponentId",
|
|
@@ -1008,16 +1008,13 @@ var _abi = [
|
|
|
1008
1008
|
type: "function",
|
|
1009
1009
|
},
|
|
1010
1010
|
];
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
IWithdrawer__factory.createInterface = function () {
|
|
1011
|
+
class IWithdrawer__factory {
|
|
1012
|
+
static abi = _abi;
|
|
1013
|
+
static createInterface() {
|
|
1015
1014
|
return new ethers_1.utils.Interface(_abi);
|
|
1016
|
-
}
|
|
1017
|
-
|
|
1015
|
+
}
|
|
1016
|
+
static connect(address, signerOrProvider) {
|
|
1018
1017
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
1019
|
-
}
|
|
1020
|
-
|
|
1021
|
-
return IWithdrawer__factory;
|
|
1022
|
-
}());
|
|
1018
|
+
}
|
|
1019
|
+
}
|
|
1023
1020
|
exports.IWithdrawer__factory = IWithdrawer__factory;
|
package/lib/types/factories/@gearbox-protocol/router/contracts/interfaces/IWrapper__factory.js
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.IWrapper__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
inputs: [],
|
|
11
11
|
name: "getComponentId",
|
|
@@ -281,16 +281,13 @@ var _abi = [
|
|
|
281
281
|
type: "function",
|
|
282
282
|
},
|
|
283
283
|
];
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
IWrapper__factory.createInterface = function () {
|
|
284
|
+
class IWrapper__factory {
|
|
285
|
+
static abi = _abi;
|
|
286
|
+
static createInterface() {
|
|
288
287
|
return new ethers_1.utils.Interface(_abi);
|
|
289
|
-
}
|
|
290
|
-
|
|
288
|
+
}
|
|
289
|
+
static connect(address, signerOrProvider) {
|
|
291
290
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
return IWrapper__factory;
|
|
295
|
-
}());
|
|
291
|
+
}
|
|
292
|
+
}
|
|
296
293
|
exports.IWrapper__factory = IWrapper__factory;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.IERC20__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
anonymous: false,
|
|
11
11
|
inputs: [
|
|
@@ -190,16 +190,13 @@ var _abi = [
|
|
|
190
190
|
type: "function",
|
|
191
191
|
},
|
|
192
192
|
];
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
IERC20__factory.createInterface = function () {
|
|
193
|
+
class IERC20__factory {
|
|
194
|
+
static abi = _abi;
|
|
195
|
+
static createInterface() {
|
|
197
196
|
return new ethers_1.utils.Interface(_abi);
|
|
198
|
-
}
|
|
199
|
-
|
|
197
|
+
}
|
|
198
|
+
static connect(address, signerOrProvider) {
|
|
200
199
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
return IERC20__factory;
|
|
204
|
-
}());
|
|
200
|
+
}
|
|
201
|
+
}
|
|
205
202
|
exports.IERC20__factory = IERC20__factory;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.IERC20Metadata__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
anonymous: false,
|
|
11
11
|
inputs: [
|
|
@@ -229,16 +229,13 @@ var _abi = [
|
|
|
229
229
|
type: "function",
|
|
230
230
|
},
|
|
231
231
|
];
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
IERC20Metadata__factory.createInterface = function () {
|
|
232
|
+
class IERC20Metadata__factory {
|
|
233
|
+
static abi = _abi;
|
|
234
|
+
static createInterface() {
|
|
236
235
|
return new ethers_1.utils.Interface(_abi);
|
|
237
|
-
}
|
|
238
|
-
|
|
236
|
+
}
|
|
237
|
+
static connect(address, signerOrProvider) {
|
|
239
238
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
return IERC20Metadata__factory;
|
|
243
|
-
}());
|
|
239
|
+
}
|
|
240
|
+
}
|
|
244
241
|
exports.IERC20Metadata__factory = IERC20Metadata__factory;
|
package/lib/types/factories/@openzeppelin/contracts/token/ERC721/IERC721Receiver__factory.js
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.IERC721Receiver__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
inputs: [
|
|
11
11
|
{
|
|
@@ -41,16 +41,13 @@ var _abi = [
|
|
|
41
41
|
type: "function",
|
|
42
42
|
},
|
|
43
43
|
];
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
IERC721Receiver__factory.createInterface = function () {
|
|
44
|
+
class IERC721Receiver__factory {
|
|
45
|
+
static abi = _abi;
|
|
46
|
+
static createInterface() {
|
|
48
47
|
return new ethers_1.utils.Interface(_abi);
|
|
49
|
-
}
|
|
50
|
-
|
|
48
|
+
}
|
|
49
|
+
static connect(address, signerOrProvider) {
|
|
51
50
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
return IERC721Receiver__factory;
|
|
55
|
-
}());
|
|
51
|
+
}
|
|
52
|
+
}
|
|
56
53
|
exports.IERC721Receiver__factory = IERC721Receiver__factory;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.IERC721__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
anonymous: false,
|
|
11
11
|
inputs: [
|
|
@@ -292,16 +292,13 @@ var _abi = [
|
|
|
292
292
|
type: "function",
|
|
293
293
|
},
|
|
294
294
|
];
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
IERC721__factory.createInterface = function () {
|
|
295
|
+
class IERC721__factory {
|
|
296
|
+
static abi = _abi;
|
|
297
|
+
static createInterface() {
|
|
299
298
|
return new ethers_1.utils.Interface(_abi);
|
|
300
|
-
}
|
|
301
|
-
|
|
299
|
+
}
|
|
300
|
+
static connect(address, signerOrProvider) {
|
|
302
301
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
return IERC721__factory;
|
|
306
|
-
}());
|
|
302
|
+
}
|
|
303
|
+
}
|
|
307
304
|
exports.IERC721__factory = IERC721__factory;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.IERC721Metadata__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
anonymous: false,
|
|
11
11
|
inputs: [
|
|
@@ -337,16 +337,13 @@ var _abi = [
|
|
|
337
337
|
type: "function",
|
|
338
338
|
},
|
|
339
339
|
];
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
IERC721Metadata__factory.createInterface = function () {
|
|
340
|
+
class IERC721Metadata__factory {
|
|
341
|
+
static abi = _abi;
|
|
342
|
+
static createInterface() {
|
|
344
343
|
return new ethers_1.utils.Interface(_abi);
|
|
345
|
-
}
|
|
346
|
-
|
|
344
|
+
}
|
|
345
|
+
static connect(address, signerOrProvider) {
|
|
347
346
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
return IERC721Metadata__factory;
|
|
351
|
-
}());
|
|
347
|
+
}
|
|
348
|
+
}
|
|
352
349
|
exports.IERC721Metadata__factory = IERC721Metadata__factory;
|