@pendle/core-v2 6.6.0 → 6.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 (554) hide show
  1. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.dbg.json +1 -1
  2. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.dbg.json +1 -1
  3. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.dbg.json +1 -1
  4. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.dbg.json +1 -1
  5. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/ExcessivelySafeCall.sol/ExcessivelySafeCall.dbg.json +1 -1
  6. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.dbg.json +1 -1
  7. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerUpg.sol/PendleGaugeControllerUpg.dbg.json +1 -1
  8. package/build/artifacts/contracts/LiquidityMining/PendleMerkleDistributor.sol/PendleMerkleDistributor.dbg.json +1 -1
  9. package/build/artifacts/contracts/LiquidityMining/PendleMerkleDistributor.sol/PendleMerkleDistributor.json +2 -88
  10. package/build/artifacts/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol/PendleMultiTokenMerkleDistributor.dbg.json +1 -1
  11. package/build/artifacts/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol/PendleMultiTokenMerkleDistributor.json +2 -122
  12. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
  13. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
  14. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
  15. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
  16. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
  17. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
  18. package/build/artifacts/contracts/LiquidityMining/libraries/WeekMath.sol/WeekMath.dbg.json +1 -1
  19. package/build/artifacts/contracts/LiquidityMining/sPendle/StakedPendle.sol/StakedPendle.dbg.json +1 -1
  20. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
  21. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
  22. package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
  23. package/build/artifacts/contracts/core/Market/PendleMarketFactoryV7Upg.sol/PendleMarketFactoryV7Upg.dbg.json +1 -1
  24. package/build/artifacts/contracts/core/Market/PendleMarketV7.sol/PendleMarketV7.dbg.json +1 -1
  25. package/build/artifacts/contracts/core/RewardManager/RewardManager.sol/RewardManager.dbg.json +1 -1
  26. package/build/artifacts/contracts/core/RewardManager/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
  27. package/build/artifacts/contracts/core/StandardizedYield/PYIndex.sol/PYIndexLib.dbg.json +1 -1
  28. package/build/artifacts/contracts/core/StandardizedYield/SYUtils.sol/SYUtils.dbg.json +1 -1
  29. package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
  30. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
  31. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactoryUpg.sol/PendleYieldContractFactoryUpg.dbg.json +1 -1
  32. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
  33. package/build/artifacts/contracts/core/erc20/PendleERC20.sol/PendleERC20.dbg.json +1 -1
  34. package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.dbg.json +1 -1
  35. package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/BaseSplitCodeFactory.dbg.json +1 -1
  36. package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/CodeDeployer.dbg.json +1 -1
  37. package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeableV2.sol/BoringOwnableUpgradeableData.dbg.json +1 -1
  38. package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeableV2.sol/BoringOwnableUpgradeableV2.dbg.json +1 -1
  39. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
  40. package/build/artifacts/contracts/core/libraries/ExpiryUtilsLib.sol/ExpiryUtils.dbg.json +1 -1
  41. package/build/artifacts/contracts/core/libraries/MiniHelpers.sol/MiniHelpers.dbg.json +1 -1
  42. package/build/artifacts/contracts/core/libraries/StringLib.sol/StringLib.dbg.json +1 -1
  43. package/build/artifacts/contracts/core/libraries/TokenHelper.sol/TokenHelper.dbg.json +1 -1
  44. package/build/artifacts/contracts/core/libraries/math/LogExpMath.sol/LogExpMath.dbg.json +1 -1
  45. package/build/artifacts/contracts/core/libraries/math/PMath.sol/PMath.dbg.json +1 -1
  46. package/build/artifacts/contracts/cross-chain/FixedPricePTAMMV2.sol/FixedPricePTAMMV2.dbg.json +4 -0
  47. package/build/artifacts/contracts/cross-chain/FixedPricePTAMMV2.sol/FixedPricePTAMMV2.json +766 -0
  48. package/build/artifacts/contracts/cross-chain/PendleSwapHelper.sol/PendleSwapHelper.dbg.json +4 -0
  49. package/build/artifacts/contracts/cross-chain/PendleSwapHelper.sol/PendleSwapHelper.json +99 -0
  50. package/build/artifacts/contracts/cross-chain/deposit-box/DepositBox.sol/DepositBox.dbg.json +1 -1
  51. package/build/artifacts/contracts/cross-chain/deposit-box/DepositBoxFactory.sol/DepositBoxFactory.dbg.json +1 -1
  52. package/build/artifacts/contracts/cross-chain/factory/PendleBridgePTFactory.sol/PendleBridgePTFactory.dbg.json +4 -0
  53. package/build/artifacts/contracts/cross-chain/factory/PendleBridgePTFactory.sol/PendleBridgePTFactory.json +1388 -0
  54. package/build/artifacts/contracts/cross-chain/funder/BridgeFunder.sol/BridgeFunder.dbg.json +4 -0
  55. package/build/artifacts/contracts/cross-chain/funder/BridgeFunder.sol/BridgeFunder.json +210 -0
  56. package/build/artifacts/contracts/cross-chain/oftImpl/hub/OFTAdapterAltImpl.sol/OFTAdapterAltImpl.dbg.json +4 -0
  57. package/build/artifacts/contracts/cross-chain/oftImpl/hub/OFTAdapterAltImpl.sol/OFTAdapterAltImpl.json +1326 -0
  58. package/build/artifacts/contracts/cross-chain/oftImpl/hub/OFTAdapterImpl.sol/OFTAdapterImpl.dbg.json +1 -1
  59. package/build/artifacts/contracts/cross-chain/oftImpl/hub/OFTAdapterImpl.sol/OFTAdapterImpl.json +46 -14
  60. package/build/artifacts/contracts/cross-chain/oftImpl/pendleOft/PendleOFT.sol/PendleOFT.dbg.json +4 -0
  61. package/build/artifacts/contracts/cross-chain/oftImpl/pendleOft/PendleOFT.sol/PendleOFT.json +1541 -0
  62. package/build/artifacts/contracts/cross-chain/oftImpl/pendleOft/PendleOFTAlt.sol/PendleOFTAlt.dbg.json +4 -0
  63. package/build/artifacts/contracts/cross-chain/oftImpl/pendleOft/PendleOFTAlt.sol/PendleOFTAlt.json +1570 -0
  64. package/build/artifacts/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalToken.sol/PendleBridgedPrincipalToken.dbg.json +1 -1
  65. package/build/artifacts/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalToken.sol/PendleBridgedPrincipalToken.json +57 -35
  66. package/build/artifacts/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalTokenAlt.sol/PendleBridgedPrincipalTokenAlt.dbg.json +4 -0
  67. package/build/artifacts/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalTokenAlt.sol/PendleBridgedPrincipalTokenAlt.json +1624 -0
  68. package/build/artifacts/contracts/cross-chain/swap-hub/PendleCrossChainSwapHub.sol/PendleCrossChainSwapHub.dbg.json +1 -1
  69. package/build/artifacts/contracts/cross-chain/swap-hub/SwapHubBase.sol/SwapHubBase.dbg.json +1 -1
  70. package/build/artifacts/contracts/deprecated/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.dbg.json +1 -1
  71. package/build/artifacts/contracts/interfaces/IAddressProvider.sol/IAddressProvider.dbg.json +1 -1
  72. package/build/artifacts/contracts/interfaces/ILPWrapper.sol/ILPWrapper.dbg.json +1 -1
  73. package/build/artifacts/contracts/interfaces/ILayerZeroEndpoint.sol/ILayerZeroEndpoint.dbg.json +1 -1
  74. package/build/artifacts/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.dbg.json +1 -1
  75. package/build/artifacts/contracts/interfaces/IMarketSweed.sol/IMarketSweed.dbg.json +1 -1
  76. package/build/artifacts/contracts/interfaces/IOwnable.sol/IOwnable.dbg.json +1 -1
  77. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiqV3.sol/IPActionAddRemoveLiqV3.dbg.json +1 -1
  78. package/build/artifacts/contracts/interfaces/IPActionCallbackV3.sol/IPActionCallbackV3.dbg.json +1 -1
  79. package/build/artifacts/contracts/interfaces/IPActionInfoStatic.sol/IPActionInfoStatic.dbg.json +1 -1
  80. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
  81. package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.dbg.json +1 -1
  82. package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.dbg.json +1 -1
  83. package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
  84. package/build/artifacts/contracts/interfaces/IPActionSimple.sol/IPActionSimple.dbg.json +1 -1
  85. package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
  86. package/build/artifacts/contracts/interfaces/IPActionStorageV4.sol/IPActionStorageV4.dbg.json +1 -1
  87. package/build/artifacts/contracts/interfaces/IPActionSwapPTV3.sol/IPActionSwapPTV3.dbg.json +1 -1
  88. package/build/artifacts/contracts/interfaces/IPActionSwapYTV3.sol/IPActionSwapYTV3.dbg.json +1 -1
  89. package/build/artifacts/contracts/interfaces/IPActionVePendleStatic.sol/IPActionVePendleStatic.dbg.json +1 -1
  90. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
  91. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.json +0 -88
  92. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionAddRemoveLiqV3Events.dbg.json +1 -1
  93. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionMiscV3Events.dbg.json +1 -1
  94. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionStorageEvents.dbg.json +1 -1
  95. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapPTV3Events.dbg.json +1 -1
  96. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapYTV3Events.dbg.json +1 -1
  97. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPAllEventsV3.dbg.json +1 -1
  98. package/build/artifacts/contracts/interfaces/IPBridgeFunder.sol/IPBridgeFunder.dbg.json +4 -0
  99. package/build/artifacts/contracts/interfaces/IPBridgeFunder.sol/IPBridgeFunder.json +85 -0
  100. package/build/artifacts/contracts/interfaces/IPBridgePTFactory.sol/IPBridgePTFactory.dbg.json +4 -0
  101. package/build/artifacts/contracts/interfaces/IPBridgePTFactory.sol/IPBridgePTFactory.json +1026 -0
  102. package/build/artifacts/contracts/interfaces/IPBridgedPrincipalToken.sol/IPBridgedPrincipalToken.dbg.json +1 -1
  103. package/build/artifacts/contracts/interfaces/IPBridgedPrincipalToken.sol/IPBridgedPrincipalToken.json +11 -0
  104. package/build/artifacts/contracts/interfaces/IPChainlinkOracle.sol/IPChainlinkOracle.dbg.json +1 -1
  105. package/build/artifacts/contracts/interfaces/IPChainlinkOracleEssential.sol/IPChainlinkOracleEssential.dbg.json +1 -1
  106. package/build/artifacts/contracts/interfaces/IPChainlinkOracleFactory.sol/IPChainlinkOracleFactory.dbg.json +1 -1
  107. package/build/artifacts/contracts/interfaces/IPChainlinkOracleWithQuote.sol/IPChainlinkOracleWithQuote.dbg.json +1 -1
  108. package/build/artifacts/contracts/interfaces/IPCommonPoolDeployHelperV2.sol/IPCommonPoolDeployHelperV2.dbg.json +1 -1
  109. package/build/artifacts/contracts/interfaces/IPCommonSYFactory.sol/IPCommonSYFactory.dbg.json +1 -1
  110. package/build/artifacts/contracts/interfaces/IPCrossChainSwapHub.sol/IPCrossChainSwapHub.dbg.json +1 -1
  111. package/build/artifacts/contracts/interfaces/IPDepositBox.sol/IPDepositBox.dbg.json +1 -1
  112. package/build/artifacts/contracts/interfaces/IPDepositBoxFactory.sol/IPDepositBoxFactory.dbg.json +1 -1
  113. package/build/artifacts/contracts/interfaces/IPExchangeRateOracle.sol/IPExchangeRateOracle.dbg.json +1 -1
  114. package/build/artifacts/contracts/interfaces/IPExchangeRateOracleApp.sol/IPExchangeRateOracleApp.dbg.json +1 -1
  115. package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.dbg.json +1 -1
  116. package/build/artifacts/contracts/interfaces/IPFeeDistributorV2.sol/IPFeeDistributorV2.dbg.json +1 -1
  117. package/build/artifacts/contracts/interfaces/IPFixedPricePTAMMV2.sol/IPFixedPricePTAMMSwapCallback.dbg.json +4 -0
  118. package/build/artifacts/contracts/interfaces/{IPFixedPricePTAMM.sol → IPFixedPricePTAMMV2.sol}/IPFixedPricePTAMMSwapCallback.json +1 -1
  119. package/build/artifacts/contracts/interfaces/IPFixedPricePTAMMV2.sol/IPFixedPricePTAMMV2.dbg.json +4 -0
  120. package/build/artifacts/contracts/interfaces/{IPFixedPricePTAMM.sol/IPFixedPricePTAMM.json → IPFixedPricePTAMMV2.sol/IPFixedPricePTAMMV2.json} +285 -93
  121. package/build/artifacts/contracts/interfaces/IPGauge.sol/IPGauge.dbg.json +1 -1
  122. package/build/artifacts/contracts/interfaces/IPGaugeController.sol/IPGaugeController.dbg.json +1 -1
  123. package/build/artifacts/contracts/interfaces/IPGovernanceProxy.sol/IPGovernanceProxy.dbg.json +1 -1
  124. package/build/artifacts/contracts/interfaces/IPInterestManagerYT.sol/IPInterestManagerYT.dbg.json +1 -1
  125. package/build/artifacts/contracts/interfaces/IPInterestManagerYTV2.sol/IPInterestManagerYTV2.dbg.json +1 -1
  126. package/build/artifacts/contracts/interfaces/IPLPWrapperFactory.sol/IPLPWrapperFactory.dbg.json +1 -1
  127. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitOrderType.dbg.json +1 -1
  128. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouter.dbg.json +1 -1
  129. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouter.json +156 -0
  130. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouterCallback.dbg.json +1 -1
  131. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
  132. package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.dbg.json +1 -1
  133. package/build/artifacts/contracts/interfaces/IPMarketSwapCallback.sol/IPMarketSwapCallback.dbg.json +1 -1
  134. package/build/artifacts/contracts/interfaces/IPMerkleDistributor.sol/IPMerkleDistributor.dbg.json +1 -1
  135. package/build/artifacts/contracts/interfaces/IPMerkleDistributor.sol/IPMerkleDistributor.json +0 -67
  136. package/build/artifacts/contracts/interfaces/IPMiniDiamond.sol/IPMiniDiamond.dbg.json +1 -1
  137. package/build/artifacts/contracts/interfaces/IPMsgReceiverApp.sol/IPMsgReceiverApp.dbg.json +1 -1
  138. package/build/artifacts/contracts/interfaces/IPMsgSendEndpoint.sol/IPMsgSendEndpoint.dbg.json +1 -1
  139. package/build/artifacts/contracts/interfaces/IPMultiTokenMerkleDistributor.sol/IPMultiTokenMerkleDistributor.dbg.json +1 -1
  140. package/build/artifacts/contracts/interfaces/IPMultiTokenMerkleDistributor.sol/IPMultiTokenMerkleDistributor.json +0 -120
  141. package/build/artifacts/contracts/interfaces/IPOffchainStorage.sol/IPOffchainStorage.dbg.json +1 -1
  142. package/build/artifacts/contracts/interfaces/IPOracleForSy.sol/IPOracleForSy.dbg.json +1 -1
  143. package/build/artifacts/contracts/interfaces/IPPTOFTAdapterFactory.sol/IPPTOFTAdapterFactory.dbg.json +1 -1
  144. package/build/artifacts/contracts/interfaces/IPPYLpOracle.sol/IPPYLpOracle.dbg.json +1 -1
  145. package/build/artifacts/contracts/interfaces/IPPausingInterface.sol/IPPausingInterface.dbg.json +1 -1
  146. package/build/artifacts/contracts/interfaces/IPPoolDeployHelperV2.sol/IPPoolDeployHelperV2.dbg.json +1 -1
  147. package/build/artifacts/contracts/interfaces/IPPriceFeed.sol/IPPriceFeed.dbg.json +1 -1
  148. package/build/artifacts/contracts/interfaces/IPPrincipalToken.sol/IPPrincipalToken.dbg.json +1 -1
  149. package/build/artifacts/contracts/interfaces/IPReflector.sol/IPReflector.dbg.json +1 -1
  150. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
  151. package/build/artifacts/contracts/interfaces/IPStakedPendle.sol/IPStakedPendle.dbg.json +1 -1
  152. package/build/artifacts/contracts/interfaces/IPSwapHelper.sol/IPSwapHelper.dbg.json +4 -0
  153. package/build/artifacts/contracts/interfaces/{IPActionCrossChain.sol/IPActionCrossChain.json → IPSwapHelper.sol/IPSwapHelper.json} +2 -2
  154. package/build/artifacts/contracts/interfaces/IPTokenWithSupplyCap.sol/IPTokenWithSupplyCap.dbg.json +1 -1
  155. package/build/artifacts/contracts/interfaces/IPVeToken.sol/IPVeToken.dbg.json +1 -1
  156. package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
  157. package/build/artifacts/contracts/interfaces/IPYieldContractFactory.sol/IPYieldContractFactory.dbg.json +1 -1
  158. package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.dbg.json +1 -1
  159. package/build/artifacts/contracts/interfaces/IPYieldTokenV2.sol/IPYieldTokenV2.dbg.json +1 -1
  160. package/build/artifacts/contracts/interfaces/IRedstonePriceFeed.sol/IRedstonePriceFeed.dbg.json +1 -1
  161. package/build/artifacts/contracts/interfaces/IRewardManager.sol/IRewardManager.dbg.json +1 -1
  162. package/build/artifacts/contracts/interfaces/IStandardizedYield.sol/IStandardizedYield.dbg.json +1 -1
  163. package/build/artifacts/contracts/interfaces/IWETH.sol/IWETH.dbg.json +1 -1
  164. package/build/artifacts/contracts/interfaces/IWstETH.sol/IWstETH.dbg.json +1 -1
  165. package/build/artifacts/contracts/limit/LimitMathCore.sol/LimitMathCore.dbg.json +1 -1
  166. package/build/artifacts/contracts/limit/LimitMathCore.sol/LimitMathCore.json +2 -2
  167. package/build/artifacts/contracts/limit/LimitRouterBase.sol/LimitRouterBase.dbg.json +1 -1
  168. package/build/artifacts/contracts/limit/LimitRouterBase.sol/LimitRouterBase.json +258 -1
  169. package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.dbg.json +1 -1
  170. package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.json +265 -3
  171. package/build/artifacts/contracts/limit/helpers/MintSyHelper.sol/MintSyHelper.dbg.json +4 -0
  172. package/build/artifacts/contracts/limit/helpers/MintSyHelper.sol/MintSyHelper.json +156 -0
  173. package/build/artifacts/contracts/limit/helpers/NonceManager.sol/NonceManager.dbg.json +1 -1
  174. package/build/artifacts/contracts/offchain-helpers/AddressProvider.sol/AddressProvider.dbg.json +1 -1
  175. package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/AutomateReady.dbg.json +1 -1
  176. package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/IAutomate.dbg.json +1 -1
  177. package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/IOpsProxyFactory.dbg.json +1 -1
  178. package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/ITaskTreasuryUpgradable.dbg.json +1 -1
  179. package/build/artifacts/contracts/offchain-helpers/BalanceReader.sol/BalanceReader.dbg.json +1 -1
  180. package/build/artifacts/contracts/offchain-helpers/BalanceReader.sol/ILegacyMarket.dbg.json +1 -1
  181. package/build/artifacts/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.dbg.json +1 -1
  182. package/build/artifacts/contracts/offchain-helpers/BytesLib.sol/BytesLib.dbg.json +1 -1
  183. package/build/artifacts/contracts/offchain-helpers/EmptyUUPS.sol/EmptyUUPS.dbg.json +1 -1
  184. package/build/artifacts/contracts/offchain-helpers/ExpiredLpPtRedeemer.sol/ExpiredLpPtRedeemer.dbg.json +1 -1
  185. package/build/artifacts/contracts/offchain-helpers/ExpiredLpPtRedeemer.sol/ExpiredLpPtRedeemer.json +2 -2
  186. package/build/artifacts/contracts/offchain-helpers/LegacyNFTHelper.sol/LegacyNFTHelper.dbg.json +1 -1
  187. package/build/artifacts/contracts/offchain-helpers/LegacyNFTHelper.sol/StarNFTV1.dbg.json +1 -1
  188. package/build/artifacts/contracts/offchain-helpers/LimitBackendHelperV2.sol/LimitBackendHelperV2.dbg.json +1 -1
  189. package/build/artifacts/contracts/offchain-helpers/LimitBackendHelperV2.sol/LimitBackendHelperV2.json +2 -2
  190. package/build/artifacts/contracts/offchain-helpers/MarketSweed.sol/MarketSweed.dbg.json +1 -1
  191. package/build/artifacts/contracts/offchain-helpers/MarketSweed.sol/MarketSweed.json +2 -2
  192. package/build/artifacts/contracts/offchain-helpers/Multicall2.sol/Multicall2.dbg.json +1 -1
  193. package/build/artifacts/contracts/offchain-helpers/PendleAPIFeeDepositor.sol/PendleAPIFeeDepositor.dbg.json +1 -1
  194. package/build/artifacts/contracts/offchain-helpers/PendleExchangeRateOracle.sol/PendleExchangeRateOracle.dbg.json +1 -1
  195. package/build/artifacts/contracts/offchain-helpers/PendleFeeSetter.sol/PendleFeeSetter.dbg.json +1 -1
  196. package/build/artifacts/contracts/offchain-helpers/PendleFeeSetter.sol/PendleFeeSetter.json +33 -2
  197. package/build/artifacts/contracts/offchain-helpers/PendleGovernanceProxy.sol/PendleGovernanceProxy.dbg.json +1 -1
  198. package/build/artifacts/contracts/offchain-helpers/PendleLPWrapper.sol/PendleLPWrapper.dbg.json +1 -1
  199. package/build/artifacts/contracts/offchain-helpers/PendleLPWrapperFactory.sol/PendleLPWrapperFactory.dbg.json +1 -1
  200. package/build/artifacts/contracts/offchain-helpers/PendleMerkleDepositor.sol/PendleMerkleDepositor.dbg.json +1 -1
  201. package/build/artifacts/contracts/offchain-helpers/PendleMulticallOwnerV1.sol/PendleMulticallOwnerV1.dbg.json +1 -1
  202. package/build/artifacts/contracts/offchain-helpers/PendleMulticallV1.sol/PendleMulticallV1.dbg.json +1 -1
  203. package/build/artifacts/contracts/offchain-helpers/PendleMulticallV2.sol/PendleMulticallV2.dbg.json +1 -1
  204. package/build/artifacts/contracts/offchain-helpers/PendleOffchainStorage.sol/PendleOffchainStorage.dbg.json +1 -1
  205. package/build/artifacts/contracts/offchain-helpers/PendleProxyAdmin.sol/PendleProxyAdmin.dbg.json +4 -0
  206. package/build/artifacts/contracts/offchain-helpers/PendleProxyAdmin.sol/PendleProxyAdmin.json +171 -0
  207. package/build/artifacts/contracts/offchain-helpers/PendleWstETHPriceFeed.sol/PendleWstETHPriceFeed.dbg.json +1 -1
  208. package/build/artifacts/contracts/offchain-helpers/SimulateHelper.sol/SimulateHelper.dbg.json +1 -1
  209. package/build/artifacts/contracts/offchain-helpers/SupplyCapReader.sol/IPossibleSupplyCapInterface.dbg.json +1 -1
  210. package/build/artifacts/contracts/offchain-helpers/SupplyCapReader.sol/SupplyCapReader.dbg.json +1 -1
  211. package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol/PendleCommonPoolDeployHelperV2.dbg.json +1 -1
  212. package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol/PendleCommonPoolDeployHelperV2.json +2 -2
  213. package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonSYFactory.sol/PendleCommonSYFactory.dbg.json +1 -1
  214. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
  215. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.json +2 -2
  216. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.dbg.json +1 -1
  217. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.json +2 -2
  218. package/build/artifacts/contracts/offchain-helpers/deploy/lib/MarketDeployLib.sol/MarketDeployLib.dbg.json +1 -1
  219. package/build/artifacts/contracts/offchain-helpers/errors/SDKErrorsDirectory.sol/SDKErrorsDirectory.dbg.json +1 -1
  220. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
  221. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +2 -2
  222. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
  223. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +2 -2
  224. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
  225. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +2 -2
  226. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
  227. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +2 -2
  228. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
  229. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +2 -2
  230. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
  231. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +2 -2
  232. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
  233. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +2 -2
  234. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.dbg.json +1 -1
  235. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.json +2 -2
  236. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.dbg.json +1 -1
  237. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.json +2 -2
  238. package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
  239. package/build/artifacts/contracts/oracles/CrossChainOracle/base/PendleCrossChainOracleBaseApp_Init.sol/PendleCrossChainOracleBaseApp_Init.dbg.json +1 -1
  240. package/build/artifacts/contracts/oracles/CrossChainOracle/exchangeRate/PendleExchangeRateOracleApp.sol/PendleExchangeRateOracleApp.dbg.json +1 -1
  241. package/build/artifacts/contracts/oracles/CrossChainOracle/exchangeRate/PendleExchangeRateOracleV2.sol/PendleExchangeRateOracleV2.dbg.json +1 -1
  242. package/build/artifacts/contracts/oracles/CrossChainOracle/libraries/ExchangeRateMsgCodec.sol/ExchangeRateMsgCodec.dbg.json +1 -1
  243. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendleLpOracleLib.sol/PendleLpOracleLib.dbg.json +1 -1
  244. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYLpOracle.sol/PendlePYLpOracle.dbg.json +1 -1
  245. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYOracleLib.sol/PendlePYOracleLib.dbg.json +1 -1
  246. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracle.sol/PendleChainlinkOracle.dbg.json +1 -1
  247. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleFactory.sol/PendleChainlinkOracleFactory.dbg.json +1 -1
  248. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleWithQuote.sol/PendleChainlinkOracleWithQuote.dbg.json +1 -1
  249. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringLpSeller.sol/BoringLpSeller.dbg.json +1 -1
  250. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkAssetOracle.sol/BoringPYUsdChainlinkAssetOracle.dbg.json +1 -1
  251. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkSYOracle.sol/BoringPYUsdChainlinkSYOracle.dbg.json +1 -1
  252. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPtSeller.sol/BoringPtSeller.dbg.json +1 -1
  253. package/build/artifacts/contracts/oracles/StatelessWrapper/PendleLinearDiscountOracleWrapper.sol/PendleLinearDiscountOracleWrapper.dbg.json +1 -1
  254. package/build/artifacts/contracts/oracles/StatelessWrapper/PendleSparkLinearDiscountOracleFactoryWrapper.sol/PendleSparkLinearDiscountOracleFactoryWrapper.dbg.json +1 -1
  255. package/build/artifacts/contracts/oracles/internal/PendleBoringOneracle.sol/PendleBoringOneracle.dbg.json +1 -1
  256. package/build/artifacts/contracts/oracles/internal/PendleBoringSolvBTCOneracle.sol/PendleBoringSolvBTCOneracle.dbg.json +1 -1
  257. package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracle.sol/LPExpiry.dbg.json +1 -1
  258. package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracle.sol/PendleLpLinearDiscountOracle.dbg.json +1 -1
  259. package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracleFactory.sol/PendleLpLinearDiscountOracleFactory.dbg.json +1 -1
  260. package/build/artifacts/contracts/oracles/internal/PendleRedStoneRateOracleAdapter.sol/PendleRedStoneRateOracleAdapter.dbg.json +1 -1
  261. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracle.sol/PTExpiry.dbg.json +1 -1
  262. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracle.sol/PendleSparkLinearDiscountOracle.dbg.json +1 -1
  263. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracleFactory.sol/PendleSparkLinearDiscountOracleFactory.dbg.json +1 -1
  264. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.dbg.json +1 -1
  265. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.json +2 -2
  266. package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.dbg.json +1 -1
  267. package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.json +2 -2
  268. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.dbg.json +1 -1
  269. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.json +2 -2
  270. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.dbg.json +1 -1
  271. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.json +2 -2
  272. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.dbg.json +1 -1
  273. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.json +2 -2
  274. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.dbg.json +1 -1
  275. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.json +2 -2
  276. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.dbg.json +1 -1
  277. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.json +2 -2
  278. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.dbg.json +1 -1
  279. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.json +2 -2
  280. package/build/artifacts/contracts/router/Reflector.sol/Reflector.dbg.json +1 -1
  281. package/build/artifacts/contracts/router/Reflector.sol/Reflector.json +2 -2
  282. package/build/artifacts/contracts/router/RouterStorage.sol/RouterStorage.dbg.json +1 -1
  283. package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
  284. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.dbg.json +1 -1
  285. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.json +2 -2
  286. package/build/artifacts/contracts/router/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
  287. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.dbg.json +1 -1
  288. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.json +2 -2
  289. package/build/artifacts/contracts/router/math/MarketApproxEstimateLib.sol/MarketApproxEstimateLib.dbg.json +1 -1
  290. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.dbg.json +1 -1
  291. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.json +2 -2
  292. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.dbg.json +1 -1
  293. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.json +2 -2
  294. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.dbg.json +1 -1
  295. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.json +2 -2
  296. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.dbg.json +1 -1
  297. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.json +2 -2
  298. package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.dbg.json +1 -1
  299. package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/IOKXDexRouter.dbg.json +1 -1
  300. package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/OKXScaleHelper.dbg.json +1 -1
  301. package/build/artifacts/contracts/router/swap-aggregator/ParaswapScaleHelper.sol/IAugustusV6.dbg.json +1 -1
  302. package/build/artifacts/contracts/router/swap-aggregator/ParaswapScaleHelper.sol/ParaswapScaleHelper.dbg.json +1 -1
  303. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IKyberScalingHelper.dbg.json +1 -1
  304. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IOdosRouterV2.dbg.json +1 -1
  305. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.dbg.json +1 -1
  306. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.json +2 -2
  307. package/contracts/LiquidityMining/PendleMerkleDistributor.sol +1 -28
  308. package/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol +1 -36
  309. package/contracts/cross-chain/FixedPricePTAMMV2.sol +162 -0
  310. package/contracts/{router/ActionCrossChain.sol → cross-chain/PendleSwapHelper.sol} +11 -7
  311. package/contracts/cross-chain/factory/PendleBridgePTFactory.sol +495 -0
  312. package/contracts/cross-chain/funder/BridgeFunder.sol +61 -0
  313. package/contracts/cross-chain/oftImpl/hub/OFTAdapterAltImpl.sol +56 -0
  314. package/contracts/cross-chain/oftImpl/hub/OFTAdapterImpl.sol +14 -6
  315. package/contracts/cross-chain/oftImpl/pendleOft/PendleOFT.sol +11 -0
  316. package/contracts/cross-chain/oftImpl/pendleOft/PendleOFTAlt.sol +52 -0
  317. package/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalToken.sol +33 -24
  318. package/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalTokenAlt.sol +55 -0
  319. package/contracts/interfaces/IPAllActionTypeV3.sol +1 -0
  320. package/contracts/interfaces/IPAllActionV3.sol +1 -3
  321. package/contracts/interfaces/IPBridgeFunder.sol +17 -0
  322. package/contracts/interfaces/IPBridgePTFactory.sol +129 -0
  323. package/contracts/interfaces/IPBridgedPrincipalToken.sol +4 -2
  324. package/contracts/interfaces/IPFixedPricePTAMMV2.sol +58 -0
  325. package/contracts/interfaces/IPLimitRouter.sol +22 -0
  326. package/contracts/interfaces/IPMerkleDistributor.sol +0 -7
  327. package/contracts/interfaces/IPMultiTokenMerkleDistributor.sol +0 -10
  328. package/contracts/interfaces/{IPActionCrossChain.sol → IPSwapHelper.sol} +1 -1
  329. package/contracts/limit/LimitRouterBase.sol +101 -47
  330. package/contracts/limit/PendleLimitRouter.sol +1 -1
  331. package/contracts/limit/helpers/MintSyHelper.sol +114 -0
  332. package/contracts/offchain-helpers/PendleFeeSetter.sol +19 -1
  333. package/contracts/offchain-helpers/PendleProxyAdmin.sol +11 -0
  334. package/contracts/router/base/ActionBase.sol +16 -2
  335. package/contracts/router/swap-aggregator/OKXScaleHelper.sol +4 -1
  336. package/deployments/1-core.json +1 -0
  337. package/deployments/1-offchain-helper.json +1 -1
  338. package/deployments/10-core.json +1 -0
  339. package/deployments/10-offchain-helper.json +1 -1
  340. package/deployments/130-core.json +1 -0
  341. package/deployments/143-core.json +39 -2
  342. package/deployments/143-offchain-helper.json +11 -0
  343. package/deployments/146-core.json +1 -0
  344. package/deployments/146-offchain-helper.json +1 -1
  345. package/deployments/42161-core.json +1 -0
  346. package/deployments/42161-offchain-helper.json +1 -1
  347. package/deployments/4217-core.json +15 -0
  348. package/deployments/43114-core.json +2 -0
  349. package/deployments/5000-core.json +1 -0
  350. package/deployments/5000-offchain-helper.json +1 -1
  351. package/deployments/56-core.json +1 -0
  352. package/deployments/56-offchain-helper.json +1 -1
  353. package/deployments/57073-core.json +3 -0
  354. package/deployments/747474-core.json +3 -0
  355. package/deployments/80094-core.json +1 -0
  356. package/deployments/80094-offchain-helper.json +1 -1
  357. package/deployments/8453-core.json +1 -0
  358. package/deployments/8453-offchain-helper.json +1 -1
  359. package/deployments/9745-core.json +1 -0
  360. package/deployments/9745-offchain-helper.json +1 -1
  361. package/deployments/999-core.json +1 -0
  362. package/deployments/999-offchain-helper.json +1 -1
  363. package/package.json +12 -9
  364. package/typechain-types/AaveMoneyMarket.ts +763 -0
  365. package/typechain-types/AaveMoneyMarketView.ts +460 -0
  366. package/typechain-types/BaseMoneyMarket.ts +697 -0
  367. package/typechain-types/BaseMoneyMarketView.ts +362 -0
  368. package/typechain-types/BridgeFunder.ts +344 -0
  369. package/typechain-types/DVNOptions.ts +57 -0
  370. package/typechain-types/ExecutorOptions.ts +57 -0
  371. package/typechain-types/FixedPricePTAMMV2.ts +1104 -0
  372. package/typechain-types/IAToken.ts +358 -0
  373. package/typechain-types/IAaveOracle.ts +235 -0
  374. package/typechain-types/IAaveRewardsController.ts +1186 -0
  375. package/typechain-types/IDefaultReserveInterestRateStrategyV3.ts +431 -0
  376. package/typechain-types/IDefaultReserveInterestRateStrategyV31.ts +606 -0
  377. package/typechain-types/IDssPsm.ts +194 -0
  378. package/typechain-types/IERC4626.ts +864 -0
  379. package/typechain-types/IFlashLoanReceiver.ts +125 -0
  380. package/typechain-types/IIrm.ts +260 -0
  381. package/typechain-types/IMoneyMarket.ts +700 -0
  382. package/typechain-types/IMoneyMarketEvents.ts +196 -0
  383. package/typechain-types/IMoneyMarketView.ts +331 -0
  384. package/typechain-types/IMorpho.ts +1147 -0
  385. package/typechain-types/IMorphoOracle.ts +81 -0
  386. package/typechain-types/IMulticall.ts +117 -0
  387. package/typechain-types/IPAllActionV3.ts +0 -54
  388. package/typechain-types/IPBridgeFunder.ts +165 -0
  389. package/typechain-types/IPBridgePTFactory.ts +936 -0
  390. package/typechain-types/IPFixedPricePTAMMV2.ts +864 -0
  391. package/typechain-types/IPLimitRouter.ts +104 -0
  392. package/typechain-types/IPLoopPositionBox.ts +298 -0
  393. package/typechain-types/IPLoopPositionBoxFactory.ts +434 -0
  394. package/typechain-types/IPMerkleDistributor.ts +0 -90
  395. package/typechain-types/IPMultiTokenMerkleDistributor.ts +0 -158
  396. package/typechain-types/IPPTLooper.ts +1550 -0
  397. package/typechain-types/IPPTLooperView.ts +468 -0
  398. package/typechain-types/IPSwapHelper.ts +161 -0
  399. package/typechain-types/IPool.ts +2220 -0
  400. package/typechain-types/IPoolAddressesProvider.ts +789 -0
  401. package/typechain-types/IPoolDataProviderV3.ts +865 -0
  402. package/typechain-types/IPoolDataProviderV31.ts +933 -0
  403. package/typechain-types/IPot.ts +181 -0
  404. package/typechain-types/IPriceOracleGetter.ts +133 -0
  405. package/typechain-types/ISDAI.ts +877 -0
  406. package/typechain-types/LimitRouterBase.ts +233 -5
  407. package/typechain-types/LoopPositionBox.ts +309 -0
  408. package/typechain-types/LoopPositionBoxFactory.ts +609 -0
  409. package/typechain-types/MintSyHelper.ts +230 -0
  410. package/typechain-types/MorphoBlueMoneyMarket.ts +731 -0
  411. package/typechain-types/MorphoBlueMoneyMarketView.ts +396 -0
  412. package/typechain-types/Multicall.ts +117 -0
  413. package/typechain-types/OAppPreCrimeSimulatorUpgradeable.ts +410 -0
  414. package/typechain-types/OFTAdapterAltImpl.ts +1381 -0
  415. package/typechain-types/OFTAdapterImpl.ts +50 -19
  416. package/typechain-types/OFTAdapterUpgradeable.ts +1337 -0
  417. package/typechain-types/OFTCoreUpgradeable.ts +1337 -0
  418. package/typechain-types/OFTUpgradeable.ts +1681 -0
  419. package/typechain-types/OptionsBuilder.ts +57 -0
  420. package/typechain-types/PTLooperBase.ts +1759 -0
  421. package/typechain-types/PTLooperView.ts +618 -0
  422. package/typechain-types/PendleBridgePTFactory.ts +1311 -0
  423. package/typechain-types/PendleBridgedPrincipalToken.ts +67 -20
  424. package/typechain-types/PendleBridgedPrincipalTokenAlt.ts +1755 -0
  425. package/typechain-types/PendleFeeSetter.ts +53 -0
  426. package/typechain-types/PendleLimitRouter.ts +233 -5
  427. package/typechain-types/PendleMerkleDistributor.ts +0 -106
  428. package/typechain-types/PendleMultiTokenMerkleDistributor.ts +0 -158
  429. package/typechain-types/PendleOFT.ts +1675 -0
  430. package/typechain-types/PendleOFTAlt.ts +1694 -0
  431. package/typechain-types/PendlePTLooper.ts +1784 -0
  432. package/typechain-types/PendlePTLooperView.ts +648 -0
  433. package/typechain-types/PendleProxyAdmin.ts +341 -0
  434. package/typechain-types/PendleSwapHelper.ts +161 -0
  435. package/typechain-types/ProxyAdmin.ts +341 -0
  436. package/typechain-types/UUPSUpgradeable.ts +0 -9
  437. package/typechain-types/factories/AaveMoneyMarketView__factory.ts +450 -0
  438. package/typechain-types/factories/AaveMoneyMarket__factory.ts +726 -0
  439. package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +1 -1
  440. package/typechain-types/factories/ActionCallbackV3__factory.ts +1 -1
  441. package/typechain-types/factories/ActionCrossChain__factory.ts +1 -1
  442. package/typechain-types/factories/ActionInfoStatic__factory.ts +1 -1
  443. package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +1 -1
  444. package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +1 -1
  445. package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +1 -1
  446. package/typechain-types/factories/ActionMiscV3__factory.ts +1 -1
  447. package/typechain-types/factories/ActionSimple__factory.ts +1 -1
  448. package/typechain-types/factories/ActionStorageStatic__factory.ts +1 -1
  449. package/typechain-types/factories/ActionStorageV4__factory.ts +1 -1
  450. package/typechain-types/factories/ActionSwapPTV3__factory.ts +1 -1
  451. package/typechain-types/factories/ActionSwapYTV3__factory.ts +1 -1
  452. package/typechain-types/factories/ActionVePendleStatic__factory.ts +1 -1
  453. package/typechain-types/factories/BaseMoneyMarketView__factory.ts +279 -0
  454. package/typechain-types/factories/BaseMoneyMarket__factory.ts +599 -0
  455. package/typechain-types/factories/BridgeFunder__factory.ts +265 -0
  456. package/typechain-types/factories/DVNOptions__factory.ts +77 -0
  457. package/typechain-types/factories/ExecutorOptions__factory.ts +84 -0
  458. package/typechain-types/factories/ExpiredLpPtRedeemer__factory.ts +1 -1
  459. package/typechain-types/factories/FixedPricePTAMMV2__factory.ts +824 -0
  460. package/typechain-types/factories/FixedPricePTAMM__factory.ts +1 -1
  461. package/typechain-types/factories/IAToken__factory.ts +258 -0
  462. package/typechain-types/factories/IAaveOracle__factory.ts +132 -0
  463. package/typechain-types/factories/IAaveRewardsController__factory.ts +743 -0
  464. package/typechain-types/factories/IDefaultReserveInterestRateStrategyV31__factory.ts +441 -0
  465. package/typechain-types/factories/IDefaultReserveInterestRateStrategyV3__factory.ts +278 -0
  466. package/typechain-types/factories/IDssPsm__factory.ts +122 -0
  467. package/typechain-types/factories/IERC4626__factory.ts +635 -0
  468. package/typechain-types/factories/IFlashLoanReceiver__factory.ts +65 -0
  469. package/typechain-types/factories/IIrm__factory.ts +243 -0
  470. package/typechain-types/factories/IMoneyMarketEvents__factory.ts +225 -0
  471. package/typechain-types/factories/IMoneyMarketView__factory.ts +253 -0
  472. package/typechain-types/factories/IMoneyMarket__factory.ts +596 -0
  473. package/typechain-types/factories/IMorphoOracle__factory.ts +36 -0
  474. package/typechain-types/factories/IMorpho__factory.ts +1045 -0
  475. package/typechain-types/factories/IMulticall__factory.ts +66 -0
  476. package/typechain-types/factories/IOFT__factory.ts +11 -0
  477. package/typechain-types/factories/IPAllActionV3__factory.ts +0 -88
  478. package/typechain-types/factories/IPBridgeFunder__factory.ts +100 -0
  479. package/typechain-types/factories/IPBridgePTFactory__factory.ts +1041 -0
  480. package/typechain-types/factories/IPBridgedPrincipalToken__factory.ts +11 -0
  481. package/typechain-types/factories/IPFixedPricePTAMMV2__factory.ts +621 -0
  482. package/typechain-types/factories/IPLimitRouter__factory.ts +156 -0
  483. package/typechain-types/factories/IPLoopPositionBoxFactory__factory.ts +420 -0
  484. package/typechain-types/factories/IPLoopPositionBox__factory.ts +198 -0
  485. package/typechain-types/factories/IPMerkleDistributor__factory.ts +0 -67
  486. package/typechain-types/factories/IPMultiTokenMerkleDistributor__factory.ts +0 -120
  487. package/typechain-types/factories/IPPTLooperView__factory.ts +331 -0
  488. package/typechain-types/factories/IPPTLooper__factory.ts +2506 -0
  489. package/typechain-types/factories/IPSwapHelper__factory.ts +111 -0
  490. package/typechain-types/factories/IPoolAddressesProvider__factory.ts +526 -0
  491. package/typechain-types/factories/IPoolDataProviderV31__factory.ts +596 -0
  492. package/typechain-types/factories/IPoolDataProviderV3__factory.ts +554 -0
  493. package/typechain-types/factories/IPool__factory.ts +1609 -0
  494. package/typechain-types/factories/IPot__factory.ts +98 -0
  495. package/typechain-types/factories/IPriceOracleGetter__factory.ts +71 -0
  496. package/typechain-types/factories/ISDAI__factory.ts +645 -0
  497. package/typechain-types/factories/LimitBackendHelperV2__factory.ts +1 -1
  498. package/typechain-types/factories/LimitRouterBase__factory.ts +258 -1
  499. package/typechain-types/factories/LoopPositionBoxFactory__factory.ts +648 -0
  500. package/typechain-types/factories/LoopPositionBox__factory.ts +277 -0
  501. package/typechain-types/factories/MarketSweed__factory.ts +1 -1
  502. package/typechain-types/factories/MintSyHelper__factory.ts +168 -0
  503. package/typechain-types/factories/MorphoBlueMoneyMarketView__factory.ts +384 -0
  504. package/typechain-types/factories/MorphoBlueMoneyMarket__factory.ts +691 -0
  505. package/typechain-types/factories/Multicall__factory.ts +104 -0
  506. package/typechain-types/factories/OAppPreCrimeSimulatorUpgradeable__factory.ts +311 -0
  507. package/typechain-types/factories/OFTAdapterAltImpl__factory.ts +1387 -0
  508. package/typechain-types/factories/OFTAdapterImpl__factory.ts +49 -25
  509. package/typechain-types/factories/OFTAdapterUpgradeable__factory.ts +1287 -0
  510. package/typechain-types/factories/OFTAdapter__factory.ts +11 -0
  511. package/typechain-types/factories/OFTCoreUpgradeable__factory.ts +1283 -0
  512. package/typechain-types/factories/OFTCore__factory.ts +11 -0
  513. package/typechain-types/factories/OFTUpgradeable__factory.ts +1553 -0
  514. package/typechain-types/factories/OFT__factory.ts +11 -0
  515. package/typechain-types/factories/OptionsBuilder__factory.ts +91 -0
  516. package/typechain-types/factories/PTLooperBase__factory.ts +2656 -0
  517. package/typechain-types/factories/PTLooperView__factory.ts +467 -0
  518. package/typechain-types/factories/PendleBridgePTFactory__factory.ts +1481 -0
  519. package/typechain-types/factories/PendleBridgedPrincipalTokenAlt__factory.ts +1704 -0
  520. package/typechain-types/factories/PendleBridgedPrincipalToken__factory.ts +60 -58
  521. package/typechain-types/factories/PendleCommonPoolDeployHelperV2__factory.ts +1 -1
  522. package/typechain-types/factories/PendleFeeSetter__factory.ts +36 -1
  523. package/typechain-types/factories/PendleLimitRouter__factory.ts +268 -3
  524. package/typechain-types/factories/PendleMerkleDistributor__factory.ts +1 -87
  525. package/typechain-types/factories/PendleMultiTokenMerkleDistributor__factory.ts +1 -121
  526. package/typechain-types/factories/PendleOFTAlt__factory.ts +1628 -0
  527. package/typechain-types/factories/PendleOFT__factory.ts +1599 -0
  528. package/typechain-types/factories/PendlePTLooperView__factory.ts +499 -0
  529. package/typechain-types/factories/PendlePTLooper__factory.ts +2738 -0
  530. package/typechain-types/factories/PendlePTOFTAdapterFactory__factory.ts +1 -1
  531. package/typechain-types/factories/PendlePoolDeployHelperV2__factory.ts +1 -1
  532. package/typechain-types/factories/PendlePoolDeployHelper__factory.ts +1 -1
  533. package/typechain-types/factories/PendleProxyAdmin__factory.ts +229 -0
  534. package/typechain-types/factories/PendleRouterStatic__factory.ts +1 -1
  535. package/typechain-types/factories/PendleRouterV4__factory.ts +1 -1
  536. package/typechain-types/factories/PendleSwapHelper__factory.ts +152 -0
  537. package/typechain-types/factories/PendleSwap__factory.ts +1 -1
  538. package/typechain-types/factories/ProxyAdmin__factory.ts +210 -0
  539. package/typechain-types/factories/Reflector__factory.ts +1 -1
  540. package/typechain-types/factories/UUPSUpgradeable__factory.ts +0 -13
  541. package/typechain-types/hardhat.d.ts +196 -34
  542. package/typechain-types/index.ts +46 -10
  543. package/build/artifacts/contracts/cross-chain/FixedPricePTAMM.sol/FixedPricePTAMM.dbg.json +0 -4
  544. package/build/artifacts/contracts/cross-chain/FixedPricePTAMM.sol/FixedPricePTAMM.json +0 -667
  545. package/build/artifacts/contracts/cross-chain/factory/hub/PendlePTOFTAdapterFactory.sol/PendlePTOFTAdapterFactory.dbg.json +0 -4
  546. package/build/artifacts/contracts/cross-chain/factory/hub/PendlePTOFTAdapterFactory.sol/PendlePTOFTAdapterFactory.json +0 -280
  547. package/build/artifacts/contracts/interfaces/IPActionCrossChain.sol/IPActionCrossChain.dbg.json +0 -4
  548. package/build/artifacts/contracts/interfaces/IPFixedPricePTAMM.sol/IPFixedPricePTAMM.dbg.json +0 -4
  549. package/build/artifacts/contracts/interfaces/IPFixedPricePTAMM.sol/IPFixedPricePTAMMSwapCallback.dbg.json +0 -4
  550. package/build/artifacts/contracts/router/ActionCrossChain.sol/ActionCrossChain.dbg.json +0 -4
  551. package/build/artifacts/contracts/router/ActionCrossChain.sol/ActionCrossChain.json +0 -99
  552. package/contracts/cross-chain/FixedPricePTAMM.sol +0 -200
  553. package/contracts/cross-chain/factory/hub/PendlePTOFTAdapterFactory.sol +0 -38
  554. package/contracts/interfaces/IPFixedPricePTAMM.sol +0 -69
@@ -0,0 +1,1045 @@
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 { IMorpho, IMorphoInterface } from "../IMorpho";
8
+
9
+ const _abi = [
10
+ {
11
+ inputs: [],
12
+ name: "DOMAIN_SEPARATOR",
13
+ outputs: [
14
+ {
15
+ internalType: "bytes32",
16
+ name: "",
17
+ type: "bytes32",
18
+ },
19
+ ],
20
+ stateMutability: "view",
21
+ type: "function",
22
+ },
23
+ {
24
+ inputs: [
25
+ {
26
+ components: [
27
+ {
28
+ internalType: "contract IERC20Metadata",
29
+ name: "loanToken",
30
+ type: "address",
31
+ },
32
+ {
33
+ internalType: "contract IERC20Metadata",
34
+ name: "collateralToken",
35
+ type: "address",
36
+ },
37
+ {
38
+ internalType: "contract IMorphoOracle",
39
+ name: "oracle",
40
+ type: "address",
41
+ },
42
+ {
43
+ internalType: "contract IIrm",
44
+ name: "irm",
45
+ type: "address",
46
+ },
47
+ {
48
+ internalType: "uint256",
49
+ name: "lltv",
50
+ type: "uint256",
51
+ },
52
+ ],
53
+ internalType: "struct MarketParams",
54
+ name: "marketParams",
55
+ type: "tuple",
56
+ },
57
+ ],
58
+ name: "accrueInterest",
59
+ outputs: [],
60
+ stateMutability: "nonpayable",
61
+ type: "function",
62
+ },
63
+ {
64
+ inputs: [
65
+ {
66
+ components: [
67
+ {
68
+ internalType: "contract IERC20Metadata",
69
+ name: "loanToken",
70
+ type: "address",
71
+ },
72
+ {
73
+ internalType: "contract IERC20Metadata",
74
+ name: "collateralToken",
75
+ type: "address",
76
+ },
77
+ {
78
+ internalType: "contract IMorphoOracle",
79
+ name: "oracle",
80
+ type: "address",
81
+ },
82
+ {
83
+ internalType: "contract IIrm",
84
+ name: "irm",
85
+ type: "address",
86
+ },
87
+ {
88
+ internalType: "uint256",
89
+ name: "lltv",
90
+ type: "uint256",
91
+ },
92
+ ],
93
+ internalType: "struct MarketParams",
94
+ name: "marketParams",
95
+ type: "tuple",
96
+ },
97
+ {
98
+ internalType: "uint256",
99
+ name: "assets",
100
+ type: "uint256",
101
+ },
102
+ {
103
+ internalType: "uint256",
104
+ name: "shares",
105
+ type: "uint256",
106
+ },
107
+ {
108
+ internalType: "address",
109
+ name: "onBehalf",
110
+ type: "address",
111
+ },
112
+ {
113
+ internalType: "address",
114
+ name: "receiver",
115
+ type: "address",
116
+ },
117
+ ],
118
+ name: "borrow",
119
+ outputs: [
120
+ {
121
+ internalType: "uint256",
122
+ name: "assetsBorrowed",
123
+ type: "uint256",
124
+ },
125
+ {
126
+ internalType: "uint256",
127
+ name: "sharesBorrowed",
128
+ type: "uint256",
129
+ },
130
+ ],
131
+ stateMutability: "nonpayable",
132
+ type: "function",
133
+ },
134
+ {
135
+ inputs: [
136
+ {
137
+ components: [
138
+ {
139
+ internalType: "contract IERC20Metadata",
140
+ name: "loanToken",
141
+ type: "address",
142
+ },
143
+ {
144
+ internalType: "contract IERC20Metadata",
145
+ name: "collateralToken",
146
+ type: "address",
147
+ },
148
+ {
149
+ internalType: "contract IMorphoOracle",
150
+ name: "oracle",
151
+ type: "address",
152
+ },
153
+ {
154
+ internalType: "contract IIrm",
155
+ name: "irm",
156
+ type: "address",
157
+ },
158
+ {
159
+ internalType: "uint256",
160
+ name: "lltv",
161
+ type: "uint256",
162
+ },
163
+ ],
164
+ internalType: "struct MarketParams",
165
+ name: "marketParams",
166
+ type: "tuple",
167
+ },
168
+ ],
169
+ name: "createMarket",
170
+ outputs: [],
171
+ stateMutability: "nonpayable",
172
+ type: "function",
173
+ },
174
+ {
175
+ inputs: [
176
+ {
177
+ internalType: "address",
178
+ name: "irm",
179
+ type: "address",
180
+ },
181
+ ],
182
+ name: "enableIrm",
183
+ outputs: [],
184
+ stateMutability: "nonpayable",
185
+ type: "function",
186
+ },
187
+ {
188
+ inputs: [
189
+ {
190
+ internalType: "uint256",
191
+ name: "lltv",
192
+ type: "uint256",
193
+ },
194
+ ],
195
+ name: "enableLltv",
196
+ outputs: [],
197
+ stateMutability: "nonpayable",
198
+ type: "function",
199
+ },
200
+ {
201
+ inputs: [
202
+ {
203
+ internalType: "bytes32[]",
204
+ name: "slots",
205
+ type: "bytes32[]",
206
+ },
207
+ ],
208
+ name: "extSloads",
209
+ outputs: [
210
+ {
211
+ internalType: "bytes32[]",
212
+ name: "",
213
+ type: "bytes32[]",
214
+ },
215
+ ],
216
+ stateMutability: "view",
217
+ type: "function",
218
+ },
219
+ {
220
+ inputs: [],
221
+ name: "feeRecipient",
222
+ outputs: [
223
+ {
224
+ internalType: "address",
225
+ name: "",
226
+ type: "address",
227
+ },
228
+ ],
229
+ stateMutability: "view",
230
+ type: "function",
231
+ },
232
+ {
233
+ inputs: [
234
+ {
235
+ internalType: "address",
236
+ name: "token",
237
+ type: "address",
238
+ },
239
+ {
240
+ internalType: "uint256",
241
+ name: "assets",
242
+ type: "uint256",
243
+ },
244
+ {
245
+ internalType: "bytes",
246
+ name: "data",
247
+ type: "bytes",
248
+ },
249
+ ],
250
+ name: "flashLoan",
251
+ outputs: [],
252
+ stateMutability: "nonpayable",
253
+ type: "function",
254
+ },
255
+ {
256
+ inputs: [
257
+ {
258
+ internalType: "MorphoMarketId",
259
+ name: "id",
260
+ type: "bytes32",
261
+ },
262
+ ],
263
+ name: "idToMarketParams",
264
+ outputs: [
265
+ {
266
+ components: [
267
+ {
268
+ internalType: "contract IERC20Metadata",
269
+ name: "loanToken",
270
+ type: "address",
271
+ },
272
+ {
273
+ internalType: "contract IERC20Metadata",
274
+ name: "collateralToken",
275
+ type: "address",
276
+ },
277
+ {
278
+ internalType: "contract IMorphoOracle",
279
+ name: "oracle",
280
+ type: "address",
281
+ },
282
+ {
283
+ internalType: "contract IIrm",
284
+ name: "irm",
285
+ type: "address",
286
+ },
287
+ {
288
+ internalType: "uint256",
289
+ name: "lltv",
290
+ type: "uint256",
291
+ },
292
+ ],
293
+ internalType: "struct MarketParams",
294
+ name: "",
295
+ type: "tuple",
296
+ },
297
+ ],
298
+ stateMutability: "view",
299
+ type: "function",
300
+ },
301
+ {
302
+ inputs: [
303
+ {
304
+ internalType: "address",
305
+ name: "authorizer",
306
+ type: "address",
307
+ },
308
+ {
309
+ internalType: "address",
310
+ name: "authorized",
311
+ type: "address",
312
+ },
313
+ ],
314
+ name: "isAuthorized",
315
+ outputs: [
316
+ {
317
+ internalType: "bool",
318
+ name: "",
319
+ type: "bool",
320
+ },
321
+ ],
322
+ stateMutability: "view",
323
+ type: "function",
324
+ },
325
+ {
326
+ inputs: [
327
+ {
328
+ internalType: "address",
329
+ name: "irm",
330
+ type: "address",
331
+ },
332
+ ],
333
+ name: "isIrmEnabled",
334
+ outputs: [
335
+ {
336
+ internalType: "bool",
337
+ name: "",
338
+ type: "bool",
339
+ },
340
+ ],
341
+ stateMutability: "view",
342
+ type: "function",
343
+ },
344
+ {
345
+ inputs: [
346
+ {
347
+ internalType: "uint256",
348
+ name: "lltv",
349
+ type: "uint256",
350
+ },
351
+ ],
352
+ name: "isLltvEnabled",
353
+ outputs: [
354
+ {
355
+ internalType: "bool",
356
+ name: "",
357
+ type: "bool",
358
+ },
359
+ ],
360
+ stateMutability: "view",
361
+ type: "function",
362
+ },
363
+ {
364
+ inputs: [
365
+ {
366
+ components: [
367
+ {
368
+ internalType: "contract IERC20Metadata",
369
+ name: "loanToken",
370
+ type: "address",
371
+ },
372
+ {
373
+ internalType: "contract IERC20Metadata",
374
+ name: "collateralToken",
375
+ type: "address",
376
+ },
377
+ {
378
+ internalType: "contract IMorphoOracle",
379
+ name: "oracle",
380
+ type: "address",
381
+ },
382
+ {
383
+ internalType: "contract IIrm",
384
+ name: "irm",
385
+ type: "address",
386
+ },
387
+ {
388
+ internalType: "uint256",
389
+ name: "lltv",
390
+ type: "uint256",
391
+ },
392
+ ],
393
+ internalType: "struct MarketParams",
394
+ name: "marketParams",
395
+ type: "tuple",
396
+ },
397
+ {
398
+ internalType: "address",
399
+ name: "borrower",
400
+ type: "address",
401
+ },
402
+ {
403
+ internalType: "uint256",
404
+ name: "seizedAssets",
405
+ type: "uint256",
406
+ },
407
+ {
408
+ internalType: "uint256",
409
+ name: "repaidShares",
410
+ type: "uint256",
411
+ },
412
+ {
413
+ internalType: "bytes",
414
+ name: "data",
415
+ type: "bytes",
416
+ },
417
+ ],
418
+ name: "liquidate",
419
+ outputs: [
420
+ {
421
+ internalType: "uint256",
422
+ name: "",
423
+ type: "uint256",
424
+ },
425
+ {
426
+ internalType: "uint256",
427
+ name: "",
428
+ type: "uint256",
429
+ },
430
+ ],
431
+ stateMutability: "nonpayable",
432
+ type: "function",
433
+ },
434
+ {
435
+ inputs: [
436
+ {
437
+ internalType: "MorphoMarketId",
438
+ name: "id",
439
+ type: "bytes32",
440
+ },
441
+ ],
442
+ name: "market",
443
+ outputs: [
444
+ {
445
+ components: [
446
+ {
447
+ internalType: "uint128",
448
+ name: "totalSupplyAssets",
449
+ type: "uint128",
450
+ },
451
+ {
452
+ internalType: "uint128",
453
+ name: "totalSupplyShares",
454
+ type: "uint128",
455
+ },
456
+ {
457
+ internalType: "uint128",
458
+ name: "totalBorrowAssets",
459
+ type: "uint128",
460
+ },
461
+ {
462
+ internalType: "uint128",
463
+ name: "totalBorrowShares",
464
+ type: "uint128",
465
+ },
466
+ {
467
+ internalType: "uint128",
468
+ name: "lastUpdate",
469
+ type: "uint128",
470
+ },
471
+ {
472
+ internalType: "uint128",
473
+ name: "fee",
474
+ type: "uint128",
475
+ },
476
+ ],
477
+ internalType: "struct Market",
478
+ name: "",
479
+ type: "tuple",
480
+ },
481
+ ],
482
+ stateMutability: "view",
483
+ type: "function",
484
+ },
485
+ {
486
+ inputs: [
487
+ {
488
+ internalType: "address",
489
+ name: "authorizer",
490
+ type: "address",
491
+ },
492
+ ],
493
+ name: "nonce",
494
+ outputs: [
495
+ {
496
+ internalType: "uint256",
497
+ name: "",
498
+ type: "uint256",
499
+ },
500
+ ],
501
+ stateMutability: "view",
502
+ type: "function",
503
+ },
504
+ {
505
+ inputs: [],
506
+ name: "owner",
507
+ outputs: [
508
+ {
509
+ internalType: "address",
510
+ name: "",
511
+ type: "address",
512
+ },
513
+ ],
514
+ stateMutability: "view",
515
+ type: "function",
516
+ },
517
+ {
518
+ inputs: [
519
+ {
520
+ internalType: "MorphoMarketId",
521
+ name: "id",
522
+ type: "bytes32",
523
+ },
524
+ {
525
+ internalType: "address",
526
+ name: "user",
527
+ type: "address",
528
+ },
529
+ ],
530
+ name: "position",
531
+ outputs: [
532
+ {
533
+ components: [
534
+ {
535
+ internalType: "uint256",
536
+ name: "supplyShares",
537
+ type: "uint256",
538
+ },
539
+ {
540
+ internalType: "uint128",
541
+ name: "borrowShares",
542
+ type: "uint128",
543
+ },
544
+ {
545
+ internalType: "uint128",
546
+ name: "collateral",
547
+ type: "uint128",
548
+ },
549
+ ],
550
+ internalType: "struct Position",
551
+ name: "",
552
+ type: "tuple",
553
+ },
554
+ ],
555
+ stateMutability: "view",
556
+ type: "function",
557
+ },
558
+ {
559
+ inputs: [
560
+ {
561
+ components: [
562
+ {
563
+ internalType: "contract IERC20Metadata",
564
+ name: "loanToken",
565
+ type: "address",
566
+ },
567
+ {
568
+ internalType: "contract IERC20Metadata",
569
+ name: "collateralToken",
570
+ type: "address",
571
+ },
572
+ {
573
+ internalType: "contract IMorphoOracle",
574
+ name: "oracle",
575
+ type: "address",
576
+ },
577
+ {
578
+ internalType: "contract IIrm",
579
+ name: "irm",
580
+ type: "address",
581
+ },
582
+ {
583
+ internalType: "uint256",
584
+ name: "lltv",
585
+ type: "uint256",
586
+ },
587
+ ],
588
+ internalType: "struct MarketParams",
589
+ name: "marketParams",
590
+ type: "tuple",
591
+ },
592
+ {
593
+ internalType: "uint256",
594
+ name: "assets",
595
+ type: "uint256",
596
+ },
597
+ {
598
+ internalType: "uint256",
599
+ name: "shares",
600
+ type: "uint256",
601
+ },
602
+ {
603
+ internalType: "address",
604
+ name: "onBehalf",
605
+ type: "address",
606
+ },
607
+ {
608
+ internalType: "bytes",
609
+ name: "data",
610
+ type: "bytes",
611
+ },
612
+ ],
613
+ name: "repay",
614
+ outputs: [
615
+ {
616
+ internalType: "uint256",
617
+ name: "assetsRepaid",
618
+ type: "uint256",
619
+ },
620
+ {
621
+ internalType: "uint256",
622
+ name: "sharesRepaid",
623
+ type: "uint256",
624
+ },
625
+ ],
626
+ stateMutability: "nonpayable",
627
+ type: "function",
628
+ },
629
+ {
630
+ inputs: [
631
+ {
632
+ internalType: "address",
633
+ name: "authorized",
634
+ type: "address",
635
+ },
636
+ {
637
+ internalType: "bool",
638
+ name: "newIsAuthorized",
639
+ type: "bool",
640
+ },
641
+ ],
642
+ name: "setAuthorization",
643
+ outputs: [],
644
+ stateMutability: "nonpayable",
645
+ type: "function",
646
+ },
647
+ {
648
+ inputs: [
649
+ {
650
+ components: [
651
+ {
652
+ internalType: "address",
653
+ name: "authorizer",
654
+ type: "address",
655
+ },
656
+ {
657
+ internalType: "address",
658
+ name: "authorized",
659
+ type: "address",
660
+ },
661
+ {
662
+ internalType: "bool",
663
+ name: "isAuthorized",
664
+ type: "bool",
665
+ },
666
+ {
667
+ internalType: "uint256",
668
+ name: "nonce",
669
+ type: "uint256",
670
+ },
671
+ {
672
+ internalType: "uint256",
673
+ name: "deadline",
674
+ type: "uint256",
675
+ },
676
+ ],
677
+ internalType: "struct Authorization",
678
+ name: "authorization",
679
+ type: "tuple",
680
+ },
681
+ {
682
+ components: [
683
+ {
684
+ internalType: "uint8",
685
+ name: "v",
686
+ type: "uint8",
687
+ },
688
+ {
689
+ internalType: "bytes32",
690
+ name: "r",
691
+ type: "bytes32",
692
+ },
693
+ {
694
+ internalType: "bytes32",
695
+ name: "s",
696
+ type: "bytes32",
697
+ },
698
+ ],
699
+ internalType: "struct Signature",
700
+ name: "signature",
701
+ type: "tuple",
702
+ },
703
+ ],
704
+ name: "setAuthorizationWithSig",
705
+ outputs: [],
706
+ stateMutability: "nonpayable",
707
+ type: "function",
708
+ },
709
+ {
710
+ inputs: [
711
+ {
712
+ components: [
713
+ {
714
+ internalType: "contract IERC20Metadata",
715
+ name: "loanToken",
716
+ type: "address",
717
+ },
718
+ {
719
+ internalType: "contract IERC20Metadata",
720
+ name: "collateralToken",
721
+ type: "address",
722
+ },
723
+ {
724
+ internalType: "contract IMorphoOracle",
725
+ name: "oracle",
726
+ type: "address",
727
+ },
728
+ {
729
+ internalType: "contract IIrm",
730
+ name: "irm",
731
+ type: "address",
732
+ },
733
+ {
734
+ internalType: "uint256",
735
+ name: "lltv",
736
+ type: "uint256",
737
+ },
738
+ ],
739
+ internalType: "struct MarketParams",
740
+ name: "marketParams",
741
+ type: "tuple",
742
+ },
743
+ {
744
+ internalType: "uint256",
745
+ name: "newFee",
746
+ type: "uint256",
747
+ },
748
+ ],
749
+ name: "setFee",
750
+ outputs: [],
751
+ stateMutability: "nonpayable",
752
+ type: "function",
753
+ },
754
+ {
755
+ inputs: [
756
+ {
757
+ internalType: "address",
758
+ name: "newFeeRecipient",
759
+ type: "address",
760
+ },
761
+ ],
762
+ name: "setFeeRecipient",
763
+ outputs: [],
764
+ stateMutability: "nonpayable",
765
+ type: "function",
766
+ },
767
+ {
768
+ inputs: [
769
+ {
770
+ internalType: "address",
771
+ name: "newOwner",
772
+ type: "address",
773
+ },
774
+ ],
775
+ name: "setOwner",
776
+ outputs: [],
777
+ stateMutability: "nonpayable",
778
+ type: "function",
779
+ },
780
+ {
781
+ inputs: [
782
+ {
783
+ components: [
784
+ {
785
+ internalType: "contract IERC20Metadata",
786
+ name: "loanToken",
787
+ type: "address",
788
+ },
789
+ {
790
+ internalType: "contract IERC20Metadata",
791
+ name: "collateralToken",
792
+ type: "address",
793
+ },
794
+ {
795
+ internalType: "contract IMorphoOracle",
796
+ name: "oracle",
797
+ type: "address",
798
+ },
799
+ {
800
+ internalType: "contract IIrm",
801
+ name: "irm",
802
+ type: "address",
803
+ },
804
+ {
805
+ internalType: "uint256",
806
+ name: "lltv",
807
+ type: "uint256",
808
+ },
809
+ ],
810
+ internalType: "struct MarketParams",
811
+ name: "marketParams",
812
+ type: "tuple",
813
+ },
814
+ {
815
+ internalType: "uint256",
816
+ name: "assets",
817
+ type: "uint256",
818
+ },
819
+ {
820
+ internalType: "uint256",
821
+ name: "shares",
822
+ type: "uint256",
823
+ },
824
+ {
825
+ internalType: "address",
826
+ name: "onBehalf",
827
+ type: "address",
828
+ },
829
+ {
830
+ internalType: "bytes",
831
+ name: "data",
832
+ type: "bytes",
833
+ },
834
+ ],
835
+ name: "supply",
836
+ outputs: [
837
+ {
838
+ internalType: "uint256",
839
+ name: "assetsSupplied",
840
+ type: "uint256",
841
+ },
842
+ {
843
+ internalType: "uint256",
844
+ name: "sharesSupplied",
845
+ type: "uint256",
846
+ },
847
+ ],
848
+ stateMutability: "nonpayable",
849
+ type: "function",
850
+ },
851
+ {
852
+ inputs: [
853
+ {
854
+ components: [
855
+ {
856
+ internalType: "contract IERC20Metadata",
857
+ name: "loanToken",
858
+ type: "address",
859
+ },
860
+ {
861
+ internalType: "contract IERC20Metadata",
862
+ name: "collateralToken",
863
+ type: "address",
864
+ },
865
+ {
866
+ internalType: "contract IMorphoOracle",
867
+ name: "oracle",
868
+ type: "address",
869
+ },
870
+ {
871
+ internalType: "contract IIrm",
872
+ name: "irm",
873
+ type: "address",
874
+ },
875
+ {
876
+ internalType: "uint256",
877
+ name: "lltv",
878
+ type: "uint256",
879
+ },
880
+ ],
881
+ internalType: "struct MarketParams",
882
+ name: "marketParams",
883
+ type: "tuple",
884
+ },
885
+ {
886
+ internalType: "uint256",
887
+ name: "assets",
888
+ type: "uint256",
889
+ },
890
+ {
891
+ internalType: "address",
892
+ name: "onBehalf",
893
+ type: "address",
894
+ },
895
+ {
896
+ internalType: "bytes",
897
+ name: "data",
898
+ type: "bytes",
899
+ },
900
+ ],
901
+ name: "supplyCollateral",
902
+ outputs: [],
903
+ stateMutability: "nonpayable",
904
+ type: "function",
905
+ },
906
+ {
907
+ inputs: [
908
+ {
909
+ components: [
910
+ {
911
+ internalType: "contract IERC20Metadata",
912
+ name: "loanToken",
913
+ type: "address",
914
+ },
915
+ {
916
+ internalType: "contract IERC20Metadata",
917
+ name: "collateralToken",
918
+ type: "address",
919
+ },
920
+ {
921
+ internalType: "contract IMorphoOracle",
922
+ name: "oracle",
923
+ type: "address",
924
+ },
925
+ {
926
+ internalType: "contract IIrm",
927
+ name: "irm",
928
+ type: "address",
929
+ },
930
+ {
931
+ internalType: "uint256",
932
+ name: "lltv",
933
+ type: "uint256",
934
+ },
935
+ ],
936
+ internalType: "struct MarketParams",
937
+ name: "marketParams",
938
+ type: "tuple",
939
+ },
940
+ {
941
+ internalType: "uint256",
942
+ name: "assets",
943
+ type: "uint256",
944
+ },
945
+ {
946
+ internalType: "uint256",
947
+ name: "shares",
948
+ type: "uint256",
949
+ },
950
+ {
951
+ internalType: "address",
952
+ name: "onBehalf",
953
+ type: "address",
954
+ },
955
+ {
956
+ internalType: "address",
957
+ name: "receiver",
958
+ type: "address",
959
+ },
960
+ ],
961
+ name: "withdraw",
962
+ outputs: [
963
+ {
964
+ internalType: "uint256",
965
+ name: "assetsWithdrawn",
966
+ type: "uint256",
967
+ },
968
+ {
969
+ internalType: "uint256",
970
+ name: "sharesWithdrawn",
971
+ type: "uint256",
972
+ },
973
+ ],
974
+ stateMutability: "nonpayable",
975
+ type: "function",
976
+ },
977
+ {
978
+ inputs: [
979
+ {
980
+ components: [
981
+ {
982
+ internalType: "contract IERC20Metadata",
983
+ name: "loanToken",
984
+ type: "address",
985
+ },
986
+ {
987
+ internalType: "contract IERC20Metadata",
988
+ name: "collateralToken",
989
+ type: "address",
990
+ },
991
+ {
992
+ internalType: "contract IMorphoOracle",
993
+ name: "oracle",
994
+ type: "address",
995
+ },
996
+ {
997
+ internalType: "contract IIrm",
998
+ name: "irm",
999
+ type: "address",
1000
+ },
1001
+ {
1002
+ internalType: "uint256",
1003
+ name: "lltv",
1004
+ type: "uint256",
1005
+ },
1006
+ ],
1007
+ internalType: "struct MarketParams",
1008
+ name: "marketParams",
1009
+ type: "tuple",
1010
+ },
1011
+ {
1012
+ internalType: "uint256",
1013
+ name: "assets",
1014
+ type: "uint256",
1015
+ },
1016
+ {
1017
+ internalType: "address",
1018
+ name: "onBehalf",
1019
+ type: "address",
1020
+ },
1021
+ {
1022
+ internalType: "address",
1023
+ name: "receiver",
1024
+ type: "address",
1025
+ },
1026
+ ],
1027
+ name: "withdrawCollateral",
1028
+ outputs: [],
1029
+ stateMutability: "nonpayable",
1030
+ type: "function",
1031
+ },
1032
+ ];
1033
+
1034
+ export class IMorpho__factory {
1035
+ static readonly abi = _abi;
1036
+ static createInterface(): IMorphoInterface {
1037
+ return new utils.Interface(_abi) as IMorphoInterface;
1038
+ }
1039
+ static connect(
1040
+ address: string,
1041
+ signerOrProvider: Signer | Provider
1042
+ ): IMorpho {
1043
+ return new Contract(address, _abi, signerOrProvider) as IMorpho;
1044
+ }
1045
+ }