@pendle/core-v2 6.6.1 → 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 (411) 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 +1 -1
  47. package/build/artifacts/contracts/cross-chain/PendleSwapHelper.sol/PendleSwapHelper.dbg.json +1 -1
  48. package/build/artifacts/contracts/cross-chain/deposit-box/DepositBox.sol/DepositBox.dbg.json +1 -1
  49. package/build/artifacts/contracts/cross-chain/deposit-box/DepositBoxFactory.sol/DepositBoxFactory.dbg.json +1 -1
  50. package/build/artifacts/contracts/cross-chain/factory/PendleBridgePTFactory.sol/PendleBridgePTFactory.dbg.json +4 -0
  51. package/build/artifacts/contracts/cross-chain/factory/PendleBridgePTFactory.sol/PendleBridgePTFactory.json +1388 -0
  52. package/build/artifacts/contracts/cross-chain/funder/BridgeFunder.sol/BridgeFunder.dbg.json +1 -1
  53. package/build/artifacts/contracts/cross-chain/oftImpl/hub/OFTAdapterAltImpl.sol/OFTAdapterAltImpl.dbg.json +1 -1
  54. package/build/artifacts/contracts/cross-chain/oftImpl/hub/OFTAdapterAltImpl.sol/OFTAdapterAltImpl.json +46 -14
  55. package/build/artifacts/contracts/cross-chain/oftImpl/hub/OFTAdapterImpl.sol/OFTAdapterImpl.dbg.json +1 -1
  56. package/build/artifacts/contracts/cross-chain/oftImpl/hub/OFTAdapterImpl.sol/OFTAdapterImpl.json +46 -14
  57. package/build/artifacts/contracts/cross-chain/oftImpl/pendleOft/PendleOFT.sol/PendleOFT.dbg.json +4 -0
  58. package/build/artifacts/contracts/cross-chain/oftImpl/pendleOft/PendleOFT.sol/PendleOFT.json +1541 -0
  59. package/build/artifacts/contracts/cross-chain/oftImpl/pendleOft/PendleOFTAlt.sol/PendleOFTAlt.dbg.json +4 -0
  60. package/build/artifacts/contracts/cross-chain/oftImpl/pendleOft/PendleOFTAlt.sol/PendleOFTAlt.json +1570 -0
  61. package/build/artifacts/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalToken.sol/PendleBridgedPrincipalToken.dbg.json +1 -1
  62. package/build/artifacts/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalToken.sol/PendleBridgedPrincipalToken.json +57 -35
  63. package/build/artifacts/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalTokenAlt.sol/PendleBridgedPrincipalTokenAlt.dbg.json +1 -1
  64. package/build/artifacts/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalTokenAlt.sol/PendleBridgedPrincipalTokenAlt.json +57 -35
  65. package/build/artifacts/contracts/cross-chain/swap-hub/PendleCrossChainSwapHub.sol/PendleCrossChainSwapHub.dbg.json +1 -1
  66. package/build/artifacts/contracts/cross-chain/swap-hub/SwapHubBase.sol/SwapHubBase.dbg.json +1 -1
  67. package/build/artifacts/contracts/deprecated/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.dbg.json +1 -1
  68. package/build/artifacts/contracts/interfaces/IAddressProvider.sol/IAddressProvider.dbg.json +1 -1
  69. package/build/artifacts/contracts/interfaces/ILPWrapper.sol/ILPWrapper.dbg.json +1 -1
  70. package/build/artifacts/contracts/interfaces/ILayerZeroEndpoint.sol/ILayerZeroEndpoint.dbg.json +1 -1
  71. package/build/artifacts/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.dbg.json +1 -1
  72. package/build/artifacts/contracts/interfaces/IMarketSweed.sol/IMarketSweed.dbg.json +1 -1
  73. package/build/artifacts/contracts/interfaces/IOwnable.sol/IOwnable.dbg.json +1 -1
  74. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiqV3.sol/IPActionAddRemoveLiqV3.dbg.json +1 -1
  75. package/build/artifacts/contracts/interfaces/IPActionCallbackV3.sol/IPActionCallbackV3.dbg.json +1 -1
  76. package/build/artifacts/contracts/interfaces/IPActionInfoStatic.sol/IPActionInfoStatic.dbg.json +1 -1
  77. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
  78. package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.dbg.json +1 -1
  79. package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.dbg.json +1 -1
  80. package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
  81. package/build/artifacts/contracts/interfaces/IPActionSimple.sol/IPActionSimple.dbg.json +1 -1
  82. package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
  83. package/build/artifacts/contracts/interfaces/IPActionStorageV4.sol/IPActionStorageV4.dbg.json +1 -1
  84. package/build/artifacts/contracts/interfaces/IPActionSwapPTV3.sol/IPActionSwapPTV3.dbg.json +1 -1
  85. package/build/artifacts/contracts/interfaces/IPActionSwapYTV3.sol/IPActionSwapYTV3.dbg.json +1 -1
  86. package/build/artifacts/contracts/interfaces/IPActionVePendleStatic.sol/IPActionVePendleStatic.dbg.json +1 -1
  87. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
  88. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionAddRemoveLiqV3Events.dbg.json +1 -1
  89. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionMiscV3Events.dbg.json +1 -1
  90. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionStorageEvents.dbg.json +1 -1
  91. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapPTV3Events.dbg.json +1 -1
  92. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapYTV3Events.dbg.json +1 -1
  93. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPAllEventsV3.dbg.json +1 -1
  94. package/build/artifacts/contracts/interfaces/IPBridgeFunder.sol/IPBridgeFunder.dbg.json +1 -1
  95. package/build/artifacts/contracts/interfaces/IPBridgePTFactory.sol/IPBridgePTFactory.dbg.json +4 -0
  96. package/build/artifacts/contracts/interfaces/IPBridgePTFactory.sol/IPBridgePTFactory.json +1026 -0
  97. package/build/artifacts/contracts/interfaces/IPBridgedPrincipalToken.sol/IPBridgedPrincipalToken.dbg.json +1 -1
  98. package/build/artifacts/contracts/interfaces/IPBridgedPrincipalToken.sol/IPBridgedPrincipalToken.json +11 -0
  99. package/build/artifacts/contracts/interfaces/IPChainlinkOracle.sol/IPChainlinkOracle.dbg.json +1 -1
  100. package/build/artifacts/contracts/interfaces/IPChainlinkOracleEssential.sol/IPChainlinkOracleEssential.dbg.json +1 -1
  101. package/build/artifacts/contracts/interfaces/IPChainlinkOracleFactory.sol/IPChainlinkOracleFactory.dbg.json +1 -1
  102. package/build/artifacts/contracts/interfaces/IPChainlinkOracleWithQuote.sol/IPChainlinkOracleWithQuote.dbg.json +1 -1
  103. package/build/artifacts/contracts/interfaces/IPCommonPoolDeployHelperV2.sol/IPCommonPoolDeployHelperV2.dbg.json +1 -1
  104. package/build/artifacts/contracts/interfaces/IPCommonSYFactory.sol/IPCommonSYFactory.dbg.json +1 -1
  105. package/build/artifacts/contracts/interfaces/IPCrossChainSwapHub.sol/IPCrossChainSwapHub.dbg.json +1 -1
  106. package/build/artifacts/contracts/interfaces/IPDepositBox.sol/IPDepositBox.dbg.json +1 -1
  107. package/build/artifacts/contracts/interfaces/IPDepositBoxFactory.sol/IPDepositBoxFactory.dbg.json +1 -1
  108. package/build/artifacts/contracts/interfaces/IPExchangeRateOracle.sol/IPExchangeRateOracle.dbg.json +1 -1
  109. package/build/artifacts/contracts/interfaces/IPExchangeRateOracleApp.sol/IPExchangeRateOracleApp.dbg.json +1 -1
  110. package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.dbg.json +1 -1
  111. package/build/artifacts/contracts/interfaces/IPFeeDistributorV2.sol/IPFeeDistributorV2.dbg.json +1 -1
  112. package/build/artifacts/contracts/interfaces/IPFixedPricePTAMMV2.sol/IPFixedPricePTAMMSwapCallback.dbg.json +1 -1
  113. package/build/artifacts/contracts/interfaces/IPFixedPricePTAMMV2.sol/IPFixedPricePTAMMV2.dbg.json +1 -1
  114. package/build/artifacts/contracts/interfaces/IPGauge.sol/IPGauge.dbg.json +1 -1
  115. package/build/artifacts/contracts/interfaces/IPGaugeController.sol/IPGaugeController.dbg.json +1 -1
  116. package/build/artifacts/contracts/interfaces/IPGovernanceProxy.sol/IPGovernanceProxy.dbg.json +1 -1
  117. package/build/artifacts/contracts/interfaces/IPInterestManagerYT.sol/IPInterestManagerYT.dbg.json +1 -1
  118. package/build/artifacts/contracts/interfaces/IPInterestManagerYTV2.sol/IPInterestManagerYTV2.dbg.json +1 -1
  119. package/build/artifacts/contracts/interfaces/IPLPWrapperFactory.sol/IPLPWrapperFactory.dbg.json +1 -1
  120. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitOrderType.dbg.json +1 -1
  121. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouter.dbg.json +1 -1
  122. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouterCallback.dbg.json +1 -1
  123. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
  124. package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.dbg.json +1 -1
  125. package/build/artifacts/contracts/interfaces/IPMarketSwapCallback.sol/IPMarketSwapCallback.dbg.json +1 -1
  126. package/build/artifacts/contracts/interfaces/IPMerkleDistributor.sol/IPMerkleDistributor.dbg.json +1 -1
  127. package/build/artifacts/contracts/interfaces/IPMerkleDistributor.sol/IPMerkleDistributor.json +0 -67
  128. package/build/artifacts/contracts/interfaces/IPMiniDiamond.sol/IPMiniDiamond.dbg.json +1 -1
  129. package/build/artifacts/contracts/interfaces/IPMsgReceiverApp.sol/IPMsgReceiverApp.dbg.json +1 -1
  130. package/build/artifacts/contracts/interfaces/IPMsgSendEndpoint.sol/IPMsgSendEndpoint.dbg.json +1 -1
  131. package/build/artifacts/contracts/interfaces/IPMultiTokenMerkleDistributor.sol/IPMultiTokenMerkleDistributor.dbg.json +1 -1
  132. package/build/artifacts/contracts/interfaces/IPMultiTokenMerkleDistributor.sol/IPMultiTokenMerkleDistributor.json +0 -120
  133. package/build/artifacts/contracts/interfaces/IPOffchainStorage.sol/IPOffchainStorage.dbg.json +1 -1
  134. package/build/artifacts/contracts/interfaces/IPOracleForSy.sol/IPOracleForSy.dbg.json +1 -1
  135. package/build/artifacts/contracts/interfaces/IPPTOFTAdapterFactory.sol/IPPTOFTAdapterFactory.dbg.json +1 -1
  136. package/build/artifacts/contracts/interfaces/IPPYLpOracle.sol/IPPYLpOracle.dbg.json +1 -1
  137. package/build/artifacts/contracts/interfaces/IPPausingInterface.sol/IPPausingInterface.dbg.json +1 -1
  138. package/build/artifacts/contracts/interfaces/IPPoolDeployHelperV2.sol/IPPoolDeployHelperV2.dbg.json +1 -1
  139. package/build/artifacts/contracts/interfaces/IPPriceFeed.sol/IPPriceFeed.dbg.json +1 -1
  140. package/build/artifacts/contracts/interfaces/IPPrincipalToken.sol/IPPrincipalToken.dbg.json +1 -1
  141. package/build/artifacts/contracts/interfaces/IPReflector.sol/IPReflector.dbg.json +1 -1
  142. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
  143. package/build/artifacts/contracts/interfaces/IPStakedPendle.sol/IPStakedPendle.dbg.json +1 -1
  144. package/build/artifacts/contracts/interfaces/IPSwapHelper.sol/IPSwapHelper.dbg.json +1 -1
  145. package/build/artifacts/contracts/interfaces/IPTokenWithSupplyCap.sol/IPTokenWithSupplyCap.dbg.json +1 -1
  146. package/build/artifacts/contracts/interfaces/IPVeToken.sol/IPVeToken.dbg.json +1 -1
  147. package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
  148. package/build/artifacts/contracts/interfaces/IPYieldContractFactory.sol/IPYieldContractFactory.dbg.json +1 -1
  149. package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.dbg.json +1 -1
  150. package/build/artifacts/contracts/interfaces/IPYieldTokenV2.sol/IPYieldTokenV2.dbg.json +1 -1
  151. package/build/artifacts/contracts/interfaces/IRedstonePriceFeed.sol/IRedstonePriceFeed.dbg.json +1 -1
  152. package/build/artifacts/contracts/interfaces/IRewardManager.sol/IRewardManager.dbg.json +1 -1
  153. package/build/artifacts/contracts/interfaces/IStandardizedYield.sol/IStandardizedYield.dbg.json +1 -1
  154. package/build/artifacts/contracts/interfaces/IWETH.sol/IWETH.dbg.json +1 -1
  155. package/build/artifacts/contracts/interfaces/IWstETH.sol/IWstETH.dbg.json +1 -1
  156. package/build/artifacts/contracts/limit/LimitMathCore.sol/LimitMathCore.dbg.json +1 -1
  157. package/build/artifacts/contracts/limit/LimitRouterBase.sol/LimitRouterBase.dbg.json +1 -1
  158. package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.dbg.json +1 -1
  159. package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.json +2 -2
  160. package/build/artifacts/contracts/limit/helpers/MintSyHelper.sol/MintSyHelper.dbg.json +1 -1
  161. package/build/artifacts/contracts/limit/helpers/NonceManager.sol/NonceManager.dbg.json +1 -1
  162. package/build/artifacts/contracts/offchain-helpers/AddressProvider.sol/AddressProvider.dbg.json +1 -1
  163. package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/AutomateReady.dbg.json +1 -1
  164. package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/IAutomate.dbg.json +1 -1
  165. package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/IOpsProxyFactory.dbg.json +1 -1
  166. package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/ITaskTreasuryUpgradable.dbg.json +1 -1
  167. package/build/artifacts/contracts/offchain-helpers/BalanceReader.sol/BalanceReader.dbg.json +1 -1
  168. package/build/artifacts/contracts/offchain-helpers/BalanceReader.sol/ILegacyMarket.dbg.json +1 -1
  169. package/build/artifacts/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.dbg.json +1 -1
  170. package/build/artifacts/contracts/offchain-helpers/BytesLib.sol/BytesLib.dbg.json +1 -1
  171. package/build/artifacts/contracts/offchain-helpers/EmptyUUPS.sol/EmptyUUPS.dbg.json +1 -1
  172. package/build/artifacts/contracts/offchain-helpers/ExpiredLpPtRedeemer.sol/ExpiredLpPtRedeemer.dbg.json +1 -1
  173. package/build/artifacts/contracts/offchain-helpers/LegacyNFTHelper.sol/LegacyNFTHelper.dbg.json +1 -1
  174. package/build/artifacts/contracts/offchain-helpers/LegacyNFTHelper.sol/StarNFTV1.dbg.json +1 -1
  175. package/build/artifacts/contracts/offchain-helpers/LimitBackendHelperV2.sol/LimitBackendHelperV2.dbg.json +1 -1
  176. package/build/artifacts/contracts/offchain-helpers/MarketSweed.sol/MarketSweed.dbg.json +1 -1
  177. package/build/artifacts/contracts/offchain-helpers/Multicall2.sol/Multicall2.dbg.json +1 -1
  178. package/build/artifacts/contracts/offchain-helpers/PendleAPIFeeDepositor.sol/PendleAPIFeeDepositor.dbg.json +1 -1
  179. package/build/artifacts/contracts/offchain-helpers/PendleExchangeRateOracle.sol/PendleExchangeRateOracle.dbg.json +1 -1
  180. package/build/artifacts/contracts/offchain-helpers/PendleFeeSetter.sol/PendleFeeSetter.dbg.json +1 -1
  181. package/build/artifacts/contracts/offchain-helpers/PendleGovernanceProxy.sol/PendleGovernanceProxy.dbg.json +1 -1
  182. package/build/artifacts/contracts/offchain-helpers/PendleLPWrapper.sol/PendleLPWrapper.dbg.json +1 -1
  183. package/build/artifacts/contracts/offchain-helpers/PendleLPWrapperFactory.sol/PendleLPWrapperFactory.dbg.json +1 -1
  184. package/build/artifacts/contracts/offchain-helpers/PendleMerkleDepositor.sol/PendleMerkleDepositor.dbg.json +1 -1
  185. package/build/artifacts/contracts/offchain-helpers/PendleMulticallOwnerV1.sol/PendleMulticallOwnerV1.dbg.json +1 -1
  186. package/build/artifacts/contracts/offchain-helpers/PendleMulticallV1.sol/PendleMulticallV1.dbg.json +1 -1
  187. package/build/artifacts/contracts/offchain-helpers/PendleMulticallV2.sol/PendleMulticallV2.dbg.json +1 -1
  188. package/build/artifacts/contracts/offchain-helpers/PendleOffchainStorage.sol/PendleOffchainStorage.dbg.json +1 -1
  189. package/build/artifacts/contracts/offchain-helpers/PendleProxyAdmin.sol/PendleProxyAdmin.dbg.json +1 -1
  190. package/build/artifacts/contracts/offchain-helpers/PendleWstETHPriceFeed.sol/PendleWstETHPriceFeed.dbg.json +1 -1
  191. package/build/artifacts/contracts/offchain-helpers/SimulateHelper.sol/SimulateHelper.dbg.json +1 -1
  192. package/build/artifacts/contracts/offchain-helpers/SupplyCapReader.sol/IPossibleSupplyCapInterface.dbg.json +1 -1
  193. package/build/artifacts/contracts/offchain-helpers/SupplyCapReader.sol/SupplyCapReader.dbg.json +1 -1
  194. package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol/PendleCommonPoolDeployHelperV2.dbg.json +1 -1
  195. package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonSYFactory.sol/PendleCommonSYFactory.dbg.json +1 -1
  196. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
  197. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.dbg.json +1 -1
  198. package/build/artifacts/contracts/offchain-helpers/deploy/lib/MarketDeployLib.sol/MarketDeployLib.dbg.json +1 -1
  199. package/build/artifacts/contracts/offchain-helpers/errors/SDKErrorsDirectory.sol/SDKErrorsDirectory.dbg.json +1 -1
  200. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
  201. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
  202. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
  203. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
  204. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
  205. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
  206. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
  207. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.dbg.json +1 -1
  208. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.dbg.json +1 -1
  209. package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
  210. package/build/artifacts/contracts/oracles/CrossChainOracle/base/PendleCrossChainOracleBaseApp_Init.sol/PendleCrossChainOracleBaseApp_Init.dbg.json +1 -1
  211. package/build/artifacts/contracts/oracles/CrossChainOracle/exchangeRate/PendleExchangeRateOracleApp.sol/PendleExchangeRateOracleApp.dbg.json +1 -1
  212. package/build/artifacts/contracts/oracles/CrossChainOracle/exchangeRate/PendleExchangeRateOracleV2.sol/PendleExchangeRateOracleV2.dbg.json +1 -1
  213. package/build/artifacts/contracts/oracles/CrossChainOracle/libraries/ExchangeRateMsgCodec.sol/ExchangeRateMsgCodec.dbg.json +1 -1
  214. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendleLpOracleLib.sol/PendleLpOracleLib.dbg.json +1 -1
  215. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYLpOracle.sol/PendlePYLpOracle.dbg.json +1 -1
  216. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYOracleLib.sol/PendlePYOracleLib.dbg.json +1 -1
  217. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracle.sol/PendleChainlinkOracle.dbg.json +1 -1
  218. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleFactory.sol/PendleChainlinkOracleFactory.dbg.json +1 -1
  219. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleWithQuote.sol/PendleChainlinkOracleWithQuote.dbg.json +1 -1
  220. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringLpSeller.sol/BoringLpSeller.dbg.json +1 -1
  221. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkAssetOracle.sol/BoringPYUsdChainlinkAssetOracle.dbg.json +1 -1
  222. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkSYOracle.sol/BoringPYUsdChainlinkSYOracle.dbg.json +1 -1
  223. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPtSeller.sol/BoringPtSeller.dbg.json +1 -1
  224. package/build/artifacts/contracts/oracles/StatelessWrapper/PendleLinearDiscountOracleWrapper.sol/PendleLinearDiscountOracleWrapper.dbg.json +1 -1
  225. package/build/artifacts/contracts/oracles/StatelessWrapper/PendleSparkLinearDiscountOracleFactoryWrapper.sol/PendleSparkLinearDiscountOracleFactoryWrapper.dbg.json +1 -1
  226. package/build/artifacts/contracts/oracles/internal/PendleBoringOneracle.sol/PendleBoringOneracle.dbg.json +1 -1
  227. package/build/artifacts/contracts/oracles/internal/PendleBoringSolvBTCOneracle.sol/PendleBoringSolvBTCOneracle.dbg.json +1 -1
  228. package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracle.sol/LPExpiry.dbg.json +1 -1
  229. package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracle.sol/PendleLpLinearDiscountOracle.dbg.json +1 -1
  230. package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracleFactory.sol/PendleLpLinearDiscountOracleFactory.dbg.json +1 -1
  231. package/build/artifacts/contracts/oracles/internal/PendleRedStoneRateOracleAdapter.sol/PendleRedStoneRateOracleAdapter.dbg.json +1 -1
  232. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracle.sol/PTExpiry.dbg.json +1 -1
  233. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracle.sol/PendleSparkLinearDiscountOracle.dbg.json +1 -1
  234. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracleFactory.sol/PendleSparkLinearDiscountOracleFactory.dbg.json +1 -1
  235. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.dbg.json +1 -1
  236. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.dbg.json +1 -1
  237. package/build/artifacts/contracts/router/Reflector.sol/Reflector.dbg.json +1 -1
  238. package/build/artifacts/contracts/router/RouterStorage.sol/RouterStorage.dbg.json +1 -1
  239. package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
  240. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.dbg.json +1 -1
  241. package/build/artifacts/contracts/router/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
  242. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.dbg.json +1 -1
  243. package/build/artifacts/contracts/router/math/MarketApproxEstimateLib.sol/MarketApproxEstimateLib.dbg.json +1 -1
  244. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.dbg.json +1 -1
  245. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.dbg.json +1 -1
  246. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.dbg.json +1 -1
  247. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.dbg.json +1 -1
  248. package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.dbg.json +1 -1
  249. package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/IOKXDexRouter.dbg.json +1 -1
  250. package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/OKXScaleHelper.dbg.json +1 -1
  251. package/build/artifacts/contracts/router/swap-aggregator/ParaswapScaleHelper.sol/IAugustusV6.dbg.json +1 -1
  252. package/build/artifacts/contracts/router/swap-aggregator/ParaswapScaleHelper.sol/ParaswapScaleHelper.dbg.json +1 -1
  253. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IKyberScalingHelper.dbg.json +1 -1
  254. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IOdosRouterV2.dbg.json +1 -1
  255. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.dbg.json +1 -1
  256. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.json +2 -2
  257. package/contracts/LiquidityMining/PendleMerkleDistributor.sol +1 -28
  258. package/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol +1 -36
  259. package/contracts/cross-chain/factory/PendleBridgePTFactory.sol +495 -0
  260. package/contracts/cross-chain/oftImpl/hub/OFTAdapterAltImpl.sol +5 -4
  261. package/contracts/cross-chain/oftImpl/hub/OFTAdapterImpl.sol +14 -6
  262. package/contracts/cross-chain/oftImpl/pendleOft/PendleOFT.sol +11 -0
  263. package/contracts/cross-chain/oftImpl/pendleOft/PendleOFTAlt.sol +52 -0
  264. package/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalToken.sol +33 -24
  265. package/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalTokenAlt.sol +4 -13
  266. package/contracts/interfaces/IPBridgePTFactory.sol +129 -0
  267. package/contracts/interfaces/IPBridgedPrincipalToken.sol +4 -2
  268. package/contracts/interfaces/IPMerkleDistributor.sol +0 -7
  269. package/contracts/interfaces/IPMultiTokenMerkleDistributor.sol +0 -10
  270. package/contracts/limit/LimitRouterBase.sol +1 -1
  271. package/contracts/router/swap-aggregator/OKXScaleHelper.sol +4 -1
  272. package/deployments/143-core.json +38 -2
  273. package/deployments/143-offchain-helper.json +11 -0
  274. package/deployments/4217-core.json +1 -0
  275. package/deployments/43114-core.json +1 -0
  276. package/deployments/57073-core.json +2 -0
  277. package/deployments/747474-core.json +2 -0
  278. package/package.json +12 -9
  279. package/typechain-types/AaveMoneyMarket.ts +763 -0
  280. package/typechain-types/AaveMoneyMarketView.ts +460 -0
  281. package/typechain-types/BaseMoneyMarket.ts +697 -0
  282. package/typechain-types/BaseMoneyMarketView.ts +362 -0
  283. package/typechain-types/DVNOptions.ts +57 -0
  284. package/typechain-types/ExecutorOptions.ts +57 -0
  285. package/typechain-types/IAToken.ts +358 -0
  286. package/typechain-types/IAaveOracle.ts +235 -0
  287. package/typechain-types/IAaveRewardsController.ts +1186 -0
  288. package/typechain-types/IDefaultReserveInterestRateStrategyV3.ts +431 -0
  289. package/typechain-types/IDefaultReserveInterestRateStrategyV31.ts +606 -0
  290. package/typechain-types/IDssPsm.ts +194 -0
  291. package/typechain-types/IERC4626.ts +864 -0
  292. package/typechain-types/IFlashLoanReceiver.ts +125 -0
  293. package/typechain-types/IIrm.ts +260 -0
  294. package/typechain-types/IMoneyMarket.ts +700 -0
  295. package/typechain-types/IMoneyMarketEvents.ts +196 -0
  296. package/typechain-types/IMoneyMarketView.ts +331 -0
  297. package/typechain-types/IMorpho.ts +1147 -0
  298. package/typechain-types/IMorphoOracle.ts +81 -0
  299. package/typechain-types/IMulticall.ts +117 -0
  300. package/typechain-types/IPBridgePTFactory.ts +936 -0
  301. package/typechain-types/IPLoopPositionBox.ts +298 -0
  302. package/typechain-types/IPLoopPositionBoxFactory.ts +434 -0
  303. package/typechain-types/IPMerkleDistributor.ts +0 -90
  304. package/typechain-types/IPMultiTokenMerkleDistributor.ts +0 -158
  305. package/typechain-types/IPPTLooper.ts +1550 -0
  306. package/typechain-types/IPPTLooperView.ts +468 -0
  307. package/typechain-types/IPool.ts +2220 -0
  308. package/typechain-types/IPoolAddressesProvider.ts +789 -0
  309. package/typechain-types/IPoolDataProviderV3.ts +865 -0
  310. package/typechain-types/IPoolDataProviderV31.ts +933 -0
  311. package/typechain-types/IPot.ts +181 -0
  312. package/typechain-types/IPriceOracleGetter.ts +133 -0
  313. package/typechain-types/ISDAI.ts +877 -0
  314. package/typechain-types/LoopPositionBox.ts +309 -0
  315. package/typechain-types/LoopPositionBoxFactory.ts +609 -0
  316. package/typechain-types/MorphoBlueMoneyMarket.ts +731 -0
  317. package/typechain-types/MorphoBlueMoneyMarketView.ts +396 -0
  318. package/typechain-types/Multicall.ts +117 -0
  319. package/typechain-types/OAppPreCrimeSimulatorUpgradeable.ts +410 -0
  320. package/typechain-types/OFTAdapterAltImpl.ts +50 -19
  321. package/typechain-types/OFTAdapterImpl.ts +50 -19
  322. package/typechain-types/OFTAdapterUpgradeable.ts +1337 -0
  323. package/typechain-types/OFTCoreUpgradeable.ts +1337 -0
  324. package/typechain-types/OFTUpgradeable.ts +1681 -0
  325. package/typechain-types/OptionsBuilder.ts +57 -0
  326. package/typechain-types/PTLooperBase.ts +1759 -0
  327. package/typechain-types/PTLooperView.ts +618 -0
  328. package/typechain-types/PendleBridgePTFactory.ts +1311 -0
  329. package/typechain-types/PendleBridgedPrincipalToken.ts +67 -20
  330. package/typechain-types/PendleBridgedPrincipalTokenAlt.ts +67 -20
  331. package/typechain-types/PendleMerkleDistributor.ts +0 -106
  332. package/typechain-types/PendleMultiTokenMerkleDistributor.ts +0 -158
  333. package/typechain-types/PendleOFT.ts +1675 -0
  334. package/typechain-types/PendleOFTAlt.ts +1694 -0
  335. package/typechain-types/PendlePTLooper.ts +1784 -0
  336. package/typechain-types/PendlePTLooperView.ts +648 -0
  337. package/typechain-types/UUPSUpgradeable.ts +0 -9
  338. package/typechain-types/factories/AaveMoneyMarketView__factory.ts +450 -0
  339. package/typechain-types/factories/AaveMoneyMarket__factory.ts +726 -0
  340. package/typechain-types/factories/ActionCrossChain__factory.ts +1 -1
  341. package/typechain-types/factories/BaseMoneyMarketView__factory.ts +279 -0
  342. package/typechain-types/factories/BaseMoneyMarket__factory.ts +599 -0
  343. package/typechain-types/factories/DVNOptions__factory.ts +77 -0
  344. package/typechain-types/factories/ExecutorOptions__factory.ts +84 -0
  345. package/typechain-types/factories/FixedPricePTAMM__factory.ts +1 -1
  346. package/typechain-types/factories/IAToken__factory.ts +258 -0
  347. package/typechain-types/factories/IAaveOracle__factory.ts +132 -0
  348. package/typechain-types/factories/IAaveRewardsController__factory.ts +743 -0
  349. package/typechain-types/factories/IDefaultReserveInterestRateStrategyV31__factory.ts +441 -0
  350. package/typechain-types/factories/IDefaultReserveInterestRateStrategyV3__factory.ts +278 -0
  351. package/typechain-types/factories/IDssPsm__factory.ts +122 -0
  352. package/typechain-types/factories/IERC4626__factory.ts +635 -0
  353. package/typechain-types/factories/IFlashLoanReceiver__factory.ts +65 -0
  354. package/typechain-types/factories/IIrm__factory.ts +243 -0
  355. package/typechain-types/factories/IMoneyMarketEvents__factory.ts +225 -0
  356. package/typechain-types/factories/IMoneyMarketView__factory.ts +253 -0
  357. package/typechain-types/factories/IMoneyMarket__factory.ts +596 -0
  358. package/typechain-types/factories/IMorphoOracle__factory.ts +36 -0
  359. package/typechain-types/factories/IMorpho__factory.ts +1045 -0
  360. package/typechain-types/factories/IMulticall__factory.ts +66 -0
  361. package/typechain-types/factories/IOFT__factory.ts +11 -0
  362. package/typechain-types/factories/IPBridgePTFactory__factory.ts +1041 -0
  363. package/typechain-types/factories/IPBridgedPrincipalToken__factory.ts +11 -0
  364. package/typechain-types/factories/IPLoopPositionBoxFactory__factory.ts +420 -0
  365. package/typechain-types/factories/IPLoopPositionBox__factory.ts +198 -0
  366. package/typechain-types/factories/IPMerkleDistributor__factory.ts +0 -67
  367. package/typechain-types/factories/IPMultiTokenMerkleDistributor__factory.ts +0 -120
  368. package/typechain-types/factories/IPPTLooperView__factory.ts +331 -0
  369. package/typechain-types/factories/IPPTLooper__factory.ts +2506 -0
  370. package/typechain-types/factories/IPoolAddressesProvider__factory.ts +526 -0
  371. package/typechain-types/factories/IPoolDataProviderV31__factory.ts +596 -0
  372. package/typechain-types/factories/IPoolDataProviderV3__factory.ts +554 -0
  373. package/typechain-types/factories/IPool__factory.ts +1609 -0
  374. package/typechain-types/factories/IPot__factory.ts +98 -0
  375. package/typechain-types/factories/IPriceOracleGetter__factory.ts +71 -0
  376. package/typechain-types/factories/ISDAI__factory.ts +645 -0
  377. package/typechain-types/factories/LoopPositionBoxFactory__factory.ts +648 -0
  378. package/typechain-types/factories/LoopPositionBox__factory.ts +277 -0
  379. package/typechain-types/factories/MorphoBlueMoneyMarketView__factory.ts +384 -0
  380. package/typechain-types/factories/MorphoBlueMoneyMarket__factory.ts +691 -0
  381. package/typechain-types/factories/Multicall__factory.ts +104 -0
  382. package/typechain-types/factories/OAppPreCrimeSimulatorUpgradeable__factory.ts +311 -0
  383. package/typechain-types/factories/OFTAdapterAltImpl__factory.ts +49 -25
  384. package/typechain-types/factories/OFTAdapterImpl__factory.ts +49 -25
  385. package/typechain-types/factories/OFTAdapterUpgradeable__factory.ts +1287 -0
  386. package/typechain-types/factories/OFTAdapter__factory.ts +11 -0
  387. package/typechain-types/factories/OFTCoreUpgradeable__factory.ts +1283 -0
  388. package/typechain-types/factories/OFTCore__factory.ts +11 -0
  389. package/typechain-types/factories/OFTUpgradeable__factory.ts +1553 -0
  390. package/typechain-types/factories/OFT__factory.ts +11 -0
  391. package/typechain-types/factories/OptionsBuilder__factory.ts +91 -0
  392. package/typechain-types/factories/PTLooperBase__factory.ts +2656 -0
  393. package/typechain-types/factories/PTLooperView__factory.ts +467 -0
  394. package/typechain-types/factories/PendleBridgePTFactory__factory.ts +1481 -0
  395. package/typechain-types/factories/PendleBridgedPrincipalTokenAlt__factory.ts +60 -58
  396. package/typechain-types/factories/PendleBridgedPrincipalToken__factory.ts +60 -58
  397. package/typechain-types/factories/PendleLimitRouter__factory.ts +1 -1
  398. package/typechain-types/factories/PendleMerkleDistributor__factory.ts +1 -87
  399. package/typechain-types/factories/PendleMultiTokenMerkleDistributor__factory.ts +1 -121
  400. package/typechain-types/factories/PendleOFTAlt__factory.ts +1628 -0
  401. package/typechain-types/factories/PendleOFT__factory.ts +1599 -0
  402. package/typechain-types/factories/PendlePTLooperView__factory.ts +499 -0
  403. package/typechain-types/factories/PendlePTLooper__factory.ts +2738 -0
  404. package/typechain-types/factories/PendlePTOFTAdapterFactory__factory.ts +1 -1
  405. package/typechain-types/factories/PendleSwap__factory.ts +1 -1
  406. package/typechain-types/factories/UUPSUpgradeable__factory.ts +0 -13
  407. package/typechain-types/hardhat.d.ts +103 -49
  408. package/typechain-types/index.ts +24 -10
  409. package/build/artifacts/contracts/cross-chain/factory/hub/PendlePTOFTAdapterFactory.sol/PendlePTOFTAdapterFactory.dbg.json +0 -4
  410. package/build/artifacts/contracts/cross-chain/factory/hub/PendlePTOFTAdapterFactory.sol/PendlePTOFTAdapterFactory.json +0 -280
  411. package/contracts/cross-chain/factory/hub/PendlePTOFTAdapterFactory.sol +0 -38
@@ -0,0 +1,1759 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import {
5
+ BaseContract,
6
+ BigNumber,
7
+ BigNumberish,
8
+ BytesLike,
9
+ CallOverrides,
10
+ ContractTransaction,
11
+ Overrides,
12
+ PayableOverrides,
13
+ PopulatedTransaction,
14
+ Signer,
15
+ utils,
16
+ } from "ethers";
17
+ import { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
18
+ import { Listener, Provider } from "@ethersproject/providers";
19
+ import type {
20
+ TypedEventFilter,
21
+ TypedEvent,
22
+ TypedListener,
23
+ OnEvent,
24
+ } from "./common";
25
+
26
+ export declare namespace IPPTLooper {
27
+ export type BoxPermitStruct = {
28
+ owner: string;
29
+ boxId: BytesLike;
30
+ expiry: BigNumberish;
31
+ ownerSigHash: BytesLike;
32
+ nonce: BigNumberish;
33
+ };
34
+
35
+ export type BoxPermitStructOutput = [
36
+ string,
37
+ string,
38
+ BigNumber,
39
+ string,
40
+ BigNumber
41
+ ] & {
42
+ owner: string;
43
+ boxId: string;
44
+ expiry: BigNumber;
45
+ ownerSigHash: string;
46
+ nonce: BigNumber;
47
+ };
48
+
49
+ export type BoxApprovedCallStruct = {
50
+ extRouter: string;
51
+ approve: string;
52
+ callData: BytesLike;
53
+ };
54
+
55
+ export type BoxApprovedCallStructOutput = [string, string, string] & {
56
+ extRouter: string;
57
+ approve: string;
58
+ callData: string;
59
+ };
60
+
61
+ export type DecreasePositionMessageStruct = {
62
+ permit: IPPTLooper.BoxPermitStruct;
63
+ swap: IPPTLooper.BoxApprovedCallStruct;
64
+ bridge: IPPTLooper.BoxApprovedCallStruct;
65
+ maxBridgeAmount: BigNumberish;
66
+ bridgeNativeFee: BigNumberish;
67
+ minDebtRepaid: BigNumberish;
68
+ amountPtWithdrawn: BigNumberish;
69
+ minPtWithdrawn: BigNumberish;
70
+ postWithdrawMaxLTV: BigNumberish;
71
+ };
72
+
73
+ export type DecreasePositionMessageStructOutput = [
74
+ IPPTLooper.BoxPermitStructOutput,
75
+ IPPTLooper.BoxApprovedCallStructOutput,
76
+ IPPTLooper.BoxApprovedCallStructOutput,
77
+ BigNumber,
78
+ BigNumber,
79
+ BigNumber,
80
+ BigNumber,
81
+ BigNumber,
82
+ BigNumber
83
+ ] & {
84
+ permit: IPPTLooper.BoxPermitStructOutput;
85
+ swap: IPPTLooper.BoxApprovedCallStructOutput;
86
+ bridge: IPPTLooper.BoxApprovedCallStructOutput;
87
+ maxBridgeAmount: BigNumber;
88
+ bridgeNativeFee: BigNumber;
89
+ minDebtRepaid: BigNumber;
90
+ amountPtWithdrawn: BigNumber;
91
+ minPtWithdrawn: BigNumber;
92
+ postWithdrawMaxLTV: BigNumber;
93
+ };
94
+
95
+ export type RequestHeaderStruct = {
96
+ boxId: BytesLike;
97
+ expiry: BigNumberish;
98
+ sessionNonce: BigNumberish;
99
+ permitNonceCap: BigNumberish;
100
+ };
101
+
102
+ export type RequestHeaderStructOutput = [
103
+ string,
104
+ BigNumber,
105
+ number,
106
+ number
107
+ ] & {
108
+ boxId: string;
109
+ expiry: BigNumber;
110
+ sessionNonce: number;
111
+ permitNonceCap: number;
112
+ };
113
+
114
+ export type DecreasePositionRequestStruct = {
115
+ header: IPPTLooper.RequestHeaderStruct;
116
+ targetMaxDebt: BigNumberish;
117
+ minPtToTokenSwapRate: BigNumberish;
118
+ postWithdrawMaxLTV: BigNumberish;
119
+ };
120
+
121
+ export type DecreasePositionRequestStructOutput = [
122
+ IPPTLooper.RequestHeaderStructOutput,
123
+ BigNumber,
124
+ BigNumber,
125
+ BigNumber
126
+ ] & {
127
+ header: IPPTLooper.RequestHeaderStructOutput;
128
+ targetMaxDebt: BigNumber;
129
+ minPtToTokenSwapRate: BigNumber;
130
+ postWithdrawMaxLTV: BigNumber;
131
+ };
132
+
133
+ export type SwapBridgeWithdrawAllRequestStruct = {
134
+ header: IPPTLooper.RequestHeaderStruct;
135
+ receiveOnSpoke: boolean;
136
+ hubTokenOut: string;
137
+ dstTokenOut: string;
138
+ minTokenOut: BigNumberish;
139
+ };
140
+
141
+ export type SwapBridgeWithdrawAllRequestStructOutput = [
142
+ IPPTLooper.RequestHeaderStructOutput,
143
+ boolean,
144
+ string,
145
+ string,
146
+ BigNumber
147
+ ] & {
148
+ header: IPPTLooper.RequestHeaderStructOutput;
149
+ receiveOnSpoke: boolean;
150
+ hubTokenOut: string;
151
+ dstTokenOut: string;
152
+ minTokenOut: BigNumber;
153
+ };
154
+
155
+ export type BatchDecPosThenWithdrawRequestStruct = {
156
+ decreasePositionReq: IPPTLooper.DecreasePositionRequestStruct;
157
+ swapBridgeWithdrawAllReq: IPPTLooper.SwapBridgeWithdrawAllRequestStruct;
158
+ };
159
+
160
+ export type BatchDecPosThenWithdrawRequestStructOutput = [
161
+ IPPTLooper.DecreasePositionRequestStructOutput,
162
+ IPPTLooper.SwapBridgeWithdrawAllRequestStructOutput
163
+ ] & {
164
+ decreasePositionReq: IPPTLooper.DecreasePositionRequestStructOutput;
165
+ swapBridgeWithdrawAllReq: IPPTLooper.SwapBridgeWithdrawAllRequestStructOutput;
166
+ };
167
+
168
+ export type IncreasePositionMessageStruct = {
169
+ permit: IPPTLooper.BoxPermitStruct;
170
+ swap: IPPTLooper.BoxApprovedCallStruct;
171
+ debtTokenFee: BigNumberish;
172
+ bridge: IPPTLooper.BoxApprovedCallStruct;
173
+ maxBridgeAmount: BigNumberish;
174
+ bridgeNativeFee: BigNumberish;
175
+ minPtLent: BigNumberish;
176
+ amountDebtBorrowed: BigNumberish;
177
+ minDebtBorrowed: BigNumberish;
178
+ postBorrowMaxLTV: BigNumberish;
179
+ };
180
+
181
+ export type IncreasePositionMessageStructOutput = [
182
+ IPPTLooper.BoxPermitStructOutput,
183
+ IPPTLooper.BoxApprovedCallStructOutput,
184
+ BigNumber,
185
+ IPPTLooper.BoxApprovedCallStructOutput,
186
+ BigNumber,
187
+ BigNumber,
188
+ BigNumber,
189
+ BigNumber,
190
+ BigNumber,
191
+ BigNumber
192
+ ] & {
193
+ permit: IPPTLooper.BoxPermitStructOutput;
194
+ swap: IPPTLooper.BoxApprovedCallStructOutput;
195
+ debtTokenFee: BigNumber;
196
+ bridge: IPPTLooper.BoxApprovedCallStructOutput;
197
+ maxBridgeAmount: BigNumber;
198
+ bridgeNativeFee: BigNumber;
199
+ minPtLent: BigNumber;
200
+ amountDebtBorrowed: BigNumber;
201
+ minDebtBorrowed: BigNumber;
202
+ postBorrowMaxLTV: BigNumber;
203
+ };
204
+
205
+ export type IncreasePositionRequestStruct = {
206
+ header: IPPTLooper.RequestHeaderStruct;
207
+ targetMinPt: BigNumberish;
208
+ minTokenToPtSwapRate: BigNumberish;
209
+ postBorrowMaxLTV: BigNumberish;
210
+ isZeroPriceImpact: boolean;
211
+ };
212
+
213
+ export type IncreasePositionRequestStructOutput = [
214
+ IPPTLooper.RequestHeaderStructOutput,
215
+ BigNumber,
216
+ BigNumber,
217
+ BigNumber,
218
+ boolean
219
+ ] & {
220
+ header: IPPTLooper.RequestHeaderStructOutput;
221
+ targetMinPt: BigNumber;
222
+ minTokenToPtSwapRate: BigNumber;
223
+ postBorrowMaxLTV: BigNumber;
224
+ isZeroPriceImpact: boolean;
225
+ };
226
+
227
+ export type SwapBridgeWithdrawAllMessageStruct = {
228
+ permit: IPPTLooper.BoxPermitStruct;
229
+ swap: IPPTLooper.BoxApprovedCallStruct;
230
+ bridge: IPPTLooper.BoxApprovedCallStruct;
231
+ maxBridgeAmount: BigNumberish;
232
+ bridgeNativeFee: BigNumberish;
233
+ };
234
+
235
+ export type SwapBridgeWithdrawAllMessageStructOutput = [
236
+ IPPTLooper.BoxPermitStructOutput,
237
+ IPPTLooper.BoxApprovedCallStructOutput,
238
+ IPPTLooper.BoxApprovedCallStructOutput,
239
+ BigNumber,
240
+ BigNumber
241
+ ] & {
242
+ permit: IPPTLooper.BoxPermitStructOutput;
243
+ swap: IPPTLooper.BoxApprovedCallStructOutput;
244
+ bridge: IPPTLooper.BoxApprovedCallStructOutput;
245
+ maxBridgeAmount: BigNumber;
246
+ bridgeNativeFee: BigNumber;
247
+ };
248
+
249
+ export type UserRequestStateSetMessageStruct = {
250
+ permit: IPPTLooper.BoxPermitStruct;
251
+ isInitiate: boolean;
252
+ };
253
+
254
+ export type UserRequestStateSetMessageStructOutput = [
255
+ IPPTLooper.BoxPermitStructOutput,
256
+ boolean
257
+ ] & { permit: IPPTLooper.BoxPermitStructOutput; isInitiate: boolean };
258
+
259
+ export type UserRequestInfoStruct = {
260
+ sigHash: BytesLike;
261
+ sessionNonce: BigNumberish;
262
+ };
263
+
264
+ export type UserRequestInfoStructOutput = [string, number] & {
265
+ sigHash: string;
266
+ sessionNonce: number;
267
+ };
268
+ }
269
+
270
+ export declare namespace IMulticall {
271
+ export type Call3Struct = { allowFailure: boolean; callData: BytesLike };
272
+
273
+ export type Call3StructOutput = [boolean, string] & {
274
+ allowFailure: boolean;
275
+ callData: string;
276
+ };
277
+
278
+ export type ResultStruct = { success: boolean; returnData: BytesLike };
279
+
280
+ export type ResultStructOutput = [boolean, string] & {
281
+ success: boolean;
282
+ returnData: string;
283
+ };
284
+ }
285
+
286
+ export interface PTLooperBaseInterface extends utils.Interface {
287
+ contractName: "PTLooperBase";
288
+ functions: {
289
+ "POSITION_BOX_FACTORY()": FunctionFragment;
290
+ "TREASURY()": FunctionFragment;
291
+ "claimMoneyMarketRewards(address,bytes32)": FunctionFragment;
292
+ "claimOwnership()": FunctionFragment;
293
+ "decreaseLoopPosition(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256,uint256,uint256,uint256,uint256),bytes,(((bytes32,uint256,uint32,uint32),uint256,uint256,uint256),((bytes32,uint256,uint32,uint32),bool,address,address,uint256)),bytes)": FunctionFragment;
294
+ "depositToBox(bytes32,address,uint256,(address,address,bytes),uint256)": FunctionFragment;
295
+ "eip712Domain()": FunctionFragment;
296
+ "executor()": FunctionFragment;
297
+ "hashBoxApprovedCall((address,address,bytes))": FunctionFragment;
298
+ "hashBoxPermit((address,bytes32,uint256,bytes32,uint256))": FunctionFragment;
299
+ "hashRequestHeader((bytes32,uint256,uint32,uint32))": FunctionFragment;
300
+ "hashTyped_BatchDecPosThenWithdrawReq((((bytes32,uint256,uint32,uint32),uint256,uint256,uint256),((bytes32,uint256,uint32,uint32),bool,address,address,uint256)))": FunctionFragment;
301
+ "hashTyped_DecreasePositionMsg(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256,uint256,uint256,uint256,uint256))": FunctionFragment;
302
+ "hashTyped_DecreasePositionReq(((bytes32,uint256,uint32,uint32),uint256,uint256,uint256))": FunctionFragment;
303
+ "hashTyped_IncreasePositionMsg(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),uint256,(address,address,bytes),uint256,uint256,uint256,uint256,uint256,uint256))": FunctionFragment;
304
+ "hashTyped_IncreasePositionReq(((bytes32,uint256,uint32,uint32),uint256,uint256,uint256,bool))": FunctionFragment;
305
+ "hashTyped_SwapBridgeWithdrawAllMsg(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256))": FunctionFragment;
306
+ "hashTyped_SwapBridgeWithdrawAllReq(((bytes32,uint256,uint32,uint32),bool,address,address,uint256))": FunctionFragment;
307
+ "hashTyped_UserRequestStateSetMsg(((address,bytes32,uint256,bytes32,uint256),bool))": FunctionFragment;
308
+ "increaseLoopPosition(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),uint256,(address,address,bytes),uint256,uint256,uint256,uint256,uint256,uint256),bytes,((bytes32,uint256,uint32,uint32),uint256,uint256,uint256,bool),bytes)": FunctionFragment;
309
+ "multicall((bool,bytes)[])": FunctionFragment;
310
+ "owner()": FunctionFragment;
311
+ "pendingOwner()": FunctionFragment;
312
+ "proposer()": FunctionFragment;
313
+ "proposerNonce(bytes32)": FunctionFragment;
314
+ "setExecutor(address)": FunctionFragment;
315
+ "setProposer(address)": FunctionFragment;
316
+ "setUserRequestState(((address,bytes32,uint256,bytes32,uint256),bool),bytes)": FunctionFragment;
317
+ "swapBridgeWithdrawAll(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256),bytes,(((bytes32,uint256,uint32,uint32),uint256,uint256,uint256),((bytes32,uint256,uint32,uint32),bool,address,address,uint256)),bytes)": FunctionFragment;
318
+ "transferOwnership(address,bool,bool)": FunctionFragment;
319
+ "userRequest(address,bytes32)": FunctionFragment;
320
+ };
321
+
322
+ encodeFunctionData(
323
+ functionFragment: "POSITION_BOX_FACTORY",
324
+ values?: undefined
325
+ ): string;
326
+ encodeFunctionData(functionFragment: "TREASURY", values?: undefined): string;
327
+ encodeFunctionData(
328
+ functionFragment: "claimMoneyMarketRewards",
329
+ values: [string, BytesLike]
330
+ ): string;
331
+ encodeFunctionData(
332
+ functionFragment: "claimOwnership",
333
+ values?: undefined
334
+ ): string;
335
+ encodeFunctionData(
336
+ functionFragment: "decreaseLoopPosition",
337
+ values: [
338
+ IPPTLooper.DecreasePositionMessageStruct,
339
+ BytesLike,
340
+ IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
341
+ BytesLike
342
+ ]
343
+ ): string;
344
+ encodeFunctionData(
345
+ functionFragment: "depositToBox",
346
+ values: [
347
+ BytesLike,
348
+ string,
349
+ BigNumberish,
350
+ IPPTLooper.BoxApprovedCallStruct,
351
+ BigNumberish
352
+ ]
353
+ ): string;
354
+ encodeFunctionData(
355
+ functionFragment: "eip712Domain",
356
+ values?: undefined
357
+ ): string;
358
+ encodeFunctionData(functionFragment: "executor", values?: undefined): string;
359
+ encodeFunctionData(
360
+ functionFragment: "hashBoxApprovedCall",
361
+ values: [IPPTLooper.BoxApprovedCallStruct]
362
+ ): string;
363
+ encodeFunctionData(
364
+ functionFragment: "hashBoxPermit",
365
+ values: [IPPTLooper.BoxPermitStruct]
366
+ ): string;
367
+ encodeFunctionData(
368
+ functionFragment: "hashRequestHeader",
369
+ values: [IPPTLooper.RequestHeaderStruct]
370
+ ): string;
371
+ encodeFunctionData(
372
+ functionFragment: "hashTyped_BatchDecPosThenWithdrawReq",
373
+ values: [IPPTLooper.BatchDecPosThenWithdrawRequestStruct]
374
+ ): string;
375
+ encodeFunctionData(
376
+ functionFragment: "hashTyped_DecreasePositionMsg",
377
+ values: [IPPTLooper.DecreasePositionMessageStruct]
378
+ ): string;
379
+ encodeFunctionData(
380
+ functionFragment: "hashTyped_DecreasePositionReq",
381
+ values: [IPPTLooper.DecreasePositionRequestStruct]
382
+ ): string;
383
+ encodeFunctionData(
384
+ functionFragment: "hashTyped_IncreasePositionMsg",
385
+ values: [IPPTLooper.IncreasePositionMessageStruct]
386
+ ): string;
387
+ encodeFunctionData(
388
+ functionFragment: "hashTyped_IncreasePositionReq",
389
+ values: [IPPTLooper.IncreasePositionRequestStruct]
390
+ ): string;
391
+ encodeFunctionData(
392
+ functionFragment: "hashTyped_SwapBridgeWithdrawAllMsg",
393
+ values: [IPPTLooper.SwapBridgeWithdrawAllMessageStruct]
394
+ ): string;
395
+ encodeFunctionData(
396
+ functionFragment: "hashTyped_SwapBridgeWithdrawAllReq",
397
+ values: [IPPTLooper.SwapBridgeWithdrawAllRequestStruct]
398
+ ): string;
399
+ encodeFunctionData(
400
+ functionFragment: "hashTyped_UserRequestStateSetMsg",
401
+ values: [IPPTLooper.UserRequestStateSetMessageStruct]
402
+ ): string;
403
+ encodeFunctionData(
404
+ functionFragment: "increaseLoopPosition",
405
+ values: [
406
+ IPPTLooper.IncreasePositionMessageStruct,
407
+ BytesLike,
408
+ IPPTLooper.IncreasePositionRequestStruct,
409
+ BytesLike
410
+ ]
411
+ ): string;
412
+ encodeFunctionData(
413
+ functionFragment: "multicall",
414
+ values: [IMulticall.Call3Struct[]]
415
+ ): string;
416
+ encodeFunctionData(functionFragment: "owner", values?: undefined): string;
417
+ encodeFunctionData(
418
+ functionFragment: "pendingOwner",
419
+ values?: undefined
420
+ ): string;
421
+ encodeFunctionData(functionFragment: "proposer", values?: undefined): string;
422
+ encodeFunctionData(
423
+ functionFragment: "proposerNonce",
424
+ values: [BytesLike]
425
+ ): string;
426
+ encodeFunctionData(functionFragment: "setExecutor", values: [string]): string;
427
+ encodeFunctionData(functionFragment: "setProposer", values: [string]): string;
428
+ encodeFunctionData(
429
+ functionFragment: "setUserRequestState",
430
+ values: [IPPTLooper.UserRequestStateSetMessageStruct, BytesLike]
431
+ ): string;
432
+ encodeFunctionData(
433
+ functionFragment: "swapBridgeWithdrawAll",
434
+ values: [
435
+ IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
436
+ BytesLike,
437
+ IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
438
+ BytesLike
439
+ ]
440
+ ): string;
441
+ encodeFunctionData(
442
+ functionFragment: "transferOwnership",
443
+ values: [string, boolean, boolean]
444
+ ): string;
445
+ encodeFunctionData(
446
+ functionFragment: "userRequest",
447
+ values: [string, BytesLike]
448
+ ): string;
449
+
450
+ decodeFunctionResult(
451
+ functionFragment: "POSITION_BOX_FACTORY",
452
+ data: BytesLike
453
+ ): Result;
454
+ decodeFunctionResult(functionFragment: "TREASURY", data: BytesLike): Result;
455
+ decodeFunctionResult(
456
+ functionFragment: "claimMoneyMarketRewards",
457
+ data: BytesLike
458
+ ): Result;
459
+ decodeFunctionResult(
460
+ functionFragment: "claimOwnership",
461
+ data: BytesLike
462
+ ): Result;
463
+ decodeFunctionResult(
464
+ functionFragment: "decreaseLoopPosition",
465
+ data: BytesLike
466
+ ): Result;
467
+ decodeFunctionResult(
468
+ functionFragment: "depositToBox",
469
+ data: BytesLike
470
+ ): Result;
471
+ decodeFunctionResult(
472
+ functionFragment: "eip712Domain",
473
+ data: BytesLike
474
+ ): Result;
475
+ decodeFunctionResult(functionFragment: "executor", data: BytesLike): Result;
476
+ decodeFunctionResult(
477
+ functionFragment: "hashBoxApprovedCall",
478
+ data: BytesLike
479
+ ): Result;
480
+ decodeFunctionResult(
481
+ functionFragment: "hashBoxPermit",
482
+ data: BytesLike
483
+ ): Result;
484
+ decodeFunctionResult(
485
+ functionFragment: "hashRequestHeader",
486
+ data: BytesLike
487
+ ): Result;
488
+ decodeFunctionResult(
489
+ functionFragment: "hashTyped_BatchDecPosThenWithdrawReq",
490
+ data: BytesLike
491
+ ): Result;
492
+ decodeFunctionResult(
493
+ functionFragment: "hashTyped_DecreasePositionMsg",
494
+ data: BytesLike
495
+ ): Result;
496
+ decodeFunctionResult(
497
+ functionFragment: "hashTyped_DecreasePositionReq",
498
+ data: BytesLike
499
+ ): Result;
500
+ decodeFunctionResult(
501
+ functionFragment: "hashTyped_IncreasePositionMsg",
502
+ data: BytesLike
503
+ ): Result;
504
+ decodeFunctionResult(
505
+ functionFragment: "hashTyped_IncreasePositionReq",
506
+ data: BytesLike
507
+ ): Result;
508
+ decodeFunctionResult(
509
+ functionFragment: "hashTyped_SwapBridgeWithdrawAllMsg",
510
+ data: BytesLike
511
+ ): Result;
512
+ decodeFunctionResult(
513
+ functionFragment: "hashTyped_SwapBridgeWithdrawAllReq",
514
+ data: BytesLike
515
+ ): Result;
516
+ decodeFunctionResult(
517
+ functionFragment: "hashTyped_UserRequestStateSetMsg",
518
+ data: BytesLike
519
+ ): Result;
520
+ decodeFunctionResult(
521
+ functionFragment: "increaseLoopPosition",
522
+ data: BytesLike
523
+ ): Result;
524
+ decodeFunctionResult(functionFragment: "multicall", data: BytesLike): Result;
525
+ decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
526
+ decodeFunctionResult(
527
+ functionFragment: "pendingOwner",
528
+ data: BytesLike
529
+ ): Result;
530
+ decodeFunctionResult(functionFragment: "proposer", data: BytesLike): Result;
531
+ decodeFunctionResult(
532
+ functionFragment: "proposerNonce",
533
+ data: BytesLike
534
+ ): Result;
535
+ decodeFunctionResult(
536
+ functionFragment: "setExecutor",
537
+ data: BytesLike
538
+ ): Result;
539
+ decodeFunctionResult(
540
+ functionFragment: "setProposer",
541
+ data: BytesLike
542
+ ): Result;
543
+ decodeFunctionResult(
544
+ functionFragment: "setUserRequestState",
545
+ data: BytesLike
546
+ ): Result;
547
+ decodeFunctionResult(
548
+ functionFragment: "swapBridgeWithdrawAll",
549
+ data: BytesLike
550
+ ): Result;
551
+ decodeFunctionResult(
552
+ functionFragment: "transferOwnership",
553
+ data: BytesLike
554
+ ): Result;
555
+ decodeFunctionResult(
556
+ functionFragment: "userRequest",
557
+ data: BytesLike
558
+ ): Result;
559
+
560
+ events: {
561
+ "EIP712DomainChanged()": EventFragment;
562
+ "Initialized(uint8)": EventFragment;
563
+ "MoneyMarketLentThenBorrowed(address,uint256,uint256)": EventFragment;
564
+ "MoneyMarketRepaidThenWithdrawn(address,uint256,uint256)": EventFragment;
565
+ "OwnershipTransferred(address,address)": EventFragment;
566
+ "PositionDecreased(address,bytes32,bytes32,uint256,uint256,uint256,uint256)": EventFragment;
567
+ "PositionIncreased(address,bytes32,bytes32,uint256,uint256,uint256,uint256)": EventFragment;
568
+ "SetExecutor(address)": EventFragment;
569
+ "SetProposer(address)": EventFragment;
570
+ "TokenBridged(address,address,uint256)": EventFragment;
571
+ "TokenSwapped(address,address,uint256,address,uint256)": EventFragment;
572
+ "UserRequestStateSet(address,bytes32,bytes32,uint32,bool)": EventFragment;
573
+ "Withdrawn(address,bytes32,bytes32,uint256,address,uint256,uint256)": EventFragment;
574
+ };
575
+
576
+ getEvent(nameOrSignatureOrTopic: "EIP712DomainChanged"): EventFragment;
577
+ getEvent(nameOrSignatureOrTopic: "Initialized"): EventFragment;
578
+ getEvent(
579
+ nameOrSignatureOrTopic: "MoneyMarketLentThenBorrowed"
580
+ ): EventFragment;
581
+ getEvent(
582
+ nameOrSignatureOrTopic: "MoneyMarketRepaidThenWithdrawn"
583
+ ): EventFragment;
584
+ getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment;
585
+ getEvent(nameOrSignatureOrTopic: "PositionDecreased"): EventFragment;
586
+ getEvent(nameOrSignatureOrTopic: "PositionIncreased"): EventFragment;
587
+ getEvent(nameOrSignatureOrTopic: "SetExecutor"): EventFragment;
588
+ getEvent(nameOrSignatureOrTopic: "SetProposer"): EventFragment;
589
+ getEvent(nameOrSignatureOrTopic: "TokenBridged"): EventFragment;
590
+ getEvent(nameOrSignatureOrTopic: "TokenSwapped"): EventFragment;
591
+ getEvent(nameOrSignatureOrTopic: "UserRequestStateSet"): EventFragment;
592
+ getEvent(nameOrSignatureOrTopic: "Withdrawn"): EventFragment;
593
+ }
594
+
595
+ export type EIP712DomainChangedEvent = TypedEvent<[], {}>;
596
+
597
+ export type EIP712DomainChangedEventFilter =
598
+ TypedEventFilter<EIP712DomainChangedEvent>;
599
+
600
+ export type InitializedEvent = TypedEvent<[number], { version: number }>;
601
+
602
+ export type InitializedEventFilter = TypedEventFilter<InitializedEvent>;
603
+
604
+ export type MoneyMarketLentThenBorrowedEvent = TypedEvent<
605
+ [string, BigNumber, BigNumber],
606
+ { box: string; ptLent: BigNumber; debtBorrowed: BigNumber }
607
+ >;
608
+
609
+ export type MoneyMarketLentThenBorrowedEventFilter =
610
+ TypedEventFilter<MoneyMarketLentThenBorrowedEvent>;
611
+
612
+ export type MoneyMarketRepaidThenWithdrawnEvent = TypedEvent<
613
+ [string, BigNumber, BigNumber],
614
+ { box: string; debtRepaid: BigNumber; ptWithdrawn: BigNumber }
615
+ >;
616
+
617
+ export type MoneyMarketRepaidThenWithdrawnEventFilter =
618
+ TypedEventFilter<MoneyMarketRepaidThenWithdrawnEvent>;
619
+
620
+ export type OwnershipTransferredEvent = TypedEvent<
621
+ [string, string],
622
+ { previousOwner: string; newOwner: string }
623
+ >;
624
+
625
+ export type OwnershipTransferredEventFilter =
626
+ TypedEventFilter<OwnershipTransferredEvent>;
627
+
628
+ export type PositionDecreasedEvent = TypedEvent<
629
+ [string, string, string, BigNumber, BigNumber, BigNumber, BigNumber],
630
+ {
631
+ owner: string;
632
+ boxId: string;
633
+ ownerSigHash: string;
634
+ nonce: BigNumber;
635
+ preDebtBalance: BigNumber;
636
+ netPtToSwap: BigNumber;
637
+ postDebtBalance: BigNumber;
638
+ }
639
+ >;
640
+
641
+ export type PositionDecreasedEventFilter =
642
+ TypedEventFilter<PositionDecreasedEvent>;
643
+
644
+ export type PositionIncreasedEvent = TypedEvent<
645
+ [string, string, string, BigNumber, BigNumber, BigNumber, BigNumber],
646
+ {
647
+ owner: string;
648
+ boxId: string;
649
+ ownerSigHash: string;
650
+ nonce: BigNumber;
651
+ preDebtBalance: BigNumber;
652
+ netPtToMM: BigNumber;
653
+ postDebtBalance: BigNumber;
654
+ }
655
+ >;
656
+
657
+ export type PositionIncreasedEventFilter =
658
+ TypedEventFilter<PositionIncreasedEvent>;
659
+
660
+ export type SetExecutorEvent = TypedEvent<[string], { executor: string }>;
661
+
662
+ export type SetExecutorEventFilter = TypedEventFilter<SetExecutorEvent>;
663
+
664
+ export type SetProposerEvent = TypedEvent<[string], { proposer: string }>;
665
+
666
+ export type SetProposerEventFilter = TypedEventFilter<SetProposerEvent>;
667
+
668
+ export type TokenBridgedEvent = TypedEvent<
669
+ [string, string, BigNumber],
670
+ { box: string; token: string; amount: BigNumber }
671
+ >;
672
+
673
+ export type TokenBridgedEventFilter = TypedEventFilter<TokenBridgedEvent>;
674
+
675
+ export type TokenSwappedEvent = TypedEvent<
676
+ [string, string, BigNumber, string, BigNumber],
677
+ {
678
+ box: string;
679
+ tokenIn: string;
680
+ netIn: BigNumber;
681
+ tokenOut: string;
682
+ netOut: BigNumber;
683
+ }
684
+ >;
685
+
686
+ export type TokenSwappedEventFilter = TypedEventFilter<TokenSwappedEvent>;
687
+
688
+ export type UserRequestStateSetEvent = TypedEvent<
689
+ [string, string, string, number, boolean],
690
+ {
691
+ owner: string;
692
+ boxId: string;
693
+ ownerSigHash: string;
694
+ sessionNonce: number;
695
+ isInitiate: boolean;
696
+ }
697
+ >;
698
+
699
+ export type UserRequestStateSetEventFilter =
700
+ TypedEventFilter<UserRequestStateSetEvent>;
701
+
702
+ export type WithdrawnEvent = TypedEvent<
703
+ [string, string, string, BigNumber, string, BigNumber, BigNumber],
704
+ {
705
+ owner: string;
706
+ boxId: string;
707
+ ownerSigHash: string;
708
+ nonce: BigNumber;
709
+ tokenOut: string;
710
+ netOut: BigNumber;
711
+ fee: BigNumber;
712
+ }
713
+ >;
714
+
715
+ export type WithdrawnEventFilter = TypedEventFilter<WithdrawnEvent>;
716
+
717
+ export interface PTLooperBase extends BaseContract {
718
+ contractName: "PTLooperBase";
719
+ connect(signerOrProvider: Signer | Provider | string): this;
720
+ attach(addressOrName: string): this;
721
+ deployed(): Promise<this>;
722
+
723
+ interface: PTLooperBaseInterface;
724
+
725
+ queryFilter<TEvent extends TypedEvent>(
726
+ event: TypedEventFilter<TEvent>,
727
+ fromBlockOrBlockhash?: string | number | undefined,
728
+ toBlock?: string | number | undefined
729
+ ): Promise<Array<TEvent>>;
730
+
731
+ listeners<TEvent extends TypedEvent>(
732
+ eventFilter?: TypedEventFilter<TEvent>
733
+ ): Array<TypedListener<TEvent>>;
734
+ listeners(eventName?: string): Array<Listener>;
735
+ removeAllListeners<TEvent extends TypedEvent>(
736
+ eventFilter: TypedEventFilter<TEvent>
737
+ ): this;
738
+ removeAllListeners(eventName?: string): this;
739
+ off: OnEvent<this>;
740
+ on: OnEvent<this>;
741
+ once: OnEvent<this>;
742
+ removeListener: OnEvent<this>;
743
+
744
+ functions: {
745
+ POSITION_BOX_FACTORY(overrides?: CallOverrides): Promise<[string]>;
746
+
747
+ TREASURY(overrides?: CallOverrides): Promise<[string]>;
748
+
749
+ claimMoneyMarketRewards(
750
+ owner: string,
751
+ boxId: BytesLike,
752
+ overrides?: Overrides & { from?: string | Promise<string> }
753
+ ): Promise<ContractTransaction>;
754
+
755
+ claimOwnership(
756
+ overrides?: Overrides & { from?: string | Promise<string> }
757
+ ): Promise<ContractTransaction>;
758
+
759
+ "decreaseLoopPosition(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256,uint256,uint256,uint256,uint256),bytes,(((bytes32,uint256,uint32,uint32),uint256,uint256,uint256),((bytes32,uint256,uint32,uint32),bool,address,address,uint256)),bytes)"(
760
+ ms: IPPTLooper.DecreasePositionMessageStruct,
761
+ proposerSig: BytesLike,
762
+ req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
763
+ ownerSig: BytesLike,
764
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
765
+ ): Promise<ContractTransaction>;
766
+
767
+ "decreaseLoopPosition(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256,uint256,uint256,uint256,uint256),bytes,((bytes32,uint256,uint32,uint32),uint256,uint256,uint256),bytes)"(
768
+ ms: IPPTLooper.DecreasePositionMessageStruct,
769
+ proposerSig: BytesLike,
770
+ req: IPPTLooper.DecreasePositionRequestStruct,
771
+ ownerSig: BytesLike,
772
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
773
+ ): Promise<ContractTransaction>;
774
+
775
+ depositToBox(
776
+ boxId: BytesLike,
777
+ tokenIn: string,
778
+ amountIn: BigNumberish,
779
+ swapCall: IPPTLooper.BoxApprovedCallStruct,
780
+ minDebtTokenSwapOut: BigNumberish,
781
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
782
+ ): Promise<ContractTransaction>;
783
+
784
+ eip712Domain(
785
+ overrides?: CallOverrides
786
+ ): Promise<
787
+ [string, string, string, BigNumber, string, string, BigNumber[]] & {
788
+ fields: string;
789
+ name: string;
790
+ version: string;
791
+ chainId: BigNumber;
792
+ verifyingContract: string;
793
+ salt: string;
794
+ extensions: BigNumber[];
795
+ }
796
+ >;
797
+
798
+ executor(overrides?: CallOverrides): Promise<[string]>;
799
+
800
+ hashBoxApprovedCall(
801
+ sb: IPPTLooper.BoxApprovedCallStruct,
802
+ overrides?: CallOverrides
803
+ ): Promise<[string]>;
804
+
805
+ hashBoxPermit(
806
+ permit: IPPTLooper.BoxPermitStruct,
807
+ overrides?: CallOverrides
808
+ ): Promise<[string]>;
809
+
810
+ hashRequestHeader(
811
+ header: IPPTLooper.RequestHeaderStruct,
812
+ overrides?: CallOverrides
813
+ ): Promise<[string]>;
814
+
815
+ hashTyped_BatchDecPosThenWithdrawReq(
816
+ req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
817
+ overrides?: CallOverrides
818
+ ): Promise<[string]>;
819
+
820
+ hashTyped_DecreasePositionMsg(
821
+ ms: IPPTLooper.DecreasePositionMessageStruct,
822
+ overrides?: CallOverrides
823
+ ): Promise<[string]>;
824
+
825
+ hashTyped_DecreasePositionReq(
826
+ req: IPPTLooper.DecreasePositionRequestStruct,
827
+ overrides?: CallOverrides
828
+ ): Promise<[string]>;
829
+
830
+ hashTyped_IncreasePositionMsg(
831
+ ms: IPPTLooper.IncreasePositionMessageStruct,
832
+ overrides?: CallOverrides
833
+ ): Promise<[string]>;
834
+
835
+ hashTyped_IncreasePositionReq(
836
+ req: IPPTLooper.IncreasePositionRequestStruct,
837
+ overrides?: CallOverrides
838
+ ): Promise<[string]>;
839
+
840
+ hashTyped_SwapBridgeWithdrawAllMsg(
841
+ ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
842
+ overrides?: CallOverrides
843
+ ): Promise<[string]>;
844
+
845
+ hashTyped_SwapBridgeWithdrawAllReq(
846
+ req: IPPTLooper.SwapBridgeWithdrawAllRequestStruct,
847
+ overrides?: CallOverrides
848
+ ): Promise<[string]>;
849
+
850
+ hashTyped_UserRequestStateSetMsg(
851
+ ms: IPPTLooper.UserRequestStateSetMessageStruct,
852
+ overrides?: CallOverrides
853
+ ): Promise<[string]>;
854
+
855
+ increaseLoopPosition(
856
+ ms: IPPTLooper.IncreasePositionMessageStruct,
857
+ proposerSig: BytesLike,
858
+ req: IPPTLooper.IncreasePositionRequestStruct,
859
+ ownerSig: BytesLike,
860
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
861
+ ): Promise<ContractTransaction>;
862
+
863
+ multicall(
864
+ calls: IMulticall.Call3Struct[],
865
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
866
+ ): Promise<ContractTransaction>;
867
+
868
+ owner(overrides?: CallOverrides): Promise<[string]>;
869
+
870
+ pendingOwner(overrides?: CallOverrides): Promise<[string]>;
871
+
872
+ proposer(overrides?: CallOverrides): Promise<[string]>;
873
+
874
+ proposerNonce(
875
+ ownerSigHash: BytesLike,
876
+ overrides?: CallOverrides
877
+ ): Promise<[BigNumber] & { nonce: BigNumber }>;
878
+
879
+ setExecutor(
880
+ executor_: string,
881
+ overrides?: Overrides & { from?: string | Promise<string> }
882
+ ): Promise<ContractTransaction>;
883
+
884
+ setProposer(
885
+ proposer_: string,
886
+ overrides?: Overrides & { from?: string | Promise<string> }
887
+ ): Promise<ContractTransaction>;
888
+
889
+ setUserRequestState(
890
+ ms: IPPTLooper.UserRequestStateSetMessageStruct,
891
+ proposerSignature: BytesLike,
892
+ overrides?: Overrides & { from?: string | Promise<string> }
893
+ ): Promise<ContractTransaction>;
894
+
895
+ "swapBridgeWithdrawAll(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256),bytes,(((bytes32,uint256,uint32,uint32),uint256,uint256,uint256),((bytes32,uint256,uint32,uint32),bool,address,address,uint256)),bytes)"(
896
+ ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
897
+ proposerSig: BytesLike,
898
+ req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
899
+ ownerSig: BytesLike,
900
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
901
+ ): Promise<ContractTransaction>;
902
+
903
+ "swapBridgeWithdrawAll(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256),bytes,((bytes32,uint256,uint32,uint32),bool,address,address,uint256),bytes)"(
904
+ ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
905
+ proposerSig: BytesLike,
906
+ req: IPPTLooper.SwapBridgeWithdrawAllRequestStruct,
907
+ ownerSig: BytesLike,
908
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
909
+ ): Promise<ContractTransaction>;
910
+
911
+ transferOwnership(
912
+ newOwner: string,
913
+ direct: boolean,
914
+ renounce: boolean,
915
+ overrides?: Overrides & { from?: string | Promise<string> }
916
+ ): Promise<ContractTransaction>;
917
+
918
+ userRequest(
919
+ owner: string,
920
+ boxId: BytesLike,
921
+ overrides?: CallOverrides
922
+ ): Promise<[IPPTLooper.UserRequestInfoStructOutput]>;
923
+ };
924
+
925
+ POSITION_BOX_FACTORY(overrides?: CallOverrides): Promise<string>;
926
+
927
+ TREASURY(overrides?: CallOverrides): Promise<string>;
928
+
929
+ claimMoneyMarketRewards(
930
+ owner: string,
931
+ boxId: BytesLike,
932
+ overrides?: Overrides & { from?: string | Promise<string> }
933
+ ): Promise<ContractTransaction>;
934
+
935
+ claimOwnership(
936
+ overrides?: Overrides & { from?: string | Promise<string> }
937
+ ): Promise<ContractTransaction>;
938
+
939
+ "decreaseLoopPosition(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256,uint256,uint256,uint256,uint256),bytes,(((bytes32,uint256,uint32,uint32),uint256,uint256,uint256),((bytes32,uint256,uint32,uint32),bool,address,address,uint256)),bytes)"(
940
+ ms: IPPTLooper.DecreasePositionMessageStruct,
941
+ proposerSig: BytesLike,
942
+ req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
943
+ ownerSig: BytesLike,
944
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
945
+ ): Promise<ContractTransaction>;
946
+
947
+ "decreaseLoopPosition(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256,uint256,uint256,uint256,uint256),bytes,((bytes32,uint256,uint32,uint32),uint256,uint256,uint256),bytes)"(
948
+ ms: IPPTLooper.DecreasePositionMessageStruct,
949
+ proposerSig: BytesLike,
950
+ req: IPPTLooper.DecreasePositionRequestStruct,
951
+ ownerSig: BytesLike,
952
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
953
+ ): Promise<ContractTransaction>;
954
+
955
+ depositToBox(
956
+ boxId: BytesLike,
957
+ tokenIn: string,
958
+ amountIn: BigNumberish,
959
+ swapCall: IPPTLooper.BoxApprovedCallStruct,
960
+ minDebtTokenSwapOut: BigNumberish,
961
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
962
+ ): Promise<ContractTransaction>;
963
+
964
+ eip712Domain(
965
+ overrides?: CallOverrides
966
+ ): Promise<
967
+ [string, string, string, BigNumber, string, string, BigNumber[]] & {
968
+ fields: string;
969
+ name: string;
970
+ version: string;
971
+ chainId: BigNumber;
972
+ verifyingContract: string;
973
+ salt: string;
974
+ extensions: BigNumber[];
975
+ }
976
+ >;
977
+
978
+ executor(overrides?: CallOverrides): Promise<string>;
979
+
980
+ hashBoxApprovedCall(
981
+ sb: IPPTLooper.BoxApprovedCallStruct,
982
+ overrides?: CallOverrides
983
+ ): Promise<string>;
984
+
985
+ hashBoxPermit(
986
+ permit: IPPTLooper.BoxPermitStruct,
987
+ overrides?: CallOverrides
988
+ ): Promise<string>;
989
+
990
+ hashRequestHeader(
991
+ header: IPPTLooper.RequestHeaderStruct,
992
+ overrides?: CallOverrides
993
+ ): Promise<string>;
994
+
995
+ hashTyped_BatchDecPosThenWithdrawReq(
996
+ req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
997
+ overrides?: CallOverrides
998
+ ): Promise<string>;
999
+
1000
+ hashTyped_DecreasePositionMsg(
1001
+ ms: IPPTLooper.DecreasePositionMessageStruct,
1002
+ overrides?: CallOverrides
1003
+ ): Promise<string>;
1004
+
1005
+ hashTyped_DecreasePositionReq(
1006
+ req: IPPTLooper.DecreasePositionRequestStruct,
1007
+ overrides?: CallOverrides
1008
+ ): Promise<string>;
1009
+
1010
+ hashTyped_IncreasePositionMsg(
1011
+ ms: IPPTLooper.IncreasePositionMessageStruct,
1012
+ overrides?: CallOverrides
1013
+ ): Promise<string>;
1014
+
1015
+ hashTyped_IncreasePositionReq(
1016
+ req: IPPTLooper.IncreasePositionRequestStruct,
1017
+ overrides?: CallOverrides
1018
+ ): Promise<string>;
1019
+
1020
+ hashTyped_SwapBridgeWithdrawAllMsg(
1021
+ ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
1022
+ overrides?: CallOverrides
1023
+ ): Promise<string>;
1024
+
1025
+ hashTyped_SwapBridgeWithdrawAllReq(
1026
+ req: IPPTLooper.SwapBridgeWithdrawAllRequestStruct,
1027
+ overrides?: CallOverrides
1028
+ ): Promise<string>;
1029
+
1030
+ hashTyped_UserRequestStateSetMsg(
1031
+ ms: IPPTLooper.UserRequestStateSetMessageStruct,
1032
+ overrides?: CallOverrides
1033
+ ): Promise<string>;
1034
+
1035
+ increaseLoopPosition(
1036
+ ms: IPPTLooper.IncreasePositionMessageStruct,
1037
+ proposerSig: BytesLike,
1038
+ req: IPPTLooper.IncreasePositionRequestStruct,
1039
+ ownerSig: BytesLike,
1040
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
1041
+ ): Promise<ContractTransaction>;
1042
+
1043
+ multicall(
1044
+ calls: IMulticall.Call3Struct[],
1045
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
1046
+ ): Promise<ContractTransaction>;
1047
+
1048
+ owner(overrides?: CallOverrides): Promise<string>;
1049
+
1050
+ pendingOwner(overrides?: CallOverrides): Promise<string>;
1051
+
1052
+ proposer(overrides?: CallOverrides): Promise<string>;
1053
+
1054
+ proposerNonce(
1055
+ ownerSigHash: BytesLike,
1056
+ overrides?: CallOverrides
1057
+ ): Promise<BigNumber>;
1058
+
1059
+ setExecutor(
1060
+ executor_: string,
1061
+ overrides?: Overrides & { from?: string | Promise<string> }
1062
+ ): Promise<ContractTransaction>;
1063
+
1064
+ setProposer(
1065
+ proposer_: string,
1066
+ overrides?: Overrides & { from?: string | Promise<string> }
1067
+ ): Promise<ContractTransaction>;
1068
+
1069
+ setUserRequestState(
1070
+ ms: IPPTLooper.UserRequestStateSetMessageStruct,
1071
+ proposerSignature: BytesLike,
1072
+ overrides?: Overrides & { from?: string | Promise<string> }
1073
+ ): Promise<ContractTransaction>;
1074
+
1075
+ "swapBridgeWithdrawAll(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256),bytes,(((bytes32,uint256,uint32,uint32),uint256,uint256,uint256),((bytes32,uint256,uint32,uint32),bool,address,address,uint256)),bytes)"(
1076
+ ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
1077
+ proposerSig: BytesLike,
1078
+ req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
1079
+ ownerSig: BytesLike,
1080
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
1081
+ ): Promise<ContractTransaction>;
1082
+
1083
+ "swapBridgeWithdrawAll(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256),bytes,((bytes32,uint256,uint32,uint32),bool,address,address,uint256),bytes)"(
1084
+ ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
1085
+ proposerSig: BytesLike,
1086
+ req: IPPTLooper.SwapBridgeWithdrawAllRequestStruct,
1087
+ ownerSig: BytesLike,
1088
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
1089
+ ): Promise<ContractTransaction>;
1090
+
1091
+ transferOwnership(
1092
+ newOwner: string,
1093
+ direct: boolean,
1094
+ renounce: boolean,
1095
+ overrides?: Overrides & { from?: string | Promise<string> }
1096
+ ): Promise<ContractTransaction>;
1097
+
1098
+ userRequest(
1099
+ owner: string,
1100
+ boxId: BytesLike,
1101
+ overrides?: CallOverrides
1102
+ ): Promise<IPPTLooper.UserRequestInfoStructOutput>;
1103
+
1104
+ callStatic: {
1105
+ POSITION_BOX_FACTORY(overrides?: CallOverrides): Promise<string>;
1106
+
1107
+ TREASURY(overrides?: CallOverrides): Promise<string>;
1108
+
1109
+ claimMoneyMarketRewards(
1110
+ owner: string,
1111
+ boxId: BytesLike,
1112
+ overrides?: CallOverrides
1113
+ ): Promise<void>;
1114
+
1115
+ claimOwnership(overrides?: CallOverrides): Promise<void>;
1116
+
1117
+ "decreaseLoopPosition(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256,uint256,uint256,uint256,uint256),bytes,(((bytes32,uint256,uint32,uint32),uint256,uint256,uint256),((bytes32,uint256,uint32,uint32),bool,address,address,uint256)),bytes)"(
1118
+ ms: IPPTLooper.DecreasePositionMessageStruct,
1119
+ proposerSig: BytesLike,
1120
+ req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
1121
+ ownerSig: BytesLike,
1122
+ overrides?: CallOverrides
1123
+ ): Promise<void>;
1124
+
1125
+ "decreaseLoopPosition(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256,uint256,uint256,uint256,uint256),bytes,((bytes32,uint256,uint32,uint32),uint256,uint256,uint256),bytes)"(
1126
+ ms: IPPTLooper.DecreasePositionMessageStruct,
1127
+ proposerSig: BytesLike,
1128
+ req: IPPTLooper.DecreasePositionRequestStruct,
1129
+ ownerSig: BytesLike,
1130
+ overrides?: CallOverrides
1131
+ ): Promise<void>;
1132
+
1133
+ depositToBox(
1134
+ boxId: BytesLike,
1135
+ tokenIn: string,
1136
+ amountIn: BigNumberish,
1137
+ swapCall: IPPTLooper.BoxApprovedCallStruct,
1138
+ minDebtTokenSwapOut: BigNumberish,
1139
+ overrides?: CallOverrides
1140
+ ): Promise<BigNumber>;
1141
+
1142
+ eip712Domain(
1143
+ overrides?: CallOverrides
1144
+ ): Promise<
1145
+ [string, string, string, BigNumber, string, string, BigNumber[]] & {
1146
+ fields: string;
1147
+ name: string;
1148
+ version: string;
1149
+ chainId: BigNumber;
1150
+ verifyingContract: string;
1151
+ salt: string;
1152
+ extensions: BigNumber[];
1153
+ }
1154
+ >;
1155
+
1156
+ executor(overrides?: CallOverrides): Promise<string>;
1157
+
1158
+ hashBoxApprovedCall(
1159
+ sb: IPPTLooper.BoxApprovedCallStruct,
1160
+ overrides?: CallOverrides
1161
+ ): Promise<string>;
1162
+
1163
+ hashBoxPermit(
1164
+ permit: IPPTLooper.BoxPermitStruct,
1165
+ overrides?: CallOverrides
1166
+ ): Promise<string>;
1167
+
1168
+ hashRequestHeader(
1169
+ header: IPPTLooper.RequestHeaderStruct,
1170
+ overrides?: CallOverrides
1171
+ ): Promise<string>;
1172
+
1173
+ hashTyped_BatchDecPosThenWithdrawReq(
1174
+ req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
1175
+ overrides?: CallOverrides
1176
+ ): Promise<string>;
1177
+
1178
+ hashTyped_DecreasePositionMsg(
1179
+ ms: IPPTLooper.DecreasePositionMessageStruct,
1180
+ overrides?: CallOverrides
1181
+ ): Promise<string>;
1182
+
1183
+ hashTyped_DecreasePositionReq(
1184
+ req: IPPTLooper.DecreasePositionRequestStruct,
1185
+ overrides?: CallOverrides
1186
+ ): Promise<string>;
1187
+
1188
+ hashTyped_IncreasePositionMsg(
1189
+ ms: IPPTLooper.IncreasePositionMessageStruct,
1190
+ overrides?: CallOverrides
1191
+ ): Promise<string>;
1192
+
1193
+ hashTyped_IncreasePositionReq(
1194
+ req: IPPTLooper.IncreasePositionRequestStruct,
1195
+ overrides?: CallOverrides
1196
+ ): Promise<string>;
1197
+
1198
+ hashTyped_SwapBridgeWithdrawAllMsg(
1199
+ ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
1200
+ overrides?: CallOverrides
1201
+ ): Promise<string>;
1202
+
1203
+ hashTyped_SwapBridgeWithdrawAllReq(
1204
+ req: IPPTLooper.SwapBridgeWithdrawAllRequestStruct,
1205
+ overrides?: CallOverrides
1206
+ ): Promise<string>;
1207
+
1208
+ hashTyped_UserRequestStateSetMsg(
1209
+ ms: IPPTLooper.UserRequestStateSetMessageStruct,
1210
+ overrides?: CallOverrides
1211
+ ): Promise<string>;
1212
+
1213
+ increaseLoopPosition(
1214
+ ms: IPPTLooper.IncreasePositionMessageStruct,
1215
+ proposerSig: BytesLike,
1216
+ req: IPPTLooper.IncreasePositionRequestStruct,
1217
+ ownerSig: BytesLike,
1218
+ overrides?: CallOverrides
1219
+ ): Promise<void>;
1220
+
1221
+ multicall(
1222
+ calls: IMulticall.Call3Struct[],
1223
+ overrides?: CallOverrides
1224
+ ): Promise<IMulticall.ResultStructOutput[]>;
1225
+
1226
+ owner(overrides?: CallOverrides): Promise<string>;
1227
+
1228
+ pendingOwner(overrides?: CallOverrides): Promise<string>;
1229
+
1230
+ proposer(overrides?: CallOverrides): Promise<string>;
1231
+
1232
+ proposerNonce(
1233
+ ownerSigHash: BytesLike,
1234
+ overrides?: CallOverrides
1235
+ ): Promise<BigNumber>;
1236
+
1237
+ setExecutor(executor_: string, overrides?: CallOverrides): Promise<void>;
1238
+
1239
+ setProposer(proposer_: string, overrides?: CallOverrides): Promise<void>;
1240
+
1241
+ setUserRequestState(
1242
+ ms: IPPTLooper.UserRequestStateSetMessageStruct,
1243
+ proposerSignature: BytesLike,
1244
+ overrides?: CallOverrides
1245
+ ): Promise<void>;
1246
+
1247
+ "swapBridgeWithdrawAll(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256),bytes,(((bytes32,uint256,uint32,uint32),uint256,uint256,uint256),((bytes32,uint256,uint32,uint32),bool,address,address,uint256)),bytes)"(
1248
+ ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
1249
+ proposerSig: BytesLike,
1250
+ req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
1251
+ ownerSig: BytesLike,
1252
+ overrides?: CallOverrides
1253
+ ): Promise<void>;
1254
+
1255
+ "swapBridgeWithdrawAll(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256),bytes,((bytes32,uint256,uint32,uint32),bool,address,address,uint256),bytes)"(
1256
+ ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
1257
+ proposerSig: BytesLike,
1258
+ req: IPPTLooper.SwapBridgeWithdrawAllRequestStruct,
1259
+ ownerSig: BytesLike,
1260
+ overrides?: CallOverrides
1261
+ ): Promise<void>;
1262
+
1263
+ transferOwnership(
1264
+ newOwner: string,
1265
+ direct: boolean,
1266
+ renounce: boolean,
1267
+ overrides?: CallOverrides
1268
+ ): Promise<void>;
1269
+
1270
+ userRequest(
1271
+ owner: string,
1272
+ boxId: BytesLike,
1273
+ overrides?: CallOverrides
1274
+ ): Promise<IPPTLooper.UserRequestInfoStructOutput>;
1275
+ };
1276
+
1277
+ filters: {
1278
+ "EIP712DomainChanged()"(): EIP712DomainChangedEventFilter;
1279
+ EIP712DomainChanged(): EIP712DomainChangedEventFilter;
1280
+
1281
+ "Initialized(uint8)"(version?: null): InitializedEventFilter;
1282
+ Initialized(version?: null): InitializedEventFilter;
1283
+
1284
+ "MoneyMarketLentThenBorrowed(address,uint256,uint256)"(
1285
+ box?: string | null,
1286
+ ptLent?: null,
1287
+ debtBorrowed?: null
1288
+ ): MoneyMarketLentThenBorrowedEventFilter;
1289
+ MoneyMarketLentThenBorrowed(
1290
+ box?: string | null,
1291
+ ptLent?: null,
1292
+ debtBorrowed?: null
1293
+ ): MoneyMarketLentThenBorrowedEventFilter;
1294
+
1295
+ "MoneyMarketRepaidThenWithdrawn(address,uint256,uint256)"(
1296
+ box?: string | null,
1297
+ debtRepaid?: null,
1298
+ ptWithdrawn?: null
1299
+ ): MoneyMarketRepaidThenWithdrawnEventFilter;
1300
+ MoneyMarketRepaidThenWithdrawn(
1301
+ box?: string | null,
1302
+ debtRepaid?: null,
1303
+ ptWithdrawn?: null
1304
+ ): MoneyMarketRepaidThenWithdrawnEventFilter;
1305
+
1306
+ "OwnershipTransferred(address,address)"(
1307
+ previousOwner?: string | null,
1308
+ newOwner?: string | null
1309
+ ): OwnershipTransferredEventFilter;
1310
+ OwnershipTransferred(
1311
+ previousOwner?: string | null,
1312
+ newOwner?: string | null
1313
+ ): OwnershipTransferredEventFilter;
1314
+
1315
+ "PositionDecreased(address,bytes32,bytes32,uint256,uint256,uint256,uint256)"(
1316
+ owner?: string | null,
1317
+ boxId?: BytesLike | null,
1318
+ ownerSigHash?: null,
1319
+ nonce?: null,
1320
+ preDebtBalance?: null,
1321
+ netPtToSwap?: null,
1322
+ postDebtBalance?: null
1323
+ ): PositionDecreasedEventFilter;
1324
+ PositionDecreased(
1325
+ owner?: string | null,
1326
+ boxId?: BytesLike | null,
1327
+ ownerSigHash?: null,
1328
+ nonce?: null,
1329
+ preDebtBalance?: null,
1330
+ netPtToSwap?: null,
1331
+ postDebtBalance?: null
1332
+ ): PositionDecreasedEventFilter;
1333
+
1334
+ "PositionIncreased(address,bytes32,bytes32,uint256,uint256,uint256,uint256)"(
1335
+ owner?: string | null,
1336
+ boxId?: BytesLike | null,
1337
+ ownerSigHash?: null,
1338
+ nonce?: null,
1339
+ preDebtBalance?: null,
1340
+ netPtToMM?: null,
1341
+ postDebtBalance?: null
1342
+ ): PositionIncreasedEventFilter;
1343
+ PositionIncreased(
1344
+ owner?: string | null,
1345
+ boxId?: BytesLike | null,
1346
+ ownerSigHash?: null,
1347
+ nonce?: null,
1348
+ preDebtBalance?: null,
1349
+ netPtToMM?: null,
1350
+ postDebtBalance?: null
1351
+ ): PositionIncreasedEventFilter;
1352
+
1353
+ "SetExecutor(address)"(executor?: null): SetExecutorEventFilter;
1354
+ SetExecutor(executor?: null): SetExecutorEventFilter;
1355
+
1356
+ "SetProposer(address)"(proposer?: null): SetProposerEventFilter;
1357
+ SetProposer(proposer?: null): SetProposerEventFilter;
1358
+
1359
+ "TokenBridged(address,address,uint256)"(
1360
+ box?: string | null,
1361
+ token?: string | null,
1362
+ amount?: null
1363
+ ): TokenBridgedEventFilter;
1364
+ TokenBridged(
1365
+ box?: string | null,
1366
+ token?: string | null,
1367
+ amount?: null
1368
+ ): TokenBridgedEventFilter;
1369
+
1370
+ "TokenSwapped(address,address,uint256,address,uint256)"(
1371
+ box?: string | null,
1372
+ tokenIn?: string | null,
1373
+ netIn?: null,
1374
+ tokenOut?: string | null,
1375
+ netOut?: null
1376
+ ): TokenSwappedEventFilter;
1377
+ TokenSwapped(
1378
+ box?: string | null,
1379
+ tokenIn?: string | null,
1380
+ netIn?: null,
1381
+ tokenOut?: string | null,
1382
+ netOut?: null
1383
+ ): TokenSwappedEventFilter;
1384
+
1385
+ "UserRequestStateSet(address,bytes32,bytes32,uint32,bool)"(
1386
+ owner?: string | null,
1387
+ boxId?: BytesLike | null,
1388
+ ownerSigHash?: null,
1389
+ sessionNonce?: null,
1390
+ isInitiate?: null
1391
+ ): UserRequestStateSetEventFilter;
1392
+ UserRequestStateSet(
1393
+ owner?: string | null,
1394
+ boxId?: BytesLike | null,
1395
+ ownerSigHash?: null,
1396
+ sessionNonce?: null,
1397
+ isInitiate?: null
1398
+ ): UserRequestStateSetEventFilter;
1399
+
1400
+ "Withdrawn(address,bytes32,bytes32,uint256,address,uint256,uint256)"(
1401
+ owner?: string | null,
1402
+ boxId?: BytesLike | null,
1403
+ ownerSigHash?: null,
1404
+ nonce?: null,
1405
+ tokenOut?: null,
1406
+ netOut?: null,
1407
+ fee?: null
1408
+ ): WithdrawnEventFilter;
1409
+ Withdrawn(
1410
+ owner?: string | null,
1411
+ boxId?: BytesLike | null,
1412
+ ownerSigHash?: null,
1413
+ nonce?: null,
1414
+ tokenOut?: null,
1415
+ netOut?: null,
1416
+ fee?: null
1417
+ ): WithdrawnEventFilter;
1418
+ };
1419
+
1420
+ estimateGas: {
1421
+ POSITION_BOX_FACTORY(overrides?: CallOverrides): Promise<BigNumber>;
1422
+
1423
+ TREASURY(overrides?: CallOverrides): Promise<BigNumber>;
1424
+
1425
+ claimMoneyMarketRewards(
1426
+ owner: string,
1427
+ boxId: BytesLike,
1428
+ overrides?: Overrides & { from?: string | Promise<string> }
1429
+ ): Promise<BigNumber>;
1430
+
1431
+ claimOwnership(
1432
+ overrides?: Overrides & { from?: string | Promise<string> }
1433
+ ): Promise<BigNumber>;
1434
+
1435
+ "decreaseLoopPosition(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256,uint256,uint256,uint256,uint256),bytes,(((bytes32,uint256,uint32,uint32),uint256,uint256,uint256),((bytes32,uint256,uint32,uint32),bool,address,address,uint256)),bytes)"(
1436
+ ms: IPPTLooper.DecreasePositionMessageStruct,
1437
+ proposerSig: BytesLike,
1438
+ req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
1439
+ ownerSig: BytesLike,
1440
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
1441
+ ): Promise<BigNumber>;
1442
+
1443
+ "decreaseLoopPosition(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256,uint256,uint256,uint256,uint256),bytes,((bytes32,uint256,uint32,uint32),uint256,uint256,uint256),bytes)"(
1444
+ ms: IPPTLooper.DecreasePositionMessageStruct,
1445
+ proposerSig: BytesLike,
1446
+ req: IPPTLooper.DecreasePositionRequestStruct,
1447
+ ownerSig: BytesLike,
1448
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
1449
+ ): Promise<BigNumber>;
1450
+
1451
+ depositToBox(
1452
+ boxId: BytesLike,
1453
+ tokenIn: string,
1454
+ amountIn: BigNumberish,
1455
+ swapCall: IPPTLooper.BoxApprovedCallStruct,
1456
+ minDebtTokenSwapOut: BigNumberish,
1457
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
1458
+ ): Promise<BigNumber>;
1459
+
1460
+ eip712Domain(overrides?: CallOverrides): Promise<BigNumber>;
1461
+
1462
+ executor(overrides?: CallOverrides): Promise<BigNumber>;
1463
+
1464
+ hashBoxApprovedCall(
1465
+ sb: IPPTLooper.BoxApprovedCallStruct,
1466
+ overrides?: CallOverrides
1467
+ ): Promise<BigNumber>;
1468
+
1469
+ hashBoxPermit(
1470
+ permit: IPPTLooper.BoxPermitStruct,
1471
+ overrides?: CallOverrides
1472
+ ): Promise<BigNumber>;
1473
+
1474
+ hashRequestHeader(
1475
+ header: IPPTLooper.RequestHeaderStruct,
1476
+ overrides?: CallOverrides
1477
+ ): Promise<BigNumber>;
1478
+
1479
+ hashTyped_BatchDecPosThenWithdrawReq(
1480
+ req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
1481
+ overrides?: CallOverrides
1482
+ ): Promise<BigNumber>;
1483
+
1484
+ hashTyped_DecreasePositionMsg(
1485
+ ms: IPPTLooper.DecreasePositionMessageStruct,
1486
+ overrides?: CallOverrides
1487
+ ): Promise<BigNumber>;
1488
+
1489
+ hashTyped_DecreasePositionReq(
1490
+ req: IPPTLooper.DecreasePositionRequestStruct,
1491
+ overrides?: CallOverrides
1492
+ ): Promise<BigNumber>;
1493
+
1494
+ hashTyped_IncreasePositionMsg(
1495
+ ms: IPPTLooper.IncreasePositionMessageStruct,
1496
+ overrides?: CallOverrides
1497
+ ): Promise<BigNumber>;
1498
+
1499
+ hashTyped_IncreasePositionReq(
1500
+ req: IPPTLooper.IncreasePositionRequestStruct,
1501
+ overrides?: CallOverrides
1502
+ ): Promise<BigNumber>;
1503
+
1504
+ hashTyped_SwapBridgeWithdrawAllMsg(
1505
+ ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
1506
+ overrides?: CallOverrides
1507
+ ): Promise<BigNumber>;
1508
+
1509
+ hashTyped_SwapBridgeWithdrawAllReq(
1510
+ req: IPPTLooper.SwapBridgeWithdrawAllRequestStruct,
1511
+ overrides?: CallOverrides
1512
+ ): Promise<BigNumber>;
1513
+
1514
+ hashTyped_UserRequestStateSetMsg(
1515
+ ms: IPPTLooper.UserRequestStateSetMessageStruct,
1516
+ overrides?: CallOverrides
1517
+ ): Promise<BigNumber>;
1518
+
1519
+ increaseLoopPosition(
1520
+ ms: IPPTLooper.IncreasePositionMessageStruct,
1521
+ proposerSig: BytesLike,
1522
+ req: IPPTLooper.IncreasePositionRequestStruct,
1523
+ ownerSig: BytesLike,
1524
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
1525
+ ): Promise<BigNumber>;
1526
+
1527
+ multicall(
1528
+ calls: IMulticall.Call3Struct[],
1529
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
1530
+ ): Promise<BigNumber>;
1531
+
1532
+ owner(overrides?: CallOverrides): Promise<BigNumber>;
1533
+
1534
+ pendingOwner(overrides?: CallOverrides): Promise<BigNumber>;
1535
+
1536
+ proposer(overrides?: CallOverrides): Promise<BigNumber>;
1537
+
1538
+ proposerNonce(
1539
+ ownerSigHash: BytesLike,
1540
+ overrides?: CallOverrides
1541
+ ): Promise<BigNumber>;
1542
+
1543
+ setExecutor(
1544
+ executor_: string,
1545
+ overrides?: Overrides & { from?: string | Promise<string> }
1546
+ ): Promise<BigNumber>;
1547
+
1548
+ setProposer(
1549
+ proposer_: string,
1550
+ overrides?: Overrides & { from?: string | Promise<string> }
1551
+ ): Promise<BigNumber>;
1552
+
1553
+ setUserRequestState(
1554
+ ms: IPPTLooper.UserRequestStateSetMessageStruct,
1555
+ proposerSignature: BytesLike,
1556
+ overrides?: Overrides & { from?: string | Promise<string> }
1557
+ ): Promise<BigNumber>;
1558
+
1559
+ "swapBridgeWithdrawAll(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256),bytes,(((bytes32,uint256,uint32,uint32),uint256,uint256,uint256),((bytes32,uint256,uint32,uint32),bool,address,address,uint256)),bytes)"(
1560
+ ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
1561
+ proposerSig: BytesLike,
1562
+ req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
1563
+ ownerSig: BytesLike,
1564
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
1565
+ ): Promise<BigNumber>;
1566
+
1567
+ "swapBridgeWithdrawAll(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256),bytes,((bytes32,uint256,uint32,uint32),bool,address,address,uint256),bytes)"(
1568
+ ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
1569
+ proposerSig: BytesLike,
1570
+ req: IPPTLooper.SwapBridgeWithdrawAllRequestStruct,
1571
+ ownerSig: BytesLike,
1572
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
1573
+ ): Promise<BigNumber>;
1574
+
1575
+ transferOwnership(
1576
+ newOwner: string,
1577
+ direct: boolean,
1578
+ renounce: boolean,
1579
+ overrides?: Overrides & { from?: string | Promise<string> }
1580
+ ): Promise<BigNumber>;
1581
+
1582
+ userRequest(
1583
+ owner: string,
1584
+ boxId: BytesLike,
1585
+ overrides?: CallOverrides
1586
+ ): Promise<BigNumber>;
1587
+ };
1588
+
1589
+ populateTransaction: {
1590
+ POSITION_BOX_FACTORY(
1591
+ overrides?: CallOverrides
1592
+ ): Promise<PopulatedTransaction>;
1593
+
1594
+ TREASURY(overrides?: CallOverrides): Promise<PopulatedTransaction>;
1595
+
1596
+ claimMoneyMarketRewards(
1597
+ owner: string,
1598
+ boxId: BytesLike,
1599
+ overrides?: Overrides & { from?: string | Promise<string> }
1600
+ ): Promise<PopulatedTransaction>;
1601
+
1602
+ claimOwnership(
1603
+ overrides?: Overrides & { from?: string | Promise<string> }
1604
+ ): Promise<PopulatedTransaction>;
1605
+
1606
+ "decreaseLoopPosition(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256,uint256,uint256,uint256,uint256),bytes,(((bytes32,uint256,uint32,uint32),uint256,uint256,uint256),((bytes32,uint256,uint32,uint32),bool,address,address,uint256)),bytes)"(
1607
+ ms: IPPTLooper.DecreasePositionMessageStruct,
1608
+ proposerSig: BytesLike,
1609
+ req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
1610
+ ownerSig: BytesLike,
1611
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
1612
+ ): Promise<PopulatedTransaction>;
1613
+
1614
+ "decreaseLoopPosition(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256,uint256,uint256,uint256,uint256),bytes,((bytes32,uint256,uint32,uint32),uint256,uint256,uint256),bytes)"(
1615
+ ms: IPPTLooper.DecreasePositionMessageStruct,
1616
+ proposerSig: BytesLike,
1617
+ req: IPPTLooper.DecreasePositionRequestStruct,
1618
+ ownerSig: BytesLike,
1619
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
1620
+ ): Promise<PopulatedTransaction>;
1621
+
1622
+ depositToBox(
1623
+ boxId: BytesLike,
1624
+ tokenIn: string,
1625
+ amountIn: BigNumberish,
1626
+ swapCall: IPPTLooper.BoxApprovedCallStruct,
1627
+ minDebtTokenSwapOut: BigNumberish,
1628
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
1629
+ ): Promise<PopulatedTransaction>;
1630
+
1631
+ eip712Domain(overrides?: CallOverrides): Promise<PopulatedTransaction>;
1632
+
1633
+ executor(overrides?: CallOverrides): Promise<PopulatedTransaction>;
1634
+
1635
+ hashBoxApprovedCall(
1636
+ sb: IPPTLooper.BoxApprovedCallStruct,
1637
+ overrides?: CallOverrides
1638
+ ): Promise<PopulatedTransaction>;
1639
+
1640
+ hashBoxPermit(
1641
+ permit: IPPTLooper.BoxPermitStruct,
1642
+ overrides?: CallOverrides
1643
+ ): Promise<PopulatedTransaction>;
1644
+
1645
+ hashRequestHeader(
1646
+ header: IPPTLooper.RequestHeaderStruct,
1647
+ overrides?: CallOverrides
1648
+ ): Promise<PopulatedTransaction>;
1649
+
1650
+ hashTyped_BatchDecPosThenWithdrawReq(
1651
+ req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
1652
+ overrides?: CallOverrides
1653
+ ): Promise<PopulatedTransaction>;
1654
+
1655
+ hashTyped_DecreasePositionMsg(
1656
+ ms: IPPTLooper.DecreasePositionMessageStruct,
1657
+ overrides?: CallOverrides
1658
+ ): Promise<PopulatedTransaction>;
1659
+
1660
+ hashTyped_DecreasePositionReq(
1661
+ req: IPPTLooper.DecreasePositionRequestStruct,
1662
+ overrides?: CallOverrides
1663
+ ): Promise<PopulatedTransaction>;
1664
+
1665
+ hashTyped_IncreasePositionMsg(
1666
+ ms: IPPTLooper.IncreasePositionMessageStruct,
1667
+ overrides?: CallOverrides
1668
+ ): Promise<PopulatedTransaction>;
1669
+
1670
+ hashTyped_IncreasePositionReq(
1671
+ req: IPPTLooper.IncreasePositionRequestStruct,
1672
+ overrides?: CallOverrides
1673
+ ): Promise<PopulatedTransaction>;
1674
+
1675
+ hashTyped_SwapBridgeWithdrawAllMsg(
1676
+ ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
1677
+ overrides?: CallOverrides
1678
+ ): Promise<PopulatedTransaction>;
1679
+
1680
+ hashTyped_SwapBridgeWithdrawAllReq(
1681
+ req: IPPTLooper.SwapBridgeWithdrawAllRequestStruct,
1682
+ overrides?: CallOverrides
1683
+ ): Promise<PopulatedTransaction>;
1684
+
1685
+ hashTyped_UserRequestStateSetMsg(
1686
+ ms: IPPTLooper.UserRequestStateSetMessageStruct,
1687
+ overrides?: CallOverrides
1688
+ ): Promise<PopulatedTransaction>;
1689
+
1690
+ increaseLoopPosition(
1691
+ ms: IPPTLooper.IncreasePositionMessageStruct,
1692
+ proposerSig: BytesLike,
1693
+ req: IPPTLooper.IncreasePositionRequestStruct,
1694
+ ownerSig: BytesLike,
1695
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
1696
+ ): Promise<PopulatedTransaction>;
1697
+
1698
+ multicall(
1699
+ calls: IMulticall.Call3Struct[],
1700
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
1701
+ ): Promise<PopulatedTransaction>;
1702
+
1703
+ owner(overrides?: CallOverrides): Promise<PopulatedTransaction>;
1704
+
1705
+ pendingOwner(overrides?: CallOverrides): Promise<PopulatedTransaction>;
1706
+
1707
+ proposer(overrides?: CallOverrides): Promise<PopulatedTransaction>;
1708
+
1709
+ proposerNonce(
1710
+ ownerSigHash: BytesLike,
1711
+ overrides?: CallOverrides
1712
+ ): Promise<PopulatedTransaction>;
1713
+
1714
+ setExecutor(
1715
+ executor_: string,
1716
+ overrides?: Overrides & { from?: string | Promise<string> }
1717
+ ): Promise<PopulatedTransaction>;
1718
+
1719
+ setProposer(
1720
+ proposer_: string,
1721
+ overrides?: Overrides & { from?: string | Promise<string> }
1722
+ ): Promise<PopulatedTransaction>;
1723
+
1724
+ setUserRequestState(
1725
+ ms: IPPTLooper.UserRequestStateSetMessageStruct,
1726
+ proposerSignature: BytesLike,
1727
+ overrides?: Overrides & { from?: string | Promise<string> }
1728
+ ): Promise<PopulatedTransaction>;
1729
+
1730
+ "swapBridgeWithdrawAll(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256),bytes,(((bytes32,uint256,uint32,uint32),uint256,uint256,uint256),((bytes32,uint256,uint32,uint32),bool,address,address,uint256)),bytes)"(
1731
+ ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
1732
+ proposerSig: BytesLike,
1733
+ req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
1734
+ ownerSig: BytesLike,
1735
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
1736
+ ): Promise<PopulatedTransaction>;
1737
+
1738
+ "swapBridgeWithdrawAll(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256),bytes,((bytes32,uint256,uint32,uint32),bool,address,address,uint256),bytes)"(
1739
+ ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
1740
+ proposerSig: BytesLike,
1741
+ req: IPPTLooper.SwapBridgeWithdrawAllRequestStruct,
1742
+ ownerSig: BytesLike,
1743
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
1744
+ ): Promise<PopulatedTransaction>;
1745
+
1746
+ transferOwnership(
1747
+ newOwner: string,
1748
+ direct: boolean,
1749
+ renounce: boolean,
1750
+ overrides?: Overrides & { from?: string | Promise<string> }
1751
+ ): Promise<PopulatedTransaction>;
1752
+
1753
+ userRequest(
1754
+ owner: string,
1755
+ boxId: BytesLike,
1756
+ overrides?: CallOverrides
1757
+ ): Promise<PopulatedTransaction>;
1758
+ };
1759
+ }