@pendle/core-v2 3.0.0-beta-9 → 3.0.0-beta-10

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 (369) hide show
  1. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.dbg.json +1 -1
  2. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.dbg.json +1 -1
  3. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/ExcessivelySafeCall.sol/ExcessivelySafeCall.dbg.json +1 -1
  4. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.dbg.json +1 -1
  5. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
  6. package/build/artifacts/contracts/LiquidityMining/PendleMerkleDistributor.sol/PendleMerkleDistributor.dbg.json +4 -0
  7. package/build/artifacts/contracts/LiquidityMining/PendleMerkleDistributor.sol/PendleMerkleDistributor.json +426 -0
  8. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
  9. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
  10. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
  11. package/build/artifacts/contracts/LiquidityMining/libraries/WeekMath.sol/WeekMath.dbg.json +1 -1
  12. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
  13. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
  14. package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
  15. package/build/artifacts/contracts/core/Market/v2/PendleGaugeV2.sol/PendleGaugeV2.dbg.json +1 -1
  16. package/build/artifacts/contracts/core/RewardManager/RewardManager.sol/RewardManager.dbg.json +1 -1
  17. package/build/artifacts/contracts/core/RewardManager/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
  18. package/build/artifacts/contracts/core/StandardizedYield/PYIndex.sol/PYIndexLib.dbg.json +1 -1
  19. package/build/artifacts/contracts/core/StandardizedYield/SYBase.sol/SYBase.dbg.json +1 -1
  20. package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.dbg.json +1 -1
  21. package/build/artifacts/contracts/core/StandardizedYield/SYUtils.sol/SYUtils.dbg.json +1 -1
  22. package/build/artifacts/contracts/core/StandardizedYield/StEthHelper.sol/StEthHelper.dbg.json +1 -1
  23. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStableMath.sol/ComposableStableMath.dbg.json +1 -1
  24. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStablePreview.sol/ComposableStablePreview.dbg.json +1 -1
  25. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/FixedPoint.sol/FixedPoint.dbg.json +1 -1
  26. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/BbAPoolHelper.sol/BbAPoolHelper.dbg.json +1 -1
  27. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/BbAPoolHelper.sol/BbAWethHelper.dbg.json +1 -1
  28. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/LinearMath.sol/LinearMath.dbg.json +1 -1
  29. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/LinearPreview.sol/LinearPreview.dbg.json +1 -1
  30. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStableMath.sol/MetaStableMath.dbg.json +1 -1
  31. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSYV2.sol/PendleAuraBalancerStableLPSYV2.dbg.json +1 -1
  32. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePoolUserData.sol/StablePoolUserData.dbg.json +1 -1
  33. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePreviewBase.sol/StablePreviewBase.dbg.json +1 -1
  34. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotRewardHelper.sol/CamelotRewardHelper.dbg.json +1 -1
  35. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatileCommon.sol/CamelotV1VolatileCommon.dbg.json +1 -1
  36. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatileLpHelper.sol/CamelotV1VolatileLpHelper.dbg.json +1 -1
  37. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/Curve3CrvPoolHelper.sol/Curve3CrvPoolHelper.dbg.json +1 -1
  38. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/CurveFraxUsdcPoolHelper.sol/CurveFraxUsdcPoolHelper.dbg.json +1 -1
  39. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/CurveUsdd3CrvPoolHelper.sol/CurveUsdd3CrvPoolHelper.dbg.json +1 -1
  40. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/PendleConvexLPSY.sol/PendleConvexLPSY.dbg.json +1 -1
  41. package/build/artifacts/contracts/core/StandardizedYield/implementations/Flux/FluxTokenLib.sol/FluxTokenLib.dbg.json +1 -1
  42. package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/GLPPreviewHelper.sol/GLPPreviewHelper.dbg.json +1 -1
  43. package/build/artifacts/contracts/core/StandardizedYield/implementations/Thena/ThenaLpHelper.sol/ThenaLpHelper.dbg.json +1 -1
  44. package/build/artifacts/contracts/core/StandardizedYield/implementations/Thena/ThenaMath.sol/ThenaMath.dbg.json +1 -1
  45. package/build/artifacts/contracts/core/erc20/PendleERC20.sol/PendleERC20.dbg.json +1 -1
  46. package/build/artifacts/contracts/core/erc20/PendleERC20Permit.sol/PendleERC20Permit.dbg.json +1 -1
  47. package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.dbg.json +1 -1
  48. package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/BaseSplitCodeFactory.dbg.json +1 -1
  49. package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/CodeDeployer.dbg.json +1 -1
  50. package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeable.dbg.json +1 -1
  51. package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeableData.dbg.json +1 -1
  52. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
  53. package/build/artifacts/contracts/core/libraries/ExpiryUtilsLib.sol/ExpiryUtils.dbg.json +1 -1
  54. package/build/artifacts/contracts/core/libraries/MiniHelpers.sol/MiniHelpers.dbg.json +1 -1
  55. package/build/artifacts/contracts/core/libraries/StringLib.sol/StringLib.dbg.json +1 -1
  56. package/build/artifacts/contracts/core/libraries/TokenHelper.sol/TokenHelper.dbg.json +1 -1
  57. package/build/artifacts/contracts/core/libraries/math/LogExpMath.sol/LogExpMath.dbg.json +1 -1
  58. package/build/artifacts/contracts/core/libraries/math/PMath.sol/PMath.dbg.json +1 -1
  59. package/build/artifacts/contracts/interfaces/Ankr/IAnkrBNB.sol/IAnkrBNB.dbg.json +1 -1
  60. package/build/artifacts/contracts/interfaces/Ankr/IAnkrLiquidStaking.sol/IAnkrLiquidStaking.dbg.json +1 -1
  61. package/build/artifacts/contracts/interfaces/Balancer/IAsset.sol/IAsset.dbg.json +1 -1
  62. package/build/artifacts/contracts/interfaces/Balancer/IBalancerFees.sol/IBalancerFees.dbg.json +1 -1
  63. package/build/artifacts/contracts/interfaces/Balancer/IBalancerStablePreview.sol/IBalancerStablePreview.dbg.json +1 -1
  64. package/build/artifacts/contracts/interfaces/Balancer/IBasePool.sol/IBasePool.dbg.json +1 -1
  65. package/build/artifacts/contracts/interfaces/Balancer/IComposableStable.sol/IComposableStable.dbg.json +1 -1
  66. package/build/artifacts/contracts/interfaces/Balancer/IERC4626LinearPool.sol/IERC4626LinearPool.dbg.json +1 -1
  67. package/build/artifacts/contracts/interfaces/Balancer/IGauge.sol/IGauge.dbg.json +1 -1
  68. package/build/artifacts/contracts/interfaces/Balancer/ILiquidityGaugeFactory.sol/ILiquidityGaugeFactory.dbg.json +1 -1
  69. package/build/artifacts/contracts/interfaces/Balancer/IMetaStablePool.sol/IMetaStablePool.dbg.json +1 -1
  70. package/build/artifacts/contracts/interfaces/Balancer/IPComposableStablePreview.sol/IPComposableStablePreview.dbg.json +1 -1
  71. package/build/artifacts/contracts/interfaces/Balancer/IRateProvider.sol/IRateProvider.dbg.json +1 -1
  72. package/build/artifacts/contracts/interfaces/Balancer/IVault.sol/IVault.dbg.json +1 -1
  73. package/build/artifacts/contracts/interfaces/Balancer/IVersion.sol/IVersion.dbg.json +1 -1
  74. package/build/artifacts/contracts/interfaces/BinanceEth/IWBETH.sol/IWBETH.dbg.json +1 -1
  75. package/build/artifacts/contracts/interfaces/Camelot/ICamelotFactory.sol/ICamelotFactory.dbg.json +1 -1
  76. package/build/artifacts/contracts/interfaces/Camelot/ICamelotNFTFactory.sol/ICamelotNFTFactory.dbg.json +1 -1
  77. package/build/artifacts/contracts/interfaces/Camelot/ICamelotNFTHandler.sol/ICamelotNFTHandler.dbg.json +1 -1
  78. package/build/artifacts/contracts/interfaces/Camelot/ICamelotNFTPool.sol/ICamelotNFTPool.dbg.json +1 -1
  79. package/build/artifacts/contracts/interfaces/Camelot/ICamelotNitroPool.sol/ICamelotNitroPool.dbg.json +1 -1
  80. package/build/artifacts/contracts/interfaces/Camelot/ICamelotNitroPoolFactory.sol/ICamelotNitroPoolFactory.dbg.json +1 -1
  81. package/build/artifacts/contracts/interfaces/Camelot/ICamelotPair.sol/ICamelotPair.dbg.json +1 -1
  82. package/build/artifacts/contracts/interfaces/Camelot/ICamelotRouter.sol/ICamelotRouter.dbg.json +1 -1
  83. package/build/artifacts/contracts/interfaces/Camelot/ICamelotYieldBooster.sol/ICamelotYieldBooster.dbg.json +1 -1
  84. package/build/artifacts/contracts/interfaces/Camelot/IXGrail.sol/IXGrail.dbg.json +1 -1
  85. package/build/artifacts/contracts/interfaces/ConvexCurve/IBooster.sol/IBooster.dbg.json +1 -1
  86. package/build/artifacts/contracts/interfaces/ConvexCurve/ICrvDepositor.sol/ICrvDepositor.dbg.json +1 -1
  87. package/build/artifacts/contracts/interfaces/ConvexCurve/ICvxCrv.sol/ICvxCrv.dbg.json +1 -1
  88. package/build/artifacts/contracts/interfaces/ConvexCurve/IRewards.sol/IRewards.dbg.json +1 -1
  89. package/build/artifacts/contracts/interfaces/Curve/ICrvPool.sol/ICrvPool.dbg.json +1 -1
  90. package/build/artifacts/contracts/interfaces/Curve/ITriCrvPool.sol/ITriCrvPool.dbg.json +1 -1
  91. package/build/artifacts/contracts/interfaces/Flux/IFluxErc20.sol/IFluxErc20.dbg.json +1 -1
  92. package/build/artifacts/contracts/interfaces/Flux/IFluxInterestRateModel.sol/IFluxInterestRateModel.dbg.json +1 -1
  93. package/build/artifacts/contracts/interfaces/Frax/IFrxEthMinter.sol/IFrxEthMinter.dbg.json +1 -1
  94. package/build/artifacts/contracts/interfaces/GMX/IGMXVault.sol/IGMXVault.dbg.json +1 -1
  95. package/build/artifacts/contracts/interfaces/GMX/IGlpManager.sol/IGlpManager.dbg.json +1 -1
  96. package/build/artifacts/contracts/interfaces/GMX/IRewardRouterV2.sol/IRewardRouterV2.dbg.json +1 -1
  97. package/build/artifacts/contracts/interfaces/GMX/IVaultPriceFeed.sol/IVaultPriceFeed.dbg.json +1 -1
  98. package/build/artifacts/contracts/interfaces/HMX/IHLPStaking.sol/IHLPStaking.dbg.json +1 -1
  99. package/build/artifacts/contracts/interfaces/HMX/IHMXCalculator.sol/IHMXCalculator.dbg.json +1 -1
  100. package/build/artifacts/contracts/interfaces/HMX/IHMXCompounder.sol/IHMXCompounder.dbg.json +1 -1
  101. package/build/artifacts/contracts/interfaces/HMX/IHMXStaking.sol/IHMXStaking.dbg.json +1 -1
  102. package/build/artifacts/contracts/interfaces/HMX/IHMXVester.sol/IHMXVester.dbg.json +1 -1
  103. package/build/artifacts/contracts/interfaces/IAddressProvider.sol/IAddressProvider.dbg.json +1 -1
  104. package/build/artifacts/contracts/interfaces/IApeStaking.sol/IApeStaking.dbg.json +1 -1
  105. package/build/artifacts/contracts/interfaces/IBenQiComptroller.sol/IBenQiComptroller.dbg.json +1 -1
  106. package/build/artifacts/contracts/interfaces/IBenQiInterestRateModel.sol/IBenQiInterestRateModel.dbg.json +1 -1
  107. package/build/artifacts/contracts/interfaces/IDailLikePermit.sol/IDaiLikePermit.dbg.json +1 -1
  108. package/build/artifacts/contracts/interfaces/IDiamondCut.sol/IDiamondCut.dbg.json +1 -1
  109. package/build/artifacts/contracts/interfaces/IDiamondLoupe.sol/IDiamondLoupe.dbg.json +1 -1
  110. package/build/artifacts/contracts/interfaces/IERC4626.sol/IERC4626.dbg.json +1 -1
  111. package/build/artifacts/contracts/interfaces/ILayerZeroEndpoint.sol/ILayerZeroEndpoint.dbg.json +1 -1
  112. package/build/artifacts/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.dbg.json +1 -1
  113. package/build/artifacts/contracts/interfaces/ILooksFeeSharing.sol/ILooksFeeSharing.dbg.json +1 -1
  114. package/build/artifacts/contracts/interfaces/ILooksStaking.sol/ILooksStaking.dbg.json +1 -1
  115. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiqV3.sol/IPActionAddRemoveLiqV3.dbg.json +1 -1
  116. package/build/artifacts/contracts/interfaces/IPActionInfoStatic.sol/IPActionInfoStatic.dbg.json +1 -1
  117. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
  118. package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.dbg.json +1 -1
  119. package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.dbg.json +1 -1
  120. package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
  121. package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
  122. package/build/artifacts/contracts/interfaces/IPActionSwapPTV3.sol/IPActionSwapPTV3.dbg.json +1 -1
  123. package/build/artifacts/contracts/interfaces/IPActionSwapYTV3.sol/IPActionSwapYTV3.dbg.json +1 -1
  124. package/build/artifacts/contracts/interfaces/IPActionVePendleStatic.sol/IPActionVePendleStatic.dbg.json +1 -1
  125. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
  126. package/build/artifacts/contracts/interfaces/IPExternalRewardDistributor.sol/IPExternalRewardDistributor.dbg.json +1 -1
  127. package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.dbg.json +1 -1
  128. package/build/artifacts/contracts/interfaces/IPFeeDistributorV2.sol/IPFeeDistributorV2.dbg.json +1 -1
  129. package/build/artifacts/contracts/interfaces/IPGauge.sol/IPGauge.dbg.json +1 -1
  130. package/build/artifacts/contracts/interfaces/IPGaugeController.sol/IPGaugeController.dbg.json +1 -1
  131. package/build/artifacts/contracts/interfaces/IPGaugeControllerMainchain.sol/IPGaugeControllerMainchain.dbg.json +1 -1
  132. package/build/artifacts/contracts/interfaces/IPInterestManagerYT.sol/IPInterestManagerYT.dbg.json +1 -1
  133. package/build/artifacts/contracts/interfaces/IPInterestManagerYTV2.sol/IPInterestManagerYTV2.dbg.json +1 -1
  134. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/ILimitOrderCallee.dbg.json +1 -1
  135. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouter.dbg.json +1 -1
  136. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPOrderMixin.dbg.json +1 -1
  137. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPOrderMixinType.dbg.json +1 -1
  138. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
  139. package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.dbg.json +1 -1
  140. package/build/artifacts/contracts/interfaces/IPMarketFactoryV2.sol/IPMarketFactoryV2.dbg.json +1 -1
  141. package/build/artifacts/contracts/interfaces/IPMarketSwapCallback.sol/IPMarketSwapCallback.dbg.json +1 -1
  142. package/build/artifacts/contracts/interfaces/IPMerkleDistributor.sol/IPMerkleDistributor.dbg.json +4 -0
  143. package/build/artifacts/contracts/interfaces/IPMerkleDistributor.sol/IPMerkleDistributor.json +150 -0
  144. package/build/artifacts/contracts/interfaces/IPMiniDiamond.sol/IPMiniDiamond.dbg.json +1 -1
  145. package/build/artifacts/contracts/interfaces/IPMsgReceiverApp.sol/IPMsgReceiverApp.dbg.json +1 -1
  146. package/build/artifacts/contracts/interfaces/IPMsgSendEndpoint.sol/IPMsgSendEndpoint.dbg.json +1 -1
  147. package/build/artifacts/contracts/interfaces/IPOracleForSy.sol/IPOracleForSy.dbg.json +1 -1
  148. package/build/artifacts/contracts/interfaces/IPPrincipalToken.sol/IPPrincipalToken.dbg.json +1 -1
  149. package/build/artifacts/contracts/interfaces/IPPtOracle.sol/IPPtOracle.dbg.json +1 -1
  150. package/build/artifacts/contracts/interfaces/IPRouterHelper.sol/IPRouterHelper.dbg.json +1 -1
  151. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
  152. package/build/artifacts/contracts/interfaces/IPVeToken.sol/IPVeToken.dbg.json +1 -1
  153. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
  154. package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
  155. package/build/artifacts/contracts/interfaces/IPYieldContractFactory.sol/IPYieldContractFactory.dbg.json +1 -1
  156. package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.dbg.json +1 -1
  157. package/build/artifacts/contracts/interfaces/IPYieldTokenV2.sol/IPYieldTokenV2.dbg.json +1 -1
  158. package/build/artifacts/contracts/interfaces/IPendlePreviewHelper.sol/IPendlePreviewHelper.dbg.json +1 -1
  159. package/build/artifacts/contracts/interfaces/IQiAvax.sol/IQiAvax.dbg.json +1 -1
  160. package/build/artifacts/contracts/interfaces/IQiErc20.sol/IQiErc20.dbg.json +1 -1
  161. package/build/artifacts/contracts/interfaces/IQiToken.sol/IQiToken.dbg.json +1 -1
  162. package/build/artifacts/contracts/interfaces/IRewardManager.sol/IRewardManager.dbg.json +1 -1
  163. package/build/artifacts/contracts/interfaces/IStETH.sol/IStETH.dbg.json +1 -1
  164. package/build/artifacts/contracts/interfaces/IStandardizedYield.sol/IStandardizedYield.dbg.json +1 -1
  165. package/build/artifacts/contracts/interfaces/IStargateLP.sol/IStargateLP.dbg.json +1 -1
  166. package/build/artifacts/contracts/interfaces/IStargateRouter.sol/IStargateRouter.dbg.json +1 -1
  167. package/build/artifacts/contracts/interfaces/IStargateStaking.sol/IStargateStaking.dbg.json +1 -1
  168. package/build/artifacts/contracts/interfaces/ISwETH.sol/ISwETH.dbg.json +1 -1
  169. package/build/artifacts/contracts/interfaces/IWETH.sol/IWETH.dbg.json +1 -1
  170. package/build/artifacts/contracts/interfaces/IWstETH.sol/IWstETH.dbg.json +1 -1
  171. package/build/artifacts/contracts/interfaces/Lybra/IEUSD.sol/IEUSD.dbg.json +1 -1
  172. package/build/artifacts/contracts/interfaces/Thena/IThenaFactory.sol/IThenaFactory.dbg.json +1 -1
  173. package/build/artifacts/contracts/interfaces/Thena/IThenaGaugeV2.sol/IThenaGaugeV2.dbg.json +1 -1
  174. package/build/artifacts/contracts/interfaces/Thena/IThenaPair.sol/IThenaPair.dbg.json +1 -1
  175. package/build/artifacts/contracts/interfaces/Thena/IThenaRouter.sol/IThenaRouter.dbg.json +1 -1
  176. package/build/artifacts/contracts/limit/LimitMathCore.sol/LimitMathCore.dbg.json +1 -1
  177. package/build/artifacts/contracts/limit/PendleOrderMixin.sol/PendleOrderMixin.dbg.json +1 -1
  178. package/build/artifacts/contracts/limit/helpers/ArgumentsDecoder.sol/ArgumentsDecoder.dbg.json +1 -1
  179. package/build/artifacts/contracts/limit/helpers/NonceManager.sol/NonceManager.dbg.json +1 -1
  180. package/build/artifacts/contracts/limit/helpers/Permitable.sol/Permitable.dbg.json +1 -1
  181. package/build/artifacts/contracts/limit/helpers/RevertReasonParser.sol/RevertReasonParser.dbg.json +1 -1
  182. package/build/artifacts/contracts/offchain-helpers/AddressProvider.sol/AddressProvider.dbg.json +1 -1
  183. package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/AutomateReady.dbg.json +1 -1
  184. package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/IAutomate.dbg.json +1 -1
  185. package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/IOpsProxyFactory.dbg.json +1 -1
  186. package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/ITaskTreasuryUpgradable.dbg.json +1 -1
  187. package/build/artifacts/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.dbg.json +1 -1
  188. package/build/artifacts/contracts/offchain-helpers/BoringLpSeller.sol/BoringLpSeller.dbg.json +1 -1
  189. package/build/artifacts/contracts/offchain-helpers/BoringPtSeller.sol/BoringPtSeller.dbg.json +1 -1
  190. package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.dbg.json +1 -1
  191. package/build/artifacts/contracts/offchain-helpers/EmptyUUPS.sol/EmptyUUPS.dbg.json +1 -1
  192. package/build/artifacts/contracts/offchain-helpers/LegacyNFTHelper.sol/LegacyNFTHelper.dbg.json +1 -1
  193. package/build/artifacts/contracts/offchain-helpers/LegacyNFTHelper.sol/StarNFTV1.dbg.json +1 -1
  194. package/build/artifacts/contracts/offchain-helpers/MarketExchangeRateLib.sol/MarketExchangeRateLib.dbg.json +1 -1
  195. package/build/artifacts/contracts/offchain-helpers/Multicall2.sol/Multicall2.dbg.json +1 -1
  196. package/build/artifacts/contracts/offchain-helpers/PendleMulticallV1.sol/PendleMulticallV1.dbg.json +1 -1
  197. package/build/artifacts/contracts/offchain-helpers/PendleMulticallV2.sol/PendleMulticallV2.dbg.json +1 -1
  198. package/build/artifacts/contracts/offchain-helpers/PtAndLpToAsset.sol/PtAndLpToAsset.dbg.json +1 -1
  199. package/build/artifacts/contracts/offchain-helpers/errors/SDKErrorsDirectory.sol/SDKErrorsDirectory.dbg.json +1 -1
  200. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
  201. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
  202. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
  203. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
  204. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
  205. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
  206. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
  207. package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
  208. package/build/artifacts/contracts/oracles/PendleLpOracleLib.sol/PendleLpOracleLib.dbg.json +1 -1
  209. package/build/artifacts/contracts/oracles/PendlePtOracleLib.sol/PendlePtOracleLib.dbg.json +1 -1
  210. package/build/artifacts/contracts/router/PendleRouterHelper.sol/PendleRouterHelper.dbg.json +1 -1
  211. package/build/artifacts/contracts/router/PendleRouterHelper.sol/RouterV2InterfaceForRouterHelper.dbg.json +1 -1
  212. package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
  213. package/build/artifacts/contracts/router/base/ActionBaseCallback.sol/ActionBaseCallback.dbg.json +1 -1
  214. package/build/artifacts/contracts/router/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
  215. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
  216. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
  217. package/build/artifacts/contracts/router/base/SimulateHelper.sol/SimulateHelper.dbg.json +1 -1
  218. package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.dbg.json +1 -1
  219. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/IAggregationExecutor.sol/IAggregationExecutor.dbg.json +1 -1
  220. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/IExecutorHelper.sol/IExecutorHelper.dbg.json +1 -1
  221. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.dbg.json +1 -1
  222. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/KyberInputScalingHelper.sol/KyberInputScalingHelper.dbg.json +1 -1
  223. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ScalingDataLib.sol/ScalingDataLib.dbg.json +1 -1
  224. package/build/artifacts/contracts/router/swap-aggregator/oneinch/I1inchAggregationRouterV5.sol/I1inchAggregationRouterV5.dbg.json +1 -1
  225. package/build/artifacts/contracts/router/swap-aggregator/oneinch/OneInchAggregationRouterHelper.sol/OneInchAggregationRouterHelper.dbg.json +1 -1
  226. package/contracts/LiquidityMining/PendleMerkleDistributor.sol +95 -0
  227. package/contracts/interfaces/IPMerkleDistributor.sol +24 -0
  228. package/package.json +1 -1
  229. package/typechain-types/factories/PendleMerkleDistributor__factory.ts +1 -1
  230. package/typechain-types/hardhat.d.ts +0 -675
  231. package/typechain-types/index.ts +0 -138
  232. package/typechain-types/AccessControlUpgradeable.ts +0 -369
  233. package/typechain-types/ActionAddRemoveLiq.ts +0 -1239
  234. package/typechain-types/ActionMintRedeem.ts +0 -673
  235. package/typechain-types/ActionMisc.ts +0 -155
  236. package/typechain-types/ActionSwapPT.ts +0 -544
  237. package/typechain-types/ActionSwapYT.ts +0 -730
  238. package/typechain-types/AuraWethVethSYUpg.ts +0 -1612
  239. package/typechain-types/BeaconProxy.ts +0 -97
  240. package/typechain-types/BulkSeller.ts +0 -743
  241. package/typechain-types/BulkSellerFactory.ts +0 -712
  242. package/typechain-types/BulkSellerOffchain.ts +0 -251
  243. package/typechain-types/ContextUpgradeable.ts +0 -68
  244. package/typechain-types/EIP712.ts +0 -135
  245. package/typechain-types/ERC165Upgradeable.ts +0 -113
  246. package/typechain-types/GMTokenPricingHelper.ts +0 -478
  247. package/typechain-types/IAccessControlUpgradeable.ts +0 -305
  248. package/typechain-types/IAggregationExecutorOptimistic.ts +0 -394
  249. package/typechain-types/IERC165Upgradeable.ts +0 -102
  250. package/typechain-types/IERC1967.ts +0 -97
  251. package/typechain-types/IERC5267.ts +0 -135
  252. package/typechain-types/IERC5267Upgradeable.ts +0 -135
  253. package/typechain-types/IExecutorHelperL2.ts +0 -2272
  254. package/typechain-types/IGMXPriceHelper.ts +0 -84
  255. package/typechain-types/IGMXV2DataStore.ts +0 -87
  256. package/typechain-types/IGMXV2Oracle.ts +0 -107
  257. package/typechain-types/IGMXV2Reader.ts +0 -204
  258. package/typechain-types/IKyberElasticFactory.ts +0 -734
  259. package/typechain-types/IKyberElasticPool.ts +0 -514
  260. package/typechain-types/IKyberElasticRouter.ts +0 -315
  261. package/typechain-types/IKyberLiquidityMining.ts +0 -968
  262. package/typechain-types/IKyberMathHelper.ts +0 -231
  263. package/typechain-types/IKyberPositionManager.ts +0 -773
  264. package/typechain-types/IMUXRewardRouter.ts +0 -1599
  265. package/typechain-types/IPActionAddRemoveLiq.ts +0 -1239
  266. package/typechain-types/IPActionMintRedeem.ts +0 -673
  267. package/typechain-types/IPActionMisc.ts +0 -155
  268. package/typechain-types/IPActionSwapPT.ts +0 -544
  269. package/typechain-types/IPActionSwapYT.ts +0 -686
  270. package/typechain-types/IPAllAction.ts +0 -2935
  271. package/typechain-types/IPBulkSeller.ts +0 -391
  272. package/typechain-types/IPBulkSellerCallback.ts +0 -115
  273. package/typechain-types/IPBulkSellerFactory.ts +0 -152
  274. package/typechain-types/IPLinearDistributor.ts +0 -199
  275. package/typechain-types/IPOffchainStorage.ts +0 -146
  276. package/typechain-types/IPPriceFeed.ts +0 -81
  277. package/typechain-types/ISilo.ts +0 -1093
  278. package/typechain-types/ISiloIncentiveController.ts +0 -129
  279. package/typechain-types/ISiloLens.ts +0 -107
  280. package/typechain-types/KyberMathHelper.ts +0 -604
  281. package/typechain-types/KyberNftManagerBaseUpg.ts +0 -148
  282. package/typechain-types/MlpPricingHelper.ts +0 -397
  283. package/typechain-types/PendleAuraBalancerStableLPSYV3Upg.ts +0 -1577
  284. package/typechain-types/PendleERC20PermitUpg.ts +0 -517
  285. package/typechain-types/PendleERC20Upg.ts +0 -348
  286. package/typechain-types/PendleGMV2TokenSY.ts +0 -1434
  287. package/typechain-types/PendleKyberElasticSYUpg.ts +0 -1648
  288. package/typechain-types/PendleLinearDistributor.ts +0 -829
  289. package/typechain-types/PendleMlpSY.ts +0 -1606
  290. package/typechain-types/PendleOffchainStorage.ts +0 -666
  291. package/typechain-types/PendleRouter.ts +0 -217
  292. package/typechain-types/PendleRouterHelper2.ts +0 -185
  293. package/typechain-types/PendleSiloWithIncentiveSY.ts +0 -1455
  294. package/typechain-types/PendleSwapBase.ts +0 -126
  295. package/typechain-types/PendleSwapL1.ts +0 -126
  296. package/typechain-types/PendleSwapL2.ts +0 -126
  297. package/typechain-types/ReentrancyGuardUpgradeable.ts +0 -68
  298. package/typechain-types/SYBaseUpg.ts +0 -1270
  299. package/typechain-types/SYBaseWithRewardsUpg.ts +0 -1363
  300. package/typechain-types/ShortStrings.ts +0 -57
  301. package/typechain-types/factories/AccessControlUpgradeable__factory.ts +0 -247
  302. package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +0 -1676
  303. package/typechain-types/factories/ActionMintRedeem__factory.ts +0 -806
  304. package/typechain-types/factories/ActionMisc__factory.ts +0 -129
  305. package/typechain-types/factories/ActionSwapPT__factory.ts +0 -770
  306. package/typechain-types/factories/ActionSwapYT__factory.ts +0 -1041
  307. package/typechain-types/factories/AuraWethVethSYUpg__factory.ts +0 -1264
  308. package/typechain-types/factories/BeaconProxy__factory.ts +0 -141
  309. package/typechain-types/factories/BulkSellerFactory__factory.ts +0 -574
  310. package/typechain-types/factories/BulkSellerOffchain__factory.ts +0 -178
  311. package/typechain-types/factories/BulkSeller__factory.ts +0 -692
  312. package/typechain-types/factories/ContextUpgradeable__factory.ts +0 -39
  313. package/typechain-types/factories/EIP712__factory.ts +0 -85
  314. package/typechain-types/factories/ERC165Upgradeable__factory.ts +0 -58
  315. package/typechain-types/factories/GMTokenPricingHelper__factory.ts +0 -354
  316. package/typechain-types/factories/IAccessControlUpgradeable__factory.ts +0 -202
  317. package/typechain-types/factories/IAggregationExecutorOptimistic__factory.ts +0 -213
  318. package/typechain-types/factories/IERC165Upgradeable__factory.ts +0 -45
  319. package/typechain-types/factories/IERC1967__factory.ts +0 -68
  320. package/typechain-types/factories/IERC5267Upgradeable__factory.ts +0 -75
  321. package/typechain-types/factories/IERC5267__factory.ts +0 -72
  322. package/typechain-types/factories/IExecutorHelperL2__factory.ts +0 -1862
  323. package/typechain-types/factories/IGMXPriceHelper__factory.ts +0 -45
  324. package/typechain-types/factories/IGMXV2DataStore__factory.ts +0 -45
  325. package/typechain-types/factories/IGMXV2Oracle__factory.ts +0 -47
  326. package/typechain-types/factories/IGMXV2Reader__factory.ts +0 -192
  327. package/typechain-types/factories/IKyberElasticFactory__factory.ts +0 -455
  328. package/typechain-types/factories/IKyberElasticPool__factory.ts +0 -315
  329. package/typechain-types/factories/IKyberElasticRouter__factory.ts +0 -240
  330. package/typechain-types/factories/IKyberLiquidityMining__factory.ts +0 -913
  331. package/typechain-types/factories/IKyberMathHelper__factory.ts +0 -143
  332. package/typechain-types/factories/IKyberPositionManager__factory.ts +0 -633
  333. package/typechain-types/factories/IMUXRewardRouter__factory.ts +0 -885
  334. package/typechain-types/factories/IPActionAddRemoveLiq__factory.ts +0 -1446
  335. package/typechain-types/factories/IPActionMintRedeem__factory.ts +0 -720
  336. package/typechain-types/factories/IPActionMisc__factory.ts +0 -91
  337. package/typechain-types/factories/IPActionSwapPT__factory.ts +0 -544
  338. package/typechain-types/factories/IPActionSwapYT__factory.ts +0 -723
  339. package/typechain-types/factories/IPAllAction__factory.ts +0 -3515
  340. package/typechain-types/factories/IPBulkSellerCallback__factory.ts +0 -53
  341. package/typechain-types/factories/IPBulkSellerFactory__factory.ts +0 -107
  342. package/typechain-types/factories/IPBulkSeller__factory.ts +0 -333
  343. package/typechain-types/factories/IPLinearDistributor__factory.ts +0 -150
  344. package/typechain-types/factories/IPOffchainStorage__factory.ts +0 -82
  345. package/typechain-types/factories/IPPriceFeed__factory.ts +0 -36
  346. package/typechain-types/factories/ISiloIncentiveController__factory.ts +0 -67
  347. package/typechain-types/factories/ISiloLens__factory.ts +0 -47
  348. package/typechain-types/factories/ISilo__factory.ts +0 -846
  349. package/typechain-types/factories/KyberMathHelper__factory.ts +0 -430
  350. package/typechain-types/factories/KyberNftManagerBaseUpg__factory.ts +0 -101
  351. package/typechain-types/factories/MlpPricingHelper__factory.ts +0 -303
  352. package/typechain-types/factories/PendleAuraBalancerStableLPSYV3Upg__factory.ts +0 -1209
  353. package/typechain-types/factories/PendleERC20PermitUpg__factory.ts +0 -389
  354. package/typechain-types/factories/PendleERC20Upg__factory.ts +0 -261
  355. package/typechain-types/factories/PendleGMV2TokenSY__factory.ts +0 -1240
  356. package/typechain-types/factories/PendleKyberElasticSYUpg__factory.ts +0 -1351
  357. package/typechain-types/factories/PendleLinearDistributor__factory.ts +0 -627
  358. package/typechain-types/factories/PendleMlpSY__factory.ts +0 -1314
  359. package/typechain-types/factories/PendleOffchainStorage__factory.ts +0 -492
  360. package/typechain-types/factories/PendleRouterHelper2__factory.ts +0 -206
  361. package/typechain-types/factories/PendleRouter__factory.ts +0 -264
  362. package/typechain-types/factories/PendleSiloWithIncentiveSY__factory.ts +0 -1266
  363. package/typechain-types/factories/PendleSwapBase__factory.ts +0 -91
  364. package/typechain-types/factories/PendleSwapL1__factory.ts +0 -126
  365. package/typechain-types/factories/PendleSwapL2__factory.ts +0 -126
  366. package/typechain-types/factories/ReentrancyGuardUpgradeable__factory.ts +0 -43
  367. package/typechain-types/factories/SYBaseUpg__factory.ts +0 -988
  368. package/typechain-types/factories/SYBaseWithRewardsUpg__factory.ts +0 -1061
  369. package/typechain-types/factories/ShortStrings__factory.ts +0 -77
@@ -1,770 +0,0 @@
1
- /* Autogenerated file. Do not edit manually. */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
5
- import { Provider, TransactionRequest } from "@ethersproject/providers";
6
- import type { ActionSwapPT, ActionSwapPTInterface } from "../ActionSwapPT";
7
-
8
- const _abi = [
9
- {
10
- inputs: [],
11
- name: "ApproxFail",
12
- type: "error",
13
- },
14
- {
15
- inputs: [
16
- {
17
- internalType: "uint256",
18
- name: "guessMin",
19
- type: "uint256",
20
- },
21
- {
22
- internalType: "uint256",
23
- name: "guessMax",
24
- type: "uint256",
25
- },
26
- {
27
- internalType: "uint256",
28
- name: "eps",
29
- type: "uint256",
30
- },
31
- ],
32
- name: "ApproxParamsInvalid",
33
- type: "error",
34
- },
35
- {
36
- inputs: [
37
- {
38
- internalType: "int256",
39
- name: "exchangeRate",
40
- type: "int256",
41
- },
42
- ],
43
- name: "MarketExchangeRateBelowOne",
44
- type: "error",
45
- },
46
- {
47
- inputs: [],
48
- name: "MarketExpired",
49
- type: "error",
50
- },
51
- {
52
- inputs: [
53
- {
54
- internalType: "int256",
55
- name: "currentAmount",
56
- type: "int256",
57
- },
58
- {
59
- internalType: "int256",
60
- name: "requiredAmount",
61
- type: "int256",
62
- },
63
- ],
64
- name: "MarketInsufficientPtForTrade",
65
- type: "error",
66
- },
67
- {
68
- inputs: [],
69
- name: "MarketProportionMustNotEqualOne",
70
- type: "error",
71
- },
72
- {
73
- inputs: [
74
- {
75
- internalType: "int256",
76
- name: "proportion",
77
- type: "int256",
78
- },
79
- {
80
- internalType: "int256",
81
- name: "maxProportion",
82
- type: "int256",
83
- },
84
- ],
85
- name: "MarketProportionTooHigh",
86
- type: "error",
87
- },
88
- {
89
- inputs: [
90
- {
91
- internalType: "int256",
92
- name: "rateScalar",
93
- type: "int256",
94
- },
95
- ],
96
- name: "MarketRateScalarBelowZero",
97
- type: "error",
98
- },
99
- {
100
- inputs: [],
101
- name: "MarketZeroLnImpliedRate",
102
- type: "error",
103
- },
104
- {
105
- inputs: [
106
- {
107
- internalType: "int256",
108
- name: "totalPt",
109
- type: "int256",
110
- },
111
- {
112
- internalType: "int256",
113
- name: "totalAsset",
114
- type: "int256",
115
- },
116
- ],
117
- name: "MarketZeroTotalPtOrTotalAsset",
118
- type: "error",
119
- },
120
- {
121
- inputs: [
122
- {
123
- internalType: "uint256",
124
- name: "actualPtIn",
125
- type: "uint256",
126
- },
127
- {
128
- internalType: "uint256",
129
- name: "limitPtIn",
130
- type: "uint256",
131
- },
132
- ],
133
- name: "RouterExceededLimitPtIn",
134
- type: "error",
135
- },
136
- {
137
- inputs: [
138
- {
139
- internalType: "uint256",
140
- name: "actualSyIn",
141
- type: "uint256",
142
- },
143
- {
144
- internalType: "uint256",
145
- name: "limitSyIn",
146
- type: "uint256",
147
- },
148
- ],
149
- name: "RouterExceededLimitSyIn",
150
- type: "error",
151
- },
152
- {
153
- inputs: [
154
- {
155
- internalType: "uint256",
156
- name: "actualPtOut",
157
- type: "uint256",
158
- },
159
- {
160
- internalType: "uint256",
161
- name: "requiredPtOut",
162
- type: "uint256",
163
- },
164
- ],
165
- name: "RouterInsufficientPtOut",
166
- type: "error",
167
- },
168
- {
169
- inputs: [
170
- {
171
- internalType: "uint256",
172
- name: "actualSyOut",
173
- type: "uint256",
174
- },
175
- {
176
- internalType: "uint256",
177
- name: "requiredSyOut",
178
- type: "uint256",
179
- },
180
- ],
181
- name: "RouterInsufficientSyOut",
182
- type: "error",
183
- },
184
- {
185
- inputs: [
186
- {
187
- internalType: "uint256",
188
- name: "actualTokenOut",
189
- type: "uint256",
190
- },
191
- {
192
- internalType: "uint256",
193
- name: "requiredTokenOut",
194
- type: "uint256",
195
- },
196
- ],
197
- name: "RouterInsufficientTokenOut",
198
- type: "error",
199
- },
200
- {
201
- anonymous: false,
202
- inputs: [
203
- {
204
- indexed: true,
205
- internalType: "address",
206
- name: "caller",
207
- type: "address",
208
- },
209
- {
210
- indexed: true,
211
- internalType: "address",
212
- name: "market",
213
- type: "address",
214
- },
215
- {
216
- indexed: true,
217
- internalType: "address",
218
- name: "receiver",
219
- type: "address",
220
- },
221
- {
222
- indexed: false,
223
- internalType: "int256",
224
- name: "netPtToAccount",
225
- type: "int256",
226
- },
227
- {
228
- indexed: false,
229
- internalType: "int256",
230
- name: "netSyToAccount",
231
- type: "int256",
232
- },
233
- ],
234
- name: "SwapPtAndSy",
235
- type: "event",
236
- },
237
- {
238
- anonymous: false,
239
- inputs: [
240
- {
241
- indexed: true,
242
- internalType: "address",
243
- name: "caller",
244
- type: "address",
245
- },
246
- {
247
- indexed: true,
248
- internalType: "address",
249
- name: "market",
250
- type: "address",
251
- },
252
- {
253
- indexed: true,
254
- internalType: "address",
255
- name: "token",
256
- type: "address",
257
- },
258
- {
259
- indexed: false,
260
- internalType: "address",
261
- name: "receiver",
262
- type: "address",
263
- },
264
- {
265
- indexed: false,
266
- internalType: "int256",
267
- name: "netPtToAccount",
268
- type: "int256",
269
- },
270
- {
271
- indexed: false,
272
- internalType: "int256",
273
- name: "netTokenToAccount",
274
- type: "int256",
275
- },
276
- ],
277
- name: "SwapPtAndToken",
278
- type: "event",
279
- },
280
- {
281
- inputs: [
282
- {
283
- internalType: "address",
284
- name: "receiver",
285
- type: "address",
286
- },
287
- {
288
- internalType: "address",
289
- name: "market",
290
- type: "address",
291
- },
292
- {
293
- internalType: "uint256",
294
- name: "exactPtIn",
295
- type: "uint256",
296
- },
297
- {
298
- internalType: "uint256",
299
- name: "minSyOut",
300
- type: "uint256",
301
- },
302
- ],
303
- name: "swapExactPtForSy",
304
- outputs: [
305
- {
306
- internalType: "uint256",
307
- name: "netSyOut",
308
- type: "uint256",
309
- },
310
- {
311
- internalType: "uint256",
312
- name: "netSyFee",
313
- type: "uint256",
314
- },
315
- ],
316
- stateMutability: "nonpayable",
317
- type: "function",
318
- },
319
- {
320
- inputs: [
321
- {
322
- internalType: "address",
323
- name: "receiver",
324
- type: "address",
325
- },
326
- {
327
- internalType: "address",
328
- name: "market",
329
- type: "address",
330
- },
331
- {
332
- internalType: "uint256",
333
- name: "exactPtIn",
334
- type: "uint256",
335
- },
336
- {
337
- components: [
338
- {
339
- internalType: "address",
340
- name: "tokenOut",
341
- type: "address",
342
- },
343
- {
344
- internalType: "uint256",
345
- name: "minTokenOut",
346
- type: "uint256",
347
- },
348
- {
349
- internalType: "address",
350
- name: "tokenRedeemSy",
351
- type: "address",
352
- },
353
- {
354
- internalType: "address",
355
- name: "bulk",
356
- type: "address",
357
- },
358
- {
359
- internalType: "address",
360
- name: "pendleSwap",
361
- type: "address",
362
- },
363
- {
364
- components: [
365
- {
366
- internalType: "enum SwapType",
367
- name: "swapType",
368
- type: "uint8",
369
- },
370
- {
371
- internalType: "address",
372
- name: "extRouter",
373
- type: "address",
374
- },
375
- {
376
- internalType: "bytes",
377
- name: "extCalldata",
378
- type: "bytes",
379
- },
380
- {
381
- internalType: "bool",
382
- name: "needScale",
383
- type: "bool",
384
- },
385
- ],
386
- internalType: "struct SwapData",
387
- name: "swapData",
388
- type: "tuple",
389
- },
390
- ],
391
- internalType: "struct TokenOutput",
392
- name: "output",
393
- type: "tuple",
394
- },
395
- ],
396
- name: "swapExactPtForToken",
397
- outputs: [
398
- {
399
- internalType: "uint256",
400
- name: "netTokenOut",
401
- type: "uint256",
402
- },
403
- {
404
- internalType: "uint256",
405
- name: "netSyFee",
406
- type: "uint256",
407
- },
408
- ],
409
- stateMutability: "nonpayable",
410
- type: "function",
411
- },
412
- {
413
- inputs: [
414
- {
415
- internalType: "address",
416
- name: "receiver",
417
- type: "address",
418
- },
419
- {
420
- internalType: "address",
421
- name: "market",
422
- type: "address",
423
- },
424
- {
425
- internalType: "uint256",
426
- name: "exactSyIn",
427
- type: "uint256",
428
- },
429
- {
430
- internalType: "uint256",
431
- name: "minPtOut",
432
- type: "uint256",
433
- },
434
- {
435
- components: [
436
- {
437
- internalType: "uint256",
438
- name: "guessMin",
439
- type: "uint256",
440
- },
441
- {
442
- internalType: "uint256",
443
- name: "guessMax",
444
- type: "uint256",
445
- },
446
- {
447
- internalType: "uint256",
448
- name: "guessOffchain",
449
- type: "uint256",
450
- },
451
- {
452
- internalType: "uint256",
453
- name: "maxIteration",
454
- type: "uint256",
455
- },
456
- {
457
- internalType: "uint256",
458
- name: "eps",
459
- type: "uint256",
460
- },
461
- ],
462
- internalType: "struct ApproxParams",
463
- name: "guessPtOut",
464
- type: "tuple",
465
- },
466
- ],
467
- name: "swapExactSyForPt",
468
- outputs: [
469
- {
470
- internalType: "uint256",
471
- name: "netPtOut",
472
- type: "uint256",
473
- },
474
- {
475
- internalType: "uint256",
476
- name: "netSyFee",
477
- type: "uint256",
478
- },
479
- ],
480
- stateMutability: "nonpayable",
481
- type: "function",
482
- },
483
- {
484
- inputs: [
485
- {
486
- internalType: "address",
487
- name: "receiver",
488
- type: "address",
489
- },
490
- {
491
- internalType: "address",
492
- name: "market",
493
- type: "address",
494
- },
495
- {
496
- internalType: "uint256",
497
- name: "minPtOut",
498
- type: "uint256",
499
- },
500
- {
501
- components: [
502
- {
503
- internalType: "uint256",
504
- name: "guessMin",
505
- type: "uint256",
506
- },
507
- {
508
- internalType: "uint256",
509
- name: "guessMax",
510
- type: "uint256",
511
- },
512
- {
513
- internalType: "uint256",
514
- name: "guessOffchain",
515
- type: "uint256",
516
- },
517
- {
518
- internalType: "uint256",
519
- name: "maxIteration",
520
- type: "uint256",
521
- },
522
- {
523
- internalType: "uint256",
524
- name: "eps",
525
- type: "uint256",
526
- },
527
- ],
528
- internalType: "struct ApproxParams",
529
- name: "guessPtOut",
530
- type: "tuple",
531
- },
532
- {
533
- components: [
534
- {
535
- internalType: "address",
536
- name: "tokenIn",
537
- type: "address",
538
- },
539
- {
540
- internalType: "uint256",
541
- name: "netTokenIn",
542
- type: "uint256",
543
- },
544
- {
545
- internalType: "address",
546
- name: "tokenMintSy",
547
- type: "address",
548
- },
549
- {
550
- internalType: "address",
551
- name: "bulk",
552
- type: "address",
553
- },
554
- {
555
- internalType: "address",
556
- name: "pendleSwap",
557
- type: "address",
558
- },
559
- {
560
- components: [
561
- {
562
- internalType: "enum SwapType",
563
- name: "swapType",
564
- type: "uint8",
565
- },
566
- {
567
- internalType: "address",
568
- name: "extRouter",
569
- type: "address",
570
- },
571
- {
572
- internalType: "bytes",
573
- name: "extCalldata",
574
- type: "bytes",
575
- },
576
- {
577
- internalType: "bool",
578
- name: "needScale",
579
- type: "bool",
580
- },
581
- ],
582
- internalType: "struct SwapData",
583
- name: "swapData",
584
- type: "tuple",
585
- },
586
- ],
587
- internalType: "struct TokenInput",
588
- name: "input",
589
- type: "tuple",
590
- },
591
- ],
592
- name: "swapExactTokenForPt",
593
- outputs: [
594
- {
595
- internalType: "uint256",
596
- name: "netPtOut",
597
- type: "uint256",
598
- },
599
- {
600
- internalType: "uint256",
601
- name: "netSyFee",
602
- type: "uint256",
603
- },
604
- ],
605
- stateMutability: "payable",
606
- type: "function",
607
- },
608
- {
609
- inputs: [
610
- {
611
- internalType: "address",
612
- name: "receiver",
613
- type: "address",
614
- },
615
- {
616
- internalType: "address",
617
- name: "market",
618
- type: "address",
619
- },
620
- {
621
- internalType: "uint256",
622
- name: "exactSyOut",
623
- type: "uint256",
624
- },
625
- {
626
- internalType: "uint256",
627
- name: "maxPtIn",
628
- type: "uint256",
629
- },
630
- {
631
- components: [
632
- {
633
- internalType: "uint256",
634
- name: "guessMin",
635
- type: "uint256",
636
- },
637
- {
638
- internalType: "uint256",
639
- name: "guessMax",
640
- type: "uint256",
641
- },
642
- {
643
- internalType: "uint256",
644
- name: "guessOffchain",
645
- type: "uint256",
646
- },
647
- {
648
- internalType: "uint256",
649
- name: "maxIteration",
650
- type: "uint256",
651
- },
652
- {
653
- internalType: "uint256",
654
- name: "eps",
655
- type: "uint256",
656
- },
657
- ],
658
- internalType: "struct ApproxParams",
659
- name: "guessPtIn",
660
- type: "tuple",
661
- },
662
- ],
663
- name: "swapPtForExactSy",
664
- outputs: [
665
- {
666
- internalType: "uint256",
667
- name: "netPtIn",
668
- type: "uint256",
669
- },
670
- {
671
- internalType: "uint256",
672
- name: "netSyFee",
673
- type: "uint256",
674
- },
675
- ],
676
- stateMutability: "nonpayable",
677
- type: "function",
678
- },
679
- {
680
- inputs: [
681
- {
682
- internalType: "address",
683
- name: "receiver",
684
- type: "address",
685
- },
686
- {
687
- internalType: "address",
688
- name: "market",
689
- type: "address",
690
- },
691
- {
692
- internalType: "uint256",
693
- name: "exactPtOut",
694
- type: "uint256",
695
- },
696
- {
697
- internalType: "uint256",
698
- name: "maxSyIn",
699
- type: "uint256",
700
- },
701
- ],
702
- name: "swapSyForExactPt",
703
- outputs: [
704
- {
705
- internalType: "uint256",
706
- name: "netSyIn",
707
- type: "uint256",
708
- },
709
- {
710
- internalType: "uint256",
711
- name: "netSyFee",
712
- type: "uint256",
713
- },
714
- ],
715
- stateMutability: "nonpayable",
716
- type: "function",
717
- },
718
- ];
719
-
720
- const _bytecode =
721
- "0x608060405234801561001057600080fd5b50613770806100206000396000f3fe6080604052600436106100555760003560e01c80632032aecd1461005a5780636b8bdf321461009157806383c71b69146100b1578063a5f9931b146100d1578063b85f50ba146100e4578063dd371acd14610104575b600080fd5b34801561006657600080fd5b5061007a610075366004612f8f565b610124565b604051610088929190612fd5565b60405180910390f35b34801561009d57600080fd5b5061007a6100ac366004612f8f565b61029d565b3480156100bd57600080fd5b5061007a6100cc366004612ffb565b6104a4565b61007a6100df36600461306a565b610582565b3480156100f057600080fd5b5061007a6100ff3660046130e9565b610687565b34801561011057600080fd5b5061007a61011f366004612ffb565b6107fe565b6000806000856001600160a01b0316632c8ce6bc6040518163ffffffff1660e01b8152600401606060405180830381865afa158015610167573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061018b9190613154565b5091505061019b81338888610a2b565b604080516000815260208101918290526329910b1160e01b9091526001600160a01b038716906329910b11906101d8908a908990602481016131f1565b60408051808303816000875af11580156101f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061021a9190613218565b90935091508383101561024d5782846040516305221cf360e11b8152600401610244929190612fd5565b60405180910390fd5b6001600160a01b038088169087163360008051602061371b83398151915261027489610a4c565b61027d88610a69565b60405161028b929190612fd5565b60405180910390a45094509492505050565b6000806000856001600160a01b031663794052f3306040518263ffffffff1660e01b81526004016102ce919061323c565b61012060405180830381865afa1580156102ec573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103109190613292565b9050600080876001600160a01b0316632c8ce6bc6040518163ffffffff1660e01b8152600401606060405180830381865afa158015610353573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103779190613154565b925050915061039a610391826001600160a01b0316610a83565b84908942610ae9565b5090955050858511156103c457848660405163039d13e760e61b8152600401610244929190612fd5565b6103d082338a88610a2b565b60408051600081526020810191829052635b709f1760e01b9091526001600160a01b03891690635b709f179061040d908c908b90602481016131f1565b60408051808303816000875af115801561042b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061044f9190613218565b9450506001600160a01b03808a169089163360008051602061371b8339815191526104798b610a69565b6104828a610a4c565b604051610490929190612fd5565b60405180910390a450505094509492505050565b600080600080876001600160a01b0316632c8ce6bc6040518163ffffffff1660e01b8152600401606060405180830381865afa1580156104e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061050c9190613154565b925050915061051d82338a8a610a2b565b61052b8989838a8a8a610b42565b90945092506001600160a01b03808a169089163360008051602061371b83398151915261055788610a69565b6105608c610a4c565b60405161056e929190612fd5565b60405180910390a450509550959350505050565b600080600080876001600160a01b0316632c8ce6bc6040518163ffffffff1660e01b8152600401606060405180830381865afa1580156105c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105ea9190613154565b925050915060006105fe8984600189610c9f565b905061060e8a8a84848c8c610b42565b90955093506106206020870187613314565b6001600160a01b0316896001600160a01b0316336001600160a01b03166000805160206136fb8339815191528d6106568a610a69565b6106638c60200135610a4c565b60405161067293929190613331565b60405180910390a45050509550959350505050565b600080600080866001600160a01b0316632c8ce6bc6040518163ffffffff1660e01b8152600401606060405180830381865afa1580156106cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ef9190613154565b509150915061070081338989610a2b565b6000876001600160a01b03166329910b1161071b8589610e9c565b604080516000815260208101918290526001600160e01b031960e085901b1690915261074d91908b90602481016131f1565b60408051808303816000875af115801561076b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061078f9190613218565b945090506107a1898483896000610eda565b94506107b06020870187613314565b6001600160a01b0316886001600160a01b0316336001600160a01b03166000805160206136fb8339815191528c6107e68c610a4c565b6107ef8b610a69565b60405161049093929190613331565b6000806000866001600160a01b031663794052f3306040518263ffffffff1660e01b815260040161082f919061323c565b61012060405180830381865afa15801561084d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108719190613292565b9050600080886001600160a01b0316632c8ce6bc6040518163ffffffff1660e01b8152600401606060405180830381865afa1580156108b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108d89190613154565b925092505061090d6108f2826001600160a01b0316610a83565b8942610903368b90038b018b613352565b87939291906110a1565b509095505086851115610937578487604051633c0e098d60e11b8152600401610244929190612fd5565b61094382338b88610a2b565b60408051600080825260208201928390526329910b1160e01b9092526001600160a01b038b16906329910b1190610981908e908a90602481016131f1565b60408051808303816000875af115801561099f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c39190613218565b95509050888110156109d7576109d76133cf565b6001600160a01b03808c16908b163360008051602061371b8339815191526109fe8a610a4c565b610a078e610a69565b604051610a15929190612fd5565b60405180910390a4505050509550959350505050565b8015610a4657610a466001600160a01b038516848484611182565b50505050565b6000610a5782610a69565b610a63906000196133fb565b92915050565b60006001600160ff1b03821115610a7f57600080fd5b5090565b6000816001600160a01b0316631d52edc46040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610ac5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a63919061342b565b600080600080600080610b068a8a610b008b610a69565b8a6111ed565b925092509250610b1d610b1884611280565b61128e565b9550610b288261128e565b9450610b338161128e565b93505050509450945094915050565b6000806000876001600160a01b031663794052f3306040518263ffffffff1660e01b8152600401610b73919061323c565b61012060405180830381865afa158015610b91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb59190613292565b9050610be7610bcc886001600160a01b0316610a83565b8742610bdd36899003890189613352565b859392919061129d565b50925084831015610c0f578285604051634e6ffe4760e11b8152600401610244929190612fd5565b60408051600081526020810191829052635b709f1760e01b9091526001600160a01b03891690635b709f1790610c4c908c908790602481016131f1565b60408051808303816000875af1158015610c6a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c8e9190613218565b939a93995092975050505050505050565b600080610caf60a0840184613444565b610cbd906020810190613473565b9050600080826003811115610cd457610cd461348e565b03610cff57610cf4610ce96020860186613314565b33866020013561136a565b506020830135610e84565b6003826003811115610d1357610d1361348e565b03610d5257610d28610ce96020860186613314565b610cf4610d386020860186613314565b610d486060870160408801613314565b86602001356113d6565b6000610d616020860186613314565b6001600160a01b031603610d8457610d7f600033866020013561136a565b610daf565b610daf610d946020860186613314565b33610da560a0880160808901613314565b8760200135610a2b565b610dbf60a0850160808601613314565b6001600160a01b0316632bdb823c6000610ddc6020880188613314565b6001600160a01b031614610df1576000610df7565b85602001355b610e046020880188613314565b6020880135610e1660a08a018a613444565b6040518563ffffffff1660e01b8152600401610e34939291906134e6565b6000604051808303818588803b158015610e4d57600080fd5b505af1158015610e61573d6000803e3d6000fd5b5050505050610e81846040016020810190610e7c9190613314565b61149c565b90505b610e918787838888611526565b979650505050505050565b600080610eaf6080840160608501613314565b6001600160a01b031603610ec35782610ed3565b610ed36080830160608401613314565b9392505050565b600080610eea60a0850185613444565b610ef8906020810190613473565b90506000816003811115610f0e57610f0e61348e565b03610f2757610f20878787878761169d565b915061106a565b6003816003811115610f3b57610f3b61348e565b03610f9157610f4d308787878761169d565b9150610f75610f626060860160408701613314565b610f6f6020870187613314565b846113d6565b610f8c610f856020860186613314565b8884611829565b61106a565b6000610faf610fa660a0870160808801613314565b8888888861169d565b9050610fc160a0860160808701613314565b6001600160a01b0316632bdb823c610fdf6060880160408901613314565b83610fed60a08a018a613444565b6040518463ffffffff1660e01b815260040161100b939291906134e6565b600060405180830381600087803b15801561102557600080fd5b505af1158015611039573d6000803e3d6000fd5b5061104f9250610e7c9150506020870187613314565b92506110686110616020870187613314565b8985611829565b505b83602001358210156110975781846020013560405163c5b5576d60e01b8152600401610244929190612fd5565b5095945050505050565b60008080806110b18989886118ed565b905084604001516000036110e4576110d685602001516110d18b846119e7565b611a6b565b60208601526110e485611a81565b60005b856060015181101561115d5760006110ff8783611add565b90506000806111108d868e86611b49565b50915091508a821061114b5761112b828c8b60800151611b7a565b1561113f5791965094509250611177915050565b6020890183905261114f565b8289525b5050508060010190506110e7565b50604051637d388ed960e11b815260040160405180910390fd5b955095509592505050565b6040516001600160a01b0380851660248301528316604482015260648101829052610a469085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611bae565b60008060006112008760a0015185101590565b1561121e5760405163b2094b5960e01b815260040160405180910390fd5b86518512611244578651604051632185509b60e21b815261024491908790600401612fd5565b60006112518888876118ed565b905061125f88828989611c83565b919550935091506112758882898988878b611dd7565b509450945094915050565b6000610a63826000196133fb565b600080821215610a7f57600080fd5b600080806112ac8888876118ed565b905083604001516000036112de576112d084602001516110d1838b60000151611e5f565b60208501526112de84611a81565b60005b846060015181101561115d5760006112f98683611add565b905060008061130a8c868d86611ef3565b509150915089821161134157611325828b8a60800151611f25565b156113395791955090935061136092505050565b828852611352565b61134c6001846135b8565b60208901525b5050508060010190506112e1565b9550959350505050565b6001600160a01b0383166113bb578034146113b65760405162461bcd60e51b815260206004820152600c60248201526b0cae8d040dad2e6dac2e8c6d60a31b6044820152606401610244565b505050565b80156113b6576113b66001600160a01b038416833084611182565b6001600160a01b03831661143d57816001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b15801561141f57600080fd5b505af1158015611433573d6000803e3d6000fd5b5050505050505050565b604051632e1a7d4d60e01b8152600481018290526001600160a01b03841690632e1a7d4d90602401600060405180830381600087803b15801561147f57600080fd5b505af1158015611493573d6000803e3d6000fd5b50505050505050565b60006001600160a01b0382161561151f576040516370a0823160e01b81526001600160a01b038316906370a08231906114d990309060040161323c565b602060405180830381865afa1580156114f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061151a919061342b565b610a63565b4792915050565b6000808061153a6060850160408601613314565b6001600160a01b03161461154f576000611551565b845b905060006115656080850160608601613314565b6001600160a01b0316146115fd576115836080840160608501613314565b6001600160a01b031663b2767070828988886040518563ffffffff1660e01b81526004016115b393929190613331565b60206040518083038185885af11580156115d1573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906115f6919061342b565b9150611097565b6001600160a01b0386166320e8c565828961161e6060880160408901613314565b6040516001600160e01b031960e086901b1681526001600160a01b03928316600482015291166024820152604481018990526064810188905260840160206040518083038185885af1158015611678573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610e91919061342b565b600081156116ba576116ba85336116b48887610e9c565b87610a2b565b60006116cc6080850160608601613314565b6001600160a01b031614611774576116ea6080840160608501613314565b6040516341fadbb360e11b81526001600160a01b03888116600483015260248201879052600060448301526001606483015291909116906383f5b766906084016020604051808303816000875af1158015611749573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061176d919061342b565b9050611820565b6001600160a01b03851663769f8e5d87866117956060880160408901613314565b60405160e085901b6001600160e01b03191681526001600160a01b03938416600482015260248101929092529091166044820152600060648201526001608482015260a4016020604051808303816000875af11580156117f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061181d919061342b565b90505b95945050505050565b8060000361183657505050565b6001600160a01b0383166118d9576000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611891576040519150601f19603f3d011682016040523d82523d6000602084013e611896565b606091505b5050905080610a465760405162461bcd60e51b815260206004820152600f60248201526e195d1a081cd95b990819985a5b1959608a1b6044820152606401610244565b6113b66001600160a01b0384168383611f53565b6119186040518060800160405280600081526020016000815260200160008152602001600081525090565b60a0840151821061193c5760405163b2094b5960e01b815260040160405180910390fd5b6000828560a0015161194e91906135b8565b905061195a8582611f83565b8252602085015161196c908590611fe4565b60208301528451158061198157506020820151155b156119a8578451602083015160405163b1c4aefb60e01b8152610244929190600401612fd5565b6119c68560000151866101000151846020015185600001518561201b565b604083015260c08501516119da908261209c565b6060830152509392505050565b60008060009050600060018460200151611a0191906135b8565b90505b808214611a635760006002611a1983856135cb565b611a249060016135cb565b611a2e91906135f4565b90506000611a41868860000151846120d0565b1215611a5957611a526001826135b8565b9150611a5d565b8092505b50611a04565b509392505050565b6000818310611a7a5781610ed3565b5090919050565b602081015181511180611a9f5750670de0b6b3a76400008160800151115b15611ada57805160208201516080830151604051632cc06bc160e21b8152600481019390935260248301919091526044820152606401610244565b50565b600081158015611af05750604083015115155b15611b0057506040820151610a63565b6020830151835111611b305760208301518351600291611b1f916135cb565b611b2991906135f4565b9050610a63565b604051637d388ed960e11b815260040160405180910390fd5b60008080808080611b678989611b5e8a613608565b8d929190611c83565b919c909b50909950975050505050505050565b6000828410158015611ba65750611ba283611b9d84670de0b6b3a76400006135cb565b6121c2565b8411155b949350505050565b6000611c03826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166121e29092919063ffffffff16565b9050805160001480611c24575080806020019051810190611c249190613624565b6113b65760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610244565b600080600080611ca68860000151886020015189600001518a60400151896121f1565b90506000611cbc611cb787846122a2565b611280565b60608901519091506000871315611d2b576000611cd984836122a2565b9050670de0b6b3a7640000811215611d075760405163329e322960e21b815260048101829052602401610244565b611d23611d1c83670de0b6b3a7640000613641565b84906122d1565b915050611d58565b611d5581611d4181670de0b6b3a7640000613641565b611d4b90856133fb565b611cb79190613668565b90505b60006064611d698c60e00151610a69565b611d7390846133fb565b611d7d9190613668565b90506000611d8b8385613641565b905060008112611da457611d9f8a826122ef565b611dae565b611dae8a8261231c565b9750611dba8a846122ef565b9650611dc68a836122ef565b955050505050509450945094915050565b6000818860a00151611de991906135b8565b8851909150611df89086612349565b8852611e12611e078486613696565b60208a015190612349565b602089018190528851611e3791611e2a908990611fe4565b895160408b015185612390565b610100890181905260000361143357604051635534d70f60e11b815260040160405180910390fd5b600080611e8c611e87856000015186604001518760600151611e819190613641565b906122d1565b6123e3565b90506000611eac611ea5670de0b6b3a764000084613696565b83906122a2565b90506000611eca866020015186611ec39190613696565b83906122d1565b90506000611ed88287613641565b90506103e8611ee9826103e76136be565b610e9191906135f4565b60008080808080611f068a8a8a8a611c83565b92509250925082611f1690613608565b9a919950975095505050505050565b6000828411158015611ba65750611f4883611b9d84670de0b6b3a76400006135b8565b909310159392505050565b6040516001600160a01b0383166024820152604481018290526113b690849063a9059cbb60e01b906064016111b6565b6000611f8e82610a69565b611fa5611fa06201518061016d6136be565b610a69565b8460800151611fb491906133fb565b611fbe9190613668565b905060008113610a6357604051630e520c3b60e11b815260048101829052602401610244565b60008060008312611ff6576001611ffa565b6000195b9050612011611fa08561200c866127f8565b61280a565b611ba690826133fb565b600080612028868461209c565b9050670de0b6b3a76400008112156120565760405163329e322960e21b815260048101829052602401610244565b600061206c612065878a613696565b89906122a2565b9050600061207982612829565b905061208581876122a2565b61208f9084613641565b9998505050505050505050565b6000806120ae6201518061016d6136be565b6120b884866136be565b6120c291906135f4565b9050611ba6611e8782610a69565b6000808285602001516120e39190613641565b905060006120f18585613696565b90506000821380156121035750600081135b6121445760405162461bcd60e51b81526020600482015260126024820152711a5b9d985b1a59081c1d151bd3585c9ad95d60721b6044820152606401610244565b600061217261215384846133fb565b60208901516121629089613696565b61216c90886133fb565b906122a2565b9050600061218861218384866122a2565b612878565b88519091506000906121a390670de0b6b3a7640000906122a2565b90506121b381611e818486613641565b896040015161208f9190613641565b6000806121cf83856136be565b670de0b6b3a76400009004949350505050565b6060611ba68484600085612909565b6000806121fe8784612349565b9050600061220f611ea5888a613696565b9050670d529ae9e86000008113156122465780670d529ae9e8600000604051637e34684f60e11b8152600401610244929190612fd5565b600061225182612829565b90508561225e82896122a2565b6122689190613696565b9350670de0b6b3a76400008412156122965760405163329e322960e21b815260048101859052602401610244565b50505095945050505050565b6000806122b7670de0b6b3a7640000856133fb565b90508281816122c8576122c86135de565b05949350505050565b6000806122de83856133fb565b9050670de0b6b3a7640000816122c8565b60008060008312612301576001612305565b6000195b9050612011611fa085612317866127f8565b6129d9565b6000806000831261232e576001612332565b6000195b9050612011611fa085612344866127f8565b6129ee565b6000818312156123865760405162461bcd60e51b81526020600482015260086024820152676e6567617469766560c01b6044820152606401610244565b610ed38284613641565b6000806123a18787878760006121f1565b905060006123b1610b1883612878565b9050836123c36201518061016d6136be565b6123cd90836136be565b6123d791906135f4565b98975050505050505050565b6000680238fd42c5cf03ffff198212158015612408575068070c1cc73b00c800008213155b6124475760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a5908195e1c1bdb995b9d60821b6044820152606401610244565b600082121561247f5761245c826000036123e3565b6a0c097ce7bc90715b34b9f160241b81612478576124786135de565b0592915050565b60006806f05b59d3b200000083126124bd57506806f05b59d3b1ffffff199091019072195e54c5dd42177f53a27172fa9ec63026282760241b6124f3565b6803782dace9d900000083126124ef57506803782dace9d8ffffff19909101906b1425982cf597cd205cef73806124f3565b5060015b6064929092029168056bc75e2d6310000068ad78ebc5ac6200000084126125435768ad78ebc5ac61ffffff199093019268056bc75e2d631000006e01855144814a7ff805980ff008400082020590505b6856bc75e2d631000000841261257f576856bc75e2d630ffffff199093019268056bc75e2d631000006b02df0ab5a80a22c61ab5a70082020590505b682b5e3af16b1880000084126125b957682b5e3af16b187fffff199093019268056bc75e2d63100000693f1fce3da636ea5cf85082020590505b6815af1d78b58c40000084126125f3576815af1d78b58c3fffff199093019268056bc75e2d63100000690127fa27722cc06cc5e282020590505b680ad78ebc5ac6200000841261262c57680ad78ebc5ac61fffff199093019268056bc75e2d6310000068280e60114edb805d0382020590505b68056bc75e2d6310000084126126655768056bc75e2d630fffff199093019268056bc75e2d63100000680ebc5fb4174612111082020590505b6802b5e3af16b1880000841261269e576802b5e3af16b187ffff199093019268056bc75e2d631000006808f00f760a4b2db55d82020590505b68015af1d78b58c4000084126126d75768015af1d78b58c3ffff199093019268056bc75e2d631000006806f5f177578893793782020590505b68056bc75e2d631000008481019085906002908280020505918201919050600368056bc75e2d631000008783020505918201919050600468056bc75e2d631000008783020505918201919050600568056bc75e2d631000008783020505918201919050600668056bc75e2d631000008783020505918201919050600768056bc75e2d631000008783020505918201919050600868056bc75e2d631000008783020505918201919050600968056bc75e2d631000008783020505918201919050600a68056bc75e2d631000008783020505918201919050600b68056bc75e2d631000008783020505918201919050600c68056bc75e2d631000008783020505918201919050606468056bc75e2d63100000848402058502059695505050505050565b6000808213610a7f5761151a82613608565b6000670de0b6b3a764000061281f84846136be565b610ed391906135f4565b6000670de0b6b3a764000082036128535760405163a9c8b14d60e01b815260040160405180910390fd5b600061287161286a84670de0b6b3a7640000613641565b84906122a2565b9050610ed3815b60008082136128b95760405162461bcd60e51b815260206004820152600d60248201526c6f7574206f6620626f756e647360981b6044820152606401610244565b670c7d713b49da0000821380156128d75750670f43fc2c04ee000082125b156128fb57670de0b6b3a76400006128ee83612a1a565b81612478576124786135de565b610a6382612b39565b919050565b60608247101561296a5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610244565b600080866001600160a01b0316858760405161298691906136d5565b60006040518083038185875af1925050503d80600081146129c3576040519150601f19603f3d011682016040523d82523d6000602084013e6129c8565b606091505b5091509150610e9187838387612edc565b60008261281f670de0b6b3a7640000846136be565b600082600181612a06670de0b6b3a7640000866136be565b612a1091906135cb565b61281f91906135b8565b670de0b6b3a7640000026000806a0c097ce7bc90715b34b9f160241b808401906ec097ce7bc90715b34b9f0fffffffff1985010281612a5b57612a5b6135de565b05905060006a0c097ce7bc90715b34b9f160241b82800205905081806a0c097ce7bc90715b34b9f160241b81840205915060038205016a0c097ce7bc90715b34b9f160241b82840205915060058205016a0c097ce7bc90715b34b9f160241b82840205915060078205016a0c097ce7bc90715b34b9f160241b82840205915060098205016a0c097ce7bc90715b34b9f160241b828402059150600b8205016a0c097ce7bc90715b34b9f160241b828402059150600d8205016a0c097ce7bc90715b34b9f160241b828402059150600f82050160020295945050505050565b6000670de0b6b3a7640000821215612b7a57612b71826a0c097ce7bc90715b34b9f160241b81612b6b57612b6b6135de565b05612b39565b60000392915050565b6000775803bcc5cb9634ba4cfb2213f784019318ed4dcb6017880f60361b8312612bc55772195e54c5dd42177f53a27172fa9ec63026282760241b830592506806f05b59d3b2000000015b6f8bcc0026baae9e45e470190267a230cf60191b8312612bfc576b1425982cf597cd205cef7380830592506803782dace9d9000000015b606492830292026e01855144814a7ff805980ff00840008312612c44576e01855144814a7ff805980ff008400068056bc75e2d63100000840205925068ad78ebc5ac62000000015b6b02df0ab5a80a22c61ab5a7008312612c7f576b02df0ab5a80a22c61ab5a70068056bc75e2d6310000084020592506856bc75e2d631000000015b693f1fce3da636ea5cf8508312612cb657693f1fce3da636ea5cf85068056bc75e2d631000008402059250682b5e3af16b18800000015b690127fa27722cc06cc5e28312612ced57690127fa27722cc06cc5e268056bc75e2d6310000084020592506815af1d78b58c400000015b68280e60114edb805d038312612d225768280e60114edb805d0368056bc75e2d631000008402059250680ad78ebc5ac6200000015b680ebc5fb417461211108312612d4d57680ebc5fb4174612111068056bc75e2d631000009384020592015b6808f00f760a4b2db55d8312612d82576808f00f760a4b2db55d68056bc75e2d6310000084020592506802b5e3af16b1880000015b6806f5f17757889379378312612db7576806f5f177578893793768056bc75e2d63100000840205925068015af1d78b58c40000015b6806248f33704b2866038312612deb576806248f33704b28660368056bc75e2d63100000840205925067ad78ebc5ac620000015b6805c548670b9510e7ac8312612e1f576805c548670b9510e7ac68056bc75e2d6310000084020592506756bc75e2d6310000015b600068056bc75e2d63100000840168056bc75e2d631000008086030281612e4857612e486135de565b059050600068056bc75e2d63100000828002059050818068056bc75e2d63100000818402059150600382050168056bc75e2d63100000828402059150600582050168056bc75e2d63100000828402059150600782050168056bc75e2d63100000828402059150600982050168056bc75e2d63100000828402059150600b820501600202606485820105979650505050505050565b60608315612f4b578251600003612f44576001600160a01b0385163b612f445760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610244565b5081611ba6565b611ba68383815115612f605781518083602001fd5b8060405162461bcd60e51b815260040161024491906136e7565b6001600160a01b0381168114611ada57600080fd5b60008060008060808587031215612fa557600080fd5b8435612fb081612f7a565b93506020850135612fc081612f7a565b93969395505050506040820135916060013590565b918252602082015260400190565b600060a08284031215612ff557600080fd5b50919050565b6000806000806000610120868803121561301457600080fd5b853561301f81612f7a565b9450602086013561302f81612f7a565b9350604086013592506060860135915061304c8760808801612fe3565b90509295509295909350565b600060c08284031215612ff557600080fd5b6000806000806000610120868803121561308357600080fd5b853561308e81612f7a565b9450602086013561309e81612f7a565b9350604086013592506130b48760608801612fe3565b91506101008601356001600160401b038111156130d057600080fd5b6130dc88828901613058565b9150509295509295909350565b600080600080608085870312156130ff57600080fd5b843561310a81612f7a565b9350602085013561311a81612f7a565b92506040850135915060608501356001600160401b0381111561313c57600080fd5b61314887828801613058565b91505092959194509250565b60008060006060848603121561316957600080fd5b835161317481612f7a565b602085015190935061318581612f7a565b604085015190925061319681612f7a565b809150509250925092565b60005b838110156131bc5781810151838201526020016131a4565b50506000910152565b600081518084526131dd8160208601602086016131a1565b601f01601f19169290920160200192915050565b60018060a01b038416815282602082015260606040820152600061182060608301846131c5565b6000806040838503121561322b57600080fd5b505080516020909101519092909150565b6001600160a01b0391909116815260200190565b60405161012081016001600160401b038111828210171561328157634e487b7160e01b600052604160045260246000fd5b60405290565b805161290481612f7a565b600061012082840312156132a557600080fd5b6132ad613250565b8251815260208301516020820152604083015160408201526132d160608401613287565b60608201526080830151608082015260a083015160a082015260c083015160c082015260e083015160e08201526101008084015181830152508091505092915050565b60006020828403121561332657600080fd5b8135610ed381612f7a565b6001600160a01b039390931683526020830191909152604082015260600190565b600060a0828403121561336457600080fd5b60405160a081016001600160401b038111828210171561339457634e487b7160e01b600052604160045260246000fd5b806040525082358152602083013560208201526040830135604082015260608301356060820152608083013560808201528091505092915050565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052601160045260246000fd5b80820260008212600160ff1b84141615613417576134176133e5565b8181058314821517610a6357610a636133e5565b60006020828403121561343d57600080fd5b5051919050565b60008235607e1983360301811261345a57600080fd5b9190910192915050565b80356004811061290457600080fd5b60006020828403121561348557600080fd5b610ed382613464565b634e487b7160e01b600052602160045260246000fd5b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b8015158114611ada57600080fd5b8035612904816134cd565b6001600160a01b038481168252602082018490526060604083015260009061350d84613464565b6004811061352b57634e487b7160e01b600052602160045260246000fd5b6060840152602084013561353e81612f7a565b166080830152604083013536849003601e1901811261355c57600080fd5b83016020810190356001600160401b0381111561357857600080fd5b80360382131561358757600080fd5b608060a085015261359c60e0850182846134a4565b9150506135ab606085016134db565b80151560c0850152611097565b81810381811115610a6357610a636133e5565b80820180821115610a6357610a636133e5565b634e487b7160e01b600052601260045260246000fd5b600082613603576136036135de565b500490565b6000600160ff1b820161361d5761361d6133e5565b5060000390565b60006020828403121561363657600080fd5b8151610ed3816134cd565b8181036000831280158383131683831282161715613661576136616133e5565b5092915050565b600082613677576136776135de565b600160ff1b821460001984141615613691576136916133e5565b500590565b80820182811260008312801582168215821617156136b6576136b66133e5565b505092915050565b8082028115828204841417610a6357610a636133e5565b6000825161345a8184602087016131a1565b602081526000610ed360208301846131c556fe78e08a1e3c7a72f78d2c8ad8254052914bad73f8c681dbdc4267d0bb8ac9423c3f5e2944826baeaed8eb77f0f74e6088a154a0fc1317f062fd984585607b4739a26469706673582212206db58cc131d8a55cfe07f92998164b23aa23ba3f49720bdd10674f58b68b5a2b64736f6c63430008170033";
722
-
723
- type ActionSwapPTConstructorParams =
724
- | [signer?: Signer]
725
- | ConstructorParameters<typeof ContractFactory>;
726
-
727
- const isSuperArgs = (
728
- xs: ActionSwapPTConstructorParams
729
- ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
730
-
731
- export class ActionSwapPT__factory extends ContractFactory {
732
- constructor(...args: ActionSwapPTConstructorParams) {
733
- if (isSuperArgs(args)) {
734
- super(...args);
735
- } else {
736
- super(_abi, _bytecode, args[0]);
737
- }
738
- this.contractName = "ActionSwapPT";
739
- }
740
-
741
- deploy(
742
- overrides?: Overrides & { from?: string | Promise<string> }
743
- ): Promise<ActionSwapPT> {
744
- return super.deploy(overrides || {}) as Promise<ActionSwapPT>;
745
- }
746
- getDeployTransaction(
747
- overrides?: Overrides & { from?: string | Promise<string> }
748
- ): TransactionRequest {
749
- return super.getDeployTransaction(overrides || {});
750
- }
751
- attach(address: string): ActionSwapPT {
752
- return super.attach(address) as ActionSwapPT;
753
- }
754
- connect(signer: Signer): ActionSwapPT__factory {
755
- return super.connect(signer) as ActionSwapPT__factory;
756
- }
757
- static readonly contractName: "ActionSwapPT";
758
- public readonly contractName: "ActionSwapPT";
759
- static readonly bytecode = _bytecode;
760
- static readonly abi = _abi;
761
- static createInterface(): ActionSwapPTInterface {
762
- return new utils.Interface(_abi) as ActionSwapPTInterface;
763
- }
764
- static connect(
765
- address: string,
766
- signerOrProvider: Signer | Provider
767
- ): ActionSwapPT {
768
- return new Contract(address, _abi, signerOrProvider) as ActionSwapPT;
769
- }
770
- }