@pendle/core-v2 5.6.0 → 5.7.0-sonic

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 (290) 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/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.dbg.json +1 -1
  142. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.json +2 -2
  143. package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.dbg.json +1 -1
  144. package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.json +2 -2
  145. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.dbg.json +1 -1
  146. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.json +2 -2
  147. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.dbg.json +1 -1
  148. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.json +2 -2
  149. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.dbg.json +1 -1
  150. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.json +2 -2
  151. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.dbg.json +1 -1
  152. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.json +2 -2
  153. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.dbg.json +1 -1
  154. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.json +2 -2
  155. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.dbg.json +1 -1
  156. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.json +2 -2
  157. package/build/artifacts/contracts/router/Reflector.sol/Reflector.dbg.json +1 -1
  158. package/build/artifacts/contracts/router/Reflector.sol/Reflector.json +2 -2
  159. package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
  160. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.dbg.json +1 -1
  161. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.json +2 -2
  162. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.dbg.json +1 -1
  163. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.json +2 -2
  164. package/build/artifacts/contracts/router/math/MarketApproxEstimateLib.sol/MarketApproxEstimateLib.dbg.json +1 -1
  165. package/build/artifacts/contracts/router/math/MarketApproxEstimateLib.sol/MarketApproxEstimateLib.json +2 -2
  166. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.dbg.json +1 -1
  167. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.json +2 -2
  168. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.dbg.json +1 -1
  169. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.json +2 -2
  170. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.dbg.json +1 -1
  171. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.json +2 -2
  172. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.dbg.json +1 -1
  173. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.json +2 -2
  174. package/contracts/core/libraries/math/PMath.sol +5 -0
  175. package/contracts/interfaces/IOwnable.sol +6 -0
  176. package/contracts/interfaces/IPCommonSYFactory.sol +6 -0
  177. package/contracts/interfaces/IPPoolDeployHelperV2.sol +36 -0
  178. package/contracts/interfaces/IPendleCommonPoolDeployHelperV2.sol +30 -0
  179. package/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol +68 -0
  180. package/contracts/offchain-helpers/deploy/PendleCommonSYFactory.sol +67 -0
  181. package/contracts/offchain-helpers/{PendlePoolDeployHelper.sol → deploy/PendlePoolDeployHelper.sol} +5 -5
  182. package/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol +159 -0
  183. package/contracts/offchain-helpers/deploy/lib/MarketDeployLib.sol +70 -0
  184. package/deployments/146-core.json +47 -0
  185. package/deployments/146-offchain-helper.json +6 -0
  186. package/package.json +1 -1
  187. package/typechain-types/BoringPYUsdChainlinkAssetOracle.ts +244 -0
  188. package/typechain-types/BoringPYUsdChainlinkSYOracle.ts +243 -0
  189. package/typechain-types/Broadcaster.ts +454 -0
  190. package/typechain-types/IOwnable.ts +114 -0
  191. package/typechain-types/IPActionMarketCoreStatic.ts +1974 -0
  192. package/typechain-types/IPCommonSYFactory.ts +111 -0
  193. package/typechain-types/IPMarket.ts +1045 -0
  194. package/typechain-types/IPMarketV3.ts +1068 -0
  195. package/typechain-types/IPPoolDeployHelperV2.ts +209 -0
  196. package/typechain-types/IPVotingController.ts +510 -0
  197. package/typechain-types/IPVotingEscrowMainchain.ts +461 -0
  198. package/typechain-types/IPendleCommonPoolDeployHelperV2.ts +391 -0
  199. package/typechain-types/InterestManagerYT.ts +120 -0
  200. package/typechain-types/PendleBoringOneracle.ts +87 -0
  201. package/typechain-types/PendleBoringSolvBTCOneracle.ts +87 -0
  202. package/typechain-types/PendleChainlinkOracle.ts +299 -0
  203. package/typechain-types/PendleChainlinkOracleFactory.ts +468 -0
  204. package/typechain-types/PendleChainlinkOracleWithQuote.ts +335 -0
  205. package/typechain-types/PendleCommonPoolDeployHelperV2.ts +698 -0
  206. package/typechain-types/PendleCommonSYFactory.ts +420 -0
  207. package/typechain-types/PendleExchangeRateOracle.ts +393 -0
  208. package/typechain-types/PendleFeeDistributor.ts +745 -0
  209. package/typechain-types/PendleGauge.ts +225 -0
  210. package/typechain-types/PendleGaugeControllerBaseUpg.ts +670 -0
  211. package/typechain-types/PendleGaugeControllerMainchainUpg.ts +758 -0
  212. package/typechain-types/PendleGaugeControllerSidechainUpg.ts +750 -0
  213. package/typechain-types/PendleMarket.ts +1207 -0
  214. package/typechain-types/PendleMarketFactory.ts +906 -0
  215. package/typechain-types/PendlePYLpOracle.ts +619 -0
  216. package/typechain-types/PendlePoolDeployHelperV2.ts +283 -0
  217. package/typechain-types/PendleRedStoneRateOracleAdapter.ts +133 -0
  218. package/typechain-types/PendleVotingControllerUpg.ts +1621 -0
  219. package/typechain-types/PendleYieldContractFactory.ts +801 -0
  220. package/typechain-types/PendleYieldToken.ts +1107 -0
  221. package/typechain-types/RewardManager.ts +161 -0
  222. package/typechain-types/RewardManagerAbstract.ts +108 -0
  223. package/typechain-types/VotingControllerStorageUpg.ts +915 -0
  224. package/typechain-types/VotingEscrowPendleMainchain.ts +1045 -0
  225. package/typechain-types/VotingEscrowPendleSidechain.ts +558 -0
  226. package/typechain-types/VotingEscrowTokenBase.ts +252 -0
  227. package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +1 -1
  228. package/typechain-types/factories/ActionCallbackV3__factory.ts +1 -1
  229. package/typechain-types/factories/ActionInfoStatic__factory.ts +1 -1
  230. package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +1 -1
  231. package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +1 -1
  232. package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +1 -1
  233. package/typechain-types/factories/ActionMiscV3__factory.ts +1 -1
  234. package/typechain-types/factories/ActionSimple__factory.ts +1 -1
  235. package/typechain-types/factories/ActionStorageStatic__factory.ts +1 -1
  236. package/typechain-types/factories/ActionStorageV4__factory.ts +1 -1
  237. package/typechain-types/factories/ActionSwapPTV3__factory.ts +1 -1
  238. package/typechain-types/factories/ActionSwapYTV3__factory.ts +1 -1
  239. package/typechain-types/factories/ActionVePendleStatic__factory.ts +1 -1
  240. package/typechain-types/factories/BoringPYUsdChainlinkAssetOracle__factory.ts +269 -0
  241. package/typechain-types/factories/BoringPYUsdChainlinkSYOracle__factory.ts +267 -0
  242. package/typechain-types/factories/Broadcaster__factory.ts +311 -0
  243. package/typechain-types/factories/IOwnable__factory.ts +46 -0
  244. package/typechain-types/factories/IPActionMarketCoreStatic__factory.ts +1300 -0
  245. package/typechain-types/factories/IPCommonSYFactory__factory.ts +55 -0
  246. package/typechain-types/factories/IPMarketV3__factory.ts +845 -0
  247. package/typechain-types/factories/IPMarket__factory.ts +832 -0
  248. package/typechain-types/factories/IPPoolDeployHelperV2__factory.ts +181 -0
  249. package/typechain-types/factories/IPVotingController__factory.ts +363 -0
  250. package/typechain-types/factories/IPVotingEscrowMainchain__factory.ts +340 -0
  251. package/typechain-types/factories/IPendleCommonPoolDeployHelperV2__factory.ts +447 -0
  252. package/typechain-types/factories/InterestManagerYT__factory.ts +63 -0
  253. package/typechain-types/factories/LimitBackendHelper__factory.ts +1 -1
  254. package/typechain-types/factories/PendleBoringOneracle__factory.ts +81 -0
  255. package/typechain-types/factories/PendleBoringSolvBTCOneracle__factory.ts +83 -0
  256. package/typechain-types/factories/PendleChainlinkOracleFactory__factory.ts +405 -0
  257. package/typechain-types/factories/PendleChainlinkOracleWithQuote__factory.ts +341 -0
  258. package/typechain-types/factories/PendleChainlinkOracle__factory.ts +306 -0
  259. package/typechain-types/factories/PendleCommonPoolDeployHelperV2__factory.ts +728 -0
  260. package/typechain-types/factories/PendleCommonSYFactory__factory.ts +386 -0
  261. package/typechain-types/factories/PendleExchangeRateOracle__factory.ts +379 -0
  262. package/typechain-types/factories/PendleFeeDistributor__factory.ts +665 -0
  263. package/typechain-types/factories/PendleGaugeControllerBaseUpg__factory.ts +457 -0
  264. package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +620 -0
  265. package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +610 -0
  266. package/typechain-types/factories/PendleGauge__factory.ts +140 -0
  267. package/typechain-types/factories/PendleLimitRouter__factory.ts +1 -1
  268. package/typechain-types/factories/PendleMarketFactoryV3__factory.ts +1 -1
  269. package/typechain-types/factories/PendleMarketFactory__factory.ts +748 -0
  270. package/typechain-types/factories/PendleMarketV3__factory.ts +1 -1
  271. package/typechain-types/factories/PendleMarket__factory.ts +1212 -0
  272. package/typechain-types/factories/PendlePYLpOracle__factory.ts +475 -0
  273. package/typechain-types/factories/PendlePoolDeployHelperV2__factory.ts +308 -0
  274. package/typechain-types/factories/PendlePoolDeployHelper__factory.ts +1 -1
  275. package/typechain-types/factories/PendleRedStoneRateOracleAdapter__factory.ts +157 -0
  276. package/typechain-types/factories/PendleRouterStatic__factory.ts +1 -1
  277. package/typechain-types/factories/PendleRouterV4__factory.ts +1 -1
  278. package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +1278 -0
  279. package/typechain-types/factories/PendleYieldContractFactory__factory.ts +674 -0
  280. package/typechain-types/factories/PendleYieldToken__factory.ts +978 -0
  281. package/typechain-types/factories/Reflector__factory.ts +1 -1
  282. package/typechain-types/factories/RewardManagerAbstract__factory.ts +59 -0
  283. package/typechain-types/factories/RewardManager__factory.ts +89 -0
  284. package/typechain-types/factories/VotingControllerStorageUpg__factory.ts +700 -0
  285. package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +856 -0
  286. package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +455 -0
  287. package/typechain-types/factories/VotingEscrowTokenBase__factory.ts +162 -0
  288. package/typechain-types/hardhat.d.ts +72 -0
  289. package/typechain-types/index.ts +16 -2
  290. package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +0 -4
@@ -0,0 +1,1300 @@
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
+ IPActionMarketCoreStatic,
9
+ IPActionMarketCoreStaticInterface,
10
+ } from "../IPActionMarketCoreStatic";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [
15
+ {
16
+ internalType: "address",
17
+ name: "market",
18
+ type: "address",
19
+ },
20
+ {
21
+ internalType: "uint256",
22
+ name: "netSyDesired",
23
+ type: "uint256",
24
+ },
25
+ {
26
+ internalType: "uint256",
27
+ name: "netPtDesired",
28
+ type: "uint256",
29
+ },
30
+ ],
31
+ name: "addLiquidityDualSyAndPtStatic",
32
+ outputs: [
33
+ {
34
+ internalType: "uint256",
35
+ name: "netLpOut",
36
+ type: "uint256",
37
+ },
38
+ {
39
+ internalType: "uint256",
40
+ name: "netSyUsed",
41
+ type: "uint256",
42
+ },
43
+ {
44
+ internalType: "uint256",
45
+ name: "netPtUsed",
46
+ type: "uint256",
47
+ },
48
+ ],
49
+ stateMutability: "view",
50
+ type: "function",
51
+ },
52
+ {
53
+ inputs: [
54
+ {
55
+ internalType: "address",
56
+ name: "market",
57
+ type: "address",
58
+ },
59
+ {
60
+ internalType: "address",
61
+ name: "tokenIn",
62
+ type: "address",
63
+ },
64
+ {
65
+ internalType: "uint256",
66
+ name: "netTokenDesired",
67
+ type: "uint256",
68
+ },
69
+ {
70
+ internalType: "uint256",
71
+ name: "netPtDesired",
72
+ type: "uint256",
73
+ },
74
+ ],
75
+ name: "addLiquidityDualTokenAndPtStatic",
76
+ outputs: [
77
+ {
78
+ internalType: "uint256",
79
+ name: "netLpOut",
80
+ type: "uint256",
81
+ },
82
+ {
83
+ internalType: "uint256",
84
+ name: "netTokenUsed",
85
+ type: "uint256",
86
+ },
87
+ {
88
+ internalType: "uint256",
89
+ name: "netPtUsed",
90
+ type: "uint256",
91
+ },
92
+ {
93
+ internalType: "uint256",
94
+ name: "netSyUsed",
95
+ type: "uint256",
96
+ },
97
+ {
98
+ internalType: "uint256",
99
+ name: "netSyDesired",
100
+ type: "uint256",
101
+ },
102
+ ],
103
+ stateMutability: "view",
104
+ type: "function",
105
+ },
106
+ {
107
+ inputs: [
108
+ {
109
+ internalType: "address",
110
+ name: "market",
111
+ type: "address",
112
+ },
113
+ {
114
+ internalType: "uint256",
115
+ name: "netPtIn",
116
+ type: "uint256",
117
+ },
118
+ ],
119
+ name: "addLiquiditySinglePtStatic",
120
+ outputs: [
121
+ {
122
+ internalType: "uint256",
123
+ name: "netLpOut",
124
+ type: "uint256",
125
+ },
126
+ {
127
+ internalType: "uint256",
128
+ name: "netPtToSwap",
129
+ type: "uint256",
130
+ },
131
+ {
132
+ internalType: "uint256",
133
+ name: "netSyFee",
134
+ type: "uint256",
135
+ },
136
+ {
137
+ internalType: "uint256",
138
+ name: "priceImpact",
139
+ type: "uint256",
140
+ },
141
+ {
142
+ internalType: "uint256",
143
+ name: "exchangeRateAfter",
144
+ type: "uint256",
145
+ },
146
+ {
147
+ internalType: "uint256",
148
+ name: "netSyFromSwap",
149
+ type: "uint256",
150
+ },
151
+ ],
152
+ stateMutability: "view",
153
+ type: "function",
154
+ },
155
+ {
156
+ inputs: [
157
+ {
158
+ internalType: "address",
159
+ name: "market",
160
+ type: "address",
161
+ },
162
+ {
163
+ internalType: "uint256",
164
+ name: "netSyIn",
165
+ type: "uint256",
166
+ },
167
+ ],
168
+ name: "addLiquiditySingleSyKeepYtStatic",
169
+ outputs: [
170
+ {
171
+ internalType: "uint256",
172
+ name: "netLpOut",
173
+ type: "uint256",
174
+ },
175
+ {
176
+ internalType: "uint256",
177
+ name: "netYtOut",
178
+ type: "uint256",
179
+ },
180
+ {
181
+ internalType: "uint256",
182
+ name: "netSyToPY",
183
+ type: "uint256",
184
+ },
185
+ ],
186
+ stateMutability: "view",
187
+ type: "function",
188
+ },
189
+ {
190
+ inputs: [
191
+ {
192
+ internalType: "address",
193
+ name: "market",
194
+ type: "address",
195
+ },
196
+ {
197
+ internalType: "uint256",
198
+ name: "netSyIn",
199
+ type: "uint256",
200
+ },
201
+ ],
202
+ name: "addLiquiditySingleSyStatic",
203
+ outputs: [
204
+ {
205
+ internalType: "uint256",
206
+ name: "netLpOut",
207
+ type: "uint256",
208
+ },
209
+ {
210
+ internalType: "uint256",
211
+ name: "netPtFromSwap",
212
+ type: "uint256",
213
+ },
214
+ {
215
+ internalType: "uint256",
216
+ name: "netSyFee",
217
+ type: "uint256",
218
+ },
219
+ {
220
+ internalType: "uint256",
221
+ name: "priceImpact",
222
+ type: "uint256",
223
+ },
224
+ {
225
+ internalType: "uint256",
226
+ name: "exchangeRateAfter",
227
+ type: "uint256",
228
+ },
229
+ {
230
+ internalType: "uint256",
231
+ name: "netSyToSwap",
232
+ type: "uint256",
233
+ },
234
+ ],
235
+ stateMutability: "view",
236
+ type: "function",
237
+ },
238
+ {
239
+ inputs: [
240
+ {
241
+ internalType: "address",
242
+ name: "market",
243
+ type: "address",
244
+ },
245
+ {
246
+ internalType: "address",
247
+ name: "tokenIn",
248
+ type: "address",
249
+ },
250
+ {
251
+ internalType: "uint256",
252
+ name: "netTokenIn",
253
+ type: "uint256",
254
+ },
255
+ ],
256
+ name: "addLiquiditySingleTokenKeepYtStatic",
257
+ outputs: [
258
+ {
259
+ internalType: "uint256",
260
+ name: "netLpOut",
261
+ type: "uint256",
262
+ },
263
+ {
264
+ internalType: "uint256",
265
+ name: "netYtOut",
266
+ type: "uint256",
267
+ },
268
+ {
269
+ internalType: "uint256",
270
+ name: "netSyMinted",
271
+ type: "uint256",
272
+ },
273
+ {
274
+ internalType: "uint256",
275
+ name: "netSyToPY",
276
+ type: "uint256",
277
+ },
278
+ ],
279
+ stateMutability: "view",
280
+ type: "function",
281
+ },
282
+ {
283
+ inputs: [
284
+ {
285
+ internalType: "address",
286
+ name: "market",
287
+ type: "address",
288
+ },
289
+ {
290
+ internalType: "address",
291
+ name: "tokenIn",
292
+ type: "address",
293
+ },
294
+ {
295
+ internalType: "uint256",
296
+ name: "netTokenIn",
297
+ type: "uint256",
298
+ },
299
+ ],
300
+ name: "addLiquiditySingleTokenStatic",
301
+ outputs: [
302
+ {
303
+ internalType: "uint256",
304
+ name: "netLpOut",
305
+ type: "uint256",
306
+ },
307
+ {
308
+ internalType: "uint256",
309
+ name: "netPtFromSwap",
310
+ type: "uint256",
311
+ },
312
+ {
313
+ internalType: "uint256",
314
+ name: "netSyFee",
315
+ type: "uint256",
316
+ },
317
+ {
318
+ internalType: "uint256",
319
+ name: "priceImpact",
320
+ type: "uint256",
321
+ },
322
+ {
323
+ internalType: "uint256",
324
+ name: "exchangeRateAfter",
325
+ type: "uint256",
326
+ },
327
+ {
328
+ internalType: "uint256",
329
+ name: "netSyMinted",
330
+ type: "uint256",
331
+ },
332
+ {
333
+ internalType: "uint256",
334
+ name: "netSyToSwap",
335
+ type: "uint256",
336
+ },
337
+ ],
338
+ stateMutability: "view",
339
+ type: "function",
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
+ },
407
+ {
408
+ inputs: [
409
+ {
410
+ internalType: "address",
411
+ name: "market",
412
+ type: "address",
413
+ },
414
+ {
415
+ internalType: "uint256",
416
+ name: "netLpToRemove",
417
+ type: "uint256",
418
+ },
419
+ ],
420
+ name: "removeLiquidityDualSyAndPtStatic",
421
+ outputs: [
422
+ {
423
+ internalType: "uint256",
424
+ name: "netSyOut",
425
+ type: "uint256",
426
+ },
427
+ {
428
+ internalType: "uint256",
429
+ name: "netPtOut",
430
+ type: "uint256",
431
+ },
432
+ ],
433
+ stateMutability: "view",
434
+ type: "function",
435
+ },
436
+ {
437
+ inputs: [
438
+ {
439
+ internalType: "address",
440
+ name: "market",
441
+ type: "address",
442
+ },
443
+ {
444
+ internalType: "uint256",
445
+ name: "netLpToRemove",
446
+ type: "uint256",
447
+ },
448
+ {
449
+ internalType: "address",
450
+ name: "tokenOut",
451
+ type: "address",
452
+ },
453
+ ],
454
+ name: "removeLiquidityDualTokenAndPtStatic",
455
+ outputs: [
456
+ {
457
+ internalType: "uint256",
458
+ name: "netTokenOut",
459
+ type: "uint256",
460
+ },
461
+ {
462
+ internalType: "uint256",
463
+ name: "netPtOut",
464
+ type: "uint256",
465
+ },
466
+ {
467
+ internalType: "uint256",
468
+ name: "netSyToRedeem",
469
+ type: "uint256",
470
+ },
471
+ ],
472
+ stateMutability: "view",
473
+ type: "function",
474
+ },
475
+ {
476
+ inputs: [
477
+ {
478
+ internalType: "address",
479
+ name: "market",
480
+ type: "address",
481
+ },
482
+ {
483
+ internalType: "uint256",
484
+ name: "netLpToRemove",
485
+ type: "uint256",
486
+ },
487
+ ],
488
+ name: "removeLiquiditySinglePtStatic",
489
+ outputs: [
490
+ {
491
+ internalType: "uint256",
492
+ name: "netPtOut",
493
+ type: "uint256",
494
+ },
495
+ {
496
+ internalType: "uint256",
497
+ name: "netPtFromSwap",
498
+ type: "uint256",
499
+ },
500
+ {
501
+ internalType: "uint256",
502
+ name: "netSyFee",
503
+ type: "uint256",
504
+ },
505
+ {
506
+ internalType: "uint256",
507
+ name: "priceImpact",
508
+ type: "uint256",
509
+ },
510
+ {
511
+ internalType: "uint256",
512
+ name: "exchangeRateAfter",
513
+ type: "uint256",
514
+ },
515
+ {
516
+ internalType: "uint256",
517
+ name: "netSyFromBurn",
518
+ type: "uint256",
519
+ },
520
+ {
521
+ internalType: "uint256",
522
+ name: "netPtFromBurn",
523
+ type: "uint256",
524
+ },
525
+ ],
526
+ stateMutability: "view",
527
+ type: "function",
528
+ },
529
+ {
530
+ inputs: [
531
+ {
532
+ internalType: "address",
533
+ name: "market",
534
+ type: "address",
535
+ },
536
+ {
537
+ internalType: "uint256",
538
+ name: "netLpToRemove",
539
+ type: "uint256",
540
+ },
541
+ ],
542
+ name: "removeLiquiditySingleSyStatic",
543
+ outputs: [
544
+ {
545
+ internalType: "uint256",
546
+ name: "netSyOut",
547
+ type: "uint256",
548
+ },
549
+ {
550
+ internalType: "uint256",
551
+ name: "netSyFee",
552
+ type: "uint256",
553
+ },
554
+ {
555
+ internalType: "uint256",
556
+ name: "priceImpact",
557
+ type: "uint256",
558
+ },
559
+ {
560
+ internalType: "uint256",
561
+ name: "exchangeRateAfter",
562
+ type: "uint256",
563
+ },
564
+ {
565
+ internalType: "uint256",
566
+ name: "netSyFromBurn",
567
+ type: "uint256",
568
+ },
569
+ {
570
+ internalType: "uint256",
571
+ name: "netPtFromBurn",
572
+ type: "uint256",
573
+ },
574
+ {
575
+ internalType: "uint256",
576
+ name: "netSyFromSwap",
577
+ type: "uint256",
578
+ },
579
+ ],
580
+ stateMutability: "view",
581
+ type: "function",
582
+ },
583
+ {
584
+ inputs: [
585
+ {
586
+ internalType: "address",
587
+ name: "market",
588
+ type: "address",
589
+ },
590
+ {
591
+ internalType: "uint256",
592
+ name: "netLpToRemove",
593
+ type: "uint256",
594
+ },
595
+ {
596
+ internalType: "address",
597
+ name: "tokenOut",
598
+ type: "address",
599
+ },
600
+ ],
601
+ name: "removeLiquiditySingleTokenStatic",
602
+ outputs: [
603
+ {
604
+ internalType: "uint256",
605
+ name: "netTokenOut",
606
+ type: "uint256",
607
+ },
608
+ {
609
+ internalType: "uint256",
610
+ name: "netSyFee",
611
+ type: "uint256",
612
+ },
613
+ {
614
+ internalType: "uint256",
615
+ name: "priceImpact",
616
+ type: "uint256",
617
+ },
618
+ {
619
+ internalType: "uint256",
620
+ name: "exchangeRateAfter",
621
+ type: "uint256",
622
+ },
623
+ {
624
+ internalType: "uint256",
625
+ name: "netSyOut",
626
+ type: "uint256",
627
+ },
628
+ {
629
+ internalType: "uint256",
630
+ name: "netSyFromBurn",
631
+ type: "uint256",
632
+ },
633
+ {
634
+ internalType: "uint256",
635
+ name: "netPtFromBurn",
636
+ type: "uint256",
637
+ },
638
+ {
639
+ internalType: "uint256",
640
+ name: "netSyFromSwap",
641
+ type: "uint256",
642
+ },
643
+ ],
644
+ stateMutability: "view",
645
+ type: "function",
646
+ },
647
+ {
648
+ inputs: [
649
+ {
650
+ internalType: "address",
651
+ name: "market",
652
+ type: "address",
653
+ },
654
+ {
655
+ internalType: "uint256",
656
+ name: "exactPtIn",
657
+ type: "uint256",
658
+ },
659
+ ],
660
+ name: "swapExactPtForSyStatic",
661
+ outputs: [
662
+ {
663
+ internalType: "uint256",
664
+ name: "netSyOut",
665
+ type: "uint256",
666
+ },
667
+ {
668
+ internalType: "uint256",
669
+ name: "netSyFee",
670
+ type: "uint256",
671
+ },
672
+ {
673
+ internalType: "uint256",
674
+ name: "priceImpact",
675
+ type: "uint256",
676
+ },
677
+ {
678
+ internalType: "uint256",
679
+ name: "exchangeRateAfter",
680
+ type: "uint256",
681
+ },
682
+ ],
683
+ stateMutability: "view",
684
+ type: "function",
685
+ },
686
+ {
687
+ inputs: [
688
+ {
689
+ internalType: "address",
690
+ name: "market",
691
+ type: "address",
692
+ },
693
+ {
694
+ internalType: "uint256",
695
+ name: "exactPtIn",
696
+ type: "uint256",
697
+ },
698
+ {
699
+ internalType: "address",
700
+ name: "tokenOut",
701
+ type: "address",
702
+ },
703
+ ],
704
+ name: "swapExactPtForTokenStatic",
705
+ outputs: [
706
+ {
707
+ internalType: "uint256",
708
+ name: "netTokenOut",
709
+ type: "uint256",
710
+ },
711
+ {
712
+ internalType: "uint256",
713
+ name: "netSyToRedeem",
714
+ type: "uint256",
715
+ },
716
+ {
717
+ internalType: "uint256",
718
+ name: "netSyFee",
719
+ type: "uint256",
720
+ },
721
+ {
722
+ internalType: "uint256",
723
+ name: "priceImpact",
724
+ type: "uint256",
725
+ },
726
+ {
727
+ internalType: "uint256",
728
+ name: "exchangeRateAfter",
729
+ type: "uint256",
730
+ },
731
+ ],
732
+ stateMutability: "view",
733
+ type: "function",
734
+ },
735
+ {
736
+ inputs: [
737
+ {
738
+ internalType: "address",
739
+ name: "market",
740
+ type: "address",
741
+ },
742
+ {
743
+ internalType: "uint256",
744
+ name: "exactPtIn",
745
+ type: "uint256",
746
+ },
747
+ ],
748
+ name: "swapExactPtForYtStatic",
749
+ outputs: [
750
+ {
751
+ internalType: "uint256",
752
+ name: "netYtOut",
753
+ type: "uint256",
754
+ },
755
+ {
756
+ internalType: "uint256",
757
+ name: "totalPtToSwap",
758
+ type: "uint256",
759
+ },
760
+ {
761
+ internalType: "uint256",
762
+ name: "netSyFee",
763
+ type: "uint256",
764
+ },
765
+ {
766
+ internalType: "uint256",
767
+ name: "priceImpact",
768
+ type: "uint256",
769
+ },
770
+ {
771
+ internalType: "uint256",
772
+ name: "exchangeRateAfter",
773
+ type: "uint256",
774
+ },
775
+ ],
776
+ stateMutability: "view",
777
+ type: "function",
778
+ },
779
+ {
780
+ inputs: [
781
+ {
782
+ internalType: "address",
783
+ name: "market",
784
+ type: "address",
785
+ },
786
+ {
787
+ internalType: "uint256",
788
+ name: "exactSyIn",
789
+ type: "uint256",
790
+ },
791
+ ],
792
+ name: "swapExactSyForPtStatic",
793
+ outputs: [
794
+ {
795
+ internalType: "uint256",
796
+ name: "netPtOut",
797
+ type: "uint256",
798
+ },
799
+ {
800
+ internalType: "uint256",
801
+ name: "netSyFee",
802
+ type: "uint256",
803
+ },
804
+ {
805
+ internalType: "uint256",
806
+ name: "priceImpact",
807
+ type: "uint256",
808
+ },
809
+ {
810
+ internalType: "uint256",
811
+ name: "exchangeRateAfter",
812
+ type: "uint256",
813
+ },
814
+ ],
815
+ stateMutability: "view",
816
+ type: "function",
817
+ },
818
+ {
819
+ inputs: [
820
+ {
821
+ internalType: "address",
822
+ name: "market",
823
+ type: "address",
824
+ },
825
+ {
826
+ internalType: "uint256",
827
+ name: "exactSyIn",
828
+ type: "uint256",
829
+ },
830
+ ],
831
+ name: "swapExactSyForYtStatic",
832
+ outputs: [
833
+ {
834
+ internalType: "uint256",
835
+ name: "netYtOut",
836
+ type: "uint256",
837
+ },
838
+ {
839
+ internalType: "uint256",
840
+ name: "netSyFee",
841
+ type: "uint256",
842
+ },
843
+ {
844
+ internalType: "uint256",
845
+ name: "priceImpact",
846
+ type: "uint256",
847
+ },
848
+ {
849
+ internalType: "uint256",
850
+ name: "exchangeRateAfter",
851
+ type: "uint256",
852
+ },
853
+ ],
854
+ stateMutability: "view",
855
+ type: "function",
856
+ },
857
+ {
858
+ inputs: [
859
+ {
860
+ internalType: "address",
861
+ name: "market",
862
+ type: "address",
863
+ },
864
+ {
865
+ internalType: "address",
866
+ name: "tokenIn",
867
+ type: "address",
868
+ },
869
+ {
870
+ internalType: "uint256",
871
+ name: "amountTokenIn",
872
+ type: "uint256",
873
+ },
874
+ ],
875
+ name: "swapExactTokenForPtStatic",
876
+ outputs: [
877
+ {
878
+ internalType: "uint256",
879
+ name: "netPtOut",
880
+ type: "uint256",
881
+ },
882
+ {
883
+ internalType: "uint256",
884
+ name: "netSyMinted",
885
+ type: "uint256",
886
+ },
887
+ {
888
+ internalType: "uint256",
889
+ name: "netSyFee",
890
+ type: "uint256",
891
+ },
892
+ {
893
+ internalType: "uint256",
894
+ name: "priceImpact",
895
+ type: "uint256",
896
+ },
897
+ {
898
+ internalType: "uint256",
899
+ name: "exchangeRateAfter",
900
+ type: "uint256",
901
+ },
902
+ ],
903
+ stateMutability: "view",
904
+ type: "function",
905
+ },
906
+ {
907
+ inputs: [
908
+ {
909
+ internalType: "address",
910
+ name: "market",
911
+ type: "address",
912
+ },
913
+ {
914
+ internalType: "address",
915
+ name: "tokenIn",
916
+ type: "address",
917
+ },
918
+ {
919
+ internalType: "uint256",
920
+ name: "amountTokenIn",
921
+ type: "uint256",
922
+ },
923
+ ],
924
+ name: "swapExactTokenForYtStatic",
925
+ outputs: [
926
+ {
927
+ internalType: "uint256",
928
+ name: "netYtOut",
929
+ type: "uint256",
930
+ },
931
+ {
932
+ internalType: "uint256",
933
+ name: "netSyMinted",
934
+ type: "uint256",
935
+ },
936
+ {
937
+ internalType: "uint256",
938
+ name: "netSyFee",
939
+ type: "uint256",
940
+ },
941
+ {
942
+ internalType: "uint256",
943
+ name: "priceImpact",
944
+ type: "uint256",
945
+ },
946
+ {
947
+ internalType: "uint256",
948
+ name: "exchangeRateAfter",
949
+ type: "uint256",
950
+ },
951
+ ],
952
+ stateMutability: "view",
953
+ type: "function",
954
+ },
955
+ {
956
+ inputs: [
957
+ {
958
+ internalType: "address",
959
+ name: "market",
960
+ type: "address",
961
+ },
962
+ {
963
+ internalType: "uint256",
964
+ name: "exactYtIn",
965
+ type: "uint256",
966
+ },
967
+ ],
968
+ name: "swapExactYtForPtStatic",
969
+ outputs: [
970
+ {
971
+ internalType: "uint256",
972
+ name: "netPtOut",
973
+ type: "uint256",
974
+ },
975
+ {
976
+ internalType: "uint256",
977
+ name: "totalPtSwapped",
978
+ type: "uint256",
979
+ },
980
+ {
981
+ internalType: "uint256",
982
+ name: "netSyFee",
983
+ type: "uint256",
984
+ },
985
+ {
986
+ internalType: "uint256",
987
+ name: "priceImpact",
988
+ type: "uint256",
989
+ },
990
+ {
991
+ internalType: "uint256",
992
+ name: "exchangeRateAfter",
993
+ type: "uint256",
994
+ },
995
+ ],
996
+ stateMutability: "view",
997
+ type: "function",
998
+ },
999
+ {
1000
+ inputs: [
1001
+ {
1002
+ internalType: "address",
1003
+ name: "market",
1004
+ type: "address",
1005
+ },
1006
+ {
1007
+ internalType: "uint256",
1008
+ name: "exactYtIn",
1009
+ type: "uint256",
1010
+ },
1011
+ ],
1012
+ name: "swapExactYtForSyStatic",
1013
+ outputs: [
1014
+ {
1015
+ internalType: "uint256",
1016
+ name: "netSyOut",
1017
+ type: "uint256",
1018
+ },
1019
+ {
1020
+ internalType: "uint256",
1021
+ name: "netSyFee",
1022
+ type: "uint256",
1023
+ },
1024
+ {
1025
+ internalType: "uint256",
1026
+ name: "priceImpact",
1027
+ type: "uint256",
1028
+ },
1029
+ {
1030
+ internalType: "uint256",
1031
+ name: "exchangeRateAfter",
1032
+ type: "uint256",
1033
+ },
1034
+ {
1035
+ internalType: "uint256",
1036
+ name: "netSyOwedInt",
1037
+ type: "uint256",
1038
+ },
1039
+ {
1040
+ internalType: "uint256",
1041
+ name: "netPYToRepaySyOwedInt",
1042
+ type: "uint256",
1043
+ },
1044
+ {
1045
+ internalType: "uint256",
1046
+ name: "netPYToRedeemSyOutInt",
1047
+ type: "uint256",
1048
+ },
1049
+ ],
1050
+ stateMutability: "view",
1051
+ type: "function",
1052
+ },
1053
+ {
1054
+ inputs: [
1055
+ {
1056
+ internalType: "address",
1057
+ name: "market",
1058
+ type: "address",
1059
+ },
1060
+ {
1061
+ internalType: "uint256",
1062
+ name: "exactYtIn",
1063
+ type: "uint256",
1064
+ },
1065
+ {
1066
+ internalType: "address",
1067
+ name: "tokenOut",
1068
+ type: "address",
1069
+ },
1070
+ ],
1071
+ name: "swapExactYtForTokenStatic",
1072
+ outputs: [
1073
+ {
1074
+ internalType: "uint256",
1075
+ name: "netTokenOut",
1076
+ type: "uint256",
1077
+ },
1078
+ {
1079
+ internalType: "uint256",
1080
+ name: "netSyFee",
1081
+ type: "uint256",
1082
+ },
1083
+ {
1084
+ internalType: "uint256",
1085
+ name: "priceImpact",
1086
+ type: "uint256",
1087
+ },
1088
+ {
1089
+ internalType: "uint256",
1090
+ name: "exchangeRateAfter",
1091
+ type: "uint256",
1092
+ },
1093
+ {
1094
+ internalType: "uint256",
1095
+ name: "netSyOut",
1096
+ type: "uint256",
1097
+ },
1098
+ {
1099
+ internalType: "uint256",
1100
+ name: "netSyOwedInt",
1101
+ type: "uint256",
1102
+ },
1103
+ {
1104
+ internalType: "uint256",
1105
+ name: "netPYToRepaySyOwedInt",
1106
+ type: "uint256",
1107
+ },
1108
+ {
1109
+ internalType: "uint256",
1110
+ name: "netPYToRedeemSyOutInt",
1111
+ type: "uint256",
1112
+ },
1113
+ ],
1114
+ stateMutability: "view",
1115
+ type: "function",
1116
+ },
1117
+ {
1118
+ inputs: [
1119
+ {
1120
+ internalType: "address",
1121
+ name: "market",
1122
+ type: "address",
1123
+ },
1124
+ {
1125
+ internalType: "uint256",
1126
+ name: "exactSyOut",
1127
+ type: "uint256",
1128
+ },
1129
+ ],
1130
+ name: "swapPtForExactSyStatic",
1131
+ outputs: [
1132
+ {
1133
+ internalType: "uint256",
1134
+ name: "netPtIn",
1135
+ type: "uint256",
1136
+ },
1137
+ {
1138
+ internalType: "uint256",
1139
+ name: "netSyFee",
1140
+ type: "uint256",
1141
+ },
1142
+ {
1143
+ internalType: "uint256",
1144
+ name: "priceImpact",
1145
+ type: "uint256",
1146
+ },
1147
+ {
1148
+ internalType: "uint256",
1149
+ name: "exchangeRateAfter",
1150
+ type: "uint256",
1151
+ },
1152
+ ],
1153
+ stateMutability: "view",
1154
+ type: "function",
1155
+ },
1156
+ {
1157
+ inputs: [
1158
+ {
1159
+ internalType: "address",
1160
+ name: "market",
1161
+ type: "address",
1162
+ },
1163
+ {
1164
+ internalType: "uint256",
1165
+ name: "exactPtOut",
1166
+ type: "uint256",
1167
+ },
1168
+ ],
1169
+ name: "swapSyForExactPtStatic",
1170
+ outputs: [
1171
+ {
1172
+ internalType: "uint256",
1173
+ name: "netSyIn",
1174
+ type: "uint256",
1175
+ },
1176
+ {
1177
+ internalType: "uint256",
1178
+ name: "netSyFee",
1179
+ type: "uint256",
1180
+ },
1181
+ {
1182
+ internalType: "uint256",
1183
+ name: "priceImpact",
1184
+ type: "uint256",
1185
+ },
1186
+ {
1187
+ internalType: "uint256",
1188
+ name: "exchangeRateAfter",
1189
+ type: "uint256",
1190
+ },
1191
+ ],
1192
+ stateMutability: "view",
1193
+ type: "function",
1194
+ },
1195
+ {
1196
+ inputs: [
1197
+ {
1198
+ internalType: "address",
1199
+ name: "market",
1200
+ type: "address",
1201
+ },
1202
+ {
1203
+ internalType: "uint256",
1204
+ name: "exactYtOut",
1205
+ type: "uint256",
1206
+ },
1207
+ ],
1208
+ name: "swapSyForExactYtStatic",
1209
+ outputs: [
1210
+ {
1211
+ internalType: "uint256",
1212
+ name: "netSyIn",
1213
+ type: "uint256",
1214
+ },
1215
+ {
1216
+ internalType: "uint256",
1217
+ name: "netSyFee",
1218
+ type: "uint256",
1219
+ },
1220
+ {
1221
+ internalType: "uint256",
1222
+ name: "priceImpact",
1223
+ type: "uint256",
1224
+ },
1225
+ {
1226
+ internalType: "uint256",
1227
+ name: "exchangeRateAfter",
1228
+ type: "uint256",
1229
+ },
1230
+ {
1231
+ internalType: "uint256",
1232
+ name: "netSyReceivedInt",
1233
+ type: "uint256",
1234
+ },
1235
+ {
1236
+ internalType: "uint256",
1237
+ name: "totalSyNeedInt",
1238
+ type: "uint256",
1239
+ },
1240
+ ],
1241
+ stateMutability: "view",
1242
+ type: "function",
1243
+ },
1244
+ {
1245
+ inputs: [
1246
+ {
1247
+ internalType: "address",
1248
+ name: "market",
1249
+ type: "address",
1250
+ },
1251
+ {
1252
+ internalType: "uint256",
1253
+ name: "exactSyOut",
1254
+ type: "uint256",
1255
+ },
1256
+ ],
1257
+ name: "swapYtForExactSyStatic",
1258
+ outputs: [
1259
+ {
1260
+ internalType: "uint256",
1261
+ name: "netYtIn",
1262
+ type: "uint256",
1263
+ },
1264
+ {
1265
+ internalType: "uint256",
1266
+ name: "netSyFee",
1267
+ type: "uint256",
1268
+ },
1269
+ {
1270
+ internalType: "uint256",
1271
+ name: "priceImpact",
1272
+ type: "uint256",
1273
+ },
1274
+ {
1275
+ internalType: "uint256",
1276
+ name: "exchangeRateAfter",
1277
+ type: "uint256",
1278
+ },
1279
+ ],
1280
+ stateMutability: "view",
1281
+ type: "function",
1282
+ },
1283
+ ];
1284
+
1285
+ export class IPActionMarketCoreStatic__factory {
1286
+ static readonly abi = _abi;
1287
+ static createInterface(): IPActionMarketCoreStaticInterface {
1288
+ return new utils.Interface(_abi) as IPActionMarketCoreStaticInterface;
1289
+ }
1290
+ static connect(
1291
+ address: string,
1292
+ signerOrProvider: Signer | Provider
1293
+ ): IPActionMarketCoreStatic {
1294
+ return new Contract(
1295
+ address,
1296
+ _abi,
1297
+ signerOrProvider
1298
+ ) as IPActionMarketCoreStatic;
1299
+ }
1300
+ }