@pendle/core-v2 0.8.0-beta-11 → 0.8.1-beta
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/SuperComposableYield/SCY-implementations/AaveV3/PendleAaveV3SCY.sol/PendleAaveV3SCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/PendleAaveV3SCY.sol/PendleAaveV3SCY.json +39 -7
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/WadRayMath.sol/WadRayMath.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/WadRayMath.sol/WadRayMath.json +2 -2
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.json +2 -2
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenSCY.sol/PendleQiTokenSCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenSCY.sol/PendleQiTokenSCY.json +39 -7
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleERC4626SCY.sol/PendleERC4626SCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleERC4626SCY.sol/PendleERC4626SCY.json +38 -6
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleStargateSCY.sol/PendleStargateSCY.dbg.json +4 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleStargateSCY.sol/PendleStargateSCY.json +864 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleWstEthSCY.sol/PendleWstEthSCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleWstEthSCY.sol/PendleWstEthSCY.json +38 -6
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleYearnVaultScy.sol/PendleYearnVaultSCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleYearnVaultScy.sol/PendleYearnVaultSCY.json +38 -6
- package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBase.sol/SCYBase.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBase.sol/SCYBase.json +36 -4
- package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBaseWithRewards.sol/SCYBaseWithRewards.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBaseWithRewards.sol/SCYBaseWithRewards.json +36 -4
- package/build/artifacts/contracts/core/LiquidityMining/CelerAbstracts/CelerReceiverUpg.sol/CelerReceiverUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/CelerAbstracts/CelerSenderUpg.sol/CelerSenderUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +4 -0
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +242 -0
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +4 -0
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/{PendleGaugeControllerSidechain.sol → PendleGaugeControllerSidechainUpg.sol}/PendleGaugeControllerSidechainUpg.json +3 -3
- package/build/artifacts/contracts/core/LiquidityMining/PendleGauge.sol/PendleGauge.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +2 -15
- package/build/artifacts/contracts/core/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.json +0 -13
- package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +2 -2
- package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +2 -2
- package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.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 +30 -105
- 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/PendleERC20.sol/PendleERC20.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleERC20.sol/PendleERC20.json +2 -2
- package/build/artifacts/contracts/core/PendleERC20Permit.sol/PendleERC20Permit.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleERC20Permit.sol/PendleERC20Permit.json +2 -2
- package/build/artifacts/contracts/core/PendleRouter.sol/PendleRouter.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleRouter.sol/PendleRouter.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 +2 -2
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +2 -2
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +83 -2
- package/build/artifacts/contracts/core/actions/ActionCallback.sol/ActionCallback.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionCallback.sol/ActionCallback.json +2 -2
- package/build/artifacts/contracts/core/actions/ActionCore.sol/ActionCore.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionCore.sol/ActionCore.json +706 -32
- package/build/artifacts/contracts/core/actions/ActionYT.sol/ActionYT.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionYT.sol/ActionYT.json +12 -117
- package/build/artifacts/contracts/core/actions/base/ActionSCYAndPTBase.sol/ActionSCYAndPTBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/base/ActionSCYAndPTBase.sol/ActionSCYAndPTBase.json +0 -148
- package/build/artifacts/contracts/core/actions/base/ActionSCYAndPYBase.sol/ActionSCYAndPYBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/base/ActionSCYAndPYBase.sol/ActionSCYAndPYBase.json +0 -148
- package/build/artifacts/contracts/core/actions/base/ActionSCYAndYTBase.sol/ActionSCYAndYTBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/base/ActionSCYAndYTBase.sol/ActionSCYAndYTBase.json +0 -173
- package/build/artifacts/contracts/core/actions/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IAToken.sol/IAToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IAavePool.sol/IAavePool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IAaveRewardsController.sol/IAaveRewardsController.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IBenQiComptroller.sol/IBenQiComptroller.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IBenQiInterestRateModel.sol/IBenQiInterestRateModel.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ICelerMessageBus.sol/ICelerMessageBus.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ICelerMessageReceiverApp.sol/ICelerMessageReceiverApp.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IERC4626.sol/IERC4626.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IJoePair.sol/IJoePair.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IJoeRouter01.sol/IJoeRouter01.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IJoeRouter02.sol/IJoeRouter02.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionCore.sol/IPActionCore.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionCore.sol/IPActionCore.json +837 -15
- package/build/artifacts/contracts/interfaces/IPActionYT.sol/IPActionYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionYT.sol/IPActionYT.json +68 -0
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.json +905 -15
- package/build/artifacts/contracts/interfaces/IPGaugeController.sol/IPGaugeController.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPGaugeControllerMainchain.sol/IPGaugeControllerMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPGovernanceManager.sol/IPGovernanceManager.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPInterestManagerYT.sol/IPInterestManagerYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.json +28 -28
- package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarketSwapCallback.sol/IPMarketSwapCallback.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPermissionsV2Upg.sol/IPermissionsV2Upg.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPrincipalToken.sol/IPPrincipalToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.json +15 -0
- package/build/artifacts/contracts/interfaces/IPVeToken.sol/IPVeToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVotingEscrow.sol/IPVotingEscrow.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/IPYieldToken.sol/IPYieldToken.json +81 -0
- 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/IREDACTEDStaking.sol/IREDACTEDStaking.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IRewardManager.sol/IRewardManager.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStargateLPStaking.sol/IStargateLPStaking.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStargateLPStaking.sol/IStargateLPStaking.json +90 -0
- package/build/artifacts/contracts/interfaces/IStargatePool.sol/IStargatePool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStargatePool.sol/IStargatePool.json +79 -0
- package/build/artifacts/contracts/interfaces/IStargateRouter.sol/IStargateRouter.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ISuperComposableYield.sol/ISuperComposableYield.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ISuperComposableYield.sol/ISuperComposableYield.json +36 -4
- package/build/artifacts/contracts/interfaces/IWETH.sol/IWETH.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IWXBTRFLY.sol/IWXBTRFLY.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IWstETH.sol/IWstETH.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IYearnVault.sol/IYearnVault.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/RewardManager.sol/RewardManager.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/SCY/SCYIndex.sol/SCYIndexLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/SCY/SCYIndex.sol/SCYIndexLib.json +2 -2
- package/build/artifacts/contracts/libraries/SCY/SCYUtils.sol/SCYUtils.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/SCY/SCYUtils.sol/SCYUtils.json +2 -2
- package/build/artifacts/contracts/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/VeBalanceLib.sol/VeBalanceLib.json +2 -2
- package/build/artifacts/contracts/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/VeHistoryLib.sol/Checkpoints.json +2 -2
- package/build/artifacts/contracts/libraries/helpers/ArrayLib.sol/ArrayLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/helpers/ArrayLib.sol/ArrayLib.json +2 -2
- package/build/artifacts/contracts/libraries/helpers/ExpiryUtilsLib.sol/ExpiryUtils.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/helpers/ExpiryUtilsLib.sol/ExpiryUtils.json +2 -2
- package/build/artifacts/contracts/libraries/helpers/MiniHelpers.sol/MiniHelpers.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/helpers/MiniHelpers.sol/MiniHelpers.json +2 -2
- package/build/artifacts/contracts/libraries/helpers/SSTORE2Deployer.sol/SSTORE2Deployer.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/helpers/SSTORE2Deployer.sol/SSTORE2Deployer.json +2 -2
- package/build/artifacts/contracts/libraries/helpers/TokenHelper.sol/TokenHelper.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/LogExpMath.sol/LogExpMath.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/LogExpMath.sol/LogExpMath.json +2 -2
- package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxLib.json +2 -2
- package/build/artifacts/contracts/libraries/math/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/MarketMathCore.sol/MarketMathCore.json +2 -2
- package/build/artifacts/contracts/libraries/math/Math.sol/Math.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/Math.sol/Math.json +2 -2
- package/build/artifacts/contracts/libraries/math/WeekMath.sol/WeekMath.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/WeekMath.sol/WeekMath.json +2 -2
- package/build/artifacts/contracts/libraries/solmate/SSTORE2.sol/SSTORE2.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/solmate/SSTORE2.sol/SSTORE2.json +2 -2
- package/build/artifacts/contracts/libraries/traderjoe/JoeLibrary.sol/JoeLibrary.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/traderjoe/JoeLibrary.sol/JoeLibrary.json +2 -2
- package/build/artifacts/contracts/libraries/traderjoe/PendleJoeSwapHelperUpg.sol/PendleJoeSwapHelperUpg.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.json +324 -2
- package/build/artifacts/contracts/periphery/PendleGovernanceManager.sol/PendleGovernanceManager.dbg.json +1 -1
- package/build/artifacts/contracts/periphery/PendleGovernanceManager.sol/PendleGovernanceManager.json +2 -2
- package/build/artifacts/contracts/periphery/PermissionsV2Upg.sol/PermissionsV2Upg.dbg.json +1 -1
- package/contracts/SuperComposableYield/SCY-implementations/AaveV3/PendleAaveV3SCY.sol +13 -3
- package/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenSCY.sol +13 -9
- package/contracts/SuperComposableYield/SCY-implementations/PendleERC4626SCY.sol +12 -2
- package/contracts/SuperComposableYield/SCY-implementations/PendleStargateSCY.sol +194 -0
- package/contracts/SuperComposableYield/SCY-implementations/PendleWstEthSCY.sol +12 -8
- package/contracts/SuperComposableYield/SCY-implementations/PendleYearnVaultScy.sol +12 -8
- package/contracts/SuperComposableYield/base-implementations/SCYBase.sol +10 -12
- package/contracts/SuperComposableYield/base-implementations/SCYBaseWithRewards.sol +1 -2
- package/contracts/core/LiquidityMining/CelerAbstracts/CelerSenderUpg.sol +1 -0
- package/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol +1 -1
- package/contracts/core/LiquidityMining/GaugeController/{PendleGaugeControllerMainchain.sol → PendleGaugeControllerMainchainUpg.sol} +0 -0
- package/contracts/core/LiquidityMining/GaugeController/{PendleGaugeControllerSidechain.sol → PendleGaugeControllerSidechainUpg.sol} +0 -0
- package/contracts/core/LiquidityMining/VotingController/PendleVotingControllerUpg.sol +18 -24
- package/contracts/core/LiquidityMining/VotingController/VotingControllerStorageUpg.sol +8 -10
- package/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol +3 -3
- package/contracts/core/Market/PendleMarketFactory.sol +1 -0
- package/contracts/core/PendleERC20.sol +1 -1
- package/contracts/core/YieldContracts/PendleYieldToken.sol +0 -7
- package/contracts/core/actions/ActionCallback.sol +3 -1
- package/contracts/core/actions/base/ActionSCYAndYTBase.sol +1 -0
- package/contracts/core/actions/base/CallbackHelper.sol +1 -1
- package/contracts/interfaces/IPGaugeController.sol +1 -1
- package/contracts/interfaces/IPRouterStatic.sol +15 -3
- package/contracts/interfaces/IStargateLPStaking.sol +47 -0
- package/contracts/interfaces/IStargatePool.sol +49 -0
- package/contracts/interfaces/IStargateRouter.sol +37 -0
- package/contracts/interfaces/ISuperComposableYield.sol +6 -9
- package/contracts/libraries/RewardManager.sol +2 -3
- package/contracts/libraries/RewardManagerAbstract.sol +1 -0
- package/contracts/libraries/VeBalanceLib.sol +13 -0
- package/contracts/libraries/helpers/ArrayLib.sol +0 -17
- package/contracts/libraries/helpers/TokenHelper.sol +4 -2
- package/contracts/libraries/math/LogExpMath.sol +46 -44
- package/contracts/libraries/math/MarketApproxLib.sol +5 -7
- package/contracts/libraries/math/MarketMathCore.sol +14 -5
- package/contracts/libraries/math/Math.sol +14 -0
- package/contracts/offchain-helpers/RouterStatic.sol +163 -34
- package/deployments/43113-core.json +7 -7
- package/deployments/43113-markets/benqi-market-4Ccb97.json +7 -0
- package/deployments/43113-markets/benqi-market-534471.json +7 -0
- package/deployments/80001-core.json +6 -6
- package/deployments/80001-markets/benqi-market-109acB.json +7 -0
- package/deployments/80001-markets/benqi-market-4e470E.json +7 -0
- package/package.json +3 -3
- package/typechain-types/ActionCore.ts +669 -38
- package/typechain-types/ActionSCYAndPTBase.ts +3 -129
- package/typechain-types/ActionSCYAndPYBase.ts +3 -129
- package/typechain-types/ActionSCYAndYTBase.ts +3 -149
- package/typechain-types/ActionYT.ts +31 -117
- package/typechain-types/IPActionCore.ts +760 -3
- package/typechain-types/IPActionYT.ts +63 -3
- package/typechain-types/IPAllAction.ts +818 -3
- package/typechain-types/IPMarket.ts +38 -38
- package/typechain-types/IPRouterStatic.ts +45 -9
- package/typechain-types/IPYieldToken.ts +74 -0
- package/typechain-types/IStargateLPStaking.ts +108 -0
- package/typechain-types/IStargatePool.ts +94 -0
- package/typechain-types/ISuperComposableYield.ts +72 -26
- package/typechain-types/PendleAaveV3SCY.ts +74 -28
- package/typechain-types/PendleERC4626SCY.ts +73 -27
- package/typechain-types/PendleMarket.ts +38 -142
- package/typechain-types/PendleQiTokenSCY.ts +74 -28
- package/typechain-types/PendleStargatePool.ts +73 -27
- package/typechain-types/PendleStargateSCY.ts +1135 -0
- package/typechain-types/PendleVotingControllerUpg.ts +0 -21
- package/typechain-types/PendleWstEthSCY.ts +73 -27
- package/typechain-types/PendleYearnVaultScy.ts +73 -27
- package/typechain-types/PendleYieldToken.ts +74 -0
- package/typechain-types/RouterStatic.ts +520 -36
- package/typechain-types/SCYBase.ts +73 -27
- package/typechain-types/SCYBaseWithRewards.ts +73 -27
- package/typechain-types/VotingControllerStorageUpg.ts +0 -21
- package/typechain-types/factories/ActionCallback__factory.ts +1 -1
- package/typechain-types/factories/ActionCore__factory.ts +705 -31
- package/typechain-types/factories/ActionSCYAndPTBase__factory.ts +0 -148
- package/typechain-types/factories/ActionSCYAndPYBase__factory.ts +0 -148
- package/typechain-types/factories/ActionSCYAndYTBase__factory.ts +0 -173
- package/typechain-types/factories/ActionYT__factory.ts +11 -116
- package/typechain-types/factories/ERC20__factory.ts +1 -1
- package/typechain-types/factories/IPActionCore__factory.ts +837 -15
- package/typechain-types/factories/IPActionYT__factory.ts +68 -0
- package/typechain-types/factories/IPAllAction__factory.ts +905 -15
- package/typechain-types/factories/IPMarket__factory.ts +28 -28
- package/typechain-types/factories/IPRouterStatic__factory.ts +15 -0
- package/typechain-types/factories/IPYieldToken__factory.ts +81 -0
- package/typechain-types/factories/IStargateLPStaking__factory.ts +90 -0
- package/typechain-types/factories/IStargatePool__factory.ts +79 -0
- package/typechain-types/factories/ISuperComposableYield__factory.ts +36 -4
- package/typechain-types/factories/PendleAaveV3SCY__factory.ts +38 -6
- package/typechain-types/factories/PendleERC20Permit__factory.ts +1 -1
- package/typechain-types/factories/PendleERC20__factory.ts +1 -1
- package/typechain-types/factories/PendleERC4626SCY__factory.ts +37 -5
- package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleGovernanceManager__factory.ts +1 -1
- package/typechain-types/factories/PendleMarketFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleMarket__factory.ts +29 -104
- package/typechain-types/factories/PendlePrincipalToken__factory.ts +1 -1
- package/typechain-types/factories/PendleQiTokenHelper__factory.ts +1 -1
- package/typechain-types/factories/PendleQiTokenSCY__factory.ts +38 -6
- package/typechain-types/factories/PendleRouter__factory.ts +1 -1
- package/typechain-types/factories/PendleStargatePool__factory.ts +37 -5
- package/typechain-types/factories/PendleStargateSCY__factory.ts +952 -0
- package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +1 -14
- package/typechain-types/factories/PendleWstEthSCY__factory.ts +37 -5
- package/typechain-types/factories/PendleYearnVaultScy__factory.ts +37 -5
- package/typechain-types/factories/PendleYieldContractFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleYieldToken__factory.ts +82 -1
- package/typechain-types/factories/RouterStatic__factory.ts +323 -1
- package/typechain-types/factories/SCYBaseWithRewards__factory.ts +36 -4
- package/typechain-types/factories/SCYBase__factory.ts +36 -4
- package/typechain-types/factories/VotingControllerStorageUpg__factory.ts +0 -13
- package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +1 -1
- package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +1 -1
- package/typechain-types/hardhat.d.ts +9 -0
- package/typechain-types/index.ts +2 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleStargateSCY.sol/PendleStargatePool.dbg.json +0 -4
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleStargateSCY.sol/PendleStargatePool.json +0 -837
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerMainchain.sol/PendleGaugeControllerMainchainUpg.dbg.json +0 -4
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerMainchain.sol/PendleGaugeControllerMainchainUpg.json +0 -242
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerSidechain.sol/PendleGaugeControllerSidechainUpg.dbg.json +0 -4
- package/deployments/43113-markets/benqi-market-5C60ba.json +0 -7
- package/deployments/43113-markets/benqi-market-611eA3.json +0 -7
- package/deployments/43113-markets/benqi-market-A386eA.json +0 -7
- package/deployments/43113-markets/benqi-market-bf8841.json +0 -7
- package/deployments/80001-markets/benqi-market-5E1104.json +0 -7
- package/deployments/80001-markets/benqi-market-899134.json +0 -7
- package/deployments/80001-markets/benqi-market-94C86f.json +0 -7
- package/deployments/80001-markets/benqi-market-c68429.json +0 -7
|
@@ -7,6 +7,604 @@ import { Provider } from "@ethersproject/providers";
|
|
|
7
7
|
import type { IPActionCore, IPActionCoreInterface } from "../IPActionCore";
|
|
8
8
|
|
|
9
9
|
const _abi = [
|
|
10
|
+
{
|
|
11
|
+
anonymous: false,
|
|
12
|
+
inputs: [
|
|
13
|
+
{
|
|
14
|
+
indexed: true,
|
|
15
|
+
internalType: "address",
|
|
16
|
+
name: "caller",
|
|
17
|
+
type: "address",
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
indexed: true,
|
|
21
|
+
internalType: "address",
|
|
22
|
+
name: "market",
|
|
23
|
+
type: "address",
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
indexed: true,
|
|
27
|
+
internalType: "address",
|
|
28
|
+
name: "receiver",
|
|
29
|
+
type: "address",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
indexed: false,
|
|
33
|
+
internalType: "uint256",
|
|
34
|
+
name: "scyUsed",
|
|
35
|
+
type: "uint256",
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
indexed: false,
|
|
39
|
+
internalType: "uint256",
|
|
40
|
+
name: "ptUsed",
|
|
41
|
+
type: "uint256",
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
indexed: false,
|
|
45
|
+
internalType: "uint256",
|
|
46
|
+
name: "lpOut",
|
|
47
|
+
type: "uint256",
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
name: "AddLiquidity",
|
|
51
|
+
type: "event",
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
anonymous: false,
|
|
55
|
+
inputs: [
|
|
56
|
+
{
|
|
57
|
+
indexed: true,
|
|
58
|
+
internalType: "address",
|
|
59
|
+
name: "caller",
|
|
60
|
+
type: "address",
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
indexed: true,
|
|
64
|
+
internalType: "address",
|
|
65
|
+
name: "receiver",
|
|
66
|
+
type: "address",
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
indexed: true,
|
|
70
|
+
internalType: "address",
|
|
71
|
+
name: "YT",
|
|
72
|
+
type: "address",
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
indexed: false,
|
|
76
|
+
internalType: "address",
|
|
77
|
+
name: "rawTokenIn",
|
|
78
|
+
type: "address",
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
indexed: false,
|
|
82
|
+
internalType: "uint256",
|
|
83
|
+
name: "netRawTokenIn",
|
|
84
|
+
type: "uint256",
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
indexed: false,
|
|
88
|
+
internalType: "uint256",
|
|
89
|
+
name: "netPyOut",
|
|
90
|
+
type: "uint256",
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
name: "MintPyFromRawToken",
|
|
94
|
+
type: "event",
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
anonymous: false,
|
|
98
|
+
inputs: [
|
|
99
|
+
{
|
|
100
|
+
indexed: true,
|
|
101
|
+
internalType: "address",
|
|
102
|
+
name: "caller",
|
|
103
|
+
type: "address",
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
indexed: true,
|
|
107
|
+
internalType: "address",
|
|
108
|
+
name: "receiver",
|
|
109
|
+
type: "address",
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
indexed: true,
|
|
113
|
+
internalType: "address",
|
|
114
|
+
name: "YT",
|
|
115
|
+
type: "address",
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
indexed: false,
|
|
119
|
+
internalType: "uint256",
|
|
120
|
+
name: "netScyIn",
|
|
121
|
+
type: "uint256",
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
indexed: false,
|
|
125
|
+
internalType: "uint256",
|
|
126
|
+
name: "netPyOut",
|
|
127
|
+
type: "uint256",
|
|
128
|
+
},
|
|
129
|
+
],
|
|
130
|
+
name: "MintPyFromScy",
|
|
131
|
+
type: "event",
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
anonymous: false,
|
|
135
|
+
inputs: [
|
|
136
|
+
{
|
|
137
|
+
indexed: true,
|
|
138
|
+
internalType: "address",
|
|
139
|
+
name: "caller",
|
|
140
|
+
type: "address",
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
indexed: true,
|
|
144
|
+
internalType: "address",
|
|
145
|
+
name: "receiver",
|
|
146
|
+
type: "address",
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
indexed: true,
|
|
150
|
+
internalType: "address",
|
|
151
|
+
name: "SCY",
|
|
152
|
+
type: "address",
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
indexed: false,
|
|
156
|
+
internalType: "address",
|
|
157
|
+
name: "rawTokenIn",
|
|
158
|
+
type: "address",
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
indexed: false,
|
|
162
|
+
internalType: "uint256",
|
|
163
|
+
name: "netRawTokenIn",
|
|
164
|
+
type: "uint256",
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
indexed: false,
|
|
168
|
+
internalType: "uint256",
|
|
169
|
+
name: "netScyOut",
|
|
170
|
+
type: "uint256",
|
|
171
|
+
},
|
|
172
|
+
],
|
|
173
|
+
name: "MintScyFromRawToken",
|
|
174
|
+
type: "event",
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
anonymous: false,
|
|
178
|
+
inputs: [
|
|
179
|
+
{
|
|
180
|
+
indexed: true,
|
|
181
|
+
internalType: "address",
|
|
182
|
+
name: "caller",
|
|
183
|
+
type: "address",
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
indexed: true,
|
|
187
|
+
internalType: "address",
|
|
188
|
+
name: "receiver",
|
|
189
|
+
type: "address",
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
indexed: true,
|
|
193
|
+
internalType: "address",
|
|
194
|
+
name: "YT",
|
|
195
|
+
type: "address",
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
indexed: false,
|
|
199
|
+
internalType: "uint256",
|
|
200
|
+
name: "netPyIn",
|
|
201
|
+
type: "uint256",
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
indexed: false,
|
|
205
|
+
internalType: "address",
|
|
206
|
+
name: "rawTokenOut",
|
|
207
|
+
type: "address",
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
indexed: false,
|
|
211
|
+
internalType: "uint256",
|
|
212
|
+
name: "netRawTokenOut",
|
|
213
|
+
type: "uint256",
|
|
214
|
+
},
|
|
215
|
+
],
|
|
216
|
+
name: "RedeemPyToRawToken",
|
|
217
|
+
type: "event",
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
anonymous: false,
|
|
221
|
+
inputs: [
|
|
222
|
+
{
|
|
223
|
+
indexed: true,
|
|
224
|
+
internalType: "address",
|
|
225
|
+
name: "caller",
|
|
226
|
+
type: "address",
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
indexed: true,
|
|
230
|
+
internalType: "address",
|
|
231
|
+
name: "receiver",
|
|
232
|
+
type: "address",
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
indexed: true,
|
|
236
|
+
internalType: "address",
|
|
237
|
+
name: "YT",
|
|
238
|
+
type: "address",
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
indexed: false,
|
|
242
|
+
internalType: "uint256",
|
|
243
|
+
name: "netPyIn",
|
|
244
|
+
type: "uint256",
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
indexed: false,
|
|
248
|
+
internalType: "uint256",
|
|
249
|
+
name: "netScyOut",
|
|
250
|
+
type: "uint256",
|
|
251
|
+
},
|
|
252
|
+
],
|
|
253
|
+
name: "RedeemPyToScy",
|
|
254
|
+
type: "event",
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
anonymous: false,
|
|
258
|
+
inputs: [
|
|
259
|
+
{
|
|
260
|
+
indexed: true,
|
|
261
|
+
internalType: "address",
|
|
262
|
+
name: "caller",
|
|
263
|
+
type: "address",
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
indexed: true,
|
|
267
|
+
internalType: "address",
|
|
268
|
+
name: "receiver",
|
|
269
|
+
type: "address",
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
indexed: true,
|
|
273
|
+
internalType: "address",
|
|
274
|
+
name: "SCY",
|
|
275
|
+
type: "address",
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
indexed: false,
|
|
279
|
+
internalType: "uint256",
|
|
280
|
+
name: "netScyIn",
|
|
281
|
+
type: "uint256",
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
indexed: false,
|
|
285
|
+
internalType: "address",
|
|
286
|
+
name: "rawTokenOut",
|
|
287
|
+
type: "address",
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
indexed: false,
|
|
291
|
+
internalType: "uint256",
|
|
292
|
+
name: "netRawTokenOut",
|
|
293
|
+
type: "uint256",
|
|
294
|
+
},
|
|
295
|
+
],
|
|
296
|
+
name: "RedeemScyToRawToken",
|
|
297
|
+
type: "event",
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
anonymous: false,
|
|
301
|
+
inputs: [
|
|
302
|
+
{
|
|
303
|
+
indexed: true,
|
|
304
|
+
internalType: "address",
|
|
305
|
+
name: "caller",
|
|
306
|
+
type: "address",
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
indexed: true,
|
|
310
|
+
internalType: "address",
|
|
311
|
+
name: "market",
|
|
312
|
+
type: "address",
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
indexed: false,
|
|
316
|
+
internalType: "address",
|
|
317
|
+
name: "receiver",
|
|
318
|
+
type: "address",
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
indexed: false,
|
|
322
|
+
internalType: "uint256",
|
|
323
|
+
name: "lpIn",
|
|
324
|
+
type: "uint256",
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
indexed: false,
|
|
328
|
+
internalType: "uint256",
|
|
329
|
+
name: "amountPTOut",
|
|
330
|
+
type: "uint256",
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
indexed: false,
|
|
334
|
+
internalType: "uint256",
|
|
335
|
+
name: "amountSCYOut",
|
|
336
|
+
type: "uint256",
|
|
337
|
+
},
|
|
338
|
+
],
|
|
339
|
+
name: "RemoveLiquidity",
|
|
340
|
+
type: "event",
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
anonymous: false,
|
|
344
|
+
inputs: [
|
|
345
|
+
{
|
|
346
|
+
indexed: true,
|
|
347
|
+
internalType: "address",
|
|
348
|
+
name: "caller",
|
|
349
|
+
type: "address",
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
indexed: true,
|
|
353
|
+
internalType: "address",
|
|
354
|
+
name: "market",
|
|
355
|
+
type: "address",
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
indexed: true,
|
|
359
|
+
internalType: "address",
|
|
360
|
+
name: "rawToken",
|
|
361
|
+
type: "address",
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
indexed: false,
|
|
365
|
+
internalType: "address",
|
|
366
|
+
name: "receiver",
|
|
367
|
+
type: "address",
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
indexed: false,
|
|
371
|
+
internalType: "int256",
|
|
372
|
+
name: "amountPtToAccount",
|
|
373
|
+
type: "int256",
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
indexed: false,
|
|
377
|
+
internalType: "int256",
|
|
378
|
+
name: "amountRawTokenToAccount",
|
|
379
|
+
type: "int256",
|
|
380
|
+
},
|
|
381
|
+
],
|
|
382
|
+
name: "SwapPtAndRawToken",
|
|
383
|
+
type: "event",
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
anonymous: false,
|
|
387
|
+
inputs: [
|
|
388
|
+
{
|
|
389
|
+
indexed: true,
|
|
390
|
+
internalType: "address",
|
|
391
|
+
name: "caller",
|
|
392
|
+
type: "address",
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
indexed: true,
|
|
396
|
+
internalType: "address",
|
|
397
|
+
name: "market",
|
|
398
|
+
type: "address",
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
indexed: true,
|
|
402
|
+
internalType: "address",
|
|
403
|
+
name: "receiver",
|
|
404
|
+
type: "address",
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
indexed: false,
|
|
408
|
+
internalType: "int256",
|
|
409
|
+
name: "amountPtToAccount",
|
|
410
|
+
type: "int256",
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
indexed: false,
|
|
414
|
+
internalType: "int256",
|
|
415
|
+
name: "amountScyToAccount",
|
|
416
|
+
type: "int256",
|
|
417
|
+
},
|
|
418
|
+
],
|
|
419
|
+
name: "SwapPtAndScy",
|
|
420
|
+
type: "event",
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
inputs: [
|
|
424
|
+
{
|
|
425
|
+
internalType: "address",
|
|
426
|
+
name: "receiver",
|
|
427
|
+
type: "address",
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
internalType: "address",
|
|
431
|
+
name: "market",
|
|
432
|
+
type: "address",
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
internalType: "uint256",
|
|
436
|
+
name: "scyDesired",
|
|
437
|
+
type: "uint256",
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
internalType: "uint256",
|
|
441
|
+
name: "ptDesired",
|
|
442
|
+
type: "uint256",
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
internalType: "uint256",
|
|
446
|
+
name: "minLpOut",
|
|
447
|
+
type: "uint256",
|
|
448
|
+
},
|
|
449
|
+
],
|
|
450
|
+
name: "addLiquidity",
|
|
451
|
+
outputs: [
|
|
452
|
+
{
|
|
453
|
+
internalType: "uint256",
|
|
454
|
+
name: "netLpOut",
|
|
455
|
+
type: "uint256",
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
internalType: "uint256",
|
|
459
|
+
name: "scyUsed",
|
|
460
|
+
type: "uint256",
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
internalType: "uint256",
|
|
464
|
+
name: "ptUsed",
|
|
465
|
+
type: "uint256",
|
|
466
|
+
},
|
|
467
|
+
],
|
|
468
|
+
stateMutability: "nonpayable",
|
|
469
|
+
type: "function",
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
inputs: [
|
|
473
|
+
{
|
|
474
|
+
internalType: "address",
|
|
475
|
+
name: "receiver",
|
|
476
|
+
type: "address",
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
internalType: "address",
|
|
480
|
+
name: "market",
|
|
481
|
+
type: "address",
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
internalType: "uint256",
|
|
485
|
+
name: "netPtIn",
|
|
486
|
+
type: "uint256",
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
internalType: "uint256",
|
|
490
|
+
name: "minLpOut",
|
|
491
|
+
type: "uint256",
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
components: [
|
|
495
|
+
{
|
|
496
|
+
internalType: "uint256",
|
|
497
|
+
name: "guessMin",
|
|
498
|
+
type: "uint256",
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
internalType: "uint256",
|
|
502
|
+
name: "guessMax",
|
|
503
|
+
type: "uint256",
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
internalType: "uint256",
|
|
507
|
+
name: "guessOffchain",
|
|
508
|
+
type: "uint256",
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
internalType: "uint256",
|
|
512
|
+
name: "maxIteration",
|
|
513
|
+
type: "uint256",
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
internalType: "uint256",
|
|
517
|
+
name: "eps",
|
|
518
|
+
type: "uint256",
|
|
519
|
+
},
|
|
520
|
+
],
|
|
521
|
+
internalType: "struct ApproxParams",
|
|
522
|
+
name: "guessPtSwapToScy",
|
|
523
|
+
type: "tuple",
|
|
524
|
+
},
|
|
525
|
+
],
|
|
526
|
+
name: "addLiquiditySinglePt",
|
|
527
|
+
outputs: [
|
|
528
|
+
{
|
|
529
|
+
internalType: "uint256",
|
|
530
|
+
name: "netLpOut",
|
|
531
|
+
type: "uint256",
|
|
532
|
+
},
|
|
533
|
+
],
|
|
534
|
+
stateMutability: "nonpayable",
|
|
535
|
+
type: "function",
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
inputs: [
|
|
539
|
+
{
|
|
540
|
+
internalType: "address",
|
|
541
|
+
name: "receiver",
|
|
542
|
+
type: "address",
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
internalType: "address",
|
|
546
|
+
name: "market",
|
|
547
|
+
type: "address",
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
internalType: "uint256",
|
|
551
|
+
name: "netRawTokenIn",
|
|
552
|
+
type: "uint256",
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
internalType: "uint256",
|
|
556
|
+
name: "minLpOut",
|
|
557
|
+
type: "uint256",
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
internalType: "address[]",
|
|
561
|
+
name: "path",
|
|
562
|
+
type: "address[]",
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
components: [
|
|
566
|
+
{
|
|
567
|
+
internalType: "uint256",
|
|
568
|
+
name: "guessMin",
|
|
569
|
+
type: "uint256",
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
internalType: "uint256",
|
|
573
|
+
name: "guessMax",
|
|
574
|
+
type: "uint256",
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
internalType: "uint256",
|
|
578
|
+
name: "guessOffchain",
|
|
579
|
+
type: "uint256",
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
internalType: "uint256",
|
|
583
|
+
name: "maxIteration",
|
|
584
|
+
type: "uint256",
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
internalType: "uint256",
|
|
588
|
+
name: "eps",
|
|
589
|
+
type: "uint256",
|
|
590
|
+
},
|
|
591
|
+
],
|
|
592
|
+
internalType: "struct ApproxParams",
|
|
593
|
+
name: "guessPtReceivedFromScy",
|
|
594
|
+
type: "tuple",
|
|
595
|
+
},
|
|
596
|
+
],
|
|
597
|
+
name: "addLiquiditySingleRawToken",
|
|
598
|
+
outputs: [
|
|
599
|
+
{
|
|
600
|
+
internalType: "uint256",
|
|
601
|
+
name: "netLpOut",
|
|
602
|
+
type: "uint256",
|
|
603
|
+
},
|
|
604
|
+
],
|
|
605
|
+
stateMutability: "nonpayable",
|
|
606
|
+
type: "function",
|
|
607
|
+
},
|
|
10
608
|
{
|
|
11
609
|
inputs: [
|
|
12
610
|
{
|
|
@@ -21,35 +619,91 @@ const _abi = [
|
|
|
21
619
|
},
|
|
22
620
|
{
|
|
23
621
|
internalType: "uint256",
|
|
24
|
-
name: "
|
|
622
|
+
name: "netScyIn",
|
|
25
623
|
type: "uint256",
|
|
26
624
|
},
|
|
27
625
|
{
|
|
28
626
|
internalType: "uint256",
|
|
29
|
-
name: "
|
|
627
|
+
name: "minLpOut",
|
|
30
628
|
type: "uint256",
|
|
31
629
|
},
|
|
32
630
|
{
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
631
|
+
components: [
|
|
632
|
+
{
|
|
633
|
+
internalType: "uint256",
|
|
634
|
+
name: "guessMin",
|
|
635
|
+
type: "uint256",
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
internalType: "uint256",
|
|
639
|
+
name: "guessMax",
|
|
640
|
+
type: "uint256",
|
|
641
|
+
},
|
|
642
|
+
{
|
|
643
|
+
internalType: "uint256",
|
|
644
|
+
name: "guessOffchain",
|
|
645
|
+
type: "uint256",
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
internalType: "uint256",
|
|
649
|
+
name: "maxIteration",
|
|
650
|
+
type: "uint256",
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
internalType: "uint256",
|
|
654
|
+
name: "eps",
|
|
655
|
+
type: "uint256",
|
|
656
|
+
},
|
|
657
|
+
],
|
|
658
|
+
internalType: "struct ApproxParams",
|
|
659
|
+
name: "guessPtReceivedFromScy",
|
|
660
|
+
type: "tuple",
|
|
36
661
|
},
|
|
37
662
|
],
|
|
38
|
-
name: "
|
|
663
|
+
name: "addLiquiditySingleScy",
|
|
39
664
|
outputs: [
|
|
40
665
|
{
|
|
41
666
|
internalType: "uint256",
|
|
42
667
|
name: "netLpOut",
|
|
43
668
|
type: "uint256",
|
|
44
669
|
},
|
|
670
|
+
],
|
|
671
|
+
stateMutability: "nonpayable",
|
|
672
|
+
type: "function",
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
inputs: [
|
|
676
|
+
{
|
|
677
|
+
internalType: "address",
|
|
678
|
+
name: "receiver",
|
|
679
|
+
type: "address",
|
|
680
|
+
},
|
|
681
|
+
{
|
|
682
|
+
internalType: "address",
|
|
683
|
+
name: "YT",
|
|
684
|
+
type: "address",
|
|
685
|
+
},
|
|
45
686
|
{
|
|
46
687
|
internalType: "uint256",
|
|
47
|
-
name: "
|
|
688
|
+
name: "netRawTokenIn",
|
|
48
689
|
type: "uint256",
|
|
49
690
|
},
|
|
50
691
|
{
|
|
51
692
|
internalType: "uint256",
|
|
52
|
-
name: "
|
|
693
|
+
name: "minPyOut",
|
|
694
|
+
type: "uint256",
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
internalType: "address[]",
|
|
698
|
+
name: "path",
|
|
699
|
+
type: "address[]",
|
|
700
|
+
},
|
|
701
|
+
],
|
|
702
|
+
name: "mintPyFromRawToken",
|
|
703
|
+
outputs: [
|
|
704
|
+
{
|
|
705
|
+
internalType: "uint256",
|
|
706
|
+
name: "netPyOut",
|
|
53
707
|
type: "uint256",
|
|
54
708
|
},
|
|
55
709
|
],
|
|
@@ -70,7 +724,7 @@ const _abi = [
|
|
|
70
724
|
},
|
|
71
725
|
{
|
|
72
726
|
internalType: "uint256",
|
|
73
|
-
name: "
|
|
727
|
+
name: "netScyIn",
|
|
74
728
|
type: "uint256",
|
|
75
729
|
},
|
|
76
730
|
{
|
|
@@ -78,13 +732,8 @@ const _abi = [
|
|
|
78
732
|
name: "minPyOut",
|
|
79
733
|
type: "uint256",
|
|
80
734
|
},
|
|
81
|
-
{
|
|
82
|
-
internalType: "address[]",
|
|
83
|
-
name: "path",
|
|
84
|
-
type: "address[]",
|
|
85
|
-
},
|
|
86
735
|
],
|
|
87
|
-
name: "
|
|
736
|
+
name: "mintPyFromScy",
|
|
88
737
|
outputs: [
|
|
89
738
|
{
|
|
90
739
|
internalType: "uint256",
|
|
@@ -222,6 +871,40 @@ const _abi = [
|
|
|
222
871
|
stateMutability: "nonpayable",
|
|
223
872
|
type: "function",
|
|
224
873
|
},
|
|
874
|
+
{
|
|
875
|
+
inputs: [
|
|
876
|
+
{
|
|
877
|
+
internalType: "address",
|
|
878
|
+
name: "receiver",
|
|
879
|
+
type: "address",
|
|
880
|
+
},
|
|
881
|
+
{
|
|
882
|
+
internalType: "address",
|
|
883
|
+
name: "YT",
|
|
884
|
+
type: "address",
|
|
885
|
+
},
|
|
886
|
+
{
|
|
887
|
+
internalType: "uint256",
|
|
888
|
+
name: "netPyIn",
|
|
889
|
+
type: "uint256",
|
|
890
|
+
},
|
|
891
|
+
{
|
|
892
|
+
internalType: "uint256",
|
|
893
|
+
name: "minScyOut",
|
|
894
|
+
type: "uint256",
|
|
895
|
+
},
|
|
896
|
+
],
|
|
897
|
+
name: "redeemPyToScy",
|
|
898
|
+
outputs: [
|
|
899
|
+
{
|
|
900
|
+
internalType: "uint256",
|
|
901
|
+
name: "netScyOut",
|
|
902
|
+
type: "uint256",
|
|
903
|
+
},
|
|
904
|
+
],
|
|
905
|
+
stateMutability: "nonpayable",
|
|
906
|
+
type: "function",
|
|
907
|
+
},
|
|
225
908
|
{
|
|
226
909
|
inputs: [
|
|
227
910
|
{
|
|
@@ -305,6 +988,145 @@ const _abi = [
|
|
|
305
988
|
stateMutability: "nonpayable",
|
|
306
989
|
type: "function",
|
|
307
990
|
},
|
|
991
|
+
{
|
|
992
|
+
inputs: [
|
|
993
|
+
{
|
|
994
|
+
internalType: "address",
|
|
995
|
+
name: "receiver",
|
|
996
|
+
type: "address",
|
|
997
|
+
},
|
|
998
|
+
{
|
|
999
|
+
internalType: "address",
|
|
1000
|
+
name: "market",
|
|
1001
|
+
type: "address",
|
|
1002
|
+
},
|
|
1003
|
+
{
|
|
1004
|
+
internalType: "uint256",
|
|
1005
|
+
name: "lpToRemove",
|
|
1006
|
+
type: "uint256",
|
|
1007
|
+
},
|
|
1008
|
+
{
|
|
1009
|
+
internalType: "uint256",
|
|
1010
|
+
name: "minPtOut",
|
|
1011
|
+
type: "uint256",
|
|
1012
|
+
},
|
|
1013
|
+
{
|
|
1014
|
+
components: [
|
|
1015
|
+
{
|
|
1016
|
+
internalType: "uint256",
|
|
1017
|
+
name: "guessMin",
|
|
1018
|
+
type: "uint256",
|
|
1019
|
+
},
|
|
1020
|
+
{
|
|
1021
|
+
internalType: "uint256",
|
|
1022
|
+
name: "guessMax",
|
|
1023
|
+
type: "uint256",
|
|
1024
|
+
},
|
|
1025
|
+
{
|
|
1026
|
+
internalType: "uint256",
|
|
1027
|
+
name: "guessOffchain",
|
|
1028
|
+
type: "uint256",
|
|
1029
|
+
},
|
|
1030
|
+
{
|
|
1031
|
+
internalType: "uint256",
|
|
1032
|
+
name: "maxIteration",
|
|
1033
|
+
type: "uint256",
|
|
1034
|
+
},
|
|
1035
|
+
{
|
|
1036
|
+
internalType: "uint256",
|
|
1037
|
+
name: "eps",
|
|
1038
|
+
type: "uint256",
|
|
1039
|
+
},
|
|
1040
|
+
],
|
|
1041
|
+
internalType: "struct ApproxParams",
|
|
1042
|
+
name: "guessPtOut",
|
|
1043
|
+
type: "tuple",
|
|
1044
|
+
},
|
|
1045
|
+
],
|
|
1046
|
+
name: "removeLiquiditySinglePt",
|
|
1047
|
+
outputs: [
|
|
1048
|
+
{
|
|
1049
|
+
internalType: "uint256",
|
|
1050
|
+
name: "netPtOut",
|
|
1051
|
+
type: "uint256",
|
|
1052
|
+
},
|
|
1053
|
+
],
|
|
1054
|
+
stateMutability: "nonpayable",
|
|
1055
|
+
type: "function",
|
|
1056
|
+
},
|
|
1057
|
+
{
|
|
1058
|
+
inputs: [
|
|
1059
|
+
{
|
|
1060
|
+
internalType: "address",
|
|
1061
|
+
name: "receiver",
|
|
1062
|
+
type: "address",
|
|
1063
|
+
},
|
|
1064
|
+
{
|
|
1065
|
+
internalType: "address",
|
|
1066
|
+
name: "market",
|
|
1067
|
+
type: "address",
|
|
1068
|
+
},
|
|
1069
|
+
{
|
|
1070
|
+
internalType: "uint256",
|
|
1071
|
+
name: "lpToRemove",
|
|
1072
|
+
type: "uint256",
|
|
1073
|
+
},
|
|
1074
|
+
{
|
|
1075
|
+
internalType: "uint256",
|
|
1076
|
+
name: "minRawTokenOut",
|
|
1077
|
+
type: "uint256",
|
|
1078
|
+
},
|
|
1079
|
+
{
|
|
1080
|
+
internalType: "address[]",
|
|
1081
|
+
name: "path",
|
|
1082
|
+
type: "address[]",
|
|
1083
|
+
},
|
|
1084
|
+
],
|
|
1085
|
+
name: "removeLiquiditySingleRawToken",
|
|
1086
|
+
outputs: [
|
|
1087
|
+
{
|
|
1088
|
+
internalType: "uint256",
|
|
1089
|
+
name: "netRawTokenOut",
|
|
1090
|
+
type: "uint256",
|
|
1091
|
+
},
|
|
1092
|
+
],
|
|
1093
|
+
stateMutability: "nonpayable",
|
|
1094
|
+
type: "function",
|
|
1095
|
+
},
|
|
1096
|
+
{
|
|
1097
|
+
inputs: [
|
|
1098
|
+
{
|
|
1099
|
+
internalType: "address",
|
|
1100
|
+
name: "receiver",
|
|
1101
|
+
type: "address",
|
|
1102
|
+
},
|
|
1103
|
+
{
|
|
1104
|
+
internalType: "address",
|
|
1105
|
+
name: "market",
|
|
1106
|
+
type: "address",
|
|
1107
|
+
},
|
|
1108
|
+
{
|
|
1109
|
+
internalType: "uint256",
|
|
1110
|
+
name: "lpToRemove",
|
|
1111
|
+
type: "uint256",
|
|
1112
|
+
},
|
|
1113
|
+
{
|
|
1114
|
+
internalType: "uint256",
|
|
1115
|
+
name: "minScyOut",
|
|
1116
|
+
type: "uint256",
|
|
1117
|
+
},
|
|
1118
|
+
],
|
|
1119
|
+
name: "removeLiquiditySingleScy",
|
|
1120
|
+
outputs: [
|
|
1121
|
+
{
|
|
1122
|
+
internalType: "uint256",
|
|
1123
|
+
name: "netScyOut",
|
|
1124
|
+
type: "uint256",
|
|
1125
|
+
},
|
|
1126
|
+
],
|
|
1127
|
+
stateMutability: "nonpayable",
|
|
1128
|
+
type: "function",
|
|
1129
|
+
},
|
|
308
1130
|
{
|
|
309
1131
|
inputs: [
|
|
310
1132
|
{
|