@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
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
Signer,
|
|
14
14
|
utils,
|
|
15
15
|
} from "ethers";
|
|
16
|
-
import { FunctionFragment, Result } from "@ethersproject/abi";
|
|
16
|
+
import { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
|
|
17
17
|
import { Listener, Provider } from "@ethersproject/providers";
|
|
18
18
|
import type {
|
|
19
19
|
TypedEventFilter,
|
|
@@ -48,12 +48,20 @@ export interface IPAllActionInterface extends utils.Interface {
|
|
|
48
48
|
contractName: "IPAllAction";
|
|
49
49
|
functions: {
|
|
50
50
|
"addLiquidity(address,address,uint256,uint256,uint256)": FunctionFragment;
|
|
51
|
+
"addLiquiditySinglePt(address,address,uint256,uint256,(uint256,uint256,uint256,uint256,uint256))": FunctionFragment;
|
|
52
|
+
"addLiquiditySingleRawToken(address,address,uint256,uint256,address[],(uint256,uint256,uint256,uint256,uint256))": FunctionFragment;
|
|
53
|
+
"addLiquiditySingleScy(address,address,uint256,uint256,(uint256,uint256,uint256,uint256,uint256))": FunctionFragment;
|
|
51
54
|
"mintPyFromRawToken(address,address,uint256,uint256,address[])": FunctionFragment;
|
|
55
|
+
"mintPyFromScy(address,address,uint256,uint256)": FunctionFragment;
|
|
52
56
|
"mintScyFromRawToken(address,address,uint256,uint256,address[])": FunctionFragment;
|
|
53
57
|
"redeemDueInterestAndRewards(address,address[],address[],address[])": FunctionFragment;
|
|
54
58
|
"redeemPyToRawToken(address,address,uint256,uint256,address[])": FunctionFragment;
|
|
59
|
+
"redeemPyToScy(address,address,uint256,uint256)": FunctionFragment;
|
|
55
60
|
"redeemScyToRawToken(address,address,uint256,uint256,address[])": FunctionFragment;
|
|
56
61
|
"removeLiquidity(address,address,uint256,uint256,uint256)": FunctionFragment;
|
|
62
|
+
"removeLiquiditySinglePt(address,address,uint256,uint256,(uint256,uint256,uint256,uint256,uint256))": FunctionFragment;
|
|
63
|
+
"removeLiquiditySingleRawToken(address,address,uint256,uint256,address[])": FunctionFragment;
|
|
64
|
+
"removeLiquiditySingleScy(address,address,uint256,uint256)": FunctionFragment;
|
|
57
65
|
"swapExactPtForRawToken(address,address,uint256,uint256,address[])": FunctionFragment;
|
|
58
66
|
"swapExactPtForScy(address,address,uint256,uint256)": FunctionFragment;
|
|
59
67
|
"swapExactRawTokenForPt(address,address,uint256,uint256,address[],(uint256,uint256,uint256,uint256,uint256))": FunctionFragment;
|
|
@@ -72,10 +80,33 @@ export interface IPAllActionInterface extends utils.Interface {
|
|
|
72
80
|
functionFragment: "addLiquidity",
|
|
73
81
|
values: [string, string, BigNumberish, BigNumberish, BigNumberish]
|
|
74
82
|
): string;
|
|
83
|
+
encodeFunctionData(
|
|
84
|
+
functionFragment: "addLiquiditySinglePt",
|
|
85
|
+
values: [string, string, BigNumberish, BigNumberish, ApproxParamsStruct]
|
|
86
|
+
): string;
|
|
87
|
+
encodeFunctionData(
|
|
88
|
+
functionFragment: "addLiquiditySingleRawToken",
|
|
89
|
+
values: [
|
|
90
|
+
string,
|
|
91
|
+
string,
|
|
92
|
+
BigNumberish,
|
|
93
|
+
BigNumberish,
|
|
94
|
+
string[],
|
|
95
|
+
ApproxParamsStruct
|
|
96
|
+
]
|
|
97
|
+
): string;
|
|
98
|
+
encodeFunctionData(
|
|
99
|
+
functionFragment: "addLiquiditySingleScy",
|
|
100
|
+
values: [string, string, BigNumberish, BigNumberish, ApproxParamsStruct]
|
|
101
|
+
): string;
|
|
75
102
|
encodeFunctionData(
|
|
76
103
|
functionFragment: "mintPyFromRawToken",
|
|
77
104
|
values: [string, string, BigNumberish, BigNumberish, string[]]
|
|
78
105
|
): string;
|
|
106
|
+
encodeFunctionData(
|
|
107
|
+
functionFragment: "mintPyFromScy",
|
|
108
|
+
values: [string, string, BigNumberish, BigNumberish]
|
|
109
|
+
): string;
|
|
79
110
|
encodeFunctionData(
|
|
80
111
|
functionFragment: "mintScyFromRawToken",
|
|
81
112
|
values: [string, string, BigNumberish, BigNumberish, string[]]
|
|
@@ -88,6 +119,10 @@ export interface IPAllActionInterface extends utils.Interface {
|
|
|
88
119
|
functionFragment: "redeemPyToRawToken",
|
|
89
120
|
values: [string, string, BigNumberish, BigNumberish, string[]]
|
|
90
121
|
): string;
|
|
122
|
+
encodeFunctionData(
|
|
123
|
+
functionFragment: "redeemPyToScy",
|
|
124
|
+
values: [string, string, BigNumberish, BigNumberish]
|
|
125
|
+
): string;
|
|
91
126
|
encodeFunctionData(
|
|
92
127
|
functionFragment: "redeemScyToRawToken",
|
|
93
128
|
values: [string, string, BigNumberish, BigNumberish, string[]]
|
|
@@ -96,6 +131,18 @@ export interface IPAllActionInterface extends utils.Interface {
|
|
|
96
131
|
functionFragment: "removeLiquidity",
|
|
97
132
|
values: [string, string, BigNumberish, BigNumberish, BigNumberish]
|
|
98
133
|
): string;
|
|
134
|
+
encodeFunctionData(
|
|
135
|
+
functionFragment: "removeLiquiditySinglePt",
|
|
136
|
+
values: [string, string, BigNumberish, BigNumberish, ApproxParamsStruct]
|
|
137
|
+
): string;
|
|
138
|
+
encodeFunctionData(
|
|
139
|
+
functionFragment: "removeLiquiditySingleRawToken",
|
|
140
|
+
values: [string, string, BigNumberish, BigNumberish, string[]]
|
|
141
|
+
): string;
|
|
142
|
+
encodeFunctionData(
|
|
143
|
+
functionFragment: "removeLiquiditySingleScy",
|
|
144
|
+
values: [string, string, BigNumberish, BigNumberish]
|
|
145
|
+
): string;
|
|
99
146
|
encodeFunctionData(
|
|
100
147
|
functionFragment: "swapExactPtForRawToken",
|
|
101
148
|
values: [string, string, BigNumberish, BigNumberish, string[]]
|
|
@@ -163,10 +210,26 @@ export interface IPAllActionInterface extends utils.Interface {
|
|
|
163
210
|
functionFragment: "addLiquidity",
|
|
164
211
|
data: BytesLike
|
|
165
212
|
): Result;
|
|
213
|
+
decodeFunctionResult(
|
|
214
|
+
functionFragment: "addLiquiditySinglePt",
|
|
215
|
+
data: BytesLike
|
|
216
|
+
): Result;
|
|
217
|
+
decodeFunctionResult(
|
|
218
|
+
functionFragment: "addLiquiditySingleRawToken",
|
|
219
|
+
data: BytesLike
|
|
220
|
+
): Result;
|
|
221
|
+
decodeFunctionResult(
|
|
222
|
+
functionFragment: "addLiquiditySingleScy",
|
|
223
|
+
data: BytesLike
|
|
224
|
+
): Result;
|
|
166
225
|
decodeFunctionResult(
|
|
167
226
|
functionFragment: "mintPyFromRawToken",
|
|
168
227
|
data: BytesLike
|
|
169
228
|
): Result;
|
|
229
|
+
decodeFunctionResult(
|
|
230
|
+
functionFragment: "mintPyFromScy",
|
|
231
|
+
data: BytesLike
|
|
232
|
+
): Result;
|
|
170
233
|
decodeFunctionResult(
|
|
171
234
|
functionFragment: "mintScyFromRawToken",
|
|
172
235
|
data: BytesLike
|
|
@@ -179,6 +242,10 @@ export interface IPAllActionInterface extends utils.Interface {
|
|
|
179
242
|
functionFragment: "redeemPyToRawToken",
|
|
180
243
|
data: BytesLike
|
|
181
244
|
): Result;
|
|
245
|
+
decodeFunctionResult(
|
|
246
|
+
functionFragment: "redeemPyToScy",
|
|
247
|
+
data: BytesLike
|
|
248
|
+
): Result;
|
|
182
249
|
decodeFunctionResult(
|
|
183
250
|
functionFragment: "redeemScyToRawToken",
|
|
184
251
|
data: BytesLike
|
|
@@ -187,6 +254,18 @@ export interface IPAllActionInterface extends utils.Interface {
|
|
|
187
254
|
functionFragment: "removeLiquidity",
|
|
188
255
|
data: BytesLike
|
|
189
256
|
): Result;
|
|
257
|
+
decodeFunctionResult(
|
|
258
|
+
functionFragment: "removeLiquiditySinglePt",
|
|
259
|
+
data: BytesLike
|
|
260
|
+
): Result;
|
|
261
|
+
decodeFunctionResult(
|
|
262
|
+
functionFragment: "removeLiquiditySingleRawToken",
|
|
263
|
+
data: BytesLike
|
|
264
|
+
): Result;
|
|
265
|
+
decodeFunctionResult(
|
|
266
|
+
functionFragment: "removeLiquiditySingleScy",
|
|
267
|
+
data: BytesLike
|
|
268
|
+
): Result;
|
|
190
269
|
decodeFunctionResult(
|
|
191
270
|
functionFragment: "swapExactPtForRawToken",
|
|
192
271
|
data: BytesLike
|
|
@@ -236,9 +315,203 @@ export interface IPAllActionInterface extends utils.Interface {
|
|
|
236
315
|
data: BytesLike
|
|
237
316
|
): Result;
|
|
238
317
|
|
|
239
|
-
events: {
|
|
318
|
+
events: {
|
|
319
|
+
"AddLiquidity(address,address,address,uint256,uint256,uint256)": EventFragment;
|
|
320
|
+
"MintPyFromRawToken(address,address,address,address,uint256,uint256)": EventFragment;
|
|
321
|
+
"MintPyFromScy(address,address,address,uint256,uint256)": EventFragment;
|
|
322
|
+
"MintScyFromRawToken(address,address,address,address,uint256,uint256)": EventFragment;
|
|
323
|
+
"RedeemPyToRawToken(address,address,address,uint256,address,uint256)": EventFragment;
|
|
324
|
+
"RedeemPyToScy(address,address,address,uint256,uint256)": EventFragment;
|
|
325
|
+
"RedeemScyToRawToken(address,address,address,uint256,address,uint256)": EventFragment;
|
|
326
|
+
"RemoveLiquidity(address,address,address,uint256,uint256,uint256)": EventFragment;
|
|
327
|
+
"SwapPtAndRawToken(address,address,address,address,int256,int256)": EventFragment;
|
|
328
|
+
"SwapPtAndScy(address,address,address,int256,int256)": EventFragment;
|
|
329
|
+
"SwapYTAndRawToken(address,address,address,int256,int256)": EventFragment;
|
|
330
|
+
"SwapYTAndSCY(address,address,int256,int256)": EventFragment;
|
|
331
|
+
};
|
|
332
|
+
|
|
333
|
+
getEvent(nameOrSignatureOrTopic: "AddLiquidity"): EventFragment;
|
|
334
|
+
getEvent(nameOrSignatureOrTopic: "MintPyFromRawToken"): EventFragment;
|
|
335
|
+
getEvent(nameOrSignatureOrTopic: "MintPyFromScy"): EventFragment;
|
|
336
|
+
getEvent(nameOrSignatureOrTopic: "MintScyFromRawToken"): EventFragment;
|
|
337
|
+
getEvent(nameOrSignatureOrTopic: "RedeemPyToRawToken"): EventFragment;
|
|
338
|
+
getEvent(nameOrSignatureOrTopic: "RedeemPyToScy"): EventFragment;
|
|
339
|
+
getEvent(nameOrSignatureOrTopic: "RedeemScyToRawToken"): EventFragment;
|
|
340
|
+
getEvent(nameOrSignatureOrTopic: "RemoveLiquidity"): EventFragment;
|
|
341
|
+
getEvent(nameOrSignatureOrTopic: "SwapPtAndRawToken"): EventFragment;
|
|
342
|
+
getEvent(nameOrSignatureOrTopic: "SwapPtAndScy"): EventFragment;
|
|
343
|
+
getEvent(nameOrSignatureOrTopic: "SwapYTAndRawToken"): EventFragment;
|
|
344
|
+
getEvent(nameOrSignatureOrTopic: "SwapYTAndSCY"): EventFragment;
|
|
240
345
|
}
|
|
241
346
|
|
|
347
|
+
export type AddLiquidityEvent = TypedEvent<
|
|
348
|
+
[string, string, string, BigNumber, BigNumber, BigNumber],
|
|
349
|
+
{
|
|
350
|
+
caller: string;
|
|
351
|
+
market: string;
|
|
352
|
+
receiver: string;
|
|
353
|
+
scyUsed: BigNumber;
|
|
354
|
+
ptUsed: BigNumber;
|
|
355
|
+
lpOut: BigNumber;
|
|
356
|
+
}
|
|
357
|
+
>;
|
|
358
|
+
|
|
359
|
+
export type AddLiquidityEventFilter = TypedEventFilter<AddLiquidityEvent>;
|
|
360
|
+
|
|
361
|
+
export type MintPyFromRawTokenEvent = TypedEvent<
|
|
362
|
+
[string, string, string, string, BigNumber, BigNumber],
|
|
363
|
+
{
|
|
364
|
+
caller: string;
|
|
365
|
+
receiver: string;
|
|
366
|
+
YT: string;
|
|
367
|
+
rawTokenIn: string;
|
|
368
|
+
netRawTokenIn: BigNumber;
|
|
369
|
+
netPyOut: BigNumber;
|
|
370
|
+
}
|
|
371
|
+
>;
|
|
372
|
+
|
|
373
|
+
export type MintPyFromRawTokenEventFilter =
|
|
374
|
+
TypedEventFilter<MintPyFromRawTokenEvent>;
|
|
375
|
+
|
|
376
|
+
export type MintPyFromScyEvent = TypedEvent<
|
|
377
|
+
[string, string, string, BigNumber, BigNumber],
|
|
378
|
+
{
|
|
379
|
+
caller: string;
|
|
380
|
+
receiver: string;
|
|
381
|
+
YT: string;
|
|
382
|
+
netScyIn: BigNumber;
|
|
383
|
+
netPyOut: BigNumber;
|
|
384
|
+
}
|
|
385
|
+
>;
|
|
386
|
+
|
|
387
|
+
export type MintPyFromScyEventFilter = TypedEventFilter<MintPyFromScyEvent>;
|
|
388
|
+
|
|
389
|
+
export type MintScyFromRawTokenEvent = TypedEvent<
|
|
390
|
+
[string, string, string, string, BigNumber, BigNumber],
|
|
391
|
+
{
|
|
392
|
+
caller: string;
|
|
393
|
+
receiver: string;
|
|
394
|
+
SCY: string;
|
|
395
|
+
rawTokenIn: string;
|
|
396
|
+
netRawTokenIn: BigNumber;
|
|
397
|
+
netScyOut: BigNumber;
|
|
398
|
+
}
|
|
399
|
+
>;
|
|
400
|
+
|
|
401
|
+
export type MintScyFromRawTokenEventFilter =
|
|
402
|
+
TypedEventFilter<MintScyFromRawTokenEvent>;
|
|
403
|
+
|
|
404
|
+
export type RedeemPyToRawTokenEvent = TypedEvent<
|
|
405
|
+
[string, string, string, BigNumber, string, BigNumber],
|
|
406
|
+
{
|
|
407
|
+
caller: string;
|
|
408
|
+
receiver: string;
|
|
409
|
+
YT: string;
|
|
410
|
+
netPyIn: BigNumber;
|
|
411
|
+
rawTokenOut: string;
|
|
412
|
+
netRawTokenOut: BigNumber;
|
|
413
|
+
}
|
|
414
|
+
>;
|
|
415
|
+
|
|
416
|
+
export type RedeemPyToRawTokenEventFilter =
|
|
417
|
+
TypedEventFilter<RedeemPyToRawTokenEvent>;
|
|
418
|
+
|
|
419
|
+
export type RedeemPyToScyEvent = TypedEvent<
|
|
420
|
+
[string, string, string, BigNumber, BigNumber],
|
|
421
|
+
{
|
|
422
|
+
caller: string;
|
|
423
|
+
receiver: string;
|
|
424
|
+
YT: string;
|
|
425
|
+
netPyIn: BigNumber;
|
|
426
|
+
netScyOut: BigNumber;
|
|
427
|
+
}
|
|
428
|
+
>;
|
|
429
|
+
|
|
430
|
+
export type RedeemPyToScyEventFilter = TypedEventFilter<RedeemPyToScyEvent>;
|
|
431
|
+
|
|
432
|
+
export type RedeemScyToRawTokenEvent = TypedEvent<
|
|
433
|
+
[string, string, string, BigNumber, string, BigNumber],
|
|
434
|
+
{
|
|
435
|
+
caller: string;
|
|
436
|
+
receiver: string;
|
|
437
|
+
SCY: string;
|
|
438
|
+
netScyIn: BigNumber;
|
|
439
|
+
rawTokenOut: string;
|
|
440
|
+
netRawTokenOut: BigNumber;
|
|
441
|
+
}
|
|
442
|
+
>;
|
|
443
|
+
|
|
444
|
+
export type RedeemScyToRawTokenEventFilter =
|
|
445
|
+
TypedEventFilter<RedeemScyToRawTokenEvent>;
|
|
446
|
+
|
|
447
|
+
export type RemoveLiquidityEvent = TypedEvent<
|
|
448
|
+
[string, string, string, BigNumber, BigNumber, BigNumber],
|
|
449
|
+
{
|
|
450
|
+
caller: string;
|
|
451
|
+
market: string;
|
|
452
|
+
receiver: string;
|
|
453
|
+
lpIn: BigNumber;
|
|
454
|
+
amountPTOut: BigNumber;
|
|
455
|
+
amountSCYOut: BigNumber;
|
|
456
|
+
}
|
|
457
|
+
>;
|
|
458
|
+
|
|
459
|
+
export type RemoveLiquidityEventFilter = TypedEventFilter<RemoveLiquidityEvent>;
|
|
460
|
+
|
|
461
|
+
export type SwapPtAndRawTokenEvent = TypedEvent<
|
|
462
|
+
[string, string, string, string, BigNumber, BigNumber],
|
|
463
|
+
{
|
|
464
|
+
caller: string;
|
|
465
|
+
market: string;
|
|
466
|
+
rawToken: string;
|
|
467
|
+
receiver: string;
|
|
468
|
+
amountPtToAccount: BigNumber;
|
|
469
|
+
amountRawTokenToAccount: BigNumber;
|
|
470
|
+
}
|
|
471
|
+
>;
|
|
472
|
+
|
|
473
|
+
export type SwapPtAndRawTokenEventFilter =
|
|
474
|
+
TypedEventFilter<SwapPtAndRawTokenEvent>;
|
|
475
|
+
|
|
476
|
+
export type SwapPtAndScyEvent = TypedEvent<
|
|
477
|
+
[string, string, string, BigNumber, BigNumber],
|
|
478
|
+
{
|
|
479
|
+
caller: string;
|
|
480
|
+
market: string;
|
|
481
|
+
receiver: string;
|
|
482
|
+
amountPtToAccount: BigNumber;
|
|
483
|
+
amountScyToAccount: BigNumber;
|
|
484
|
+
}
|
|
485
|
+
>;
|
|
486
|
+
|
|
487
|
+
export type SwapPtAndScyEventFilter = TypedEventFilter<SwapPtAndScyEvent>;
|
|
488
|
+
|
|
489
|
+
export type SwapYTAndRawTokenEvent = TypedEvent<
|
|
490
|
+
[string, string, string, BigNumber, BigNumber],
|
|
491
|
+
{
|
|
492
|
+
user: string;
|
|
493
|
+
market: string;
|
|
494
|
+
rawToken: string;
|
|
495
|
+
ytToAccount: BigNumber;
|
|
496
|
+
rawTokenToAccount: BigNumber;
|
|
497
|
+
}
|
|
498
|
+
>;
|
|
499
|
+
|
|
500
|
+
export type SwapYTAndRawTokenEventFilter =
|
|
501
|
+
TypedEventFilter<SwapYTAndRawTokenEvent>;
|
|
502
|
+
|
|
503
|
+
export type SwapYTAndSCYEvent = TypedEvent<
|
|
504
|
+
[string, string, BigNumber, BigNumber],
|
|
505
|
+
{
|
|
506
|
+
user: string;
|
|
507
|
+
market: string;
|
|
508
|
+
ytToAccount: BigNumber;
|
|
509
|
+
scyToAccount: BigNumber;
|
|
510
|
+
}
|
|
511
|
+
>;
|
|
512
|
+
|
|
513
|
+
export type SwapYTAndSCYEventFilter = TypedEventFilter<SwapYTAndSCYEvent>;
|
|
514
|
+
|
|
242
515
|
export interface IPAllAction extends BaseContract {
|
|
243
516
|
contractName: "IPAllAction";
|
|
244
517
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
@@ -276,6 +549,34 @@ export interface IPAllAction extends BaseContract {
|
|
|
276
549
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
277
550
|
): Promise<ContractTransaction>;
|
|
278
551
|
|
|
552
|
+
addLiquiditySinglePt(
|
|
553
|
+
receiver: string,
|
|
554
|
+
market: string,
|
|
555
|
+
netPtIn: BigNumberish,
|
|
556
|
+
minLpOut: BigNumberish,
|
|
557
|
+
guessPtSwapToScy: ApproxParamsStruct,
|
|
558
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
559
|
+
): Promise<ContractTransaction>;
|
|
560
|
+
|
|
561
|
+
addLiquiditySingleRawToken(
|
|
562
|
+
receiver: string,
|
|
563
|
+
market: string,
|
|
564
|
+
netRawTokenIn: BigNumberish,
|
|
565
|
+
minLpOut: BigNumberish,
|
|
566
|
+
path: string[],
|
|
567
|
+
guessPtReceivedFromScy: ApproxParamsStruct,
|
|
568
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
569
|
+
): Promise<ContractTransaction>;
|
|
570
|
+
|
|
571
|
+
addLiquiditySingleScy(
|
|
572
|
+
receiver: string,
|
|
573
|
+
market: string,
|
|
574
|
+
netScyIn: BigNumberish,
|
|
575
|
+
minLpOut: BigNumberish,
|
|
576
|
+
guessPtReceivedFromScy: ApproxParamsStruct,
|
|
577
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
578
|
+
): Promise<ContractTransaction>;
|
|
579
|
+
|
|
279
580
|
mintPyFromRawToken(
|
|
280
581
|
receiver: string,
|
|
281
582
|
YT: string,
|
|
@@ -285,6 +586,14 @@ export interface IPAllAction extends BaseContract {
|
|
|
285
586
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
286
587
|
): Promise<ContractTransaction>;
|
|
287
588
|
|
|
589
|
+
mintPyFromScy(
|
|
590
|
+
receiver: string,
|
|
591
|
+
YT: string,
|
|
592
|
+
netScyIn: BigNumberish,
|
|
593
|
+
minPyOut: BigNumberish,
|
|
594
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
595
|
+
): Promise<ContractTransaction>;
|
|
596
|
+
|
|
288
597
|
mintScyFromRawToken(
|
|
289
598
|
receiver: string,
|
|
290
599
|
SCY: string,
|
|
@@ -311,6 +620,14 @@ export interface IPAllAction extends BaseContract {
|
|
|
311
620
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
312
621
|
): Promise<ContractTransaction>;
|
|
313
622
|
|
|
623
|
+
redeemPyToScy(
|
|
624
|
+
receiver: string,
|
|
625
|
+
YT: string,
|
|
626
|
+
netPyIn: BigNumberish,
|
|
627
|
+
minScyOut: BigNumberish,
|
|
628
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
629
|
+
): Promise<ContractTransaction>;
|
|
630
|
+
|
|
314
631
|
redeemScyToRawToken(
|
|
315
632
|
receiver: string,
|
|
316
633
|
SCY: string,
|
|
@@ -329,6 +646,32 @@ export interface IPAllAction extends BaseContract {
|
|
|
329
646
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
330
647
|
): Promise<ContractTransaction>;
|
|
331
648
|
|
|
649
|
+
removeLiquiditySinglePt(
|
|
650
|
+
receiver: string,
|
|
651
|
+
market: string,
|
|
652
|
+
lpToRemove: BigNumberish,
|
|
653
|
+
minPtOut: BigNumberish,
|
|
654
|
+
guessPtOut: ApproxParamsStruct,
|
|
655
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
656
|
+
): Promise<ContractTransaction>;
|
|
657
|
+
|
|
658
|
+
removeLiquiditySingleRawToken(
|
|
659
|
+
receiver: string,
|
|
660
|
+
market: string,
|
|
661
|
+
lpToRemove: BigNumberish,
|
|
662
|
+
minRawTokenOut: BigNumberish,
|
|
663
|
+
path: string[],
|
|
664
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
665
|
+
): Promise<ContractTransaction>;
|
|
666
|
+
|
|
667
|
+
removeLiquiditySingleScy(
|
|
668
|
+
receiver: string,
|
|
669
|
+
market: string,
|
|
670
|
+
lpToRemove: BigNumberish,
|
|
671
|
+
minScyOut: BigNumberish,
|
|
672
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
673
|
+
): Promise<ContractTransaction>;
|
|
674
|
+
|
|
332
675
|
swapExactPtForRawToken(
|
|
333
676
|
receiver: string,
|
|
334
677
|
market: string,
|
|
@@ -445,6 +788,34 @@ export interface IPAllAction extends BaseContract {
|
|
|
445
788
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
446
789
|
): Promise<ContractTransaction>;
|
|
447
790
|
|
|
791
|
+
addLiquiditySinglePt(
|
|
792
|
+
receiver: string,
|
|
793
|
+
market: string,
|
|
794
|
+
netPtIn: BigNumberish,
|
|
795
|
+
minLpOut: BigNumberish,
|
|
796
|
+
guessPtSwapToScy: ApproxParamsStruct,
|
|
797
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
798
|
+
): Promise<ContractTransaction>;
|
|
799
|
+
|
|
800
|
+
addLiquiditySingleRawToken(
|
|
801
|
+
receiver: string,
|
|
802
|
+
market: string,
|
|
803
|
+
netRawTokenIn: BigNumberish,
|
|
804
|
+
minLpOut: BigNumberish,
|
|
805
|
+
path: string[],
|
|
806
|
+
guessPtReceivedFromScy: ApproxParamsStruct,
|
|
807
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
808
|
+
): Promise<ContractTransaction>;
|
|
809
|
+
|
|
810
|
+
addLiquiditySingleScy(
|
|
811
|
+
receiver: string,
|
|
812
|
+
market: string,
|
|
813
|
+
netScyIn: BigNumberish,
|
|
814
|
+
minLpOut: BigNumberish,
|
|
815
|
+
guessPtReceivedFromScy: ApproxParamsStruct,
|
|
816
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
817
|
+
): Promise<ContractTransaction>;
|
|
818
|
+
|
|
448
819
|
mintPyFromRawToken(
|
|
449
820
|
receiver: string,
|
|
450
821
|
YT: string,
|
|
@@ -454,6 +825,14 @@ export interface IPAllAction extends BaseContract {
|
|
|
454
825
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
455
826
|
): Promise<ContractTransaction>;
|
|
456
827
|
|
|
828
|
+
mintPyFromScy(
|
|
829
|
+
receiver: string,
|
|
830
|
+
YT: string,
|
|
831
|
+
netScyIn: BigNumberish,
|
|
832
|
+
minPyOut: BigNumberish,
|
|
833
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
834
|
+
): Promise<ContractTransaction>;
|
|
835
|
+
|
|
457
836
|
mintScyFromRawToken(
|
|
458
837
|
receiver: string,
|
|
459
838
|
SCY: string,
|
|
@@ -480,6 +859,14 @@ export interface IPAllAction extends BaseContract {
|
|
|
480
859
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
481
860
|
): Promise<ContractTransaction>;
|
|
482
861
|
|
|
862
|
+
redeemPyToScy(
|
|
863
|
+
receiver: string,
|
|
864
|
+
YT: string,
|
|
865
|
+
netPyIn: BigNumberish,
|
|
866
|
+
minScyOut: BigNumberish,
|
|
867
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
868
|
+
): Promise<ContractTransaction>;
|
|
869
|
+
|
|
483
870
|
redeemScyToRawToken(
|
|
484
871
|
receiver: string,
|
|
485
872
|
SCY: string,
|
|
@@ -498,6 +885,32 @@ export interface IPAllAction extends BaseContract {
|
|
|
498
885
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
499
886
|
): Promise<ContractTransaction>;
|
|
500
887
|
|
|
888
|
+
removeLiquiditySinglePt(
|
|
889
|
+
receiver: string,
|
|
890
|
+
market: string,
|
|
891
|
+
lpToRemove: BigNumberish,
|
|
892
|
+
minPtOut: BigNumberish,
|
|
893
|
+
guessPtOut: ApproxParamsStruct,
|
|
894
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
895
|
+
): Promise<ContractTransaction>;
|
|
896
|
+
|
|
897
|
+
removeLiquiditySingleRawToken(
|
|
898
|
+
receiver: string,
|
|
899
|
+
market: string,
|
|
900
|
+
lpToRemove: BigNumberish,
|
|
901
|
+
minRawTokenOut: BigNumberish,
|
|
902
|
+
path: string[],
|
|
903
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
904
|
+
): Promise<ContractTransaction>;
|
|
905
|
+
|
|
906
|
+
removeLiquiditySingleScy(
|
|
907
|
+
receiver: string,
|
|
908
|
+
market: string,
|
|
909
|
+
lpToRemove: BigNumberish,
|
|
910
|
+
minScyOut: BigNumberish,
|
|
911
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
912
|
+
): Promise<ContractTransaction>;
|
|
913
|
+
|
|
501
914
|
swapExactPtForRawToken(
|
|
502
915
|
receiver: string,
|
|
503
916
|
market: string,
|
|
@@ -620,6 +1033,34 @@ export interface IPAllAction extends BaseContract {
|
|
|
620
1033
|
}
|
|
621
1034
|
>;
|
|
622
1035
|
|
|
1036
|
+
addLiquiditySinglePt(
|
|
1037
|
+
receiver: string,
|
|
1038
|
+
market: string,
|
|
1039
|
+
netPtIn: BigNumberish,
|
|
1040
|
+
minLpOut: BigNumberish,
|
|
1041
|
+
guessPtSwapToScy: ApproxParamsStruct,
|
|
1042
|
+
overrides?: CallOverrides
|
|
1043
|
+
): Promise<BigNumber>;
|
|
1044
|
+
|
|
1045
|
+
addLiquiditySingleRawToken(
|
|
1046
|
+
receiver: string,
|
|
1047
|
+
market: string,
|
|
1048
|
+
netRawTokenIn: BigNumberish,
|
|
1049
|
+
minLpOut: BigNumberish,
|
|
1050
|
+
path: string[],
|
|
1051
|
+
guessPtReceivedFromScy: ApproxParamsStruct,
|
|
1052
|
+
overrides?: CallOverrides
|
|
1053
|
+
): Promise<BigNumber>;
|
|
1054
|
+
|
|
1055
|
+
addLiquiditySingleScy(
|
|
1056
|
+
receiver: string,
|
|
1057
|
+
market: string,
|
|
1058
|
+
netScyIn: BigNumberish,
|
|
1059
|
+
minLpOut: BigNumberish,
|
|
1060
|
+
guessPtReceivedFromScy: ApproxParamsStruct,
|
|
1061
|
+
overrides?: CallOverrides
|
|
1062
|
+
): Promise<BigNumber>;
|
|
1063
|
+
|
|
623
1064
|
mintPyFromRawToken(
|
|
624
1065
|
receiver: string,
|
|
625
1066
|
YT: string,
|
|
@@ -629,6 +1070,14 @@ export interface IPAllAction extends BaseContract {
|
|
|
629
1070
|
overrides?: CallOverrides
|
|
630
1071
|
): Promise<BigNumber>;
|
|
631
1072
|
|
|
1073
|
+
mintPyFromScy(
|
|
1074
|
+
receiver: string,
|
|
1075
|
+
YT: string,
|
|
1076
|
+
netScyIn: BigNumberish,
|
|
1077
|
+
minPyOut: BigNumberish,
|
|
1078
|
+
overrides?: CallOverrides
|
|
1079
|
+
): Promise<BigNumber>;
|
|
1080
|
+
|
|
632
1081
|
mintScyFromRawToken(
|
|
633
1082
|
receiver: string,
|
|
634
1083
|
SCY: string,
|
|
@@ -662,6 +1111,14 @@ export interface IPAllAction extends BaseContract {
|
|
|
662
1111
|
overrides?: CallOverrides
|
|
663
1112
|
): Promise<BigNumber>;
|
|
664
1113
|
|
|
1114
|
+
redeemPyToScy(
|
|
1115
|
+
receiver: string,
|
|
1116
|
+
YT: string,
|
|
1117
|
+
netPyIn: BigNumberish,
|
|
1118
|
+
minScyOut: BigNumberish,
|
|
1119
|
+
overrides?: CallOverrides
|
|
1120
|
+
): Promise<BigNumber>;
|
|
1121
|
+
|
|
665
1122
|
redeemScyToRawToken(
|
|
666
1123
|
receiver: string,
|
|
667
1124
|
SCY: string,
|
|
@@ -682,6 +1139,32 @@ export interface IPAllAction extends BaseContract {
|
|
|
682
1139
|
[BigNumber, BigNumber] & { netScyOut: BigNumber; netPtOut: BigNumber }
|
|
683
1140
|
>;
|
|
684
1141
|
|
|
1142
|
+
removeLiquiditySinglePt(
|
|
1143
|
+
receiver: string,
|
|
1144
|
+
market: string,
|
|
1145
|
+
lpToRemove: BigNumberish,
|
|
1146
|
+
minPtOut: BigNumberish,
|
|
1147
|
+
guessPtOut: ApproxParamsStruct,
|
|
1148
|
+
overrides?: CallOverrides
|
|
1149
|
+
): Promise<BigNumber>;
|
|
1150
|
+
|
|
1151
|
+
removeLiquiditySingleRawToken(
|
|
1152
|
+
receiver: string,
|
|
1153
|
+
market: string,
|
|
1154
|
+
lpToRemove: BigNumberish,
|
|
1155
|
+
minRawTokenOut: BigNumberish,
|
|
1156
|
+
path: string[],
|
|
1157
|
+
overrides?: CallOverrides
|
|
1158
|
+
): Promise<BigNumber>;
|
|
1159
|
+
|
|
1160
|
+
removeLiquiditySingleScy(
|
|
1161
|
+
receiver: string,
|
|
1162
|
+
market: string,
|
|
1163
|
+
lpToRemove: BigNumberish,
|
|
1164
|
+
minScyOut: BigNumberish,
|
|
1165
|
+
overrides?: CallOverrides
|
|
1166
|
+
): Promise<BigNumber>;
|
|
1167
|
+
|
|
685
1168
|
swapExactPtForRawToken(
|
|
686
1169
|
receiver: string,
|
|
687
1170
|
market: string,
|
|
@@ -789,7 +1272,199 @@ export interface IPAllAction extends BaseContract {
|
|
|
789
1272
|
): Promise<BigNumber>;
|
|
790
1273
|
};
|
|
791
1274
|
|
|
792
|
-
filters: {
|
|
1275
|
+
filters: {
|
|
1276
|
+
"AddLiquidity(address,address,address,uint256,uint256,uint256)"(
|
|
1277
|
+
caller?: string | null,
|
|
1278
|
+
market?: string | null,
|
|
1279
|
+
receiver?: string | null,
|
|
1280
|
+
scyUsed?: null,
|
|
1281
|
+
ptUsed?: null,
|
|
1282
|
+
lpOut?: null
|
|
1283
|
+
): AddLiquidityEventFilter;
|
|
1284
|
+
AddLiquidity(
|
|
1285
|
+
caller?: string | null,
|
|
1286
|
+
market?: string | null,
|
|
1287
|
+
receiver?: string | null,
|
|
1288
|
+
scyUsed?: null,
|
|
1289
|
+
ptUsed?: null,
|
|
1290
|
+
lpOut?: null
|
|
1291
|
+
): AddLiquidityEventFilter;
|
|
1292
|
+
|
|
1293
|
+
"MintPyFromRawToken(address,address,address,address,uint256,uint256)"(
|
|
1294
|
+
caller?: string | null,
|
|
1295
|
+
receiver?: string | null,
|
|
1296
|
+
YT?: string | null,
|
|
1297
|
+
rawTokenIn?: null,
|
|
1298
|
+
netRawTokenIn?: null,
|
|
1299
|
+
netPyOut?: null
|
|
1300
|
+
): MintPyFromRawTokenEventFilter;
|
|
1301
|
+
MintPyFromRawToken(
|
|
1302
|
+
caller?: string | null,
|
|
1303
|
+
receiver?: string | null,
|
|
1304
|
+
YT?: string | null,
|
|
1305
|
+
rawTokenIn?: null,
|
|
1306
|
+
netRawTokenIn?: null,
|
|
1307
|
+
netPyOut?: null
|
|
1308
|
+
): MintPyFromRawTokenEventFilter;
|
|
1309
|
+
|
|
1310
|
+
"MintPyFromScy(address,address,address,uint256,uint256)"(
|
|
1311
|
+
caller?: string | null,
|
|
1312
|
+
receiver?: string | null,
|
|
1313
|
+
YT?: string | null,
|
|
1314
|
+
netScyIn?: null,
|
|
1315
|
+
netPyOut?: null
|
|
1316
|
+
): MintPyFromScyEventFilter;
|
|
1317
|
+
MintPyFromScy(
|
|
1318
|
+
caller?: string | null,
|
|
1319
|
+
receiver?: string | null,
|
|
1320
|
+
YT?: string | null,
|
|
1321
|
+
netScyIn?: null,
|
|
1322
|
+
netPyOut?: null
|
|
1323
|
+
): MintPyFromScyEventFilter;
|
|
1324
|
+
|
|
1325
|
+
"MintScyFromRawToken(address,address,address,address,uint256,uint256)"(
|
|
1326
|
+
caller?: string | null,
|
|
1327
|
+
receiver?: string | null,
|
|
1328
|
+
SCY?: string | null,
|
|
1329
|
+
rawTokenIn?: null,
|
|
1330
|
+
netRawTokenIn?: null,
|
|
1331
|
+
netScyOut?: null
|
|
1332
|
+
): MintScyFromRawTokenEventFilter;
|
|
1333
|
+
MintScyFromRawToken(
|
|
1334
|
+
caller?: string | null,
|
|
1335
|
+
receiver?: string | null,
|
|
1336
|
+
SCY?: string | null,
|
|
1337
|
+
rawTokenIn?: null,
|
|
1338
|
+
netRawTokenIn?: null,
|
|
1339
|
+
netScyOut?: null
|
|
1340
|
+
): MintScyFromRawTokenEventFilter;
|
|
1341
|
+
|
|
1342
|
+
"RedeemPyToRawToken(address,address,address,uint256,address,uint256)"(
|
|
1343
|
+
caller?: string | null,
|
|
1344
|
+
receiver?: string | null,
|
|
1345
|
+
YT?: string | null,
|
|
1346
|
+
netPyIn?: null,
|
|
1347
|
+
rawTokenOut?: null,
|
|
1348
|
+
netRawTokenOut?: null
|
|
1349
|
+
): RedeemPyToRawTokenEventFilter;
|
|
1350
|
+
RedeemPyToRawToken(
|
|
1351
|
+
caller?: string | null,
|
|
1352
|
+
receiver?: string | null,
|
|
1353
|
+
YT?: string | null,
|
|
1354
|
+
netPyIn?: null,
|
|
1355
|
+
rawTokenOut?: null,
|
|
1356
|
+
netRawTokenOut?: null
|
|
1357
|
+
): RedeemPyToRawTokenEventFilter;
|
|
1358
|
+
|
|
1359
|
+
"RedeemPyToScy(address,address,address,uint256,uint256)"(
|
|
1360
|
+
caller?: string | null,
|
|
1361
|
+
receiver?: string | null,
|
|
1362
|
+
YT?: string | null,
|
|
1363
|
+
netPyIn?: null,
|
|
1364
|
+
netScyOut?: null
|
|
1365
|
+
): RedeemPyToScyEventFilter;
|
|
1366
|
+
RedeemPyToScy(
|
|
1367
|
+
caller?: string | null,
|
|
1368
|
+
receiver?: string | null,
|
|
1369
|
+
YT?: string | null,
|
|
1370
|
+
netPyIn?: null,
|
|
1371
|
+
netScyOut?: null
|
|
1372
|
+
): RedeemPyToScyEventFilter;
|
|
1373
|
+
|
|
1374
|
+
"RedeemScyToRawToken(address,address,address,uint256,address,uint256)"(
|
|
1375
|
+
caller?: string | null,
|
|
1376
|
+
receiver?: string | null,
|
|
1377
|
+
SCY?: string | null,
|
|
1378
|
+
netScyIn?: null,
|
|
1379
|
+
rawTokenOut?: null,
|
|
1380
|
+
netRawTokenOut?: null
|
|
1381
|
+
): RedeemScyToRawTokenEventFilter;
|
|
1382
|
+
RedeemScyToRawToken(
|
|
1383
|
+
caller?: string | null,
|
|
1384
|
+
receiver?: string | null,
|
|
1385
|
+
SCY?: string | null,
|
|
1386
|
+
netScyIn?: null,
|
|
1387
|
+
rawTokenOut?: null,
|
|
1388
|
+
netRawTokenOut?: null
|
|
1389
|
+
): RedeemScyToRawTokenEventFilter;
|
|
1390
|
+
|
|
1391
|
+
"RemoveLiquidity(address,address,address,uint256,uint256,uint256)"(
|
|
1392
|
+
caller?: string | null,
|
|
1393
|
+
market?: string | null,
|
|
1394
|
+
receiver?: null,
|
|
1395
|
+
lpIn?: null,
|
|
1396
|
+
amountPTOut?: null,
|
|
1397
|
+
amountSCYOut?: null
|
|
1398
|
+
): RemoveLiquidityEventFilter;
|
|
1399
|
+
RemoveLiquidity(
|
|
1400
|
+
caller?: string | null,
|
|
1401
|
+
market?: string | null,
|
|
1402
|
+
receiver?: null,
|
|
1403
|
+
lpIn?: null,
|
|
1404
|
+
amountPTOut?: null,
|
|
1405
|
+
amountSCYOut?: null
|
|
1406
|
+
): RemoveLiquidityEventFilter;
|
|
1407
|
+
|
|
1408
|
+
"SwapPtAndRawToken(address,address,address,address,int256,int256)"(
|
|
1409
|
+
caller?: string | null,
|
|
1410
|
+
market?: string | null,
|
|
1411
|
+
rawToken?: string | null,
|
|
1412
|
+
receiver?: null,
|
|
1413
|
+
amountPtToAccount?: null,
|
|
1414
|
+
amountRawTokenToAccount?: null
|
|
1415
|
+
): SwapPtAndRawTokenEventFilter;
|
|
1416
|
+
SwapPtAndRawToken(
|
|
1417
|
+
caller?: string | null,
|
|
1418
|
+
market?: string | null,
|
|
1419
|
+
rawToken?: string | null,
|
|
1420
|
+
receiver?: null,
|
|
1421
|
+
amountPtToAccount?: null,
|
|
1422
|
+
amountRawTokenToAccount?: null
|
|
1423
|
+
): SwapPtAndRawTokenEventFilter;
|
|
1424
|
+
|
|
1425
|
+
"SwapPtAndScy(address,address,address,int256,int256)"(
|
|
1426
|
+
caller?: string | null,
|
|
1427
|
+
market?: string | null,
|
|
1428
|
+
receiver?: string | null,
|
|
1429
|
+
amountPtToAccount?: null,
|
|
1430
|
+
amountScyToAccount?: null
|
|
1431
|
+
): SwapPtAndScyEventFilter;
|
|
1432
|
+
SwapPtAndScy(
|
|
1433
|
+
caller?: string | null,
|
|
1434
|
+
market?: string | null,
|
|
1435
|
+
receiver?: string | null,
|
|
1436
|
+
amountPtToAccount?: null,
|
|
1437
|
+
amountScyToAccount?: null
|
|
1438
|
+
): SwapPtAndScyEventFilter;
|
|
1439
|
+
|
|
1440
|
+
"SwapYTAndRawToken(address,address,address,int256,int256)"(
|
|
1441
|
+
user?: string | null,
|
|
1442
|
+
market?: string | null,
|
|
1443
|
+
rawToken?: string | null,
|
|
1444
|
+
ytToAccount?: null,
|
|
1445
|
+
rawTokenToAccount?: null
|
|
1446
|
+
): SwapYTAndRawTokenEventFilter;
|
|
1447
|
+
SwapYTAndRawToken(
|
|
1448
|
+
user?: string | null,
|
|
1449
|
+
market?: string | null,
|
|
1450
|
+
rawToken?: string | null,
|
|
1451
|
+
ytToAccount?: null,
|
|
1452
|
+
rawTokenToAccount?: null
|
|
1453
|
+
): SwapYTAndRawTokenEventFilter;
|
|
1454
|
+
|
|
1455
|
+
"SwapYTAndSCY(address,address,int256,int256)"(
|
|
1456
|
+
user?: string | null,
|
|
1457
|
+
market?: string | null,
|
|
1458
|
+
ytToAccount?: null,
|
|
1459
|
+
scyToAccount?: null
|
|
1460
|
+
): SwapYTAndSCYEventFilter;
|
|
1461
|
+
SwapYTAndSCY(
|
|
1462
|
+
user?: string | null,
|
|
1463
|
+
market?: string | null,
|
|
1464
|
+
ytToAccount?: null,
|
|
1465
|
+
scyToAccount?: null
|
|
1466
|
+
): SwapYTAndSCYEventFilter;
|
|
1467
|
+
};
|
|
793
1468
|
|
|
794
1469
|
estimateGas: {
|
|
795
1470
|
addLiquidity(
|
|
@@ -801,6 +1476,34 @@ export interface IPAllAction extends BaseContract {
|
|
|
801
1476
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
802
1477
|
): Promise<BigNumber>;
|
|
803
1478
|
|
|
1479
|
+
addLiquiditySinglePt(
|
|
1480
|
+
receiver: string,
|
|
1481
|
+
market: string,
|
|
1482
|
+
netPtIn: BigNumberish,
|
|
1483
|
+
minLpOut: BigNumberish,
|
|
1484
|
+
guessPtSwapToScy: ApproxParamsStruct,
|
|
1485
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1486
|
+
): Promise<BigNumber>;
|
|
1487
|
+
|
|
1488
|
+
addLiquiditySingleRawToken(
|
|
1489
|
+
receiver: string,
|
|
1490
|
+
market: string,
|
|
1491
|
+
netRawTokenIn: BigNumberish,
|
|
1492
|
+
minLpOut: BigNumberish,
|
|
1493
|
+
path: string[],
|
|
1494
|
+
guessPtReceivedFromScy: ApproxParamsStruct,
|
|
1495
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1496
|
+
): Promise<BigNumber>;
|
|
1497
|
+
|
|
1498
|
+
addLiquiditySingleScy(
|
|
1499
|
+
receiver: string,
|
|
1500
|
+
market: string,
|
|
1501
|
+
netScyIn: BigNumberish,
|
|
1502
|
+
minLpOut: BigNumberish,
|
|
1503
|
+
guessPtReceivedFromScy: ApproxParamsStruct,
|
|
1504
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1505
|
+
): Promise<BigNumber>;
|
|
1506
|
+
|
|
804
1507
|
mintPyFromRawToken(
|
|
805
1508
|
receiver: string,
|
|
806
1509
|
YT: string,
|
|
@@ -810,6 +1513,14 @@ export interface IPAllAction extends BaseContract {
|
|
|
810
1513
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
811
1514
|
): Promise<BigNumber>;
|
|
812
1515
|
|
|
1516
|
+
mintPyFromScy(
|
|
1517
|
+
receiver: string,
|
|
1518
|
+
YT: string,
|
|
1519
|
+
netScyIn: BigNumberish,
|
|
1520
|
+
minPyOut: BigNumberish,
|
|
1521
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1522
|
+
): Promise<BigNumber>;
|
|
1523
|
+
|
|
813
1524
|
mintScyFromRawToken(
|
|
814
1525
|
receiver: string,
|
|
815
1526
|
SCY: string,
|
|
@@ -836,6 +1547,14 @@ export interface IPAllAction extends BaseContract {
|
|
|
836
1547
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
837
1548
|
): Promise<BigNumber>;
|
|
838
1549
|
|
|
1550
|
+
redeemPyToScy(
|
|
1551
|
+
receiver: string,
|
|
1552
|
+
YT: string,
|
|
1553
|
+
netPyIn: BigNumberish,
|
|
1554
|
+
minScyOut: BigNumberish,
|
|
1555
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1556
|
+
): Promise<BigNumber>;
|
|
1557
|
+
|
|
839
1558
|
redeemScyToRawToken(
|
|
840
1559
|
receiver: string,
|
|
841
1560
|
SCY: string,
|
|
@@ -854,6 +1573,32 @@ export interface IPAllAction extends BaseContract {
|
|
|
854
1573
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
855
1574
|
): Promise<BigNumber>;
|
|
856
1575
|
|
|
1576
|
+
removeLiquiditySinglePt(
|
|
1577
|
+
receiver: string,
|
|
1578
|
+
market: string,
|
|
1579
|
+
lpToRemove: BigNumberish,
|
|
1580
|
+
minPtOut: BigNumberish,
|
|
1581
|
+
guessPtOut: ApproxParamsStruct,
|
|
1582
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1583
|
+
): Promise<BigNumber>;
|
|
1584
|
+
|
|
1585
|
+
removeLiquiditySingleRawToken(
|
|
1586
|
+
receiver: string,
|
|
1587
|
+
market: string,
|
|
1588
|
+
lpToRemove: BigNumberish,
|
|
1589
|
+
minRawTokenOut: BigNumberish,
|
|
1590
|
+
path: string[],
|
|
1591
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1592
|
+
): Promise<BigNumber>;
|
|
1593
|
+
|
|
1594
|
+
removeLiquiditySingleScy(
|
|
1595
|
+
receiver: string,
|
|
1596
|
+
market: string,
|
|
1597
|
+
lpToRemove: BigNumberish,
|
|
1598
|
+
minScyOut: BigNumberish,
|
|
1599
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1600
|
+
): Promise<BigNumber>;
|
|
1601
|
+
|
|
857
1602
|
swapExactPtForRawToken(
|
|
858
1603
|
receiver: string,
|
|
859
1604
|
market: string,
|
|
@@ -971,6 +1716,34 @@ export interface IPAllAction extends BaseContract {
|
|
|
971
1716
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
972
1717
|
): Promise<PopulatedTransaction>;
|
|
973
1718
|
|
|
1719
|
+
addLiquiditySinglePt(
|
|
1720
|
+
receiver: string,
|
|
1721
|
+
market: string,
|
|
1722
|
+
netPtIn: BigNumberish,
|
|
1723
|
+
minLpOut: BigNumberish,
|
|
1724
|
+
guessPtSwapToScy: ApproxParamsStruct,
|
|
1725
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1726
|
+
): Promise<PopulatedTransaction>;
|
|
1727
|
+
|
|
1728
|
+
addLiquiditySingleRawToken(
|
|
1729
|
+
receiver: string,
|
|
1730
|
+
market: string,
|
|
1731
|
+
netRawTokenIn: BigNumberish,
|
|
1732
|
+
minLpOut: BigNumberish,
|
|
1733
|
+
path: string[],
|
|
1734
|
+
guessPtReceivedFromScy: ApproxParamsStruct,
|
|
1735
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1736
|
+
): Promise<PopulatedTransaction>;
|
|
1737
|
+
|
|
1738
|
+
addLiquiditySingleScy(
|
|
1739
|
+
receiver: string,
|
|
1740
|
+
market: string,
|
|
1741
|
+
netScyIn: BigNumberish,
|
|
1742
|
+
minLpOut: BigNumberish,
|
|
1743
|
+
guessPtReceivedFromScy: ApproxParamsStruct,
|
|
1744
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1745
|
+
): Promise<PopulatedTransaction>;
|
|
1746
|
+
|
|
974
1747
|
mintPyFromRawToken(
|
|
975
1748
|
receiver: string,
|
|
976
1749
|
YT: string,
|
|
@@ -980,6 +1753,14 @@ export interface IPAllAction extends BaseContract {
|
|
|
980
1753
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
981
1754
|
): Promise<PopulatedTransaction>;
|
|
982
1755
|
|
|
1756
|
+
mintPyFromScy(
|
|
1757
|
+
receiver: string,
|
|
1758
|
+
YT: string,
|
|
1759
|
+
netScyIn: BigNumberish,
|
|
1760
|
+
minPyOut: BigNumberish,
|
|
1761
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1762
|
+
): Promise<PopulatedTransaction>;
|
|
1763
|
+
|
|
983
1764
|
mintScyFromRawToken(
|
|
984
1765
|
receiver: string,
|
|
985
1766
|
SCY: string,
|
|
@@ -1006,6 +1787,14 @@ export interface IPAllAction extends BaseContract {
|
|
|
1006
1787
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1007
1788
|
): Promise<PopulatedTransaction>;
|
|
1008
1789
|
|
|
1790
|
+
redeemPyToScy(
|
|
1791
|
+
receiver: string,
|
|
1792
|
+
YT: string,
|
|
1793
|
+
netPyIn: BigNumberish,
|
|
1794
|
+
minScyOut: BigNumberish,
|
|
1795
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1796
|
+
): Promise<PopulatedTransaction>;
|
|
1797
|
+
|
|
1009
1798
|
redeemScyToRawToken(
|
|
1010
1799
|
receiver: string,
|
|
1011
1800
|
SCY: string,
|
|
@@ -1024,6 +1813,32 @@ export interface IPAllAction extends BaseContract {
|
|
|
1024
1813
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1025
1814
|
): Promise<PopulatedTransaction>;
|
|
1026
1815
|
|
|
1816
|
+
removeLiquiditySinglePt(
|
|
1817
|
+
receiver: string,
|
|
1818
|
+
market: string,
|
|
1819
|
+
lpToRemove: BigNumberish,
|
|
1820
|
+
minPtOut: BigNumberish,
|
|
1821
|
+
guessPtOut: ApproxParamsStruct,
|
|
1822
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1823
|
+
): Promise<PopulatedTransaction>;
|
|
1824
|
+
|
|
1825
|
+
removeLiquiditySingleRawToken(
|
|
1826
|
+
receiver: string,
|
|
1827
|
+
market: string,
|
|
1828
|
+
lpToRemove: BigNumberish,
|
|
1829
|
+
minRawTokenOut: BigNumberish,
|
|
1830
|
+
path: string[],
|
|
1831
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1832
|
+
): Promise<PopulatedTransaction>;
|
|
1833
|
+
|
|
1834
|
+
removeLiquiditySingleScy(
|
|
1835
|
+
receiver: string,
|
|
1836
|
+
market: string,
|
|
1837
|
+
lpToRemove: BigNumberish,
|
|
1838
|
+
minScyOut: BigNumberish,
|
|
1839
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1840
|
+
): Promise<PopulatedTransaction>;
|
|
1841
|
+
|
|
1027
1842
|
swapExactPtForRawToken(
|
|
1028
1843
|
receiver: string,
|
|
1029
1844
|
market: string,
|