@pendle/core-v2 0.13.1-testnet → 0.14.0-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 +2 -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 +2 -2
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.dbg.json +1 -1
- 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 +2 -2
- package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributorFactory.sol/PendleFeeDistributorFactory.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributorFactory.sol/PendleFeeDistributorFactory.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.json +89 -0
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +91 -2
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.json +91 -2
- package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +2 -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 +2 -2
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +2 -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/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 +26 -26
- package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.json +2 -2
- package/build/artifacts/contracts/core/RewardManager/RewardManager.sol/RewardManager.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/PYIndex.sol/PYIndexLib.dbg.json +4 -0
- package/build/artifacts/contracts/core/{SuperComposableYield → StandardizedYield}/PYIndex.sol/PYIndexLib.json +3 -3
- package/build/artifacts/contracts/core/StandardizedYield/SYBase.sol/SYBase.dbg.json +4 -0
- package/build/artifacts/contracts/core/{SuperComposableYield/SCYBase.sol/SCYBase.json → StandardizedYield/SYBase.sol/SYBase.json} +11 -11
- package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.dbg.json +4 -0
- package/build/artifacts/contracts/core/{SuperComposableYield/SCYBaseWithRewards.sol/SCYBaseWithRewards.json → StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.json} +11 -11
- package/build/artifacts/contracts/core/StandardizedYield/SYUtils.sol/SYUtils.dbg.json +4 -0
- package/build/artifacts/contracts/core/{SuperComposableYield/SCYUtils.sol/SCYUtils.json → StandardizedYield/SYUtils.sol/SYUtils.json} +4 -4
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +4 -0
- package/build/artifacts/contracts/core/{SuperComposableYield → StandardizedYield}/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.json +3 -3
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.dbg.json +4 -0
- package/build/artifacts/contracts/core/{SuperComposableYield/implementations/BenQi/PendleQiTokenSCY.sol/PendleQiTokenSCY.json → StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.json} +17 -17
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/ConvexCurveLP/Pendle3CrvAndTokenSY.sol/Pendle3CrvAndTokenSY.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/ConvexCurveLP/Pendle3CrvAndTokenSY.sol/Pendle3CrvAndTokenSY.json +1028 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/ConvexCurveLP/PendleConvexLPSY.sol/PendleConvexLPSY.dbg.json +4 -0
- package/build/artifacts/contracts/core/{SuperComposableYield/implementations/Convex/ConvexCurveLP/PendleConvexCurveLPSCY.sol/PendleConvexCurveLPSCY.json → StandardizedYield/implementations/Convex/ConvexCurveLP/PendleConvexLPSY.sol/PendleConvexLPSY.json} +47 -47
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/Pendle3CrvHelper.sol/Pendle3CrvHelper.dbg.json +4 -0
- package/build/artifacts/contracts/core/{SuperComposableYield → StandardizedYield}/implementations/Convex/Pendle3CrvHelper.sol/Pendle3CrvHelper.json +5 -5
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.dbg.json +4 -0
- package/build/artifacts/contracts/core/{SuperComposableYield/implementations/PendleWstEthSCY.sol/PendleWstEthSCY.json → StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.json} +13 -13
- 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 +4 -4
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +4 -4
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +24 -24
- package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.json +28 -28
- package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.json +30 -30
- package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.json +34 -34
- package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.json +20 -20
- package/build/artifacts/contracts/interfaces/IPActionSwapPTYT.sol/IPActionSwapPTYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapPTYT.sol/IPActionSwapPTYT.json +2 -2
- package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.json +20 -20
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.json +106 -106
- package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.json +18 -18
- package/build/artifacts/contracts/interfaces/IPMarketSwapCallback.sol/IPMarketSwapCallback.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarketSwapCallback.sol/IPMarketSwapCallback.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPrincipalToken.sol/IPPrincipalToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPrincipalToken.sol/IPPrincipalToken.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/IPYieldContractFactory.sol/IPYieldContractFactory.json +3 -3
- package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.json +6 -6
- package/build/artifacts/contracts/interfaces/IStandardizedYield.sol/IStandardizedYield.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/{ISuperComposableYield.sol/ISuperComposableYield.json → IStandardizedYield.sol/IStandardizedYield.json} +5 -5
- package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.json +7 -7
- package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.json +116 -116
- package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +35 -35
- package/build/artifacts/contracts/router/ActionCallback.sol/ActionCallback.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionCallback.sol/ActionCallback.json +12 -12
- package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.json +41 -41
- 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 +28 -28
- package/build/artifacts/contracts/router/ActionSwapPTYT.sol/ActionSwapPTYT.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapPTYT.sol/ActionSwapPTYT.json +4 -4
- package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.json +22 -22
- package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.dbg.json +1 -1
- package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.json +2 -2
- package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -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/KyberSwapHelper.sol/KyberSwapHelper.dbg.json +1 -1
- package/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol +96 -27
- package/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol +40 -12
- package/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol +24 -5
- package/contracts/LiquidityMining/CrossChainMsg/libraries/ExcessivelySafeCall.sol +133 -0
- package/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol +33 -0
- package/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol +8 -1
- package/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol +3 -3
- package/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol +2 -7
- package/contracts/core/Market/MarketMathCore.sol +50 -53
- package/contracts/core/Market/PendleGauge.sol +8 -8
- package/contracts/core/Market/PendleMarket.sol +49 -49
- package/contracts/core/Market/PendleMarketFactory.sol +1 -1
- package/contracts/core/RewardManager/RewardManager.sol +1 -1
- package/contracts/core/{SuperComposableYield → StandardizedYield}/PYIndex.sol +16 -16
- package/contracts/core/{SuperComposableYield/SCYBase.sol → StandardizedYield/SYBase.sol} +17 -17
- package/contracts/core/{SuperComposableYield/SCYBaseWithRewards.sol → StandardizedYield/SYBaseWithRewards.sol} +9 -9
- package/contracts/core/StandardizedYield/SYUtils.sol +26 -0
- package/contracts/core/{SuperComposableYield → StandardizedYield}/implementations/BenQi/PendleQiTokenHelper.sol +1 -1
- package/contracts/core/{SuperComposableYield/implementations/BenQi/PendleQiTokenSCY.sol → StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol} +10 -10
- package/contracts/core/StandardizedYield/implementations/Convex/ConvexCurveLP/Pendle3CrvAndTokenSY.sol +167 -0
- package/contracts/core/{SuperComposableYield/implementations/Convex/ConvexCurveLP/PendleConvexCurveLPSCY.sol → StandardizedYield/implementations/Convex/ConvexCurveLP/PendleConvexLPSY.sol} +51 -70
- package/contracts/core/{SuperComposableYield → StandardizedYield}/implementations/Convex/Pendle3CrvHelper.sol +7 -7
- package/contracts/core/{SuperComposableYield/implementations/PendleWstEthSCY.sol → StandardizedYield/implementations/PendleWstEthSY.sol} +5 -5
- package/contracts/core/YieldContracts/InterestManagerYT.sol +7 -7
- package/contracts/core/YieldContracts/PendlePrincipalToken.sol +3 -3
- package/contracts/core/YieldContracts/PendleYieldContractFactory.sol +15 -15
- package/contracts/core/YieldContracts/PendleYieldToken.sol +71 -71
- package/contracts/core/libraries/Errors.sol +23 -21
- package/contracts/core/libraries/TokenHelper.sol +0 -33
- package/contracts/interfaces/Curve/ICrvPool.sol +2 -0
- package/contracts/interfaces/ILayerZeroEndpoint.sol +39 -0
- package/contracts/interfaces/ILayerZeroReceiver.sol +12 -0
- package/contracts/interfaces/IPActionAddRemoveLiq.sol +27 -27
- package/contracts/interfaces/IPActionMintRedeem.sol +30 -30
- package/contracts/interfaces/IPActionSwapPT.sol +16 -16
- package/contracts/interfaces/IPActionSwapPTYT.sol +2 -2
- package/contracts/interfaces/IPActionSwapYT.sol +16 -16
- package/contracts/interfaces/IPMarket.sol +14 -19
- package/contracts/interfaces/IPMarketSwapCallback.sol +1 -1
- package/contracts/interfaces/IPMsgSendEndpoint.sol +4 -2
- package/contracts/interfaces/IPPrincipalToken.sol +1 -1
- package/contracts/interfaces/IPYieldContractFactory.sol +3 -3
- package/contracts/interfaces/IPYieldToken.sol +7 -9
- package/contracts/interfaces/{ISuperComposableYield.sol → IStandardizedYield.sol} +6 -6
- package/contracts/offchain-helpers/MarketMathStatic.sol +116 -131
- package/contracts/offchain-helpers/RouterStatic.sol +80 -93
- package/contracts/router/ActionAddRemoveLiq.sol +99 -111
- package/contracts/router/ActionCallback.sol +46 -46
- package/contracts/router/ActionMintRedeem.sol +58 -58
- package/contracts/router/ActionSwapPT.sol +61 -69
- package/contracts/router/ActionSwapPTYT.sol +7 -7
- package/contracts/router/ActionSwapYT.sol +72 -79
- package/contracts/router/PendleRouter.sol +16 -16
- package/contracts/router/base/ActionBaseMintRedeem.sol +43 -43
- package/contracts/router/base/CallbackHelper.sol +20 -20
- package/contracts/router/base/MarketApproxLib.sol +166 -143
- package/contracts/router/kyberswap/KyberSwapHelper.sol +2 -2
- package/deployments/43113-core.json +16 -0
- package/{contracts/deployments → deployments}/43113-helper.json +0 -0
- package/deployments/43113-markets/benqi-market-QI-USDC-FEB-2ND.json +8 -0
- package/deployments/43113-markets/benqi-market-QI-WETH-DEC-1ST.json +8 -0
- package/{contracts/deployments → deployments}/43113-testenv.json +0 -0
- package/deployments/80001-core.json +15 -0
- package/{contracts/deployments → deployments}/80001-testenv.json +0 -0
- package/package.json +2 -2
- package/typechain-types/ActionAddRemoveLiq.ts +127 -129
- package/typechain-types/ActionCallback.ts +5 -5
- package/typechain-types/ActionMintRedeem.ts +139 -141
- package/typechain-types/ActionSwapPT.ts +73 -73
- package/typechain-types/ActionSwapPTYT.ts +2 -2
- package/typechain-types/ActionSwapYT.ts +73 -73
- package/typechain-types/IPActionAddRemoveLiq.ts +127 -129
- package/typechain-types/IPActionMintRedeem.ts +139 -141
- package/typechain-types/IPActionSwapPT.ts +73 -73
- package/typechain-types/IPActionSwapPTYT.ts +2 -2
- package/typechain-types/IPActionSwapYT.ts +73 -73
- package/typechain-types/IPAllAction.ts +402 -406
- package/typechain-types/IPMarket.ts +51 -54
- package/typechain-types/IPMarketSwapCallback.ts +5 -5
- package/typechain-types/IPPrincipalToken.ts +8 -8
- package/typechain-types/IPYieldContractFactory.ts +13 -13
- package/typechain-types/IPYieldToken.ts +17 -17
- package/typechain-types/IStandardizedYield.ts +895 -0
- package/typechain-types/MarketMathStatic.ts +27 -27
- package/typechain-types/Pendle3CrvAndTokenSY.ts +1243 -0
- package/typechain-types/Pendle3CrvHelper.ts +13 -13
- package/typechain-types/PendleConvexLPSY.ts +1189 -0
- package/typechain-types/PendleGaugeControllerBaseUpg.ts +125 -0
- package/typechain-types/PendleGaugeControllerMainchainUpg.ts +125 -0
- package/typechain-types/PendleGaugeControllerSidechainUpg.ts +124 -0
- package/typechain-types/PendleMarket.ts +54 -57
- package/typechain-types/PendlePrincipalToken.ts +8 -8
- package/typechain-types/PendleQiTokenSY.ts +1166 -0
- package/typechain-types/PendleWstEthSY.ts +1040 -0
- package/typechain-types/PendleYieldContractFactory.ts +8 -8
- package/typechain-types/PendleYieldToken.ts +41 -44
- package/typechain-types/RouterStatic.ts +196 -196
- package/typechain-types/SYBase.ts +1001 -0
- package/typechain-types/SYBaseWithRewards.ts +1094 -0
- package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +34 -34
- package/typechain-types/factories/ActionCallback__factory.ts +11 -11
- package/typechain-types/factories/ActionMintRedeem__factory.ts +38 -38
- package/typechain-types/factories/ActionMisc__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapPTYT__factory.ts +3 -3
- package/typechain-types/factories/ActionSwapPT__factory.ts +27 -27
- package/typechain-types/factories/ActionSwapYT__factory.ts +21 -21
- package/typechain-types/factories/Errors__factory.ts +27 -27
- package/typechain-types/factories/IPActionAddRemoveLiq__factory.ts +30 -30
- package/typechain-types/factories/IPActionMintRedeem__factory.ts +34 -34
- package/typechain-types/factories/IPActionSwapPTYT__factory.ts +2 -2
- package/typechain-types/factories/IPActionSwapPT__factory.ts +20 -20
- package/typechain-types/factories/IPActionSwapYT__factory.ts +20 -20
- package/typechain-types/factories/IPAllAction__factory.ts +106 -106
- package/typechain-types/factories/IPMarketSwapCallback__factory.ts +1 -1
- package/typechain-types/factories/IPMarket__factory.ts +18 -18
- package/typechain-types/factories/IPPrincipalToken__factory.ts +1 -1
- package/typechain-types/factories/IPYieldContractFactory__factory.ts +3 -3
- package/typechain-types/factories/IPYieldToken__factory.ts +6 -6
- package/typechain-types/factories/IStandardizedYield__factory.ts +658 -0
- package/typechain-types/factories/MarketMathStatic__factory.ts +6 -6
- package/typechain-types/factories/OracleLib__factory.ts +1 -1
- package/typechain-types/factories/Pendle3CrvAndTokenSY__factory.ts +1124 -0
- package/typechain-types/factories/Pendle3CrvHelper__factory.ts +3 -3
- package/typechain-types/factories/PendleConvexLPSY__factory.ts +963 -0
- package/typechain-types/factories/PendleFeeDistributorFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleFeeDistributor__factory.ts +1 -1
- package/typechain-types/factories/PendleGaugeControllerBaseUpg__factory.ts +89 -0
- package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +90 -1
- package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +90 -1
- package/typechain-types/factories/PendleMarketFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleMarket__factory.ts +21 -21
- package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +1 -1
- package/typechain-types/factories/PendlePrincipalToken__factory.ts +7 -7
- package/typechain-types/factories/PendleQiTokenHelper__factory.ts +1 -1
- package/typechain-types/factories/PendleQiTokenSY__factory.ts +1095 -0
- package/typechain-types/factories/PendleRouter__factory.ts +1 -1
- package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleWstEthSY__factory.ts +924 -0
- package/typechain-types/factories/PendleYieldContractFactory__factory.ts +3 -3
- package/typechain-types/factories/PendleYieldToken__factory.ts +27 -27
- package/typechain-types/factories/RouterStatic__factory.ts +57 -57
- package/typechain-types/factories/SYBaseWithRewards__factory.ts +867 -0
- package/typechain-types/factories/SYBase__factory.ts +795 -0
- package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +1 -1
- package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +1 -1
- package/typechain-types/hardhat.d.ts +33 -51
- package/typechain-types/index.ts +14 -18
- package/build/artifacts/contracts/core/SuperComposableYield/PYIndex.sol/PYIndexLib.dbg.json +0 -4
- package/build/artifacts/contracts/core/SuperComposableYield/SCYBase.sol/SCYBase.dbg.json +0 -4
- package/build/artifacts/contracts/core/SuperComposableYield/SCYBaseWithRewards.sol/SCYBaseWithRewards.dbg.json +0 -4
- package/build/artifacts/contracts/core/SuperComposableYield/SCYUtils.sol/SCYUtils.dbg.json +0 -4
- package/build/artifacts/contracts/core/SuperComposableYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +0 -4
- package/build/artifacts/contracts/core/SuperComposableYield/implementations/BenQi/PendleQiTokenSCY.sol/PendleQiTokenSCY.dbg.json +0 -4
- package/build/artifacts/contracts/core/SuperComposableYield/implementations/Convex/ConvexCurveLP/Pendle3CrvAndTokenSCY.sol/Pendle3CrvAndTokenSCY.dbg.json +0 -4
- package/build/artifacts/contracts/core/SuperComposableYield/implementations/Convex/ConvexCurveLP/Pendle3CrvAndTokenSCY.sol/Pendle3CrvAndTokenSCY.json +0 -1030
- package/build/artifacts/contracts/core/SuperComposableYield/implementations/Convex/ConvexCurveLP/PendleConvexCurveLP2PoolSCY.sol/PendleConvexCurveLP2PoolSCY.dbg.json +0 -4
- package/build/artifacts/contracts/core/SuperComposableYield/implementations/Convex/ConvexCurveLP/PendleConvexCurveLP2PoolSCY.sol/PendleConvexCurveLP2PoolSCY.json +0 -1025
- package/build/artifacts/contracts/core/SuperComposableYield/implementations/Convex/ConvexCurveLP/PendleConvexCurveLPSCY.sol/PendleConvexCurveLPSCY.dbg.json +0 -4
- package/build/artifacts/contracts/core/SuperComposableYield/implementations/Convex/Pendle3CrvHelper.sol/Pendle3CrvHelper.dbg.json +0 -4
- package/build/artifacts/contracts/core/SuperComposableYield/implementations/PendleWstEthSCY.sol/PendleWstEthSCY.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/ISuperComposableYield.sol/ISuperComposableYield.dbg.json +0 -4
- package/build/artifacts/contracts/offchain-helpers/ImplicitSwapfeeContract.sol/ImplicitSwapfeeContract.dbg.json +0 -4
- package/build/artifacts/contracts/offchain-helpers/ImplicitSwapfeeContract.sol/ImplicitSwapfeeContract.json +0 -190
- package/contracts/core/SuperComposableYield/SCYUtils.sol +0 -34
- package/contracts/core/SuperComposableYield/implementations/Convex/ConvexCurveLP/Pendle3CrvAndTokenSCY.sol +0 -135
- package/contracts/core/SuperComposableYield/implementations/Convex/ConvexCurveLP/PendleConvexCurveLP2PoolSCY.sol +0 -96
- package/contracts/deployments/43113-core.json +0 -16
- package/contracts/deployments/43113-markets/benqi-market-QI-USDC-FEB-2ND.json +0 -8
- package/contracts/deployments/43113-markets/benqi-market-QI-WETH-DEC-1ST.json +0 -8
- package/contracts/deployments/80001-core.json +0 -15
- package/contracts/deployments/80001-markets/benqi-market-QI-USDC-FEB-2ND.json +0 -8
- package/contracts/deployments/80001-markets/benqi-market-QI-WETH-DEC-1ST.json +0 -8
- package/contracts/interfaces/ICelerMessageBus.sol +0 -28
- package/contracts/interfaces/ICelerMessageReceiverApp.sol +0 -25
- package/contracts/offchain-helpers/ImplicitSwapfeeContract.sol +0 -26
|
@@ -0,0 +1,924 @@
|
|
|
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 {
|
|
7
|
+
PendleWstEthSY,
|
|
8
|
+
PendleWstEthSYInterface,
|
|
9
|
+
} from "../PendleWstEthSY";
|
|
10
|
+
|
|
11
|
+
const _abi = [
|
|
12
|
+
{
|
|
13
|
+
inputs: [
|
|
14
|
+
{
|
|
15
|
+
internalType: "string",
|
|
16
|
+
name: "_name",
|
|
17
|
+
type: "string",
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
internalType: "string",
|
|
21
|
+
name: "_symbol",
|
|
22
|
+
type: "string",
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
internalType: "address",
|
|
26
|
+
name: "_wETH",
|
|
27
|
+
type: "address",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
internalType: "address",
|
|
31
|
+
name: "_wstETH",
|
|
32
|
+
type: "address",
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
stateMutability: "nonpayable",
|
|
36
|
+
type: "constructor",
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
inputs: [
|
|
40
|
+
{
|
|
41
|
+
internalType: "uint256",
|
|
42
|
+
name: "actualSharesOut",
|
|
43
|
+
type: "uint256",
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
internalType: "uint256",
|
|
47
|
+
name: "requiredSharesOut",
|
|
48
|
+
type: "uint256",
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
name: "SYInsufficientSharesOut",
|
|
52
|
+
type: "error",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
inputs: [
|
|
56
|
+
{
|
|
57
|
+
internalType: "uint256",
|
|
58
|
+
name: "actualTokenOut",
|
|
59
|
+
type: "uint256",
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
internalType: "uint256",
|
|
63
|
+
name: "requiredTokenOut",
|
|
64
|
+
type: "uint256",
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
name: "SYInsufficientTokenOut",
|
|
68
|
+
type: "error",
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
inputs: [
|
|
72
|
+
{
|
|
73
|
+
internalType: "address",
|
|
74
|
+
name: "token",
|
|
75
|
+
type: "address",
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
name: "SYInvalidTokenIn",
|
|
79
|
+
type: "error",
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
inputs: [
|
|
83
|
+
{
|
|
84
|
+
internalType: "address",
|
|
85
|
+
name: "token",
|
|
86
|
+
type: "address",
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
name: "SYInvalidTokenOut",
|
|
90
|
+
type: "error",
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
inputs: [],
|
|
94
|
+
name: "SYZeroDeposit",
|
|
95
|
+
type: "error",
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
inputs: [],
|
|
99
|
+
name: "SYZeroRedeem",
|
|
100
|
+
type: "error",
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
anonymous: false,
|
|
104
|
+
inputs: [
|
|
105
|
+
{
|
|
106
|
+
indexed: true,
|
|
107
|
+
internalType: "address",
|
|
108
|
+
name: "owner",
|
|
109
|
+
type: "address",
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
indexed: true,
|
|
113
|
+
internalType: "address",
|
|
114
|
+
name: "spender",
|
|
115
|
+
type: "address",
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
indexed: false,
|
|
119
|
+
internalType: "uint256",
|
|
120
|
+
name: "value",
|
|
121
|
+
type: "uint256",
|
|
122
|
+
},
|
|
123
|
+
],
|
|
124
|
+
name: "Approval",
|
|
125
|
+
type: "event",
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
anonymous: false,
|
|
129
|
+
inputs: [
|
|
130
|
+
{
|
|
131
|
+
indexed: true,
|
|
132
|
+
internalType: "address",
|
|
133
|
+
name: "user",
|
|
134
|
+
type: "address",
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
indexed: false,
|
|
138
|
+
internalType: "address[]",
|
|
139
|
+
name: "rewardTokens",
|
|
140
|
+
type: "address[]",
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
indexed: false,
|
|
144
|
+
internalType: "uint256[]",
|
|
145
|
+
name: "rewardAmounts",
|
|
146
|
+
type: "uint256[]",
|
|
147
|
+
},
|
|
148
|
+
],
|
|
149
|
+
name: "ClaimRewards",
|
|
150
|
+
type: "event",
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
anonymous: false,
|
|
154
|
+
inputs: [
|
|
155
|
+
{
|
|
156
|
+
indexed: true,
|
|
157
|
+
internalType: "address",
|
|
158
|
+
name: "caller",
|
|
159
|
+
type: "address",
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
indexed: true,
|
|
163
|
+
internalType: "address",
|
|
164
|
+
name: "receiver",
|
|
165
|
+
type: "address",
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
indexed: true,
|
|
169
|
+
internalType: "address",
|
|
170
|
+
name: "tokenIn",
|
|
171
|
+
type: "address",
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
indexed: false,
|
|
175
|
+
internalType: "uint256",
|
|
176
|
+
name: "amountDeposited",
|
|
177
|
+
type: "uint256",
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
indexed: false,
|
|
181
|
+
internalType: "uint256",
|
|
182
|
+
name: "amountSyOut",
|
|
183
|
+
type: "uint256",
|
|
184
|
+
},
|
|
185
|
+
],
|
|
186
|
+
name: "Deposit",
|
|
187
|
+
type: "event",
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
anonymous: false,
|
|
191
|
+
inputs: [
|
|
192
|
+
{
|
|
193
|
+
indexed: true,
|
|
194
|
+
internalType: "address",
|
|
195
|
+
name: "caller",
|
|
196
|
+
type: "address",
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
indexed: true,
|
|
200
|
+
internalType: "address",
|
|
201
|
+
name: "receiver",
|
|
202
|
+
type: "address",
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
indexed: true,
|
|
206
|
+
internalType: "address",
|
|
207
|
+
name: "tokenOut",
|
|
208
|
+
type: "address",
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
indexed: false,
|
|
212
|
+
internalType: "uint256",
|
|
213
|
+
name: "amountSyToRedeem",
|
|
214
|
+
type: "uint256",
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
indexed: false,
|
|
218
|
+
internalType: "uint256",
|
|
219
|
+
name: "amountTokenOut",
|
|
220
|
+
type: "uint256",
|
|
221
|
+
},
|
|
222
|
+
],
|
|
223
|
+
name: "Redeem",
|
|
224
|
+
type: "event",
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
anonymous: false,
|
|
228
|
+
inputs: [
|
|
229
|
+
{
|
|
230
|
+
indexed: true,
|
|
231
|
+
internalType: "address",
|
|
232
|
+
name: "from",
|
|
233
|
+
type: "address",
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
indexed: true,
|
|
237
|
+
internalType: "address",
|
|
238
|
+
name: "to",
|
|
239
|
+
type: "address",
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
indexed: false,
|
|
243
|
+
internalType: "uint256",
|
|
244
|
+
name: "value",
|
|
245
|
+
type: "uint256",
|
|
246
|
+
},
|
|
247
|
+
],
|
|
248
|
+
name: "Transfer",
|
|
249
|
+
type: "event",
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
inputs: [],
|
|
253
|
+
name: "DOMAIN_SEPARATOR",
|
|
254
|
+
outputs: [
|
|
255
|
+
{
|
|
256
|
+
internalType: "bytes32",
|
|
257
|
+
name: "",
|
|
258
|
+
type: "bytes32",
|
|
259
|
+
},
|
|
260
|
+
],
|
|
261
|
+
stateMutability: "view",
|
|
262
|
+
type: "function",
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
inputs: [
|
|
266
|
+
{
|
|
267
|
+
internalType: "address",
|
|
268
|
+
name: "",
|
|
269
|
+
type: "address",
|
|
270
|
+
},
|
|
271
|
+
],
|
|
272
|
+
name: "accruedRewards",
|
|
273
|
+
outputs: [
|
|
274
|
+
{
|
|
275
|
+
internalType: "uint256[]",
|
|
276
|
+
name: "rewardAmounts",
|
|
277
|
+
type: "uint256[]",
|
|
278
|
+
},
|
|
279
|
+
],
|
|
280
|
+
stateMutability: "view",
|
|
281
|
+
type: "function",
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
inputs: [
|
|
285
|
+
{
|
|
286
|
+
internalType: "address",
|
|
287
|
+
name: "owner",
|
|
288
|
+
type: "address",
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
internalType: "address",
|
|
292
|
+
name: "spender",
|
|
293
|
+
type: "address",
|
|
294
|
+
},
|
|
295
|
+
],
|
|
296
|
+
name: "allowance",
|
|
297
|
+
outputs: [
|
|
298
|
+
{
|
|
299
|
+
internalType: "uint256",
|
|
300
|
+
name: "",
|
|
301
|
+
type: "uint256",
|
|
302
|
+
},
|
|
303
|
+
],
|
|
304
|
+
stateMutability: "view",
|
|
305
|
+
type: "function",
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
inputs: [
|
|
309
|
+
{
|
|
310
|
+
internalType: "address",
|
|
311
|
+
name: "spender",
|
|
312
|
+
type: "address",
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
internalType: "uint256",
|
|
316
|
+
name: "amount",
|
|
317
|
+
type: "uint256",
|
|
318
|
+
},
|
|
319
|
+
],
|
|
320
|
+
name: "approve",
|
|
321
|
+
outputs: [
|
|
322
|
+
{
|
|
323
|
+
internalType: "bool",
|
|
324
|
+
name: "",
|
|
325
|
+
type: "bool",
|
|
326
|
+
},
|
|
327
|
+
],
|
|
328
|
+
stateMutability: "nonpayable",
|
|
329
|
+
type: "function",
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
inputs: [],
|
|
333
|
+
name: "assetInfo",
|
|
334
|
+
outputs: [
|
|
335
|
+
{
|
|
336
|
+
internalType: "enum IStandardizedYield.AssetType",
|
|
337
|
+
name: "assetType",
|
|
338
|
+
type: "uint8",
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
internalType: "address",
|
|
342
|
+
name: "assetAddress",
|
|
343
|
+
type: "address",
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
internalType: "uint8",
|
|
347
|
+
name: "assetDecimals",
|
|
348
|
+
type: "uint8",
|
|
349
|
+
},
|
|
350
|
+
],
|
|
351
|
+
stateMutability: "view",
|
|
352
|
+
type: "function",
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
inputs: [
|
|
356
|
+
{
|
|
357
|
+
internalType: "address",
|
|
358
|
+
name: "account",
|
|
359
|
+
type: "address",
|
|
360
|
+
},
|
|
361
|
+
],
|
|
362
|
+
name: "balanceOf",
|
|
363
|
+
outputs: [
|
|
364
|
+
{
|
|
365
|
+
internalType: "uint256",
|
|
366
|
+
name: "",
|
|
367
|
+
type: "uint256",
|
|
368
|
+
},
|
|
369
|
+
],
|
|
370
|
+
stateMutability: "view",
|
|
371
|
+
type: "function",
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
inputs: [
|
|
375
|
+
{
|
|
376
|
+
internalType: "address",
|
|
377
|
+
name: "",
|
|
378
|
+
type: "address",
|
|
379
|
+
},
|
|
380
|
+
],
|
|
381
|
+
name: "claimRewards",
|
|
382
|
+
outputs: [
|
|
383
|
+
{
|
|
384
|
+
internalType: "uint256[]",
|
|
385
|
+
name: "rewardAmounts",
|
|
386
|
+
type: "uint256[]",
|
|
387
|
+
},
|
|
388
|
+
],
|
|
389
|
+
stateMutability: "nonpayable",
|
|
390
|
+
type: "function",
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
inputs: [],
|
|
394
|
+
name: "decimals",
|
|
395
|
+
outputs: [
|
|
396
|
+
{
|
|
397
|
+
internalType: "uint8",
|
|
398
|
+
name: "",
|
|
399
|
+
type: "uint8",
|
|
400
|
+
},
|
|
401
|
+
],
|
|
402
|
+
stateMutability: "view",
|
|
403
|
+
type: "function",
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
inputs: [
|
|
407
|
+
{
|
|
408
|
+
internalType: "address",
|
|
409
|
+
name: "receiver",
|
|
410
|
+
type: "address",
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
internalType: "address",
|
|
414
|
+
name: "tokenIn",
|
|
415
|
+
type: "address",
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
internalType: "uint256",
|
|
419
|
+
name: "amountTokenToDeposit",
|
|
420
|
+
type: "uint256",
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
internalType: "uint256",
|
|
424
|
+
name: "minSharesOut",
|
|
425
|
+
type: "uint256",
|
|
426
|
+
},
|
|
427
|
+
],
|
|
428
|
+
name: "deposit",
|
|
429
|
+
outputs: [
|
|
430
|
+
{
|
|
431
|
+
internalType: "uint256",
|
|
432
|
+
name: "amountSharesOut",
|
|
433
|
+
type: "uint256",
|
|
434
|
+
},
|
|
435
|
+
],
|
|
436
|
+
stateMutability: "payable",
|
|
437
|
+
type: "function",
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
inputs: [],
|
|
441
|
+
name: "exchangeRate",
|
|
442
|
+
outputs: [
|
|
443
|
+
{
|
|
444
|
+
internalType: "uint256",
|
|
445
|
+
name: "currentRate",
|
|
446
|
+
type: "uint256",
|
|
447
|
+
},
|
|
448
|
+
],
|
|
449
|
+
stateMutability: "view",
|
|
450
|
+
type: "function",
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
inputs: [],
|
|
454
|
+
name: "getRewardTokens",
|
|
455
|
+
outputs: [
|
|
456
|
+
{
|
|
457
|
+
internalType: "address[]",
|
|
458
|
+
name: "rewardTokens",
|
|
459
|
+
type: "address[]",
|
|
460
|
+
},
|
|
461
|
+
],
|
|
462
|
+
stateMutability: "view",
|
|
463
|
+
type: "function",
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
inputs: [],
|
|
467
|
+
name: "getTokensIn",
|
|
468
|
+
outputs: [
|
|
469
|
+
{
|
|
470
|
+
internalType: "address[]",
|
|
471
|
+
name: "res",
|
|
472
|
+
type: "address[]",
|
|
473
|
+
},
|
|
474
|
+
],
|
|
475
|
+
stateMutability: "view",
|
|
476
|
+
type: "function",
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
inputs: [],
|
|
480
|
+
name: "getTokensOut",
|
|
481
|
+
outputs: [
|
|
482
|
+
{
|
|
483
|
+
internalType: "address[]",
|
|
484
|
+
name: "res",
|
|
485
|
+
type: "address[]",
|
|
486
|
+
},
|
|
487
|
+
],
|
|
488
|
+
stateMutability: "view",
|
|
489
|
+
type: "function",
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
inputs: [
|
|
493
|
+
{
|
|
494
|
+
internalType: "address",
|
|
495
|
+
name: "token",
|
|
496
|
+
type: "address",
|
|
497
|
+
},
|
|
498
|
+
],
|
|
499
|
+
name: "isValidTokenIn",
|
|
500
|
+
outputs: [
|
|
501
|
+
{
|
|
502
|
+
internalType: "bool",
|
|
503
|
+
name: "",
|
|
504
|
+
type: "bool",
|
|
505
|
+
},
|
|
506
|
+
],
|
|
507
|
+
stateMutability: "view",
|
|
508
|
+
type: "function",
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
inputs: [
|
|
512
|
+
{
|
|
513
|
+
internalType: "address",
|
|
514
|
+
name: "token",
|
|
515
|
+
type: "address",
|
|
516
|
+
},
|
|
517
|
+
],
|
|
518
|
+
name: "isValidTokenOut",
|
|
519
|
+
outputs: [
|
|
520
|
+
{
|
|
521
|
+
internalType: "bool",
|
|
522
|
+
name: "",
|
|
523
|
+
type: "bool",
|
|
524
|
+
},
|
|
525
|
+
],
|
|
526
|
+
stateMutability: "view",
|
|
527
|
+
type: "function",
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
inputs: [],
|
|
531
|
+
name: "name",
|
|
532
|
+
outputs: [
|
|
533
|
+
{
|
|
534
|
+
internalType: "string",
|
|
535
|
+
name: "",
|
|
536
|
+
type: "string",
|
|
537
|
+
},
|
|
538
|
+
],
|
|
539
|
+
stateMutability: "view",
|
|
540
|
+
type: "function",
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
inputs: [
|
|
544
|
+
{
|
|
545
|
+
internalType: "address",
|
|
546
|
+
name: "owner",
|
|
547
|
+
type: "address",
|
|
548
|
+
},
|
|
549
|
+
],
|
|
550
|
+
name: "nonces",
|
|
551
|
+
outputs: [
|
|
552
|
+
{
|
|
553
|
+
internalType: "uint256",
|
|
554
|
+
name: "",
|
|
555
|
+
type: "uint256",
|
|
556
|
+
},
|
|
557
|
+
],
|
|
558
|
+
stateMutability: "view",
|
|
559
|
+
type: "function",
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
inputs: [
|
|
563
|
+
{
|
|
564
|
+
internalType: "address",
|
|
565
|
+
name: "owner",
|
|
566
|
+
type: "address",
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
internalType: "address",
|
|
570
|
+
name: "spender",
|
|
571
|
+
type: "address",
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
internalType: "uint256",
|
|
575
|
+
name: "value",
|
|
576
|
+
type: "uint256",
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
internalType: "uint256",
|
|
580
|
+
name: "deadline",
|
|
581
|
+
type: "uint256",
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
internalType: "uint8",
|
|
585
|
+
name: "v",
|
|
586
|
+
type: "uint8",
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
internalType: "bytes32",
|
|
590
|
+
name: "r",
|
|
591
|
+
type: "bytes32",
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
internalType: "bytes32",
|
|
595
|
+
name: "s",
|
|
596
|
+
type: "bytes32",
|
|
597
|
+
},
|
|
598
|
+
],
|
|
599
|
+
name: "permit",
|
|
600
|
+
outputs: [],
|
|
601
|
+
stateMutability: "nonpayable",
|
|
602
|
+
type: "function",
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
inputs: [
|
|
606
|
+
{
|
|
607
|
+
internalType: "address",
|
|
608
|
+
name: "tokenIn",
|
|
609
|
+
type: "address",
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
internalType: "uint256",
|
|
613
|
+
name: "amountTokenToDeposit",
|
|
614
|
+
type: "uint256",
|
|
615
|
+
},
|
|
616
|
+
],
|
|
617
|
+
name: "previewDeposit",
|
|
618
|
+
outputs: [
|
|
619
|
+
{
|
|
620
|
+
internalType: "uint256",
|
|
621
|
+
name: "amountSharesOut",
|
|
622
|
+
type: "uint256",
|
|
623
|
+
},
|
|
624
|
+
],
|
|
625
|
+
stateMutability: "view",
|
|
626
|
+
type: "function",
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
inputs: [
|
|
630
|
+
{
|
|
631
|
+
internalType: "address",
|
|
632
|
+
name: "tokenOut",
|
|
633
|
+
type: "address",
|
|
634
|
+
},
|
|
635
|
+
{
|
|
636
|
+
internalType: "uint256",
|
|
637
|
+
name: "amountSharesToRedeem",
|
|
638
|
+
type: "uint256",
|
|
639
|
+
},
|
|
640
|
+
],
|
|
641
|
+
name: "previewRedeem",
|
|
642
|
+
outputs: [
|
|
643
|
+
{
|
|
644
|
+
internalType: "uint256",
|
|
645
|
+
name: "amountTokenOut",
|
|
646
|
+
type: "uint256",
|
|
647
|
+
},
|
|
648
|
+
],
|
|
649
|
+
stateMutability: "view",
|
|
650
|
+
type: "function",
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
inputs: [
|
|
654
|
+
{
|
|
655
|
+
internalType: "address",
|
|
656
|
+
name: "receiver",
|
|
657
|
+
type: "address",
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
internalType: "uint256",
|
|
661
|
+
name: "amountSharesToRedeem",
|
|
662
|
+
type: "uint256",
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
internalType: "address",
|
|
666
|
+
name: "tokenOut",
|
|
667
|
+
type: "address",
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
internalType: "uint256",
|
|
671
|
+
name: "minTokenOut",
|
|
672
|
+
type: "uint256",
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
internalType: "bool",
|
|
676
|
+
name: "burnFromInternalBalance",
|
|
677
|
+
type: "bool",
|
|
678
|
+
},
|
|
679
|
+
],
|
|
680
|
+
name: "redeem",
|
|
681
|
+
outputs: [
|
|
682
|
+
{
|
|
683
|
+
internalType: "uint256",
|
|
684
|
+
name: "amountTokenOut",
|
|
685
|
+
type: "uint256",
|
|
686
|
+
},
|
|
687
|
+
],
|
|
688
|
+
stateMutability: "nonpayable",
|
|
689
|
+
type: "function",
|
|
690
|
+
},
|
|
691
|
+
{
|
|
692
|
+
inputs: [],
|
|
693
|
+
name: "rewardIndexesCurrent",
|
|
694
|
+
outputs: [
|
|
695
|
+
{
|
|
696
|
+
internalType: "uint256[]",
|
|
697
|
+
name: "indexes",
|
|
698
|
+
type: "uint256[]",
|
|
699
|
+
},
|
|
700
|
+
],
|
|
701
|
+
stateMutability: "nonpayable",
|
|
702
|
+
type: "function",
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
inputs: [],
|
|
706
|
+
name: "rewardIndexesStored",
|
|
707
|
+
outputs: [
|
|
708
|
+
{
|
|
709
|
+
internalType: "uint256[]",
|
|
710
|
+
name: "indexes",
|
|
711
|
+
type: "uint256[]",
|
|
712
|
+
},
|
|
713
|
+
],
|
|
714
|
+
stateMutability: "view",
|
|
715
|
+
type: "function",
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
inputs: [],
|
|
719
|
+
name: "stETH",
|
|
720
|
+
outputs: [
|
|
721
|
+
{
|
|
722
|
+
internalType: "address",
|
|
723
|
+
name: "",
|
|
724
|
+
type: "address",
|
|
725
|
+
},
|
|
726
|
+
],
|
|
727
|
+
stateMutability: "view",
|
|
728
|
+
type: "function",
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
inputs: [],
|
|
732
|
+
name: "symbol",
|
|
733
|
+
outputs: [
|
|
734
|
+
{
|
|
735
|
+
internalType: "string",
|
|
736
|
+
name: "",
|
|
737
|
+
type: "string",
|
|
738
|
+
},
|
|
739
|
+
],
|
|
740
|
+
stateMutability: "view",
|
|
741
|
+
type: "function",
|
|
742
|
+
},
|
|
743
|
+
{
|
|
744
|
+
inputs: [],
|
|
745
|
+
name: "totalSupply",
|
|
746
|
+
outputs: [
|
|
747
|
+
{
|
|
748
|
+
internalType: "uint256",
|
|
749
|
+
name: "",
|
|
750
|
+
type: "uint256",
|
|
751
|
+
},
|
|
752
|
+
],
|
|
753
|
+
stateMutability: "view",
|
|
754
|
+
type: "function",
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
inputs: [
|
|
758
|
+
{
|
|
759
|
+
internalType: "address",
|
|
760
|
+
name: "to",
|
|
761
|
+
type: "address",
|
|
762
|
+
},
|
|
763
|
+
{
|
|
764
|
+
internalType: "uint256",
|
|
765
|
+
name: "amount",
|
|
766
|
+
type: "uint256",
|
|
767
|
+
},
|
|
768
|
+
],
|
|
769
|
+
name: "transfer",
|
|
770
|
+
outputs: [
|
|
771
|
+
{
|
|
772
|
+
internalType: "bool",
|
|
773
|
+
name: "",
|
|
774
|
+
type: "bool",
|
|
775
|
+
},
|
|
776
|
+
],
|
|
777
|
+
stateMutability: "nonpayable",
|
|
778
|
+
type: "function",
|
|
779
|
+
},
|
|
780
|
+
{
|
|
781
|
+
inputs: [
|
|
782
|
+
{
|
|
783
|
+
internalType: "address",
|
|
784
|
+
name: "from",
|
|
785
|
+
type: "address",
|
|
786
|
+
},
|
|
787
|
+
{
|
|
788
|
+
internalType: "address",
|
|
789
|
+
name: "to",
|
|
790
|
+
type: "address",
|
|
791
|
+
},
|
|
792
|
+
{
|
|
793
|
+
internalType: "uint256",
|
|
794
|
+
name: "amount",
|
|
795
|
+
type: "uint256",
|
|
796
|
+
},
|
|
797
|
+
],
|
|
798
|
+
name: "transferFrom",
|
|
799
|
+
outputs: [
|
|
800
|
+
{
|
|
801
|
+
internalType: "bool",
|
|
802
|
+
name: "",
|
|
803
|
+
type: "bool",
|
|
804
|
+
},
|
|
805
|
+
],
|
|
806
|
+
stateMutability: "nonpayable",
|
|
807
|
+
type: "function",
|
|
808
|
+
},
|
|
809
|
+
{
|
|
810
|
+
inputs: [],
|
|
811
|
+
name: "wETH",
|
|
812
|
+
outputs: [
|
|
813
|
+
{
|
|
814
|
+
internalType: "address",
|
|
815
|
+
name: "",
|
|
816
|
+
type: "address",
|
|
817
|
+
},
|
|
818
|
+
],
|
|
819
|
+
stateMutability: "view",
|
|
820
|
+
type: "function",
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
inputs: [],
|
|
824
|
+
name: "wstETH",
|
|
825
|
+
outputs: [
|
|
826
|
+
{
|
|
827
|
+
internalType: "address",
|
|
828
|
+
name: "",
|
|
829
|
+
type: "address",
|
|
830
|
+
},
|
|
831
|
+
],
|
|
832
|
+
stateMutability: "view",
|
|
833
|
+
type: "function",
|
|
834
|
+
},
|
|
835
|
+
{
|
|
836
|
+
inputs: [],
|
|
837
|
+
name: "yieldToken",
|
|
838
|
+
outputs: [
|
|
839
|
+
{
|
|
840
|
+
internalType: "address",
|
|
841
|
+
name: "",
|
|
842
|
+
type: "address",
|
|
843
|
+
},
|
|
844
|
+
],
|
|
845
|
+
stateMutability: "view",
|
|
846
|
+
type: "function",
|
|
847
|
+
},
|
|
848
|
+
{
|
|
849
|
+
stateMutability: "payable",
|
|
850
|
+
type: "receive",
|
|
851
|
+
},
|
|
852
|
+
];
|
|
853
|
+
|
|
854
|
+
const _bytecode =
|
|
855
|
+
"0x6102006040527f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9610160523480156200003757600080fd5b5060405162003155380380620031558339810160408190526200005a9162000474565b8383828282826001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200009e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000c4919062000503565b6040805180820190915260018152603160f81b602082015283908184846003620000ef8482620005be565b506004620000fe8382620005be565b5060ff166080525050600280546001600160f81b0316600160f81b17905581516020808401919091208251918301919091206101008290526101208190524660c0527f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f620001b18184846040805160208101859052908101839052606081018290524660808201523060a082015260009060c0016040516020818303038152906040528051906020012090509392505050565b60a0523060e05261014052505050506001600160a01b03938416610180525050508481166101a05283166101e08190526040805163183fc7c960e31b8152905191935063c1fe3e4892506004808201926020929091908290030181865afa15801562000221573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200024791906200068a565b6001600160a01b03166101c08190526101e05162000269919060001962000273565b50505050620006ea565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663095ea7b360e01b1790529151600092839290871691620002d19190620006a8565b6000604051808303816000865af19150503d806000811462000310576040519150601f19603f3d011682016040523d82523d6000602084013e62000315565b606091505b50915091508180156200034357508051158062000343575080806020019051810190620003439190620006c6565b620003835760405162461bcd60e51b815260206004820152600c60248201526b5361666520417070726f766560a01b604482015260640160405180910390fd5b5050505050565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620003bd578181015183820152602001620003a3565b50506000910152565b600082601f830112620003d857600080fd5b81516001600160401b0380821115620003f557620003f56200038a565b604051601f8301601f19908116603f011681019082821181831017156200042057620004206200038a565b816040528381528660208588010111156200043a57600080fd5b6200044d846020830160208901620003a0565b9695505050505050565b80516001600160a01b03811681146200046f57600080fd5b919050565b600080600080608085870312156200048b57600080fd5b84516001600160401b0380821115620004a357600080fd5b620004b188838901620003c6565b95506020870151915080821115620004c857600080fd5b50620004d787828801620003c6565b935050620004e86040860162000457565b9150620004f86060860162000457565b905092959194509250565b6000602082840312156200051657600080fd5b815160ff811681146200052857600080fd5b9392505050565b600181811c908216806200054457607f821691505b6020821081036200056557634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620005b957600081815260208120601f850160051c81016020861015620005945750805b601f850160051c820191505b81811015620005b557828155600101620005a0565b5050505b505050565b81516001600160401b03811115620005da57620005da6200038a565b620005f281620005eb84546200052f565b846200056b565b602080601f8311600181146200062a5760008415620006115750858301515b600019600386901b1c1916600185901b178555620005b5565b600085815260208120601f198616915b828110156200065b578886015182559484019460019091019084016200063a565b50858210156200067a5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000602082840312156200069d57600080fd5b620005288262000457565b60008251620006bc818460208701620003a0565b9190910192915050565b600060208284031215620006d957600080fd5b815180151581146200052857600080fd5b60805160a05160c05160e05161010051610120516101405161016051610180516101a0516101c0516101e05161292a6200082b60003960008181610314015281816106ba0152818161099801528181610a5b01528181610c6f01528181611038015281816112530152818161143201528181611aef01528181611b4301528181611bca0152611cfe015260008181610498015281816106660152818161094401528181610c3401528181610cdd01528181610cfe01528181610ffd015281816112950152818161139e01528181611c0c0152611c60015260008181610570015281816108f001528181611086015281816112d50152611322015260006103ab01526000610ebe015260006118d401526000611923015260006118fe0152600061185701526000611881015260006118ab015260006102a4015261292a6000f3fe60806040526004361061016c5760003560e01c806306fdde0314610178578063071bc3c9146101a3578063095ea7b3146101c5578063128fced1146101f557806318160ddd1461022257806320e8c5651461024a578063213cae631461025d57806323b872dd14610272578063313ce567146102925780633644e515146102d85780633ba0b9a9146102ed5780634aa07e641461030257806370a0823114610343578063769f8e5d1461037957806376d5de8514610399578063784367d6146103cd5780637ecebe00146103ed57806395d89b411461040d578063a40bee5014610422578063a9059cbb14610446578063b8f82b2614610466578063c1fe3e4814610486578063c4f59f9b146104ba578063cbe52ae3146104db578063d505accf146104fb578063da88ecb41461051d578063dd62ed3e1461053e578063ef5cfb8c146101f5578063f24286211461055e578063f8b2f9911461051d578063fa5a4f061461059257600080fd5b3661017357005b600080fd5b34801561018457600080fd5b5061018d6105b2565b60405161019a9190612419565b60405180910390f35b3480156101af57600080fd5b506101b8610644565b60405161019a919061244c565b3480156101d157600080fd5b506101e56101e03660046124b5565b61070f565b604051901515815260200161019a565b34801561020157600080fd5b506102156102103660046124df565b610729565b60405161019a91906124fa565b34801561022e57600080fd5b506002546001600160f81b03165b60405190815260200161019a565b61023c610258366004612532565b610744565b34801561026957600080fd5b506101b8610896565b34801561027e57600080fd5b506101e561028d366004612574565b6109ca565b34801561029e57600080fd5b506102c67f000000000000000000000000000000000000000000000000000000000000000081565b60405160ff909116815260200161019a565b3480156102e457600080fd5b5061023c610a48565b3480156102f957600080fd5b5061023c610a57565b34801561030e57600080fd5b506103367f000000000000000000000000000000000000000000000000000000000000000081565b60405161019a91906125b0565b34801561034f57600080fd5b5061023c61035e3660046124df565b6001600160a01b031660009081526020819052604090205490565b34801561038557600080fd5b5061023c6103943660046125d2565b610adb565b3480156103a557600080fd5b506103367f000000000000000000000000000000000000000000000000000000000000000081565b3480156103d957600080fd5b506101e56103e83660046124df565b610c30565b3480156103f957600080fd5b5061023c6104083660046124df565b610ca8565b34801561041957600080fd5b5061018d610cc6565b34801561042e57600080fd5b50610437610cd5565b60405161019a93929190612643565b34801561045257600080fd5b506101e56104613660046124b5565b610d89565b34801561047257600080fd5b5061023c6104813660046124b5565b610dfb565b34801561049257600080fd5b506103367f000000000000000000000000000000000000000000000000000000000000000081565b3480156104c657600080fd5b506040805160008152602081019091526101b8565b3480156104e757600080fd5b5061023c6104f63660046124b5565b610e36565b34801561050757600080fd5b5061051b610516366004612694565b610e6a565b005b34801561052957600080fd5b50604080516000815260208101909152610215565b34801561054a57600080fd5b5061023c610559366004612701565b610fce565b34801561056a57600080fd5b506103367f000000000000000000000000000000000000000000000000000000000000000081565b34801561059e57600080fd5b506101e56105ad3660046124df565b610ff9565b6060600380546105c190612734565b80601f01602080910402602001604051908101604052809291908181526020018280546105ed90612734565b801561063a5780601f1061060f5761010080835404028352916020019161063a565b820191906000526020600020905b81548152906001019060200180831161061d57829003601f168201915b5050505050905090565b60408051600280825260608083018452926020830190803683370190505090507f00000000000000000000000000000000000000000000000000000000000000008160008151811061069857610698612768565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000000000000000000000000000000000000000000000816001815181106106ec576106ec612768565b60200260200101906001600160a01b031690816001600160a01b03168152505090565b60003361071d8185856110bf565b60019150505b92915050565b604080516000808252602082019092526060915b5092915050565b600254600090600119600160f81b90910460ff160161077e5760405162461bcd60e51b81526004016107759061277e565b60405180910390fd5b600280546001600160f81b0316600160f91b17905561079c84610ff9565b6107bb57836040516315d57ce360e31b815260040161077591906125b0565b826000036107dc57604051630a907f2f60e41b815260040160405180910390fd5b6107e78433856111e3565b6107f1848461124f565b905081811015610818578082604051635e38f95d60e11b81526004016107759291906127b5565b61082285826114af565b836001600160a01b0316856001600160a01b0316336001600160a01b03167f5fe47ed6d4225326d3303476197d782ded5a4e9c14f479dc9ec4992af4e85d5986856040516108719291906127b5565b60405180910390a4600280546001600160f81b0316600160f81b179055949350505050565b60408051600480825260a08201909252606091602082016080803683370190505090506000816000815181106108ce576108ce612768565b60200260200101906001600160a01b031690816001600160a01b0316815250507f00000000000000000000000000000000000000000000000000000000000000008160018151811061092257610922612768565b60200260200101906001600160a01b031690816001600160a01b0316815250507f00000000000000000000000000000000000000000000000000000000000000008160028151811061097657610976612768565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000000000000000000000000000000000000000000000816003815181106106ec576106ec612768565b600254600090600119600160f81b90910460ff16016109fb5760405162461bcd60e51b81526004016107759061277e565b600280546001600160f81b0316600160f91b17905533610a1c8582856115b9565b610a27858585611633565b6001915050600280546001600160f81b0316600160f81b1790559392505050565b6000610a5261184a565b905090565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663035faf826040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ab7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a5291906127c3565b600254600090600119600160f81b90910460ff1601610b0c5760405162461bcd60e51b81526004016107759061277e565b600280546001600160f81b0316600160f91b179055610b2a84610c30565b610b4957836040516388a5056160e01b815260040161077591906125b0565b84600003610b6a5760405163c3d83b0760e01b815260040160405180910390fd5b8115610b7f57610b7a3086611971565b610b89565b610b893386611971565b610b94868587611aeb565b905082811015610bbb5780836040516305ff726560e51b81526004016107759291906127b5565b836001600160a01b0316866001600160a01b0316336001600160a01b03167faee47cdf925cf525fdae94f9777ee5a06cac37e1c41220d0a8a89ed154f62d1c8885604051610c0a9291906127b5565b60405180910390a4600280546001600160f81b0316600160f81b17905595945050505050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b0316148061072357507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b03161492915050565b6001600160a01b038116600090815260056020526040812054610723565b6060600480546105c190612734565b6000806000807f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d7e91906127dc565b925092509250909192565b600254600090600119600160f81b90910460ff1601610dba5760405162461bcd60e51b81526004016107759061277e565b600280546001600160f81b0316600160f91b17905533610ddb818585611633565b6001915050600280546001600160f81b0316600160f81b17905592915050565b6000610e0683610ff9565b610e2557826040516315d57ce360e31b815260040161077591906125b0565b610e2f8383611bc6565b9392505050565b6000610e4183610c30565b610e6057826040516388a5056160e01b815260040161077591906125b0565b610e2f8383611cfa565b83421115610eba5760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e650000006044820152606401610775565b60007f0000000000000000000000000000000000000000000000000000000000000000888888610ee98c611d61565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090506000610f4482611d89565b90506000610f5482878787611dd7565b9050896001600160a01b0316816001600160a01b031614610fb75760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e617475726500006044820152606401610775565b610fc28a8a8a6110bf565b50505050505050505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b0316148061106c57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b0316145b8061107e57506001600160a01b038216155b8061072357507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b03161492915050565b6001600160a01b0383166111215760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610775565b6001600160a01b0382166111825760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610775565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166112345780341461122f5760405162461bcd60e51b815260206004820152600c60248201526b0cae8d040dad2e6dac2e8c6d60a31b6044820152606401610775565b505050565b801561122f5761122f6001600160a01b038416833084611dff565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b031603611291575080610723565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316846001600160a01b0316036112d357508161141c565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316846001600160a01b03160361138757604051632e1a7d4d60e01b8152600481018490527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690632e1a7d4d90602401600060405180830381600087803b15801561136e57600080fd5b505af1158015611382573d6000803e3d6000fd5b505050505b60405163a1903eab60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063a1903eab9085906113d6906000906004016125b0565b60206040518083038185885af11580156113f4573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061141991906127c3565b90505b604051630ea598cb60e41b8152600481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063ea598cb0906024016020604051808303816000875af1158015611483573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114a791906127c3565b949350505050565b6001600160a01b0382166115055760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610775565b61150e81611e6a565b600280546000906115299084906001600160f81b031661280f565b92506101000a8154816001600160f81b0302191690836001600160f81b0316021790555080600080846001600160a01b03166001600160a01b031681526020019081526020016000206000828254611581919061282f565b90915550506040518181526001600160a01b038316906000906000805160206128d58339815191529060200160405180910390a35050565b60006115c58484610fce565b9050600019811461162d57818110156116205760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610775565b61162d84848484036110bf565b50505050565b6001600160a01b0383166116975760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610775565b6001600160a01b0382166116f95760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610775565b816001600160a01b0316836001600160a01b0316036117545760405162461bcd60e51b815260206004820152601760248201527622a92199181d103a3930b739b332b9103a379039b2b63360491b6044820152606401610775565b6001600160a01b038316600090815260208190526040902054818110156117cc5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610775565b6001600160a01b0380851660009081526020819052604080822085850390559185168152908120805484929061180390849061282f565b92505081905550826001600160a01b0316846001600160a01b03166000805160206128d58339815191528460405161183d91815260200190565b60405180910390a361162d565b6000306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480156118a357507f000000000000000000000000000000000000000000000000000000000000000046145b156118cd57507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6001600160a01b0382166119d15760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610775565b6001600160a01b03821660009081526020819052604090205481811015611a455760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610775565b6001600160a01b03831660009081526020819052604090208282039055611a6b82611e6a565b60028054600090611a869084906001600160f81b0316612842565b92506101000a8154816001600160f81b0302191690836001600160f81b0316021790555060006001600160a01b0316836001600160a01b03166000805160206128d583398151915284604051611ade91815260200190565b60405180910390a3505050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b031603611b2d575080611bbb565b604051636f074d1f60e11b8152600481018390527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063de0e9a3e906024016020604051808303816000875af1158015611b94573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bb891906127c3565b90505b610e2f838583611e84565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b031603611c08575080610723565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316846001600160a01b031603611c4a575081611cd6565b604051631920845160e01b8152600481018490527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690631920845190602401602060405180830381865afa158015611caf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cd391906127c3565b90505b611cde610a57565b611cf084670de0b6b3a7640000612862565b6114a79190612879565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b031603611d3c575080610723565b670de0b6b3a7640000611d4d610a57565b611d579084612862565b610e2f9190612879565b6001600160a01b03811660009081526005602052604090208054600181018255905b50919050565b6000610723611d9661184a565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b6000806000611de887878787611f48565b91509150611df58161202b565b5095945050505050565b6040516001600160a01b038085166024830152831660448201526064810182905261162d9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526121df565b60006001600160f81b03821115611e8057600080fd5b5090565b80600003611e9157505050565b6001600160a01b038316611f34576000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611eec576040519150601f19603f3d011682016040523d82523d6000602084013e611ef1565b606091505b505090508061162d5760405162461bcd60e51b815260206004820152600f60248201526e195d1a081cd95b990819985a5b1959608a1b6044820152606401610775565b61122f6001600160a01b03841683836122b1565b6000806fa2a8918ca85bafe22016d0b997e4df60600160ff1b03831115611f755750600090506003612022565b8460ff16601b14158015611f8d57508460ff16601c14155b15611f9e5750600090506004612022565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611ff2573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661201b57600060019250925050612022565b9150600090505b94509492505050565b600081600481111561203f5761203f61262d565b036120475750565b600181600481111561205b5761205b61262d565b036120a35760405162461bcd60e51b815260206004820152601860248201527745434453413a20696e76616c6964207369676e617475726560401b6044820152606401610775565b60028160048111156120b7576120b761262d565b036121045760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610775565b60038160048111156121185761211861262d565b036121705760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610775565b60048160048111156121845761218461262d565b036121dc5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610775565b50565b6000612234826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166122e19092919063ffffffff16565b80519091501561122f5780806020019051810190612252919061289b565b61122f5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610775565b6040516001600160a01b03831660248201526044810182905261122f90849063a9059cbb60e01b90606401611e33565b60606114a78484600085856001600160a01b0385163b6123435760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610775565b600080866001600160a01b0316858760405161235f91906128b8565b60006040518083038185875af1925050503d806000811461239c576040519150601f19603f3d011682016040523d82523d6000602084013e6123a1565b606091505b50915091506123b18282866123bc565b979650505050505050565b606083156123cb575081610e2f565b8251156123db5782518084602001fd5b8160405162461bcd60e51b81526004016107759190612419565b60005b838110156124105781810151838201526020016123f8565b50506000910152565b60208152600082518060208401526124388160408501602087016123f5565b601f01601f19169190910160400192915050565b6020808252825182820181905260009190848201906040850190845b8181101561248d5783516001600160a01b031683529284019291840191600101612468565b50909695505050505050565b80356001600160a01b03811681146124b057600080fd5b919050565b600080604083850312156124c857600080fd5b6124d183612499565b946020939093013593505050565b6000602082840312156124f157600080fd5b610e2f82612499565b6020808252825182820181905260009190848201906040850190845b8181101561248d57835183529284019291840191600101612516565b6000806000806080858703121561254857600080fd5b61255185612499565b935061255f60208601612499565b93969395505050506040820135916060013590565b60008060006060848603121561258957600080fd5b61259284612499565b92506125a060208501612499565b9150604084013590509250925092565b6001600160a01b0391909116815260200190565b80151581146121dc57600080fd5b600080600080600060a086880312156125ea57600080fd5b6125f386612499565b94506020860135935061260860408701612499565b925060608601359150608086013561261f816125c4565b809150509295509295909350565b634e487b7160e01b600052602160045260246000fd5b606081016002851061266557634e487b7160e01b600052602160045260246000fd5b9381526001600160a01b0392909216602083015260ff1660409091015290565b60ff811681146121dc57600080fd5b600080600080600080600060e0888a0312156126af57600080fd5b6126b888612499565b96506126c660208901612499565b9550604088013594506060880135935060808801356126e481612685565b9699959850939692959460a0840135945060c09093013592915050565b6000806040838503121561271457600080fd5b61271d83612499565b915061272b60208401612499565b90509250929050565b600181811c9082168061274857607f821691505b602082108103611d8357634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b918252602082015260400190565b6000602082840312156127d557600080fd5b5051919050565b6000602082840312156127ee57600080fd5b8151610e2f81612685565b634e487b7160e01b600052601160045260246000fd5b6001600160f81b0381811683821601908082111561073d5761073d6127f9565b80820180821115610723576107236127f9565b6001600160f81b0382811682821603908082111561073d5761073d6127f9565b8082028115828204841417610723576107236127f9565b60008261289657634e487b7160e01b600052601260045260246000fd5b500490565b6000602082840312156128ad57600080fd5b8151610e2f816125c4565b600082516128ca8184602087016123f5565b919091019291505056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122001d71122cd7563180d37c9a676b20a0218ef082af36f97dc8e5d9247f5a2488f64736f6c63430008110033";
|
|
856
|
+
|
|
857
|
+
type PendleWstEthSYConstructorParams =
|
|
858
|
+
| [signer?: Signer]
|
|
859
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
860
|
+
|
|
861
|
+
const isSuperArgs = (
|
|
862
|
+
xs: PendleWstEthSYConstructorParams
|
|
863
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
864
|
+
|
|
865
|
+
export class PendleWstEthSY__factory extends ContractFactory {
|
|
866
|
+
constructor(...args: PendleWstEthSYConstructorParams) {
|
|
867
|
+
if (isSuperArgs(args)) {
|
|
868
|
+
super(...args);
|
|
869
|
+
} else {
|
|
870
|
+
super(_abi, _bytecode, args[0]);
|
|
871
|
+
}
|
|
872
|
+
this.contractName = "PendleWstEthSY";
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
deploy(
|
|
876
|
+
_name: string,
|
|
877
|
+
_symbol: string,
|
|
878
|
+
_wETH: string,
|
|
879
|
+
_wstETH: string,
|
|
880
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
881
|
+
): Promise<PendleWstEthSY> {
|
|
882
|
+
return super.deploy(
|
|
883
|
+
_name,
|
|
884
|
+
_symbol,
|
|
885
|
+
_wETH,
|
|
886
|
+
_wstETH,
|
|
887
|
+
overrides || {}
|
|
888
|
+
) as Promise<PendleWstEthSY>;
|
|
889
|
+
}
|
|
890
|
+
getDeployTransaction(
|
|
891
|
+
_name: string,
|
|
892
|
+
_symbol: string,
|
|
893
|
+
_wETH: string,
|
|
894
|
+
_wstETH: string,
|
|
895
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
896
|
+
): TransactionRequest {
|
|
897
|
+
return super.getDeployTransaction(
|
|
898
|
+
_name,
|
|
899
|
+
_symbol,
|
|
900
|
+
_wETH,
|
|
901
|
+
_wstETH,
|
|
902
|
+
overrides || {}
|
|
903
|
+
);
|
|
904
|
+
}
|
|
905
|
+
attach(address: string): PendleWstEthSY {
|
|
906
|
+
return super.attach(address) as PendleWstEthSY;
|
|
907
|
+
}
|
|
908
|
+
connect(signer: Signer): PendleWstEthSY__factory {
|
|
909
|
+
return super.connect(signer) as PendleWstEthSY__factory;
|
|
910
|
+
}
|
|
911
|
+
static readonly contractName: "PendleWstEthSY";
|
|
912
|
+
public readonly contractName: "PendleWstEthSY";
|
|
913
|
+
static readonly bytecode = _bytecode;
|
|
914
|
+
static readonly abi = _abi;
|
|
915
|
+
static createInterface(): PendleWstEthSYInterface {
|
|
916
|
+
return new utils.Interface(_abi) as PendleWstEthSYInterface;
|
|
917
|
+
}
|
|
918
|
+
static connect(
|
|
919
|
+
address: string,
|
|
920
|
+
signerOrProvider: Signer | Provider
|
|
921
|
+
): PendleWstEthSY {
|
|
922
|
+
return new Contract(address, _abi, signerOrProvider) as PendleWstEthSY;
|
|
923
|
+
}
|
|
924
|
+
}
|