@pendle/core-v2 0.16.2-testnet → 0.16.3-testnet
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/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.json +15 -2
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.json +15 -2
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.json +13 -0
- package/build/artifacts/contracts/LiquidityMining/FeeDistributor/EpochResultManager.sol/EpochResultManager.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.json +15 -2
- package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributorFactory.sol/PendleFeeDistributorFactory.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributorFactory.sol/PendleFeeDistributorFactory.json +15 -2
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.json +13 -0
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +15 -2
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.json +15 -2
- package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +15 -2
- package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +15 -2
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +15 -2
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/libraries/WeekMath.sol/WeekMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.dbg.json +4 -0
- package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.json +695 -0
- package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.dbg.json +4 -0
- package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.json +531 -0
- package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.dbg.json +4 -0
- package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.json +10 -0
- package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.json +2 -2
- package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.json +2 -2
- package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.json +2 -2
- package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.json +15 -2
- package/build/artifacts/contracts/core/RewardManager/RewardManager.sol/RewardManager.dbg.json +1 -1
- package/build/artifacts/contracts/core/RewardManager/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/PYIndex.sol/PYIndexLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/PYIndex.sol/PYIndexLib.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/SYBase.sol/SYBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/ConvexCurveLP/PendleConvexLPSY.sol/PendleConvexLPSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/CurveFraxUsdcPoolHelper.sol/CurveFraxUsdcPoolHelper.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/CurveFraxUsdcPoolHelper.sol/CurveFraxUsdcPoolHelper.json +89 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.json +2 -2
- package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.json +15 -2
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +15 -2
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +2 -2
- package/build/artifacts/contracts/core/erc20/PendleERC20.sol/PendleERC20.dbg.json +1 -1
- package/build/artifacts/contracts/core/erc20/PendleERC20.sol/PendleERC20.json +2 -2
- package/build/artifacts/contracts/core/erc20/PendleERC20Permit.sol/PendleERC20Permit.dbg.json +1 -1
- package/build/artifacts/contracts/core/erc20/PendleERC20Permit.sol/PendleERC20Permit.json +2 -2
- package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/BaseSplitCodeFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/BaseSplitCodeFactory.json +2 -2
- package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/CodeDeployer.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/CodeDeployer.json +2 -2
- package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeable.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeable.json +13 -0
- package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeableData.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeableData.json +2 -2
- package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.json +208 -2
- package/build/artifacts/contracts/core/libraries/TokenHelper.sol/TokenHelper.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ConvexCurve/IBooster.sol/IBooster.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Curve/ICrvPool.sol/ICrvPool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Curve/ICrvPool.sol/ICrvPool.json +30 -83
- package/build/artifacts/contracts/interfaces/IAToken.sol/IAToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IERC4626.sol/IERC4626.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.json +91 -17
- package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.json +50 -0
- package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.json +20 -0
- package/build/artifacts/contracts/interfaces/IPActionSwapPTYT.sol/IPActionSwapPTYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.json +20 -0
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.json +181 -17
- package/build/artifacts/contracts/interfaces/IPBulkSeller.sol/IPBulkSeller.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPBulkSeller.sol/IPBulkSeller.json +173 -0
- package/build/artifacts/contracts/interfaces/IPBulkSellerFactory.sol/IPBulkSellerFactory.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPBulkSellerFactory.sol/IPBulkSellerFactory.json +86 -0
- package/build/artifacts/contracts/interfaces/IPBulkSellerSYCallback.sol/IPBulkSellerCallback.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPBulkSellerSYCallback.sol/IPBulkSellerCallback.json +34 -0
- package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPrincipalToken.sol/IPPrincipalToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPYieldContractFactory.sol/IPYieldContractFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IQiAvax.sol/IQiAvax.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IQiErc20.sol/IQiErc20.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IQiToken.sol/IQiToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ISJoe.sol/ISJoe.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStETH.sol/IStETH.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStETH.sol/IStETH.json +45 -0
- package/build/artifacts/contracts/interfaces/IStandardizedYield.sol/IStandardizedYield.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IWAvax.sol/IWAvax.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IWETH.sol/IWETH.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.json +15 -2
- package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.json +67 -0
- package/build/artifacts/contracts/offchain-helpers/ImplicitSwapfeeContract.sol/ImplicitSwapfeeContract.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/ImplicitSwapfeeContract.sol/ImplicitSwapfeeContract.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.json +2 -36
- package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.json +237 -61
- package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +120 -41
- package/build/artifacts/contracts/router/ActionCallback.sol/ActionCallback.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionCallback.sol/ActionCallback.json +2 -2
- package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.json +79 -24
- package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.json +2 -2
- package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.json +49 -24
- package/build/artifacts/contracts/router/ActionSwapPTYT.sol/ActionSwapPTYT.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapPTYT.sol/ActionSwapPTYT.json +2 -2
- package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.json +49 -24
- package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.dbg.json +1 -1
- package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.json +15 -2
- package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.json +14 -1
- package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.json +2 -2
- package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.json +2 -2
- package/build/artifacts/contracts/router/kyberswap/AggregationRouterHelper.sol/AggregationRouterHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/kyberswap/AggregationRouterHelper.sol/AggregationRouterHelper.json +191 -2
- package/build/artifacts/contracts/router/kyberswap/IAggregatorRouterHelper.sol/IAggregationRouterHelper.dbg.json +4 -0
- package/build/artifacts/contracts/router/kyberswap/IAggregatorRouterHelper.sol/IAggregationRouterHelper.json +35 -0
- package/build/artifacts/contracts/router/kyberswap/KyberSwapHelper.sol/KyberSwapHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/kyberswap/KyberSwapHelper.sol/KyberSwapHelper.json +1 -1
- package/contracts/core/BulkSeller/BulkSeller.sol +250 -0
- package/contracts/core/BulkSeller/BulkSellerFactory.sol +89 -0
- package/contracts/core/BulkSeller/BulkSellerMathCore.sol +143 -0
- package/contracts/core/StandardizedYield/implementations/Convex/ConvexCurveLP/PendleConvexLPSY.sol +2 -4
- package/contracts/core/StandardizedYield/implementations/Convex/base/CurveFraxUsdcPoolHelper.sol +107 -0
- package/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol +19 -4
- package/contracts/core/libraries/Errors.sol +17 -0
- package/contracts/interfaces/Curve/ICrvPool.sol +9 -27
- package/contracts/interfaces/IPActionAddRemoveLiq.sol +3 -5
- package/contracts/interfaces/IPActionMintRedeem.sol +2 -0
- package/contracts/interfaces/IPBulkSeller.sol +28 -0
- package/contracts/interfaces/IPBulkSellerFactory.sol +12 -0
- package/contracts/interfaces/IPBulkSellerSYCallback.sol +10 -0
- package/contracts/interfaces/IStETH.sol +6 -0
- package/contracts/offchain-helpers/BulkSellerOffchain.sol +43 -0
- package/contracts/offchain-helpers/MarketMathStatic.sol +0 -144
- package/contracts/offchain-helpers/RouterStatic.sol +167 -51
- package/contracts/router/ActionAddRemoveLiq.sol +60 -44
- package/contracts/router/ActionMintRedeem.sol +19 -15
- package/contracts/router/ActionSwapPT.sol +3 -3
- package/contracts/router/ActionSwapYT.sol +11 -4
- package/contracts/router/base/ActionBaseMintRedeem.sol +73 -74
- package/contracts/router/kyberswap/AggregationRouterHelper.sol +17 -1
- package/contracts/router/kyberswap/IAggregatorRouterHelper.sol +10 -0
- package/contracts/router/kyberswap/KyberSwapHelper.sol +17 -8
- package/deployments/43113-core.json +3 -2
- package/deployments/43113-markets/benqi-market-QI-AVAX-FEB-2ND.json +9 -0
- package/deployments/80001-core.json +3 -2
- package/package.json +3 -2
- package/typechain-types/AccessControl.ts +360 -0
- package/typechain-types/ActionAddRemoveLiq.ts +83 -52
- package/typechain-types/ActionBaseMintRedeem.ts +27 -8
- package/typechain-types/ActionMintRedeem.ts +68 -17
- package/typechain-types/ActionSwapPT.ts +53 -12
- package/typechain-types/ActionSwapYT.ts +53 -12
- package/typechain-types/AggregationRouterHelper.ts +287 -3
- package/typechain-types/BaseSplitCodeFactoryContract.ts +9 -0
- package/typechain-types/BeaconProxy.ts +97 -0
- package/typechain-types/BoringOwnableUpgradeable.ts +9 -0
- package/typechain-types/BulkSeller.ts +776 -0
- package/typechain-types/BulkSellerFactory.ts +707 -0
- package/typechain-types/BulkSellerOffchain.ts +117 -0
- package/typechain-types/Curve3CrvPoolHelper.ts +236 -0
- package/typechain-types/CurveFraxUsdcPoolHelper.ts +158 -0
- package/typechain-types/CurveUsdd3CrvPoolHelper.ts +184 -0
- package/typechain-types/ERC165.ts +102 -0
- package/typechain-types/IAccessControl.ts +305 -0
- package/typechain-types/IAggregationRouterHelper.ts +108 -0
- package/typechain-types/ICrvPool.ts +66 -164
- package/typechain-types/IERC165.ts +102 -0
- package/typechain-types/IPActionAddRemoveLiq.ts +56 -44
- package/typechain-types/IPActionMintRedeem.ts +41 -9
- package/typechain-types/IPActionSwapPT.ts +26 -4
- package/typechain-types/IPActionSwapYT.ts +26 -4
- package/typechain-types/IPAllAction.ts +77 -55
- package/typechain-types/IPBulkSeller.ts +290 -0
- package/typechain-types/IPBulkSellerCallback.ts +115 -0
- package/typechain-types/IPBulkSellerFactory.ts +147 -0
- package/typechain-types/IStETH.ts +56 -0
- package/typechain-types/ITriCrvPool.ts +345 -0
- package/typechain-types/Initializable.ts +68 -0
- package/typechain-types/KyberSwapHelper.ts +8 -8
- package/typechain-types/MarketMathStatic.ts +0 -50
- package/typechain-types/PendleCurveFraxUsdcSY.ts +1228 -0
- package/typechain-types/PendleCurveUsdd3CrvSY.ts +1299 -0
- package/typechain-types/PendleFeeDistributor.ts +9 -0
- package/typechain-types/PendleFeeDistributorFactory.ts +9 -0
- package/typechain-types/PendleGaugeControllerBaseUpg.ts +9 -0
- package/typechain-types/PendleGaugeControllerMainchainUpg.ts +9 -0
- package/typechain-types/PendleGaugeControllerSidechainUpg.ts +9 -0
- package/typechain-types/PendleMarketFactory.ts +9 -0
- package/typechain-types/PendleMsgReceiveEndpointUpg.ts +9 -0
- package/typechain-types/PendleMsgSendEndpointUpg.ts +9 -0
- package/typechain-types/PendleMsgSenderAppUpg.ts +9 -0
- package/typechain-types/PendlePrincipalToken.ts +9 -0
- package/typechain-types/PendleRouter.ts +9 -0
- package/typechain-types/PendleVotingControllerUpg.ts +9 -0
- package/typechain-types/PendleYieldContractFactory.ts +9 -0
- package/typechain-types/ReentrancyGuardUpgradeable.ts +68 -0
- package/typechain-types/RouterStatic.ts +203 -22
- package/typechain-types/VotingEscrowPendleMainchain.ts +9 -0
- package/typechain-types/VotingEscrowPendleSidechain.ts +9 -0
- package/typechain-types/factories/AccessControl__factory.ts +227 -0
- package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +131 -59
- package/typechain-types/factories/ActionBaseMintRedeem__factory.ts +14 -1
- package/typechain-types/factories/ActionCallback__factory.ts +1 -1
- package/typechain-types/factories/ActionMintRedeem__factory.ts +90 -42
- package/typechain-types/factories/ActionMisc__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapPTYT__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapPT__factory.ts +60 -42
- package/typechain-types/factories/ActionSwapYT__factory.ts +60 -42
- package/typechain-types/factories/AggregationRouterHelper__factory.ts +190 -1
- package/typechain-types/factories/BaseSplitCodeFactoryContract__factory.ts +14 -1
- package/typechain-types/factories/BaseSplitCodeFactory__factory.ts +1 -1
- package/typechain-types/factories/BeaconProxy__factory.ts +141 -0
- package/typechain-types/factories/BoringOwnableUpgradeableData__factory.ts +1 -1
- package/typechain-types/factories/BoringOwnableUpgradeable__factory.ts +13 -0
- package/typechain-types/factories/BulkSellerFactory__factory.ts +584 -0
- package/typechain-types/factories/BulkSellerOffchain__factory.ts +120 -0
- package/typechain-types/factories/BulkSeller__factory.ts +745 -0
- package/typechain-types/factories/Curve3CrvPoolHelper__factory.ts +220 -0
- package/typechain-types/factories/CurveFraxUsdcPoolHelper__factory.ts +146 -0
- package/typechain-types/factories/CurveUsdd3CrvPoolHelper__factory.ts +172 -0
- package/typechain-types/factories/ERC165__factory.ts +39 -0
- package/typechain-types/factories/ERC20__factory.ts +1 -1
- package/typechain-types/factories/Errors__factory.ts +207 -1
- package/typechain-types/factories/IAccessControl__factory.ts +198 -0
- package/typechain-types/factories/IAggregationRouterHelper__factory.ts +54 -0
- package/typechain-types/factories/ICrvPool__factory.ts +30 -83
- package/typechain-types/factories/IERC165__factory.ts +42 -0
- package/typechain-types/factories/IPActionAddRemoveLiq__factory.ts +91 -17
- package/typechain-types/factories/IPActionMintRedeem__factory.ts +50 -0
- package/typechain-types/factories/IPActionSwapPT__factory.ts +20 -0
- package/typechain-types/factories/IPActionSwapYT__factory.ts +20 -0
- package/typechain-types/factories/IPAllAction__factory.ts +181 -17
- package/typechain-types/factories/IPBulkSellerCallback__factory.ts +53 -0
- package/typechain-types/factories/IPBulkSellerFactory__factory.ts +101 -0
- package/typechain-types/factories/IPBulkSeller__factory.ts +185 -0
- package/typechain-types/factories/IStETH__factory.ts +45 -0
- package/typechain-types/factories/ITriCrvPool__factory.ts +225 -0
- package/typechain-types/factories/ImplicitSwapfeeContract__factory.ts +1 -1
- package/typechain-types/factories/Initializable__factory.ts +36 -0
- package/typechain-types/factories/KyberSwapHelper__factory.ts +1 -1
- package/typechain-types/factories/MarketMathStatic__factory.ts +1 -35
- package/typechain-types/factories/OracleLib__factory.ts +1 -1
- package/typechain-types/factories/PendleCurveFraxUsdcSY__factory.ts +1068 -0
- package/typechain-types/factories/PendleCurveUsdd3CrvSY__factory.ts +1168 -0
- package/typechain-types/factories/PendleERC20Permit__factory.ts +1 -1
- package/typechain-types/factories/PendleERC20__factory.ts +1 -1
- package/typechain-types/factories/PendleFeeDistributorFactory__factory.ts +14 -1
- package/typechain-types/factories/PendleFeeDistributor__factory.ts +14 -1
- package/typechain-types/factories/PendleGaugeControllerBaseUpg__factory.ts +13 -0
- package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +14 -1
- package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +14 -1
- package/typechain-types/factories/PendleMarketFactory__factory.ts +14 -1
- package/typechain-types/factories/PendleMarket__factory.ts +1 -1
- package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +14 -1
- package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +14 -1
- package/typechain-types/factories/PendleMsgSenderAppUpg__factory.ts +13 -0
- package/typechain-types/factories/PendlePrincipalToken__factory.ts +14 -1
- package/typechain-types/factories/PendleQiTokenHelper__factory.ts +1 -1
- package/typechain-types/factories/PendleQiTokenSY__factory.ts +1 -1
- package/typechain-types/factories/PendleRouter__factory.ts +14 -1
- package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +14 -1
- package/typechain-types/factories/PendleWstEthSY__factory.ts +1 -1
- package/typechain-types/factories/PendleYieldContractFactory__factory.ts +14 -1
- package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
- package/typechain-types/factories/ReentrancyGuardUpgradeable__factory.ts +43 -0
- package/typechain-types/factories/RouterStatic__factory.ts +182 -2
- package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +14 -1
- package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +14 -1
- package/typechain-types/hardhat.d.ts +139 -13
- package/typechain-types/index.ts +30 -4
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/ConvexCurveLP/Pendle3CrvAndTokenSY.sol/Pendle3CrvAndTokenSY.dbg.json +0 -4
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/ConvexCurveLP/Pendle3CrvAndTokenSY.sol/Pendle3CrvAndTokenSY.json +0 -1018
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/Pendle3CrvHelper.sol/Pendle3CrvHelper.dbg.json +0 -4
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/Pendle3CrvHelper.sol/Pendle3CrvHelper.json +0 -76
- package/contracts/core/StandardizedYield/implementations/Convex/ConvexCurveLP/Pendle3CrvAndTokenSY.sol +0 -167
- package/contracts/core/StandardizedYield/implementations/Convex/Pendle3CrvHelper.sol +0 -83
|
@@ -0,0 +1,745 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
|
|
5
|
+
import { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
6
|
+
import type { BulkSeller, BulkSellerInterface } from "../BulkSeller";
|
|
7
|
+
|
|
8
|
+
const _abi = [
|
|
9
|
+
{
|
|
10
|
+
inputs: [
|
|
11
|
+
{
|
|
12
|
+
internalType: "uint256",
|
|
13
|
+
name: "actualRate",
|
|
14
|
+
type: "uint256",
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
internalType: "uint256",
|
|
18
|
+
name: "currentRate",
|
|
19
|
+
type: "uint256",
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
internalType: "uint256",
|
|
23
|
+
name: "eps",
|
|
24
|
+
type: "uint256",
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
name: "BulkBadRateSyToToken",
|
|
28
|
+
type: "error",
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
inputs: [
|
|
32
|
+
{
|
|
33
|
+
internalType: "uint256",
|
|
34
|
+
name: "actualRate",
|
|
35
|
+
type: "uint256",
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
internalType: "uint256",
|
|
39
|
+
name: "currentRate",
|
|
40
|
+
type: "uint256",
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
internalType: "uint256",
|
|
44
|
+
name: "eps",
|
|
45
|
+
type: "uint256",
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
name: "BulkBadRateTokenToSy",
|
|
49
|
+
type: "error",
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
inputs: [
|
|
53
|
+
{
|
|
54
|
+
internalType: "uint256",
|
|
55
|
+
name: "actualSyOut",
|
|
56
|
+
type: "uint256",
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
internalType: "uint256",
|
|
60
|
+
name: "requiredSyOut",
|
|
61
|
+
type: "uint256",
|
|
62
|
+
},
|
|
63
|
+
],
|
|
64
|
+
name: "BulkInSufficientSyOut",
|
|
65
|
+
type: "error",
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
inputs: [
|
|
69
|
+
{
|
|
70
|
+
internalType: "uint256",
|
|
71
|
+
name: "actualTokenOut",
|
|
72
|
+
type: "uint256",
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
internalType: "uint256",
|
|
76
|
+
name: "requiredTokenOut",
|
|
77
|
+
type: "uint256",
|
|
78
|
+
},
|
|
79
|
+
],
|
|
80
|
+
name: "BulkInSufficientTokenOut",
|
|
81
|
+
type: "error",
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
inputs: [
|
|
85
|
+
{
|
|
86
|
+
internalType: "uint256",
|
|
87
|
+
name: "currentAmount",
|
|
88
|
+
type: "uint256",
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
internalType: "uint256",
|
|
92
|
+
name: "requiredAmount",
|
|
93
|
+
type: "uint256",
|
|
94
|
+
},
|
|
95
|
+
],
|
|
96
|
+
name: "BulkInsufficientSyForTrade",
|
|
97
|
+
type: "error",
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
inputs: [
|
|
101
|
+
{
|
|
102
|
+
internalType: "uint256",
|
|
103
|
+
name: "actualBalance",
|
|
104
|
+
type: "uint256",
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
internalType: "uint256",
|
|
108
|
+
name: "requiredBalance",
|
|
109
|
+
type: "uint256",
|
|
110
|
+
},
|
|
111
|
+
],
|
|
112
|
+
name: "BulkInsufficientSyReceived",
|
|
113
|
+
type: "error",
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
inputs: [
|
|
117
|
+
{
|
|
118
|
+
internalType: "uint256",
|
|
119
|
+
name: "currentAmount",
|
|
120
|
+
type: "uint256",
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
internalType: "uint256",
|
|
124
|
+
name: "requiredAmount",
|
|
125
|
+
type: "uint256",
|
|
126
|
+
},
|
|
127
|
+
],
|
|
128
|
+
name: "BulkInsufficientTokenForTrade",
|
|
129
|
+
type: "error",
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
inputs: [
|
|
133
|
+
{
|
|
134
|
+
internalType: "uint256",
|
|
135
|
+
name: "actualBalance",
|
|
136
|
+
type: "uint256",
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
internalType: "uint256",
|
|
140
|
+
name: "requiredBalance",
|
|
141
|
+
type: "uint256",
|
|
142
|
+
},
|
|
143
|
+
],
|
|
144
|
+
name: "BulkInsufficientTokenReceived",
|
|
145
|
+
type: "error",
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
inputs: [],
|
|
149
|
+
name: "BulkNotAdmin",
|
|
150
|
+
type: "error",
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
inputs: [],
|
|
154
|
+
name: "BulkNotMaintainer",
|
|
155
|
+
type: "error",
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
anonymous: false,
|
|
159
|
+
inputs: [
|
|
160
|
+
{
|
|
161
|
+
indexed: false,
|
|
162
|
+
internalType: "uint256",
|
|
163
|
+
name: "newFeeRate",
|
|
164
|
+
type: "uint256",
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
indexed: false,
|
|
168
|
+
internalType: "uint256",
|
|
169
|
+
name: "oldFeeRate",
|
|
170
|
+
type: "uint256",
|
|
171
|
+
},
|
|
172
|
+
],
|
|
173
|
+
name: "FeeRateUpdated",
|
|
174
|
+
type: "event",
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
anonymous: false,
|
|
178
|
+
inputs: [
|
|
179
|
+
{
|
|
180
|
+
indexed: false,
|
|
181
|
+
internalType: "uint8",
|
|
182
|
+
name: "version",
|
|
183
|
+
type: "uint8",
|
|
184
|
+
},
|
|
185
|
+
],
|
|
186
|
+
name: "Initialized",
|
|
187
|
+
type: "event",
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
anonymous: false,
|
|
191
|
+
inputs: [
|
|
192
|
+
{
|
|
193
|
+
indexed: false,
|
|
194
|
+
internalType: "uint256",
|
|
195
|
+
name: "newRateTokenToSy",
|
|
196
|
+
type: "uint256",
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
indexed: false,
|
|
200
|
+
internalType: "uint256",
|
|
201
|
+
name: "newRateSyToToken",
|
|
202
|
+
type: "uint256",
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
indexed: false,
|
|
206
|
+
internalType: "uint256",
|
|
207
|
+
name: "oldRateTokenToSy",
|
|
208
|
+
type: "uint256",
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
indexed: false,
|
|
212
|
+
internalType: "uint256",
|
|
213
|
+
name: "oldRateSyToToken",
|
|
214
|
+
type: "uint256",
|
|
215
|
+
},
|
|
216
|
+
],
|
|
217
|
+
name: "RateUpdated",
|
|
218
|
+
type: "event",
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
anonymous: false,
|
|
222
|
+
inputs: [
|
|
223
|
+
{
|
|
224
|
+
indexed: false,
|
|
225
|
+
internalType: "uint256",
|
|
226
|
+
name: "netSyRedeem",
|
|
227
|
+
type: "uint256",
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
indexed: false,
|
|
231
|
+
internalType: "uint256",
|
|
232
|
+
name: "netTokenFromSy",
|
|
233
|
+
type: "uint256",
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
indexed: false,
|
|
237
|
+
internalType: "uint256",
|
|
238
|
+
name: "newTokenProp",
|
|
239
|
+
type: "uint256",
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
indexed: false,
|
|
243
|
+
internalType: "uint256",
|
|
244
|
+
name: "oldTokenProp",
|
|
245
|
+
type: "uint256",
|
|
246
|
+
},
|
|
247
|
+
],
|
|
248
|
+
name: "ReBalanceSyToToken",
|
|
249
|
+
type: "event",
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
anonymous: false,
|
|
253
|
+
inputs: [
|
|
254
|
+
{
|
|
255
|
+
indexed: false,
|
|
256
|
+
internalType: "uint256",
|
|
257
|
+
name: "netTokenDeposit",
|
|
258
|
+
type: "uint256",
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
indexed: false,
|
|
262
|
+
internalType: "uint256",
|
|
263
|
+
name: "netSyFromToken",
|
|
264
|
+
type: "uint256",
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
indexed: false,
|
|
268
|
+
internalType: "uint256",
|
|
269
|
+
name: "newTokenProp",
|
|
270
|
+
type: "uint256",
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
indexed: false,
|
|
274
|
+
internalType: "uint256",
|
|
275
|
+
name: "oldTokenProp",
|
|
276
|
+
type: "uint256",
|
|
277
|
+
},
|
|
278
|
+
],
|
|
279
|
+
name: "ReBalanceTokenToSy",
|
|
280
|
+
type: "event",
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
anonymous: false,
|
|
284
|
+
inputs: [
|
|
285
|
+
{
|
|
286
|
+
indexed: false,
|
|
287
|
+
internalType: "uint256",
|
|
288
|
+
name: "totalToken",
|
|
289
|
+
type: "uint256",
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
indexed: false,
|
|
293
|
+
internalType: "uint256",
|
|
294
|
+
name: "totalSy",
|
|
295
|
+
type: "uint256",
|
|
296
|
+
},
|
|
297
|
+
],
|
|
298
|
+
name: "ReserveUpdated",
|
|
299
|
+
type: "event",
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
anonymous: false,
|
|
303
|
+
inputs: [
|
|
304
|
+
{
|
|
305
|
+
indexed: false,
|
|
306
|
+
internalType: "address",
|
|
307
|
+
name: "receiver",
|
|
308
|
+
type: "address",
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
indexed: false,
|
|
312
|
+
internalType: "uint256",
|
|
313
|
+
name: "netSyIn",
|
|
314
|
+
type: "uint256",
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
indexed: false,
|
|
318
|
+
internalType: "uint256",
|
|
319
|
+
name: "netTokenOut",
|
|
320
|
+
type: "uint256",
|
|
321
|
+
},
|
|
322
|
+
],
|
|
323
|
+
name: "SwapExactSyForToken",
|
|
324
|
+
type: "event",
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
anonymous: false,
|
|
328
|
+
inputs: [
|
|
329
|
+
{
|
|
330
|
+
indexed: false,
|
|
331
|
+
internalType: "address",
|
|
332
|
+
name: "receiver",
|
|
333
|
+
type: "address",
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
indexed: false,
|
|
337
|
+
internalType: "uint256",
|
|
338
|
+
name: "netTokenIn",
|
|
339
|
+
type: "uint256",
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
indexed: false,
|
|
343
|
+
internalType: "uint256",
|
|
344
|
+
name: "netSyOut",
|
|
345
|
+
type: "uint256",
|
|
346
|
+
},
|
|
347
|
+
],
|
|
348
|
+
name: "SwapExactTokenForSy",
|
|
349
|
+
type: "event",
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
inputs: [],
|
|
353
|
+
name: "SY",
|
|
354
|
+
outputs: [
|
|
355
|
+
{
|
|
356
|
+
internalType: "address",
|
|
357
|
+
name: "",
|
|
358
|
+
type: "address",
|
|
359
|
+
},
|
|
360
|
+
],
|
|
361
|
+
stateMutability: "view",
|
|
362
|
+
type: "function",
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
inputs: [],
|
|
366
|
+
name: "_storage",
|
|
367
|
+
outputs: [
|
|
368
|
+
{
|
|
369
|
+
internalType: "uint128",
|
|
370
|
+
name: "rateTokenToSy",
|
|
371
|
+
type: "uint128",
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
internalType: "uint128",
|
|
375
|
+
name: "rateSyToToken",
|
|
376
|
+
type: "uint128",
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
internalType: "uint128",
|
|
380
|
+
name: "totalSy",
|
|
381
|
+
type: "uint128",
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
internalType: "uint128",
|
|
385
|
+
name: "totalToken",
|
|
386
|
+
type: "uint128",
|
|
387
|
+
},
|
|
388
|
+
],
|
|
389
|
+
stateMutability: "view",
|
|
390
|
+
type: "function",
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
inputs: [
|
|
394
|
+
{
|
|
395
|
+
internalType: "uint256",
|
|
396
|
+
name: "netSyIn",
|
|
397
|
+
type: "uint256",
|
|
398
|
+
},
|
|
399
|
+
],
|
|
400
|
+
name: "calcSwapExactSyForToken",
|
|
401
|
+
outputs: [
|
|
402
|
+
{
|
|
403
|
+
internalType: "uint256",
|
|
404
|
+
name: "netTokenOut",
|
|
405
|
+
type: "uint256",
|
|
406
|
+
},
|
|
407
|
+
],
|
|
408
|
+
stateMutability: "view",
|
|
409
|
+
type: "function",
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
inputs: [
|
|
413
|
+
{
|
|
414
|
+
internalType: "uint256",
|
|
415
|
+
name: "netTokenIn",
|
|
416
|
+
type: "uint256",
|
|
417
|
+
},
|
|
418
|
+
],
|
|
419
|
+
name: "calcSwapExactTokenForSy",
|
|
420
|
+
outputs: [
|
|
421
|
+
{
|
|
422
|
+
internalType: "uint256",
|
|
423
|
+
name: "netSyOut",
|
|
424
|
+
type: "uint256",
|
|
425
|
+
},
|
|
426
|
+
],
|
|
427
|
+
stateMutability: "view",
|
|
428
|
+
type: "function",
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
inputs: [
|
|
432
|
+
{
|
|
433
|
+
internalType: "uint256",
|
|
434
|
+
name: "netTokenOut",
|
|
435
|
+
type: "uint256",
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
internalType: "uint256",
|
|
439
|
+
name: "netSyOut",
|
|
440
|
+
type: "uint256",
|
|
441
|
+
},
|
|
442
|
+
],
|
|
443
|
+
name: "decreaseReserve",
|
|
444
|
+
outputs: [],
|
|
445
|
+
stateMutability: "nonpayable",
|
|
446
|
+
type: "function",
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
inputs: [],
|
|
450
|
+
name: "factory",
|
|
451
|
+
outputs: [
|
|
452
|
+
{
|
|
453
|
+
internalType: "address",
|
|
454
|
+
name: "",
|
|
455
|
+
type: "address",
|
|
456
|
+
},
|
|
457
|
+
],
|
|
458
|
+
stateMutability: "view",
|
|
459
|
+
type: "function",
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
inputs: [],
|
|
463
|
+
name: "feeRate",
|
|
464
|
+
outputs: [
|
|
465
|
+
{
|
|
466
|
+
internalType: "uint64",
|
|
467
|
+
name: "",
|
|
468
|
+
type: "uint64",
|
|
469
|
+
},
|
|
470
|
+
],
|
|
471
|
+
stateMutability: "view",
|
|
472
|
+
type: "function",
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
inputs: [],
|
|
476
|
+
name: "getTokenProp",
|
|
477
|
+
outputs: [
|
|
478
|
+
{
|
|
479
|
+
internalType: "uint256",
|
|
480
|
+
name: "",
|
|
481
|
+
type: "uint256",
|
|
482
|
+
},
|
|
483
|
+
],
|
|
484
|
+
stateMutability: "view",
|
|
485
|
+
type: "function",
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
inputs: [
|
|
489
|
+
{
|
|
490
|
+
internalType: "uint256",
|
|
491
|
+
name: "netTokenIn",
|
|
492
|
+
type: "uint256",
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
internalType: "uint256",
|
|
496
|
+
name: "netSyIn",
|
|
497
|
+
type: "uint256",
|
|
498
|
+
},
|
|
499
|
+
],
|
|
500
|
+
name: "increaseReserve",
|
|
501
|
+
outputs: [],
|
|
502
|
+
stateMutability: "nonpayable",
|
|
503
|
+
type: "function",
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
inputs: [
|
|
507
|
+
{
|
|
508
|
+
internalType: "address",
|
|
509
|
+
name: "_token",
|
|
510
|
+
type: "address",
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
internalType: "address",
|
|
514
|
+
name: "_SY",
|
|
515
|
+
type: "address",
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
internalType: "address",
|
|
519
|
+
name: "_factory",
|
|
520
|
+
type: "address",
|
|
521
|
+
},
|
|
522
|
+
],
|
|
523
|
+
name: "initialize",
|
|
524
|
+
outputs: [],
|
|
525
|
+
stateMutability: "nonpayable",
|
|
526
|
+
type: "function",
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
inputs: [
|
|
530
|
+
{
|
|
531
|
+
internalType: "uint256",
|
|
532
|
+
name: "targetProp",
|
|
533
|
+
type: "uint256",
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
internalType: "uint256",
|
|
537
|
+
name: "maxDiff",
|
|
538
|
+
type: "uint256",
|
|
539
|
+
},
|
|
540
|
+
],
|
|
541
|
+
name: "reBalance",
|
|
542
|
+
outputs: [],
|
|
543
|
+
stateMutability: "nonpayable",
|
|
544
|
+
type: "function",
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
inputs: [],
|
|
548
|
+
name: "readState",
|
|
549
|
+
outputs: [
|
|
550
|
+
{
|
|
551
|
+
components: [
|
|
552
|
+
{
|
|
553
|
+
internalType: "uint256",
|
|
554
|
+
name: "rateTokenToSy",
|
|
555
|
+
type: "uint256",
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
internalType: "uint256",
|
|
559
|
+
name: "rateSyToToken",
|
|
560
|
+
type: "uint256",
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
internalType: "uint256",
|
|
564
|
+
name: "totalToken",
|
|
565
|
+
type: "uint256",
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
internalType: "uint256",
|
|
569
|
+
name: "totalSy",
|
|
570
|
+
type: "uint256",
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
internalType: "uint256",
|
|
574
|
+
name: "feeRate",
|
|
575
|
+
type: "uint256",
|
|
576
|
+
},
|
|
577
|
+
],
|
|
578
|
+
internalType: "struct BulkSellerState",
|
|
579
|
+
name: "state",
|
|
580
|
+
type: "tuple",
|
|
581
|
+
},
|
|
582
|
+
],
|
|
583
|
+
stateMutability: "view",
|
|
584
|
+
type: "function",
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
inputs: [
|
|
588
|
+
{
|
|
589
|
+
internalType: "uint64",
|
|
590
|
+
name: "newFeeRate",
|
|
591
|
+
type: "uint64",
|
|
592
|
+
},
|
|
593
|
+
],
|
|
594
|
+
name: "setFeeRate",
|
|
595
|
+
outputs: [],
|
|
596
|
+
stateMutability: "nonpayable",
|
|
597
|
+
type: "function",
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
inputs: [
|
|
601
|
+
{
|
|
602
|
+
internalType: "uint256",
|
|
603
|
+
name: "newRateSyToToken",
|
|
604
|
+
type: "uint256",
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
internalType: "uint256",
|
|
608
|
+
name: "newRateTokenToSy",
|
|
609
|
+
type: "uint256",
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
internalType: "uint256",
|
|
613
|
+
name: "maxDiff",
|
|
614
|
+
type: "uint256",
|
|
615
|
+
},
|
|
616
|
+
],
|
|
617
|
+
name: "setRate",
|
|
618
|
+
outputs: [],
|
|
619
|
+
stateMutability: "nonpayable",
|
|
620
|
+
type: "function",
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
inputs: [
|
|
624
|
+
{
|
|
625
|
+
internalType: "address",
|
|
626
|
+
name: "receiver",
|
|
627
|
+
type: "address",
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
internalType: "uint256",
|
|
631
|
+
name: "exactSyIn",
|
|
632
|
+
type: "uint256",
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
internalType: "uint256",
|
|
636
|
+
name: "minTokenOut",
|
|
637
|
+
type: "uint256",
|
|
638
|
+
},
|
|
639
|
+
],
|
|
640
|
+
name: "swapExactSyForToken",
|
|
641
|
+
outputs: [
|
|
642
|
+
{
|
|
643
|
+
internalType: "uint256",
|
|
644
|
+
name: "netTokenOut",
|
|
645
|
+
type: "uint256",
|
|
646
|
+
},
|
|
647
|
+
],
|
|
648
|
+
stateMutability: "nonpayable",
|
|
649
|
+
type: "function",
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
inputs: [
|
|
653
|
+
{
|
|
654
|
+
internalType: "address",
|
|
655
|
+
name: "receiver",
|
|
656
|
+
type: "address",
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
internalType: "uint256",
|
|
660
|
+
name: "netTokenIn",
|
|
661
|
+
type: "uint256",
|
|
662
|
+
},
|
|
663
|
+
{
|
|
664
|
+
internalType: "uint256",
|
|
665
|
+
name: "minSyOut",
|
|
666
|
+
type: "uint256",
|
|
667
|
+
},
|
|
668
|
+
],
|
|
669
|
+
name: "swapExactTokenForSy",
|
|
670
|
+
outputs: [
|
|
671
|
+
{
|
|
672
|
+
internalType: "uint256",
|
|
673
|
+
name: "netSyOut",
|
|
674
|
+
type: "uint256",
|
|
675
|
+
},
|
|
676
|
+
],
|
|
677
|
+
stateMutability: "nonpayable",
|
|
678
|
+
type: "function",
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
inputs: [],
|
|
682
|
+
name: "token",
|
|
683
|
+
outputs: [
|
|
684
|
+
{
|
|
685
|
+
internalType: "address",
|
|
686
|
+
name: "",
|
|
687
|
+
type: "address",
|
|
688
|
+
},
|
|
689
|
+
],
|
|
690
|
+
stateMutability: "view",
|
|
691
|
+
type: "function",
|
|
692
|
+
},
|
|
693
|
+
];
|
|
694
|
+
|
|
695
|
+
const _bytecode =
|
|
696
|
+
"0x608060405234801561001057600080fd5b50611ce1806100206000396000f3fe608060405234801561001057600080fd5b50600436106100db5760003560e01c80632778c334146100e05780633989c66614610133578063459770f6146101485780634bd286c11461015b5780636d71be4c14610171578063978bbdb914610184578063985b5219146101b6578063a279879b146101c9578063afd27bf5146101dc578063b2767070146101fc578063bd5688d51461020f578063c0c53b8b14610222578063c3fb90d614610235578063c45a015514610294578063d0378d07146102a7578063d2c22613146102ba578063fc0c546a146102cd575b600080fd5b6100e86102e0565b60405161012a9190600060a082019050825182526020830151602083015260408301516040830152606083015160608301526080830151608083015292915050565b60405180910390f35b61014661014136600461194d565b61036f565b005b610146610156366004611979565b610466565b61016361056f565b60405190815260200161012a565b61014661017f3660046119a2565b61058b565b60345461019e90600160a01b90046001600160401b031681565b6040516001600160401b03909116815260200161012a565b6101636101c43660046119c4565b6106ce565b6101466101d73660046119a2565b610708565b6034546101ef906001600160a01b031681565b60405161012a91906119dd565b61016361020a366004611a0d565b6108a8565b61016361021d366004611a0d565b6109e3565b610146610230366004611a40565b610b01565b603654603754610261916001600160801b0380821692600160801b928390048216928183169291041684565b604080516001600160801b039586168152938516602085015291841691830191909152909116606082015260800161012a565b6035546101ef906001600160a01b031681565b6101466102b53660046119a2565b610c58565b6101636102c83660046119c4565b610d6e565b6033546101ef906001600160a01b031681565b6103126040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b506040805160a0810182526036546001600160801b038082168352600160801b91829004811660208401526037549182048116938301939093529091166060820152603454600160a01b90046001600160401b0316608082015290565b603554604051636eab9b3560e11b81526001600160a01b039091169063dd57366a9061039f9033906004016119dd565b602060405180830381865afa1580156103bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103e09190611a83565b6103fd57604051630de65d1160e11b815260040160405180910390fd5b60006104076102e0565b805160208201516040519293507fdd8196f9280a887c2cda9ceaa0c9f147ee5931086cfa28738c70c45ce383f1cb926104439287928992611aa5565b60405180910390a161045781858585610db0565b61046081610e42565b50505050565b603554604051636eab9b3560e11b81526001600160a01b039091169063dd57366a906104969033906004016119dd565b602060405180830381865afa1580156104b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104d79190611a83565b6104f457604051630de65d1160e11b815260040160405180910390fd5b603454604080516001600160401b038085168252600160a01b90930490921660208301527f14914da2bf76024616fbe1859783fcd4dbddcb179b1f3a854949fbf920dcb957910160405180910390a1603480546001600160401b03909216600160a01b02600160a01b600160e01b0319909216919091179055565b60008061057a6102e0565b905061058581610eee565b91505090565b603554604051636eab9b3560e11b81526001600160a01b039091169063dd57366a906105bb9033906004016119dd565b602060405180830381865afa1580156105d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105fc9190611a83565b61061957604051630de65d1160e11b815260040160405180910390fd5b60006106236102e0565b905082816040018181516106379190611ad6565b90525060608101805183919061064e908390611ad6565b905250603354610668906001600160a01b03163385610f2a565b60345461067f906001600160a01b03163384610f2a565b7f32dc813d3f262a05478ad1165d5701040e411d9a6e1684c8c2da1c8e6f3b8022816040015182606001516040516106b8929190611ae9565b60405180910390a16106c981610e42565b505050565b6036546000906001600160801b031681036106eb576106eb611af7565b6036546107029083906001600160801b0316610f91565b92915050565b603554604051636eab9b3560e11b81526001600160a01b039091169063dd57366a906107389033906004016119dd565b602060405180830381865afa158015610755573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107799190611a83565b61079657604051630de65d1160e11b815260040160405180910390fd5b60006107a06102e0565b905060006107ad82610eee565b90506000806107bc8487610fb4565b909250905081156108315760006107d283611033565b90506107e0858483896110da565b60006107eb86610eee565b90507fb569412a0abb89d32fca61e1a718d803d8e7dd8b1fe0b8e152a01e1808e7d232848383886040516108229493929190611aa5565b60405180910390a15050610897565b600061083c8261114d565b905061084a858383896111b6565b600061085586610eee565b90507fc41b352e51a1d27f9abe2577fe6a992eaee7f0c62e0185f726a6876463db710b8383838860405161088c9493929190611aa5565b60405180910390a150505b6108a084610e42565b505050505050565b60006002600154036108d55760405162461bcd60e51b81526004016108cc90611b0d565b60405180910390fd5b600260015560006108e46102e0565b90506108f08185611222565b91508282101561091757818360405163efd9f0cd60e01b81526004016108cc929190611ae9565b6001600160a01b038516301461093e5760345461093e906001600160a01b03168684611262565b61094781610e42565b6040810151603354610961906001600160a01b0316611326565b101561099c5760335461097c906001600160a01b0316611326565b8160400151604051632d95d23b60e21b81526004016108cc929190611ae9565b7fdeed462e5fd237e34f502e1dcf0d079b3a5e5958bebea6b03700434c7bec36d48585846040516109cf93929190611b44565b60405180910390a150600180559392505050565b6000600260015403610a075760405162461bcd60e51b81526004016108cc90611b0d565b60026001556000610a166102e0565b9050610a2281856113b0565b915082821015610a4957818360405163d407991560e01b81526004016108cc929190611ae9565b6001600160a01b0385163014610a7057603354610a70906001600160a01b03168684611262565b610a7981610e42565b6060810151603454610a93906001600160a01b0316611326565b1015610ace57603454610aae906001600160a01b0316611326565b8160600151604051636313b4e560e01b81526004016108cc929190611ae9565b7fe9dcd197d2f7d180de1ecfd3999f91ecf06bb65781541f206ddabbc08e4cd29b8585846040516109cf93929190611b44565b600054610100900460ff1615808015610b215750600054600160ff909116105b80610b425750610b30306113e7565b158015610b42575060005460ff166001145b610ba55760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016108cc565b6000805460ff191660011790558015610bc8576000805461ff0019166101001790555b610bd06113f6565b603380546001600160a01b038087166001600160a01b0319928316179092556034805486841690831617905560358054928516929091169190911790558015610460576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a150505050565b603554604051630935e01b60e21b81526001600160a01b03909116906324d7806c90610c889033906004016119dd565b602060405180830381865afa158015610ca5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cc99190611a83565b610ce6576040516308e4b93b60e21b815260040160405180910390fd5b6000610cf06102e0565b90506000198303610d0357806040015192505b6000198203610d1457806060015191505b8281604001818151610d269190611b65565b905250606081018051839190610d3d908390611b65565b905250603354610d57906001600160a01b03163385611262565b60345461067f906001600160a01b03163384611262565b603654600090600160801b90046001600160801b03168103610d9257610d92611af7565b603654610702908390600160801b90046001600160801b0316610f91565b835115801590610dcc5750610dca83856000015183611427565b155b15610df057835160405163efb0d1c760e01b81526108cc9185918490600401611b78565b602084015115801590610e0f5750610e0d82856020015183611427565b155b15610e365760208401516040516334b59fe160e21b81526108cc9184918490600401611b78565b50908252602090910152565b60006040518060800160405280610e5c8460000151611472565b6001600160801b03168152602001610e778460200151611472565b6001600160801b03168152602001610e928460600151611472565b6001600160801b03168152602001610ead8460400151611472565b6001600160801b03908116909152815160208301518216600160801b9081029183169190911760365560408301516060909301518216029116176037555050565b604081015160208201516060830151600092918391610f0c91610f91565b9050610f22610f1b8284611ad6565b839061148c565b949350505050565b6001600160a01b038316610f76578034146106c95760405162461bcd60e51b815260206004820152600c60248201526b0cae8d040dad2e6dac2e8c6d60a31b60448201526064016108cc565b80156106c9576106c96001600160a01b0384168330846114b2565b600080610f9e8385611b8e565b9050670de0b6b3a7640000815b04949350505050565b6000806000610fc285610eee565b905083811115610ff557610fee610fe382610fdd8782611b65565b9061148c565b604087015190610f91565b925061102b565b600061100982670de0b6b3a7640000611b65565b905061102761101c82610fdd8589611b65565b606088015190610f91565b9250505b509250929050565b603354603454600091611053916001600160a01b0391821691168461151d565b6034546033546040516320e8c56560e01b81523060048201526001600160a01b03918216602482015260448101859052600060648201529116906320e8c565906084015b6020604051808303816000875af11580156110b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107029190611bbb565b60006110e6838561148c565b90506110f781866000015184611427565b61111a57845160405163efb0d1c760e01b81526108cc9183918590600401611b78565b838560400181815161112c9190611b65565b905250606085018051849190611143908390611ad6565b9052505050505050565b603454600090611167906001600160a01b03168084611262565b60345460335460405163769f8e5d60e01b8152306004820152602481018590526001600160a01b039182166044820152600060648201526001608482015291169063769f8e5d9060a401611097565b60006111c2838561148c565b90506111d381866020015184611427565b6111f95760208501516040516334b59fe160e21b81526108cc9183918590600401611b78565b828560400181815161120b9190611ad6565b905250606085018051859190611143908390611b65565b600061122e8383611631565b905081836040018181516112429190611ad6565b905250606083018051829190611259908390611b65565b90525092915050565b8060000361126f57505050565b6001600160a01b038316611312576000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146112ca576040519150601f19603f3d011682016040523d82523d6000602084013e6112cf565b606091505b50509050806104605760405162461bcd60e51b815260206004820152600f60248201526e195d1a081cd95b990819985a5b1959608a1b60448201526064016108cc565b6106c96001600160a01b03841683836116a9565b60006001600160a01b038216156113a9576040516370a0823160e01b81526001600160a01b038316906370a08231906113639030906004016119dd565b602060405180830381865afa158015611380573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113a49190611bbb565b610702565b4792915050565b60006113bc83836116c8565b905081836060018181516113d09190611ad6565b905250604083018051829190611259908390611b65565b6001600160a01b03163b151590565b600054610100900460ff1661141d5760405162461bcd60e51b81526004016108cc90611bd4565b61142561173c565b565b6000836114458461144085670de0b6b3a7640000611b65565b610f91565b1115801561146857506114648361144084670de0b6b3a7640000611ad6565b8411155b90505b9392505050565b60006001600160801b0382111561148857600080fd5b5090565b6000806114a1670de0b6b3a764000085611b8e565b9050828181610fab57610fab611ba5565b6040516001600160a01b03808516602483015283166044820152606481018290526104609085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611769565b600080846001600160a01b031663095ea7b360e01b8585604051602401611545929190611c1f565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b03199094169390931790925290516115839190611c5c565b6000604051808303816000865af19150503d80600081146115c0576040519150601f19603f3d011682016040523d82523d6000602084013e6115c5565b606091505b50915091508180156115ef5750805115806115ef5750808060200190518101906115ef9190611a83565b61162a5760405162461bcd60e51b815260206004820152600c60248201526b5361666520417070726f766560a01b60448201526064016108cc565b5050505050565b6000806116578460800151670de0b6b3a764000061164f9190611b65565b855190610f91565b90508060000361166957611669611af7565b6116738382610f91565b915083606001518211156116a25783606001518260405163035c130560e21b81526004016108cc929190611ae9565b5092915050565b6106c98363a9059cbb60e01b84846040516024016114e6929190611c1f565b6000806116f18460800151670de0b6b3a76400006116e69190611b65565b602086015190610f91565b90508060000361170357611703611af7565b61170d8382610f91565b915083604001518211156116a257836040015182604051631895cd1f60e01b81526004016108cc929190611ae9565b600054610100900460ff166117635760405162461bcd60e51b81526004016108cc90611bd4565b60018055565b60006117be826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661183b9092919063ffffffff16565b8051909150156106c957808060200190518101906117dc9190611a83565b6106c95760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016108cc565b606061146884846000858561184f856113e7565b61189b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016108cc565b600080866001600160a01b031685876040516118b79190611c5c565b60006040518083038185875af1925050503d80600081146118f4576040519150601f19603f3d011682016040523d82523d6000602084013e6118f9565b606091505b5091509150611909828286611914565b979650505050505050565b6060831561192357508161146b565b8251156119335782518084602001fd5b8160405162461bcd60e51b81526004016108cc9190611c78565b60008060006060848603121561196257600080fd5b505081359360208301359350604090920135919050565b60006020828403121561198b57600080fd5b81356001600160401b038116811461146b57600080fd5b600080604083850312156119b557600080fd5b50508035926020909101359150565b6000602082840312156119d657600080fd5b5035919050565b6001600160a01b0391909116815260200190565b80356001600160a01b0381168114611a0857600080fd5b919050565b600080600060608486031215611a2257600080fd5b611a2b846119f1565b95602085013595506040909401359392505050565b600080600060608486031215611a5557600080fd5b611a5e846119f1565b9250611a6c602085016119f1565b9150611a7a604085016119f1565b90509250925092565b600060208284031215611a9557600080fd5b8151801515811461146b57600080fd5b93845260208401929092526040830152606082015260800190565b634e487b7160e01b600052601160045260246000fd5b8082018082111561070257610702611ac0565b918252602082015260400190565b634e487b7160e01b600052600160045260246000fd5b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6001600160a01b039390931683526020830191909152604082015260600190565b8181038181111561070257610702611ac0565b9283526020830191909152604082015260600190565b808202811582820484141761070257610702611ac0565b634e487b7160e01b600052601260045260246000fd5b600060208284031215611bcd57600080fd5b5051919050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b6001600160a01b03929092168252602082015260400190565b60005b83811015611c53578181015183820152602001611c3b565b50506000910152565b60008251611c6e818460208701611c38565b9190910192915050565b6020815260008251806020840152611c97816040850160208701611c38565b601f01601f1916919091016040019291505056fea264697066735822122067d9fa486e494bef735b33c461ef41c1ce22383a4d519569c9123d6711a577d964736f6c63430008110033";
|
|
697
|
+
|
|
698
|
+
type BulkSellerConstructorParams =
|
|
699
|
+
| [signer?: Signer]
|
|
700
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
701
|
+
|
|
702
|
+
const isSuperArgs = (
|
|
703
|
+
xs: BulkSellerConstructorParams
|
|
704
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
705
|
+
|
|
706
|
+
export class BulkSeller__factory extends ContractFactory {
|
|
707
|
+
constructor(...args: BulkSellerConstructorParams) {
|
|
708
|
+
if (isSuperArgs(args)) {
|
|
709
|
+
super(...args);
|
|
710
|
+
} else {
|
|
711
|
+
super(_abi, _bytecode, args[0]);
|
|
712
|
+
}
|
|
713
|
+
this.contractName = "BulkSeller";
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
deploy(
|
|
717
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
718
|
+
): Promise<BulkSeller> {
|
|
719
|
+
return super.deploy(overrides || {}) as Promise<BulkSeller>;
|
|
720
|
+
}
|
|
721
|
+
getDeployTransaction(
|
|
722
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
723
|
+
): TransactionRequest {
|
|
724
|
+
return super.getDeployTransaction(overrides || {});
|
|
725
|
+
}
|
|
726
|
+
attach(address: string): BulkSeller {
|
|
727
|
+
return super.attach(address) as BulkSeller;
|
|
728
|
+
}
|
|
729
|
+
connect(signer: Signer): BulkSeller__factory {
|
|
730
|
+
return super.connect(signer) as BulkSeller__factory;
|
|
731
|
+
}
|
|
732
|
+
static readonly contractName: "BulkSeller";
|
|
733
|
+
public readonly contractName: "BulkSeller";
|
|
734
|
+
static readonly bytecode = _bytecode;
|
|
735
|
+
static readonly abi = _abi;
|
|
736
|
+
static createInterface(): BulkSellerInterface {
|
|
737
|
+
return new utils.Interface(_abi) as BulkSellerInterface;
|
|
738
|
+
}
|
|
739
|
+
static connect(
|
|
740
|
+
address: string,
|
|
741
|
+
signerOrProvider: Signer | Provider
|
|
742
|
+
): BulkSeller {
|
|
743
|
+
return new Contract(address, _abi, signerOrProvider) as BulkSeller;
|
|
744
|
+
}
|
|
745
|
+
}
|