@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.ICurveVoteEscrow__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
|
-
ICurveVoteEscrow__factory.createInterface = function () {
|
|
74
|
+
class ICurveVoteEscrow__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 ICurveVoteEscrow__factory;
|
|
85
|
-
}());
|
|
81
|
+
}
|
|
82
|
+
}
|
|
86
83
|
exports.ICurveVoteEscrow__factory = ICurveVoteEscrow__factory;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.IDeposit__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
inputs: [
|
|
11
11
|
{
|
|
@@ -211,16 +211,13 @@ var _abi = [
|
|
|
211
211
|
type: "function",
|
|
212
212
|
},
|
|
213
213
|
];
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
IDeposit__factory.createInterface = function () {
|
|
214
|
+
class IDeposit__factory {
|
|
215
|
+
static abi = _abi;
|
|
216
|
+
static createInterface() {
|
|
218
217
|
return new ethers_1.utils.Interface(_abi);
|
|
219
|
-
}
|
|
220
|
-
|
|
218
|
+
}
|
|
219
|
+
static connect(address, signerOrProvider) {
|
|
221
220
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
return IDeposit__factory;
|
|
225
|
-
}());
|
|
221
|
+
}
|
|
222
|
+
}
|
|
226
223
|
exports.IDeposit__factory = IDeposit__factory;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.IFeeDistro__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
inputs: [],
|
|
11
11
|
name: "claim",
|
|
@@ -27,16 +27,13 @@ var _abi = [
|
|
|
27
27
|
type: "function",
|
|
28
28
|
},
|
|
29
29
|
];
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
IFeeDistro__factory.createInterface = function () {
|
|
30
|
+
class IFeeDistro__factory {
|
|
31
|
+
static abi = _abi;
|
|
32
|
+
static createInterface() {
|
|
34
33
|
return new ethers_1.utils.Interface(_abi);
|
|
35
|
-
}
|
|
36
|
-
|
|
34
|
+
}
|
|
35
|
+
static connect(address, signerOrProvider) {
|
|
37
36
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
return IFeeDistro__factory;
|
|
41
|
-
}());
|
|
37
|
+
}
|
|
38
|
+
}
|
|
42
39
|
exports.IFeeDistro__factory = IFeeDistro__factory;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.IMinter__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
inputs: [
|
|
11
11
|
{
|
|
@@ -20,16 +20,13 @@ var _abi = [
|
|
|
20
20
|
type: "function",
|
|
21
21
|
},
|
|
22
22
|
];
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
IMinter__factory.createInterface = function () {
|
|
23
|
+
class IMinter__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 IMinter__factory;
|
|
34
|
-
}());
|
|
30
|
+
}
|
|
31
|
+
}
|
|
35
32
|
exports.IMinter__factory = IMinter__factory;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.IPools__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
inputs: [
|
|
11
11
|
{
|
|
@@ -173,16 +173,13 @@ var _abi = [
|
|
|
173
173
|
type: "function",
|
|
174
174
|
},
|
|
175
175
|
];
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
IPools__factory.createInterface = function () {
|
|
176
|
+
class IPools__factory {
|
|
177
|
+
static abi = _abi;
|
|
178
|
+
static createInterface() {
|
|
180
179
|
return new ethers_1.utils.Interface(_abi);
|
|
181
|
-
}
|
|
182
|
-
|
|
180
|
+
}
|
|
181
|
+
static connect(address, signerOrProvider) {
|
|
183
182
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
return IPools__factory;
|
|
187
|
-
}());
|
|
183
|
+
}
|
|
184
|
+
}
|
|
188
185
|
exports.IPools__factory = IPools__factory;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.IRegistry__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
inputs: [],
|
|
11
11
|
name: "gauge_controller",
|
|
@@ -95,16 +95,13 @@ var _abi = [
|
|
|
95
95
|
type: "function",
|
|
96
96
|
},
|
|
97
97
|
];
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
IRegistry__factory.createInterface = function () {
|
|
98
|
+
class IRegistry__factory {
|
|
99
|
+
static abi = _abi;
|
|
100
|
+
static createInterface() {
|
|
102
101
|
return new ethers_1.utils.Interface(_abi);
|
|
103
|
-
}
|
|
104
|
-
|
|
102
|
+
}
|
|
103
|
+
static connect(address, signerOrProvider) {
|
|
105
104
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
return IRegistry__factory;
|
|
109
|
-
}());
|
|
105
|
+
}
|
|
106
|
+
}
|
|
110
107
|
exports.IRegistry__factory = IRegistry__factory;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.IRewardFactory__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
inputs: [
|
|
11
11
|
{
|
|
@@ -145,16 +145,13 @@ var _abi = [
|
|
|
145
145
|
type: "function",
|
|
146
146
|
},
|
|
147
147
|
];
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
IRewardFactory__factory.createInterface = function () {
|
|
148
|
+
class IRewardFactory__factory {
|
|
149
|
+
static abi = _abi;
|
|
150
|
+
static createInterface() {
|
|
152
151
|
return new ethers_1.utils.Interface(_abi);
|
|
153
|
-
}
|
|
154
|
-
|
|
152
|
+
}
|
|
153
|
+
static connect(address, signerOrProvider) {
|
|
155
154
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
return IRewardFactory__factory;
|
|
159
|
-
}());
|
|
155
|
+
}
|
|
156
|
+
}
|
|
160
157
|
exports.IRewardFactory__factory = IRewardFactory__factory;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.IRewards__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
inputs: [
|
|
11
11
|
{
|
|
@@ -171,16 +171,13 @@ var _abi = [
|
|
|
171
171
|
type: "function",
|
|
172
172
|
},
|
|
173
173
|
];
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
IRewards__factory.createInterface = function () {
|
|
174
|
+
class IRewards__factory {
|
|
175
|
+
static abi = _abi;
|
|
176
|
+
static createInterface() {
|
|
178
177
|
return new ethers_1.utils.Interface(_abi);
|
|
179
|
-
}
|
|
180
|
-
|
|
178
|
+
}
|
|
179
|
+
static connect(address, signerOrProvider) {
|
|
181
180
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
return IRewards__factory;
|
|
185
|
-
}());
|
|
181
|
+
}
|
|
182
|
+
}
|
|
186
183
|
exports.IRewards__factory = IRewards__factory;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.IStaker__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
inputs: [
|
|
11
11
|
{
|
|
@@ -305,16 +305,13 @@ var _abi = [
|
|
|
305
305
|
type: "function",
|
|
306
306
|
},
|
|
307
307
|
];
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
IStaker__factory.createInterface = function () {
|
|
308
|
+
class IStaker__factory {
|
|
309
|
+
static abi = _abi;
|
|
310
|
+
static createInterface() {
|
|
312
311
|
return new ethers_1.utils.Interface(_abi);
|
|
313
|
-
}
|
|
314
|
-
|
|
312
|
+
}
|
|
313
|
+
static connect(address, signerOrProvider) {
|
|
315
314
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
return IStaker__factory;
|
|
319
|
-
}());
|
|
315
|
+
}
|
|
316
|
+
}
|
|
320
317
|
exports.IStaker__factory = IStaker__factory;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.IStashFactory__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
|
-
IStashFactory__factory.createInterface = function () {
|
|
44
|
+
class IStashFactory__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 IStashFactory__factory;
|
|
55
|
-
}());
|
|
51
|
+
}
|
|
52
|
+
}
|
|
56
53
|
exports.IStashFactory__factory = IStashFactory__factory;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.IStash__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
inputs: [],
|
|
11
11
|
name: "claimRewards",
|
|
@@ -79,16 +79,13 @@ var _abi = [
|
|
|
79
79
|
type: "function",
|
|
80
80
|
},
|
|
81
81
|
];
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
IStash__factory.createInterface = function () {
|
|
82
|
+
class IStash__factory {
|
|
83
|
+
static abi = _abi;
|
|
84
|
+
static createInterface() {
|
|
86
85
|
return new ethers_1.utils.Interface(_abi);
|
|
87
|
-
}
|
|
88
|
-
|
|
86
|
+
}
|
|
87
|
+
static connect(address, signerOrProvider) {
|
|
89
88
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
return IStash__factory;
|
|
93
|
-
}());
|
|
89
|
+
}
|
|
90
|
+
}
|
|
94
91
|
exports.IStash__factory = IStash__factory;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ITokenFactory__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
|
-
ITokenFactory__factory.createInterface = function () {
|
|
29
|
+
class ITokenFactory__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 ITokenFactory__factory;
|
|
40
|
-
}());
|
|
36
|
+
}
|
|
37
|
+
}
|
|
41
38
|
exports.ITokenFactory__factory = ITokenFactory__factory;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ITokenMinter__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
inputs: [
|
|
11
11
|
{
|
|
@@ -43,16 +43,13 @@ var _abi = [
|
|
|
43
43
|
type: "function",
|
|
44
44
|
},
|
|
45
45
|
];
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
ITokenMinter__factory.createInterface = function () {
|
|
46
|
+
class ITokenMinter__factory {
|
|
47
|
+
static abi = _abi;
|
|
48
|
+
static createInterface() {
|
|
50
49
|
return new ethers_1.utils.Interface(_abi);
|
|
51
|
-
}
|
|
52
|
-
|
|
50
|
+
}
|
|
51
|
+
static connect(address, signerOrProvider) {
|
|
53
52
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
return ITokenMinter__factory;
|
|
57
|
-
}());
|
|
53
|
+
}
|
|
54
|
+
}
|
|
58
55
|
exports.ITokenMinter__factory = ITokenMinter__factory;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.IVestedEscrow__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
inputs: [
|
|
11
11
|
{
|
|
@@ -31,16 +31,13 @@ var _abi = [
|
|
|
31
31
|
type: "function",
|
|
32
32
|
},
|
|
33
33
|
];
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
IVestedEscrow__factory.createInterface = function () {
|
|
34
|
+
class IVestedEscrow__factory {
|
|
35
|
+
static abi = _abi;
|
|
36
|
+
static createInterface() {
|
|
38
37
|
return new ethers_1.utils.Interface(_abi);
|
|
39
|
-
}
|
|
40
|
-
|
|
38
|
+
}
|
|
39
|
+
static connect(address, signerOrProvider) {
|
|
41
40
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
return IVestedEscrow__factory;
|
|
45
|
-
}());
|
|
41
|
+
}
|
|
42
|
+
}
|
|
46
43
|
exports.IVestedEscrow__factory = IVestedEscrow__factory;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.IVoting__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
inputs: [
|
|
11
11
|
{
|
|
@@ -112,16 +112,13 @@ var _abi = [
|
|
|
112
112
|
type: "function",
|
|
113
113
|
},
|
|
114
114
|
];
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
IVoting__factory.createInterface = function () {
|
|
115
|
+
class IVoting__factory {
|
|
116
|
+
static abi = _abi;
|
|
117
|
+
static createInterface() {
|
|
119
118
|
return new ethers_1.utils.Interface(_abi);
|
|
120
|
-
}
|
|
121
|
-
|
|
119
|
+
}
|
|
120
|
+
static connect(address, signerOrProvider) {
|
|
122
121
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
return IVoting__factory;
|
|
126
|
-
}());
|
|
122
|
+
}
|
|
123
|
+
}
|
|
127
124
|
exports.IVoting__factory = IVoting__factory;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.IWalletChecker__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
|
-
IWalletChecker__factory.createInterface = function () {
|
|
29
|
+
class IWalletChecker__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 IWalletChecker__factory;
|
|
40
|
-
}());
|
|
36
|
+
}
|
|
37
|
+
}
|
|
41
38
|
exports.IWalletChecker__factory = IWalletChecker__factory;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ICurvePoolStETH__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
inputs: [],
|
|
11
11
|
name: "A",
|
|
@@ -459,16 +459,13 @@ var _abi = [
|
|
|
459
459
|
type: "function",
|
|
460
460
|
},
|
|
461
461
|
];
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
ICurvePoolStETH__factory.createInterface = function () {
|
|
462
|
+
class ICurvePoolStETH__factory {
|
|
463
|
+
static abi = _abi;
|
|
464
|
+
static createInterface() {
|
|
466
465
|
return new ethers_1.utils.Interface(_abi);
|
|
467
|
-
}
|
|
468
|
-
|
|
466
|
+
}
|
|
467
|
+
static connect(address, signerOrProvider) {
|
|
469
468
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
return ICurvePoolStETH__factory;
|
|
473
|
-
}());
|
|
469
|
+
}
|
|
470
|
+
}
|
|
474
471
|
exports.ICurvePoolStETH__factory = ICurvePoolStETH__factory;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ICurvePool2Assets__factory = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
inputs: [],
|
|
11
11
|
name: "A",
|
|
@@ -698,16 +698,13 @@ var _abi = [
|
|
|
698
698
|
type: "function",
|
|
699
699
|
},
|
|
700
700
|
];
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
ICurvePool2Assets__factory.createInterface = function () {
|
|
701
|
+
class ICurvePool2Assets__factory {
|
|
702
|
+
static abi = _abi;
|
|
703
|
+
static createInterface() {
|
|
705
704
|
return new ethers_1.utils.Interface(_abi);
|
|
706
|
-
}
|
|
707
|
-
|
|
705
|
+
}
|
|
706
|
+
static connect(address, signerOrProvider) {
|
|
708
707
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
709
|
-
}
|
|
710
|
-
|
|
711
|
-
return ICurvePool2Assets__factory;
|
|
712
|
-
}());
|
|
708
|
+
}
|
|
709
|
+
}
|
|
713
710
|
exports.ICurvePool2Assets__factory = ICurvePool2Assets__factory;
|