@pendle/core-v2 5.6.0 → 5.7.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 (295) hide show
  1. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
  2. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
  3. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +2 -2
  4. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
  5. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.json +2 -2
  6. package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +1 -1
  7. package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.json +2 -2
  8. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
  9. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +2 -2
  10. package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
  11. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
  12. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +2 -2
  13. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
  14. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +2 -2
  15. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
  16. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
  17. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.json +2 -2
  18. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
  19. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.json +2 -2
  20. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
  21. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.json +2 -2
  22. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
  23. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.json +2 -2
  24. package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
  25. package/build/artifacts/contracts/core/Market/v1/PendleMarket.sol/PendleMarket.dbg.json +1 -1
  26. package/build/artifacts/contracts/core/Market/v1/PendleMarket.sol/PendleMarket.json +2 -2
  27. package/build/artifacts/contracts/core/Market/v1/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
  28. package/build/artifacts/contracts/core/Market/v1/PendleMarketFactory.sol/PendleMarketFactory.json +2 -2
  29. package/build/artifacts/contracts/core/Market/v3/PendleMarketFactoryV3.sol/PendleMarketFactoryV3.dbg.json +1 -1
  30. package/build/artifacts/contracts/core/Market/v3/PendleMarketFactoryV3.sol/PendleMarketFactoryV3.json +2 -2
  31. package/build/artifacts/contracts/core/Market/v3/PendleMarketV3.sol/PendleMarketV3.dbg.json +1 -1
  32. package/build/artifacts/contracts/core/Market/v3/PendleMarketV3.sol/PendleMarketV3.json +2 -2
  33. package/build/artifacts/contracts/core/RewardManager/RewardManager.sol/RewardManager.dbg.json +1 -1
  34. package/build/artifacts/contracts/core/RewardManager/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
  35. package/build/artifacts/contracts/core/StandardizedYield/PYIndex.sol/PYIndexLib.dbg.json +1 -1
  36. package/build/artifacts/contracts/core/StandardizedYield/PYIndex.sol/PYIndexLib.json +2 -2
  37. package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
  38. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
  39. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +2 -2
  40. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
  41. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +2 -2
  42. package/build/artifacts/contracts/core/libraries/math/PMath.sol/PMath.dbg.json +1 -1
  43. package/build/artifacts/contracts/core/libraries/math/PMath.sol/PMath.json +2 -2
  44. package/build/artifacts/contracts/interfaces/IOwnable.sol/IOwnable.dbg.json +4 -0
  45. package/build/artifacts/contracts/interfaces/IOwnable.sol/IOwnable.json +34 -0
  46. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiqV3.sol/IPActionAddRemoveLiqV3.dbg.json +1 -1
  47. package/build/artifacts/contracts/interfaces/IPActionCallbackV3.sol/IPActionCallbackV3.dbg.json +1 -1
  48. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
  49. package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.dbg.json +1 -1
  50. package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
  51. package/build/artifacts/contracts/interfaces/IPActionSimple.sol/IPActionSimple.dbg.json +1 -1
  52. package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
  53. package/build/artifacts/contracts/interfaces/IPActionStorageV4.sol/IPActionStorageV4.dbg.json +1 -1
  54. package/build/artifacts/contracts/interfaces/IPActionSwapPTV3.sol/IPActionSwapPTV3.dbg.json +1 -1
  55. package/build/artifacts/contracts/interfaces/IPActionSwapYTV3.sol/IPActionSwapYTV3.dbg.json +1 -1
  56. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
  57. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionAddRemoveLiqV3Events.dbg.json +1 -1
  58. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionMiscV3Events.dbg.json +1 -1
  59. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionStorageEvents.dbg.json +1 -1
  60. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapPTV3Events.dbg.json +1 -1
  61. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapYTV3Events.dbg.json +1 -1
  62. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPAllEventsV3.dbg.json +1 -1
  63. package/build/artifacts/contracts/interfaces/IPCommonSYFactory.sol/IPCommonSYFactory.dbg.json +4 -0
  64. package/build/artifacts/contracts/interfaces/IPCommonSYFactory.sol/IPCommonSYFactory.json +40 -0
  65. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitOrderType.dbg.json +1 -1
  66. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouter.dbg.json +1 -1
  67. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouterCallback.dbg.json +1 -1
  68. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
  69. package/build/artifacts/contracts/interfaces/IPMarketV3.sol/IPMarketV3.dbg.json +1 -1
  70. package/build/artifacts/contracts/interfaces/IPPoolDeployHelperV2.sol/IPPoolDeployHelperV2.dbg.json +4 -0
  71. package/build/artifacts/contracts/interfaces/IPPoolDeployHelperV2.sol/IPPoolDeployHelperV2.json +162 -0
  72. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
  73. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
  74. package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
  75. package/build/artifacts/contracts/interfaces/IPendleCommonPoolDeployHelperV2.sol/IPendleCommonPoolDeployHelperV2.dbg.json +4 -0
  76. package/build/artifacts/contracts/interfaces/IPendleCommonPoolDeployHelperV2.sol/IPendleCommonPoolDeployHelperV2.json +426 -0
  77. package/build/artifacts/contracts/limit/LimitMathCore.sol/LimitMathCore.dbg.json +1 -1
  78. package/build/artifacts/contracts/limit/LimitMathCore.sol/LimitMathCore.json +2 -2
  79. package/build/artifacts/contracts/limit/LimitRouterBase.sol/LimitRouterBase.dbg.json +1 -1
  80. package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.dbg.json +1 -1
  81. package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.json +2 -2
  82. package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.dbg.json +1 -1
  83. package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.json +2 -2
  84. package/build/artifacts/contracts/offchain-helpers/LimitBackendHelper.sol/LimitBackendHelper.dbg.json +1 -1
  85. package/build/artifacts/contracts/offchain-helpers/LimitBackendHelper.sol/LimitBackendHelper.json +2 -2
  86. package/build/artifacts/contracts/offchain-helpers/PendleExchangeRateOracle.sol/PendleExchangeRateOracle.dbg.json +1 -1
  87. package/build/artifacts/contracts/offchain-helpers/PendleExchangeRateOracle.sol/PendleExchangeRateOracle.json +2 -2
  88. package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol/PendleCommonPoolDeployHelperV2.dbg.json +4 -0
  89. package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol/PendleCommonPoolDeployHelperV2.json +651 -0
  90. package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonSYFactory.sol/PendleCommonSYFactory.dbg.json +4 -0
  91. package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonSYFactory.sol/PendleCommonSYFactory.json +329 -0
  92. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +4 -0
  93. package/build/artifacts/contracts/offchain-helpers/{PendlePoolDeployHelper.sol → deploy/PendlePoolDeployHelper.sol}/PendlePoolDeployHelper.json +3 -3
  94. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.dbg.json +4 -0
  95. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.json +235 -0
  96. package/build/artifacts/contracts/offchain-helpers/deploy/lib/MarketDeployLib.sol/MarketDeployLib.dbg.json +4 -0
  97. package/build/artifacts/contracts/offchain-helpers/deploy/lib/MarketDeployLib.sol/MarketDeployLib.json +10 -0
  98. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
  99. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +2 -2
  100. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
  101. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +2 -2
  102. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
  103. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +2 -2
  104. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
  105. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +2 -2
  106. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
  107. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +2 -2
  108. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
  109. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +2 -2
  110. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
  111. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +2 -2
  112. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.dbg.json +1 -1
  113. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.json +2 -2
  114. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.dbg.json +1 -1
  115. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.json +2 -2
  116. package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
  117. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendleLpOracleLib.sol/PendleLpOracleLib.dbg.json +1 -1
  118. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendleLpOracleLib.sol/PendleLpOracleLib.json +2 -2
  119. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYLpOracle.sol/PendlePYLpOracle.dbg.json +1 -1
  120. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYLpOracle.sol/PendlePYLpOracle.json +2 -2
  121. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYOracleLib.sol/PendlePYOracleLib.dbg.json +1 -1
  122. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYOracleLib.sol/PendlePYOracleLib.json +2 -2
  123. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracle.sol/PendleChainlinkOracle.dbg.json +1 -1
  124. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracle.sol/PendleChainlinkOracle.json +2 -2
  125. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleFactory.sol/PendleChainlinkOracleFactory.dbg.json +1 -1
  126. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleFactory.sol/PendleChainlinkOracleFactory.json +2 -2
  127. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleWithQuote.sol/PendleChainlinkOracleWithQuote.dbg.json +1 -1
  128. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleWithQuote.sol/PendleChainlinkOracleWithQuote.json +2 -2
  129. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringLpSeller.sol/BoringLpSeller.dbg.json +1 -1
  130. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkAssetOracle.sol/BoringPYUsdChainlinkAssetOracle.dbg.json +1 -1
  131. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkAssetOracle.sol/BoringPYUsdChainlinkAssetOracle.json +2 -2
  132. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkSYOracle.sol/BoringPYUsdChainlinkSYOracle.dbg.json +1 -1
  133. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkSYOracle.sol/BoringPYUsdChainlinkSYOracle.json +2 -2
  134. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPtSeller.sol/BoringPtSeller.dbg.json +1 -1
  135. package/build/artifacts/contracts/oracles/internal/PendleBoringOneracle.sol/PendleBoringOneracle.dbg.json +1 -1
  136. package/build/artifacts/contracts/oracles/internal/PendleBoringOneracle.sol/PendleBoringOneracle.json +2 -2
  137. package/build/artifacts/contracts/oracles/internal/PendleBoringSolvBTCOneracle.sol/PendleBoringSolvBTCOneracle.dbg.json +1 -1
  138. package/build/artifacts/contracts/oracles/internal/PendleBoringSolvBTCOneracle.sol/PendleBoringSolvBTCOneracle.json +2 -2
  139. package/build/artifacts/contracts/oracles/internal/PendleRedStoneRateOracleAdapter.sol/PendleRedStoneRateOracleAdapter.dbg.json +1 -1
  140. package/build/artifacts/contracts/oracles/internal/PendleRedStoneRateOracleAdapter.sol/PendleRedStoneRateOracleAdapter.json +2 -2
  141. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracleFactory.sol/PendleSparkLinearDiscountOracleFactory.dbg.json +1 -1
  142. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracleFactory.sol/PendleSparkLinearDiscountOracleFactory.json +29 -5
  143. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.dbg.json +1 -1
  144. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.json +2 -2
  145. package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.dbg.json +1 -1
  146. package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.json +2 -2
  147. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.dbg.json +1 -1
  148. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.json +2 -2
  149. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.dbg.json +1 -1
  150. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.json +2 -2
  151. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.dbg.json +1 -1
  152. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.json +2 -2
  153. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.dbg.json +1 -1
  154. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.json +2 -2
  155. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.dbg.json +1 -1
  156. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.json +2 -2
  157. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.dbg.json +1 -1
  158. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.json +2 -2
  159. package/build/artifacts/contracts/router/Reflector.sol/Reflector.dbg.json +1 -1
  160. package/build/artifacts/contracts/router/Reflector.sol/Reflector.json +2 -2
  161. package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
  162. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.dbg.json +1 -1
  163. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.json +2 -2
  164. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.dbg.json +1 -1
  165. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.json +2 -2
  166. package/build/artifacts/contracts/router/math/MarketApproxEstimateLib.sol/MarketApproxEstimateLib.dbg.json +1 -1
  167. package/build/artifacts/contracts/router/math/MarketApproxEstimateLib.sol/MarketApproxEstimateLib.json +2 -2
  168. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.dbg.json +1 -1
  169. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.json +2 -2
  170. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.dbg.json +1 -1
  171. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.json +2 -2
  172. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.dbg.json +1 -1
  173. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.json +2 -2
  174. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.dbg.json +1 -1
  175. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.json +2 -2
  176. package/contracts/core/libraries/math/PMath.sol +5 -0
  177. package/contracts/interfaces/IOwnable.sol +6 -0
  178. package/contracts/interfaces/IPCommonSYFactory.sol +6 -0
  179. package/contracts/interfaces/IPPoolDeployHelperV2.sol +36 -0
  180. package/contracts/interfaces/IPendleCommonPoolDeployHelperV2.sol +30 -0
  181. package/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol +68 -0
  182. package/contracts/offchain-helpers/deploy/PendleCommonSYFactory.sol +67 -0
  183. package/contracts/offchain-helpers/{PendlePoolDeployHelper.sol → deploy/PendlePoolDeployHelper.sol} +5 -5
  184. package/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol +159 -0
  185. package/contracts/offchain-helpers/deploy/lib/MarketDeployLib.sol +70 -0
  186. package/contracts/oracles/internal/PendleSparkLinearDiscountOracleFactory.sol +9 -2
  187. package/deployments/146-core.json +47 -0
  188. package/deployments/146-offchain-helper.json +6 -0
  189. package/package.json +1 -1
  190. package/typechain-types/BoringPYUsdChainlinkAssetOracle.ts +244 -0
  191. package/typechain-types/BoringPYUsdChainlinkSYOracle.ts +243 -0
  192. package/typechain-types/Broadcaster.ts +454 -0
  193. package/typechain-types/IOwnable.ts +114 -0
  194. package/typechain-types/IPActionMarketCoreStatic.ts +1974 -0
  195. package/typechain-types/IPCommonSYFactory.ts +111 -0
  196. package/typechain-types/IPMarket.ts +1045 -0
  197. package/typechain-types/IPMarketV3.ts +1068 -0
  198. package/typechain-types/IPPoolDeployHelperV2.ts +209 -0
  199. package/typechain-types/IPVotingController.ts +510 -0
  200. package/typechain-types/IPVotingEscrowMainchain.ts +461 -0
  201. package/typechain-types/IPendleCommonPoolDeployHelperV2.ts +391 -0
  202. package/typechain-types/InterestManagerYT.ts +120 -0
  203. package/typechain-types/PendleBoringOneracle.ts +87 -0
  204. package/typechain-types/PendleBoringSolvBTCOneracle.ts +87 -0
  205. package/typechain-types/PendleChainlinkOracle.ts +299 -0
  206. package/typechain-types/PendleChainlinkOracleFactory.ts +468 -0
  207. package/typechain-types/PendleChainlinkOracleWithQuote.ts +335 -0
  208. package/typechain-types/PendleCommonPoolDeployHelperV2.ts +698 -0
  209. package/typechain-types/PendleCommonSYFactory.ts +420 -0
  210. package/typechain-types/PendleExchangeRateOracle.ts +393 -0
  211. package/typechain-types/PendleFeeDistributor.ts +745 -0
  212. package/typechain-types/PendleGauge.ts +225 -0
  213. package/typechain-types/PendleGaugeControllerBaseUpg.ts +670 -0
  214. package/typechain-types/PendleGaugeControllerMainchainUpg.ts +758 -0
  215. package/typechain-types/PendleGaugeControllerSidechainUpg.ts +750 -0
  216. package/typechain-types/PendleMarket.ts +1207 -0
  217. package/typechain-types/PendleMarketFactory.ts +906 -0
  218. package/typechain-types/PendlePYLpOracle.ts +619 -0
  219. package/typechain-types/PendlePoolDeployHelperV2.ts +283 -0
  220. package/typechain-types/PendleRedStoneRateOracleAdapter.ts +133 -0
  221. package/typechain-types/PendleSparkLinearDiscountOracleFactory.ts +60 -18
  222. package/typechain-types/PendleVotingControllerUpg.ts +1621 -0
  223. package/typechain-types/PendleYieldContractFactory.ts +801 -0
  224. package/typechain-types/PendleYieldToken.ts +1107 -0
  225. package/typechain-types/RewardManager.ts +161 -0
  226. package/typechain-types/RewardManagerAbstract.ts +108 -0
  227. package/typechain-types/VotingControllerStorageUpg.ts +915 -0
  228. package/typechain-types/VotingEscrowPendleMainchain.ts +1045 -0
  229. package/typechain-types/VotingEscrowPendleSidechain.ts +558 -0
  230. package/typechain-types/VotingEscrowTokenBase.ts +252 -0
  231. package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +1 -1
  232. package/typechain-types/factories/ActionCallbackV3__factory.ts +1 -1
  233. package/typechain-types/factories/ActionInfoStatic__factory.ts +1 -1
  234. package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +1 -1
  235. package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +1 -1
  236. package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +1 -1
  237. package/typechain-types/factories/ActionMiscV3__factory.ts +1 -1
  238. package/typechain-types/factories/ActionSimple__factory.ts +1 -1
  239. package/typechain-types/factories/ActionStorageStatic__factory.ts +1 -1
  240. package/typechain-types/factories/ActionStorageV4__factory.ts +1 -1
  241. package/typechain-types/factories/ActionSwapPTV3__factory.ts +1 -1
  242. package/typechain-types/factories/ActionSwapYTV3__factory.ts +1 -1
  243. package/typechain-types/factories/ActionVePendleStatic__factory.ts +1 -1
  244. package/typechain-types/factories/BoringPYUsdChainlinkAssetOracle__factory.ts +269 -0
  245. package/typechain-types/factories/BoringPYUsdChainlinkSYOracle__factory.ts +267 -0
  246. package/typechain-types/factories/Broadcaster__factory.ts +311 -0
  247. package/typechain-types/factories/IOwnable__factory.ts +46 -0
  248. package/typechain-types/factories/IPActionMarketCoreStatic__factory.ts +1300 -0
  249. package/typechain-types/factories/IPCommonSYFactory__factory.ts +55 -0
  250. package/typechain-types/factories/IPMarketV3__factory.ts +845 -0
  251. package/typechain-types/factories/IPMarket__factory.ts +832 -0
  252. package/typechain-types/factories/IPPoolDeployHelperV2__factory.ts +181 -0
  253. package/typechain-types/factories/IPVotingController__factory.ts +363 -0
  254. package/typechain-types/factories/IPVotingEscrowMainchain__factory.ts +340 -0
  255. package/typechain-types/factories/IPendleCommonPoolDeployHelperV2__factory.ts +447 -0
  256. package/typechain-types/factories/InterestManagerYT__factory.ts +63 -0
  257. package/typechain-types/factories/LimitBackendHelper__factory.ts +1 -1
  258. package/typechain-types/factories/PendleBoringOneracle__factory.ts +81 -0
  259. package/typechain-types/factories/PendleBoringSolvBTCOneracle__factory.ts +83 -0
  260. package/typechain-types/factories/PendleChainlinkOracleFactory__factory.ts +405 -0
  261. package/typechain-types/factories/PendleChainlinkOracleWithQuote__factory.ts +341 -0
  262. package/typechain-types/factories/PendleChainlinkOracle__factory.ts +306 -0
  263. package/typechain-types/factories/PendleCommonPoolDeployHelperV2__factory.ts +728 -0
  264. package/typechain-types/factories/PendleCommonSYFactory__factory.ts +386 -0
  265. package/typechain-types/factories/PendleExchangeRateOracle__factory.ts +379 -0
  266. package/typechain-types/factories/PendleFeeDistributor__factory.ts +665 -0
  267. package/typechain-types/factories/PendleGaugeControllerBaseUpg__factory.ts +457 -0
  268. package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +620 -0
  269. package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +610 -0
  270. package/typechain-types/factories/PendleGauge__factory.ts +140 -0
  271. package/typechain-types/factories/PendleLimitRouter__factory.ts +1 -1
  272. package/typechain-types/factories/PendleMarketFactoryV3__factory.ts +1 -1
  273. package/typechain-types/factories/PendleMarketFactory__factory.ts +748 -0
  274. package/typechain-types/factories/PendleMarketV3__factory.ts +1 -1
  275. package/typechain-types/factories/PendleMarket__factory.ts +1212 -0
  276. package/typechain-types/factories/PendlePYLpOracle__factory.ts +475 -0
  277. package/typechain-types/factories/PendlePoolDeployHelperV2__factory.ts +308 -0
  278. package/typechain-types/factories/PendlePoolDeployHelper__factory.ts +1 -1
  279. package/typechain-types/factories/PendleRedStoneRateOracleAdapter__factory.ts +157 -0
  280. package/typechain-types/factories/PendleRouterStatic__factory.ts +1 -1
  281. package/typechain-types/factories/PendleRouterV4__factory.ts +1 -1
  282. package/typechain-types/factories/PendleSparkLinearDiscountOracleFactory__factory.ts +28 -4
  283. package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +1278 -0
  284. package/typechain-types/factories/PendleYieldContractFactory__factory.ts +674 -0
  285. package/typechain-types/factories/PendleYieldToken__factory.ts +978 -0
  286. package/typechain-types/factories/Reflector__factory.ts +1 -1
  287. package/typechain-types/factories/RewardManagerAbstract__factory.ts +59 -0
  288. package/typechain-types/factories/RewardManager__factory.ts +89 -0
  289. package/typechain-types/factories/VotingControllerStorageUpg__factory.ts +700 -0
  290. package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +856 -0
  291. package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +455 -0
  292. package/typechain-types/factories/VotingEscrowTokenBase__factory.ts +162 -0
  293. package/typechain-types/hardhat.d.ts +72 -9
  294. package/typechain-types/index.ts +16 -2
  295. package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +0 -4
@@ -0,0 +1,340 @@
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
+ IPVotingEscrowMainchain,
9
+ IPVotingEscrowMainchainInterface,
10
+ } from "../IPVotingEscrowMainchain";
11
+
12
+ const _abi = [
13
+ {
14
+ anonymous: false,
15
+ inputs: [
16
+ {
17
+ components: [
18
+ {
19
+ internalType: "uint128",
20
+ name: "bias",
21
+ type: "uint128",
22
+ },
23
+ {
24
+ internalType: "uint128",
25
+ name: "slope",
26
+ type: "uint128",
27
+ },
28
+ ],
29
+ indexed: false,
30
+ internalType: "struct VeBalance",
31
+ name: "newTotalSupply",
32
+ type: "tuple",
33
+ },
34
+ {
35
+ indexed: false,
36
+ internalType: "uint256[]",
37
+ name: "chainIds",
38
+ type: "uint256[]",
39
+ },
40
+ ],
41
+ name: "BroadcastTotalSupply",
42
+ type: "event",
43
+ },
44
+ {
45
+ anonymous: false,
46
+ inputs: [
47
+ {
48
+ indexed: true,
49
+ internalType: "address",
50
+ name: "user",
51
+ type: "address",
52
+ },
53
+ {
54
+ indexed: false,
55
+ internalType: "uint256[]",
56
+ name: "chainIds",
57
+ type: "uint256[]",
58
+ },
59
+ ],
60
+ name: "BroadcastUserPosition",
61
+ type: "event",
62
+ },
63
+ {
64
+ anonymous: false,
65
+ inputs: [
66
+ {
67
+ indexed: true,
68
+ internalType: "address",
69
+ name: "user",
70
+ type: "address",
71
+ },
72
+ {
73
+ indexed: false,
74
+ internalType: "uint128",
75
+ name: "amount",
76
+ type: "uint128",
77
+ },
78
+ {
79
+ indexed: false,
80
+ internalType: "uint128",
81
+ name: "expiry",
82
+ type: "uint128",
83
+ },
84
+ ],
85
+ name: "NewLockPosition",
86
+ type: "event",
87
+ },
88
+ {
89
+ anonymous: false,
90
+ inputs: [
91
+ {
92
+ indexed: true,
93
+ internalType: "address",
94
+ name: "user",
95
+ type: "address",
96
+ },
97
+ {
98
+ indexed: false,
99
+ internalType: "uint128",
100
+ name: "amount",
101
+ type: "uint128",
102
+ },
103
+ ],
104
+ name: "Withdraw",
105
+ type: "event",
106
+ },
107
+ {
108
+ inputs: [
109
+ {
110
+ internalType: "address",
111
+ name: "user",
112
+ type: "address",
113
+ },
114
+ ],
115
+ name: "balanceOf",
116
+ outputs: [
117
+ {
118
+ internalType: "uint128",
119
+ name: "",
120
+ type: "uint128",
121
+ },
122
+ ],
123
+ stateMutability: "view",
124
+ type: "function",
125
+ },
126
+ {
127
+ inputs: [
128
+ {
129
+ internalType: "address",
130
+ name: "user",
131
+ type: "address",
132
+ },
133
+ {
134
+ internalType: "uint256",
135
+ name: "index",
136
+ type: "uint256",
137
+ },
138
+ ],
139
+ name: "getUserHistoryAt",
140
+ outputs: [
141
+ {
142
+ components: [
143
+ {
144
+ internalType: "uint128",
145
+ name: "timestamp",
146
+ type: "uint128",
147
+ },
148
+ {
149
+ components: [
150
+ {
151
+ internalType: "uint128",
152
+ name: "bias",
153
+ type: "uint128",
154
+ },
155
+ {
156
+ internalType: "uint128",
157
+ name: "slope",
158
+ type: "uint128",
159
+ },
160
+ ],
161
+ internalType: "struct VeBalance",
162
+ name: "value",
163
+ type: "tuple",
164
+ },
165
+ ],
166
+ internalType: "struct Checkpoint",
167
+ name: "",
168
+ type: "tuple",
169
+ },
170
+ ],
171
+ stateMutability: "view",
172
+ type: "function",
173
+ },
174
+ {
175
+ inputs: [
176
+ {
177
+ internalType: "address",
178
+ name: "user",
179
+ type: "address",
180
+ },
181
+ ],
182
+ name: "getUserHistoryLength",
183
+ outputs: [
184
+ {
185
+ internalType: "uint256",
186
+ name: "",
187
+ type: "uint256",
188
+ },
189
+ ],
190
+ stateMutability: "view",
191
+ type: "function",
192
+ },
193
+ {
194
+ inputs: [
195
+ {
196
+ internalType: "uint128",
197
+ name: "additionalAmountToLock",
198
+ type: "uint128",
199
+ },
200
+ {
201
+ internalType: "uint128",
202
+ name: "expiry",
203
+ type: "uint128",
204
+ },
205
+ ],
206
+ name: "increaseLockPosition",
207
+ outputs: [
208
+ {
209
+ internalType: "uint128",
210
+ name: "",
211
+ type: "uint128",
212
+ },
213
+ ],
214
+ stateMutability: "nonpayable",
215
+ type: "function",
216
+ },
217
+ {
218
+ inputs: [
219
+ {
220
+ internalType: "address",
221
+ name: "user",
222
+ type: "address",
223
+ },
224
+ ],
225
+ name: "positionData",
226
+ outputs: [
227
+ {
228
+ internalType: "uint128",
229
+ name: "amount",
230
+ type: "uint128",
231
+ },
232
+ {
233
+ internalType: "uint128",
234
+ name: "expiry",
235
+ type: "uint128",
236
+ },
237
+ ],
238
+ stateMutability: "view",
239
+ type: "function",
240
+ },
241
+ {
242
+ inputs: [
243
+ {
244
+ internalType: "address",
245
+ name: "user",
246
+ type: "address",
247
+ },
248
+ ],
249
+ name: "totalSupplyAndBalanceCurrent",
250
+ outputs: [
251
+ {
252
+ internalType: "uint128",
253
+ name: "",
254
+ type: "uint128",
255
+ },
256
+ {
257
+ internalType: "uint128",
258
+ name: "",
259
+ type: "uint128",
260
+ },
261
+ ],
262
+ stateMutability: "nonpayable",
263
+ type: "function",
264
+ },
265
+ {
266
+ inputs: [
267
+ {
268
+ internalType: "uint128",
269
+ name: "timestamp",
270
+ type: "uint128",
271
+ },
272
+ ],
273
+ name: "totalSupplyAt",
274
+ outputs: [
275
+ {
276
+ internalType: "uint128",
277
+ name: "",
278
+ type: "uint128",
279
+ },
280
+ ],
281
+ stateMutability: "view",
282
+ type: "function",
283
+ },
284
+ {
285
+ inputs: [],
286
+ name: "totalSupplyCurrent",
287
+ outputs: [
288
+ {
289
+ internalType: "uint128",
290
+ name: "",
291
+ type: "uint128",
292
+ },
293
+ ],
294
+ stateMutability: "nonpayable",
295
+ type: "function",
296
+ },
297
+ {
298
+ inputs: [],
299
+ name: "totalSupplyStored",
300
+ outputs: [
301
+ {
302
+ internalType: "uint128",
303
+ name: "",
304
+ type: "uint128",
305
+ },
306
+ ],
307
+ stateMutability: "view",
308
+ type: "function",
309
+ },
310
+ {
311
+ inputs: [],
312
+ name: "withdraw",
313
+ outputs: [
314
+ {
315
+ internalType: "uint128",
316
+ name: "",
317
+ type: "uint128",
318
+ },
319
+ ],
320
+ stateMutability: "nonpayable",
321
+ type: "function",
322
+ },
323
+ ];
324
+
325
+ export class IPVotingEscrowMainchain__factory {
326
+ static readonly abi = _abi;
327
+ static createInterface(): IPVotingEscrowMainchainInterface {
328
+ return new utils.Interface(_abi) as IPVotingEscrowMainchainInterface;
329
+ }
330
+ static connect(
331
+ address: string,
332
+ signerOrProvider: Signer | Provider
333
+ ): IPVotingEscrowMainchain {
334
+ return new Contract(
335
+ address,
336
+ _abi,
337
+ signerOrProvider
338
+ ) as IPVotingEscrowMainchain;
339
+ }
340
+ }