@pendle/core-v2 0.11.2-testnet → 0.11.3-testnet

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (255) hide show
  1. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/PendleAaveV3SCY.sol/PendleAaveV3SCY.dbg.json +1 -1
  2. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/PendleAaveV3SCY.sol/PendleAaveV3SCY.json +2 -2
  3. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/WadRayMath.sol/WadRayMath.dbg.json +1 -1
  4. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiSAvaxSCY.sol/PendleQiSAvaxSCY.dbg.json +1 -1
  5. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiSAvaxSCY.sol/PendleQiSAvaxSCY.json +2 -2
  6. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
  7. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenSCY.sol/PendleQiTokenSCY.dbg.json +1 -1
  8. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenSCY.sol/PendleQiTokenSCY.json +2 -2
  9. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleSAvaxSCY.sol/PendleSAvaxSCY.dbg.json +1 -1
  10. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleSAvaxSCY.sol/PendleSAvaxSCY.json +2 -2
  11. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Euler/PendleEulerSCY.sol/PendleEulerSCY.dbg.json +1 -1
  12. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Euler/PendleEulerSCY.sol/PendleEulerSCY.json +2 -2
  13. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleERC4626SCY.sol/PendleERC4626SCY.dbg.json +1 -1
  14. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleERC4626SCY.sol/PendleERC4626SCY.json +2 -2
  15. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleStargateSCY.sol/PendleStargateSCY.dbg.json +1 -1
  16. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleStargateSCY.sol/PendleStargateSCY.json +2 -2
  17. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleWstEthSCY.sol/PendleWstEthSCY.dbg.json +1 -1
  18. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleWstEthSCY.sol/PendleWstEthSCY.json +2 -2
  19. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleYearnVaultSCY.sol/PendleYearnVaultSCY.dbg.json +1 -1
  20. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleYearnVaultSCY.sol/PendleYearnVaultSCY.json +2 -2
  21. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/TraderJoe/PendleSJoeSCY.sol/PendleSJoeSCY.dbg.json +1 -1
  22. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/TraderJoe/PendleSJoeSCY.sol/PendleSJoeSCY.json +2 -2
  23. package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBase.sol/SCYBase.dbg.json +1 -1
  24. package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBaseWithRewards.sol/SCYBaseWithRewards.dbg.json +1 -1
  25. package/build/artifacts/contracts/core/LiquidityMining/CelerAbstracts/CelerReceiverUpg.sol/CelerReceiverUpg.dbg.json +1 -1
  26. package/build/artifacts/contracts/core/LiquidityMining/CelerAbstracts/CelerSenderUpg.sol/CelerSenderUpg.dbg.json +1 -1
  27. package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
  28. package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
  29. package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +2 -2
  30. package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
  31. package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.json +2 -2
  32. package/build/artifacts/contracts/core/LiquidityMining/PendleGauge.sol/PendleGauge.dbg.json +1 -1
  33. package/build/artifacts/contracts/core/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
  34. package/build/artifacts/contracts/core/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +14 -62
  35. package/build/artifacts/contracts/core/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
  36. package/build/artifacts/contracts/core/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.json +12 -192
  37. package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
  38. package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +8 -51
  39. package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
  40. package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +2 -2
  41. package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
  42. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
  43. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.json +2 -2
  44. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
  45. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.json +2 -2
  46. package/build/artifacts/contracts/core/PendleERC20.sol/PendleERC20.dbg.json +1 -1
  47. package/build/artifacts/contracts/core/PendleRouter.sol/PendleRouter.dbg.json +1 -1
  48. package/build/artifacts/contracts/core/PendleRouter.sol/PendleRouter.json +2 -2
  49. package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
  50. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
  51. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
  52. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +2 -2
  53. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
  54. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +2 -2
  55. package/build/artifacts/contracts/core/actions/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
  56. package/build/artifacts/contracts/core/actions/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +2 -2
  57. package/build/artifacts/contracts/core/actions/ActionCallback.sol/ActionCallback.dbg.json +1 -1
  58. package/build/artifacts/contracts/core/actions/ActionCallback.sol/ActionCallback.json +2 -2
  59. package/build/artifacts/contracts/core/actions/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
  60. package/build/artifacts/contracts/core/actions/ActionMintRedeem.sol/ActionMintRedeem.json +173 -2
  61. package/build/artifacts/contracts/core/actions/ActionMisc.sol/ActionMisc.dbg.json +1 -1
  62. package/build/artifacts/contracts/core/actions/ActionMisc.sol/ActionMisc.json +2 -2
  63. package/build/artifacts/contracts/core/actions/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
  64. package/build/artifacts/contracts/core/actions/ActionSwapPT.sol/ActionSwapPT.json +2 -2
  65. package/build/artifacts/contracts/core/actions/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
  66. package/build/artifacts/contracts/core/actions/ActionSwapYT.sol/ActionSwapYT.json +2 -2
  67. package/build/artifacts/contracts/core/actions/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +1 -1
  68. package/build/artifacts/contracts/core/actions/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
  69. package/build/artifacts/contracts/interfaces/IAToken.sol/IAToken.dbg.json +1 -1
  70. package/build/artifacts/contracts/interfaces/IAavePool.sol/IAavePool.dbg.json +1 -1
  71. package/build/artifacts/contracts/interfaces/IAaveRewardsController.sol/IAaveRewardsController.dbg.json +1 -1
  72. package/build/artifacts/contracts/interfaces/IBenQiComptroller.sol/IBenQiComptroller.dbg.json +1 -1
  73. package/build/artifacts/contracts/interfaces/IBenQiInterestRateModel.sol/IBenQiInterestRateModel.dbg.json +1 -1
  74. package/build/artifacts/contracts/interfaces/ICelerMessageBus.sol/ICelerMessageBus.dbg.json +1 -1
  75. package/build/artifacts/contracts/interfaces/ICelerMessageReceiverApp.sol/ICelerMessageReceiverApp.dbg.json +1 -1
  76. package/build/artifacts/contracts/interfaces/IERC4626.sol/IERC4626.dbg.json +1 -1
  77. package/build/artifacts/contracts/interfaces/IEulerEToken.sol/IEulerEToken.dbg.json +1 -1
  78. package/build/artifacts/contracts/interfaces/IEulerMarkets.sol/IEulerMarkets.dbg.json +1 -1
  79. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
  80. package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
  81. package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.json +171 -0
  82. package/build/artifacts/contracts/interfaces/IPActionMisc.sol/IPActionMisc.dbg.json +1 -1
  83. package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
  84. package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
  85. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
  86. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.json +171 -0
  87. package/build/artifacts/contracts/interfaces/IPGauge.sol/IPGauge.dbg.json +1 -1
  88. package/build/artifacts/contracts/interfaces/IPGauge.sol/IPGauge.json +19 -0
  89. package/build/artifacts/contracts/interfaces/IPGaugeController.sol/IPGaugeController.dbg.json +1 -1
  90. package/build/artifacts/contracts/interfaces/IPGaugeControllerMainchain.sol/IPGaugeControllerMainchain.dbg.json +1 -1
  91. package/build/artifacts/contracts/interfaces/IPInterestManagerYT.sol/IPInterestManagerYT.dbg.json +1 -1
  92. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
  93. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.json +19 -0
  94. package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.dbg.json +1 -1
  95. package/build/artifacts/contracts/interfaces/IPMarketSwapCallback.sol/IPMarketSwapCallback.dbg.json +1 -1
  96. package/build/artifacts/contracts/interfaces/IPPrincipalToken.sol/IPPrincipalToken.dbg.json +1 -1
  97. package/build/artifacts/contracts/interfaces/IPVeToken.sol/IPVeToken.dbg.json +1 -1
  98. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
  99. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.json +0 -124
  100. package/build/artifacts/contracts/interfaces/IPVotingEscrow.sol/IPVotingEscrow.dbg.json +1 -1
  101. package/build/artifacts/contracts/interfaces/IPVotingEscrow.sol/IPVotingEscrow.json +0 -86
  102. package/build/artifacts/contracts/interfaces/IPYieldContractFactory.sol/IPYieldContractFactory.dbg.json +1 -1
  103. package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.dbg.json +1 -1
  104. package/build/artifacts/contracts/interfaces/IQiAvax.sol/IQiAvax.dbg.json +1 -1
  105. package/build/artifacts/contracts/interfaces/IQiErc20.sol/IQiErc20.dbg.json +1 -1
  106. package/build/artifacts/contracts/interfaces/IQiToken.sol/IQiToken.dbg.json +1 -1
  107. package/build/artifacts/contracts/interfaces/IRewardManager.sol/IRewardManager.dbg.json +1 -1
  108. package/build/artifacts/contracts/interfaces/ISAvax.sol/ISAvax.dbg.json +1 -1
  109. package/build/artifacts/contracts/interfaces/ISJoe.sol/ISJoe.dbg.json +1 -1
  110. package/build/artifacts/contracts/interfaces/IStETH.sol/IStETH.dbg.json +1 -1
  111. package/build/artifacts/contracts/interfaces/IStargateLPStaking.sol/IStargateLPStaking.dbg.json +1 -1
  112. package/build/artifacts/contracts/interfaces/IStargatePool.sol/IStargatePool.dbg.json +1 -1
  113. package/build/artifacts/contracts/interfaces/IStargateRouter.sol/IStargateRouter.dbg.json +1 -1
  114. package/build/artifacts/contracts/interfaces/ISuperComposableYield.sol/ISuperComposableYield.dbg.json +1 -1
  115. package/build/artifacts/contracts/interfaces/IWAvax.sol/IWAvax.dbg.json +1 -1
  116. package/build/artifacts/contracts/interfaces/IWETH.sol/IWETH.dbg.json +1 -1
  117. package/build/artifacts/contracts/interfaces/IWstETH.sol/IWstETH.dbg.json +1 -1
  118. package/build/artifacts/contracts/interfaces/IYearnVault.sol/IYearnVault.dbg.json +1 -1
  119. package/build/artifacts/contracts/libraries/OracleLib.sol/OracleLib.dbg.json +1 -1
  120. package/build/artifacts/contracts/libraries/RewardManager.sol/RewardManager.dbg.json +1 -1
  121. package/build/artifacts/contracts/libraries/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
  122. package/build/artifacts/contracts/libraries/SCY/SCYUtils.sol/SCYUtils.dbg.json +1 -1
  123. package/build/artifacts/contracts/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
  124. package/build/artifacts/contracts/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
  125. package/build/artifacts/contracts/libraries/VeHistoryLib.sol/Checkpoints.json +2 -2
  126. package/build/artifacts/contracts/libraries/helpers/ArrayLib.sol/ArrayLib.dbg.json +1 -1
  127. package/build/artifacts/contracts/libraries/helpers/ExpiryUtilsLib.sol/ExpiryUtils.dbg.json +1 -1
  128. package/build/artifacts/contracts/libraries/helpers/MiniHelpers.sol/MiniHelpers.dbg.json +1 -1
  129. package/build/artifacts/contracts/libraries/helpers/PYIndex.sol/PYIndexLib.dbg.json +1 -1
  130. package/build/artifacts/contracts/libraries/helpers/SSTORE2Deployer.sol/SSTORE2Deployer.dbg.json +1 -1
  131. package/build/artifacts/contracts/libraries/helpers/TokenHelper.sol/TokenHelper.dbg.json +1 -1
  132. package/build/artifacts/contracts/libraries/kyberswap/KyberSwapHelper.sol/KyberSwapHelper.dbg.json +1 -1
  133. package/build/artifacts/contracts/libraries/math/LogExpMath.sol/LogExpMath.dbg.json +1 -1
  134. package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
  135. package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
  136. package/build/artifacts/contracts/libraries/math/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
  137. package/build/artifacts/contracts/libraries/math/Math.sol/Math.dbg.json +1 -1
  138. package/build/artifacts/contracts/libraries/math/WeekMath.sol/WeekMath.dbg.json +1 -1
  139. package/build/artifacts/contracts/libraries/math/WeekMath.sol/WeekMath.json +2 -2
  140. package/build/artifacts/contracts/libraries/solmate/SSTORE2.sol/SSTORE2.dbg.json +1 -1
  141. package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.dbg.json +1 -1
  142. package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.json +2 -2
  143. package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.dbg.json +1 -1
  144. package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.json +2 -2
  145. package/build/artifacts/contracts/periphery/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeable.dbg.json +1 -1
  146. package/build/artifacts/contracts/periphery/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeableData.dbg.json +1 -1
  147. package/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol +1 -1
  148. package/contracts/core/LiquidityMining/PendleGauge.sol +1 -1
  149. package/contracts/core/LiquidityMining/VotingController/PendleVotingControllerUpg.sol +1 -2
  150. package/contracts/core/Market/PendleMarketFactory.sol +11 -16
  151. package/contracts/core/PendleRouter.sol +1 -3
  152. package/contracts/core/YieldContracts/PendlePrincipalToken.sol +1 -1
  153. package/contracts/core/YieldContracts/PendleYieldContractFactory.sol +5 -5
  154. package/contracts/core/actions/ActionMintRedeem.sol +141 -0
  155. package/contracts/core/actions/base/ActionBaseMintRedeem.sol +0 -1
  156. package/contracts/interfaces/IPActionMintRedeem.sol +43 -0
  157. package/contracts/interfaces/IPGaugeController.sol +1 -1
  158. package/contracts/interfaces/IPMarketFactory.sol +1 -1
  159. package/contracts/interfaces/ISJoe.sol +3 -6
  160. package/contracts/libraries/helpers/PYIndex.sol +9 -0
  161. package/contracts/libraries/helpers/TokenHelper.sol +33 -24
  162. package/contracts/libraries/kyberswap/AggregationRouterHelper.sol +308 -0
  163. package/contracts/libraries/kyberswap/IMultihopRouter.sol +139 -0
  164. package/contracts/libraries/kyberswap/KyberSwapHelper.sol +7 -1
  165. package/contracts/libraries/math/MarketMathCore.sol +3 -1
  166. package/contracts/offchain-helpers/RouterStatic.sol +5 -5
  167. package/contracts/offchain-helpers/SSTORE2DeployerContract.sol +21 -0
  168. package/contracts/periphery/BoringOwnableUpgradeable.sol +2 -2
  169. package/deployments/43113-core.json +1 -1
  170. package/package.json +4 -5
  171. package/typechain-types/ActionMintRedeem.ts +172 -0
  172. package/typechain-types/AggregationRouterHelper.ts +108 -0
  173. package/typechain-types/ERC1967Upgrade.ts +97 -0
  174. package/typechain-types/EpochResultManager.ts +261 -0
  175. package/typechain-types/FeeDistributorVePendle.ts +3 -224
  176. package/typechain-types/IBeacon.ts +87 -0
  177. package/typechain-types/IBoringOwnableUpgradeable.ts +114 -0
  178. package/typechain-types/IERC1822Proxiable.ts +87 -0
  179. package/typechain-types/IMultihopRouter.ts +209 -0
  180. package/typechain-types/IPActionMintRedeem.ts +172 -0
  181. package/typechain-types/IPAllAction.ts +172 -0
  182. package/typechain-types/IPFeeDistributor.ts +24 -81
  183. package/typechain-types/IPFeeDistributorFactory.ts +187 -0
  184. package/typechain-types/IPGauge.ts +25 -0
  185. package/typechain-types/IPMarket.ts +25 -0
  186. package/typechain-types/IPVotingController.ts +7 -205
  187. package/typechain-types/IPVotingEscrow.ts +0 -117
  188. package/typechain-types/PendleFeeDistributor.ts +483 -0
  189. package/typechain-types/PendleFeeDistributorFactory.ts +466 -0
  190. package/typechain-types/PendleVotingControllerUpg.ts +24 -73
  191. package/typechain-types/SSTORE2DeployerContract.ts +242 -0
  192. package/typechain-types/VotingControllerStorageUpg.ts +27 -207
  193. package/typechain-types/VotingEscrowPendleMainchain.ts +13 -57
  194. package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +1 -1
  195. package/typechain-types/factories/ActionCallback__factory.ts +1 -1
  196. package/typechain-types/factories/ActionMintRedeem__factory.ts +172 -1
  197. package/typechain-types/factories/ActionMisc__factory.ts +1 -1
  198. package/typechain-types/factories/ActionSwapPT__factory.ts +1 -1
  199. package/typechain-types/factories/ActionSwapYT__factory.ts +1 -1
  200. package/typechain-types/factories/AggregationRouterHelper__factory.ts +92 -0
  201. package/typechain-types/factories/ERC1967Upgrade__factory.ts +71 -0
  202. package/typechain-types/factories/EpochResultManager__factory.ts +146 -0
  203. package/typechain-types/factories/FeeDistributorVePendle__factory.ts +1 -154
  204. package/typechain-types/factories/IBeacon__factory.ts +36 -0
  205. package/typechain-types/factories/IBoringOwnableUpgradeable__factory.ts +53 -0
  206. package/typechain-types/factories/IERC1822Proxiable__factory.ts +39 -0
  207. package/typechain-types/factories/IMultihopRouter__factory.ts +151 -0
  208. package/typechain-types/factories/IPActionMintRedeem__factory.ts +171 -0
  209. package/typechain-types/factories/IPAllAction__factory.ts +171 -0
  210. package/typechain-types/factories/IPFeeDistributorFactory__factory.ts +95 -0
  211. package/typechain-types/factories/IPFeeDistributor__factory.ts +8 -42
  212. package/typechain-types/factories/IPGauge__factory.ts +19 -0
  213. package/typechain-types/factories/IPMarket__factory.ts +19 -0
  214. package/typechain-types/factories/IPVotingController__factory.ts +0 -124
  215. package/typechain-types/factories/IPVotingEscrow__factory.ts +0 -86
  216. package/typechain-types/factories/MarketMathStatic__factory.ts +1 -1
  217. package/typechain-types/factories/PendleAaveV3SCY__factory.ts +1 -1
  218. package/typechain-types/factories/PendleERC4626SCY__factory.ts +1 -1
  219. package/typechain-types/factories/PendleEulerSCY__factory.ts +1 -1
  220. package/typechain-types/factories/PendleFeeDistributorFactory__factory.ts +355 -0
  221. package/typechain-types/factories/PendleFeeDistributor__factory.ts +390 -0
  222. package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +1 -1
  223. package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +1 -1
  224. package/typechain-types/factories/PendleMarketFactory__factory.ts +1 -1
  225. package/typechain-types/factories/PendleMarket__factory.ts +1 -1
  226. package/typechain-types/factories/PendleQiSAvaxSCY__factory.ts +1 -1
  227. package/typechain-types/factories/PendleQiTokenSCY__factory.ts +1 -1
  228. package/typechain-types/factories/PendleRouter__factory.ts +1 -1
  229. package/typechain-types/factories/PendleSAvaxSCY__factory.ts +1 -1
  230. package/typechain-types/factories/PendleSJoeSCY__factory.ts +1 -1
  231. package/typechain-types/factories/PendleStargateSCY__factory.ts +1 -1
  232. package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +13 -61
  233. package/typechain-types/factories/PendleWstEthSCY__factory.ts +1 -1
  234. package/typechain-types/factories/PendleYearnVaultSCY__factory.ts +1 -1
  235. package/typechain-types/factories/PendleYieldContractFactory__factory.ts +1 -1
  236. package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
  237. package/typechain-types/factories/RouterStatic__factory.ts +1 -1
  238. package/typechain-types/factories/SSTORE2DeployerContract__factory.ts +191 -0
  239. package/typechain-types/factories/VotingControllerStorageUpg__factory.ts +12 -192
  240. package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +7 -50
  241. package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +1 -1
  242. package/typechain-types/hardhat.d.ts +36 -54
  243. package/typechain-types/index.ts +6 -12
  244. package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/FeeDistributorVePendle.sol/FeeDistributorVePendle.dbg.json +0 -4
  245. package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/FeeDistributorVePendle.sol/FeeDistributorVePendle.json +0 -188
  246. package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/PendleFeeDistributorAbstract.sol/PendleFeeDistributorAbstract.dbg.json +0 -4
  247. package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/PendleFeeDistributorAbstract.sol/PendleFeeDistributorAbstract.json +0 -164
  248. package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/PendleFeeDistributorVoting.sol/PendleFeeDistributorVoting.dbg.json +0 -4
  249. package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/PendleFeeDistributorVoting.sol/PendleFeeDistributorVoting.json +0 -206
  250. package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/PendleFeeDistributorVotingFactory.sol/PendleFeeDistributorVotingFactory.dbg.json +0 -4
  251. package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/PendleFeeDistributorVotingFactory.sol/PendleFeeDistributorVotingFactory.json +0 -149
  252. package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.dbg.json +0 -4
  253. package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.json +0 -151
  254. package/contracts/periphery/PendleGovernanceManager.sol +0 -38
  255. package/contracts/periphery/PermissionsV2Upg.sol +0 -29
@@ -0,0 +1,151 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import { Provider } from "@ethersproject/providers";
7
+ import type {
8
+ IMultihopRouter,
9
+ IMultihopRouterInterface,
10
+ } from "../IMultihopRouter";
11
+
12
+ const _abi = [
13
+ {
14
+ anonymous: false,
15
+ inputs: [
16
+ {
17
+ indexed: false,
18
+ internalType: "address",
19
+ name: "pair",
20
+ type: "address",
21
+ },
22
+ {
23
+ indexed: false,
24
+ internalType: "uint256",
25
+ name: "amountOut",
26
+ type: "uint256",
27
+ },
28
+ {
29
+ indexed: false,
30
+ internalType: "address",
31
+ name: "output",
32
+ type: "address",
33
+ },
34
+ ],
35
+ name: "Exchange",
36
+ type: "event",
37
+ },
38
+ {
39
+ inputs: [],
40
+ name: "WETH",
41
+ outputs: [
42
+ {
43
+ internalType: "address",
44
+ name: "",
45
+ type: "address",
46
+ },
47
+ ],
48
+ stateMutability: "view",
49
+ type: "function",
50
+ },
51
+ {
52
+ inputs: [],
53
+ name: "factory",
54
+ outputs: [
55
+ {
56
+ internalType: "address",
57
+ name: "",
58
+ type: "address",
59
+ },
60
+ ],
61
+ stateMutability: "view",
62
+ type: "function",
63
+ },
64
+ {
65
+ inputs: [],
66
+ name: "formula",
67
+ outputs: [
68
+ {
69
+ internalType: "address",
70
+ name: "",
71
+ type: "address",
72
+ },
73
+ ],
74
+ stateMutability: "view",
75
+ type: "function",
76
+ },
77
+ {
78
+ inputs: [
79
+ {
80
+ components: [
81
+ {
82
+ internalType: "bytes",
83
+ name: "data",
84
+ type: "bytes",
85
+ },
86
+ {
87
+ internalType: "uint16",
88
+ name: "dexOption",
89
+ type: "uint16",
90
+ },
91
+ ],
92
+ internalType: "struct IMultihopRouter.Swap[][]",
93
+ name: "swapSequences",
94
+ type: "tuple[][]",
95
+ },
96
+ {
97
+ internalType: "address",
98
+ name: "tokenIn",
99
+ type: "address",
100
+ },
101
+ {
102
+ internalType: "address",
103
+ name: "tokenOut",
104
+ type: "address",
105
+ },
106
+ {
107
+ internalType: "uint256",
108
+ name: "minTotalAmountOut",
109
+ type: "uint256",
110
+ },
111
+ {
112
+ internalType: "address",
113
+ name: "to",
114
+ type: "address",
115
+ },
116
+ {
117
+ internalType: "uint256",
118
+ name: "deadline",
119
+ type: "uint256",
120
+ },
121
+ {
122
+ internalType: "bytes",
123
+ name: "destTokenFeeData",
124
+ type: "bytes",
125
+ },
126
+ ],
127
+ name: "multihopBatchSwapExactIn",
128
+ outputs: [
129
+ {
130
+ internalType: "uint256",
131
+ name: "totalAmountOut",
132
+ type: "uint256",
133
+ },
134
+ ],
135
+ stateMutability: "payable",
136
+ type: "function",
137
+ },
138
+ ];
139
+
140
+ export class IMultihopRouter__factory {
141
+ static readonly abi = _abi;
142
+ static createInterface(): IMultihopRouterInterface {
143
+ return new utils.Interface(_abi) as IMultihopRouterInterface;
144
+ }
145
+ static connect(
146
+ address: string,
147
+ signerOrProvider: Signer | Provider
148
+ ): IMultihopRouter {
149
+ return new Contract(address, _abi, signerOrProvider) as IMultihopRouter;
150
+ }
151
+ }
@@ -133,6 +133,104 @@ const _abi = [
133
133
  name: "MintScyFromToken",
134
134
  type: "event",
135
135
  },
136
+ {
137
+ anonymous: false,
138
+ inputs: [
139
+ {
140
+ indexed: true,
141
+ internalType: "address",
142
+ name: "user",
143
+ type: "address",
144
+ },
145
+ {
146
+ indexed: false,
147
+ internalType: "address[]",
148
+ name: "scys",
149
+ type: "address[]",
150
+ },
151
+ {
152
+ indexed: false,
153
+ internalType: "address[]",
154
+ name: "yts",
155
+ type: "address[]",
156
+ },
157
+ {
158
+ indexed: false,
159
+ internalType: "address[]",
160
+ name: "markets",
161
+ type: "address[]",
162
+ },
163
+ {
164
+ indexed: false,
165
+ internalType: "uint256[][]",
166
+ name: "scyRewards",
167
+ type: "uint256[][]",
168
+ },
169
+ {
170
+ indexed: false,
171
+ internalType: "uint256[]",
172
+ name: "ytInterests",
173
+ type: "uint256[]",
174
+ },
175
+ {
176
+ indexed: false,
177
+ internalType: "uint256[][]",
178
+ name: "ytRewards",
179
+ type: "uint256[][]",
180
+ },
181
+ {
182
+ indexed: false,
183
+ internalType: "uint256[][]",
184
+ name: "marketRewards",
185
+ type: "uint256[][]",
186
+ },
187
+ ],
188
+ name: "RedeemDueInterestAndRewards",
189
+ type: "event",
190
+ },
191
+ {
192
+ anonymous: false,
193
+ inputs: [
194
+ {
195
+ indexed: true,
196
+ internalType: "address",
197
+ name: "user",
198
+ type: "address",
199
+ },
200
+ {
201
+ indexed: false,
202
+ internalType: "address[]",
203
+ name: "scys",
204
+ type: "address[]",
205
+ },
206
+ {
207
+ indexed: false,
208
+ internalType: "address[]",
209
+ name: "yts",
210
+ type: "address[]",
211
+ },
212
+ {
213
+ indexed: false,
214
+ internalType: "address[]",
215
+ name: "markets",
216
+ type: "address[]",
217
+ },
218
+ {
219
+ indexed: true,
220
+ internalType: "address",
221
+ name: "tokenOut",
222
+ type: "address",
223
+ },
224
+ {
225
+ indexed: false,
226
+ internalType: "uint256",
227
+ name: "netTokenOut",
228
+ type: "uint256",
229
+ },
230
+ ],
231
+ name: "RedeemDueInterestAndRewardsThenSwapAll",
232
+ type: "event",
233
+ },
136
234
  {
137
235
  anonymous: false,
138
236
  inputs: [
@@ -451,6 +549,79 @@ const _abi = [
451
549
  stateMutability: "nonpayable",
452
550
  type: "function",
453
551
  },
552
+ {
553
+ inputs: [
554
+ {
555
+ internalType: "address[]",
556
+ name: "scys",
557
+ type: "address[]",
558
+ },
559
+ {
560
+ components: [
561
+ {
562
+ internalType: "address[]",
563
+ name: "yts",
564
+ type: "address[]",
565
+ },
566
+ {
567
+ internalType: "address[]",
568
+ name: "scyAddrs",
569
+ type: "address[]",
570
+ },
571
+ {
572
+ internalType: "address[]",
573
+ name: "tokenRedeemScys",
574
+ type: "address[]",
575
+ },
576
+ ],
577
+ internalType: "struct IPActionMintRedeem.RouterYtRedeemStruct",
578
+ name: "dataYT",
579
+ type: "tuple",
580
+ },
581
+ {
582
+ internalType: "address[]",
583
+ name: "markets",
584
+ type: "address[]",
585
+ },
586
+ {
587
+ components: [
588
+ {
589
+ internalType: "address[]",
590
+ name: "tokens",
591
+ type: "address[]",
592
+ },
593
+ {
594
+ internalType: "bytes[]",
595
+ name: "kybercalls",
596
+ type: "bytes[]",
597
+ },
598
+ {
599
+ internalType: "address",
600
+ name: "outputToken",
601
+ type: "address",
602
+ },
603
+ ],
604
+ internalType: "struct IPActionMintRedeem.RouterSwapAllStruct",
605
+ name: "dataSwap",
606
+ type: "tuple",
607
+ },
608
+ ],
609
+ name: "redeemDueInterestAndRewardsThenSwapAll",
610
+ outputs: [
611
+ {
612
+ internalType: "uint256",
613
+ name: "netTokenOut",
614
+ type: "uint256",
615
+ },
616
+ {
617
+ internalType: "uint256[]",
618
+ name: "amountsSwapped",
619
+ type: "uint256[]",
620
+ },
621
+ ],
622
+ stateMutability: "nonpayable",
623
+ type: "function",
624
+ },
454
625
  {
455
626
  inputs: [
456
627
  {
@@ -339,6 +339,104 @@ const _abi = [
339
339
  name: "MintScyFromToken",
340
340
  type: "event",
341
341
  },
342
+ {
343
+ anonymous: false,
344
+ inputs: [
345
+ {
346
+ indexed: true,
347
+ internalType: "address",
348
+ name: "user",
349
+ type: "address",
350
+ },
351
+ {
352
+ indexed: false,
353
+ internalType: "address[]",
354
+ name: "scys",
355
+ type: "address[]",
356
+ },
357
+ {
358
+ indexed: false,
359
+ internalType: "address[]",
360
+ name: "yts",
361
+ type: "address[]",
362
+ },
363
+ {
364
+ indexed: false,
365
+ internalType: "address[]",
366
+ name: "markets",
367
+ type: "address[]",
368
+ },
369
+ {
370
+ indexed: false,
371
+ internalType: "uint256[][]",
372
+ name: "scyRewards",
373
+ type: "uint256[][]",
374
+ },
375
+ {
376
+ indexed: false,
377
+ internalType: "uint256[]",
378
+ name: "ytInterests",
379
+ type: "uint256[]",
380
+ },
381
+ {
382
+ indexed: false,
383
+ internalType: "uint256[][]",
384
+ name: "ytRewards",
385
+ type: "uint256[][]",
386
+ },
387
+ {
388
+ indexed: false,
389
+ internalType: "uint256[][]",
390
+ name: "marketRewards",
391
+ type: "uint256[][]",
392
+ },
393
+ ],
394
+ name: "RedeemDueInterestAndRewards",
395
+ type: "event",
396
+ },
397
+ {
398
+ anonymous: false,
399
+ inputs: [
400
+ {
401
+ indexed: true,
402
+ internalType: "address",
403
+ name: "user",
404
+ type: "address",
405
+ },
406
+ {
407
+ indexed: false,
408
+ internalType: "address[]",
409
+ name: "scys",
410
+ type: "address[]",
411
+ },
412
+ {
413
+ indexed: false,
414
+ internalType: "address[]",
415
+ name: "yts",
416
+ type: "address[]",
417
+ },
418
+ {
419
+ indexed: false,
420
+ internalType: "address[]",
421
+ name: "markets",
422
+ type: "address[]",
423
+ },
424
+ {
425
+ indexed: true,
426
+ internalType: "address",
427
+ name: "tokenOut",
428
+ type: "address",
429
+ },
430
+ {
431
+ indexed: false,
432
+ internalType: "uint256",
433
+ name: "netTokenOut",
434
+ type: "uint256",
435
+ },
436
+ ],
437
+ name: "RedeemDueInterestAndRewardsThenSwapAll",
438
+ type: "event",
439
+ },
342
440
  {
343
441
  anonymous: false,
344
442
  inputs: [
@@ -1373,6 +1471,79 @@ const _abi = [
1373
1471
  stateMutability: "nonpayable",
1374
1472
  type: "function",
1375
1473
  },
1474
+ {
1475
+ inputs: [
1476
+ {
1477
+ internalType: "address[]",
1478
+ name: "scys",
1479
+ type: "address[]",
1480
+ },
1481
+ {
1482
+ components: [
1483
+ {
1484
+ internalType: "address[]",
1485
+ name: "yts",
1486
+ type: "address[]",
1487
+ },
1488
+ {
1489
+ internalType: "address[]",
1490
+ name: "scyAddrs",
1491
+ type: "address[]",
1492
+ },
1493
+ {
1494
+ internalType: "address[]",
1495
+ name: "tokenRedeemScys",
1496
+ type: "address[]",
1497
+ },
1498
+ ],
1499
+ internalType: "struct IPActionMintRedeem.RouterYtRedeemStruct",
1500
+ name: "dataYT",
1501
+ type: "tuple",
1502
+ },
1503
+ {
1504
+ internalType: "address[]",
1505
+ name: "markets",
1506
+ type: "address[]",
1507
+ },
1508
+ {
1509
+ components: [
1510
+ {
1511
+ internalType: "address[]",
1512
+ name: "tokens",
1513
+ type: "address[]",
1514
+ },
1515
+ {
1516
+ internalType: "bytes[]",
1517
+ name: "kybercalls",
1518
+ type: "bytes[]",
1519
+ },
1520
+ {
1521
+ internalType: "address",
1522
+ name: "outputToken",
1523
+ type: "address",
1524
+ },
1525
+ ],
1526
+ internalType: "struct IPActionMintRedeem.RouterSwapAllStruct",
1527
+ name: "dataSwap",
1528
+ type: "tuple",
1529
+ },
1530
+ ],
1531
+ name: "redeemDueInterestAndRewardsThenSwapAll",
1532
+ outputs: [
1533
+ {
1534
+ internalType: "uint256",
1535
+ name: "netTokenOut",
1536
+ type: "uint256",
1537
+ },
1538
+ {
1539
+ internalType: "uint256[]",
1540
+ name: "amountsSwapped",
1541
+ type: "uint256[]",
1542
+ },
1543
+ ],
1544
+ stateMutability: "nonpayable",
1545
+ type: "function",
1546
+ },
1376
1547
  {
1377
1548
  inputs: [
1378
1549
  {
@@ -0,0 +1,95 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import { Provider } from "@ethersproject/providers";
7
+ import type {
8
+ IPFeeDistributorFactory,
9
+ IPFeeDistributorFactoryInterface,
10
+ } from "../IPFeeDistributorFactory";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [
15
+ {
16
+ internalType: "address",
17
+ name: "user",
18
+ type: "address",
19
+ },
20
+ {
21
+ internalType: "address",
22
+ name: "pool",
23
+ type: "address",
24
+ },
25
+ {
26
+ internalType: "uint256",
27
+ name: "epoch",
28
+ type: "uint256",
29
+ },
30
+ ],
31
+ name: "getUserAndTotalSharesAt",
32
+ outputs: [
33
+ {
34
+ internalType: "uint256",
35
+ name: "userShare",
36
+ type: "uint256",
37
+ },
38
+ {
39
+ internalType: "uint256",
40
+ name: "totalShare",
41
+ type: "uint256",
42
+ },
43
+ ],
44
+ stateMutability: "view",
45
+ type: "function",
46
+ },
47
+ {
48
+ inputs: [],
49
+ name: "lastFinishedEpoch",
50
+ outputs: [
51
+ {
52
+ internalType: "uint256",
53
+ name: "",
54
+ type: "uint256",
55
+ },
56
+ ],
57
+ stateMutability: "nonpayable",
58
+ type: "function",
59
+ },
60
+ {
61
+ inputs: [
62
+ {
63
+ internalType: "address",
64
+ name: "user",
65
+ type: "address",
66
+ },
67
+ {
68
+ internalType: "address",
69
+ name: "pool",
70
+ type: "address",
71
+ },
72
+ ],
73
+ name: "updateUserShare",
74
+ outputs: [],
75
+ stateMutability: "nonpayable",
76
+ type: "function",
77
+ },
78
+ ];
79
+
80
+ export class IPFeeDistributorFactory__factory {
81
+ static readonly abi = _abi;
82
+ static createInterface(): IPFeeDistributorFactoryInterface {
83
+ return new utils.Interface(_abi) as IPFeeDistributorFactoryInterface;
84
+ }
85
+ static connect(
86
+ address: string,
87
+ signerOrProvider: Signer | Provider
88
+ ): IPFeeDistributorFactory {
89
+ return new Contract(
90
+ address,
91
+ _abi,
92
+ signerOrProvider
93
+ ) as IPFeeDistributorFactory;
94
+ }
95
+ }
@@ -46,20 +46,14 @@ const _abi = [
46
46
  inputs: [
47
47
  {
48
48
  indexed: true,
49
- internalType: "address",
50
- name: "rewardToken",
51
- type: "address",
52
- },
53
- {
54
- indexed: false,
55
49
  internalType: "uint256",
56
- name: "numEpoch",
50
+ name: "epoch",
57
51
  type: "uint256",
58
52
  },
59
53
  {
60
54
  indexed: false,
61
55
  internalType: "uint256",
62
- name: "incentiveForEach",
56
+ name: "incentive",
63
57
  type: "uint256",
64
58
  },
65
59
  ],
@@ -73,11 +67,6 @@ const _abi = [
73
67
  name: "user",
74
68
  type: "address",
75
69
  },
76
- {
77
- internalType: "address",
78
- name: "rewardToken",
79
- type: "address",
80
- },
81
70
  ],
82
71
  name: "claimReward",
83
72
  outputs: [
@@ -93,19 +82,14 @@ const _abi = [
93
82
  {
94
83
  inputs: [
95
84
  {
96
- internalType: "address",
97
- name: "rewardToken",
98
- type: "address",
99
- },
100
- {
101
- internalType: "uint256",
102
- name: "amount",
103
- type: "uint256",
85
+ internalType: "uint256[]",
86
+ name: "epochs",
87
+ type: "uint256[]",
104
88
  },
105
89
  {
106
- internalType: "uint256",
107
- name: "numEpoch",
108
- type: "uint256",
90
+ internalType: "uint256[]",
91
+ name: "rewardsForEpoch",
92
+ type: "uint256[]",
109
93
  },
110
94
  ],
111
95
  name: "fund",
@@ -120,11 +104,6 @@ const _abi = [
120
104
  name: "epoch",
121
105
  type: "uint256",
122
106
  },
123
- {
124
- internalType: "address",
125
- name: "rewardToken",
126
- type: "address",
127
- },
128
107
  ],
129
108
  name: "incentivesForEpoch",
130
109
  outputs: [
@@ -137,19 +116,6 @@ const _abi = [
137
116
  stateMutability: "nonpayable",
138
117
  type: "function",
139
118
  },
140
- {
141
- inputs: [
142
- {
143
- internalType: "address",
144
- name: "user",
145
- type: "address",
146
- },
147
- ],
148
- name: "updateUserShare",
149
- outputs: [],
150
- stateMutability: "nonpayable",
151
- type: "function",
152
- },
153
119
  ];
154
120
 
155
121
  export class IPFeeDistributor__factory {