@pendle/core-v2 5.2.0-beta-4 → 5.2.0

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 (320) 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/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.dbg.json +1 -1
  4. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.json +2 -2
  5. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.dbg.json +1 -1
  6. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.json +2 -2
  7. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
  8. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +67 -23
  9. package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
  10. package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.json +19 -6
  11. package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithoutPermitUpg.sol/SYBaseWithoutPermitUpg.dbg.json +4 -0
  12. package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithoutPermitUpg.sol/{SYBaseUpg.json → SYBaseWithoutPermitUpg.json} +1 -1
  13. package/build/artifacts/contracts/core/StandardizedYield/implementations/AaveV3/PendleAaveV3WithRewardsSYUpg.sol/PendleAaveV3WithRewardsSYUpg.dbg.json +4 -0
  14. package/build/artifacts/contracts/core/StandardizedYield/implementations/AaveV3/PendleAaveV3WithRewardsSYUpg.sol/PendleAaveV3WithRewardsSYUpg.json +1169 -0
  15. package/build/artifacts/contracts/core/StandardizedYield/implementations/AaveV3/PendleStkGHOSY.sol/PendleStkGHOSY.dbg.json +4 -0
  16. package/build/artifacts/contracts/core/StandardizedYield/implementations/AaveV3/PendleStkGHOSY.sol/PendleStkGHOSY.json +1160 -0
  17. package/build/artifacts/contracts/core/StandardizedYield/implementations/ChainlinkRelayer/PendleChainlinkReceiver.sol/PendleChainlinkReceiver.dbg.json +1 -1
  18. package/build/artifacts/contracts/core/StandardizedYield/implementations/ChainlinkRelayer/PendleChainlinkReceiver.sol/PendleChainlinkReceiver.json +2 -2
  19. package/build/artifacts/contracts/core/StandardizedYield/implementations/ChainlinkRelayer/PendleChainlinkRelayer.sol/PendleChainlinkRelayer.dbg.json +1 -1
  20. package/build/artifacts/contracts/core/StandardizedYield/implementations/ChainlinkRelayer/PendleChainlinkRelayer.sol/PendleChainlinkRelayer.json +2 -2
  21. package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol/PendleGlpSY.dbg.json +1 -1
  22. package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol/PendleGlpSY.json +2 -2
  23. package/build/artifacts/contracts/core/StandardizedYield/implementations/Mantle/PendleCMETHSY.sol/PendleCMETHSY.dbg.json +4 -0
  24. package/build/artifacts/contracts/core/StandardizedYield/implementations/Mantle/PendleCMETHSY.sol/PendleCMETHSY.json +1049 -0
  25. package/build/artifacts/contracts/core/StandardizedYield/implementations/Silo/PendleSiloWithIncentiveNonBorrowableSY.sol/PendleSiloWithIncentiveNonBorrowableSY.dbg.json +4 -0
  26. package/build/artifacts/contracts/core/StandardizedYield/implementations/Silo/PendleSiloWithIncentiveNonBorrowableSY.sol/PendleSiloWithIncentiveNonBorrowableSY.json +1222 -0
  27. package/build/artifacts/contracts/core/StandardizedYield/implementations/Solv/PendleSolvBTCBBNBaseSYUpg.sol/PendleSolvBTCBBNBaseSYUpg.dbg.json +4 -0
  28. package/build/artifacts/contracts/core/StandardizedYield/implementations/Solv/PendleSolvBTCBBNBaseSYUpg.sol/PendleSolvBTCBBNBaseSYUpg.json +1072 -0
  29. package/build/artifacts/contracts/core/StandardizedYield/implementations/Solv/PendleSolvHelperBase.sol/PendleSolvHelperBase.dbg.json +4 -0
  30. package/build/artifacts/contracts/core/StandardizedYield/implementations/Solv/PendleSolvHelperBase.sol/PendleSolvHelperBase.json +115 -0
  31. package/build/artifacts/contracts/core/StandardizedYield/implementations/Zerolend/PendleZerolendEBTCSYUpg.sol/PendleZerolendEBTCSYUpg.dbg.json +4 -0
  32. package/build/artifacts/contracts/core/StandardizedYield/implementations/Zerolend/PendleZerolendEBTCSYUpg.sol/PendleZerolendEBTCSYUpg.json +1337 -0
  33. package/build/artifacts/contracts/core/StandardizedYield/implementations/Zerolend/PendleZerolendLBTCSYUpg.sol/PendleZerolendLBTCSYUpg.dbg.json +4 -0
  34. package/build/artifacts/contracts/core/StandardizedYield/implementations/Zerolend/PendleZerolendLBTCSYUpg.sol/PendleZerolendLBTCSYUpg.json +1226 -0
  35. package/build/artifacts/contracts/interfaces/AaveV3/IAaveStkGHO.sol/IAaveStkGHO.dbg.json +4 -0
  36. package/build/artifacts/contracts/interfaces/AaveV3/IAaveStkGHO.sol/IAaveStkGHO.json +116 -0
  37. package/build/artifacts/contracts/interfaces/Angle/IAngleDistributor.sol/IAngleDistributor.dbg.json +4 -0
  38. package/build/artifacts/contracts/interfaces/Angle/IAngleDistributor.sol/IAngleDistributor.json +39 -0
  39. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiqV3.sol/IPActionAddRemoveLiqV3.dbg.json +1 -1
  40. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
  41. package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.dbg.json +1 -1
  42. package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.json +66 -0
  43. package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
  44. package/build/artifacts/contracts/interfaces/IPActionSimple.sol/IPActionSimple.dbg.json +1 -1
  45. package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
  46. package/build/artifacts/contracts/interfaces/IPActionStorageV4.sol/IPActionStorageV4.dbg.json +1 -1
  47. package/build/artifacts/contracts/interfaces/IPActionSwapPTV3.sol/IPActionSwapPTV3.dbg.json +1 -1
  48. package/build/artifacts/contracts/interfaces/IPActionSwapYTV3.sol/IPActionSwapYTV3.dbg.json +1 -1
  49. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
  50. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionAddRemoveLiqV3Events.dbg.json +1 -1
  51. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionMiscV3Events.dbg.json +1 -1
  52. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionStorageEvents.dbg.json +1 -1
  53. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapPTV3Events.dbg.json +1 -1
  54. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapYTV3Events.dbg.json +1 -1
  55. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPAllEventsV3.dbg.json +1 -1
  56. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
  57. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.json +66 -0
  58. package/build/artifacts/contracts/interfaces/Zerolend/IZerolendPool.sol/IZerolendPool.dbg.json +4 -0
  59. package/build/artifacts/contracts/interfaces/Zerolend/IZerolendPool.sol/IZerolendPool.json +37 -0
  60. package/build/artifacts/contracts/interfaces/Zerolend/IZerolendZ0Token.sol/IZerolendZ0Token.dbg.json +4 -0
  61. package/build/artifacts/contracts/interfaces/Zerolend/IZerolendZ0Token.sol/IZerolendZ0Token.json +24 -0
  62. package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
  63. package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.json +2 -2
  64. package/build/artifacts/contracts/offchain-helpers/errors/SDKErrorsDirectory.sol/SDKErrorsDirectory.dbg.json +1 -1
  65. package/build/artifacts/contracts/offchain-helpers/errors/SDKErrorsDirectory.sol/SDKErrorsDirectory.json +27 -2
  66. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
  67. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +2 -2
  68. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
  69. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +2 -2
  70. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
  71. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +2 -2
  72. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
  73. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +68 -2
  74. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
  75. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +2 -2
  76. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
  77. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +2 -2
  78. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
  79. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +2 -2
  80. package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
  81. package/build/artifacts/contracts/oracles/PendleBoringOneracle.sol/PendleBoringOneracle.dbg.json +4 -0
  82. package/build/artifacts/contracts/oracles/{internal/PendleBoringOneracle.sol → PendleBoringOneracle.sol}/PendleBoringOneracle.json +3 -3
  83. package/build/artifacts/contracts/oracles/PendleBoringSolvBTCOneracle.sol/PendleBoringSolvBTCOneracle.dbg.json +4 -0
  84. package/build/artifacts/contracts/oracles/{internal/PendleBoringSolvBTCOneracle.sol → PendleBoringSolvBTCOneracle.sol}/PendleBoringSolvBTCOneracle.json +3 -3
  85. package/build/artifacts/contracts/oracles/PendleLpOracleLib.sol/PendleLpOracleLib.dbg.json +4 -0
  86. package/build/artifacts/contracts/oracles/{PtYtLpOracle/PendleLpOracleLib.sol → PendleLpOracleLib.sol}/PendleLpOracleLib.json +3 -3
  87. package/build/artifacts/contracts/oracles/PendlePYLpOracle.sol/PendlePYLpOracle.dbg.json +4 -0
  88. package/build/artifacts/contracts/oracles/{PtYtLpOracle/PendlePYLpOracle.sol → PendlePYLpOracle.sol}/PendlePYLpOracle.json +3 -3
  89. package/build/artifacts/contracts/oracles/PendlePYOracleLib.sol/PendlePYOracleLib.dbg.json +4 -0
  90. package/build/artifacts/contracts/oracles/{PtYtLpOracle/PendlePYOracleLib.sol → PendlePYOracleLib.sol}/PendlePYOracleLib.json +3 -3
  91. package/build/artifacts/contracts/oracles/PendleRedStoneRateOracleAdapter.sol/PendleRedStoneRateOracleAdapter.dbg.json +4 -0
  92. package/build/artifacts/contracts/oracles/{internal/PendleRedStoneRateOracleAdapter.sol → PendleRedStoneRateOracleAdapter.sol}/PendleRedStoneRateOracleAdapter.json +3 -3
  93. package/build/artifacts/contracts/oracles/PendleSparkLinearDiscountOracle.sol/PTExpiry.dbg.json +4 -0
  94. package/build/artifacts/contracts/oracles/{internal/PendleSparkLinearDiscountOracle.sol → PendleSparkLinearDiscountOracle.sol}/PTExpiry.json +1 -1
  95. package/build/artifacts/contracts/oracles/PendleSparkLinearDiscountOracle.sol/PendleSparkLinearDiscountOracle.dbg.json +4 -0
  96. package/build/artifacts/contracts/oracles/{internal/PendleSparkLinearDiscountOracle.sol → PendleSparkLinearDiscountOracle.sol}/PendleSparkLinearDiscountOracle.json +3 -3
  97. package/build/artifacts/contracts/oracles/samples/BoringLpGlpOracle.sol/BoringLpGlpOracle.dbg.json +4 -0
  98. package/build/artifacts/contracts/oracles/{PtYtLpOracle/samples → samples}/BoringLpGlpOracle.sol/BoringLpGlpOracle.json +3 -3
  99. package/build/artifacts/contracts/oracles/samples/BoringLpSeller.sol/BoringLpSeller.dbg.json +4 -0
  100. package/build/artifacts/contracts/oracles/{PtYtLpOracle/samples → samples}/BoringLpSeller.sol/BoringLpSeller.json +1 -1
  101. package/build/artifacts/contracts/oracles/samples/BoringPYUsdChainlinkAssetOracle.sol/BoringPYUsdChainlinkAssetOracle.dbg.json +4 -0
  102. package/build/artifacts/contracts/oracles/{PtYtLpOracle/samples → samples}/BoringPYUsdChainlinkAssetOracle.sol/BoringPYUsdChainlinkAssetOracle.json +3 -3
  103. package/build/artifacts/contracts/oracles/samples/BoringPYUsdChainlinkSYOracle.sol/BoringPYUsdChainlinkSYOracle.dbg.json +4 -0
  104. package/build/artifacts/contracts/oracles/{PtYtLpOracle/samples → samples}/BoringPYUsdChainlinkSYOracle.sol/BoringPYUsdChainlinkSYOracle.json +3 -3
  105. package/build/artifacts/contracts/oracles/samples/BoringPtSeller.sol/BoringPtSeller.dbg.json +4 -0
  106. package/build/artifacts/contracts/oracles/{PtYtLpOracle/samples → samples}/BoringPtSeller.sol/BoringPtSeller.json +1 -1
  107. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.dbg.json +1 -1
  108. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.json +2 -2
  109. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.dbg.json +1 -1
  110. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.json +2 -2
  111. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.dbg.json +1 -1
  112. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.json +2 -2
  113. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.dbg.json +1 -1
  114. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.json +2 -2
  115. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.dbg.json +1 -1
  116. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.json +2 -2
  117. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.dbg.json +1 -1
  118. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.json +2 -2
  119. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.dbg.json +1 -1
  120. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.json +2 -2
  121. package/build/artifacts/contracts/router/Reflector.sol/Reflector.dbg.json +1 -1
  122. package/build/artifacts/contracts/router/Reflector.sol/Reflector.json +2 -2
  123. package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
  124. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.dbg.json +1 -1
  125. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.json +2 -2
  126. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.dbg.json +1 -1
  127. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.json +2 -2
  128. package/build/artifacts/contracts/router/math/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
  129. package/build/artifacts/contracts/router/math/MarketApproxLib.sol/MarketApproxPtInLib.json +2 -2
  130. package/build/artifacts/contracts/router/math/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
  131. package/build/artifacts/contracts/router/math/MarketApproxLib.sol/MarketApproxPtOutLib.json +2 -2
  132. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.dbg.json +1 -1
  133. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.json +2 -2
  134. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.dbg.json +1 -1
  135. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.json +2 -2
  136. package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.dbg.json +1 -1
  137. package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.json +65 -0
  138. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IKyberScalingHelper.dbg.json +1 -1
  139. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IOdosRouterV2.dbg.json +4 -0
  140. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IOdosRouterV2.json +82 -0
  141. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.dbg.json +1 -1
  142. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.json +67 -2
  143. package/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol +16 -10
  144. package/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol +27 -6
  145. package/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol +3 -2
  146. package/contracts/core/StandardizedYield/SYBaseWithoutPermitUpg.sol +7 -1
  147. package/contracts/core/StandardizedYield/implementations/AaveV3/{PendleAaveV3WithRewardsSY.sol → PendleAaveV3WithRewardsSYUpg.sol} +27 -45
  148. package/contracts/core/StandardizedYield/implementations/AaveV3/PendleStkGHOSY.sol +130 -0
  149. package/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol +1 -2
  150. package/contracts/core/StandardizedYield/implementations/Mantle/PendleCMETHSY.sol +82 -0
  151. package/contracts/core/StandardizedYield/implementations/Silo/PendleSiloWithIncentiveNonBorrowableSY.sol +154 -0
  152. package/contracts/core/StandardizedYield/implementations/Solv/PendleSolvBTCBBNBaseSYUpg.sol +103 -0
  153. package/contracts/core/StandardizedYield/implementations/Solv/PendleSolvHelperBase.sol +47 -0
  154. package/contracts/core/StandardizedYield/implementations/Zerolend/PendleZerolendEBTCSYUpg.sol +101 -0
  155. package/contracts/core/StandardizedYield/implementations/Zerolend/PendleZerolendLBTCSYUpg.sol +32 -0
  156. package/contracts/interfaces/AaveV3/IAaveStkGHO.sol +17 -0
  157. package/contracts/interfaces/Angle/IAngleDistributor.sol +12 -0
  158. package/contracts/interfaces/IPActionMarketCoreStatic.sol +4 -0
  159. package/contracts/interfaces/Zerolend/IZerolendPool.sol +31 -0
  160. package/contracts/interfaces/Zerolend/IZerolendZ0Token.sol +6 -0
  161. package/contracts/offchain-helpers/errors/SDKErrorsDirectory.sol +5 -0
  162. package/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol +1 -1
  163. package/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol +1 -1
  164. package/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol +10 -4
  165. package/contracts/oracles/{internal/PendleBoringOneracle.sol → PendleBoringOneracle.sol} +2 -2
  166. package/contracts/oracles/{internal/PendleBoringSolvBTCOneracle.sol → PendleBoringSolvBTCOneracle.sol} +2 -2
  167. package/contracts/oracles/{PtYtLpOracle/PendlePYLpOracle.sol → PendlePYLpOracle.sol} +2 -2
  168. package/contracts/oracles/{PtYtLpOracle/PendlePYOracleLib.sol → PendlePYOracleLib.sol} +2 -2
  169. package/contracts/oracles/{internal/PendleRedStoneRateOracleAdapter.sol → PendleRedStoneRateOracleAdapter.sol} +3 -3
  170. package/contracts/oracles/{PtYtLpOracle/samples → samples}/BoringLpGlpOracle.sol +3 -3
  171. package/contracts/oracles/{PtYtLpOracle/samples → samples}/BoringLpSeller.sol +1 -1
  172. package/contracts/oracles/{PtYtLpOracle/samples → samples}/BoringPYUsdChainlinkAssetOracle.sol +3 -3
  173. package/contracts/oracles/{PtYtLpOracle/samples → samples}/BoringPYUsdChainlinkSYOracle.sol +3 -3
  174. package/contracts/oracles/{PtYtLpOracle/samples → samples}/BoringPtSeller.sol +1 -1
  175. package/contracts/router/swap-aggregator/IPSwapAggregator.sol +5 -1
  176. package/contracts/router/swap-aggregator/PendleSwap.sol +52 -0
  177. package/deployments/1-core.json +1 -1
  178. package/deployments/1-markets/AGETH-MAINNET-JUN2025.json +14 -0
  179. package/deployments/1-markets/PUFETH-MAINNET-JUN2025.json +14 -0
  180. package/deployments/1-markets/RSETH-MAINNET-JUN2025.json +14 -0
  181. package/deployments/1-markets/RSWETH-MAINNET-JUN2025.json +14 -0
  182. package/deployments/1-markets/STKGHO-MAINNET-APR2025.json +14 -0
  183. package/deployments/1-markets/SUSDE-MAINNET-MAY2025.json +14 -0
  184. package/deployments/1-markets/UNIETH-MAINNET-JUN2025.json +14 -0
  185. package/deployments/1-markets/USD0++-MAINNET-JAN2025.json +14 -0
  186. package/deployments/1-markets/WEETH-MAINNET-JUN2025.json +14 -0
  187. package/deployments/1-markets/ZEROLEND-EBTC-MAINNET-MAR2025.json +14 -0
  188. package/deployments/10-core.json +1 -1
  189. package/deployments/42161-core.json +1 -1
  190. package/deployments/42161-markets/DOLOMITE-USDC-ARBITRUM-JUN2025.json +14 -0
  191. package/deployments/42161-markets/DOLOMITE-WBTC-ARBITRUM-JUN2025.json +14 -0
  192. package/deployments/42161-markets/RSETH-ARBITRUM-JUN2025.json +14 -0
  193. package/deployments/42161-markets/SPSILO-ARBITRUM-MAR2025.json +14 -0
  194. package/deployments/42161-markets/UNIETH-ARBITRUM-JUN2025.json +14 -0
  195. package/deployments/42161-markets/WEETH-ARBITRUM-JUN2025.json +14 -0
  196. package/deployments/5000-core.json +1 -1
  197. package/deployments/5000-markets/CMETH-MANTLE-FEB2025.json +14 -0
  198. package/deployments/56-core.json +2 -2
  199. package/deployments/56-markets/VENUS-BNB-BSC-JUN2025.json +14 -0
  200. package/deployments/8453-core.json +41 -0
  201. package/deployments/8453-offchain-helper.json +6 -0
  202. package/package.json +1 -1
  203. package/typechain-types/ActionMarketCoreStatic.ts +68 -0
  204. package/typechain-types/ActionSwapLimitV3.ts +1667 -0
  205. package/typechain-types/IPActionMarketCoreStatic.ts +68 -0
  206. package/typechain-types/IPActionSwapLimitV3.ts +1667 -0
  207. package/typechain-types/IPActionSwapLimitV3Events.ts +207 -0
  208. package/typechain-types/IPChainlinkOracleFactory.ts +6 -9
  209. package/typechain-types/IPRouterStatic.ts +34 -0
  210. package/typechain-types/IPSwapAggregator.ts +64 -3
  211. package/typechain-types/IZerolendPool.ts +111 -0
  212. package/typechain-types/IZerolendZ0Token.ts +87 -0
  213. package/typechain-types/PendleAaveV3WithRewardsSYUpg.ts +1498 -0
  214. package/typechain-types/PendleChainlinkOracle.ts +16 -16
  215. package/typechain-types/PendleChainlinkOracleFactory.ts +130 -64
  216. package/typechain-types/PendleChainlinkOracleWithQuote.ts +32 -73
  217. package/typechain-types/PendleSiloWithIncentiveNonBorrowableSY.ts +1543 -0
  218. package/typechain-types/PendleSolvBTCBBNBaseSYUpg.ts +1409 -0
  219. package/typechain-types/PendleSolvHelperBase.ts +220 -0
  220. package/typechain-types/PendleSwap.ts +64 -3
  221. package/typechain-types/PendleVotingControllerUpg.ts +135 -43
  222. package/typechain-types/PendleZerolendEBTCSYUpg.ts +1754 -0
  223. package/typechain-types/PendleZerolendLBTCSYUpg.ts +1598 -0
  224. package/typechain-types/VotingControllerStorageUpg.ts +34 -15
  225. package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +1 -1
  226. package/typechain-types/factories/ActionInfoStatic__factory.ts +1 -1
  227. package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +1 -1
  228. package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +67 -1
  229. package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +1 -1
  230. package/typechain-types/factories/ActionMiscV3__factory.ts +1 -1
  231. package/typechain-types/factories/ActionSimple__factory.ts +1 -1
  232. package/typechain-types/factories/ActionStorageStatic__factory.ts +1 -1
  233. package/typechain-types/factories/ActionStorageV4__factory.ts +1 -1
  234. package/typechain-types/factories/ActionSwapLimitV3__factory.ts +2691 -0
  235. package/typechain-types/factories/ActionSwapPTV3__factory.ts +1 -1
  236. package/typechain-types/factories/ActionSwapYTV3__factory.ts +1 -1
  237. package/typechain-types/factories/ActionVePendleStatic__factory.ts +1 -1
  238. package/typechain-types/factories/BoringLpGlpOracle__factory.ts +1 -1
  239. package/typechain-types/factories/BoringPYUsdChainlinkAssetOracle__factory.ts +1 -1
  240. package/typechain-types/factories/BoringPYUsdChainlinkSYOracle__factory.ts +1 -1
  241. package/typechain-types/factories/IPActionMarketCoreStatic__factory.ts +66 -0
  242. package/typechain-types/factories/IPActionSwapLimitV3Events__factory.ts +226 -0
  243. package/typechain-types/factories/IPActionSwapLimitV3__factory.ts +2653 -0
  244. package/typechain-types/factories/IPChainlinkOracleFactory__factory.ts +1 -7
  245. package/typechain-types/factories/IPRouterStatic__factory.ts +66 -0
  246. package/typechain-types/factories/IPSwapAggregator__factory.ts +65 -0
  247. package/typechain-types/factories/IZerolendPool__factory.ts +49 -0
  248. package/typechain-types/factories/IZerolendZ0Token__factory.ts +39 -0
  249. package/typechain-types/factories/PendleAaveV3WithRewardsSYUpg__factory.ts +1246 -0
  250. package/typechain-types/factories/PendleBoringOneracle__factory.ts +1 -1
  251. package/typechain-types/factories/PendleBoringSolvBTCOneracle__factory.ts +1 -1
  252. package/typechain-types/factories/PendleChainlinkOracleFactory__factory.ts +65 -38
  253. package/typechain-types/factories/PendleChainlinkOracleWithQuote__factory.ts +14 -54
  254. package/typechain-types/factories/PendleChainlinkOracle__factory.ts +7 -7
  255. package/typechain-types/factories/PendleChainlinkReceiver__factory.ts +1 -1
  256. package/typechain-types/factories/PendleChainlinkRelayer__factory.ts +1 -1
  257. package/typechain-types/factories/PendleGlpSY__factory.ts +1 -1
  258. package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +1 -1
  259. package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +1 -1
  260. package/typechain-types/factories/PendlePYLpOracle__factory.ts +1 -1
  261. package/typechain-types/factories/PendlePoolDeployHelper__factory.ts +1 -1
  262. package/typechain-types/factories/PendleRedStoneRateOracleAdapter__factory.ts +1 -1
  263. package/typechain-types/factories/PendleRouterStatic__factory.ts +1 -1
  264. package/typechain-types/factories/PendleRouterV4__factory.ts +1 -1
  265. package/typechain-types/factories/PendleSiloWithIncentiveNonBorrowableSY__factory.ts +1317 -0
  266. package/typechain-types/factories/PendleSolvBTCBBNBaseSYUpg__factory.ts +1129 -0
  267. package/typechain-types/factories/PendleSolvHelperBase__factory.ts +172 -0
  268. package/typechain-types/factories/PendleSparkLinearDiscountOracle__factory.ts +1 -1
  269. package/typechain-types/factories/PendleStkGHOSY__factory.ts +1 -1
  270. package/typechain-types/factories/PendleSwap__factory.ts +66 -1
  271. package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +66 -22
  272. package/typechain-types/factories/PendleZerolendEBTCSYUpg__factory.ts +1394 -0
  273. package/typechain-types/factories/PendleZerolendLBTCSYUpg__factory.ts +1283 -0
  274. package/typechain-types/factories/Reflector__factory.ts +1 -1
  275. package/typechain-types/factories/SDKErrorsDirectory__factory.ts +26 -1
  276. package/typechain-types/factories/VotingControllerStorageUpg__factory.ts +19 -6
  277. package/typechain-types/hardhat.d.ts +125 -80
  278. package/typechain-types/index.ts +30 -18
  279. package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithoutPermitUpg.sol/SYBaseUpg.dbg.json +0 -4
  280. package/build/artifacts/contracts/core/StandardizedYield/implementations/AaveV3/PendleAaveV3WithRewardsSY.sol/PendleAaveV3WithRewardsSY.dbg.json +0 -4
  281. package/build/artifacts/contracts/core/StandardizedYield/implementations/AaveV3/PendleAaveV3WithRewardsSY.sol/PendleAaveV3WithRewardsSY.json +0 -1198
  282. package/build/artifacts/contracts/interfaces/IPChainlinkOracle.sol/IPChainlinkOracle.dbg.json +0 -4
  283. package/build/artifacts/contracts/interfaces/IPChainlinkOracle.sol/IPChainlinkOracle.json +0 -122
  284. package/build/artifacts/contracts/interfaces/IPChainlinkOracleFactory.sol/IPChainlinkOracleFactory.dbg.json +0 -4
  285. package/build/artifacts/contracts/interfaces/IPChainlinkOracleFactory.sol/IPChainlinkOracleFactory.json +0 -97
  286. package/build/artifacts/contracts/interfaces/IPChainlinkOracleWithQuote.sol/IPChainlinkOracleWithQuote.dbg.json +0 -4
  287. package/build/artifacts/contracts/interfaces/IPChainlinkOracleWithQuote.sol/IPChainlinkOracleWithQuote.json +0 -262
  288. package/build/artifacts/contracts/offchain-helpers/MarketExchangeRateLib.sol/MarketExchangeRateLib.dbg.json +0 -4
  289. package/build/artifacts/contracts/offchain-helpers/MarketExchangeRateLib.sol/MarketExchangeRateLib.json +0 -10
  290. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendleLpOracleLib.sol/PendleLpOracleLib.dbg.json +0 -4
  291. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYLpOracle.sol/PendlePYLpOracle.dbg.json +0 -4
  292. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYOracleLib.sol/PendlePYOracleLib.dbg.json +0 -4
  293. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracle.sol/PendleChainlinkOracle.dbg.json +0 -4
  294. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracle.sol/PendleChainlinkOracle.json +0 -274
  295. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleBase.sol/PendleChainlinkOracleBase.dbg.json +0 -4
  296. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleBase.sol/PendleChainlinkOracleBase.json +0 -253
  297. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleFactory.sol/PendleChainlinkOracleFactory.dbg.json +0 -4
  298. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleFactory.sol/PendleChainlinkOracleFactory.json +0 -316
  299. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleWithQuote.sol/PendleChainlinkOracleWithQuote.dbg.json +0 -4
  300. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleWithQuote.sol/PendleChainlinkOracleWithQuote.json +0 -341
  301. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringLpGlpOracle.sol/BoringLpGlpOracle.dbg.json +0 -4
  302. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringLpSeller.sol/BoringLpSeller.dbg.json +0 -4
  303. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkAssetOracle.sol/BoringPYUsdChainlinkAssetOracle.dbg.json +0 -4
  304. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkSYOracle.sol/BoringPYUsdChainlinkSYOracle.dbg.json +0 -4
  305. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPtSeller.sol/BoringPtSeller.dbg.json +0 -4
  306. package/build/artifacts/contracts/oracles/internal/PendleBoringOneracle.sol/PendleBoringOneracle.dbg.json +0 -4
  307. package/build/artifacts/contracts/oracles/internal/PendleBoringSolvBTCOneracle.sol/PendleBoringSolvBTCOneracle.dbg.json +0 -4
  308. package/build/artifacts/contracts/oracles/internal/PendleRedStoneRateOracleAdapter.sol/PendleRedStoneRateOracleAdapter.dbg.json +0 -4
  309. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracle.sol/PTExpiry.dbg.json +0 -4
  310. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracle.sol/PendleSparkLinearDiscountOracle.dbg.json +0 -4
  311. package/contracts/interfaces/IPChainlinkOracle.sol +0 -15
  312. package/contracts/interfaces/IPChainlinkOracleFactory.sol +0 -23
  313. package/contracts/interfaces/IPChainlinkOracleWithQuote.sol +0 -8
  314. package/contracts/offchain-helpers/MarketExchangeRateLib.sol +0 -32
  315. package/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracle.sol +0 -40
  316. package/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleBase.sol +0 -129
  317. package/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleFactory.sol +0 -117
  318. package/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleWithQuote.sol +0 -80
  319. /package/contracts/oracles/{PtYtLpOracle/PendleLpOracleLib.sol → PendleLpOracleLib.sol} +0 -0
  320. /package/contracts/oracles/{internal/PendleSparkLinearDiscountOracle.sol → PendleSparkLinearDiscountOracle.sol} +0 -0
@@ -338,6 +338,72 @@ const _abi = [
338
338
  stateMutability: "view",
339
339
  type: "function",
340
340
  },
341
+ {
342
+ inputs: [
343
+ {
344
+ internalType: "address",
345
+ name: "market",
346
+ type: "address",
347
+ },
348
+ ],
349
+ name: "readMarketState",
350
+ outputs: [
351
+ {
352
+ components: [
353
+ {
354
+ internalType: "int256",
355
+ name: "totalPt",
356
+ type: "int256",
357
+ },
358
+ {
359
+ internalType: "int256",
360
+ name: "totalSy",
361
+ type: "int256",
362
+ },
363
+ {
364
+ internalType: "int256",
365
+ name: "totalLp",
366
+ type: "int256",
367
+ },
368
+ {
369
+ internalType: "address",
370
+ name: "treasury",
371
+ type: "address",
372
+ },
373
+ {
374
+ internalType: "int256",
375
+ name: "scalarRoot",
376
+ type: "int256",
377
+ },
378
+ {
379
+ internalType: "uint256",
380
+ name: "expiry",
381
+ type: "uint256",
382
+ },
383
+ {
384
+ internalType: "uint256",
385
+ name: "lnFeeRateRoot",
386
+ type: "uint256",
387
+ },
388
+ {
389
+ internalType: "uint256",
390
+ name: "reserveFeePercent",
391
+ type: "uint256",
392
+ },
393
+ {
394
+ internalType: "uint256",
395
+ name: "lastLnImpliedRate",
396
+ type: "uint256",
397
+ },
398
+ ],
399
+ internalType: "struct MarketState",
400
+ name: "",
401
+ type: "tuple",
402
+ },
403
+ ],
404
+ stateMutability: "view",
405
+ type: "function",
406
+ },
341
407
  {
342
408
  inputs: [
343
409
  {
@@ -0,0 +1,226 @@
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
+ IPActionSwapLimitV3Events,
9
+ IPActionSwapLimitV3EventsInterface,
10
+ } from "../IPActionSwapLimitV3Events";
11
+
12
+ const _abi = [
13
+ {
14
+ anonymous: false,
15
+ inputs: [
16
+ {
17
+ indexed: true,
18
+ internalType: "address",
19
+ name: "caller",
20
+ type: "address",
21
+ },
22
+ {
23
+ indexed: true,
24
+ internalType: "address",
25
+ name: "market",
26
+ type: "address",
27
+ },
28
+ {
29
+ indexed: true,
30
+ internalType: "address",
31
+ name: "receiver",
32
+ type: "address",
33
+ },
34
+ {
35
+ indexed: false,
36
+ internalType: "uint256",
37
+ name: "maxPtIn",
38
+ type: "uint256",
39
+ },
40
+ {
41
+ indexed: false,
42
+ internalType: "uint256",
43
+ name: "netSyOut",
44
+ type: "uint256",
45
+ },
46
+ {
47
+ indexed: false,
48
+ internalType: "uint256",
49
+ name: "netPtReturned",
50
+ type: "uint256",
51
+ },
52
+ ],
53
+ name: "SwapMaxPtForSyLimitOnly",
54
+ type: "event",
55
+ },
56
+ {
57
+ anonymous: false,
58
+ inputs: [
59
+ {
60
+ indexed: true,
61
+ internalType: "address",
62
+ name: "caller",
63
+ type: "address",
64
+ },
65
+ {
66
+ indexed: true,
67
+ internalType: "address",
68
+ name: "market",
69
+ type: "address",
70
+ },
71
+ {
72
+ indexed: true,
73
+ internalType: "address",
74
+ name: "token",
75
+ type: "address",
76
+ },
77
+ {
78
+ indexed: false,
79
+ internalType: "address",
80
+ name: "receiver",
81
+ type: "address",
82
+ },
83
+ {
84
+ indexed: false,
85
+ internalType: "uint256",
86
+ name: "maxPtIn",
87
+ type: "uint256",
88
+ },
89
+ {
90
+ indexed: false,
91
+ internalType: "uint256",
92
+ name: "netTokenOut",
93
+ type: "uint256",
94
+ },
95
+ {
96
+ indexed: false,
97
+ internalType: "uint256",
98
+ name: "netSyInterm",
99
+ type: "uint256",
100
+ },
101
+ {
102
+ indexed: false,
103
+ internalType: "uint256",
104
+ name: "netPtReturned",
105
+ type: "uint256",
106
+ },
107
+ ],
108
+ name: "SwapMaxPtForTokenLimitOnly",
109
+ type: "event",
110
+ },
111
+ {
112
+ anonymous: false,
113
+ inputs: [
114
+ {
115
+ indexed: true,
116
+ internalType: "address",
117
+ name: "caller",
118
+ type: "address",
119
+ },
120
+ {
121
+ indexed: true,
122
+ internalType: "address",
123
+ name: "market",
124
+ type: "address",
125
+ },
126
+ {
127
+ indexed: true,
128
+ internalType: "address",
129
+ name: "receiver",
130
+ type: "address",
131
+ },
132
+ {
133
+ indexed: false,
134
+ internalType: "uint256",
135
+ name: "maxSyIn",
136
+ type: "uint256",
137
+ },
138
+ {
139
+ indexed: false,
140
+ internalType: "uint256",
141
+ name: "netYtOut",
142
+ type: "uint256",
143
+ },
144
+ {
145
+ indexed: false,
146
+ internalType: "uint256",
147
+ name: "netSyReturned",
148
+ type: "uint256",
149
+ },
150
+ ],
151
+ name: "SwapMaxSyForYtLimitOnly",
152
+ type: "event",
153
+ },
154
+ {
155
+ anonymous: false,
156
+ inputs: [
157
+ {
158
+ indexed: true,
159
+ internalType: "address",
160
+ name: "caller",
161
+ type: "address",
162
+ },
163
+ {
164
+ indexed: true,
165
+ internalType: "address",
166
+ name: "market",
167
+ type: "address",
168
+ },
169
+ {
170
+ indexed: true,
171
+ internalType: "address",
172
+ name: "token",
173
+ type: "address",
174
+ },
175
+ {
176
+ indexed: false,
177
+ internalType: "address",
178
+ name: "receiver",
179
+ type: "address",
180
+ },
181
+ {
182
+ indexed: false,
183
+ internalType: "uint256",
184
+ name: "maxTokenIn",
185
+ type: "uint256",
186
+ },
187
+ {
188
+ indexed: false,
189
+ internalType: "uint256",
190
+ name: "netYtOut",
191
+ type: "uint256",
192
+ },
193
+ {
194
+ indexed: false,
195
+ internalType: "uint256",
196
+ name: "netSyInterm",
197
+ type: "uint256",
198
+ },
199
+ {
200
+ indexed: false,
201
+ internalType: "uint256",
202
+ name: "netSyReturned",
203
+ type: "uint256",
204
+ },
205
+ ],
206
+ name: "SwapMaxTokenForYtLimitOnly",
207
+ type: "event",
208
+ },
209
+ ];
210
+
211
+ export class IPActionSwapLimitV3Events__factory {
212
+ static readonly abi = _abi;
213
+ static createInterface(): IPActionSwapLimitV3EventsInterface {
214
+ return new utils.Interface(_abi) as IPActionSwapLimitV3EventsInterface;
215
+ }
216
+ static connect(
217
+ address: string,
218
+ signerOrProvider: Signer | Provider
219
+ ): IPActionSwapLimitV3Events {
220
+ return new Contract(
221
+ address,
222
+ _abi,
223
+ signerOrProvider
224
+ ) as IPActionSwapLimitV3Events;
225
+ }
226
+ }