@pendle/core-v2 0.14.0-testnet → 0.15.1-mainnet

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 (213) hide show
  1. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.dbg.json +1 -1
  2. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.json +97 -48
  3. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.dbg.json +1 -1
  4. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.dbg.json +1 -1
  5. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.json +62 -21
  6. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.dbg.json +1 -1
  7. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.json +26 -0
  8. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/ExcessivelySafeCall.sol/ExcessivelySafeCall.dbg.json +4 -0
  9. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/ExcessivelySafeCall.sol/ExcessivelySafeCall.json +10 -0
  10. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.dbg.json +4 -0
  11. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.json +10 -0
  12. package/build/artifacts/contracts/LiquidityMining/FeeDistributor/EpochResultManager.sol/EpochResultManager.dbg.json +1 -1
  13. package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +1 -1
  14. package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.json +2 -2
  15. package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributorFactory.sol/PendleFeeDistributorFactory.dbg.json +1 -1
  16. package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributorFactory.sol/PendleFeeDistributorFactory.json +2 -2
  17. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
  18. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
  19. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +2 -2
  20. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
  21. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.json +2 -2
  22. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
  23. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +33 -2
  24. package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
  25. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
  26. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +39 -8
  27. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
  28. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +2 -2
  29. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
  30. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
  31. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.json +2 -2
  32. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
  33. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.json +2 -2
  34. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
  35. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.json +2 -2
  36. package/build/artifacts/contracts/LiquidityMining/libraries/WeekMath.sol/WeekMath.dbg.json +1 -1
  37. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
  38. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.json +2 -2
  39. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
  40. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.json +2 -2
  41. package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
  42. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
  43. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.json +6 -6
  44. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
  45. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.json +2 -2
  46. package/build/artifacts/contracts/core/RewardManager/RewardManager.sol/RewardManager.dbg.json +1 -1
  47. package/build/artifacts/contracts/core/RewardManager/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
  48. package/build/artifacts/contracts/core/StandardizedYield/SYBase.sol/SYBase.dbg.json +1 -1
  49. package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.dbg.json +1 -1
  50. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
  51. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.json +2 -2
  52. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.dbg.json +1 -1
  53. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.json +2 -2
  54. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/ConvexCurveLP/Pendle3CrvAndTokenSY.sol/Pendle3CrvAndTokenSY.dbg.json +1 -1
  55. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/ConvexCurveLP/Pendle3CrvAndTokenSY.sol/Pendle3CrvAndTokenSY.json +2 -12
  56. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/ConvexCurveLP/PendleConvexLPSY.sol/PendleConvexLPSY.dbg.json +1 -1
  57. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/Pendle3CrvHelper.sol/Pendle3CrvHelper.dbg.json +1 -1
  58. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/Pendle3CrvHelper.sol/Pendle3CrvHelper.json +2 -2
  59. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.dbg.json +1 -1
  60. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.json +3 -3
  61. package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
  62. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
  63. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.json +2 -2
  64. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
  65. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +2 -2
  66. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
  67. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +2 -2
  68. package/build/artifacts/contracts/core/erc20/PendleERC20Permit.sol/PendleERC20Permit.dbg.json +1 -1
  69. package/build/artifacts/contracts/core/erc20/PendleERC20Permit.sol/PendleERC20Permit.json +2 -2
  70. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
  71. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.json +37 -6
  72. package/build/artifacts/contracts/core/libraries/StringLib.sol/StringLib.dbg.json +4 -0
  73. package/build/artifacts/contracts/core/libraries/StringLib.sol/StringLib.json +10 -0
  74. package/build/artifacts/contracts/core/libraries/TokenHelper.sol/TokenHelper.dbg.json +1 -1
  75. package/build/artifacts/contracts/interfaces/ConvexCurve/IBooster.sol/IBooster.dbg.json +1 -1
  76. package/build/artifacts/contracts/interfaces/Curve/ICrvPool.sol/ICrvPool.dbg.json +1 -1
  77. package/build/artifacts/contracts/interfaces/Curve/ICrvPool.sol/ICrvPool.json +19 -0
  78. package/build/artifacts/contracts/interfaces/ILayerZeroEndpoint.sol/ILayerZeroEndpoint.dbg.json +4 -0
  79. package/build/artifacts/contracts/interfaces/ILayerZeroEndpoint.sol/ILayerZeroEndpoint.json +119 -0
  80. package/build/artifacts/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.dbg.json +4 -0
  81. package/build/artifacts/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.json +39 -0
  82. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
  83. package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
  84. package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
  85. package/build/artifacts/contracts/interfaces/IPActionSwapPTYT.sol/IPActionSwapPTYT.dbg.json +1 -1
  86. package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
  87. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
  88. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
  89. package/build/artifacts/contracts/interfaces/IPMsgSendEndpoint.sol/IPMsgSendEndpoint.dbg.json +1 -1
  90. package/build/artifacts/contracts/interfaces/IPMsgSendEndpoint.sol/IPMsgSendEndpoint.json +12 -2
  91. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
  92. package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
  93. package/build/artifacts/contracts/offchain-helpers/ImplicitSwapfeeContract.sol/ImplicitSwapfeeContract.dbg.json +4 -0
  94. package/build/artifacts/contracts/offchain-helpers/ImplicitSwapfeeContract.sol/ImplicitSwapfeeContract.json +182 -0
  95. package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.dbg.json +1 -1
  96. package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.json +2 -2
  97. package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.dbg.json +1 -1
  98. package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.json +89 -60
  99. package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
  100. package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +20 -4
  101. package/build/artifacts/contracts/router/ActionCallback.sol/ActionCallback.dbg.json +1 -1
  102. package/build/artifacts/contracts/router/ActionCallback.sol/ActionCallback.json +2 -2
  103. package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
  104. package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.json +4 -4
  105. package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.dbg.json +1 -1
  106. package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.json +2 -2
  107. package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
  108. package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.json +2 -2
  109. package/build/artifacts/contracts/router/ActionSwapPTYT.sol/ActionSwapPTYT.dbg.json +1 -1
  110. package/build/artifacts/contracts/router/ActionSwapPTYT.sol/ActionSwapPTYT.json +2 -2
  111. package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
  112. package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.json +2 -2
  113. package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.dbg.json +1 -1
  114. package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.json +2 -2
  115. package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +1 -1
  116. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
  117. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.json +2 -2
  118. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
  119. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.json +2 -2
  120. package/build/artifacts/contracts/router/kyberswap/KyberSwapHelper.sol/KyberSwapHelper.dbg.json +1 -1
  121. package/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol +27 -96
  122. package/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol +12 -40
  123. package/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol +5 -24
  124. package/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol +3 -3
  125. package/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol +7 -2
  126. package/contracts/core/Market/MarketMathCore.sol +1 -1
  127. package/contracts/core/StandardizedYield/SYBase.sol +0 -5
  128. package/contracts/core/StandardizedYield/SYBaseWithRewards.sol +1 -4
  129. package/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol +8 -5
  130. package/contracts/core/YieldContracts/PendleYieldToken.sol +2 -2
  131. package/contracts/core/erc20/PendleERC20Permit.sol +1 -1
  132. package/contracts/core/libraries/Errors.sol +1 -3
  133. package/contracts/interfaces/ICelerMessageBus.sol +28 -0
  134. package/contracts/interfaces/ICelerMessageReceiverApp.sol +25 -0
  135. package/contracts/interfaces/IPMsgSendEndpoint.sol +2 -4
  136. package/deployments/1-core.json +16 -0
  137. package/deployments/1-markets/STETH_MARCH_30.json +8 -0
  138. package/package.json +2 -2
  139. package/typechain-types/ICrvPool.ts +16 -0
  140. package/typechain-types/ILayerZeroEndpoint.ts +256 -0
  141. package/typechain-types/ILayerZeroReceiver.ts +117 -0
  142. package/typechain-types/ILooksFeeSharing.ts +102 -0
  143. package/typechain-types/ILooksStaking.ts +162 -0
  144. package/typechain-types/IPMsgSendEndpoint.ts +24 -14
  145. package/typechain-types/ImplicitSwapfeeContract.ts +9 -17
  146. package/typechain-types/PendleConvex2TokensSY.ts +1215 -0
  147. package/typechain-types/PendleLooksStaking.ts +1052 -0
  148. package/typechain-types/PendleMsgReceiveEndpointUpg.ts +126 -68
  149. package/typechain-types/PendleMsgSendEndpointUpg.ts +99 -39
  150. package/typechain-types/PendleMsgSenderAppUpg.ts +55 -0
  151. package/typechain-types/PendleVotingControllerUpg.ts +55 -0
  152. package/typechain-types/PendleWstEthSY.ts +1 -3
  153. package/typechain-types/RouterStatic.ts +44 -0
  154. package/typechain-types/VotingEscrowPendleMainchain.ts +61 -6
  155. package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +17 -1
  156. package/typechain-types/factories/ActionCallback__factory.ts +1 -1
  157. package/typechain-types/factories/ActionMintRedeem__factory.ts +1 -1
  158. package/typechain-types/factories/ActionMisc__factory.ts +1 -1
  159. package/typechain-types/factories/ActionSwapPTYT__factory.ts +1 -1
  160. package/typechain-types/factories/ActionSwapPT__factory.ts +1 -1
  161. package/typechain-types/factories/ActionSwapYT__factory.ts +1 -1
  162. package/typechain-types/factories/Errors__factory.ts +36 -5
  163. package/typechain-types/factories/ICrvPool__factory.ts +19 -0
  164. package/typechain-types/factories/ILayerZeroEndpoint__factory.ts +134 -0
  165. package/typechain-types/factories/ILayerZeroReceiver__factory.ts +54 -0
  166. package/typechain-types/factories/ILooksFeeSharing__factory.ts +45 -0
  167. package/typechain-types/factories/ILooksStaking__factory.ts +81 -0
  168. package/typechain-types/factories/IPMsgSendEndpoint__factory.ts +12 -2
  169. package/typechain-types/factories/ImplicitSwapfeeContract__factory.ts +4 -12
  170. package/typechain-types/factories/MarketMathStatic__factory.ts +1 -1
  171. package/typechain-types/factories/OracleLib__factory.ts +1 -1
  172. package/typechain-types/factories/Pendle3CrvAndTokenSY__factory.ts +1 -19
  173. package/typechain-types/factories/Pendle3CrvHelper__factory.ts +1 -1
  174. package/typechain-types/factories/PendleConvex2TokensSY__factory.ts +1093 -0
  175. package/typechain-types/factories/PendleERC20Permit__factory.ts +1 -1
  176. package/typechain-types/factories/PendleFeeDistributorFactory__factory.ts +1 -1
  177. package/typechain-types/factories/PendleFeeDistributor__factory.ts +1 -1
  178. package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +1 -1
  179. package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +1 -1
  180. package/typechain-types/factories/PendleLooksStaking__factory.ts +933 -0
  181. package/typechain-types/factories/PendleMarketFactory__factory.ts +1 -1
  182. package/typechain-types/factories/PendleMarket__factory.ts +1 -1
  183. package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +100 -51
  184. package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +71 -23
  185. package/typechain-types/factories/PendleMsgSenderAppUpg__factory.ts +26 -0
  186. package/typechain-types/factories/PendlePrincipalToken__factory.ts +1 -1
  187. package/typechain-types/factories/PendleQiTokenHelper__factory.ts +1 -1
  188. package/typechain-types/factories/PendleQiTokenSY__factory.ts +1 -1
  189. package/typechain-types/factories/PendleRouter__factory.ts +1 -1
  190. package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +44 -2
  191. package/typechain-types/factories/PendleWstEthSY__factory.ts +2 -2
  192. package/typechain-types/factories/PendleYieldContractFactory__factory.ts +1 -1
  193. package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
  194. package/typechain-types/factories/RouterStatic__factory.ts +30 -1
  195. package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +50 -8
  196. package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +1 -1
  197. package/typechain-types/hardhat.d.ts +27 -18
  198. package/typechain-types/index.ts +6 -4
  199. package/build/artifacts/contracts/interfaces/ICelerMessageBus.sol/ICelerMessageBus.dbg.json +0 -4
  200. package/build/artifacts/contracts/interfaces/ICelerMessageBus.sol/ICelerMessageBus.json +0 -53
  201. package/build/artifacts/contracts/interfaces/ICelerMessageReceiverApp.sol/ICelerMessageReceiverApp.dbg.json +0 -4
  202. package/build/artifacts/contracts/interfaces/ICelerMessageReceiverApp.sol/ICelerMessageReceiverApp.json +0 -45
  203. package/contracts/LiquidityMining/CrossChainMsg/libraries/ExcessivelySafeCall.sol +0 -133
  204. package/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol +0 -33
  205. package/contracts/interfaces/ILayerZeroEndpoint.sol +0 -39
  206. package/contracts/interfaces/ILayerZeroReceiver.sol +0 -12
  207. package/deployments/43113-core.json +0 -16
  208. package/deployments/43113-helper.json +0 -3
  209. package/deployments/43113-markets/benqi-market-QI-USDC-FEB-2ND.json +0 -8
  210. package/deployments/43113-markets/benqi-market-QI-WETH-DEC-1ST.json +0 -8
  211. package/deployments/43113-testenv.json +0 -22
  212. package/deployments/80001-core.json +0 -15
  213. package/deployments/80001-testenv.json +0 -22
@@ -1,7 +1,14 @@
1
1
  /* Autogenerated file. Do not edit manually. */
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
- import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
4
+ import {
5
+ Signer,
6
+ utils,
7
+ Contract,
8
+ ContractFactory,
9
+ Overrides,
10
+ BigNumberish,
11
+ } from "ethers";
5
12
  import { Provider, TransactionRequest } from "@ethersproject/providers";
6
13
  import type {
7
14
  VotingEscrowPendleMainchain,
@@ -21,6 +28,11 @@ const _abi = [
21
28
  name: "_pendleMsgSendEndpoint",
22
29
  type: "address",
23
30
  },
31
+ {
32
+ internalType: "uint256",
33
+ name: "initialApproxDestinationGas",
34
+ type: "uint256",
35
+ },
24
36
  ],
25
37
  stateMutability: "nonpayable",
26
38
  type: "constructor",
@@ -284,6 +296,19 @@ const _abi = [
284
296
  stateMutability: "payable",
285
297
  type: "function",
286
298
  },
299
+ {
300
+ inputs: [],
301
+ name: "approxDstExecutionGas",
302
+ outputs: [
303
+ {
304
+ internalType: "uint256",
305
+ name: "",
306
+ type: "uint256",
307
+ },
308
+ ],
309
+ stateMutability: "view",
310
+ type: "function",
311
+ },
287
312
  {
288
313
  inputs: [
289
314
  {
@@ -370,9 +395,9 @@ const _abi = [
370
395
  name: "getBroadcastPositionFee",
371
396
  outputs: [
372
397
  {
373
- internalType: "uint256[]",
374
- name: "fees",
375
- type: "uint256[]",
398
+ internalType: "uint256",
399
+ name: "fee",
400
+ type: "uint256",
376
401
  },
377
402
  ],
378
403
  stateMutability: "view",
@@ -389,9 +414,9 @@ const _abi = [
389
414
  name: "getBroadcastSupplyFee",
390
415
  outputs: [
391
416
  {
392
- internalType: "uint256[]",
393
- name: "fees",
394
- type: "uint256[]",
417
+ internalType: "uint256",
418
+ name: "fee",
419
+ type: "uint256",
395
420
  },
396
421
  ],
397
422
  stateMutability: "view",
@@ -606,6 +631,19 @@ const _abi = [
606
631
  stateMutability: "view",
607
632
  type: "function",
608
633
  },
634
+ {
635
+ inputs: [
636
+ {
637
+ internalType: "uint256",
638
+ name: "gas",
639
+ type: "uint256",
640
+ },
641
+ ],
642
+ name: "setApproxDstExecutionGas",
643
+ outputs: [],
644
+ stateMutability: "nonpayable",
645
+ type: "function",
646
+ },
609
647
  {
610
648
  inputs: [
611
649
  {
@@ -733,7 +771,7 @@ const _abi = [
733
771
  ];
734
772
 
735
773
  const _bytecode =
736
- "0x60c06040523480156200001157600080fd5b5060405162002bcd38038062002bcd83398101604081905262000034916200026e565b806200004a6200016f60201b620010851760201c565b600180546001600160801b0319166001600160801b03929092169190911790556001600160a01b0316608052600454600160a81b900460ff166200009c57600454600160a01b900460ff1615620000a6565b620000a662000181565b6200010f5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084015b60405180910390fd5b600454600160a81b900460ff161580156200013a576004805461ffff60a01b191661010160a01b1790555b6001600160a01b03831660a052620001516200019f565b801562000166576004805460ff60a81b191690555b5050506200031c565b60006200017c4262000222565b905090565b600062000199306200024660201b620010901760201c565b15905090565b600454600160a81b900460ff166200020e5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b606482015260840162000106565b600380546001600160a01b03191633179055565b600062093a80620002348184620002ad565b620002409190620002e2565b92915050565b6001600160a01b03163b151590565b6001600160a01b03811681146200026b57600080fd5b50565b600080604083850312156200028257600080fd5b82516200028f8162000255565b6020840151909250620002a28162000255565b809150509250929050565b60006001600160801b0383811680620002d657634e487b7160e01b600052601260045260246000fd5b92169190910492915050565b6001600160801b038181168382160280821691908281146200031457634e487b7160e01b600052601160045260246000fd5b505092915050565b60805160a0516128616200036c60003960008181610371015281816108e90152610d860152600081816102cf0152818161071601528181610e9401528181611db20152611e8401526128616000f3fe6080604052600436106101475760003560e01c8063078dfbe71461014c5780630b9efa221461016e578063210490281461018157806330d981af146101945780633b16c126146101bf5780633ccfd60b146101ec5780633e39b650146102015780633ff03207146102245780634e71e0c81461023b57806370a08231146102505780637c386c7114610270578063814b2cac1461029d57806389c071ea146102bd5780638da5cb5b14610309578063947975d914610329578063a2c530da1461035f578063b92e106a14610393578063c8121ec2146103a6578063cb6b4f3c146103c6578063cc471bb814610415578063d88e92a914610428578063e139a48d1461045e578063e268b3a41461047e578063e30c39781461049e578063ef1c243a146104be578063f4359ce514610224578063fa78668f146104d3578063fc367c61146104eb575b600080fd5b34801561015857600080fd5b5061016c610167366004612194565b610519565b005b61016c61017c366004612221565b61061f565b61016c61018f366004612273565b610661565b3480156101a057600080fd5b506101a96106a6565b6040516101b6919061229d565b60405180910390f35b3480156101cb57600080fd5b506101df6101da3660046122b1565b6106c3565b6040516101b6919061232d565b3480156101f857600080fd5b506101a961085c565b34801561020d57600080fd5b5061021661095e565b6040516101b6929190612340565b34801561023057600080fd5b506101a962093a8081565b34801561024757600080fd5b5061016c610a72565b34801561025c57600080fd5b506101a961026b3660046123a0565b610b1e565b34801561027c57600080fd5b5061029061028b366004612273565b610b77565b6040516101b691906123d6565b3480156102a957600080fd5b506001546101a9906001600160801b031681565b3480156102c957600080fd5b506102f17f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101b6565b34801561031557600080fd5b506003546102f1906001600160a01b031681565b34801561033557600080fd5b506101a9610344366004612411565b609d602052600090815260409020546001600160801b031681565b34801561036b57600080fd5b506102f17f000000000000000000000000000000000000000000000000000000000000000081565b61016c6103a13660046122b1565b610ba8565b3480156103b257600080fd5b506101a96103c136600461242c565b610bc4565b3480156103d257600080fd5b506104076103e13660046123a0565b6002602052600090815260409020546001600160801b0380821691600160801b90041682565b6040516101b692919061245f565b6101a9610423366004612479565b610e10565b34801561043457600080fd5b506101a9610443366004612411565b609c602052600090815260409020546001600160801b031681565b34801561046a57600080fd5b506101df6104793660046122b1565b610e41565b34801561048a57600080fd5b506104076104993660046123a0565b611012565b3480156104aa57600080fd5b506004546102f1906001600160a01b031681565b3480156104ca57600080fd5b506101a961102f565b3480156104df57600080fd5b506101a96303bfc40081565b3480156104f757600080fd5b5061050b6105063660046123a0565b611067565b6040519081526020016101b6565b6003546001600160a01b0316331461054c5760405162461bcd60e51b8152600401610543906124d9565b60405180910390fd5b81156105fe576001600160a01b0383161515806105665750805b6105aa5760405162461bcd60e51b81526020600482015260156024820152744f776e61626c653a207a65726f206164647265737360581b6044820152606401610543565b6003546040516001600160a01b0380861692169060008051602061280c83398151915290600090a3600380546001600160a01b0385166001600160a01b031991821617909155600480549091169055505050565b600480546001600160a01b0319166001600160a01b0385161790555b505050565b6001600160a01b0383166106465760405163d92e233d60e01b815260040160405180910390fd5b61065183838361109f565b471561061a5761061a3347611286565b6003546001600160a01b0316331461068b5760405162461bcd60e51b8152600401610543906124d9565b6106976035828461139c565b506106a282826113b2565b5050565b6000806106b16113e7565b5090506106bd81611522565b91505090565b6060816001600160401b038111156106dd576106dd61250e565b604051908082528060200260200182016040528015610706578160200160208202803683370190505b50905060005b82811015610855577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663b43f0b1e61076f86868581811061075857610758612524565b90506020020135603561154490919063ffffffff16565b86868581811061078157610781612524565b604080518082018252600080825260208281018290528351828152808201855294029590950135946107b89450929091810161258a565b6040516020818303038152906040526040518463ffffffff1660e01b81526004016107e5939291906125bc565b602060405180830381865afa158015610802573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082691906125e3565b82828151811061083857610838612524565b60209081029190910101528061084d81612612565b91505061070c565b5092915050565b60003361086881611550565b610885576040516339ba104360e01b815260040160405180910390fd5b6001600160a01b0381166000908152600260205260408120546001600160801b031692508290036108c957604051631e95654360e11b815260040160405180910390fd5b6001600160a01b03808216600090815260026020526040812055610919907f000000000000000000000000000000000000000000000000000000000000000016826001600160801b038516611581565b806001600160a01b03167f0e1bb0545c1ebb9fb680bde73514e572831de93b479c087ec1ef6c35c3a19fd683604051610952919061229d565b60405180910390a25090565b606080600061096d60356115e4565b9050806001600160401b038111156109875761098761250e565b6040519080825280602002602001820160405280156109b0578160200160208202803683370190505b509250806001600160401b038111156109cb576109cb61250e565b6040519080825280602002602001820160405280156109f4578160200160208202803683370190505b50915060005b81811015610a6c57610a0d6035826115ef565b858381518110610a1f57610a1f612524565b60200260200101858481518110610a3857610a38612524565b60200260200101826001600160a01b03166001600160a01b031681525082815250505080610a6590612612565b90506109fa565b50509091565b6004546001600160a01b0316338114610acd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c657220213d2070656e64696e67206f776e65726044820152606401610543565b6003546040516001600160a01b0380841692169060008051602061280c83398151915290600090a3600380546001600160a01b039092166001600160a01b0319928316179055600480549091169055565b6001600160a01b03811660009081526002602090815260408083208151808301909252546001600160801b038082168352600160801b9091041691810191909152610b7190610b6c9061160d565b611522565b92915050565b610b7f612128565b6001600160a01b0383166000908152609e60205260409020610ba19083611653565b9392505050565b610bb46000838361109f565b47156106a2576106a23347611286565b600033610bd96001600160801b0384166116c9565b610bf85782604051637bf16ce960e11b8152600401610543919061229d565b6001600160801b0383164210610c23578260405163d928003560e01b8152600401610543919061229d565b6001600160a01b0381166000908152600260205260409020546001600160801b03600160801b90910481169084161015610c7057604051631f8b0c5960e21b815260040160405180910390fd5b610c7e6303bfc4004261262b565b836001600160801b03161115610ca757604051632739a01960e11b815260040160405180910390fd5b610cb462093a804261262b565b836001600160801b03161015610cdd57604051630def6af560e21b815260040160405180910390fd5b6001600160a01b038116600090815260026020526040812054610d09906001600160801b03168661263e565b9050806001600160801b0316600003610d35576040516323fbc14f60e11b815260040160405180910390fd5b6001600160a01b038216600090815260026020526040812054610d6890600160801b90046001600160801b03168661265e565b90506001600160801b03861615610db757610db76001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001684306001600160801b038a166116df565b610dc2838783611717565b9350826001600160a01b03167fb1a3371956c54dc1d83695b4a006b051c8313ee986e533b6b964e77c9066fc2c8387604051610dff92919061245f565b60405180910390a250505092915050565b6000610e1c8585610bc4565b9050610e2933848461061f565b4715610e3957610e393347611286565b949350505050565b6060816001600160401b03811115610e5b57610e5b61250e565b604051908082528060200260200182016040528015610e84578160200160208202803683370190505b50905060005b82811015610855577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663b43f0b1e610ed686868581811061075857610758612524565b868685818110610ee857610ee8612524565b905060200201356000604051806040016040528060006001600160801b0316815260200160006001600160801b03168152506000604051806040016040528060006001600160801b0316815260200160006001600160801b0316815250604051602001610f5692919061267e565b60408051601f1981840301815290829052610f7593929160200161258a565b6040516020818303038152906040526040518463ffffffff1660e01b8152600401610fa2939291906125bc565b602060405180830381865afa158015610fbf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fe391906125e3565b828281518110610ff557610ff5612524565b60209081029190910101528061100a81612612565b915050610e8a565b60008061101d6106a6565b61102684610b1e565b91509150915091565b60408051808201909152600080546001600160801b038082168452600160801b9091041660208301529061106290611522565b905090565b6001600160a01b0381166000908152609e6020526040812054610b71565b600061106242611917565b6001600160a01b03163b151590565b60008190036110c157604051633c4d929d60e21b815260040160405180910390fd5b6000806110cc6113e7565b909250905060006001600160a01b03861615611139576001600160a01b03861660008181526002602090815260409182902082519182019390935291546001600160801b03811691830191909152608090811c606083015201604051602081830303815290604052611149565b6040805160008152602081019091525b905060005b848110156111ef5761118286868381811061116b5761116b612524565b90506020020135603561193190919063ffffffff16565b6111bb5785858281811061119857611198612524565b9050602002013560405163264e42cf60e01b815260040161054391815260200190565b6111df8686838181106111d0576111d0612524565b9050602002013584868561193d565b6111e881612612565b905061114e565b506001600160a01b0386161561124357856001600160a01b03167f82e92e1b0568d98f095fc0c76ccb0f2ac5b64534f69a2c706281e223b6477683868660405161123a9291906126cd565b60405180910390a25b7f5f9e7cb1ed2eca254f75b6e350699887aa8597e3a2ec9e0aa2b3504c211facbd838686604051611276939291906126e1565b60405180910390a1505050505050565b804710156112d65760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610543565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611323576040519150601f19603f3d011682016040523d82523d6000602084013e611328565b606091505b505090508061061a5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c20726044820152791958da5c1a595b9d081b585e481a185d99481c995d995c9d195960321b6064820152608401610543565b6000610e3984846001600160a01b03851661196a565b6000806113bd6113e7565b915091506113e183828460405160200160405160208183030381529060405261193d565b50505050565b6113ef612150565b60408051808201909152600080546001600160801b038082168452600160801b909104811660208401526001549192911682611429611085565b9050806001600160801b0316826001600160801b03161061144e575090939092509050565b806001600160801b0316826001600160801b031610156114df5761147562093a808361263e565b6001600160801b038082166000908152609c602052604090205491935061149f9185911684611987565b92506114ab83836119d5565b6001600160801b038381166000908152609d6020526040902080546001600160801b0319169290911691909117905561144e565b50815160208301516001600160801b03918216600160801b9183169190910217600055600180546001600160801b03191691831691909117905590939092509050565b600061152d82611a28565b1561153a57506000919050565b610b7182426119d5565b6000610ba18383611a59565b6001600160a01b038116600090815260026020526040812054600160801b90046001600160801b0316421015610b71565b6040516001600160a01b03831660248201526044810182905261061a90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611ac9565b6000610b7182611b9b565b60008080806115fe8686611ba6565b909450925050505b9250929050565b611615612150565b8151611626906303bfc40090612718565b6001600160801b031660208083018290528301516116439161273e565b6001600160801b03168152919050565b61165b612128565b82600001828154811061167057611670612524565b6000918252602091829020604080518082018252600290930290910180546001600160801b03908116845282518084019093526001909101548082168352600160801b9004168184015291810191909152905092915050565b60006116d862093a8083612769565b1592915050565b6040516001600160a01b03808516602483015283166044820152606481018290526113e19085906323b872dd60e01b906084016115ad565b6001600160a01b03831660009081526002602090815260408083208151808301909252546001600160801b038082168352600160801b9091041691810191909152816117616113e7565b50905061177b82602001516001600160801b031642101590565b6117f557600061178a8361160d565b90506117968282611bd1565b602080830151858201516001600160801b039081166000908152609c90935260408320805494965091939192916117cf9185911661265e565b92506101000a8154816001600160801b0302191690836001600160801b03160217905550505b60006040518060400160405280878560000151611812919061263e565b6001600160801b03168152602001868560200151611830919061263e565b6001600160801b03169052905060006118488261160d565b90506118548382611c1a565b602080830151848201516001600160801b039081166000908152609c909352604083208054949750919391929161188d9185911661263e565b82546101009290920a6001600160801b038181021990931691831602179091558451602080870151918316600160801b92841683021760009081556001600160a01b038d168152600282526040808220885189850151908716961690940294909417909255609e905220611902915082611c4f565b61190b81611522565b98975050505050505050565b600062093a806119278184612718565b610b71919061273e565b6000610ba18383611d7c565b6113e1848484846040516020016119569392919061277d565b604051602081830303815290604052611d88565b60008281526002840160205260408120829055610e398484611ef7565b61198f612150565b82846020015161199f919061265e565b6001600160801b031660208201526119b7828461273e565b84516119c3919061265e565b6001600160801b031681529392505050565b600082600001516001600160801b03168284602001516119f5919061273e565b6001600160801b03161115611a0c57506000610b71565b818360200151611a1c919061273e565b8351610ba1919061265e565b600081600001516001600160801b0316428360200151611a48919061273e565b6001600160801b0316101592915050565b600081815260028301602052604081205480151580611a7d5750611a7d8484611d7c565b610ba15760405162461bcd60e51b815260206004820152601e60248201527f456e756d657261626c654d61703a206e6f6e6578697374656e74206b657900006044820152606401610543565b6000611b1e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611f039092919063ffffffff16565b80519091501561061a5780806020019051810190611b3c9190612796565b61061a5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610543565b6000610b7182611f12565b60008080611bb48585611f1c565b600081815260029690960160205260409095205494959350505050565b611bd9612150565b81518351611be7919061265e565b6001600160801b0316815260208083015190840151611c06919061265e565b6001600160801b0316602082015292915050565b611c22612150565b81518351611c30919061263e565b6001600160801b0316815260208083015190840151611c06919061263e565b81548015801590611ca45750611c63611085565b6001600160801b031683611c786001846127b3565b81548110611c8857611c88612524565b60009182526020909120600290910201546001600160801b0316145b15611d03578183611cb66001846127b3565b81548110611cc657611cc6612524565b6000918252602091829020835193909201516001600160801b03908116600160801b02931692909217600160029093029091019190910155505050565b826000016040518060400160405280611d1a611085565b6001600160801b0390811682526020918201869052835460018181018655600095865294839020845160029092020180549183166001600160801b03199092169190911781559282015180519201518116600160801b02911617910155505050565b6000610ba18383611f28565b611d93603583611931565b611d9f57611d9f6127c6565b6000611dac603584611544565b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663b43f0b1e8386866040518463ffffffff1660e01b8152600401611e00939291906125bc565b602060405180830381865afa158015611e1d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e4191906125e3565b905080471015611e6d5760405163704c5be560e11b815247600482015260248101829052604401610543565b604051634f9e72ad60e11b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690639f3ce55a908390611ebf908690899089906004016125bc565b6000604051808303818588803b158015611ed857600080fd5b505af1158015611eec573d6000803e3d6000fd5b505050505050505050565b6000610ba18383611f34565b6060610e398484600085611f7e565b6000610b71825490565b6000610ba183836120ad565b6000610ba183836120d7565b6000611f4083836120d7565b611f7657508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610b71565b506000610b71565b606082471015611fdf5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610543565b611fe885611090565b6120345760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610543565b600080866001600160a01b0316858760405161205091906127dc565b60006040518083038185875af1925050503d806000811461208d576040519150601f19603f3d011682016040523d82523d6000602084013e612092565b606091505b50915091506120a28282866120ef565b979650505050505050565b60008260000182815481106120c4576120c4612524565b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b606083156120fe575081610ba1565b82511561210e5782518084602001fd5b8160405162461bcd60e51b815260040161054391906127f8565b604051806040016040528060006001600160801b0316815260200161214b612150565b905290565b604080518082019091526000808252602082015290565b80356001600160a01b038116811461217e57600080fd5b919050565b801515811461219157600080fd5b50565b6000806000606084860312156121a957600080fd5b6121b284612167565b925060208401356121c281612183565b915060408401356121d281612183565b809150509250925092565b60008083601f8401126121ef57600080fd5b5081356001600160401b0381111561220657600080fd5b6020830191508360208260051b850101111561160657600080fd5b60008060006040848603121561223657600080fd5b61223f84612167565b925060208401356001600160401b0381111561225a57600080fd5b612266868287016121dd565b9497909650939450505050565b6000806040838503121561228657600080fd5b61228f83612167565b946020939093013593505050565b6001600160801b0391909116815260200190565b600080602083850312156122c457600080fd5b82356001600160401b038111156122da57600080fd5b6122e6858286016121dd565b90969095509350505050565b600081518084526020808501945080840160005b8381101561232257815187529582019590820190600101612306565b509495945050505050565b602081526000610ba160208301846122f2565b60408152600061235360408301856122f2565b82810360208481019190915284518083528582019282019060005b818110156123935784516001600160a01b03168352938301939183019160010161236e565b5090979650505050505050565b6000602082840312156123b257600080fd5b610ba182612167565b80516001600160801b03908116835260209182015116910152565b81516001600160801b031681526020808301516060830191610855908401826123bb565b80356001600160801b038116811461217e57600080fd5b60006020828403121561242357600080fd5b610ba1826123fa565b6000806040838503121561243f57600080fd5b612448836123fa565b9150612456602084016123fa565b90509250929050565b6001600160801b0392831681529116602082015260400190565b6000806000806060858703121561248f57600080fd5b612498856123fa565b93506124a6602086016123fa565b925060408501356001600160401b038111156124c157600080fd5b6124cd878288016121dd565b95989497509550505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b60005b8381101561255557818101518382015260200161253d565b50506000910152565b6000815180845261257681602086016020860161253a565b601f01601f19169290920160200192915050565b60ff8416815261259d60208201846123bb565b6080606082015260006125b3608083018461255e565b95945050505050565b60018060a01b03841681528260208201526060604082015260006125b3606083018461255e565b6000602082840312156125f557600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b600060018201612624576126246125fc565b5060010190565b80820180821115610b7157610b716125fc565b6001600160801b03818116838216019080821115610855576108556125fc565b6001600160801b03828116828216039080821115610855576108556125fc565b6001600160a01b038316815260608101610ba160208301846123bb565b81835260006001600160fb1b038311156126b457600080fd5b8260051b80836020870137939093016020019392505050565b602081526000610e3960208301848661269b565b6126eb81856123bb565b6060604082015260006125b360608301848661269b565b634e487b7160e01b600052601260045260246000fd5b60006001600160801b038381168061273257612732612702565b92169190910492915050565b6001600160801b03818116838216028082169190828114612761576127616125fc565b505092915050565b60008261277857612778612702565b500690565b6001600160801b038416815261259d60208201846123bb565b6000602082840312156127a857600080fd5b8151610ba181612183565b81810381811115610b7157610b716125fc565b634e487b7160e01b600052600160045260246000fd5b600082516127ee81846020870161253a565b9190910192915050565b602081526000610ba1602083018461255e56fe8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0a2646970667358221220993b903a3983bf476bb1e20f17534dbab9b3ca38950e018e45a23d49ed64572264736f6c63430008110033";
774
+ "0x60c06040523480156200001157600080fd5b5060405162002aaa38038062002aaa833981016040819052620000349162000276565b81816200004b6200017760201b62000edb1760201c565b600180546001600160801b0319166001600160801b03929092169190911790556001600160a01b0391909116608052603555600454600160a81b900460ff16620000a357600454600160a01b900460ff1615620000ad565b620000ad62000189565b620001165760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084015b60405180910390fd5b600454600160a81b900460ff1615801562000141576004805461ffff60a01b191661010160a01b1790555b6001600160a01b03841660a05262000158620001a7565b80156200016d576004805460ff60a81b191690555b505050506200032d565b600062000184426200022a565b905090565b6000620001a1306200024e60201b62000ee61760201c565b15905090565b600454600160a81b900460ff16620002165760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b60648201526084016200010d565b600380546001600160a01b03191633179055565b600062093a806200023c8184620002be565b620002489190620002f3565b92915050565b6001600160a01b03163b151590565b6001600160a01b03811681146200027357600080fd5b50565b6000806000606084860312156200028c57600080fd5b835162000299816200025d565b6020850151909350620002ac816200025d565b80925050604084015190509250925092565b60006001600160801b0383811680620002e757634e487b7160e01b600052601260045260246000fd5b92169190910492915050565b6001600160801b038181168382160280821691908281146200032557634e487b7160e01b600052601160045260246000fd5b505092915050565b60805160a051612734620003766000396000818161039e015281816108110152610cb20152600081816102e60152818161137101528181611c250152611ce401526127346000f3fe60806040526004361061015d5760003560e01c8063078dfbe7146101625780630b9efa2214610184578063210490281461019757806330d981af146101aa5780633b16c126146101d55780633ccfd60b146102035780633e39b650146102185780633ff032071461023b5780634e71e0c81461025257806370a08231146102675780637c386c7114610287578063814b2cac146102b457806389c071ea146102d45780638da5cb5b14610320578063947975d9146103405780639efc757514610376578063a2c530da1461038c578063b92e106a146103c0578063c8121ec2146103d3578063cb6b4f3c146103f3578063cc471bb814610442578063d45f5e2114610455578063d88e92a914610475578063e139a48d146104ab578063e268b3a4146104cb578063e30c3978146104eb578063ef1c243a1461050b578063f4359ce51461023b578063fa78668f14610520578063fc367c6114610538575b600080fd5b34801561016e57600080fd5b5061018261017d366004612067565b610558565b005b6101826101923660046120f4565b61065e565b6101826101a5366004612146565b6106a0565b3480156101b657600080fd5b506101bf6106d6565b6040516101cc9190612170565b60405180910390f35b3480156101e157600080fd5b506101f56101f0366004612184565b6106f3565b6040519081526020016101cc565b34801561020f57600080fd5b506101bf610784565b34801561022457600080fd5b5061022d610886565b6040516101cc9291906121c5565b34801561024757600080fd5b506101bf62093a8081565b34801561025e57600080fd5b5061018261099a565b34801561027357600080fd5b506101bf610282366004612249565b610a46565b34801561029357600080fd5b506102a76102a2366004612146565b610a9f565b6040516101cc919061227f565b3480156102c057600080fd5b506001546101bf906001600160801b031681565b3480156102e057600080fd5b506103087f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101cc565b34801561032c57600080fd5b50600354610308906001600160a01b031681565b34801561034c57600080fd5b506101bf61035b3660046122ba565b609e602052600090815260409020546001600160801b031681565b34801561038257600080fd5b506101f560355481565b34801561039857600080fd5b506103087f000000000000000000000000000000000000000000000000000000000000000081565b6101826103ce366004612184565b610ad0565b3480156103df57600080fd5b506101bf6103ee3660046122d5565b610af0565b3480156103ff57600080fd5b5061043461040e366004612249565b6002602052600090815260409020546001600160801b0380821691600160801b90041682565b6040516101cc929190612308565b6101bf610450366004612322565b610d3c565b34801561046157600080fd5b50610182610470366004612382565b610d6d565b34801561048157600080fd5b506101bf6104903660046122ba565b609d602052600090815260409020546001600160801b031681565b3480156104b757600080fd5b506101f56104c6366004612184565b610d9c565b3480156104d757600080fd5b506104346104e6366004612249565b610e68565b3480156104f757600080fd5b50600454610308906001600160a01b031681565b34801561051757600080fd5b506101bf610e85565b34801561052c57600080fd5b506101bf6303bfc40081565b34801561054457600080fd5b506101f5610553366004612249565b610ebd565b6003546001600160a01b0316331461058b5760405162461bcd60e51b81526004016105829061239b565b60405180910390fd5b811561063d576001600160a01b0383161515806105a55750805b6105e95760405162461bcd60e51b81526020600482015260156024820152744f776e61626c653a207a65726f206164647265737360581b6044820152606401610582565b6003546040516001600160a01b038086169216906000805160206126df83398151915290600090a3600380546001600160a01b0385166001600160a01b031991821617909155600480549091169055505050565b600480546001600160a01b0319166001600160a01b0385161790555b505050565b6001600160a01b0383166106855760405163d92e233d60e01b815260040160405180910390fd5b610690838383610ef5565b47156106595761065933476110dc565b6003546001600160a01b031633146106ca5760405162461bcd60e51b81526004016105829061239b565b610659603682846111f2565b6000806106e1611208565b5090506106ed81611343565b91505090565b6000805b8281101561077d5761075f848483818110610714576107146123d0565b6040805180820182526000808252602082810182905283518281528082018552940295909501359461074b94509290918101612436565b604051602081830303815290604052611365565b610769908361247e565b91508061077581612491565b9150506106f7565b5092915050565b60003361079081611406565b6107ad576040516339ba104360e01b815260040160405180910390fd5b6001600160a01b0381166000908152600260205260408120546001600160801b031692508290036107f157604051631e95654360e11b815260040160405180910390fd5b6001600160a01b03808216600090815260026020526040812055610841907f000000000000000000000000000000000000000000000000000000000000000016826001600160801b038516611437565b806001600160a01b03167f0e1bb0545c1ebb9fb680bde73514e572831de93b479c087ec1ef6c35c3a19fd68360405161087a9190612170565b60405180910390a25090565b6060806000610895603661149a565b9050806001600160401b038111156108af576108af6124aa565b6040519080825280602002602001820160405280156108d8578160200160208202803683370190505b509250806001600160401b038111156108f3576108f36124aa565b60405190808252806020026020018201604052801561091c578160200160208202803683370190505b50915060005b81811015610994576109356036826114a5565b858381518110610947576109476123d0565b60200260200101858481518110610960576109606123d0565b60200260200101826001600160a01b03166001600160a01b03168152508281525050508061098d90612491565b9050610922565b50509091565b6004546001600160a01b03163381146109f55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c657220213d2070656e64696e67206f776e65726044820152606401610582565b6003546040516001600160a01b038084169216906000805160206126df83398151915290600090a3600380546001600160a01b039092166001600160a01b0319928316179055600480549091169055565b6001600160a01b03811660009081526002602090815260408083208151808301909252546001600160801b038082168352600160801b9091041691810191909152610a9990610a94906114c3565b611343565b92915050565b610aa7611ffb565b6001600160a01b0383166000908152609f60205260409020610ac99083611509565b9392505050565b610adc60008383610ef5565b4715610aec57610aec33476110dc565b5050565b600033610b056001600160801b03841661157f565b610b245782604051637bf16ce960e11b81526004016105829190612170565b6001600160801b0383164210610b4f578260405163d928003560e01b81526004016105829190612170565b6001600160a01b0381166000908152600260205260409020546001600160801b03600160801b90910481169084161015610b9c57604051631f8b0c5960e21b815260040160405180910390fd5b610baa6303bfc4004261247e565b836001600160801b03161115610bd357604051632739a01960e11b815260040160405180910390fd5b610be062093a804261247e565b836001600160801b03161015610c0957604051630def6af560e21b815260040160405180910390fd5b6001600160a01b038116600090815260026020526040812054610c35906001600160801b0316866124c0565b9050806001600160801b0316600003610c61576040516323fbc14f60e11b815260040160405180910390fd5b6001600160a01b038216600090815260026020526040812054610c9490600160801b90046001600160801b0316866124e0565b90506001600160801b03861615610ce357610ce36001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001684306001600160801b038a16611595565b610cee8387836115d3565b9350826001600160a01b03167fb1a3371956c54dc1d83695b4a006b051c8313ee986e533b6b964e77c9066fc2c8387604051610d2b929190612308565b60405180910390a250505092915050565b6000610d488585610af0565b9050610d5533848461065e565b4715610d6557610d6533476110dc565b949350505050565b6003546001600160a01b03163314610d975760405162461bcd60e51b81526004016105829061239b565b603555565b6000805b8281101561077d57610e4a848483818110610dbd57610dbd6123d0565b905060200201356000604051806040016040528060006001600160801b0316815260200160006001600160801b03168152506000604051806040016040528060006001600160801b0316815260200160006001600160801b0316815250604051602001610e2b929190612500565b60408051601f198184030181529082905261074b939291602001612436565b610e54908361247e565b915080610e6081612491565b915050610da0565b600080610e736106d6565b610e7c84610a46565b91509150915091565b60408051808201909152600080546001600160801b038082168452600160801b90910416602083015290610eb890611343565b905090565b6001600160a01b0381166000908152609f6020526040812054610a99565b6000610eb8426117d3565b6001600160a01b03163b151590565b6000819003610f1757604051633c4d929d60e21b815260040160405180910390fd5b600080610f22611208565b909250905060006001600160a01b03861615610f8f576001600160a01b03861660008181526002602090815260409182902082519182019390935291546001600160801b03811691830191909152608090811c606083015201604051602081830303815290604052610f9f565b6040805160008152602081019091525b905060005b8481101561104557610fd8868683818110610fc157610fc16123d0565b9050602002013560366117ed90919063ffffffff16565b61101157858582818110610fee57610fee6123d0565b9050602002013560405163264e42cf60e01b815260040161058291815260200190565b611035868683818110611026576110266123d0565b905060200201358486856117f9565b61103e81612491565b9050610fa4565b506001600160a01b0386161561109957856001600160a01b03167f82e92e1b0568d98f095fc0c76ccb0f2ac5b64534f69a2c706281e223b6477683868660405161109092919061254f565b60405180910390a25b7f5f9e7cb1ed2eca254f75b6e350699887aa8597e3a2ec9e0aa2b3504c211facbd8386866040516110cc93929190612563565b60405180910390a1505050505050565b8047101561112c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610582565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611179576040519150601f19603f3d011682016040523d82523d6000602084013e61117e565b606091505b50509050806106595760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c20726044820152791958da5c1a595b9d081b585e481a185d99481c995d995c9d195960321b6064820152608401610582565b6000610d6584846001600160a01b038516611826565b611210612023565b60408051808201909152600080546001600160801b038082168452600160801b90910481166020840152600154919291168261124a610edb565b9050806001600160801b0316826001600160801b03161061126f575090939092509050565b806001600160801b0316826001600160801b031610156113005761129662093a80836124c0565b6001600160801b038082166000908152609d60205260409020549193506112c09185911684611843565b92506112cc8383611891565b6001600160801b038381166000908152609e6020526040902080546001600160801b0319169290911691909117905561126f565b50815160208301516001600160801b03918216600160801b9183169190910217600055600180546001600160801b03191691831691909117905590939092509050565b600061134e826118e4565b1561135b57506000919050565b610a998242611891565b60006001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000166384fe17216113a1603686611915565b85856035546040518563ffffffff1660e01b81526004016113c59493929190612584565b602060405180830381865afa1580156113e2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac991906125bc565b6001600160a01b038116600090815260026020526040812054600160801b90046001600160801b0316421015610a99565b6040516001600160a01b03831660248201526044810182905261065990849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611921565b6000610a99826119f3565b60008080806114b486866119fe565b909450925050505b9250929050565b6114cb612023565b81516114dc906303bfc400906125eb565b6001600160801b031660208083018290528301516114f991612611565b6001600160801b03168152919050565b611511611ffb565b826000018281548110611526576115266123d0565b6000918252602091829020604080518082018252600290930290910180546001600160801b03908116845282518084019093526001909101548082168352600160801b9004168184015291810191909152905092915050565b600061158e62093a808361263c565b1592915050565b6040516001600160a01b03808516602483015283166044820152606481018290526115cd9085906323b872dd60e01b90608401611463565b50505050565b6001600160a01b03831660009081526002602090815260408083208151808301909252546001600160801b038082168352600160801b90910416918101919091528161161d611208565b50905061163782602001516001600160801b031642101590565b6116b1576000611646836114c3565b90506116528282611a29565b602080830151858201516001600160801b039081166000908152609d909352604083208054949650919391929161168b918591166124e0565b92506101000a8154816001600160801b0302191690836001600160801b03160217905550505b600060405180604001604052808785600001516116ce91906124c0565b6001600160801b031681526020018685602001516116ec91906124c0565b6001600160801b0316905290506000611704826114c3565b90506117108382611a72565b602080830151848201516001600160801b039081166000908152609d9093526040832080549497509193919291611749918591166124c0565b82546101009290920a6001600160801b038181021990931691831602179091558451602080870151918316600160801b92841683021760009081556001600160a01b038d168152600282526040808220885189850151908716961690940294909417909255609f9052206117be915082611aa7565b6117c781611343565b98975050505050505050565b600062093a806117e381846125eb565b610a999190612611565b6000610ac98383611bd4565b6115cd8484848460405160200161181293929190612650565b604051602081830303815290604052611be0565b60008281526002840160205260408120829055610d658484611d5a565b61184b612023565b82846020015161185b91906124e0565b6001600160801b031660208201526118738284612611565b845161187f91906124e0565b6001600160801b031681529392505050565b600082600001516001600160801b03168284602001516118b19190612611565b6001600160801b031611156118c857506000610a99565b8183602001516118d89190612611565b8351610ac991906124e0565b600081600001516001600160801b03164283602001516119049190612611565b6001600160801b0316101592915050565b6000610ac98383611d66565b6000611976826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611dd69092919063ffffffff16565b80519091501561065957808060200190518101906119949190612669565b6106595760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610582565b6000610a9982611de5565b60008080611a0c8585611def565b600081815260029690960160205260409095205494959350505050565b611a31612023565b81518351611a3f91906124e0565b6001600160801b0316815260208083015190840151611a5e91906124e0565b6001600160801b0316602082015292915050565b611a7a612023565b81518351611a8891906124c0565b6001600160801b0316815260208083015190840151611a5e91906124c0565b81548015801590611afc5750611abb610edb565b6001600160801b031683611ad0600184612686565b81548110611ae057611ae06123d0565b60009182526020909120600290910201546001600160801b0316145b15611b5b578183611b0e600184612686565b81548110611b1e57611b1e6123d0565b6000918252602091829020835193909201516001600160801b03908116600160801b02931692909217600160029093029091019190910155505050565b826000016040518060400160405280611b72610edb565b6001600160801b0390811682526020918201869052835460018181018655600095865294839020845160029092020180549183166001600160801b03199092169190911781559282015180519201518116600160801b02911617910155505050565b6000610ac98383611dfb565b611beb6036836117ed565b611bf757611bf7612699565b6000611c04603684611915565b6035546040516384fe172160e01b8152919250906000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906384fe172190611c60908690899089908890600401612584565b602060405180830381865afa158015611c7d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ca191906125bc565b905080471015611ccd5760405163704c5be560e11b815247600482015260248101829052604401610582565b60405163b2267a7b60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063b2267a7b908390611d219087908a908a908990600401612584565b6000604051808303818588803b158015611d3a57600080fd5b505af1158015611d4e573d6000803e3d6000fd5b50505050505050505050565b6000610ac98383611e07565b600081815260028301602052604081205480151580611d8a5750611d8a8484611bd4565b610ac95760405162461bcd60e51b815260206004820152601e60248201527f456e756d657261626c654d61703a206e6f6e6578697374656e74206b657900006044820152606401610582565b6060610d658484600085611e51565b6000610a99825490565b6000610ac98383611f80565b6000610ac98383611faa565b6000611e138383611faa565b611e4957508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610a99565b506000610a99565b606082471015611eb25760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610582565b611ebb85610ee6565b611f075760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610582565b600080866001600160a01b03168587604051611f2391906126af565b60006040518083038185875af1925050503d8060008114611f60576040519150601f19603f3d011682016040523d82523d6000602084013e611f65565b606091505b5091509150611f75828286611fc2565b979650505050505050565b6000826000018281548110611f9757611f976123d0565b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b60608315611fd1575081610ac9565b825115611fe15782518084602001fd5b8160405162461bcd60e51b815260040161058291906126cb565b604051806040016040528060006001600160801b0316815260200161201e612023565b905290565b604080518082019091526000808252602082015290565b80356001600160a01b038116811461205157600080fd5b919050565b801515811461206457600080fd5b50565b60008060006060848603121561207c57600080fd5b6120858461203a565b9250602084013561209581612056565b915060408401356120a581612056565b809150509250925092565b60008083601f8401126120c257600080fd5b5081356001600160401b038111156120d957600080fd5b6020830191508360208260051b85010111156114bc57600080fd5b60008060006040848603121561210957600080fd5b6121128461203a565b925060208401356001600160401b0381111561212d57600080fd5b612139868287016120b0565b9497909650939450505050565b6000806040838503121561215957600080fd5b6121628361203a565b946020939093013593505050565b6001600160801b0391909116815260200190565b6000806020838503121561219757600080fd5b82356001600160401b038111156121ad57600080fd5b6121b9858286016120b0565b90969095509350505050565b604080825283519082018190526000906020906060840190828701845b828110156121fe578151845292840192908401906001016121e2565b5050508381038285015284518082528583019183019060005b8181101561223c5783516001600160a01b031683529284019291840191600101612217565b5090979650505050505050565b60006020828403121561225b57600080fd5b610ac98261203a565b80516001600160801b03908116835260209182015116910152565b81516001600160801b03168152602080830151606083019161077d90840182612264565b80356001600160801b038116811461205157600080fd5b6000602082840312156122cc57600080fd5b610ac9826122a3565b600080604083850312156122e857600080fd5b6122f1836122a3565b91506122ff602084016122a3565b90509250929050565b6001600160801b0392831681529116602082015260400190565b6000806000806060858703121561233857600080fd5b612341856122a3565b935061234f602086016122a3565b925060408501356001600160401b0381111561236a57600080fd5b612376878288016120b0565b95989497509550505050565b60006020828403121561239457600080fd5b5035919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b60005b838110156124015781810151838201526020016123e9565b50506000910152565b600081518084526124228160208601602086016123e6565b601f01601f19169290920160200192915050565b60ff841681526124496020820184612264565b60806060820152600061245f608083018461240a565b95945050505050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610a9957610a99612468565b6000600182016124a3576124a3612468565b5060010190565b634e487b7160e01b600052604160045260246000fd5b6001600160801b0381811683821601908082111561077d5761077d612468565b6001600160801b0382811682821603908082111561077d5761077d612468565b6001600160a01b038316815260608101610ac96020830184612264565b81835260006001600160fb1b0383111561253657600080fd5b8260051b80836020870137939093016020019392505050565b602081526000610d6560208301848661251d565b61256d8185612264565b60606040820152600061245f60608301848661251d565b60018060a01b03851681528360208201526080604082015260006125ab608083018561240a565b905082606083015295945050505050565b6000602082840312156125ce57600080fd5b5051919050565b634e487b7160e01b600052601260045260246000fd5b60006001600160801b0383811680612605576126056125d5565b92169190910492915050565b6001600160801b0381811683821602808216919082811461263457612634612468565b505092915050565b60008261264b5761264b6125d5565b500690565b6001600160801b03841681526124496020820184612264565b60006020828403121561267b57600080fd5b8151610ac981612056565b81810381811115610a9957610a99612468565b634e487b7160e01b600052600160045260246000fd5b600082516126c18184602087016123e6565b9190910192915050565b602081526000610ac9602083018461240a56fe8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0a2646970667358221220850dd0f9474b5088048ca04e332f8d46736f6ac55d62ffb22ee00f13054865c464736f6c63430008110033";
737
775
 
738
776
  type VotingEscrowPendleMainchainConstructorParams =
739
777
  | [signer?: Signer]
@@ -756,22 +794,26 @@ export class VotingEscrowPendleMainchain__factory extends ContractFactory {
756
794
  deploy(
757
795
  _pendle: string,
758
796
  _pendleMsgSendEndpoint: string,
797
+ initialApproxDestinationGas: BigNumberish,
759
798
  overrides?: Overrides & { from?: string | Promise<string> }
760
799
  ): Promise<VotingEscrowPendleMainchain> {
761
800
  return super.deploy(
762
801
  _pendle,
763
802
  _pendleMsgSendEndpoint,
803
+ initialApproxDestinationGas,
764
804
  overrides || {}
765
805
  ) as Promise<VotingEscrowPendleMainchain>;
766
806
  }
767
807
  getDeployTransaction(
768
808
  _pendle: string,
769
809
  _pendleMsgSendEndpoint: string,
810
+ initialApproxDestinationGas: BigNumberish,
770
811
  overrides?: Overrides & { from?: string | Promise<string> }
771
812
  ): TransactionRequest {
772
813
  return super.getDeployTransaction(
773
814
  _pendle,
774
815
  _pendleMsgSendEndpoint,
816
+ initialApproxDestinationGas,
775
817
  overrides || {}
776
818
  );
777
819
  }
@@ -367,7 +367,7 @@ const _abi = [
367
367
  ];
368
368
 
369
369
  const _bytecode =
370
- "0x60a06040523480156200001157600080fd5b50604051620010b8380380620010b8833981016040819052620000349162000247565b806200004a6200016160201b6200065b1760201c565b600180546001600160801b0319166001600160801b03929092169190911790556001600160a01b0316608052606854600160a81b900460ff166200009c57606854600160a01b900460ff1615620000a6565b620000a662000173565b6200010f5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084015b60405180910390fd5b606854600160a81b900460ff161580156200013a576068805461ffff60a01b191661010160a01b1790555b6200014462000191565b801562000159576068805460ff60a81b191690555b5050620002e8565b60006200016e4262000214565b905090565b60006200018b306200023860201b620006661760201c565b15905090565b606854600160a81b900460ff16620002005760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b606482015260840162000106565b606780546001600160a01b03191633179055565b600062093a8062000226818462000279565b620002329190620002ae565b92915050565b6001600160a01b03163b151590565b6000602082840312156200025a57600080fd5b81516001600160a01b03811681146200027257600080fd5b9392505050565b60006001600160801b0383811680620002a257634e487b7160e01b600052601260045260246000fd5b92169190910492915050565b6001600160801b03818116838216028082169190828114620002e057634e487b7160e01b600052601160045260246000fd5b505092915050565b608051610dad6200030b600039600081816101e701526105880152610dad6000f3fe6080604052600436106100c35760003560e01c8063078dfbe7146100c857806330d981af146100ea5780633ff032071461011c5780634e71e0c81461013357806370a0823114610148578063769b1ebc14610168578063814b2cac146101885780638da5cb5b146101a8578063af5a8f7b146101d5578063cb6b4f3c14610209578063e0299bf51461026a578063e268b3a41461027d578063e30c39781461029d578063ef1c243a146102bd578063f4359ce51461011c578063fa78668f146102d2575b600080fd5b3480156100d457600080fd5b506100e86100e336600461096e565b6102ea565b005b3480156100f657600080fd5b506100ff6103f1565b6040516001600160801b0390911681526020015b60405180910390f35b34801561012857600080fd5b506100ff62093a8081565b34801561013f57600080fd5b506100e8610400565b34801561015457600080fd5b506100ff6101633660046109b3565b6104ac565b34801561017457600080fd5b506100e86101833660046109d0565b6104e7565b34801561019457600080fd5b506001546100ff906001600160801b031681565b3480156101b457600080fd5b506067546101c8906001600160a01b031681565b6040516101139190610a09565b3480156101e157600080fd5b506101c87f000000000000000000000000000000000000000000000000000000000000000081565b34801561021557600080fd5b5061024a6102243660046109b3565b6002602052600090815260409020546001600160801b0380821691600160801b90041682565b604080516001600160801b03938416815292909116602083015201610113565b6100e8610278366004610a1d565b61057d565b34801561028957600080fd5b5061024a6102983660046109b3565b61060b565b3480156102a957600080fd5b506068546101c8906001600160a01b031681565b3480156102c957600080fd5b506100ff610628565b3480156102de57600080fd5b506100ff6303bfc40081565b6067546001600160a01b0316331461031d5760405162461bcd60e51b815260040161031490610a8e565b60405180910390fd5b81156103cf576001600160a01b0383161515806103375750805b61037b5760405162461bcd60e51b81526020600482015260156024820152744f776e61626c653a207a65726f206164647265737360581b6044820152606401610314565b6067546040516001600160a01b03808616921690600080516020610d5883398151915290600090a3606780546001600160a01b0385166001600160a01b031991821617909155606880549091169055505050565b606880546001600160a01b0385166001600160a01b0319909116179055505050565b60006103fb610628565b905090565b6068546001600160a01b031633811461045b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c657220213d2070656e64696e67206f776e65726044820152606401610314565b6067546040516001600160a01b03808416921690600080516020610d5883398151915290600090a3606780546001600160a01b039092166001600160a01b0319928316179055606880549091169055565b6001600160a01b03808216600090815260996020526040812054909116806104de576104d783610675565b9392505050565b6104d781610675565b6067546001600160a01b031633146105115760405162461bcd60e51b815260040161031490610a8e565b6001600160a01b0382811660008181526099602090815260409182902080546001600160a01b031916948616948517905581519384528301919091527f8d268954369e04c7941c3a7876f40c618eb97919add31202c9a235e75e84cf1b91015b60405180910390a15050565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146105c85733604051632b5c157560e11b81526004016103149190610a09565b61060782828080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506106ce92505050565b5050565b6000806106166103f1565b61061f846104ac565b91509150915091565b60408051808201909152600080546001600160801b038082168452600160801b909104166020830152906103fb9061070d565b60006103fb4261072f565b6001600160a01b03163b151590565b6001600160a01b03811660009081526002602090815260408083208151808301909252546001600160801b038082168352600160801b90910416918101919091526106c8906106c390610749565b61070d565b92915050565b6000806000838060200190518101906106e79190610b7d565b9250925092506106f7838361079b565b805115610707576107078161082b565b50505050565b6000610718826108bd565b1561072557506000919050565b6106c882426108ee565b600062093a8061073f8184610c61565b6106c89190610c95565b6040805180820190915260008082526020820152815161076e906303bfc40090610c61565b6001600160801b0316602080830182905283015161078b91610c95565b6001600160801b03168152919050565b6107a48261072f565b6001600160801b0316826001600160801b0316146107c4576107c4610cc0565b600180546001600160801b038085166001600160801b031990921691909117909155815160208301518216600160801b029116176000556040517f460b96294ff8de4eea3be3fb4fac9f978cffe83c7cc3140a4bfe0bedba26b92f90610571908390610cd6565b600080828060200190518101906108429190610cfa565b6001600160a01b0382166000908152600260209081526040918290208351918401516001600160801b03908116600160801b0292169190911790555191935091507f776960a80ccfa09c52229b183bf0ef49b26a5d15f9ae2c1c0f780a450d3b2a9f906108b0908390610cd6565b60405180910390a1505050565b600081600001516001600160801b03164283602001516108dd9190610c95565b6001600160801b0316101592915050565b600082600001516001600160801b031682846020015161090e9190610c95565b6001600160801b03161115610925575060006106c8565b8183602001516109359190610c95565b83516104d79190610d30565b6001600160a01b038116811461095657600080fd5b50565b8035801515811461096957600080fd5b919050565b60008060006060848603121561098357600080fd5b833561098e81610941565b925061099c60208501610959565b91506109aa60408501610959565b90509250925092565b6000602082840312156109c557600080fd5b81356104d781610941565b600080604083850312156109e357600080fd5b82356109ee81610941565b915060208301356109fe81610941565b809150509250929050565b6001600160a01b0391909116815260200190565b60008060208385031215610a3057600080fd5b82356001600160401b0380821115610a4757600080fd5b818501915085601f830112610a5b57600080fd5b813581811115610a6a57600080fd5b866020828501011115610a7c57600080fd5b60209290920196919550909350505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b80516001600160801b038116811461096957600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715610b1857610b18610ada565b604052919050565b600060408284031215610b3257600080fd5b604080519081016001600160401b0381118282101715610b5457610b54610ada565b604052905080610b6383610ac3565b8152610b7160208401610ac3565b60208201525092915050565b600080600060808486031215610b9257600080fd5b610b9b84610ac3565b92506020610bab86828701610b20565b60608601519093506001600160401b0380821115610bc857600080fd5b818701915087601f830112610bdc57600080fd5b815181811115610bee57610bee610ada565b610c00601f8201601f19168501610af0565b91508082528884828501011115610c1657600080fd5b60005b81811015610c34578381018501518382018601528401610c19565b506000848284010152508093505050509250925092565b634e487b7160e01b600052601160045260246000fd5b60006001600160801b0383811680610c8957634e487b7160e01b600052601260045260246000fd5b92169190910492915050565b6001600160801b03818116838216028082169190828114610cb857610cb8610c4b565b505092915050565b634e487b7160e01b600052600160045260246000fd5b604081016106c8828480516001600160801b03908116835260209182015116910152565b60008060608385031215610d0d57600080fd5b8251610d1881610941565b9150610d278460208501610b20565b90509250929050565b6001600160801b03828116828216039080821115610d5057610d50610c4b565b509291505056fe8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0a264697066735822122050fe5bbfaf47e948737b0e6f2d215036dc8dee9d0cfe740a5138a437c72ce3b064736f6c63430008110033";
370
+ "0x60a06040523480156200001157600080fd5b50604051620010b8380380620010b8833981016040819052620000349162000247565b806200004a6200016160201b6200065b1760201c565b600180546001600160801b0319166001600160801b03929092169190911790556001600160a01b0316608052606854600160a81b900460ff166200009c57606854600160a01b900460ff1615620000a6565b620000a662000173565b6200010f5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084015b60405180910390fd5b606854600160a81b900460ff161580156200013a576068805461ffff60a01b191661010160a01b1790555b6200014462000191565b801562000159576068805460ff60a81b191690555b5050620002e8565b60006200016e4262000214565b905090565b60006200018b306200023860201b620006661760201c565b15905090565b606854600160a81b900460ff16620002005760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b606482015260840162000106565b606780546001600160a01b03191633179055565b600062093a8062000226818462000279565b620002329190620002ae565b92915050565b6001600160a01b03163b151590565b6000602082840312156200025a57600080fd5b81516001600160a01b03811681146200027257600080fd5b9392505050565b60006001600160801b0383811680620002a257634e487b7160e01b600052601260045260246000fd5b92169190910492915050565b6001600160801b03818116838216028082169190828114620002e057634e487b7160e01b600052601160045260246000fd5b505092915050565b608051610dad6200030b600039600081816101e701526105880152610dad6000f3fe6080604052600436106100c35760003560e01c8063078dfbe7146100c857806330d981af146100ea5780633ff032071461011c5780634e71e0c81461013357806370a0823114610148578063769b1ebc14610168578063814b2cac146101885780638da5cb5b146101a8578063af5a8f7b146101d5578063cb6b4f3c14610209578063e0299bf51461026a578063e268b3a41461027d578063e30c39781461029d578063ef1c243a146102bd578063f4359ce51461011c578063fa78668f146102d2575b600080fd5b3480156100d457600080fd5b506100e86100e336600461096e565b6102ea565b005b3480156100f657600080fd5b506100ff6103f1565b6040516001600160801b0390911681526020015b60405180910390f35b34801561012857600080fd5b506100ff62093a8081565b34801561013f57600080fd5b506100e8610400565b34801561015457600080fd5b506100ff6101633660046109b3565b6104ac565b34801561017457600080fd5b506100e86101833660046109d0565b6104e7565b34801561019457600080fd5b506001546100ff906001600160801b031681565b3480156101b457600080fd5b506067546101c8906001600160a01b031681565b6040516101139190610a09565b3480156101e157600080fd5b506101c87f000000000000000000000000000000000000000000000000000000000000000081565b34801561021557600080fd5b5061024a6102243660046109b3565b6002602052600090815260409020546001600160801b0380821691600160801b90041682565b604080516001600160801b03938416815292909116602083015201610113565b6100e8610278366004610a1d565b61057d565b34801561028957600080fd5b5061024a6102983660046109b3565b61060b565b3480156102a957600080fd5b506068546101c8906001600160a01b031681565b3480156102c957600080fd5b506100ff610628565b3480156102de57600080fd5b506100ff6303bfc40081565b6067546001600160a01b0316331461031d5760405162461bcd60e51b815260040161031490610a8e565b60405180910390fd5b81156103cf576001600160a01b0383161515806103375750805b61037b5760405162461bcd60e51b81526020600482015260156024820152744f776e61626c653a207a65726f206164647265737360581b6044820152606401610314565b6067546040516001600160a01b03808616921690600080516020610d5883398151915290600090a3606780546001600160a01b0385166001600160a01b031991821617909155606880549091169055505050565b606880546001600160a01b0385166001600160a01b0319909116179055505050565b60006103fb610628565b905090565b6068546001600160a01b031633811461045b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c657220213d2070656e64696e67206f776e65726044820152606401610314565b6067546040516001600160a01b03808416921690600080516020610d5883398151915290600090a3606780546001600160a01b039092166001600160a01b0319928316179055606880549091169055565b6001600160a01b03808216600090815260996020526040812054909116806104de576104d783610675565b9392505050565b6104d781610675565b6067546001600160a01b031633146105115760405162461bcd60e51b815260040161031490610a8e565b6001600160a01b0382811660008181526099602090815260409182902080546001600160a01b031916948616948517905581519384528301919091527f8d268954369e04c7941c3a7876f40c618eb97919add31202c9a235e75e84cf1b91015b60405180910390a15050565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146105c85733604051632b5c157560e11b81526004016103149190610a09565b61060782828080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506106ce92505050565b5050565b6000806106166103f1565b61061f846104ac565b91509150915091565b60408051808201909152600080546001600160801b038082168452600160801b909104166020830152906103fb9061070d565b60006103fb4261072f565b6001600160a01b03163b151590565b6001600160a01b03811660009081526002602090815260408083208151808301909252546001600160801b038082168352600160801b90910416918101919091526106c8906106c390610749565b61070d565b92915050565b6000806000838060200190518101906106e79190610b7d565b9250925092506106f7838361079b565b805115610707576107078161082b565b50505050565b6000610718826108bd565b1561072557506000919050565b6106c882426108ee565b600062093a8061073f8184610c61565b6106c89190610c95565b6040805180820190915260008082526020820152815161076e906303bfc40090610c61565b6001600160801b0316602080830182905283015161078b91610c95565b6001600160801b03168152919050565b6107a48261072f565b6001600160801b0316826001600160801b0316146107c4576107c4610cc0565b600180546001600160801b038085166001600160801b031990921691909117909155815160208301518216600160801b029116176000556040517f460b96294ff8de4eea3be3fb4fac9f978cffe83c7cc3140a4bfe0bedba26b92f90610571908390610cd6565b600080828060200190518101906108429190610cfa565b6001600160a01b0382166000908152600260209081526040918290208351918401516001600160801b03908116600160801b0292169190911790555191935091507f776960a80ccfa09c52229b183bf0ef49b26a5d15f9ae2c1c0f780a450d3b2a9f906108b0908390610cd6565b60405180910390a1505050565b600081600001516001600160801b03164283602001516108dd9190610c95565b6001600160801b0316101592915050565b600082600001516001600160801b031682846020015161090e9190610c95565b6001600160801b03161115610925575060006106c8565b8183602001516109359190610c95565b83516104d79190610d30565b6001600160a01b038116811461095657600080fd5b50565b8035801515811461096957600080fd5b919050565b60008060006060848603121561098357600080fd5b833561098e81610941565b925061099c60208501610959565b91506109aa60408501610959565b90509250925092565b6000602082840312156109c557600080fd5b81356104d781610941565b600080604083850312156109e357600080fd5b82356109ee81610941565b915060208301356109fe81610941565b809150509250929050565b6001600160a01b0391909116815260200190565b60008060208385031215610a3057600080fd5b82356001600160401b0380821115610a4757600080fd5b818501915085601f830112610a5b57600080fd5b813581811115610a6a57600080fd5b866020828501011115610a7c57600080fd5b60209290920196919550909350505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b80516001600160801b038116811461096957600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715610b1857610b18610ada565b604052919050565b600060408284031215610b3257600080fd5b604080519081016001600160401b0381118282101715610b5457610b54610ada565b604052905080610b6383610ac3565b8152610b7160208401610ac3565b60208201525092915050565b600080600060808486031215610b9257600080fd5b610b9b84610ac3565b92506020610bab86828701610b20565b60608601519093506001600160401b0380821115610bc857600080fd5b818701915087601f830112610bdc57600080fd5b815181811115610bee57610bee610ada565b610c00601f8201601f19168501610af0565b91508082528884828501011115610c1657600080fd5b60005b81811015610c34578381018501518382018601528401610c19565b506000848284010152508093505050509250925092565b634e487b7160e01b600052601160045260246000fd5b60006001600160801b0383811680610c8957634e487b7160e01b600052601260045260246000fd5b92169190910492915050565b6001600160801b03818116838216028082169190828114610cb857610cb8610c4b565b505092915050565b634e487b7160e01b600052600160045260246000fd5b604081016106c8828480516001600160801b03908116835260209182015116910152565b60008060608385031215610d0d57600080fd5b8251610d1881610941565b9150610d278460208501610b20565b90509250929050565b6001600160801b03828116828216039080821115610d5057610d50610c4b565b509291505056fe8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0a26469706673582212202159799e0f2a26e35cd573c70d1eed39219fa11516994e0b3c98ccae5b42cdfc64736f6c63430008110033";
371
371
 
372
372
  type VotingEscrowPendleSidechainConstructorParams =
373
373
  | [signer?: Signer]
@@ -192,14 +192,6 @@ declare module "hardhat/types/runtime" {
192
192
  name: "IBoringOwnableUpgradeable",
193
193
  signerOrOptions?: ethers.Signer | FactoryOptions
194
194
  ): Promise<Contracts.IBoringOwnableUpgradeable__factory>;
195
- getContractFactory(
196
- name: "ICelerMessageBus",
197
- signerOrOptions?: ethers.Signer | FactoryOptions
198
- ): Promise<Contracts.ICelerMessageBus__factory>;
199
- getContractFactory(
200
- name: "ICelerMessageReceiverApp",
201
- signerOrOptions?: ethers.Signer | FactoryOptions
202
- ): Promise<Contracts.ICelerMessageReceiverApp__factory>;
203
195
  getContractFactory(
204
196
  name: "IERC4626",
205
197
  signerOrOptions?: ethers.Signer | FactoryOptions
@@ -212,6 +204,14 @@ declare module "hardhat/types/runtime" {
212
204
  name: "IEulerMarkets",
213
205
  signerOrOptions?: ethers.Signer | FactoryOptions
214
206
  ): Promise<Contracts.IEulerMarkets__factory>;
207
+ getContractFactory(
208
+ name: "ILayerZeroEndpoint",
209
+ signerOrOptions?: ethers.Signer | FactoryOptions
210
+ ): Promise<Contracts.ILayerZeroEndpoint__factory>;
211
+ getContractFactory(
212
+ name: "ILayerZeroReceiver",
213
+ signerOrOptions?: ethers.Signer | FactoryOptions
214
+ ): Promise<Contracts.ILayerZeroReceiver__factory>;
215
215
  getContractFactory(
216
216
  name: "IPActionAddRemoveLiq",
217
217
  signerOrOptions?: ethers.Signer | FactoryOptions
@@ -448,6 +448,10 @@ declare module "hardhat/types/runtime" {
448
448
  name: "BaseSplitCodeFactoryContract",
449
449
  signerOrOptions?: ethers.Signer | FactoryOptions
450
450
  ): Promise<Contracts.BaseSplitCodeFactoryContract__factory>;
451
+ getContractFactory(
452
+ name: "ImplicitSwapfeeContract",
453
+ signerOrOptions?: ethers.Signer | FactoryOptions
454
+ ): Promise<Contracts.ImplicitSwapfeeContract__factory>;
451
455
  getContractFactory(
452
456
  name: "MarketMathStatic",
453
457
  signerOrOptions?: ethers.Signer | FactoryOptions
@@ -730,16 +734,6 @@ declare module "hardhat/types/runtime" {
730
734
  address: string,
731
735
  signer?: ethers.Signer
732
736
  ): Promise<Contracts.IBoringOwnableUpgradeable>;
733
- getContractAt(
734
- name: "ICelerMessageBus",
735
- address: string,
736
- signer?: ethers.Signer
737
- ): Promise<Contracts.ICelerMessageBus>;
738
- getContractAt(
739
- name: "ICelerMessageReceiverApp",
740
- address: string,
741
- signer?: ethers.Signer
742
- ): Promise<Contracts.ICelerMessageReceiverApp>;
743
737
  getContractAt(
744
738
  name: "IERC4626",
745
739
  address: string,
@@ -755,6 +749,16 @@ declare module "hardhat/types/runtime" {
755
749
  address: string,
756
750
  signer?: ethers.Signer
757
751
  ): Promise<Contracts.IEulerMarkets>;
752
+ getContractAt(
753
+ name: "ILayerZeroEndpoint",
754
+ address: string,
755
+ signer?: ethers.Signer
756
+ ): Promise<Contracts.ILayerZeroEndpoint>;
757
+ getContractAt(
758
+ name: "ILayerZeroReceiver",
759
+ address: string,
760
+ signer?: ethers.Signer
761
+ ): Promise<Contracts.ILayerZeroReceiver>;
758
762
  getContractAt(
759
763
  name: "IPActionAddRemoveLiq",
760
764
  address: string,
@@ -1050,6 +1054,11 @@ declare module "hardhat/types/runtime" {
1050
1054
  address: string,
1051
1055
  signer?: ethers.Signer
1052
1056
  ): Promise<Contracts.BaseSplitCodeFactoryContract>;
1057
+ getContractAt(
1058
+ name: "ImplicitSwapfeeContract",
1059
+ address: string,
1060
+ signer?: ethers.Signer
1061
+ ): Promise<Contracts.ImplicitSwapfeeContract>;
1053
1062
  getContractAt(
1054
1063
  name: "MarketMathStatic",
1055
1064
  address: string,
@@ -46,11 +46,11 @@ export type { IAToken } from "./IAToken";
46
46
  export type { IBenQiComptroller } from "./IBenQiComptroller";
47
47
  export type { IBenQiInterestRateModel } from "./IBenQiInterestRateModel";
48
48
  export type { IBoringOwnableUpgradeable } from "./IBoringOwnableUpgradeable";
49
- export type { ICelerMessageBus } from "./ICelerMessageBus";
50
- export type { ICelerMessageReceiverApp } from "./ICelerMessageReceiverApp";
51
49
  export type { IERC4626 } from "./IERC4626";
52
50
  export type { IEulerEToken } from "./IEulerEToken";
53
51
  export type { IEulerMarkets } from "./IEulerMarkets";
52
+ export type { ILayerZeroEndpoint } from "./ILayerZeroEndpoint";
53
+ export type { ILayerZeroReceiver } from "./ILayerZeroReceiver";
54
54
  export type { IPActionAddRemoveLiq } from "./IPActionAddRemoveLiq";
55
55
  export type { IPActionMintRedeem } from "./IPActionMintRedeem";
56
56
  export type { IPActionMisc } from "./IPActionMisc";
@@ -110,6 +110,7 @@ export type { VotingEscrowPendleMainchain } from "./VotingEscrowPendleMainchain"
110
110
  export type { VotingEscrowPendleSidechain } from "./VotingEscrowPendleSidechain";
111
111
  export type { VotingEscrowTokenBase } from "./VotingEscrowTokenBase";
112
112
  export type { BaseSplitCodeFactoryContract } from "./BaseSplitCodeFactoryContract";
113
+ export type { ImplicitSwapfeeContract } from "./ImplicitSwapfeeContract";
113
114
  export type { MarketMathStatic } from "./MarketMathStatic";
114
115
  export type { RouterStatic } from "./RouterStatic";
115
116
  export type { ActionAddRemoveLiq } from "./ActionAddRemoveLiq";
@@ -170,11 +171,11 @@ export { IAToken__factory } from "./factories/IAToken__factory";
170
171
  export { IBenQiComptroller__factory } from "./factories/IBenQiComptroller__factory";
171
172
  export { IBenQiInterestRateModel__factory } from "./factories/IBenQiInterestRateModel__factory";
172
173
  export { IBoringOwnableUpgradeable__factory } from "./factories/IBoringOwnableUpgradeable__factory";
173
- export { ICelerMessageBus__factory } from "./factories/ICelerMessageBus__factory";
174
- export { ICelerMessageReceiverApp__factory } from "./factories/ICelerMessageReceiverApp__factory";
175
174
  export { IERC4626__factory } from "./factories/IERC4626__factory";
176
175
  export { IEulerEToken__factory } from "./factories/IEulerEToken__factory";
177
176
  export { IEulerMarkets__factory } from "./factories/IEulerMarkets__factory";
177
+ export { ILayerZeroEndpoint__factory } from "./factories/ILayerZeroEndpoint__factory";
178
+ export { ILayerZeroReceiver__factory } from "./factories/ILayerZeroReceiver__factory";
178
179
  export { IPActionAddRemoveLiq__factory } from "./factories/IPActionAddRemoveLiq__factory";
179
180
  export { IPActionMintRedeem__factory } from "./factories/IPActionMintRedeem__factory";
180
181
  export { IPActionMisc__factory } from "./factories/IPActionMisc__factory";
@@ -234,6 +235,7 @@ export { VotingEscrowPendleMainchain__factory } from "./factories/VotingEscrowPe
234
235
  export { VotingEscrowPendleSidechain__factory } from "./factories/VotingEscrowPendleSidechain__factory";
235
236
  export { VotingEscrowTokenBase__factory } from "./factories/VotingEscrowTokenBase__factory";
236
237
  export { BaseSplitCodeFactoryContract__factory } from "./factories/BaseSplitCodeFactoryContract__factory";
238
+ export { ImplicitSwapfeeContract__factory } from "./factories/ImplicitSwapfeeContract__factory";
237
239
  export { MarketMathStatic__factory } from "./factories/MarketMathStatic__factory";
238
240
  export { RouterStatic__factory } from "./factories/RouterStatic__factory";
239
241
  export { ActionAddRemoveLiq__factory } from "./factories/ActionAddRemoveLiq__factory";
@@ -1,4 +0,0 @@
1
- {
2
- "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/d69e41af484ea90333c32629bab9bd77.json"
4
- }
@@ -1,53 +0,0 @@
1
- {
2
- "_format": "hh-sol-artifact-1",
3
- "contractName": "ICelerMessageBus",
4
- "sourceName": "contracts/interfaces/ICelerMessageBus.sol",
5
- "abi": [
6
- {
7
- "inputs": [
8
- {
9
- "internalType": "bytes",
10
- "name": "_message",
11
- "type": "bytes"
12
- }
13
- ],
14
- "name": "calcFee",
15
- "outputs": [
16
- {
17
- "internalType": "uint256",
18
- "name": "",
19
- "type": "uint256"
20
- }
21
- ],
22
- "stateMutability": "view",
23
- "type": "function"
24
- },
25
- {
26
- "inputs": [
27
- {
28
- "internalType": "address",
29
- "name": "_receiver",
30
- "type": "address"
31
- },
32
- {
33
- "internalType": "uint256",
34
- "name": "_dstChainId",
35
- "type": "uint256"
36
- },
37
- {
38
- "internalType": "bytes",
39
- "name": "_message",
40
- "type": "bytes"
41
- }
42
- ],
43
- "name": "sendMessage",
44
- "outputs": [],
45
- "stateMutability": "payable",
46
- "type": "function"
47
- }
48
- ],
49
- "bytecode": "0x",
50
- "deployedBytecode": "0x",
51
- "linkReferences": {},
52
- "deployedLinkReferences": {}
53
- }
@@ -1,4 +0,0 @@
1
- {
2
- "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/d69e41af484ea90333c32629bab9bd77.json"
4
- }
@@ -1,45 +0,0 @@
1
- {
2
- "_format": "hh-sol-artifact-1",
3
- "contractName": "ICelerMessageReceiverApp",
4
- "sourceName": "contracts/interfaces/ICelerMessageReceiverApp.sol",
5
- "abi": [
6
- {
7
- "inputs": [
8
- {
9
- "internalType": "address",
10
- "name": "_sender",
11
- "type": "address"
12
- },
13
- {
14
- "internalType": "uint64",
15
- "name": "_srcChainId",
16
- "type": "uint64"
17
- },
18
- {
19
- "internalType": "bytes",
20
- "name": "_message",
21
- "type": "bytes"
22
- },
23
- {
24
- "internalType": "address",
25
- "name": "_executor",
26
- "type": "address"
27
- }
28
- ],
29
- "name": "executeMessage",
30
- "outputs": [
31
- {
32
- "internalType": "enum ICelerMessageReceiverApp.ExecutionStatus",
33
- "name": "",
34
- "type": "uint8"
35
- }
36
- ],
37
- "stateMutability": "payable",
38
- "type": "function"
39
- }
40
- ],
41
- "bytecode": "0x",
42
- "deployedBytecode": "0x",
43
- "linkReferences": {},
44
- "deployedLinkReferences": {}
45
- }
@@ -1,133 +0,0 @@
1
- // SPDX-License-Identifier: MIT OR Apache-2.0
2
- pragma solidity >=0.7.6;
3
-
4
- library ExcessivelySafeCall {
5
- uint256 constant LOW_28_MASK =
6
- 0x00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff;
7
-
8
- /// @notice Use when you _really_ really _really_ don't trust the called
9
- /// contract. This prevents the called contract from causing reversion of
10
- /// the caller in as many ways as we can.
11
- /// @dev The main difference between this and a solidity low-level call is
12
- /// that we limit the number of bytes that the callee can cause to be
13
- /// copied to caller memory. This prevents stupid things like malicious
14
- /// contracts returning 10,000,000 bytes causing a local OOG when copying
15
- /// to memory.
16
- /// @param _target The address to call
17
- /// @param _gas The amount of gas to forward to the remote contract
18
- /// @param _maxCopy The maximum number of bytes of returndata to copy
19
- /// to memory.
20
- /// @param _calldata The data to send to the remote contract
21
- /// @return success and returndata, as `.call()`. Returndata is capped to
22
- /// `_maxCopy` bytes.
23
- function excessivelySafeCall(
24
- address _target,
25
- uint256 _gas,
26
- uint16 _maxCopy,
27
- bytes memory _calldata
28
- ) internal returns (bool, bytes memory) {
29
- // set up for assembly call
30
- uint256 _toCopy;
31
- bool _success;
32
- bytes memory _returnData = new bytes(_maxCopy);
33
- // dispatch message to recipient
34
- // by assembly calling "handle" function
35
- // we call via assembly to avoid memcopying a very large returndata
36
- // returned by a malicious contract
37
- assembly {
38
- _success := call(
39
- _gas, // gas
40
- _target, // recipient
41
- 0, // ether value
42
- add(_calldata, 0x20), // inloc
43
- mload(_calldata), // inlen
44
- 0, // outloc
45
- 0 // outlen
46
- )
47
- // limit our copy to 256 bytes
48
- _toCopy := returndatasize()
49
- if gt(_toCopy, _maxCopy) {
50
- _toCopy := _maxCopy
51
- }
52
- // Store the length of the copied bytes
53
- mstore(_returnData, _toCopy)
54
- // copy the bytes from returndata[0:_toCopy]
55
- returndatacopy(add(_returnData, 0x20), 0, _toCopy)
56
- }
57
- return (_success, _returnData);
58
- }
59
-
60
- /// @notice Use when you _really_ really _really_ don't trust the called
61
- /// contract. This prevents the called contract from causing reversion of
62
- /// the caller in as many ways as we can.
63
- /// @dev The main difference between this and a solidity low-level call is
64
- /// that we limit the number of bytes that the callee can cause to be
65
- /// copied to caller memory. This prevents stupid things like malicious
66
- /// contracts returning 10,000,000 bytes causing a local OOG when copying
67
- /// to memory.
68
- /// @param _target The address to call
69
- /// @param _gas The amount of gas to forward to the remote contract
70
- /// @param _maxCopy The maximum number of bytes of returndata to copy
71
- /// to memory.
72
- /// @param _calldata The data to send to the remote contract
73
- /// @return success and returndata, as `.call()`. Returndata is capped to
74
- /// `_maxCopy` bytes.
75
- function excessivelySafeStaticCall(
76
- address _target,
77
- uint256 _gas,
78
- uint16 _maxCopy,
79
- bytes memory _calldata
80
- ) internal view returns (bool, bytes memory) {
81
- // set up for assembly call
82
- uint256 _toCopy;
83
- bool _success;
84
- bytes memory _returnData = new bytes(_maxCopy);
85
- // dispatch message to recipient
86
- // by assembly calling "handle" function
87
- // we call via assembly to avoid memcopying a very large returndata
88
- // returned by a malicious contract
89
- assembly {
90
- _success := staticcall(
91
- _gas, // gas
92
- _target, // recipient
93
- add(_calldata, 0x20), // inloc
94
- mload(_calldata), // inlen
95
- 0, // outloc
96
- 0 // outlen
97
- )
98
- // limit our copy to 256 bytes
99
- _toCopy := returndatasize()
100
- if gt(_toCopy, _maxCopy) {
101
- _toCopy := _maxCopy
102
- }
103
- // Store the length of the copied bytes
104
- mstore(_returnData, _toCopy)
105
- // copy the bytes from returndata[0:_toCopy]
106
- returndatacopy(add(_returnData, 0x20), 0, _toCopy)
107
- }
108
- return (_success, _returnData);
109
- }
110
-
111
- /**
112
- * @notice Swaps function selectors in encoded contract calls
113
- * @dev Allows reuse of encoded calldata for functions with identical
114
- * argument types but different names. It simply swaps out the first 4 bytes
115
- * for the new selector. This function modifies memory in place, and should
116
- * only be used with caution.
117
- * @param _newSelector The new 4-byte selector
118
- * @param _buf The encoded contract args
119
- */
120
- function swapSelector(bytes4 _newSelector, bytes memory _buf) internal pure {
121
- require(_buf.length >= 4);
122
- uint256 _mask = LOW_28_MASK;
123
- assembly {
124
- // load the first word of
125
- let _word := mload(add(_buf, 0x20))
126
- // mask out the top 4 bytes
127
- // /x
128
- _word := and(_word, _mask)
129
- _word := or(_newSelector, _word)
130
- mstore(add(_buf, 0x20), _word)
131
- }
132
- }
133
- }