@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,672 @@ import { Provider } from "@ethersproject/providers";
|
|
|
7
7
|
import type { IPAllAction, IPAllActionInterface } from "../IPAllAction";
|
|
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
|
+
anonymous: false,
|
|
424
|
+
inputs: [
|
|
425
|
+
{
|
|
426
|
+
indexed: true,
|
|
427
|
+
internalType: "address",
|
|
428
|
+
name: "user",
|
|
429
|
+
type: "address",
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
indexed: true,
|
|
433
|
+
internalType: "address",
|
|
434
|
+
name: "market",
|
|
435
|
+
type: "address",
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
indexed: true,
|
|
439
|
+
internalType: "address",
|
|
440
|
+
name: "rawToken",
|
|
441
|
+
type: "address",
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
indexed: false,
|
|
445
|
+
internalType: "int256",
|
|
446
|
+
name: "ytToAccount",
|
|
447
|
+
type: "int256",
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
indexed: false,
|
|
451
|
+
internalType: "int256",
|
|
452
|
+
name: "rawTokenToAccount",
|
|
453
|
+
type: "int256",
|
|
454
|
+
},
|
|
455
|
+
],
|
|
456
|
+
name: "SwapYTAndRawToken",
|
|
457
|
+
type: "event",
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
anonymous: false,
|
|
461
|
+
inputs: [
|
|
462
|
+
{
|
|
463
|
+
indexed: true,
|
|
464
|
+
internalType: "address",
|
|
465
|
+
name: "user",
|
|
466
|
+
type: "address",
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
indexed: true,
|
|
470
|
+
internalType: "address",
|
|
471
|
+
name: "market",
|
|
472
|
+
type: "address",
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
indexed: false,
|
|
476
|
+
internalType: "int256",
|
|
477
|
+
name: "ytToAccount",
|
|
478
|
+
type: "int256",
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
indexed: false,
|
|
482
|
+
internalType: "int256",
|
|
483
|
+
name: "scyToAccount",
|
|
484
|
+
type: "int256",
|
|
485
|
+
},
|
|
486
|
+
],
|
|
487
|
+
name: "SwapYTAndSCY",
|
|
488
|
+
type: "event",
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
inputs: [
|
|
492
|
+
{
|
|
493
|
+
internalType: "address",
|
|
494
|
+
name: "receiver",
|
|
495
|
+
type: "address",
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
internalType: "address",
|
|
499
|
+
name: "market",
|
|
500
|
+
type: "address",
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
internalType: "uint256",
|
|
504
|
+
name: "scyDesired",
|
|
505
|
+
type: "uint256",
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
internalType: "uint256",
|
|
509
|
+
name: "ptDesired",
|
|
510
|
+
type: "uint256",
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
internalType: "uint256",
|
|
514
|
+
name: "minLpOut",
|
|
515
|
+
type: "uint256",
|
|
516
|
+
},
|
|
517
|
+
],
|
|
518
|
+
name: "addLiquidity",
|
|
519
|
+
outputs: [
|
|
520
|
+
{
|
|
521
|
+
internalType: "uint256",
|
|
522
|
+
name: "netLpOut",
|
|
523
|
+
type: "uint256",
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
internalType: "uint256",
|
|
527
|
+
name: "scyUsed",
|
|
528
|
+
type: "uint256",
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
internalType: "uint256",
|
|
532
|
+
name: "ptUsed",
|
|
533
|
+
type: "uint256",
|
|
534
|
+
},
|
|
535
|
+
],
|
|
536
|
+
stateMutability: "nonpayable",
|
|
537
|
+
type: "function",
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
inputs: [
|
|
541
|
+
{
|
|
542
|
+
internalType: "address",
|
|
543
|
+
name: "receiver",
|
|
544
|
+
type: "address",
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
internalType: "address",
|
|
548
|
+
name: "market",
|
|
549
|
+
type: "address",
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
internalType: "uint256",
|
|
553
|
+
name: "netPtIn",
|
|
554
|
+
type: "uint256",
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
internalType: "uint256",
|
|
558
|
+
name: "minLpOut",
|
|
559
|
+
type: "uint256",
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
components: [
|
|
563
|
+
{
|
|
564
|
+
internalType: "uint256",
|
|
565
|
+
name: "guessMin",
|
|
566
|
+
type: "uint256",
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
internalType: "uint256",
|
|
570
|
+
name: "guessMax",
|
|
571
|
+
type: "uint256",
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
internalType: "uint256",
|
|
575
|
+
name: "guessOffchain",
|
|
576
|
+
type: "uint256",
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
internalType: "uint256",
|
|
580
|
+
name: "maxIteration",
|
|
581
|
+
type: "uint256",
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
internalType: "uint256",
|
|
585
|
+
name: "eps",
|
|
586
|
+
type: "uint256",
|
|
587
|
+
},
|
|
588
|
+
],
|
|
589
|
+
internalType: "struct ApproxParams",
|
|
590
|
+
name: "guessPtSwapToScy",
|
|
591
|
+
type: "tuple",
|
|
592
|
+
},
|
|
593
|
+
],
|
|
594
|
+
name: "addLiquiditySinglePt",
|
|
595
|
+
outputs: [
|
|
596
|
+
{
|
|
597
|
+
internalType: "uint256",
|
|
598
|
+
name: "netLpOut",
|
|
599
|
+
type: "uint256",
|
|
600
|
+
},
|
|
601
|
+
],
|
|
602
|
+
stateMutability: "nonpayable",
|
|
603
|
+
type: "function",
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
inputs: [
|
|
607
|
+
{
|
|
608
|
+
internalType: "address",
|
|
609
|
+
name: "receiver",
|
|
610
|
+
type: "address",
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
internalType: "address",
|
|
614
|
+
name: "market",
|
|
615
|
+
type: "address",
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
internalType: "uint256",
|
|
619
|
+
name: "netRawTokenIn",
|
|
620
|
+
type: "uint256",
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
internalType: "uint256",
|
|
624
|
+
name: "minLpOut",
|
|
625
|
+
type: "uint256",
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
internalType: "address[]",
|
|
629
|
+
name: "path",
|
|
630
|
+
type: "address[]",
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
components: [
|
|
634
|
+
{
|
|
635
|
+
internalType: "uint256",
|
|
636
|
+
name: "guessMin",
|
|
637
|
+
type: "uint256",
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
internalType: "uint256",
|
|
641
|
+
name: "guessMax",
|
|
642
|
+
type: "uint256",
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
internalType: "uint256",
|
|
646
|
+
name: "guessOffchain",
|
|
647
|
+
type: "uint256",
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
internalType: "uint256",
|
|
651
|
+
name: "maxIteration",
|
|
652
|
+
type: "uint256",
|
|
653
|
+
},
|
|
654
|
+
{
|
|
655
|
+
internalType: "uint256",
|
|
656
|
+
name: "eps",
|
|
657
|
+
type: "uint256",
|
|
658
|
+
},
|
|
659
|
+
],
|
|
660
|
+
internalType: "struct ApproxParams",
|
|
661
|
+
name: "guessPtReceivedFromScy",
|
|
662
|
+
type: "tuple",
|
|
663
|
+
},
|
|
664
|
+
],
|
|
665
|
+
name: "addLiquiditySingleRawToken",
|
|
666
|
+
outputs: [
|
|
667
|
+
{
|
|
668
|
+
internalType: "uint256",
|
|
669
|
+
name: "netLpOut",
|
|
670
|
+
type: "uint256",
|
|
671
|
+
},
|
|
672
|
+
],
|
|
673
|
+
stateMutability: "nonpayable",
|
|
674
|
+
type: "function",
|
|
675
|
+
},
|
|
10
676
|
{
|
|
11
677
|
inputs: [
|
|
12
678
|
{
|
|
@@ -21,35 +687,91 @@ const _abi = [
|
|
|
21
687
|
},
|
|
22
688
|
{
|
|
23
689
|
internalType: "uint256",
|
|
24
|
-
name: "
|
|
690
|
+
name: "netScyIn",
|
|
25
691
|
type: "uint256",
|
|
26
692
|
},
|
|
27
693
|
{
|
|
28
694
|
internalType: "uint256",
|
|
29
|
-
name: "
|
|
695
|
+
name: "minLpOut",
|
|
30
696
|
type: "uint256",
|
|
31
697
|
},
|
|
32
698
|
{
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
699
|
+
components: [
|
|
700
|
+
{
|
|
701
|
+
internalType: "uint256",
|
|
702
|
+
name: "guessMin",
|
|
703
|
+
type: "uint256",
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
internalType: "uint256",
|
|
707
|
+
name: "guessMax",
|
|
708
|
+
type: "uint256",
|
|
709
|
+
},
|
|
710
|
+
{
|
|
711
|
+
internalType: "uint256",
|
|
712
|
+
name: "guessOffchain",
|
|
713
|
+
type: "uint256",
|
|
714
|
+
},
|
|
715
|
+
{
|
|
716
|
+
internalType: "uint256",
|
|
717
|
+
name: "maxIteration",
|
|
718
|
+
type: "uint256",
|
|
719
|
+
},
|
|
720
|
+
{
|
|
721
|
+
internalType: "uint256",
|
|
722
|
+
name: "eps",
|
|
723
|
+
type: "uint256",
|
|
724
|
+
},
|
|
725
|
+
],
|
|
726
|
+
internalType: "struct ApproxParams",
|
|
727
|
+
name: "guessPtReceivedFromScy",
|
|
728
|
+
type: "tuple",
|
|
36
729
|
},
|
|
37
730
|
],
|
|
38
|
-
name: "
|
|
731
|
+
name: "addLiquiditySingleScy",
|
|
39
732
|
outputs: [
|
|
40
733
|
{
|
|
41
734
|
internalType: "uint256",
|
|
42
735
|
name: "netLpOut",
|
|
43
736
|
type: "uint256",
|
|
44
737
|
},
|
|
738
|
+
],
|
|
739
|
+
stateMutability: "nonpayable",
|
|
740
|
+
type: "function",
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
inputs: [
|
|
744
|
+
{
|
|
745
|
+
internalType: "address",
|
|
746
|
+
name: "receiver",
|
|
747
|
+
type: "address",
|
|
748
|
+
},
|
|
749
|
+
{
|
|
750
|
+
internalType: "address",
|
|
751
|
+
name: "YT",
|
|
752
|
+
type: "address",
|
|
753
|
+
},
|
|
45
754
|
{
|
|
46
755
|
internalType: "uint256",
|
|
47
|
-
name: "
|
|
756
|
+
name: "netRawTokenIn",
|
|
48
757
|
type: "uint256",
|
|
49
758
|
},
|
|
50
759
|
{
|
|
51
760
|
internalType: "uint256",
|
|
52
|
-
name: "
|
|
761
|
+
name: "minPyOut",
|
|
762
|
+
type: "uint256",
|
|
763
|
+
},
|
|
764
|
+
{
|
|
765
|
+
internalType: "address[]",
|
|
766
|
+
name: "path",
|
|
767
|
+
type: "address[]",
|
|
768
|
+
},
|
|
769
|
+
],
|
|
770
|
+
name: "mintPyFromRawToken",
|
|
771
|
+
outputs: [
|
|
772
|
+
{
|
|
773
|
+
internalType: "uint256",
|
|
774
|
+
name: "netPyOut",
|
|
53
775
|
type: "uint256",
|
|
54
776
|
},
|
|
55
777
|
],
|
|
@@ -70,7 +792,7 @@ const _abi = [
|
|
|
70
792
|
},
|
|
71
793
|
{
|
|
72
794
|
internalType: "uint256",
|
|
73
|
-
name: "
|
|
795
|
+
name: "netScyIn",
|
|
74
796
|
type: "uint256",
|
|
75
797
|
},
|
|
76
798
|
{
|
|
@@ -78,13 +800,8 @@ const _abi = [
|
|
|
78
800
|
name: "minPyOut",
|
|
79
801
|
type: "uint256",
|
|
80
802
|
},
|
|
81
|
-
{
|
|
82
|
-
internalType: "address[]",
|
|
83
|
-
name: "path",
|
|
84
|
-
type: "address[]",
|
|
85
|
-
},
|
|
86
803
|
],
|
|
87
|
-
name: "
|
|
804
|
+
name: "mintPyFromScy",
|
|
88
805
|
outputs: [
|
|
89
806
|
{
|
|
90
807
|
internalType: "uint256",
|
|
@@ -222,6 +939,40 @@ const _abi = [
|
|
|
222
939
|
stateMutability: "nonpayable",
|
|
223
940
|
type: "function",
|
|
224
941
|
},
|
|
942
|
+
{
|
|
943
|
+
inputs: [
|
|
944
|
+
{
|
|
945
|
+
internalType: "address",
|
|
946
|
+
name: "receiver",
|
|
947
|
+
type: "address",
|
|
948
|
+
},
|
|
949
|
+
{
|
|
950
|
+
internalType: "address",
|
|
951
|
+
name: "YT",
|
|
952
|
+
type: "address",
|
|
953
|
+
},
|
|
954
|
+
{
|
|
955
|
+
internalType: "uint256",
|
|
956
|
+
name: "netPyIn",
|
|
957
|
+
type: "uint256",
|
|
958
|
+
},
|
|
959
|
+
{
|
|
960
|
+
internalType: "uint256",
|
|
961
|
+
name: "minScyOut",
|
|
962
|
+
type: "uint256",
|
|
963
|
+
},
|
|
964
|
+
],
|
|
965
|
+
name: "redeemPyToScy",
|
|
966
|
+
outputs: [
|
|
967
|
+
{
|
|
968
|
+
internalType: "uint256",
|
|
969
|
+
name: "netScyOut",
|
|
970
|
+
type: "uint256",
|
|
971
|
+
},
|
|
972
|
+
],
|
|
973
|
+
stateMutability: "nonpayable",
|
|
974
|
+
type: "function",
|
|
975
|
+
},
|
|
225
976
|
{
|
|
226
977
|
inputs: [
|
|
227
978
|
{
|
|
@@ -305,6 +1056,145 @@ const _abi = [
|
|
|
305
1056
|
stateMutability: "nonpayable",
|
|
306
1057
|
type: "function",
|
|
307
1058
|
},
|
|
1059
|
+
{
|
|
1060
|
+
inputs: [
|
|
1061
|
+
{
|
|
1062
|
+
internalType: "address",
|
|
1063
|
+
name: "receiver",
|
|
1064
|
+
type: "address",
|
|
1065
|
+
},
|
|
1066
|
+
{
|
|
1067
|
+
internalType: "address",
|
|
1068
|
+
name: "market",
|
|
1069
|
+
type: "address",
|
|
1070
|
+
},
|
|
1071
|
+
{
|
|
1072
|
+
internalType: "uint256",
|
|
1073
|
+
name: "lpToRemove",
|
|
1074
|
+
type: "uint256",
|
|
1075
|
+
},
|
|
1076
|
+
{
|
|
1077
|
+
internalType: "uint256",
|
|
1078
|
+
name: "minPtOut",
|
|
1079
|
+
type: "uint256",
|
|
1080
|
+
},
|
|
1081
|
+
{
|
|
1082
|
+
components: [
|
|
1083
|
+
{
|
|
1084
|
+
internalType: "uint256",
|
|
1085
|
+
name: "guessMin",
|
|
1086
|
+
type: "uint256",
|
|
1087
|
+
},
|
|
1088
|
+
{
|
|
1089
|
+
internalType: "uint256",
|
|
1090
|
+
name: "guessMax",
|
|
1091
|
+
type: "uint256",
|
|
1092
|
+
},
|
|
1093
|
+
{
|
|
1094
|
+
internalType: "uint256",
|
|
1095
|
+
name: "guessOffchain",
|
|
1096
|
+
type: "uint256",
|
|
1097
|
+
},
|
|
1098
|
+
{
|
|
1099
|
+
internalType: "uint256",
|
|
1100
|
+
name: "maxIteration",
|
|
1101
|
+
type: "uint256",
|
|
1102
|
+
},
|
|
1103
|
+
{
|
|
1104
|
+
internalType: "uint256",
|
|
1105
|
+
name: "eps",
|
|
1106
|
+
type: "uint256",
|
|
1107
|
+
},
|
|
1108
|
+
],
|
|
1109
|
+
internalType: "struct ApproxParams",
|
|
1110
|
+
name: "guessPtOut",
|
|
1111
|
+
type: "tuple",
|
|
1112
|
+
},
|
|
1113
|
+
],
|
|
1114
|
+
name: "removeLiquiditySinglePt",
|
|
1115
|
+
outputs: [
|
|
1116
|
+
{
|
|
1117
|
+
internalType: "uint256",
|
|
1118
|
+
name: "netPtOut",
|
|
1119
|
+
type: "uint256",
|
|
1120
|
+
},
|
|
1121
|
+
],
|
|
1122
|
+
stateMutability: "nonpayable",
|
|
1123
|
+
type: "function",
|
|
1124
|
+
},
|
|
1125
|
+
{
|
|
1126
|
+
inputs: [
|
|
1127
|
+
{
|
|
1128
|
+
internalType: "address",
|
|
1129
|
+
name: "receiver",
|
|
1130
|
+
type: "address",
|
|
1131
|
+
},
|
|
1132
|
+
{
|
|
1133
|
+
internalType: "address",
|
|
1134
|
+
name: "market",
|
|
1135
|
+
type: "address",
|
|
1136
|
+
},
|
|
1137
|
+
{
|
|
1138
|
+
internalType: "uint256",
|
|
1139
|
+
name: "lpToRemove",
|
|
1140
|
+
type: "uint256",
|
|
1141
|
+
},
|
|
1142
|
+
{
|
|
1143
|
+
internalType: "uint256",
|
|
1144
|
+
name: "minRawTokenOut",
|
|
1145
|
+
type: "uint256",
|
|
1146
|
+
},
|
|
1147
|
+
{
|
|
1148
|
+
internalType: "address[]",
|
|
1149
|
+
name: "path",
|
|
1150
|
+
type: "address[]",
|
|
1151
|
+
},
|
|
1152
|
+
],
|
|
1153
|
+
name: "removeLiquiditySingleRawToken",
|
|
1154
|
+
outputs: [
|
|
1155
|
+
{
|
|
1156
|
+
internalType: "uint256",
|
|
1157
|
+
name: "netRawTokenOut",
|
|
1158
|
+
type: "uint256",
|
|
1159
|
+
},
|
|
1160
|
+
],
|
|
1161
|
+
stateMutability: "nonpayable",
|
|
1162
|
+
type: "function",
|
|
1163
|
+
},
|
|
1164
|
+
{
|
|
1165
|
+
inputs: [
|
|
1166
|
+
{
|
|
1167
|
+
internalType: "address",
|
|
1168
|
+
name: "receiver",
|
|
1169
|
+
type: "address",
|
|
1170
|
+
},
|
|
1171
|
+
{
|
|
1172
|
+
internalType: "address",
|
|
1173
|
+
name: "market",
|
|
1174
|
+
type: "address",
|
|
1175
|
+
},
|
|
1176
|
+
{
|
|
1177
|
+
internalType: "uint256",
|
|
1178
|
+
name: "lpToRemove",
|
|
1179
|
+
type: "uint256",
|
|
1180
|
+
},
|
|
1181
|
+
{
|
|
1182
|
+
internalType: "uint256",
|
|
1183
|
+
name: "minScyOut",
|
|
1184
|
+
type: "uint256",
|
|
1185
|
+
},
|
|
1186
|
+
],
|
|
1187
|
+
name: "removeLiquiditySingleScy",
|
|
1188
|
+
outputs: [
|
|
1189
|
+
{
|
|
1190
|
+
internalType: "uint256",
|
|
1191
|
+
name: "netScyOut",
|
|
1192
|
+
type: "uint256",
|
|
1193
|
+
},
|
|
1194
|
+
],
|
|
1195
|
+
stateMutability: "nonpayable",
|
|
1196
|
+
type: "function",
|
|
1197
|
+
},
|
|
308
1198
|
{
|
|
309
1199
|
inputs: [
|
|
310
1200
|
{
|