@pendle/core-v2 2.4.0-mainnet → 2.5.1-mainnet

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 (221) hide show
  1. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.dbg.json +1 -1
  2. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.json +2 -2
  3. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.dbg.json +1 -1
  4. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.dbg.json +1 -1
  5. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.json +2 -2
  6. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.dbg.json +1 -1
  7. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
  8. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
  9. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +2 -2
  10. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
  11. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.json +2 -2
  12. package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +1 -1
  13. package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.json +2 -2
  14. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
  15. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +2 -2
  16. package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
  17. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
  18. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +2 -2
  19. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
  20. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +2 -2
  21. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
  22. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
  23. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.json +2 -2
  24. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
  25. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.json +2 -2
  26. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
  27. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.json +2 -2
  28. package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.dbg.json +1 -1
  29. package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.json +2 -2
  30. package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.dbg.json +1 -1
  31. package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.json +2 -2
  32. package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.dbg.json +1 -1
  33. package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.json +2 -2
  34. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
  35. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.json +2 -2
  36. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
  37. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.json +2 -2
  38. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
  39. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.json +2 -2
  40. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
  41. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.json +2 -2
  42. package/build/artifacts/contracts/core/StandardizedYield/SYBase.sol/SYBase.dbg.json +1 -1
  43. package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.dbg.json +1 -1
  44. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.dbg.json +1 -1
  45. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.json +2 -2
  46. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethAnkrethSY.sol/PendleAuraWethAnkrethSY.dbg.json +1 -1
  47. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethAnkrethSY.sol/PendleAuraWethAnkrethSY.json +2 -2
  48. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRethSY.sol/PendleAuraWethRethSY.dbg.json +1 -1
  49. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRethSY.sol/PendleAuraWethRethSY.json +2 -2
  50. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSY.sol/PendleAuraWethWstethSY.dbg.json +1 -1
  51. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSY.sol/PendleAuraWethWstethSY.json +2 -2
  52. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSY.sol/PendleAuraBalancerStableLPSY.dbg.json +1 -1
  53. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
  54. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.json +2 -2
  55. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.dbg.json +1 -1
  56. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.json +2 -2
  57. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.dbg.json +1 -1
  58. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.json +2 -2
  59. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.dbg.json +1 -1
  60. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.json +2 -2
  61. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/PendleConvexLPSY.sol/PendleConvexLPSY.dbg.json +1 -1
  62. package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol/PendleGlpSY.dbg.json +1 -1
  63. package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol/PendleGlpSY.json +2 -2
  64. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleGdaiSY.sol/PendleGDaiSY.dbg.json +1 -1
  65. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleGdaiSY.sol/PendleGDaiSY.json +2 -2
  66. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.dbg.json +1 -1
  67. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.json +2 -2
  68. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleStargateLPSY.sol/PendleStargateLPSY.dbg.json +4 -0
  69. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleStargateLPSY.sol/PendleStargateLPSY.json +1157 -0
  70. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.dbg.json +1 -1
  71. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.json +2 -2
  72. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
  73. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.json +2 -2
  74. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
  75. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +2 -2
  76. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
  77. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +2 -2
  78. package/build/artifacts/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol/PendlePrincipalTokenV2.dbg.json +1 -1
  79. package/build/artifacts/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol/PendlePrincipalTokenV2.json +2 -2
  80. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol/PendleYieldContractFactoryV2.dbg.json +1 -1
  81. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol/PendleYieldContractFactoryV2.json +2 -2
  82. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol/PendleYieldTokenV2.dbg.json +1 -1
  83. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol/PendleYieldTokenV2.json +2 -2
  84. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
  85. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.json +18 -2
  86. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
  87. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
  88. package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
  89. package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
  90. package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
  91. package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
  92. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
  93. package/build/artifacts/contracts/interfaces/IPBulkSeller.sol/IPBulkSeller.dbg.json +1 -1
  94. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
  95. package/build/artifacts/contracts/interfaces/IPRouterHelper.sol/IPRouterHelper.dbg.json +4 -0
  96. package/build/artifacts/contracts/interfaces/IPRouterHelper.sol/IPRouterHelper.json +747 -0
  97. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
  98. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
  99. package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
  100. package/build/artifacts/contracts/interfaces/IStargateLP.sol/IStargateLP.dbg.json +4 -0
  101. package/build/artifacts/contracts/interfaces/{IStargatePool.sol/IStargatePool.json → IStargateLP.sol/IStargateLP.json} +68 -3
  102. package/build/artifacts/contracts/interfaces/IStargateStaking.sol/IStargateStaking.dbg.json +4 -0
  103. package/build/artifacts/contracts/interfaces/{IStargateLPStaking.sol/IStargateLPStaking.json → IStargateStaking.sol/IStargateStaking.json} +20 -27
  104. package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.dbg.json +1 -1
  105. package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.json +2 -2
  106. package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.dbg.json +1 -1
  107. package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.json +2 -2
  108. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
  109. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +2 -2
  110. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
  111. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +2 -2
  112. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
  113. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +2 -2
  114. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
  115. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +2 -2
  116. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
  117. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +2 -2
  118. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
  119. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +2 -2
  120. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
  121. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +2 -2
  122. package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
  123. package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
  124. package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +2 -2
  125. package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
  126. package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.json +2 -2
  127. package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
  128. package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.json +2 -2
  129. package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
  130. package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.json +2 -2
  131. package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.dbg.json +1 -1
  132. package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.json +2 -2
  133. package/build/artifacts/contracts/router/PendleRouterHelper.sol/PendleRouterHelper.dbg.json +4 -0
  134. package/build/artifacts/contracts/router/PendleRouterHelper.sol/PendleRouterHelper.json +891 -0
  135. package/build/artifacts/contracts/router/base/ActionBaseCallback.sol/ActionBaseCallback.dbg.json +1 -1
  136. package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +1 -1
  137. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
  138. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.json +2 -2
  139. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
  140. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.json +2 -2
  141. package/build/artifacts/contracts/router/swap-aggregator/1inch/OneInchAggregationRouterHelper.sol/OneInchAggregationRouterHelper.dbg.json +1 -1
  142. package/build/artifacts/contracts/router/swap-aggregator/PendleSwapArbitrum.sol/PendleSwapArbitrum.dbg.json +1 -1
  143. package/build/artifacts/contracts/router/swap-aggregator/PendleSwapArbitrum.sol/PendleSwapArbitrum.json +2 -2
  144. package/build/artifacts/contracts/router/swap-aggregator/PendleSwapEthereum.sol/PendleSwapEthereum.dbg.json +1 -1
  145. package/build/artifacts/contracts/router/swap-aggregator/PendleSwapEthereum.sol/PendleSwapEthereum.json +2 -2
  146. package/contracts/core/StandardizedYield/implementations/PendleStargateLPSY.sol +222 -0
  147. package/contracts/core/libraries/Errors.sol +2 -0
  148. package/contracts/interfaces/IPRouterHelper.sol +168 -0
  149. package/contracts/interfaces/{IStargatePool.sol → IStargateLP.sol} +14 -1
  150. package/contracts/interfaces/{IStargateLPStaking.sol → IStargateStaking.sol} +2 -2
  151. package/contracts/router/PendleRouterHelper.sol +358 -0
  152. package/contracts/router/base/ActionBaseMintRedeem.sol +5 -4
  153. package/deployments/1-core.json +2 -1
  154. package/deployments/42161-core.json +2 -1
  155. package/package.json +2 -2
  156. package/typechain-types/IPRouterHelper.ts +638 -0
  157. package/typechain-types/ISiloPriceProvider.ts +150 -0
  158. package/typechain-types/PendlePtOracleBase.ts +26 -0
  159. package/typechain-types/PendleRouterHelper.ts +270 -171
  160. package/typechain-types/PendleStargateLPSY.ts +1442 -0
  161. package/typechain-types/PtFraxUsdcOracle.ts +26 -0
  162. package/typechain-types/PtStETHOracle.ts +26 -0
  163. package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +1 -1
  164. package/typechain-types/factories/ActionInfoStatic__factory.ts +1 -1
  165. package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +1 -1
  166. package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +1 -1
  167. package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +1 -1
  168. package/typechain-types/factories/ActionMintRedeem__factory.ts +1 -1
  169. package/typechain-types/factories/ActionStorageStatic__factory.ts +1 -1
  170. package/typechain-types/factories/ActionSwapPT__factory.ts +1 -1
  171. package/typechain-types/factories/ActionSwapYT__factory.ts +1 -1
  172. package/typechain-types/factories/ActionVePendleStatic__factory.ts +1 -1
  173. package/typechain-types/factories/Broadcaster__factory.ts +1 -1
  174. package/typechain-types/factories/BulkSellerFactory__factory.ts +1 -1
  175. package/typechain-types/factories/BulkSellerOffchain__factory.ts +1 -1
  176. package/typechain-types/factories/BulkSeller__factory.ts +1 -1
  177. package/typechain-types/factories/Errors__factory.ts +17 -1
  178. package/typechain-types/factories/IPRouterHelper__factory.ts +763 -0
  179. package/typechain-types/factories/ISiloPriceProvider__factory.ts +90 -0
  180. package/typechain-types/factories/OracleLib__factory.ts +1 -1
  181. package/typechain-types/factories/PendleAuraWethAnkrethSY__factory.ts +1 -1
  182. package/typechain-types/factories/PendleAuraWethRethSY__factory.ts +1 -1
  183. package/typechain-types/factories/PendleAuraWethWstethSY__factory.ts +1 -1
  184. package/typechain-types/factories/PendleCurveFraxUsdcSY__factory.ts +1 -1
  185. package/typechain-types/factories/PendleCurveUsdd3CrvSY__factory.ts +1 -1
  186. package/typechain-types/factories/PendleFeeDistributor__factory.ts +1 -1
  187. package/typechain-types/factories/PendleGDaiSY__factory.ts +1 -1
  188. package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +1 -1
  189. package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +1 -1
  190. package/typechain-types/factories/PendleGlpSY__factory.ts +1 -1
  191. package/typechain-types/factories/PendleLooksStakingSY__factory.ts +1 -1
  192. package/typechain-types/factories/PendleMarketFactory__factory.ts +1 -1
  193. package/typechain-types/factories/PendleMarket__factory.ts +1 -1
  194. package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +1 -1
  195. package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +1 -1
  196. package/typechain-types/factories/PendlePrincipalTokenV2__factory.ts +1 -1
  197. package/typechain-types/factories/PendlePrincipalToken__factory.ts +1 -1
  198. package/typechain-types/factories/PendlePtOracleBase__factory.ts +26 -0
  199. package/typechain-types/factories/PendleQiTokenHelper__factory.ts +1 -1
  200. package/typechain-types/factories/PendleQiTokenSY__factory.ts +1 -1
  201. package/typechain-types/factories/PendleRouterHelper__factory.ts +159 -47
  202. package/typechain-types/factories/PendleRouterStatic__factory.ts +1 -1
  203. package/typechain-types/factories/PendleRouter__factory.ts +1 -1
  204. package/typechain-types/factories/PendleStargateLPSY__factory.ts +1241 -0
  205. package/typechain-types/factories/PendleSwapArbitrum__factory.ts +1 -1
  206. package/typechain-types/factories/PendleSwapEthereum__factory.ts +1 -1
  207. package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +1 -1
  208. package/typechain-types/factories/PendleWstEthSY__factory.ts +1 -1
  209. package/typechain-types/factories/PendleYieldContractFactoryV2__factory.ts +1 -1
  210. package/typechain-types/factories/PendleYieldContractFactory__factory.ts +1 -1
  211. package/typechain-types/factories/PendleYieldTokenV2__factory.ts +1 -1
  212. package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
  213. package/typechain-types/factories/PtFraxUsdcOracle__factory.ts +27 -1
  214. package/typechain-types/factories/PtStETHOracle__factory.ts +27 -1
  215. package/typechain-types/factories/SAPE__factory.ts +1 -1
  216. package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +1 -1
  217. package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +1 -1
  218. package/typechain-types/hardhat.d.ts +30 -21
  219. package/typechain-types/index.ts +8 -6
  220. package/build/artifacts/contracts/interfaces/IStargateLPStaking.sol/IStargateLPStaking.dbg.json +0 -4
  221. package/build/artifacts/contracts/interfaces/IStargatePool.sol/IStargatePool.dbg.json +0 -4
@@ -0,0 +1,747 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "IPRouterHelper",
4
+ "sourceName": "contracts/interfaces/IPRouterHelper.sol",
5
+ "abi": [
6
+ {
7
+ "anonymous": false,
8
+ "inputs": [
9
+ {
10
+ "indexed": true,
11
+ "internalType": "address",
12
+ "name": "caller",
13
+ "type": "address"
14
+ },
15
+ {
16
+ "indexed": true,
17
+ "internalType": "address",
18
+ "name": "market",
19
+ "type": "address"
20
+ },
21
+ {
22
+ "indexed": true,
23
+ "internalType": "address",
24
+ "name": "receiver",
25
+ "type": "address"
26
+ },
27
+ {
28
+ "indexed": false,
29
+ "internalType": "uint256",
30
+ "name": "netSyIn",
31
+ "type": "uint256"
32
+ },
33
+ {
34
+ "indexed": false,
35
+ "internalType": "uint256",
36
+ "name": "netLpOut",
37
+ "type": "uint256"
38
+ }
39
+ ],
40
+ "name": "AddLiquiditySingleSy",
41
+ "type": "event"
42
+ },
43
+ {
44
+ "anonymous": false,
45
+ "inputs": [
46
+ {
47
+ "indexed": true,
48
+ "internalType": "address",
49
+ "name": "caller",
50
+ "type": "address"
51
+ },
52
+ {
53
+ "indexed": true,
54
+ "internalType": "address",
55
+ "name": "market",
56
+ "type": "address"
57
+ },
58
+ {
59
+ "indexed": true,
60
+ "internalType": "address",
61
+ "name": "receiver",
62
+ "type": "address"
63
+ },
64
+ {
65
+ "indexed": false,
66
+ "internalType": "uint256",
67
+ "name": "netSyIn",
68
+ "type": "uint256"
69
+ },
70
+ {
71
+ "indexed": false,
72
+ "internalType": "uint256",
73
+ "name": "netLpOut",
74
+ "type": "uint256"
75
+ },
76
+ {
77
+ "indexed": false,
78
+ "internalType": "uint256",
79
+ "name": "netYtOut",
80
+ "type": "uint256"
81
+ }
82
+ ],
83
+ "name": "AddLiquiditySingleSyKeepYt",
84
+ "type": "event"
85
+ },
86
+ {
87
+ "anonymous": false,
88
+ "inputs": [
89
+ {
90
+ "indexed": true,
91
+ "internalType": "address",
92
+ "name": "caller",
93
+ "type": "address"
94
+ },
95
+ {
96
+ "indexed": true,
97
+ "internalType": "address",
98
+ "name": "market",
99
+ "type": "address"
100
+ },
101
+ {
102
+ "indexed": true,
103
+ "internalType": "address",
104
+ "name": "token",
105
+ "type": "address"
106
+ },
107
+ {
108
+ "indexed": false,
109
+ "internalType": "address",
110
+ "name": "receiver",
111
+ "type": "address"
112
+ },
113
+ {
114
+ "indexed": false,
115
+ "internalType": "uint256",
116
+ "name": "netTokenIn",
117
+ "type": "uint256"
118
+ },
119
+ {
120
+ "indexed": false,
121
+ "internalType": "uint256",
122
+ "name": "netLpOut",
123
+ "type": "uint256"
124
+ }
125
+ ],
126
+ "name": "AddLiquiditySingleToken",
127
+ "type": "event"
128
+ },
129
+ {
130
+ "anonymous": false,
131
+ "inputs": [
132
+ {
133
+ "indexed": true,
134
+ "internalType": "address",
135
+ "name": "caller",
136
+ "type": "address"
137
+ },
138
+ {
139
+ "indexed": true,
140
+ "internalType": "address",
141
+ "name": "market",
142
+ "type": "address"
143
+ },
144
+ {
145
+ "indexed": true,
146
+ "internalType": "address",
147
+ "name": "token",
148
+ "type": "address"
149
+ },
150
+ {
151
+ "indexed": false,
152
+ "internalType": "address",
153
+ "name": "receiver",
154
+ "type": "address"
155
+ },
156
+ {
157
+ "indexed": false,
158
+ "internalType": "uint256",
159
+ "name": "netTokenIn",
160
+ "type": "uint256"
161
+ },
162
+ {
163
+ "indexed": false,
164
+ "internalType": "uint256",
165
+ "name": "netLpOut",
166
+ "type": "uint256"
167
+ },
168
+ {
169
+ "indexed": false,
170
+ "internalType": "uint256",
171
+ "name": "netYtOut",
172
+ "type": "uint256"
173
+ }
174
+ ],
175
+ "name": "AddLiquiditySingleTokenKeepYt",
176
+ "type": "event"
177
+ },
178
+ {
179
+ "anonymous": false,
180
+ "inputs": [
181
+ {
182
+ "indexed": true,
183
+ "internalType": "address",
184
+ "name": "caller",
185
+ "type": "address"
186
+ },
187
+ {
188
+ "indexed": true,
189
+ "internalType": "address",
190
+ "name": "market",
191
+ "type": "address"
192
+ },
193
+ {
194
+ "indexed": true,
195
+ "internalType": "address",
196
+ "name": "receiver",
197
+ "type": "address"
198
+ },
199
+ {
200
+ "indexed": false,
201
+ "internalType": "uint256",
202
+ "name": "netLpToRemove",
203
+ "type": "uint256"
204
+ },
205
+ {
206
+ "indexed": false,
207
+ "internalType": "uint256",
208
+ "name": "netSyOut",
209
+ "type": "uint256"
210
+ }
211
+ ],
212
+ "name": "RemoveLiquiditySingleSy",
213
+ "type": "event"
214
+ },
215
+ {
216
+ "anonymous": false,
217
+ "inputs": [
218
+ {
219
+ "indexed": true,
220
+ "internalType": "address",
221
+ "name": "caller",
222
+ "type": "address"
223
+ },
224
+ {
225
+ "indexed": true,
226
+ "internalType": "address",
227
+ "name": "market",
228
+ "type": "address"
229
+ },
230
+ {
231
+ "indexed": true,
232
+ "internalType": "address",
233
+ "name": "token",
234
+ "type": "address"
235
+ },
236
+ {
237
+ "indexed": false,
238
+ "internalType": "address",
239
+ "name": "receiver",
240
+ "type": "address"
241
+ },
242
+ {
243
+ "indexed": false,
244
+ "internalType": "uint256",
245
+ "name": "netLpToRemove",
246
+ "type": "uint256"
247
+ },
248
+ {
249
+ "indexed": false,
250
+ "internalType": "uint256",
251
+ "name": "netTokenOut",
252
+ "type": "uint256"
253
+ }
254
+ ],
255
+ "name": "RemoveLiquiditySingleToken",
256
+ "type": "event"
257
+ },
258
+ {
259
+ "inputs": [
260
+ {
261
+ "components": [
262
+ {
263
+ "internalType": "address",
264
+ "name": "market",
265
+ "type": "address"
266
+ },
267
+ {
268
+ "internalType": "uint256",
269
+ "name": "netLpToRemove",
270
+ "type": "uint256"
271
+ },
272
+ {
273
+ "internalType": "bool",
274
+ "name": "doRedeemRewards",
275
+ "type": "bool"
276
+ },
277
+ {
278
+ "components": [
279
+ {
280
+ "internalType": "address",
281
+ "name": "tokenOut",
282
+ "type": "address"
283
+ },
284
+ {
285
+ "internalType": "uint256",
286
+ "name": "minTokenOut",
287
+ "type": "uint256"
288
+ },
289
+ {
290
+ "internalType": "address",
291
+ "name": "tokenRedeemSy",
292
+ "type": "address"
293
+ },
294
+ {
295
+ "internalType": "address",
296
+ "name": "bulk",
297
+ "type": "address"
298
+ },
299
+ {
300
+ "internalType": "address",
301
+ "name": "pendleSwap",
302
+ "type": "address"
303
+ },
304
+ {
305
+ "components": [
306
+ {
307
+ "internalType": "enum SwapType",
308
+ "name": "swapType",
309
+ "type": "uint8"
310
+ },
311
+ {
312
+ "internalType": "address",
313
+ "name": "extRouter",
314
+ "type": "address"
315
+ },
316
+ {
317
+ "internalType": "bytes",
318
+ "name": "extCalldata",
319
+ "type": "bytes"
320
+ },
321
+ {
322
+ "internalType": "bool",
323
+ "name": "needScale",
324
+ "type": "bool"
325
+ }
326
+ ],
327
+ "internalType": "struct SwapData",
328
+ "name": "swapData",
329
+ "type": "tuple"
330
+ }
331
+ ],
332
+ "internalType": "struct TokenOutput",
333
+ "name": "output",
334
+ "type": "tuple"
335
+ }
336
+ ],
337
+ "internalType": "struct IPRouterHelper.RemoveLiquiditySingleTokenStruct",
338
+ "name": "fromMarket",
339
+ "type": "tuple"
340
+ },
341
+ {
342
+ "components": [
343
+ {
344
+ "internalType": "address",
345
+ "name": "market",
346
+ "type": "address"
347
+ },
348
+ {
349
+ "internalType": "uint256",
350
+ "name": "minLpOut",
351
+ "type": "uint256"
352
+ },
353
+ {
354
+ "internalType": "uint256",
355
+ "name": "minYtOut",
356
+ "type": "uint256"
357
+ },
358
+ {
359
+ "internalType": "address",
360
+ "name": "bulk",
361
+ "type": "address"
362
+ }
363
+ ],
364
+ "internalType": "struct IPRouterHelper.AddLiquiditySingleTokenKeepYtStruct",
365
+ "name": "toMarket",
366
+ "type": "tuple"
367
+ }
368
+ ],
369
+ "name": "transferLiquidityDifferentSyKeepYt",
370
+ "outputs": [
371
+ {
372
+ "internalType": "uint256",
373
+ "name": "netLpOut",
374
+ "type": "uint256"
375
+ },
376
+ {
377
+ "internalType": "uint256",
378
+ "name": "netYtOut",
379
+ "type": "uint256"
380
+ },
381
+ {
382
+ "internalType": "uint256",
383
+ "name": "netTokenZapIn",
384
+ "type": "uint256"
385
+ },
386
+ {
387
+ "internalType": "uint256",
388
+ "name": "netSyFeeOfRemove",
389
+ "type": "uint256"
390
+ }
391
+ ],
392
+ "stateMutability": "nonpayable",
393
+ "type": "function"
394
+ },
395
+ {
396
+ "inputs": [
397
+ {
398
+ "components": [
399
+ {
400
+ "internalType": "address",
401
+ "name": "market",
402
+ "type": "address"
403
+ },
404
+ {
405
+ "internalType": "uint256",
406
+ "name": "netLpToRemove",
407
+ "type": "uint256"
408
+ },
409
+ {
410
+ "internalType": "bool",
411
+ "name": "doRedeemRewards",
412
+ "type": "bool"
413
+ },
414
+ {
415
+ "components": [
416
+ {
417
+ "internalType": "address",
418
+ "name": "tokenOut",
419
+ "type": "address"
420
+ },
421
+ {
422
+ "internalType": "uint256",
423
+ "name": "minTokenOut",
424
+ "type": "uint256"
425
+ },
426
+ {
427
+ "internalType": "address",
428
+ "name": "tokenRedeemSy",
429
+ "type": "address"
430
+ },
431
+ {
432
+ "internalType": "address",
433
+ "name": "bulk",
434
+ "type": "address"
435
+ },
436
+ {
437
+ "internalType": "address",
438
+ "name": "pendleSwap",
439
+ "type": "address"
440
+ },
441
+ {
442
+ "components": [
443
+ {
444
+ "internalType": "enum SwapType",
445
+ "name": "swapType",
446
+ "type": "uint8"
447
+ },
448
+ {
449
+ "internalType": "address",
450
+ "name": "extRouter",
451
+ "type": "address"
452
+ },
453
+ {
454
+ "internalType": "bytes",
455
+ "name": "extCalldata",
456
+ "type": "bytes"
457
+ },
458
+ {
459
+ "internalType": "bool",
460
+ "name": "needScale",
461
+ "type": "bool"
462
+ }
463
+ ],
464
+ "internalType": "struct SwapData",
465
+ "name": "swapData",
466
+ "type": "tuple"
467
+ }
468
+ ],
469
+ "internalType": "struct TokenOutput",
470
+ "name": "output",
471
+ "type": "tuple"
472
+ }
473
+ ],
474
+ "internalType": "struct IPRouterHelper.RemoveLiquiditySingleTokenStruct",
475
+ "name": "fromMarket",
476
+ "type": "tuple"
477
+ },
478
+ {
479
+ "components": [
480
+ {
481
+ "internalType": "address",
482
+ "name": "market",
483
+ "type": "address"
484
+ },
485
+ {
486
+ "internalType": "uint256",
487
+ "name": "minLpOut",
488
+ "type": "uint256"
489
+ },
490
+ {
491
+ "internalType": "uint256",
492
+ "name": "guessNetTokenIn",
493
+ "type": "uint256"
494
+ },
495
+ {
496
+ "components": [
497
+ {
498
+ "internalType": "uint256",
499
+ "name": "guessMin",
500
+ "type": "uint256"
501
+ },
502
+ {
503
+ "internalType": "uint256",
504
+ "name": "guessMax",
505
+ "type": "uint256"
506
+ },
507
+ {
508
+ "internalType": "uint256",
509
+ "name": "guessOffchain",
510
+ "type": "uint256"
511
+ },
512
+ {
513
+ "internalType": "uint256",
514
+ "name": "maxIteration",
515
+ "type": "uint256"
516
+ },
517
+ {
518
+ "internalType": "uint256",
519
+ "name": "eps",
520
+ "type": "uint256"
521
+ }
522
+ ],
523
+ "internalType": "struct ApproxParams",
524
+ "name": "guessPtReceivedFromSy",
525
+ "type": "tuple"
526
+ },
527
+ {
528
+ "internalType": "address",
529
+ "name": "bulk",
530
+ "type": "address"
531
+ }
532
+ ],
533
+ "internalType": "struct IPRouterHelper.AddLiquiditySingleTokenStruct",
534
+ "name": "toMarket",
535
+ "type": "tuple"
536
+ }
537
+ ],
538
+ "name": "transferLiquidityDifferentSyNormal",
539
+ "outputs": [
540
+ {
541
+ "internalType": "uint256",
542
+ "name": "netLpOut",
543
+ "type": "uint256"
544
+ },
545
+ {
546
+ "internalType": "uint256",
547
+ "name": "netTokenZapIn",
548
+ "type": "uint256"
549
+ },
550
+ {
551
+ "internalType": "uint256",
552
+ "name": "netSyFeeOfRemove",
553
+ "type": "uint256"
554
+ },
555
+ {
556
+ "internalType": "uint256",
557
+ "name": "netSyFeeOfAdd",
558
+ "type": "uint256"
559
+ }
560
+ ],
561
+ "stateMutability": "nonpayable",
562
+ "type": "function"
563
+ },
564
+ {
565
+ "inputs": [
566
+ {
567
+ "components": [
568
+ {
569
+ "internalType": "address",
570
+ "name": "market",
571
+ "type": "address"
572
+ },
573
+ {
574
+ "internalType": "uint256",
575
+ "name": "netLpToRemove",
576
+ "type": "uint256"
577
+ },
578
+ {
579
+ "internalType": "bool",
580
+ "name": "doRedeemRewards",
581
+ "type": "bool"
582
+ }
583
+ ],
584
+ "internalType": "struct IPRouterHelper.RemoveLiquiditySingleSyStruct",
585
+ "name": "fromMarket",
586
+ "type": "tuple"
587
+ },
588
+ {
589
+ "components": [
590
+ {
591
+ "internalType": "address",
592
+ "name": "market",
593
+ "type": "address"
594
+ },
595
+ {
596
+ "internalType": "uint256",
597
+ "name": "minLpOut",
598
+ "type": "uint256"
599
+ },
600
+ {
601
+ "internalType": "uint256",
602
+ "name": "minYtOut",
603
+ "type": "uint256"
604
+ }
605
+ ],
606
+ "internalType": "struct IPRouterHelper.AddLiquiditySingleSyKeepYtStruct",
607
+ "name": "toMarket",
608
+ "type": "tuple"
609
+ }
610
+ ],
611
+ "name": "transferLiquiditySameSyKeepYt",
612
+ "outputs": [
613
+ {
614
+ "internalType": "uint256",
615
+ "name": "netLpOut",
616
+ "type": "uint256"
617
+ },
618
+ {
619
+ "internalType": "uint256",
620
+ "name": "netYtOut",
621
+ "type": "uint256"
622
+ },
623
+ {
624
+ "internalType": "uint256",
625
+ "name": "netSyZapIn",
626
+ "type": "uint256"
627
+ },
628
+ {
629
+ "internalType": "uint256",
630
+ "name": "netSyFeeOfRemove",
631
+ "type": "uint256"
632
+ }
633
+ ],
634
+ "stateMutability": "nonpayable",
635
+ "type": "function"
636
+ },
637
+ {
638
+ "inputs": [
639
+ {
640
+ "components": [
641
+ {
642
+ "internalType": "address",
643
+ "name": "market",
644
+ "type": "address"
645
+ },
646
+ {
647
+ "internalType": "uint256",
648
+ "name": "netLpToRemove",
649
+ "type": "uint256"
650
+ },
651
+ {
652
+ "internalType": "bool",
653
+ "name": "doRedeemRewards",
654
+ "type": "bool"
655
+ }
656
+ ],
657
+ "internalType": "struct IPRouterHelper.RemoveLiquiditySingleSyStruct",
658
+ "name": "fromMarket",
659
+ "type": "tuple"
660
+ },
661
+ {
662
+ "components": [
663
+ {
664
+ "internalType": "address",
665
+ "name": "market",
666
+ "type": "address"
667
+ },
668
+ {
669
+ "internalType": "uint256",
670
+ "name": "minLpOut",
671
+ "type": "uint256"
672
+ },
673
+ {
674
+ "internalType": "uint256",
675
+ "name": "guessNetSyIn",
676
+ "type": "uint256"
677
+ },
678
+ {
679
+ "components": [
680
+ {
681
+ "internalType": "uint256",
682
+ "name": "guessMin",
683
+ "type": "uint256"
684
+ },
685
+ {
686
+ "internalType": "uint256",
687
+ "name": "guessMax",
688
+ "type": "uint256"
689
+ },
690
+ {
691
+ "internalType": "uint256",
692
+ "name": "guessOffchain",
693
+ "type": "uint256"
694
+ },
695
+ {
696
+ "internalType": "uint256",
697
+ "name": "maxIteration",
698
+ "type": "uint256"
699
+ },
700
+ {
701
+ "internalType": "uint256",
702
+ "name": "eps",
703
+ "type": "uint256"
704
+ }
705
+ ],
706
+ "internalType": "struct ApproxParams",
707
+ "name": "guessPtReceivedFromSy",
708
+ "type": "tuple"
709
+ }
710
+ ],
711
+ "internalType": "struct IPRouterHelper.AddLiquiditySingleSyStruct",
712
+ "name": "toMarket",
713
+ "type": "tuple"
714
+ }
715
+ ],
716
+ "name": "transferLiquiditySameSyNormal",
717
+ "outputs": [
718
+ {
719
+ "internalType": "uint256",
720
+ "name": "netLpOut",
721
+ "type": "uint256"
722
+ },
723
+ {
724
+ "internalType": "uint256",
725
+ "name": "netSyZapIn",
726
+ "type": "uint256"
727
+ },
728
+ {
729
+ "internalType": "uint256",
730
+ "name": "netSyFeeOfRemove",
731
+ "type": "uint256"
732
+ },
733
+ {
734
+ "internalType": "uint256",
735
+ "name": "netSyFeeOfAdd",
736
+ "type": "uint256"
737
+ }
738
+ ],
739
+ "stateMutability": "nonpayable",
740
+ "type": "function"
741
+ }
742
+ ],
743
+ "bytecode": "0x",
744
+ "deployedBytecode": "0x",
745
+ "linkReferences": {},
746
+ "deployedLinkReferences": {}
747
+ }