@pendle/core-v2 0.11.11-testnet → 0.12.0-testnet

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 (350) hide show
  1. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
  2. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.json +2 -2
  3. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenSCY.sol/PendleQiTokenSCY.dbg.json +1 -1
  4. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenSCY.sol/PendleQiTokenSCY.json +199 -30
  5. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Convex/ConvexCurveLP/Pendle3CrvAndTokenSCY.sol/Pendle3CrvAndTokenSCY.dbg.json +4 -0
  6. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Convex/ConvexCurveLP/Pendle3CrvAndTokenSCY.sol/Pendle3CrvAndTokenSCY.json +1030 -0
  7. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Convex/ConvexCurveLP/PendleConvexCurveLP2PoolSCY.sol/PendleConvexCurveLP2PoolSCY.dbg.json +4 -0
  8. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Convex/ConvexCurveLP/PendleConvexCurveLP2PoolSCY.sol/PendleConvexCurveLP2PoolSCY.json +1025 -0
  9. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Convex/ConvexCurveLP/PendleConvexCurveLPSCY.sol/PendleConvexCurveLPSCY.dbg.json +4 -0
  10. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Convex/ConvexCurveLP/PendleConvexCurveLPSCY.sol/PendleConvexCurveLPSCY.json +948 -0
  11. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Convex/Pendle3CrvHelper.sol/Pendle3CrvHelper.dbg.json +4 -0
  12. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Convex/Pendle3CrvHelper.sol/Pendle3CrvHelper.json +76 -0
  13. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleWstEthSCY.sol/PendleWstEthSCY.dbg.json +1 -1
  14. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleWstEthSCY.sol/PendleWstEthSCY.json +140 -25
  15. package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBase.sol/SCYBase.dbg.json +1 -1
  16. package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBase.sol/SCYBase.json +138 -23
  17. package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBaseWithRewards.sol/SCYBaseWithRewards.dbg.json +1 -1
  18. package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBaseWithRewards.sol/SCYBaseWithRewards.json +138 -23
  19. package/build/artifacts/contracts/core/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.dbg.json +4 -0
  20. package/build/artifacts/contracts/core/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.json +310 -0
  21. package/build/artifacts/contracts/core/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.dbg.json +4 -0
  22. package/build/artifacts/contracts/core/LiquidityMining/{CelerAbstracts/CelerReceiverUpg.sol/CelerReceiverUpg.json → CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.json} +18 -85
  23. package/build/artifacts/contracts/core/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.dbg.json +4 -0
  24. package/build/artifacts/contracts/core/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.json +336 -0
  25. package/build/artifacts/contracts/core/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.dbg.json +4 -0
  26. package/build/artifacts/contracts/core/LiquidityMining/{CelerAbstracts/CelerSenderUpg.sol/CelerSenderUpg.json → CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.json} +8 -21
  27. package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/EpochResultManager.sol/EpochResultManager.dbg.json +4 -0
  28. package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/EpochResultManager.sol/EpochResultManager.json +131 -0
  29. package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +4 -0
  30. package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.json +297 -0
  31. package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/PendleFeeDistributorFactory.sol/PendleFeeDistributorFactory.dbg.json +4 -0
  32. package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/PendleFeeDistributorFactory.sol/PendleFeeDistributorFactory.json +376 -0
  33. package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
  34. package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.json +11 -0
  35. package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
  36. package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +29 -2
  37. package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
  38. package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.json +40 -86
  39. package/build/artifacts/contracts/core/LiquidityMining/PendleGauge.sol/PendleGauge.dbg.json +1 -1
  40. package/build/artifacts/contracts/core/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
  41. package/build/artifacts/contracts/core/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +228 -40
  42. package/build/artifacts/contracts/core/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
  43. package/build/artifacts/contracts/core/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.json +232 -12
  44. package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
  45. package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +164 -47
  46. package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
  47. package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +25 -93
  48. package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
  49. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
  50. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.json +222 -9
  51. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
  52. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.json +106 -5
  53. package/build/artifacts/contracts/core/PendleERC20Permit.sol/PendleERC20Permit.dbg.json +4 -0
  54. package/build/artifacts/contracts/core/PendleERC20Permit.sol/PendleERC20Permit.json +329 -0
  55. package/build/artifacts/contracts/core/PendleRouter.sol/PendleRouter.dbg.json +1 -1
  56. package/build/artifacts/contracts/core/PendleRouter.sol/PendleRouter.json +13 -2
  57. package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
  58. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
  59. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.json +87 -2
  60. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
  61. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +80 -16
  62. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
  63. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +164 -2
  64. package/build/artifacts/contracts/core/actions/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
  65. package/build/artifacts/contracts/core/actions/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +172 -4
  66. package/build/artifacts/contracts/core/actions/ActionCallback.sol/ActionCallback.dbg.json +1 -1
  67. package/build/artifacts/contracts/core/actions/ActionCallback.sol/ActionCallback.json +109 -2
  68. package/build/artifacts/contracts/core/actions/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
  69. package/build/artifacts/contracts/core/actions/ActionMintRedeem.sol/ActionMintRedeem.json +57 -4
  70. package/build/artifacts/contracts/core/actions/ActionMisc.sol/ActionMisc.dbg.json +1 -1
  71. package/build/artifacts/contracts/core/actions/ActionMisc.sol/ActionMisc.json +7 -2
  72. package/build/artifacts/contracts/core/actions/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
  73. package/build/artifacts/contracts/core/actions/ActionSwapPT.sol/ActionSwapPT.json +199 -4
  74. package/build/artifacts/contracts/core/actions/ActionSwapPTYT.sol/ActionSwapPTYT.dbg.json +1 -1
  75. package/build/artifacts/contracts/core/actions/ActionSwapPTYT.sol/ActionSwapPTYT.json +108 -2
  76. package/build/artifacts/contracts/core/actions/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
  77. package/build/artifacts/contracts/core/actions/ActionSwapYT.sol/ActionSwapYT.json +146 -4
  78. package/build/artifacts/contracts/core/actions/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +1 -1
  79. package/build/artifacts/contracts/interfaces/ConvexCurve/IBooster.sol/IBooster.dbg.json +4 -0
  80. package/build/artifacts/contracts/interfaces/ConvexCurve/IBooster.sol/IBooster.json +177 -0
  81. package/build/artifacts/contracts/interfaces/ConvexCurve/ICrvDepositor.sol/ICrvDepositor.dbg.json +4 -0
  82. package/build/artifacts/contracts/interfaces/ConvexCurve/ICrvDepositor.sol/ICrvDepositor.json +78 -0
  83. package/build/artifacts/contracts/interfaces/ConvexCurve/ICvxCrv.sol/ICvxCrv.dbg.json +4 -0
  84. package/build/artifacts/contracts/interfaces/ConvexCurve/ICvxCrv.sol/ICvxCrv.json +24 -0
  85. package/build/artifacts/contracts/interfaces/ConvexCurve/IRewards.sol/IRewards.dbg.json +4 -0
  86. package/build/artifacts/contracts/interfaces/ConvexCurve/IRewards.sol/IRewards.json +264 -0
  87. package/build/artifacts/contracts/interfaces/Curve/ICrvPool.sol/ICrvPool.dbg.json +4 -0
  88. package/build/artifacts/contracts/interfaces/Curve/ICrvPool.sol/ICrvPool.json +305 -0
  89. package/build/artifacts/contracts/interfaces/IBoringOwnableUpgradeable.sol/IBoringOwnableUpgradeable.dbg.json +4 -0
  90. package/build/artifacts/contracts/interfaces/IBoringOwnableUpgradeable.sol/IBoringOwnableUpgradeable.json +34 -0
  91. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
  92. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.json +31 -1
  93. package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
  94. package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
  95. package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.json +30 -0
  96. package/build/artifacts/contracts/interfaces/IPActionSwapPTYT.sol/IPActionSwapPTYT.dbg.json +1 -1
  97. package/build/artifacts/contracts/interfaces/IPActionSwapPTYT.sol/IPActionSwapPTYT.json +10 -0
  98. package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
  99. package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.json +30 -0
  100. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
  101. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.json +101 -1
  102. package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.dbg.json +4 -0
  103. package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.json +112 -0
  104. package/build/artifacts/contracts/interfaces/IPFeeDistributorFactory.sol/IPFeeDistributorFactory.dbg.json +4 -0
  105. package/build/artifacts/contracts/interfaces/IPFeeDistributorFactory.sol/IPFeeDistributorFactory.json +76 -0
  106. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
  107. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.json +13 -0
  108. package/build/artifacts/contracts/interfaces/IPMsgReceiverApp.sol/IPMsgReceiverApp.dbg.json +4 -0
  109. package/build/artifacts/contracts/interfaces/IPMsgReceiverApp.sol/IPMsgReceiverApp.json +24 -0
  110. package/build/artifacts/contracts/interfaces/IPMsgSendEndpoint.sol/IPMsgSendEndpoint.dbg.json +4 -0
  111. package/build/artifacts/contracts/interfaces/IPMsgSendEndpoint.sol/IPMsgSendEndpoint.json +63 -0
  112. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
  113. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.json +148 -0
  114. package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +4 -0
  115. package/build/artifacts/contracts/interfaces/{IPVotingEscrow.sol/IPVotingEscrow.json → IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.json} +88 -2
  116. package/build/artifacts/contracts/interfaces/ISuperComposableYield.sol/ISuperComposableYield.dbg.json +1 -1
  117. package/build/artifacts/contracts/interfaces/ISuperComposableYield.sol/ISuperComposableYield.json +4 -28
  118. package/build/artifacts/contracts/libraries/Errors.sol/Errors.dbg.json +4 -0
  119. package/build/artifacts/contracts/libraries/Errors.sol/Errors.json +886 -0
  120. package/build/artifacts/contracts/libraries/OracleLib.sol/OracleLib.dbg.json +1 -1
  121. package/build/artifacts/contracts/libraries/OracleLib.sol/OracleLib.json +28 -2
  122. package/build/artifacts/contracts/libraries/RewardManager.sol/RewardManager.dbg.json +1 -1
  123. package/build/artifacts/contracts/libraries/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
  124. package/build/artifacts/contracts/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
  125. package/build/artifacts/contracts/libraries/VeBalanceLib.sol/VeBalanceLib.json +2 -2
  126. package/build/artifacts/contracts/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +4 -0
  127. package/build/artifacts/contracts/libraries/{solmate/SSTORE2.sol/SSTORE2.json → VeHistoryLib.sol/CheckpointHelper.json} +4 -4
  128. package/build/artifacts/contracts/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
  129. package/build/artifacts/contracts/libraries/VeHistoryLib.sol/Checkpoints.json +2 -2
  130. package/build/artifacts/contracts/libraries/helpers/ArrayLib.sol/ArrayLib.dbg.json +1 -1
  131. package/build/artifacts/contracts/libraries/helpers/ArrayLib.sol/ArrayLib.json +2 -2
  132. package/build/artifacts/contracts/libraries/helpers/BaseSplitCodeFactory.sol/BaseSplitCodeFactory.dbg.json +4 -0
  133. package/build/artifacts/contracts/libraries/helpers/BaseSplitCodeFactory.sol/BaseSplitCodeFactory.json +45 -0
  134. package/build/artifacts/contracts/libraries/helpers/BaseSplitCodeFactory.sol/CodeDeployer.dbg.json +4 -0
  135. package/build/artifacts/contracts/libraries/helpers/{SSTORE2Deployer.sol/SSTORE2Deployer.json → BaseSplitCodeFactory.sol/CodeDeployer.json} +4 -4
  136. package/build/artifacts/contracts/libraries/helpers/PYIndex.sol/PYIndexLib.dbg.json +1 -1
  137. package/build/artifacts/contracts/libraries/helpers/PYIndex.sol/PYIndexLib.json +2 -2
  138. package/build/artifacts/contracts/libraries/helpers/TokenHelper.sol/TokenHelper.dbg.json +1 -1
  139. package/build/artifacts/contracts/libraries/kyberswap/AggregationRouterHelper.sol/AggregationRouterHelper.dbg.json +1 -1
  140. package/build/artifacts/contracts/libraries/kyberswap/AggregationRouterHelper.sol/AggregationRouterHelper.json +2 -2
  141. package/build/artifacts/contracts/libraries/kyberswap/KyberSwapHelper.sol/KyberSwapHelper.dbg.json +1 -1
  142. package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
  143. package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxPtInLib.json +2 -2
  144. package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
  145. package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxPtOutLib.json +2 -2
  146. package/build/artifacts/contracts/libraries/math/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
  147. package/build/artifacts/contracts/libraries/math/MarketMathCore.sol/MarketMathCore.json +2 -2
  148. package/build/artifacts/contracts/libraries/math/Math.sol/Math.dbg.json +1 -1
  149. package/build/artifacts/contracts/libraries/math/Math.sol/Math.json +2 -2
  150. package/build/artifacts/contracts/libraries/math/WeekMath.sol/WeekMath.dbg.json +1 -1
  151. package/build/artifacts/contracts/libraries/math/WeekMath.sol/WeekMath.json +2 -2
  152. package/build/artifacts/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.dbg.json +4 -0
  153. package/build/artifacts/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.json +167 -0
  154. package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.dbg.json +1 -1
  155. package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.json +182 -4
  156. package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.dbg.json +1 -1
  157. package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.json +126 -79
  158. package/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenHelper.sol +3 -1
  159. package/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenSCY.sol +19 -16
  160. package/contracts/SuperComposableYield/SCY-implementations/Convex/ConvexCurveLP/Pendle3CrvAndTokenSCY.sol +135 -0
  161. package/contracts/SuperComposableYield/SCY-implementations/Convex/ConvexCurveLP/PendleConvexCurveLP2PoolSCY.sol +96 -0
  162. package/contracts/SuperComposableYield/SCY-implementations/Convex/ConvexCurveLP/PendleConvexCurveLPSCY.sol +215 -0
  163. package/contracts/SuperComposableYield/SCY-implementations/Convex/Pendle3CrvHelper.sol +83 -0
  164. package/contracts/SuperComposableYield/SCY-implementations/PendleWstEthSCY.sol +10 -15
  165. package/contracts/SuperComposableYield/base-implementations/SCYBase.sol +30 -43
  166. package/contracts/core/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol +74 -0
  167. package/contracts/core/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol +38 -0
  168. package/contracts/core/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol +83 -0
  169. package/contracts/core/LiquidityMining/{CelerAbstracts/CelerSenderUpg.sol → CrossChainMsg/PendleMsgSenderAppUpg.sol} +12 -13
  170. package/contracts/core/LiquidityMining/FeeDistributor/EpochResultManager.sol +159 -0
  171. package/contracts/core/LiquidityMining/FeeDistributor/PendleFeeDistributor.sol +96 -0
  172. package/contracts/core/LiquidityMining/FeeDistributor/PendleFeeDistributorFactory.sol +68 -0
  173. package/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol +4 -3
  174. package/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol +6 -2
  175. package/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol +12 -4
  176. package/contracts/core/LiquidityMining/VotingController/PendleVotingControllerUpg.sol +29 -19
  177. package/contracts/core/LiquidityMining/VotingController/VotingControllerStorageUpg.sol +27 -19
  178. package/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol +63 -27
  179. package/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol +6 -5
  180. package/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol +2 -2
  181. package/contracts/core/Market/PendleMarket.sol +26 -24
  182. package/contracts/core/Market/PendleMarketFactory.sol +41 -20
  183. package/contracts/core/PendleERC20Permit.sol +84 -0
  184. package/contracts/core/PendleRouter.sol +2 -1
  185. package/contracts/core/YieldContracts/PendlePrincipalToken.sol +8 -7
  186. package/contracts/core/YieldContracts/PendleYieldContractFactory.sol +37 -22
  187. package/contracts/core/YieldContracts/PendleYieldToken.sol +106 -35
  188. package/contracts/core/actions/ActionAddRemoveLiq.sol +58 -41
  189. package/contracts/core/actions/ActionCallback.sol +24 -14
  190. package/contracts/core/actions/ActionMintRedeem.sol +11 -5
  191. package/contracts/core/actions/ActionMisc.sol +2 -1
  192. package/contracts/core/actions/ActionSwapPT.sol +38 -19
  193. package/contracts/core/actions/ActionSwapPTYT.sol +7 -6
  194. package/contracts/core/actions/ActionSwapYT.sol +36 -19
  195. package/contracts/core/actions/base/ActionBaseMintRedeem.sol +15 -8
  196. package/contracts/interfaces/ConvexCurve/IBooster.sol +32 -0
  197. package/contracts/interfaces/ConvexCurve/ICrvDepositor.sol +20 -0
  198. package/contracts/interfaces/ConvexCurve/ICvxCrv.sol +6 -0
  199. package/contracts/interfaces/ConvexCurve/IRewards.sol +38 -0
  200. package/contracts/interfaces/Curve/ICrvPool.sol +69 -0
  201. package/contracts/interfaces/IBoringOwnableUpgradeable.sol +10 -0
  202. package/contracts/interfaces/IPActionAddRemoveLiq.sol +7 -7
  203. package/contracts/interfaces/IPActionSwapPT.sol +6 -6
  204. package/contracts/interfaces/IPActionSwapPTYT.sol +2 -2
  205. package/contracts/interfaces/IPActionSwapYT.sol +13 -13
  206. package/contracts/interfaces/IPFeeDistributor.sol +19 -0
  207. package/contracts/interfaces/IPFeeDistributorFactory.sol +14 -0
  208. package/contracts/interfaces/IPMarket.sol +2 -0
  209. package/contracts/interfaces/IPMsgReceiverApp.sol +7 -0
  210. package/contracts/interfaces/IPMsgSendEndpoint.sol +17 -0
  211. package/contracts/interfaces/IPVotingController.sol +22 -0
  212. package/contracts/interfaces/{IPVotingEscrow.sol → IPVotingEscrowMainchain.sol} +11 -1
  213. package/contracts/interfaces/ISuperComposableYield.sol +2 -7
  214. package/contracts/libraries/Errors.sol +121 -0
  215. package/contracts/libraries/OracleLib.sol +6 -3
  216. package/contracts/libraries/VeBalanceLib.sol +5 -1
  217. package/contracts/libraries/VeHistoryLib.sol +20 -31
  218. package/contracts/libraries/helpers/ArrayLib.sol +0 -17
  219. package/contracts/libraries/helpers/BaseSplitCodeFactory.sol +288 -0
  220. package/contracts/libraries/helpers/TokenHelper.sol +4 -0
  221. package/contracts/libraries/kyberswap/AggregationRouterHelper.sol +0 -7
  222. package/contracts/libraries/math/MarketMathCore.sol +29 -25
  223. package/contracts/libraries/math/Math.sol +6 -2
  224. package/contracts/libraries/math/WeekMath.sol +2 -2
  225. package/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol +43 -0
  226. package/contracts/offchain-helpers/MarketMathStatic.sol +36 -36
  227. package/contracts/offchain-helpers/RouterStatic.sol +45 -37
  228. package/deployments/43113-core.json +11 -10
  229. package/deployments/43113-markets/benqi-market-QI-USDC-FEB-2ND.json +8 -0
  230. package/deployments/43113-markets/benqi-market-QI-WETH-DEC-1ST.json +8 -0
  231. package/deployments/43113-testenv.json +9 -9
  232. package/deployments/80001-core.json +10 -9
  233. package/deployments/80001-markets/benqi-market-QI-USDC-FEB-2ND.json +8 -0
  234. package/deployments/80001-markets/benqi-market-QI-WETH-DEC-1ST.json +8 -0
  235. package/deployments/80001-testenv.json +16 -16
  236. package/package.json +1 -1
  237. package/typechain-types/ActionAddRemoveLiq.ts +18 -6
  238. package/typechain-types/ActionSwapPT.ts +18 -6
  239. package/typechain-types/ActionSwapPTYT.ts +6 -2
  240. package/typechain-types/ActionSwapYT.ts +18 -6
  241. package/typechain-types/IPActionAddRemoveLiq.ts +19 -7
  242. package/typechain-types/IPActionSwapPT.ts +18 -6
  243. package/typechain-types/IPActionSwapPTYT.ts +6 -2
  244. package/typechain-types/IPActionSwapYT.ts +18 -6
  245. package/typechain-types/IPAllAction.ts +61 -21
  246. package/typechain-types/IPMarket.ts +13 -0
  247. package/typechain-types/IPVotingController.ts +244 -7
  248. package/typechain-types/ISuperComposableYield.ts +7 -46
  249. package/typechain-types/MarketMathStatic.ts +139 -10
  250. package/typechain-types/PendleGaugeControllerSidechainUpg.ts +28 -149
  251. package/typechain-types/PendleMarket.ts +104 -0
  252. package/typechain-types/PendleMarketFactory.ts +76 -13
  253. package/typechain-types/PendlePrincipalToken.ts +104 -0
  254. package/typechain-types/PendleQiTokenSCY.ts +111 -46
  255. package/typechain-types/PendleVotingControllerUpg.ts +133 -77
  256. package/typechain-types/PendleWstEthSCY.ts +111 -46
  257. package/typechain-types/PendleYieldContractFactory.ts +84 -21
  258. package/typechain-types/PendleYieldToken.ts +175 -0
  259. package/typechain-types/RouterStatic.ts +99 -75
  260. package/typechain-types/SCYBase.ts +111 -46
  261. package/typechain-types/SCYBaseWithRewards.ts +111 -46
  262. package/typechain-types/VotingControllerStorageUpg.ts +246 -27
  263. package/typechain-types/VotingEscrowPendleMainchain.ts +81 -93
  264. package/typechain-types/VotingEscrowPendleSidechain.ts +26 -171
  265. package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +169 -1
  266. package/typechain-types/factories/ActionCallback__factory.ts +108 -1
  267. package/typechain-types/factories/ActionMintRedeem__factory.ts +54 -1
  268. package/typechain-types/factories/ActionMisc__factory.ts +6 -1
  269. package/typechain-types/factories/ActionSwapPTYT__factory.ts +107 -1
  270. package/typechain-types/factories/ActionSwapPT__factory.ts +196 -1
  271. package/typechain-types/factories/ActionSwapYT__factory.ts +143 -1
  272. package/typechain-types/factories/AggregationRouterHelper__factory.ts +1 -1
  273. package/typechain-types/factories/IPActionAddRemoveLiq__factory.ts +31 -1
  274. package/typechain-types/factories/IPActionSwapPTYT__factory.ts +10 -0
  275. package/typechain-types/factories/IPActionSwapPT__factory.ts +30 -0
  276. package/typechain-types/factories/IPActionSwapYT__factory.ts +30 -0
  277. package/typechain-types/factories/IPAllAction__factory.ts +101 -1
  278. package/typechain-types/factories/IPMarket__factory.ts +13 -0
  279. package/typechain-types/factories/IPVotingController__factory.ts +148 -0
  280. package/typechain-types/factories/ISuperComposableYield__factory.ts +4 -28
  281. package/typechain-types/factories/MarketMathStatic__factory.ts +181 -3
  282. package/typechain-types/factories/OracleLib__factory.ts +27 -1
  283. package/typechain-types/factories/Pendle3CrvAndTokenSCY__factory.ts +1 -1
  284. package/typechain-types/factories/Pendle3CrvHelper__factory.ts +1 -1
  285. package/typechain-types/factories/PendleConvexCurveLP2PoolSCY__factory.ts +1 -1
  286. package/typechain-types/factories/PendleERC20Permit__factory.ts +1 -1
  287. package/typechain-types/factories/PendleFeeDistributorFactory__factory.ts +1 -1
  288. package/typechain-types/factories/PendleFeeDistributor__factory.ts +1 -1
  289. package/typechain-types/factories/PendleGaugeControllerBaseUpg__factory.ts +11 -0
  290. package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +28 -1
  291. package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +48 -86
  292. package/typechain-types/factories/PendleMarketFactory__factory.ts +129 -9
  293. package/typechain-types/factories/PendleMarket__factory.ts +214 -1
  294. package/typechain-types/factories/PendlePrincipalToken__factory.ts +86 -1
  295. package/typechain-types/factories/PendleQiTokenHelper__factory.ts +1 -1
  296. package/typechain-types/factories/PendleQiTokenSCY__factory.ts +198 -29
  297. package/typechain-types/factories/PendleRouter__factory.ts +12 -1
  298. package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +235 -40
  299. package/typechain-types/factories/PendleWstEthSCY__factory.ts +137 -22
  300. package/typechain-types/factories/PendleYieldContractFactory__factory.ts +103 -20
  301. package/typechain-types/factories/PendleYieldToken__factory.ts +163 -1
  302. package/typechain-types/factories/RouterStatic__factory.ts +67 -20
  303. package/typechain-types/factories/SCYBaseWithRewards__factory.ts +136 -21
  304. package/typechain-types/factories/SCYBase__factory.ts +136 -21
  305. package/typechain-types/factories/VotingControllerStorageUpg__factory.ts +232 -12
  306. package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +171 -47
  307. package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +31 -93
  308. package/typechain-types/hardhat.d.ts +0 -27
  309. package/typechain-types/index.ts +0 -6
  310. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/PendleAaveV3SCY.sol/PendleAaveV3SCY.dbg.json +0 -4
  311. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/PendleAaveV3SCY.sol/PendleAaveV3SCY.json +0 -810
  312. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/WadRayMath.sol/WadRayMath.dbg.json +0 -4
  313. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/WadRayMath.sol/WadRayMath.json +0 -10
  314. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiSAvaxSCY.sol/PendleQiSAvaxSCY.dbg.json +0 -4
  315. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiSAvaxSCY.sol/PendleQiSAvaxSCY.json +0 -833
  316. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleSAvaxSCY.sol/PendleSAvaxSCY.dbg.json +0 -4
  317. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleSAvaxSCY.sol/PendleSAvaxSCY.json +0 -723
  318. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Euler/PendleEulerSCY.sol/PendleEulerSCY.dbg.json +0 -4
  319. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Euler/PendleEulerSCY.sol/PendleEulerSCY.json +0 -728
  320. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleERC4626SCY.sol/PendleERC4626SCY.dbg.json +0 -4
  321. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleERC4626SCY.sol/PendleERC4626SCY.json +0 -705
  322. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleStargateSCY.sol/PendleStargateSCY.dbg.json +0 -4
  323. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleStargateSCY.sol/PendleStargateSCY.json +0 -864
  324. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleYearnVaultSCY.sol/PendleYearnVaultSCY.dbg.json +0 -4
  325. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleYearnVaultSCY.sol/PendleYearnVaultSCY.json +0 -718
  326. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/TraderJoe/PendleSJoeSCY.sol/PendleSJoeSCY.dbg.json +0 -4
  327. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/TraderJoe/PendleSJoeSCY.sol/PendleSJoeSCY.json +0 -784
  328. package/build/artifacts/contracts/core/LiquidityMining/CelerAbstracts/CelerReceiverUpg.sol/CelerReceiverUpg.dbg.json +0 -4
  329. package/build/artifacts/contracts/core/LiquidityMining/CelerAbstracts/CelerSenderUpg.sol/CelerSenderUpg.dbg.json +0 -4
  330. package/build/artifacts/contracts/interfaces/IPVotingEscrow.sol/IPVotingEscrow.dbg.json +0 -4
  331. package/build/artifacts/contracts/libraries/helpers/SSTORE2Deployer.sol/SSTORE2Deployer.dbg.json +0 -4
  332. package/build/artifacts/contracts/libraries/solmate/SSTORE2.sol/SSTORE2.dbg.json +0 -4
  333. package/build/artifacts/contracts/offchain-helpers/SSTORE2DeployerContract.sol/SSTORE2DeployerContract.dbg.json +0 -4
  334. package/build/artifacts/contracts/offchain-helpers/SSTORE2DeployerContract.sol/SSTORE2DeployerContract.json +0 -134
  335. package/contracts/SuperComposableYield/SCY-implementations/AaveV3/PendleAaveV3SCY.sol +0 -161
  336. package/contracts/SuperComposableYield/SCY-implementations/AaveV3/WadRayMath.sol +0 -126
  337. package/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiSAvaxSCY.sol +0 -242
  338. package/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleSAvaxSCY.sol +0 -146
  339. package/contracts/SuperComposableYield/SCY-implementations/Euler/PendleEulerSCY.sol +0 -176
  340. package/contracts/SuperComposableYield/SCY-implementations/PendleERC4626SCY.sol +0 -129
  341. package/contracts/SuperComposableYield/SCY-implementations/PendleStargateSCY.sol +0 -193
  342. package/contracts/SuperComposableYield/SCY-implementations/PendleYearnVaultSCY.sol +0 -155
  343. package/contracts/SuperComposableYield/SCY-implementations/TraderJoe/PendleSJoeSCY.sol +0 -182
  344. package/contracts/core/LiquidityMining/CelerAbstracts/CelerReceiverUpg.sol +0 -53
  345. package/contracts/libraries/helpers/SSTORE2Deployer.sol +0 -30
  346. package/contracts/libraries/solmate/SSTORE2.sol +0 -99
  347. package/contracts/offchain-helpers/SSTORE2DeployerContract.sol +0 -21
  348. package/deployments/43113-markets/benqi-market-10D931.json +0 -8
  349. package/deployments/43113-markets/benqi-market-9fbD64.json +0 -8
  350. package/deployments/43113-markets/benqi-market-A12361.json +0 -8
@@ -16,10 +16,104 @@ const _abi = [
16
16
  name: "_pendle",
17
17
  type: "address",
18
18
  },
19
+ {
20
+ internalType: "address",
21
+ name: "_pendleMsgSendEndpoint",
22
+ type: "address",
23
+ },
19
24
  ],
20
25
  stateMutability: "nonpayable",
21
26
  type: "constructor",
22
27
  },
28
+ {
29
+ inputs: [],
30
+ name: "ArrayEmpty",
31
+ type: "error",
32
+ },
33
+ {
34
+ inputs: [
35
+ {
36
+ internalType: "uint256",
37
+ name: "chainId",
38
+ type: "uint256",
39
+ },
40
+ ],
41
+ name: "ChainNotSupported",
42
+ type: "error",
43
+ },
44
+ {
45
+ inputs: [
46
+ {
47
+ internalType: "uint256",
48
+ name: "expiry",
49
+ type: "uint256",
50
+ },
51
+ ],
52
+ name: "ExpiryInThePast",
53
+ type: "error",
54
+ },
55
+ {
56
+ inputs: [
57
+ {
58
+ internalType: "uint256",
59
+ name: "currentFee",
60
+ type: "uint256",
61
+ },
62
+ {
63
+ internalType: "uint256",
64
+ name: "requiredFee",
65
+ type: "uint256",
66
+ },
67
+ ],
68
+ name: "InsufficientFeeToSendMsg",
69
+ type: "error",
70
+ },
71
+ {
72
+ inputs: [
73
+ {
74
+ internalType: "uint256",
75
+ name: "wTime",
76
+ type: "uint256",
77
+ },
78
+ ],
79
+ name: "InvalidWTime",
80
+ type: "error",
81
+ },
82
+ {
83
+ inputs: [],
84
+ name: "VEExceededMaxLockTime",
85
+ type: "error",
86
+ },
87
+ {
88
+ inputs: [],
89
+ name: "VEInsufficientLockTime",
90
+ type: "error",
91
+ },
92
+ {
93
+ inputs: [],
94
+ name: "VENotAllowedReduceExpiry",
95
+ type: "error",
96
+ },
97
+ {
98
+ inputs: [],
99
+ name: "VEPositionNotExpired",
100
+ type: "error",
101
+ },
102
+ {
103
+ inputs: [],
104
+ name: "VEZeroAmountLocked",
105
+ type: "error",
106
+ },
107
+ {
108
+ inputs: [],
109
+ name: "VEZeroPosition",
110
+ type: "error",
111
+ },
112
+ {
113
+ inputs: [],
114
+ name: "ZeroAddress",
115
+ type: "error",
116
+ },
23
117
  {
24
118
  anonymous: false,
25
119
  inputs: [
@@ -240,19 +334,6 @@ const _abi = [
240
334
  stateMutability: "payable",
241
335
  type: "function",
242
336
  },
243
- {
244
- inputs: [],
245
- name: "celerMessageBus",
246
- outputs: [
247
- {
248
- internalType: "contract ICelerMessageBus",
249
- name: "",
250
- type: "address",
251
- },
252
- ],
253
- stateMutability: "view",
254
- type: "function",
255
- },
256
337
  {
257
338
  inputs: [],
258
339
  name: "claimOwnership",
@@ -289,9 +370,9 @@ const _abi = [
289
370
  name: "getBroadcastPositionFee",
290
371
  outputs: [
291
372
  {
292
- internalType: "uint256",
293
- name: "",
294
- type: "uint256",
373
+ internalType: "uint256[]",
374
+ name: "fees",
375
+ type: "uint256[]",
295
376
  },
296
377
  ],
297
378
  stateMutability: "view",
@@ -308,9 +389,9 @@ const _abi = [
308
389
  name: "getBroadcastSupplyFee",
309
390
  outputs: [
310
391
  {
311
- internalType: "uint256",
312
- name: "",
313
- type: "uint256",
392
+ internalType: "uint256[]",
393
+ name: "fees",
394
+ type: "uint256[]",
314
395
  },
315
396
  ],
316
397
  stateMutability: "view",
@@ -324,17 +405,60 @@ const _abi = [
324
405
  type: "address",
325
406
  },
326
407
  {
327
- internalType: "uint128",
328
- name: "timestamp",
329
- type: "uint128",
408
+ internalType: "uint256",
409
+ name: "index",
410
+ type: "uint256",
330
411
  },
331
412
  ],
332
- name: "getUserVeBalanceAt",
413
+ name: "getUserHistoryAt",
333
414
  outputs: [
334
415
  {
335
- internalType: "uint128",
416
+ components: [
417
+ {
418
+ internalType: "uint128",
419
+ name: "timestamp",
420
+ type: "uint128",
421
+ },
422
+ {
423
+ components: [
424
+ {
425
+ internalType: "uint128",
426
+ name: "bias",
427
+ type: "uint128",
428
+ },
429
+ {
430
+ internalType: "uint128",
431
+ name: "slope",
432
+ type: "uint128",
433
+ },
434
+ ],
435
+ internalType: "struct VeBalance",
436
+ name: "value",
437
+ type: "tuple",
438
+ },
439
+ ],
440
+ internalType: "struct Checkpoint",
336
441
  name: "",
337
- type: "uint128",
442
+ type: "tuple",
443
+ },
444
+ ],
445
+ stateMutability: "view",
446
+ type: "function",
447
+ },
448
+ {
449
+ inputs: [
450
+ {
451
+ internalType: "address",
452
+ name: "user",
453
+ type: "address",
454
+ },
455
+ ],
456
+ name: "getUserHistoryLength",
457
+ outputs: [
458
+ {
459
+ internalType: "uint256",
460
+ name: "",
461
+ type: "uint256",
338
462
  },
339
463
  ],
340
464
  stateMutability: "view",
@@ -393,13 +517,6 @@ const _abi = [
393
517
  stateMutability: "payable",
394
518
  type: "function",
395
519
  },
396
- {
397
- inputs: [],
398
- name: "initialize",
399
- outputs: [],
400
- stateMutability: "nonpayable",
401
- type: "function",
402
- },
403
520
  {
404
521
  inputs: [],
405
522
  name: "lastSlopeChangeAppliedAt",
@@ -452,6 +569,19 @@ const _abi = [
452
569
  stateMutability: "view",
453
570
  type: "function",
454
571
  },
572
+ {
573
+ inputs: [],
574
+ name: "pendleMsgSendEndpoint",
575
+ outputs: [
576
+ {
577
+ internalType: "contract IPMsgSendEndpoint",
578
+ name: "",
579
+ type: "address",
580
+ },
581
+ ],
582
+ stateMutability: "view",
583
+ type: "function",
584
+ },
455
585
  {
456
586
  inputs: [
457
587
  {
@@ -476,19 +606,6 @@ const _abi = [
476
606
  stateMutability: "view",
477
607
  type: "function",
478
608
  },
479
- {
480
- inputs: [
481
- {
482
- internalType: "address",
483
- name: "_celerMessageBus",
484
- type: "address",
485
- },
486
- ],
487
- name: "setCelerMessageBus",
488
- outputs: [],
489
- stateMutability: "nonpayable",
490
- type: "function",
491
- },
492
609
  {
493
610
  inputs: [
494
611
  {
@@ -616,7 +733,7 @@ const _abi = [
616
733
  ];
617
734
 
618
735
  const _bytecode =
619
- "0x60a06040523480156200001157600080fd5b5060405162002aeb38038062002aeb8339810160408190526200003491620000b1565b620000496200007b60201b6200105d1760201c565b600180546001600160801b0319166001600160801b03929092169190911790556001600160a01b031660805262000156565b600062000088426200008d565b905090565b600062093a806200009f8184620000e3565b620000ab919062000118565b92915050565b600060208284031215620000c457600080fd5b81516001600160a01b0381168114620000dc57600080fd5b9392505050565b60006001600160801b03838116806200010c57634e487b7160e01b600052601260045260246000fd5b92169190910492915050565b60006001600160801b03828116848216811515828404821116156200014d57634e487b7160e01b600052601160045260246000fd5b02949350505050565b60805161296b6200018060003960008181610371015281816108bb0152610edd015261296b6000f3fe6080604052600436106101525760003560e01c8063078dfbe7146101575780630b9efa2214610179578063210490281461018c57806323342c381461019f57806330d981af146101bf5780633b16c126146101ea5780633ccfd60b146102185780633e39b6501461022d5780633ff03207146102505780634e71e0c8146102675780635cc049681461027c57806370a08231146102b45780638129fc1c146102d4578063814b2cac146102e95780638da5cb5b14610309578063947975d914610329578063a2c530da1461035f578063b92e106a14610393578063bd4d66e3146103a6578063c8121ec2146103c6578063cb6b4f3c146103e6578063cc471bb814610435578063d88e92a914610448578063e139a48d1461047e578063e268b3a41461049e578063e30c3978146104be578063ef1c243a146104de578063f4359ce514610250578063fa78668f146104f3575b600080fd5b34801561016357600080fd5b50610177610172366004612268565b61050b565b005b6101776101873660046122f5565b610611565b61017761019a366004612347565b610676565b3480156101ab57600080fd5b506101776101ba366004612371565b6106bb565b3480156101cb57600080fd5b506101d4610707565b6040516101e1919061238c565b60405180910390f35b3480156101f657600080fd5b5061020a6102053660046123a0565b610724565b6040519081526020016101e1565b34801561022457600080fd5b506101d46107eb565b34801561023957600080fd5b50610242610930565b6040516101e19291906123e1565b34801561025c57600080fd5b506101d462093a8081565b34801561027357600080fd5b50610177610a44565b34801561028857600080fd5b5060355461029c906001600160a01b031681565b6040516001600160a01b0390911681526020016101e1565b3480156102c057600080fd5b506101d46102cf366004612371565b610af0565b3480156102e057600080fd5b50610177610b43565b3480156102f557600080fd5b506001546101d4906001600160801b031681565b34801561031557600080fd5b5060035461029c906001600160a01b031681565b34801561033557600080fd5b506101d461034436600461247c565b609e602052600090815260409020546001600160801b031681565b34801561036b57600080fd5b5061029c7f000000000000000000000000000000000000000000000000000000000000000081565b6101776103a13660046123a0565b610c1b565b3480156103b257600080fd5b506101d46103c1366004612497565b610c37565b3480156103d257600080fd5b506101d46103e13660046124ca565b610c62565b3480156103f257600080fd5b50610427610401366004612371565b6002602052600090815260409020546001600160801b0380821691600160801b90041682565b6040516101e19291906124e6565b6101d4610443366004612500565b610f67565b34801561045457600080fd5b506101d461046336600461247c565b609d602052600090815260409020546001600160801b031681565b34801561048a57600080fd5b5061020a6104993660046123a0565b610f98565b3480156104aa57600080fd5b506104276104b9366004612371565b611008565b3480156104ca57600080fd5b5060045461029c906001600160a01b031681565b3480156104ea57600080fd5b506101d4611025565b3480156104ff57600080fd5b506101d46303bfc40081565b6003546001600160a01b0316331461053e5760405162461bcd60e51b815260040161053590612560565b60405180910390fd5b81156105f0576001600160a01b0383161515806105585750805b61059c5760405162461bcd60e51b81526020600482015260156024820152744f776e61626c653a207a65726f206164647265737360581b6044820152606401610535565b6003546040516001600160a01b0380861692169060008051602061291683398151915290600090a3600380546001600160a01b0385166001600160a01b031991821617909155600480549091169055505050565b600480546001600160a01b0319166001600160a01b0385161790555b505050565b6001600160a01b03831661065b5760405162461bcd60e51b81526020600482015260116024820152703d32b9379030b2323932b9b9903ab9b2b960791b6044820152606401610535565b610666838383611068565b471561060c5761060c3347611278565b6003546001600160a01b031633146106a05760405162461bcd60e51b815260040161053590612560565b6106ac6036828461138e565b506106b782826113ae565b5050565b6003546001600160a01b031633146106e55760405162461bcd60e51b815260040161053590612560565b603580546001600160a01b0319166001600160a01b0392909216919091179055565b6000806107126113e3565b50905061071e8161151e565b91505090565b6035546040805180820182526000808252602080830182905283518281529081018452909385936001600160a01b0390911692635335dca29261076c92879291908101612608565b6040516020818303038152906040526040518263ffffffff1660e01b81526004016107979190612631565b602060405180830381865afa1580156107b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d89190612644565b6107e29190612673565b90505b92915050565b6000336107f781611540565b61083a5760405162461bcd60e51b81526020600482015260146024820152731c1bdcda5d1a5bdb881b9bdd08195e1c1a5c995960621b6044820152606401610535565b6001600160a01b0381166000908152600260205260409020546001600160801b031691508161089b5760405162461bcd60e51b815260206004820152600d60248201526c3d32b937903837b9b4ba34b7b760991b6044820152606401610535565b6001600160a01b038082166000908152600260205260408120556108eb907f000000000000000000000000000000000000000000000000000000000000000016826001600160801b038516611571565b806001600160a01b03167f0e1bb0545c1ebb9fb680bde73514e572831de93b479c087ec1ef6c35c3a19fd683604051610924919061238c565b60405180910390a25090565b606080600061093f60366115d4565b9050806001600160401b0381111561095957610959612692565b604051908082528060200260200182016040528015610982578160200160208202803683370190505b509250806001600160401b0381111561099d5761099d612692565b6040519080825280602002602001820160405280156109c6578160200160208202803683370190505b50915060005b81811015610a3e576109df6036826115df565b8583815181106109f1576109f16126a8565b60200260200101858481518110610a0a57610a0a6126a8565b60200260200101826001600160a01b03166001600160a01b031681525082815250505080610a37906126be565b90506109cc565b50509091565b6004546001600160a01b0316338114610a9f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c657220213d2070656e64696e67206f776e65726044820152606401610535565b6003546040516001600160a01b0380841692169060008051602061291683398151915290600090a3600380546001600160a01b039092166001600160a01b0319928316179055600480549091169055565b6001600160a01b03811660009081526002602090815260408083208151808301909252546001600160801b038082168352600160801b90910416918101919091526107e590610b3e906115fd565b61151e565b600454600160a81b900460ff16610b6757600454600160a01b900460ff1615610b6f565b610b6f611643565b610bd25760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610535565b600454600160a81b900460ff16158015610bfc576004805461ffff60a01b191661010160a01b1790555b610c04611654565b8015610c18576004805460ff60a81b191690555b50565b610c2760008383611068565b47156106b7576106b73347611278565b6001600160a01b0382166000908152609f602052604081206107e2906001600160801b0384166116d5565b600033610c6e83611815565b8015610c8257506001600160801b03831642105b610cc25760405162461bcd60e51b8152602060048201526011602482015270696e76616c6964206e657745787069727960781b6044820152606401610535565b610cd06303bfc400426126d7565b836001600160801b03161115610d215760405162461bcd60e51b81526020600482015260166024820152751b585e081b1bd8dac81d1a5b5948195e18d95959195960521b6044820152606401610535565b610d2e62093a80426126d7565b836001600160801b03161015610d7f5760405162461bcd60e51b8152602060048201526016602482015275696e73756666696369656e74206c6f636b2074696d6560501b6044820152606401610535565b6001600160a01b0381166000908152600260205260409020546001600160801b03808516600160801b909204161115610e0a5760405162461bcd60e51b815260206004820152602760248201527f6e657720657870697279206d7573742062652061667465722063757272656e746044820152662065787069727960c81b6064820152608401610535565b6001600160a01b038116600090815260026020526040812054610e36906001600160801b0316866126ef565b90506000816001600160801b031611610e8c5760405162461bcd60e51b81526020600482015260186024820152771e995c9bc81d1bdd185b08185b5bdd5b9d081b1bd8dad95960421b6044820152606401610535565b6001600160a01b038216600090815260026020526040812054610ebf90600160801b90046001600160801b03168661271a565b90506001600160801b03861615610f0e57610f0e6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001684306001600160801b038a16611834565b610f1983878361186c565b9350826001600160a01b03167fb1a3371956c54dc1d83695b4a006b051c8313ee986e533b6b964e77c9066fc2c8387604051610f569291906124e6565b60405180910390a250505092915050565b6000610f738585610c62565b9050610f80338484610611565b4715610f9057610f903347611278565b949350505050565b60355460408051808201825260008082526020808301829052835180850185528281528082018390529351919486946001600160a01b0390911693635335dca29387939192610fe992859201612742565b60408051601f198184030181529082905261076c939291602001612608565b600080611013610707565b61101c84610af0565b91509150915091565b60408051808201909152600080546001600160801b038082168452600160801b909104166020830152906110589061151e565b905090565b600061105842611a6c565b60008190036110aa5760405162461bcd60e51b815260206004820152600e60248201526d656d70747920636861696e49647360901b6044820152606401610535565b6000806110b56113e3565b909250905060006001600160a01b03861615611122576001600160a01b03861660008181526002602090815260409182902082519182019390935291546001600160801b03811691830191909152608090811c606083015201604051602081830303815290604052611132565b6040805160008152602081019091525b905060005b848110156111e15761116b868683818110611154576111546126a8565b905060200201356036611a8690919063ffffffff16565b6111ad5760405162461bcd60e51b81526020600482015260136024820152723737ba1039bab83837b93a32b21031b430b4b760691b6044820152606401610535565b6111d18686838181106111c2576111c26126a8565b90506020020135848685611a92565b6111da816126be565b9050611137565b506001600160a01b0386161561123557856001600160a01b03167f82e92e1b0568d98f095fc0c76ccb0f2ac5b64534f69a2c706281e223b6477683868660405161122c929190612795565b60405180910390a25b7f5f9e7cb1ed2eca254f75b6e350699887aa8597e3a2ec9e0aa2b3504c211facbd838686604051611268939291906127a9565b60405180910390a1505050505050565b804710156112c85760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610535565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611315576040519150601f19603f3d011682016040523d82523d6000602084013e61131a565b606091505b505090508061060c5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c20726044820152791958da5c1a595b9d081b585e481a185d99481c995d995c9d195960321b6064820152608401610535565b60006113a484846001600160a01b038516611abf565b90505b9392505050565b6000806113b96113e3565b915091506113dd838284604051602001604051602081830303815290604052611a92565b50505050565b6113eb612227565b60408051808201909152600080546001600160801b038082168452600160801b90910481166020840152600154919291168261142561105d565b9050806001600160801b0316826001600160801b03161061144a575090939092509050565b806001600160801b0316826001600160801b031610156114db5761147162093a80836126ef565b6001600160801b038082166000908152609d602052604090205491935061149b9185911684611adc565b92506114a78383611b2a565b6001600160801b038381166000908152609e6020526040902080546001600160801b0319169290911691909117905561144a565b50815160208301516001600160801b03918216600160801b9183169190910217600055600180546001600160801b03191691831691909117905590939092509050565b600061152982611b48565b1561153657506000919050565b6107e58242611b2a565b6001600160a01b038116600090815260026020526040812054600160801b90046001600160801b03164210156107e5565b6040516001600160a01b03831660248201526044810182905261060c90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611b79565b60006107e582611c4b565b60008080806115ee8686611c56565b909450925050505b9250929050565b611605612227565b8151611616906303bfc400906127e0565b6001600160801b0316602080830182905283015161163391612806565b6001600160801b03168152919050565b600061164e30611c81565b15905090565b600454600160a81b900460ff166116c15760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610535565b600380546001600160a01b03191633179055565b60004282106117265760405162461bcd60e51b815260206004820181905260248201527f436865636b706f696e74733a20626c6f636b206e6f7420796574206d696e65646044820152606401610535565b825460005b8181101561179c576000600261174184846126d7565b61174b9190612835565b905084866000018281548110611763576117636126a8565b600091825260209091206002909102015463ffffffff16111561178857809250611796565b6117938160016126d7565b91505b5061172b565b811561180957611804856117b1600185612849565b815481106117c1576117c16126a8565b60009182526020918290206040805180820190915260029290920201600101546001600160801b038082168352600160801b909104169181019190915285611b2a565b61180c565b60005b95945050505050565b600061182462093a8083612860565b6001600160801b03161592915050565b6040516001600160a01b03808516602483015283166044820152606481018290526113dd9085906323b872dd60e01b9060840161159d565b6001600160a01b03831660009081526002602090815260408083208151808301909252546001600160801b038082168352600160801b9091041691810191909152816118b66113e3565b5090506118d082602001516001600160801b031642101590565b61194a5760006118df836115fd565b90506118eb8282611c90565b602080830151858201516001600160801b039081166000908152609d90935260408320805494965091939192916119249185911661271a565b92506101000a8154816001600160801b0302191690836001600160801b03160217905550505b6000604051806040016040528087856000015161196791906126ef565b6001600160801b0316815260200186856020015161198591906126ef565b6001600160801b031690529050600061199d826115fd565b90506119a98382611cd9565b602080830151848201516001600160801b039081166000908152609d90935260408320805494975091939192916119e2918591166126ef565b82546101009290920a6001600160801b038181021990931691831602179091558451602080870151918316600160801b92841683021760009081556001600160a01b038d168152600282526040808220885189850151908716961690940294909417909255609f905220611a57915082611d0e565b611a608161151e565b98975050505050505050565b600062093a80611a7c81846127e0565b6107e59190612806565b60006107e28383611e1a565b6113dd84848484604051602001611aab93929190612886565b604051602081830303815290604052611e26565b600082815260028401602052604081208290556113a48484611f7a565b611ae4612227565b828460200151611af4919061271a565b6001600160801b03166020820152611b0c8284612806565b8451611b18919061271a565b6001600160801b031681529392505050565b6000818360200151611b3c9190612806565b83516107e2919061271a565b600081600001516001600160801b0316428360200151611b689190612806565b6001600160801b0316101592915050565b6000611bce826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611f869092919063ffffffff16565b80519091501561060c5780806020019051810190611bec919061289f565b61060c5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610535565b60006107e582611f95565b60008080611c648585611f9f565b600081815260029690960160205260409095205494959350505050565b6001600160a01b03163b151590565b611c98612227565b81518351611ca6919061271a565b6001600160801b0316815260208083015190840151611cc5919061271a565b6001600160801b0316602082015292915050565b611ce1612227565b81518351611cef91906126ef565b6001600160801b0316815260208083015190840151611cc591906126ef565b81548015801590611d5057504283611d27600184612849565b81548110611d3757611d376126a8565b600091825260209091206002909102015463ffffffff16145b15611daf578183611d62600184612849565b81548110611d7257611d726126a8565b6000918252602091829020835193909201516001600160801b03908116600160801b02931692909217600160029093029091019190910155505050565b6040805180820190915263ffffffff4281168252602080830185815286546001818101895560008981528490209551600290920290950180549190941663ffffffff199091161783555180519101516001600160801b03908116600160801b02911617910155505050565b60006107e28383611fab565b611e31603683611a86565b611e3d57611e3d6128bc565b6000611e4a603684611fb7565b60355460405163299aee5160e11b81529192506000916001600160a01b0390911690635335dca290611e80908690600401612631565b602060405180830381865afa158015611e9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ec19190612644565b905080471015611f0c5760405162461bcd60e51b8152602060048201526016602482015275496e73756666696369656e742063656c65722066656560501b6044820152606401610535565b603554604051634f9e72ad60e11b81526001600160a01b0390911690639f3ce55a908390611f42908690899089906004016128d2565b6000604051808303818588803b158015611f5b57600080fd5b505af1158015611f6f573d6000803e3d6000fd5b505050505050505050565b60006107e28383611fc3565b60606113a4848460008561200d565b60006107e5825490565b60006107e2838361213c565b60006107e28383612166565b60006107e2838361217e565b6000611fcf8383612166565b612005575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556107e5565b5060006107e5565b60608247101561206e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610535565b61207785611c81565b6120c35760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610535565b600080866001600160a01b031685876040516120df91906128f9565b60006040518083038185875af1925050503d806000811461211c576040519150601f19603f3d011682016040523d82523d6000602084013e612121565b606091505b50915091506121318282866121ee565b979650505050505050565b6000826000018281548110612153576121536126a8565b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b6000818152600283016020526040812054801515806121a257506121a28484611e1a565b6107e25760405162461bcd60e51b815260206004820152601e60248201527f456e756d657261626c654d61703a206e6f6e6578697374656e74206b657900006044820152606401610535565b606083156121fd5750816113a7565b82511561220d5782518084602001fd5b8160405162461bcd60e51b81526004016105359190612631565b604080518082019091526000808252602082015290565b80356001600160a01b038116811461225557600080fd5b919050565b8015158114610c1857600080fd5b60008060006060848603121561227d57600080fd5b6122868461223e565b925060208401356122968161225a565b915060408401356122a68161225a565b809150509250925092565b60008083601f8401126122c357600080fd5b5081356001600160401b038111156122da57600080fd5b6020830191508360208260051b85010111156115f657600080fd5b60008060006040848603121561230a57600080fd5b6123138461223e565b925060208401356001600160401b0381111561232e57600080fd5b61233a868287016122b1565b9497909650939450505050565b6000806040838503121561235a57600080fd5b6123638361223e565b946020939093013593505050565b60006020828403121561238357600080fd5b6107e28261223e565b6001600160801b0391909116815260200190565b600080602083850312156123b357600080fd5b82356001600160401b038111156123c957600080fd5b6123d5858286016122b1565b90969095509350505050565b604080825283519082018190526000906020906060840190828701845b8281101561241a578151845292840192908401906001016123fe565b5050508381038285015284518082528583019183019060005b818110156124585783516001600160a01b031683529284019291840191600101612433565b5090979650505050505050565b80356001600160801b038116811461225557600080fd5b60006020828403121561248e57600080fd5b6107e282612465565b600080604083850312156124aa57600080fd5b6124b38361223e565b91506124c160208401612465565b90509250929050565b600080604083850312156124dd57600080fd5b6124b383612465565b6001600160801b0392831681529116602082015260400190565b6000806000806060858703121561251657600080fd5b61251f85612465565b935061252d60208601612465565b925060408501356001600160401b0381111561254857600080fd5b612554878288016122b1565b95989497509550505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b80516001600160801b03908116835260209182015116910152565b60005b838110156125cb5781810151838201526020016125b3565b838111156113dd5750506000910152565b600081518084526125f48160208601602086016125b0565b601f01601f19169290920160200192915050565b60ff8416815261261b6020820184612595565b60806060820152600061180c60808301846125dc565b6020815260006107e260208301846125dc565b60006020828403121561265657600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561268d5761268d61265d565b500290565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000600182016126d0576126d061265d565b5060010190565b600082198211156126ea576126ea61265d565b500190565b60006001600160801b038281168482168083038211156127115761271161265d565b01949350505050565b60006001600160801b038381169083168181101561273a5761273a61265d565b039392505050565b6001600160a01b0383168152606081016113a76020830184612595565b81835260006001600160fb1b0383111561277857600080fd5b8260051b8083602087013760009401602001938452509192915050565b6020815260006113a460208301848661275f565b6127b38185612595565b60606040820152600061180c60608301848661275f565b634e487b7160e01b600052601260045260246000fd5b60006001600160801b03838116806127fa576127fa6127ca565b92169190910492915050565b60006001600160801b038281168482168115158284048211161561282c5761282c61265d565b02949350505050565b600082612844576128446127ca565b500490565b60008282101561285b5761285b61265d565b500390565b60006001600160801b038381168061287a5761287a6127ca565b92169190910692915050565b6001600160801b038416815261261b6020820184612595565b6000602082840312156128b157600080fd5b81516107e28161225a565b634e487b7160e01b600052600160045260246000fd5b60018060a01b038416815282602082015260606040820152600061180c60608301846125dc565b6000825161290b8184602087016125b0565b919091019291505056fe8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0a26469706673582212207999cb0f2770f2679e4c65a1ab43614d060fd9ca7a8d4f91e08cf591ac78b2fe64736f6c634300080f0033";
736
+ "0x60c06040523480156200001157600080fd5b5060405162002bfd38038062002bfd83398101604081905262000034916200026e565b806200004a6200016f60201b620010851760201c565b600180546001600160801b0319166001600160801b03929092169190911790556001600160a01b0316608052600454600160a81b900460ff166200009c57600454600160a01b900460ff1615620000a6565b620000a662000181565b6200010f5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084015b60405180910390fd5b600454600160a81b900460ff161580156200013a576004805461ffff60a01b191661010160a01b1790555b6001600160a01b03831660a052620001516200019f565b801562000166576004805460ff60a81b191690555b50505062000320565b60006200017c4262000222565b905090565b600062000199306200024660201b620010901760201c565b15905090565b600454600160a81b900460ff166200020e5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b606482015260840162000106565b600380546001600160a01b03191633179055565b600062015180620002348184620002ad565b620002409190620002e2565b92915050565b6001600160a01b03163b151590565b6001600160a01b03811681146200026b57600080fd5b50565b600080604083850312156200028257600080fd5b82516200028f8162000255565b6020840151909250620002a28162000255565b809150509250929050565b60006001600160801b0383811680620002d657634e487b7160e01b600052601260045260246000fd5b92169190910492915050565b60006001600160801b03828116848216811515828404821116156200031757634e487b7160e01b600052601160045260246000fd5b02949350505050565b60805160a05161288d6200037060003960008181610371015281816108e90152610d860152600081816102cf0152818161071601528181610e9401528181611db20152611e84015261288d6000f3fe6080604052600436106101475760003560e01c8063078dfbe71461014c5780630b9efa221461016e578063210490281461018157806330d981af146101945780633b16c126146101bf5780633ccfd60b146101ec5780633e39b650146102015780633ff03207146102245780634e71e0c81461023b57806370a08231146102505780637c386c7114610270578063814b2cac1461029d57806389c071ea146102bd5780638da5cb5b14610309578063947975d914610329578063a2c530da1461035f578063b92e106a14610393578063c8121ec2146103a6578063cb6b4f3c146103c6578063cc471bb814610415578063d88e92a914610428578063e139a48d1461045e578063e268b3a41461047e578063e30c39781461049e578063ef1c243a146104be578063f4359ce514610224578063fa78668f146104d3578063fc367c61146104eb575b600080fd5b34801561015857600080fd5b5061016c610167366004612194565b610519565b005b61016c61017c366004612221565b61061f565b61016c61018f366004612273565b610661565b3480156101a057600080fd5b506101a96106a6565b6040516101b6919061229d565b60405180910390f35b3480156101cb57600080fd5b506101df6101da3660046122b1565b6106c3565b6040516101b6919061232d565b3480156101f857600080fd5b506101a961085c565b34801561020d57600080fd5b5061021661095e565b6040516101b6929190612340565b34801561023057600080fd5b506101a96201518081565b34801561024757600080fd5b5061016c610a72565b34801561025c57600080fd5b506101a961026b3660046123a0565b610b1e565b34801561027c57600080fd5b5061029061028b366004612273565b610b77565b6040516101b691906123d6565b3480156102a957600080fd5b506001546101a9906001600160801b031681565b3480156102c957600080fd5b506102f17f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101b6565b34801561031557600080fd5b506003546102f1906001600160a01b031681565b34801561033557600080fd5b506101a9610344366004612411565b609d602052600090815260409020546001600160801b031681565b34801561036b57600080fd5b506102f17f000000000000000000000000000000000000000000000000000000000000000081565b61016c6103a13660046122b1565b610ba8565b3480156103b257600080fd5b506101a96103c136600461242c565b610bc4565b3480156103d257600080fd5b506104076103e13660046123a0565b6002602052600090815260409020546001600160801b0380821691600160801b90041682565b6040516101b692919061245f565b6101a9610423366004612479565b610e10565b34801561043457600080fd5b506101a9610443366004612411565b609c602052600090815260409020546001600160801b031681565b34801561046a57600080fd5b506101df6104793660046122b1565b610e41565b34801561048a57600080fd5b506104076104993660046123a0565b611012565b3480156104aa57600080fd5b506004546102f1906001600160a01b031681565b3480156104ca57600080fd5b506101a961102f565b3480156104df57600080fd5b506101a96303bfc40081565b3480156104f757600080fd5b5061050b6105063660046123a0565b611067565b6040519081526020016101b6565b6003546001600160a01b0316331461054c5760405162461bcd60e51b8152600401610543906124d9565b60405180910390fd5b81156105fe576001600160a01b0383161515806105665750805b6105aa5760405162461bcd60e51b81526020600482015260156024820152744f776e61626c653a207a65726f206164647265737360581b6044820152606401610543565b6003546040516001600160a01b0380861692169060008051602061283883398151915290600090a3600380546001600160a01b0385166001600160a01b031991821617909155600480549091169055505050565b600480546001600160a01b0319166001600160a01b0385161790555b505050565b6001600160a01b0383166106465760405163d92e233d60e01b815260040160405180910390fd5b61065183838361109f565b471561061a5761061a3347611286565b6003546001600160a01b0316331461068b5760405162461bcd60e51b8152600401610543906124d9565b6106976035828461139c565b506106a282826113b2565b5050565b6000806106b16113e7565b5090506106bd81611522565b91505090565b6060816001600160401b038111156106dd576106dd61250e565b604051908082528060200260200182016040528015610706578160200160208202803683370190505b50905060005b82811015610855577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663b43f0b1e61076f86868581811061075857610758612524565b90506020020135603561154490919063ffffffff16565b86868581811061078157610781612524565b604080518082018252600080825260208281018290528351828152808201855294029590950135946107b894509290918101612592565b6040516020818303038152906040526040518463ffffffff1660e01b81526004016107e5939291906125c4565b602060405180830381865afa158015610802573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082691906125eb565b82828151811061083857610838612524565b60209081029190910101528061084d8161261a565b91505061070c565b5092915050565b60003361086881611550565b610885576040516339ba104360e01b815260040160405180910390fd5b6001600160a01b0381166000908152600260205260408120546001600160801b031692508290036108c957604051631e95654360e11b815260040160405180910390fd5b6001600160a01b03808216600090815260026020526040812055610919907f000000000000000000000000000000000000000000000000000000000000000016826001600160801b038516611581565b806001600160a01b03167f0e1bb0545c1ebb9fb680bde73514e572831de93b479c087ec1ef6c35c3a19fd683604051610952919061229d565b60405180910390a25090565b606080600061096d60356115e4565b9050806001600160401b038111156109875761098761250e565b6040519080825280602002602001820160405280156109b0578160200160208202803683370190505b509250806001600160401b038111156109cb576109cb61250e565b6040519080825280602002602001820160405280156109f4578160200160208202803683370190505b50915060005b81811015610a6c57610a0d6035826115ef565b858381518110610a1f57610a1f612524565b60200260200101858481518110610a3857610a38612524565b60200260200101826001600160a01b03166001600160a01b031681525082815250505080610a659061261a565b90506109fa565b50509091565b6004546001600160a01b0316338114610acd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c657220213d2070656e64696e67206f776e65726044820152606401610543565b6003546040516001600160a01b0380841692169060008051602061283883398151915290600090a3600380546001600160a01b039092166001600160a01b0319928316179055600480549091169055565b6001600160a01b03811660009081526002602090815260408083208151808301909252546001600160801b038082168352600160801b9091041691810191909152610b7190610b6c9061160d565b611522565b92915050565b610b7f612128565b6001600160a01b0383166000908152609e60205260409020610ba19083611653565b9392505050565b610bb46000838361109f565b47156106a2576106a23347611286565b600033610bd96001600160801b0384166116c9565b610bf85782604051637bf16ce960e11b8152600401610543919061229d565b6001600160801b0383164210610c23578260405163d928003560e01b8152600401610543919061229d565b6001600160a01b0381166000908152600260205260409020546001600160801b03600160801b90910481169084161015610c7057604051631f8b0c5960e21b815260040160405180910390fd5b610c7e6303bfc40042612633565b836001600160801b03161115610ca757604051632739a01960e11b815260040160405180910390fd5b610cb46201518042612633565b836001600160801b03161015610cdd57604051630def6af560e21b815260040160405180910390fd5b6001600160a01b038116600090815260026020526040812054610d09906001600160801b03168661264b565b9050806001600160801b0316600003610d35576040516323fbc14f60e11b815260040160405180910390fd5b6001600160a01b038216600090815260026020526040812054610d6890600160801b90046001600160801b031686612676565b90506001600160801b03861615610db757610db76001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001684306001600160801b038a166116df565b610dc2838783611717565b9350826001600160a01b03167fb1a3371956c54dc1d83695b4a006b051c8313ee986e533b6b964e77c9066fc2c8387604051610dff92919061245f565b60405180910390a250505092915050565b6000610e1c8585610bc4565b9050610e2933848461061f565b4715610e3957610e393347611286565b949350505050565b6060816001600160401b03811115610e5b57610e5b61250e565b604051908082528060200260200182016040528015610e84578160200160208202803683370190505b50905060005b82811015610855577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663b43f0b1e610ed686868581811061075857610758612524565b868685818110610ee857610ee8612524565b905060200201356000604051806040016040528060006001600160801b0316815260200160006001600160801b03168152506000604051806040016040528060006001600160801b0316815260200160006001600160801b0316815250604051602001610f5692919061269e565b60408051601f1981840301815290829052610f75939291602001612592565b6040516020818303038152906040526040518463ffffffff1660e01b8152600401610fa2939291906125c4565b602060405180830381865afa158015610fbf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fe391906125eb565b828281518110610ff557610ff5612524565b60209081029190910101528061100a8161261a565b915050610e8a565b60008061101d6106a6565b61102684610b1e565b91509150915091565b60408051808201909152600080546001600160801b038082168452600160801b9091041660208301529061106290611522565b905090565b6001600160a01b0381166000908152609e6020526040812054610b71565b600061106242611917565b6001600160a01b03163b151590565b60008190036110c157604051633c4d929d60e21b815260040160405180910390fd5b6000806110cc6113e7565b909250905060006001600160a01b03861615611139576001600160a01b03861660008181526002602090815260409182902082519182019390935291546001600160801b03811691830191909152608090811c606083015201604051602081830303815290604052611149565b6040805160008152602081019091525b905060005b848110156111ef5761118286868381811061116b5761116b612524565b90506020020135603561193190919063ffffffff16565b6111bb5785858281811061119857611198612524565b9050602002013560405163264e42cf60e01b815260040161054391815260200190565b6111df8686838181106111d0576111d0612524565b9050602002013584868561193d565b6111e88161261a565b905061114e565b506001600160a01b0386161561124357856001600160a01b03167f82e92e1b0568d98f095fc0c76ccb0f2ac5b64534f69a2c706281e223b6477683868660405161123a9291906126f1565b60405180910390a25b7f5f9e7cb1ed2eca254f75b6e350699887aa8597e3a2ec9e0aa2b3504c211facbd83868660405161127693929190612705565b60405180910390a1505050505050565b804710156112d65760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610543565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611323576040519150601f19603f3d011682016040523d82523d6000602084013e611328565b606091505b505090508061061a5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c20726044820152791958da5c1a595b9d081b585e481a185d99481c995d995c9d195960321b6064820152608401610543565b6000610e3984846001600160a01b03851661196a565b6000806113bd6113e7565b915091506113e183828460405160200160405160208183030381529060405261193d565b50505050565b6113ef612150565b60408051808201909152600080546001600160801b038082168452600160801b909104811660208401526001549192911682611429611085565b9050806001600160801b0316826001600160801b03161061144e575090939092509050565b806001600160801b0316826001600160801b031610156114df57611475620151808361264b565b6001600160801b038082166000908152609c602052604090205491935061149f9185911684611987565b92506114ab83836119d5565b6001600160801b038381166000908152609d6020526040902080546001600160801b0319169290911691909117905561144e565b50815160208301516001600160801b03918216600160801b9183169190910217600055600180546001600160801b03191691831691909117905590939092509050565b600061152d82611a28565b1561153a57506000919050565b610b7182426119d5565b6000610ba18383611a59565b6001600160a01b038116600090815260026020526040812054600160801b90046001600160801b0316421015610b71565b6040516001600160a01b03831660248201526044810182905261061a90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611ac9565b6000610b7182611b9b565b60008080806115fe8686611ba6565b909450925050505b9250929050565b611615612150565b8151611626906303bfc4009061273c565b6001600160801b0316602080830182905283015161164391612762565b6001600160801b03168152919050565b61165b612128565b82600001828154811061167057611670612524565b6000918252602091829020604080518082018252600290930290910180546001600160801b03908116845282518084019093526001909101548082168352600160801b9004168184015291810191909152905092915050565b60006116d86201518083612791565b1592915050565b6040516001600160a01b03808516602483015283166044820152606481018290526113e19085906323b872dd60e01b906084016115ad565b6001600160a01b03831660009081526002602090815260408083208151808301909252546001600160801b038082168352600160801b9091041691810191909152816117616113e7565b50905061177b82602001516001600160801b031642101590565b6117f557600061178a8361160d565b90506117968282611bd1565b602080830151858201516001600160801b039081166000908152609c90935260408320805494965091939192916117cf91859116612676565b92506101000a8154816001600160801b0302191690836001600160801b03160217905550505b60006040518060400160405280878560000151611812919061264b565b6001600160801b03168152602001868560200151611830919061264b565b6001600160801b03169052905060006118488261160d565b90506118548382611c1a565b602080830151848201516001600160801b039081166000908152609c909352604083208054949750919391929161188d9185911661264b565b82546101009290920a6001600160801b038181021990931691831602179091558451602080870151918316600160801b92841683021760009081556001600160a01b038d168152600282526040808220885189850151908716961690940294909417909255609e905220611902915082611c4f565b61190b81611522565b98975050505050505050565b600062015180611927818461273c565b610b719190612762565b6000610ba18383611d7c565b6113e184848484604051602001611956939291906127a5565b604051602081830303815290604052611d88565b60008281526002840160205260408120829055610e398484611ef7565b61198f612150565b82846020015161199f9190612676565b6001600160801b031660208201526119b78284612762565b84516119c39190612676565b6001600160801b031681529392505050565b600082600001516001600160801b03168284602001516119f59190612762565b6001600160801b03161115611a0c57506000610b71565b818360200151611a1c9190612762565b8351610ba19190612676565b600081600001516001600160801b0316428360200151611a489190612762565b6001600160801b0316101592915050565b600081815260028301602052604081205480151580611a7d5750611a7d8484611d7c565b610ba15760405162461bcd60e51b815260206004820152601e60248201527f456e756d657261626c654d61703a206e6f6e6578697374656e74206b657900006044820152606401610543565b6000611b1e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611f039092919063ffffffff16565b80519091501561061a5780806020019051810190611b3c91906127be565b61061a5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610543565b6000610b7182611f12565b60008080611bb48585611f1c565b600081815260029690960160205260409095205494959350505050565b611bd9612150565b81518351611be79190612676565b6001600160801b0316815260208083015190840151611c069190612676565b6001600160801b0316602082015292915050565b611c22612150565b81518351611c30919061264b565b6001600160801b0316815260208083015190840151611c06919061264b565b81548015801590611ca45750611c63611085565b6001600160801b031683611c786001846127db565b81548110611c8857611c88612524565b60009182526020909120600290910201546001600160801b0316145b15611d03578183611cb66001846127db565b81548110611cc657611cc6612524565b6000918252602091829020835193909201516001600160801b03908116600160801b02931692909217600160029093029091019190910155505050565b826000016040518060400160405280611d1a611085565b6001600160801b0390811682526020918201869052835460018181018655600095865294839020845160029092020180549183166001600160801b03199092169190911781559282015180519201518116600160801b02911617910155505050565b6000610ba18383611f28565b611d93603583611931565b611d9f57611d9f6127f2565b6000611dac603584611544565b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663b43f0b1e8386866040518463ffffffff1660e01b8152600401611e00939291906125c4565b602060405180830381865afa158015611e1d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e4191906125eb565b905080471015611e6d5760405163704c5be560e11b815247600482015260248101829052604401610543565b604051634f9e72ad60e11b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690639f3ce55a908390611ebf908690899089906004016125c4565b6000604051808303818588803b158015611ed857600080fd5b505af1158015611eec573d6000803e3d6000fd5b505050505050505050565b6000610ba18383611f34565b6060610e398484600085611f7e565b6000610b71825490565b6000610ba183836120ad565b6000610ba183836120d7565b6000611f4083836120d7565b611f7657508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610b71565b506000610b71565b606082471015611fdf5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610543565b611fe885611090565b6120345760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610543565b600080866001600160a01b031685876040516120509190612808565b60006040518083038185875af1925050503d806000811461208d576040519150601f19603f3d011682016040523d82523d6000602084013e612092565b606091505b50915091506120a28282866120ef565b979650505050505050565b60008260000182815481106120c4576120c4612524565b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b606083156120fe575081610ba1565b82511561210e5782518084602001fd5b8160405162461bcd60e51b81526004016105439190612824565b604051806040016040528060006001600160801b0316815260200161214b612150565b905290565b604080518082019091526000808252602082015290565b80356001600160a01b038116811461217e57600080fd5b919050565b801515811461219157600080fd5b50565b6000806000606084860312156121a957600080fd5b6121b284612167565b925060208401356121c281612183565b915060408401356121d281612183565b809150509250925092565b60008083601f8401126121ef57600080fd5b5081356001600160401b0381111561220657600080fd5b6020830191508360208260051b850101111561160657600080fd5b60008060006040848603121561223657600080fd5b61223f84612167565b925060208401356001600160401b0381111561225a57600080fd5b612266868287016121dd565b9497909650939450505050565b6000806040838503121561228657600080fd5b61228f83612167565b946020939093013593505050565b6001600160801b0391909116815260200190565b600080602083850312156122c457600080fd5b82356001600160401b038111156122da57600080fd5b6122e6858286016121dd565b90969095509350505050565b600081518084526020808501945080840160005b8381101561232257815187529582019590820190600101612306565b509495945050505050565b602081526000610ba160208301846122f2565b60408152600061235360408301856122f2565b82810360208481019190915284518083528582019282019060005b818110156123935784516001600160a01b03168352938301939183019160010161236e565b5090979650505050505050565b6000602082840312156123b257600080fd5b610ba182612167565b80516001600160801b03908116835260209182015116910152565b81516001600160801b031681526020808301516060830191610855908401826123bb565b80356001600160801b038116811461217e57600080fd5b60006020828403121561242357600080fd5b610ba1826123fa565b6000806040838503121561243f57600080fd5b612448836123fa565b9150612456602084016123fa565b90509250929050565b6001600160801b0392831681529116602082015260400190565b6000806000806060858703121561248f57600080fd5b612498856123fa565b93506124a6602086016123fa565b925060408501356001600160401b038111156124c157600080fd5b6124cd878288016121dd565b95989497509550505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b60005b8381101561255557818101518382015260200161253d565b838111156113e15750506000910152565b6000815180845261257e81602086016020860161253a565b601f01601f19169290920160200192915050565b60ff841681526125a560208201846123bb565b6080606082015260006125bb6080830184612566565b95945050505050565b60018060a01b03841681528260208201526060604082015260006125bb6060830184612566565b6000602082840312156125fd57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b60006001820161262c5761262c612604565b5060010190565b6000821982111561264657612646612604565b500190565b60006001600160801b0382811684821680830382111561266d5761266d612604565b01949350505050565b60006001600160801b038381169083168181101561269657612696612604565b039392505050565b6001600160a01b038316815260608101610ba160208301846123bb565b81835260006001600160fb1b038311156126d457600080fd5b8260051b8083602087013760009401602001938452509192915050565b602081526000610e396020830184866126bb565b61270f81856123bb565b6060604082015260006125bb6060830184866126bb565b634e487b7160e01b600052601260045260246000fd5b60006001600160801b038381168061275657612756612726565b92169190910492915050565b60006001600160801b038281168482168115158284048211161561278857612788612604565b02949350505050565b6000826127a0576127a0612726565b500690565b6001600160801b03841681526125a560208201846123bb565b6000602082840312156127d057600080fd5b8151610ba181612183565b6000828210156127ed576127ed612604565b500390565b634e487b7160e01b600052600160045260246000fd5b6000825161281a81846020870161253a565b9190910192915050565b602081526000610ba1602083018461256656fe8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0a2646970667358221220c630e96d3e29810290abb1aa020e87bcfd940ec03aff66e628d738644ba8283564736f6c634300080f0033";
620
737
 
621
738
  type VotingEscrowPendleMainchainConstructorParams =
622
739
  | [signer?: Signer]
@@ -638,18 +755,25 @@ export class VotingEscrowPendleMainchain__factory extends ContractFactory {
638
755
 
639
756
  deploy(
640
757
  _pendle: string,
758
+ _pendleMsgSendEndpoint: string,
641
759
  overrides?: Overrides & { from?: string | Promise<string> }
642
760
  ): Promise<VotingEscrowPendleMainchain> {
643
761
  return super.deploy(
644
762
  _pendle,
763
+ _pendleMsgSendEndpoint,
645
764
  overrides || {}
646
765
  ) as Promise<VotingEscrowPendleMainchain>;
647
766
  }
648
767
  getDeployTransaction(
649
768
  _pendle: string,
769
+ _pendleMsgSendEndpoint: string,
650
770
  overrides?: Overrides & { from?: string | Promise<string> }
651
771
  ): TransactionRequest {
652
- return super.getDeployTransaction(_pendle, overrides || {});
772
+ return super.getDeployTransaction(
773
+ _pendle,
774
+ _pendleMsgSendEndpoint,
775
+ overrides || {}
776
+ );
653
777
  }
654
778
  attach(address: string): VotingEscrowPendleMainchain {
655
779
  return super.attach(address) as VotingEscrowPendleMainchain;
@@ -10,10 +10,27 @@ import type {
10
10
 
11
11
  const _abi = [
12
12
  {
13
- inputs: [],
13
+ inputs: [
14
+ {
15
+ internalType: "address",
16
+ name: "_PendleMsgReceiveEndpointUpg",
17
+ type: "address",
18
+ },
19
+ ],
14
20
  stateMutability: "nonpayable",
15
21
  type: "constructor",
16
22
  },
23
+ {
24
+ inputs: [
25
+ {
26
+ internalType: "address",
27
+ name: "sender",
28
+ type: "address",
29
+ },
30
+ ],
31
+ name: "MsgNotFromReceiveEndpoint",
32
+ type: "error",
33
+ },
17
34
  {
18
35
  anonymous: false,
19
36
  inputs: [
@@ -160,19 +177,6 @@ const _abi = [
160
177
  stateMutability: "view",
161
178
  type: "function",
162
179
  },
163
- {
164
- inputs: [],
165
- name: "celerMessageBus",
166
- outputs: [
167
- {
168
- internalType: "address",
169
- name: "",
170
- type: "address",
171
- },
172
- ],
173
- stateMutability: "view",
174
- type: "function",
175
- },
176
180
  {
177
181
  inputs: [],
178
182
  name: "claimOwnership",
@@ -182,43 +186,15 @@ const _abi = [
182
186
  },
183
187
  {
184
188
  inputs: [
185
- {
186
- internalType: "address",
187
- name: "_sender",
188
- type: "address",
189
- },
190
- {
191
- internalType: "uint64",
192
- name: "_srcChainId",
193
- type: "uint64",
194
- },
195
189
  {
196
190
  internalType: "bytes",
197
- name: "_message",
191
+ name: "message",
198
192
  type: "bytes",
199
193
  },
200
- {
201
- internalType: "address",
202
- name: "",
203
- type: "address",
204
- },
205
194
  ],
206
195
  name: "executeMessage",
207
- outputs: [
208
- {
209
- internalType: "enum ICelerMessageReceiverApp.ExecutionStatus",
210
- name: "",
211
- type: "uint8",
212
- },
213
- ],
214
- stateMutability: "payable",
215
- type: "function",
216
- },
217
- {
218
- inputs: [],
219
- name: "initialize",
220
196
  outputs: [],
221
- stateMutability: "nonpayable",
197
+ stateMutability: "payable",
222
198
  type: "function",
223
199
  },
224
200
  {
@@ -236,7 +212,7 @@ const _abi = [
236
212
  },
237
213
  {
238
214
  inputs: [],
239
- name: "originAddress",
215
+ name: "owner",
240
216
  outputs: [
241
217
  {
242
218
  internalType: "address",
@@ -249,20 +225,7 @@ const _abi = [
249
225
  },
250
226
  {
251
227
  inputs: [],
252
- name: "originChainId",
253
- outputs: [
254
- {
255
- internalType: "uint256",
256
- name: "",
257
- type: "uint256",
258
- },
259
- ],
260
- stateMutability: "view",
261
- type: "function",
262
- },
263
- {
264
- inputs: [],
265
- name: "owner",
228
+ name: "pendingOwner",
266
229
  outputs: [
267
230
  {
268
231
  internalType: "address",
@@ -275,7 +238,7 @@ const _abi = [
275
238
  },
276
239
  {
277
240
  inputs: [],
278
- name: "pendingOwner",
241
+ name: "pendleMsgReceiveEndpoint",
279
242
  outputs: [
280
243
  {
281
244
  internalType: "address",
@@ -310,19 +273,6 @@ const _abi = [
310
273
  stateMutability: "view",
311
274
  type: "function",
312
275
  },
313
- {
314
- inputs: [
315
- {
316
- internalType: "address",
317
- name: "_celerMessageBus",
318
- type: "address",
319
- },
320
- ],
321
- name: "setCelerMessageBus",
322
- outputs: [],
323
- stateMutability: "nonpayable",
324
- type: "function",
325
- },
326
276
  {
327
277
  inputs: [
328
278
  {
@@ -341,24 +291,6 @@ const _abi = [
341
291
  stateMutability: "nonpayable",
342
292
  type: "function",
343
293
  },
344
- {
345
- inputs: [
346
- {
347
- internalType: "address",
348
- name: "_addr",
349
- type: "address",
350
- },
351
- {
352
- internalType: "uint256",
353
- name: "_chainId",
354
- type: "uint256",
355
- },
356
- ],
357
- name: "setOrigin",
358
- outputs: [],
359
- stateMutability: "nonpayable",
360
- type: "function",
361
- },
362
294
  {
363
295
  inputs: [
364
296
  {
@@ -435,7 +367,7 @@ const _abi = [
435
367
  ];
436
368
 
437
369
  const _bytecode =
438
- "0x608060405234801561001057600080fd5b5061002361004860201b6109041760201c565b600180546001600160801b0319166001600160801b03929092169190911790556100e9565b600061005342610058565b905090565b600062093a806100688184610078565b61007291906100ac565b92915050565b60006001600160801b03838116806100a057634e487b7160e01b600052601260045260246000fd5b92169190910492915050565b60006001600160801b03828116848216811515828404821116156100e057634e487b7160e01b600052601160045260246000fd5b02949350505050565b611127806100f86000396000f3fe6080604052600436106100fa5760003560e01c8063078dfbe7146100ff5780630ac7f5611461012157806323342c381461014a57806330d981af1461016a5780633ff03207146101975780634e71e0c8146101ae5780634fb7015f146101c35780635cc04968146101e357806370a082311461021b578063769b1ebc1461023b5780638129fc1c1461025b578063814b2cac146102705780638da5cb5b146102905780639c649fdf146102b0578063cb6b4f3c146102d0578063e268b3a414610331578063e30c397814610351578063e517fedd14610371578063ef1c243a14610391578063f4359ce514610197578063fa78668f146103a6575b600080fd5b34801561010b57600080fd5b5061011f61011a366004610c5c565b6103be565b005b34801561012d57600080fd5b5061013760375481565b6040519081526020015b60405180910390f35b34801561015657600080fd5b5061011f610165366004610ca1565b6104c5565b34801561017657600080fd5b5061017f610511565b6040516001600160801b039091168152602001610141565b3480156101a357600080fd5b5061017f62093a8081565b3480156101ba57600080fd5b5061011f610520565b3480156101cf57600080fd5b5061011f6101de366004610cbe565b6105cc565b3480156101ef57600080fd5b50603554610203906001600160a01b031681565b6040516001600160a01b039091168152602001610141565b34801561022757600080fd5b5061017f610236366004610ca1565b61061c565b34801561024757600080fd5b5061011f610256366004610cea565b610657565b34801561026757600080fd5b5061011f6106ed565b34801561027c57600080fd5b5060015461017f906001600160801b031681565b34801561029c57600080fd5b50600354610203906001600160a01b031681565b6102c36102be366004610d23565b6107c1565b6040516101419190610dd2565b3480156102dc57600080fd5b506103116102eb366004610ca1565b6002602052600090815260409020546001600160801b0380821691600160801b90041682565b604080516001600160801b03938416815292909116602083015201610141565b34801561033d57600080fd5b5061031161034c366004610ca1565b6108b4565b34801561035d57600080fd5b50600454610203906001600160a01b031681565b34801561037d57600080fd5b50603654610203906001600160a01b031681565b34801561039d57600080fd5b5061017f6108d1565b3480156103b257600080fd5b5061017f6303bfc40081565b6003546001600160a01b031633146103f15760405162461bcd60e51b81526004016103e890610dfa565b60405180910390fd5b81156104a3576001600160a01b03831615158061040b5750805b61044f5760405162461bcd60e51b81526020600482015260156024820152744f776e61626c653a207a65726f206164647265737360581b60448201526064016103e8565b6003546040516001600160a01b038086169216906000805160206110d283398151915290600090a3600380546001600160a01b0385166001600160a01b031991821617909155600480549091169055505050565b600480546001600160a01b0385166001600160a01b0319909116179055505050565b6003546001600160a01b031633146104ef5760405162461bcd60e51b81526004016103e890610dfa565b603580546001600160a01b0319166001600160a01b0392909216919091179055565b600061051b6108d1565b905090565b6004546001600160a01b031633811461057b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c657220213d2070656e64696e67206f776e657260448201526064016103e8565b6003546040516001600160a01b038084169216906000805160206110d283398151915290600090a3600380546001600160a01b039092166001600160a01b0319928316179055600480549091169055565b6003546001600160a01b031633146105f65760405162461bcd60e51b81526004016103e890610dfa565b603680546001600160a01b0319166001600160a01b039390931692909217909155603755565b6001600160a01b038082166000908152609c60205260408120549091168061064e576106478361090f565b9392505050565b6106478161090f565b6003546001600160a01b031633146106815760405162461bcd60e51b81526004016103e890610dfa565b6001600160a01b038281166000818152609c602090815260409182902080546001600160a01b031916948616948517905581519384528301919091527f8d268954369e04c7941c3a7876f40c618eb97919add31202c9a235e75e84cf1b91015b60405180910390a15050565b600454600160a81b900460ff1661071157600454600160a01b900460ff1615610715565b303b155b6107785760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016103e8565b600454600160a81b900460ff161580156107a2576004805461ffff60a01b191661010160a01b1790555b6107aa610968565b80156107be576004805460ff60a81b191690555b50565b6035546000906001600160a01b03163314806107e757506003546001600160a01b031633145b6108335760405162461bcd60e51b815260206004820152601d60248201527f6f6e6c792063656c6572206d65737361676520627573206f7220676f7600000060448201526064016103e8565b6036546001600160a01b03878116911614158061085b5750603754856001600160401b031614155b15610868575060006108ab565b6108a784848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506109e992505050565b5060015b95945050505050565b6000806108bf610511565b6108c88461061c565b91509150915091565b60408051808201909152600080546001600160801b038082168452600160801b9091041660208301529061051b90610a28565b600061051b42610a4a565b6001600160a01b03811660009081526002602090815260408083208151808301909252546001600160801b038082168352600160801b90910416918101919091526109629061095d90610a64565b610a28565b92915050565b600454600160a81b900460ff166109d55760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b60648201526084016103e8565b600380546001600160a01b03191633179055565b600080600083806020019051810190610a029190610ee9565b925092509250610a128383610ab6565b805115610a2257610a2281610b46565b50505050565b6000610a3382610bd8565b15610a4057506000919050565b6109628242610c09565b600062093a80610a5a8184610fd6565b610962919061100a565b60408051808201909152600080825260208201528151610a89906303bfc40090610fd6565b6001600160801b03166020808301829052830151610aa69161100a565b6001600160801b03168152919050565b610abf82610a4a565b6001600160801b0316826001600160801b031614610adf57610adf611039565b600180546001600160801b038085166001600160801b031990921691909117909155815160208301518216600160801b029116176000556040517f460b96294ff8de4eea3be3fb4fac9f978cffe83c7cc3140a4bfe0bedba26b92f906106e190839061104f565b60008082806020019051810190610b5d9190611073565b6001600160a01b0382166000908152600260209081526040918290208351918401516001600160801b03908116600160801b0292169190911790555191935091507f776960a80ccfa09c52229b183bf0ef49b26a5d15f9ae2c1c0f780a450d3b2a9f90610bcb90839061104f565b60405180910390a1505050565b600081600001516001600160801b0316428360200151610bf8919061100a565b6001600160801b0316101592915050565b6000818360200151610c1b919061100a565b835161064791906110a9565b6001600160a01b03811681146107be57600080fd5b8035610c4781610c27565b919050565b80358015158114610c4757600080fd5b600080600060608486031215610c7157600080fd5b8335610c7c81610c27565b9250610c8a60208501610c4c565b9150610c9860408501610c4c565b90509250925092565b600060208284031215610cb357600080fd5b813561064781610c27565b60008060408385031215610cd157600080fd5b8235610cdc81610c27565b946020939093013593505050565b60008060408385031215610cfd57600080fd5b8235610d0881610c27565b91506020830135610d1881610c27565b809150509250929050565b600080600080600060808688031215610d3b57600080fd5b8535610d4681610c27565b945060208601356001600160401b038082168214610d6357600080fd5b90945060408701359080821115610d7957600080fd5b818801915088601f830112610d8d57600080fd5b813581811115610d9c57600080fd5b896020828501011115610dae57600080fd5b602083019550809450505050610dc660608701610c3c565b90509295509295909350565b6020810160038310610df457634e487b7160e01b600052602160045260246000fd5b91905290565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b80516001600160801b0381168114610c4757600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715610e8457610e84610e46565b604052919050565b600060408284031215610e9e57600080fd5b604080519081016001600160401b0381118282101715610ec057610ec0610e46565b604052905080610ecf83610e2f565b8152610edd60208401610e2f565b60208201525092915050565b600080600060808486031215610efe57600080fd5b610f0784610e2f565b92506020610f1786828701610e8c565b60608601519093506001600160401b0380821115610f3457600080fd5b818701915087601f830112610f4857600080fd5b815181811115610f5a57610f5a610e46565b610f6c601f8201601f19168501610e5c565b91508082528884828501011115610f8257600080fd5b60005b81811015610fa0578381018501518382018601528401610f85565b81811115610fb15760008583850101525b50508093505050509250925092565b634e487b7160e01b600052601160045260246000fd5b60006001600160801b0383811680610ffe57634e487b7160e01b600052601260045260246000fd5b92169190910492915050565b60006001600160801b038281168482168115158284048211161561103057611030610fc0565b02949350505050565b634e487b7160e01b600052600160045260246000fd5b60408101610962828480516001600160801b03908116835260209182015116910152565b6000806060838503121561108657600080fd5b825161109181610c27565b91506110a08460208501610e8c565b90509250929050565b60006001600160801b03838116908316818110156110c9576110c9610fc0565b03939250505056fe8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0a2646970667358221220e6733002d31ec2347f05a70dda638aafdac1f9585fd039ebcc33c5e4b4d66d3264736f6c634300080f0033";
370
+ "0x60a06040523480156200001157600080fd5b50604051620010ca380380620010ca833981016040819052620000349162000247565b806200004a6200016160201b6200065b1760201c565b600180546001600160801b0319166001600160801b03929092169190911790556001600160a01b0316608052600454600160a81b900460ff166200009c57600454600160a01b900460ff1615620000a6565b620000a662000173565b6200010f5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084015b60405180910390fd5b600454600160a81b900460ff161580156200013a576004805461ffff60a01b191661010160a01b1790555b6200014462000191565b801562000159576004805460ff60a81b191690555b5050620002ec565b60006200016e4262000214565b905090565b60006200018b306200023860201b620006661760201c565b15905090565b600454600160a81b900460ff16620002005760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b606482015260840162000106565b600380546001600160a01b03191633179055565b60006201518062000226818462000279565b620002329190620002ae565b92915050565b6001600160a01b03163b151590565b6000602082840312156200025a57600080fd5b81516001600160a01b03811681146200027257600080fd5b9392505050565b60006001600160801b0383811680620002a257634e487b7160e01b600052601260045260246000fd5b92169190910492915050565b60006001600160801b0382811684821681151582840482111615620002e357634e487b7160e01b600052601160045260246000fd5b02949350505050565b608051610dbb6200030f600039600081816101e701526105880152610dbb6000f3fe6080604052600436106100c35760003560e01c8063078dfbe7146100c857806330d981af146100ea5780633ff032071461011c5780634e71e0c81461013357806370a0823114610148578063769b1ebc14610168578063814b2cac146101885780638da5cb5b146101a8578063af5a8f7b146101d5578063cb6b4f3c14610209578063e0299bf51461026a578063e268b3a41461027d578063e30c39781461029d578063ef1c243a146102bd578063f4359ce51461011c578063fa78668f146102d2575b600080fd5b3480156100d457600080fd5b506100e86100e336600461096e565b6102ea565b005b3480156100f657600080fd5b506100ff6103f1565b6040516001600160801b0390911681526020015b60405180910390f35b34801561012857600080fd5b506100ff6201518081565b34801561013f57600080fd5b506100e8610400565b34801561015457600080fd5b506100ff6101633660046109b3565b6104ac565b34801561017457600080fd5b506100e86101833660046109d0565b6104e7565b34801561019457600080fd5b506001546100ff906001600160801b031681565b3480156101b457600080fd5b506003546101c8906001600160a01b031681565b6040516101139190610a09565b3480156101e157600080fd5b506101c87f000000000000000000000000000000000000000000000000000000000000000081565b34801561021557600080fd5b5061024a6102243660046109b3565b6002602052600090815260409020546001600160801b0380821691600160801b90041682565b604080516001600160801b03938416815292909116602083015201610113565b6100e8610278366004610a1d565b61057d565b34801561028957600080fd5b5061024a6102983660046109b3565b61060b565b3480156102a957600080fd5b506004546101c8906001600160a01b031681565b3480156102c957600080fd5b506100ff610628565b3480156102de57600080fd5b506100ff6303bfc40081565b6003546001600160a01b0316331461031d5760405162461bcd60e51b815260040161031490610a8e565b60405180910390fd5b81156103cf576001600160a01b0383161515806103375750805b61037b5760405162461bcd60e51b81526020600482015260156024820152744f776e61626c653a207a65726f206164647265737360581b6044820152606401610314565b6003546040516001600160a01b03808616921690600080516020610d6683398151915290600090a3600380546001600160a01b0385166001600160a01b031991821617909155600480549091169055505050565b600480546001600160a01b0385166001600160a01b0319909116179055505050565b60006103fb610628565b905090565b6004546001600160a01b031633811461045b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c657220213d2070656e64696e67206f776e65726044820152606401610314565b6003546040516001600160a01b03808416921690600080516020610d6683398151915290600090a3600380546001600160a01b039092166001600160a01b0319928316179055600480549091169055565b6001600160a01b03808216600090815260996020526040812054909116806104de576104d783610675565b9392505050565b6104d781610675565b6003546001600160a01b031633146105115760405162461bcd60e51b815260040161031490610a8e565b6001600160a01b0382811660008181526099602090815260409182902080546001600160a01b031916948616948517905581519384528301919091527f8d268954369e04c7941c3a7876f40c618eb97919add31202c9a235e75e84cf1b91015b60405180910390a15050565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146105c85733604051632b5c157560e11b81526004016103149190610a09565b61060782828080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506106ce92505050565b5050565b6000806106166103f1565b61061f846104ac565b91509150915091565b60408051808201909152600080546001600160801b038082168452600160801b909104166020830152906103fb9061070d565b60006103fb4261072f565b6001600160a01b03163b151590565b6001600160a01b03811660009081526002602090815260408083208151808301909252546001600160801b038082168352600160801b90910416918101919091526106c8906106c390610749565b61070d565b92915050565b6000806000838060200190518101906106e79190610b7d565b9250925092506106f7838361079b565b805115610707576107078161082b565b50505050565b6000610718826108bd565b1561072557506000919050565b6106c882426108ee565b60006201518061073f8184610c6a565b6106c89190610c9e565b6040805180820190915260008082526020820152815161076e906303bfc40090610c6a565b6001600160801b0316602080830182905283015161078b91610c9e565b6001600160801b03168152919050565b6107a48261072f565b6001600160801b0316826001600160801b0316146107c4576107c4610ccd565b600180546001600160801b038085166001600160801b031990921691909117909155815160208301518216600160801b029116176000556040517f460b96294ff8de4eea3be3fb4fac9f978cffe83c7cc3140a4bfe0bedba26b92f90610571908390610ce3565b600080828060200190518101906108429190610d07565b6001600160a01b0382166000908152600260209081526040918290208351918401516001600160801b03908116600160801b0292169190911790555191935091507f776960a80ccfa09c52229b183bf0ef49b26a5d15f9ae2c1c0f780a450d3b2a9f906108b0908390610ce3565b60405180910390a1505050565b600081600001516001600160801b03164283602001516108dd9190610c9e565b6001600160801b0316101592915050565b600082600001516001600160801b031682846020015161090e9190610c9e565b6001600160801b03161115610925575060006106c8565b8183602001516109359190610c9e565b83516104d79190610d3d565b6001600160a01b038116811461095657600080fd5b50565b8035801515811461096957600080fd5b919050565b60008060006060848603121561098357600080fd5b833561098e81610941565b925061099c60208501610959565b91506109aa60408501610959565b90509250925092565b6000602082840312156109c557600080fd5b81356104d781610941565b600080604083850312156109e357600080fd5b82356109ee81610941565b915060208301356109fe81610941565b809150509250929050565b6001600160a01b0391909116815260200190565b60008060208385031215610a3057600080fd5b82356001600160401b0380821115610a4757600080fd5b818501915085601f830112610a5b57600080fd5b813581811115610a6a57600080fd5b866020828501011115610a7c57600080fd5b60209290920196919550909350505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b80516001600160801b038116811461096957600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715610b1857610b18610ada565b604052919050565b600060408284031215610b3257600080fd5b604080519081016001600160401b0381118282101715610b5457610b54610ada565b604052905080610b6383610ac3565b8152610b7160208401610ac3565b60208201525092915050565b600080600060808486031215610b9257600080fd5b610b9b84610ac3565b92506020610bab86828701610b20565b60608601519093506001600160401b0380821115610bc857600080fd5b818701915087601f830112610bdc57600080fd5b815181811115610bee57610bee610ada565b610c00601f8201601f19168501610af0565b91508082528884828501011115610c1657600080fd5b60005b81811015610c34578381018501518382018601528401610c19565b81811115610c455760008583850101525b50508093505050509250925092565b634e487b7160e01b600052601160045260246000fd5b60006001600160801b0383811680610c9257634e487b7160e01b600052601260045260246000fd5b92169190910492915050565b60006001600160801b0382811684821681151582840482111615610cc457610cc4610c54565b02949350505050565b634e487b7160e01b600052600160045260246000fd5b604081016106c8828480516001600160801b03908116835260209182015116910152565b60008060608385031215610d1a57600080fd5b8251610d2581610941565b9150610d348460208501610b20565b90509250929050565b60006001600160801b0383811690831681811015610d5d57610d5d610c54565b03939250505056fe8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0a2646970667358221220c6ec5647dd3e4c642926197fa5fc5de27cb0dedac642e4bf29815d6d813d0f9c64736f6c634300080f0033";
439
371
 
440
372
  type VotingEscrowPendleSidechainConstructorParams =
441
373
  | [signer?: Signer]
@@ -456,16 +388,22 @@ export class VotingEscrowPendleSidechain__factory extends ContractFactory {
456
388
  }
457
389
 
458
390
  deploy(
391
+ _PendleMsgReceiveEndpointUpg: string,
459
392
  overrides?: Overrides & { from?: string | Promise<string> }
460
393
  ): Promise<VotingEscrowPendleSidechain> {
461
394
  return super.deploy(
395
+ _PendleMsgReceiveEndpointUpg,
462
396
  overrides || {}
463
397
  ) as Promise<VotingEscrowPendleSidechain>;
464
398
  }
465
399
  getDeployTransaction(
400
+ _PendleMsgReceiveEndpointUpg: string,
466
401
  overrides?: Overrides & { from?: string | Promise<string> }
467
402
  ): TransactionRequest {
468
- return super.getDeployTransaction(overrides || {});
403
+ return super.getDeployTransaction(
404
+ _PendleMsgReceiveEndpointUpg,
405
+ overrides || {}
406
+ );
469
407
  }
470
408
  attach(address: string): VotingEscrowPendleSidechain {
471
409
  return super.attach(address) as VotingEscrowPendleSidechain;