@pendle/core-v2 6.6.0 → 6.6.1

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 (224) hide show
  1. package/build/artifacts/contracts/cross-chain/FixedPricePTAMMV2.sol/FixedPricePTAMMV2.dbg.json +4 -0
  2. package/build/artifacts/contracts/cross-chain/FixedPricePTAMMV2.sol/FixedPricePTAMMV2.json +766 -0
  3. package/build/artifacts/contracts/cross-chain/PendleSwapHelper.sol/PendleSwapHelper.dbg.json +4 -0
  4. package/build/artifacts/contracts/cross-chain/PendleSwapHelper.sol/PendleSwapHelper.json +99 -0
  5. package/build/artifacts/contracts/cross-chain/funder/BridgeFunder.sol/BridgeFunder.dbg.json +4 -0
  6. package/build/artifacts/contracts/cross-chain/funder/BridgeFunder.sol/BridgeFunder.json +210 -0
  7. package/build/artifacts/contracts/cross-chain/oftImpl/hub/OFTAdapterAltImpl.sol/OFTAdapterAltImpl.dbg.json +4 -0
  8. package/build/artifacts/contracts/cross-chain/oftImpl/hub/OFTAdapterAltImpl.sol/OFTAdapterAltImpl.json +1294 -0
  9. package/build/artifacts/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalTokenAlt.sol/PendleBridgedPrincipalTokenAlt.dbg.json +4 -0
  10. package/build/artifacts/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalTokenAlt.sol/PendleBridgedPrincipalTokenAlt.json +1602 -0
  11. package/build/artifacts/contracts/interfaces/IMarketSweed.sol/IMarketSweed.dbg.json +1 -1
  12. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiqV3.sol/IPActionAddRemoveLiqV3.dbg.json +1 -1
  13. package/build/artifacts/contracts/interfaces/IPActionCallbackV3.sol/IPActionCallbackV3.dbg.json +1 -1
  14. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
  15. package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
  16. package/build/artifacts/contracts/interfaces/IPActionSimple.sol/IPActionSimple.dbg.json +1 -1
  17. package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
  18. package/build/artifacts/contracts/interfaces/IPActionStorageV4.sol/IPActionStorageV4.dbg.json +1 -1
  19. package/build/artifacts/contracts/interfaces/IPActionSwapPTV3.sol/IPActionSwapPTV3.dbg.json +1 -1
  20. package/build/artifacts/contracts/interfaces/IPActionSwapYTV3.sol/IPActionSwapYTV3.dbg.json +1 -1
  21. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
  22. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.json +0 -88
  23. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionAddRemoveLiqV3Events.dbg.json +1 -1
  24. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionMiscV3Events.dbg.json +1 -1
  25. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionStorageEvents.dbg.json +1 -1
  26. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapPTV3Events.dbg.json +1 -1
  27. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapYTV3Events.dbg.json +1 -1
  28. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPAllEventsV3.dbg.json +1 -1
  29. package/build/artifacts/contracts/interfaces/IPBridgeFunder.sol/IPBridgeFunder.dbg.json +4 -0
  30. package/build/artifacts/contracts/interfaces/IPBridgeFunder.sol/IPBridgeFunder.json +85 -0
  31. package/build/artifacts/contracts/interfaces/IPFixedPricePTAMMV2.sol/IPFixedPricePTAMMSwapCallback.dbg.json +4 -0
  32. package/build/artifacts/contracts/interfaces/{IPFixedPricePTAMM.sol → IPFixedPricePTAMMV2.sol}/IPFixedPricePTAMMSwapCallback.json +1 -1
  33. package/build/artifacts/contracts/interfaces/IPFixedPricePTAMMV2.sol/IPFixedPricePTAMMV2.dbg.json +4 -0
  34. package/build/artifacts/contracts/interfaces/{IPFixedPricePTAMM.sol/IPFixedPricePTAMM.json → IPFixedPricePTAMMV2.sol/IPFixedPricePTAMMV2.json} +285 -93
  35. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitOrderType.dbg.json +1 -1
  36. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouter.dbg.json +1 -1
  37. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouter.json +156 -0
  38. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouterCallback.dbg.json +1 -1
  39. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
  40. package/build/artifacts/contracts/interfaces/IPSwapHelper.sol/IPSwapHelper.dbg.json +4 -0
  41. package/build/artifacts/contracts/interfaces/{IPActionCrossChain.sol/IPActionCrossChain.json → IPSwapHelper.sol/IPSwapHelper.json} +2 -2
  42. package/build/artifacts/contracts/limit/LimitMathCore.sol/LimitMathCore.dbg.json +1 -1
  43. package/build/artifacts/contracts/limit/LimitMathCore.sol/LimitMathCore.json +2 -2
  44. package/build/artifacts/contracts/limit/LimitRouterBase.sol/LimitRouterBase.dbg.json +1 -1
  45. package/build/artifacts/contracts/limit/LimitRouterBase.sol/LimitRouterBase.json +258 -1
  46. package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.dbg.json +1 -1
  47. package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.json +265 -3
  48. package/build/artifacts/contracts/limit/helpers/MintSyHelper.sol/MintSyHelper.dbg.json +4 -0
  49. package/build/artifacts/contracts/limit/helpers/MintSyHelper.sol/MintSyHelper.json +156 -0
  50. package/build/artifacts/contracts/offchain-helpers/ExpiredLpPtRedeemer.sol/ExpiredLpPtRedeemer.dbg.json +1 -1
  51. package/build/artifacts/contracts/offchain-helpers/ExpiredLpPtRedeemer.sol/ExpiredLpPtRedeemer.json +2 -2
  52. package/build/artifacts/contracts/offchain-helpers/LimitBackendHelperV2.sol/LimitBackendHelperV2.dbg.json +1 -1
  53. package/build/artifacts/contracts/offchain-helpers/LimitBackendHelperV2.sol/LimitBackendHelperV2.json +2 -2
  54. package/build/artifacts/contracts/offchain-helpers/MarketSweed.sol/MarketSweed.dbg.json +1 -1
  55. package/build/artifacts/contracts/offchain-helpers/MarketSweed.sol/MarketSweed.json +2 -2
  56. package/build/artifacts/contracts/offchain-helpers/PendleFeeSetter.sol/PendleFeeSetter.dbg.json +1 -1
  57. package/build/artifacts/contracts/offchain-helpers/PendleFeeSetter.sol/PendleFeeSetter.json +33 -2
  58. package/build/artifacts/contracts/offchain-helpers/PendleProxyAdmin.sol/PendleProxyAdmin.dbg.json +4 -0
  59. package/build/artifacts/contracts/offchain-helpers/PendleProxyAdmin.sol/PendleProxyAdmin.json +171 -0
  60. package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol/PendleCommonPoolDeployHelperV2.dbg.json +1 -1
  61. package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol/PendleCommonPoolDeployHelperV2.json +2 -2
  62. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
  63. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.json +2 -2
  64. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.dbg.json +1 -1
  65. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.json +2 -2
  66. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
  67. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +2 -2
  68. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
  69. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +2 -2
  70. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
  71. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +2 -2
  72. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
  73. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +2 -2
  74. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
  75. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +2 -2
  76. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
  77. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +2 -2
  78. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
  79. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +2 -2
  80. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.dbg.json +1 -1
  81. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.json +2 -2
  82. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.dbg.json +1 -1
  83. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.json +2 -2
  84. package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
  85. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.dbg.json +1 -1
  86. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.json +2 -2
  87. package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.dbg.json +1 -1
  88. package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.json +2 -2
  89. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.dbg.json +1 -1
  90. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.json +2 -2
  91. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.dbg.json +1 -1
  92. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.json +2 -2
  93. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.dbg.json +1 -1
  94. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.json +2 -2
  95. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.dbg.json +1 -1
  96. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.json +2 -2
  97. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.dbg.json +1 -1
  98. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.json +2 -2
  99. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.dbg.json +1 -1
  100. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.json +2 -2
  101. package/build/artifacts/contracts/router/Reflector.sol/Reflector.dbg.json +1 -1
  102. package/build/artifacts/contracts/router/Reflector.sol/Reflector.json +2 -2
  103. package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
  104. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.dbg.json +1 -1
  105. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.json +2 -2
  106. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.dbg.json +1 -1
  107. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.json +2 -2
  108. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.dbg.json +1 -1
  109. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.json +2 -2
  110. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.dbg.json +1 -1
  111. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.json +2 -2
  112. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.dbg.json +1 -1
  113. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.json +2 -2
  114. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.dbg.json +1 -1
  115. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.json +2 -2
  116. package/contracts/cross-chain/FixedPricePTAMMV2.sol +162 -0
  117. package/contracts/{router/ActionCrossChain.sol → cross-chain/PendleSwapHelper.sol} +11 -7
  118. package/contracts/cross-chain/funder/BridgeFunder.sol +61 -0
  119. package/contracts/cross-chain/oftImpl/hub/OFTAdapterAltImpl.sol +55 -0
  120. package/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalTokenAlt.sol +64 -0
  121. package/contracts/interfaces/IPAllActionTypeV3.sol +1 -0
  122. package/contracts/interfaces/IPAllActionV3.sol +1 -3
  123. package/contracts/interfaces/IPBridgeFunder.sol +17 -0
  124. package/contracts/interfaces/IPFixedPricePTAMMV2.sol +58 -0
  125. package/contracts/interfaces/IPLimitRouter.sol +22 -0
  126. package/contracts/interfaces/{IPActionCrossChain.sol → IPSwapHelper.sol} +1 -1
  127. package/contracts/limit/LimitRouterBase.sol +101 -47
  128. package/contracts/limit/PendleLimitRouter.sol +1 -1
  129. package/contracts/limit/helpers/MintSyHelper.sol +114 -0
  130. package/contracts/offchain-helpers/PendleFeeSetter.sol +19 -1
  131. package/contracts/offchain-helpers/PendleProxyAdmin.sol +11 -0
  132. package/contracts/router/base/ActionBase.sol +16 -2
  133. package/deployments/1-core.json +1 -0
  134. package/deployments/1-offchain-helper.json +1 -1
  135. package/deployments/10-core.json +1 -0
  136. package/deployments/10-offchain-helper.json +1 -1
  137. package/deployments/130-core.json +1 -0
  138. package/deployments/143-core.json +1 -0
  139. package/deployments/146-core.json +1 -0
  140. package/deployments/146-offchain-helper.json +1 -1
  141. package/deployments/42161-core.json +1 -0
  142. package/deployments/42161-offchain-helper.json +1 -1
  143. package/deployments/4217-core.json +14 -0
  144. package/deployments/43114-core.json +1 -0
  145. package/deployments/5000-core.json +1 -0
  146. package/deployments/5000-offchain-helper.json +1 -1
  147. package/deployments/56-core.json +1 -0
  148. package/deployments/56-offchain-helper.json +1 -1
  149. package/deployments/57073-core.json +1 -0
  150. package/deployments/747474-core.json +1 -0
  151. package/deployments/80094-core.json +1 -0
  152. package/deployments/80094-offchain-helper.json +1 -1
  153. package/deployments/8453-core.json +1 -0
  154. package/deployments/8453-offchain-helper.json +1 -1
  155. package/deployments/9745-core.json +1 -0
  156. package/deployments/9745-offchain-helper.json +1 -1
  157. package/deployments/999-core.json +1 -0
  158. package/deployments/999-offchain-helper.json +1 -1
  159. package/package.json +1 -1
  160. package/typechain-types/BridgeFunder.ts +344 -0
  161. package/typechain-types/FixedPricePTAMMV2.ts +1104 -0
  162. package/typechain-types/IPAllActionV3.ts +0 -54
  163. package/typechain-types/IPBridgeFunder.ts +165 -0
  164. package/typechain-types/IPFixedPricePTAMMV2.ts +864 -0
  165. package/typechain-types/IPLimitRouter.ts +104 -0
  166. package/typechain-types/IPSwapHelper.ts +161 -0
  167. package/typechain-types/LimitRouterBase.ts +233 -5
  168. package/typechain-types/MintSyHelper.ts +230 -0
  169. package/typechain-types/OFTAdapterAltImpl.ts +1350 -0
  170. package/typechain-types/PendleBridgedPrincipalTokenAlt.ts +1708 -0
  171. package/typechain-types/PendleFeeSetter.ts +53 -0
  172. package/typechain-types/PendleLimitRouter.ts +233 -5
  173. package/typechain-types/PendleProxyAdmin.ts +341 -0
  174. package/typechain-types/PendleSwapHelper.ts +161 -0
  175. package/typechain-types/ProxyAdmin.ts +341 -0
  176. package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +1 -1
  177. package/typechain-types/factories/ActionCallbackV3__factory.ts +1 -1
  178. package/typechain-types/factories/ActionInfoStatic__factory.ts +1 -1
  179. package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +1 -1
  180. package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +1 -1
  181. package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +1 -1
  182. package/typechain-types/factories/ActionMiscV3__factory.ts +1 -1
  183. package/typechain-types/factories/ActionSimple__factory.ts +1 -1
  184. package/typechain-types/factories/ActionStorageStatic__factory.ts +1 -1
  185. package/typechain-types/factories/ActionStorageV4__factory.ts +1 -1
  186. package/typechain-types/factories/ActionSwapPTV3__factory.ts +1 -1
  187. package/typechain-types/factories/ActionSwapYTV3__factory.ts +1 -1
  188. package/typechain-types/factories/ActionVePendleStatic__factory.ts +1 -1
  189. package/typechain-types/factories/BridgeFunder__factory.ts +265 -0
  190. package/typechain-types/factories/ExpiredLpPtRedeemer__factory.ts +1 -1
  191. package/typechain-types/factories/FixedPricePTAMMV2__factory.ts +824 -0
  192. package/typechain-types/factories/IPAllActionV3__factory.ts +0 -88
  193. package/typechain-types/factories/IPBridgeFunder__factory.ts +100 -0
  194. package/typechain-types/factories/IPFixedPricePTAMMV2__factory.ts +621 -0
  195. package/typechain-types/factories/IPLimitRouter__factory.ts +156 -0
  196. package/typechain-types/factories/IPSwapHelper__factory.ts +111 -0
  197. package/typechain-types/factories/LimitBackendHelperV2__factory.ts +1 -1
  198. package/typechain-types/factories/LimitRouterBase__factory.ts +258 -1
  199. package/typechain-types/factories/MarketSweed__factory.ts +1 -1
  200. package/typechain-types/factories/MintSyHelper__factory.ts +168 -0
  201. package/typechain-types/factories/OFTAdapterAltImpl__factory.ts +1363 -0
  202. package/typechain-types/factories/PendleBridgedPrincipalTokenAlt__factory.ts +1702 -0
  203. package/typechain-types/factories/PendleCommonPoolDeployHelperV2__factory.ts +1 -1
  204. package/typechain-types/factories/PendleFeeSetter__factory.ts +36 -1
  205. package/typechain-types/factories/PendleLimitRouter__factory.ts +268 -3
  206. package/typechain-types/factories/PendlePoolDeployHelperV2__factory.ts +1 -1
  207. package/typechain-types/factories/PendlePoolDeployHelper__factory.ts +1 -1
  208. package/typechain-types/factories/PendleProxyAdmin__factory.ts +229 -0
  209. package/typechain-types/factories/PendleRouterStatic__factory.ts +1 -1
  210. package/typechain-types/factories/PendleRouterV4__factory.ts +1 -1
  211. package/typechain-types/factories/PendleSwapHelper__factory.ts +152 -0
  212. package/typechain-types/factories/ProxyAdmin__factory.ts +210 -0
  213. package/typechain-types/factories/Reflector__factory.ts +1 -1
  214. package/typechain-types/hardhat.d.ts +108 -0
  215. package/typechain-types/index.ts +22 -0
  216. package/build/artifacts/contracts/cross-chain/FixedPricePTAMM.sol/FixedPricePTAMM.dbg.json +0 -4
  217. package/build/artifacts/contracts/cross-chain/FixedPricePTAMM.sol/FixedPricePTAMM.json +0 -667
  218. package/build/artifacts/contracts/interfaces/IPActionCrossChain.sol/IPActionCrossChain.dbg.json +0 -4
  219. package/build/artifacts/contracts/interfaces/IPFixedPricePTAMM.sol/IPFixedPricePTAMM.dbg.json +0 -4
  220. package/build/artifacts/contracts/interfaces/IPFixedPricePTAMM.sol/IPFixedPricePTAMMSwapCallback.dbg.json +0 -4
  221. package/build/artifacts/contracts/router/ActionCrossChain.sol/ActionCrossChain.dbg.json +0 -4
  222. package/build/artifacts/contracts/router/ActionCrossChain.sol/ActionCrossChain.json +0 -99
  223. package/contracts/cross-chain/FixedPricePTAMM.sol +0 -200
  224. package/contracts/interfaces/IPFixedPricePTAMM.sol +0 -69
@@ -26,6 +26,25 @@ const _abi = [
26
26
  name: "LnFeeRateRootsSet",
27
27
  type: "event",
28
28
  },
29
+ {
30
+ anonymous: false,
31
+ inputs: [
32
+ {
33
+ indexed: false,
34
+ internalType: "address",
35
+ name: "signer1",
36
+ type: "address",
37
+ },
38
+ {
39
+ indexed: false,
40
+ internalType: "address",
41
+ name: "signer2",
42
+ type: "address",
43
+ },
44
+ ],
45
+ name: "MintSySignersSet",
46
+ type: "event",
47
+ },
29
48
  {
30
49
  anonymous: false,
31
50
  inputs: [
@@ -274,6 +293,19 @@ const _abi = [
274
293
  stateMutability: "view",
275
294
  type: "function",
276
295
  },
296
+ {
297
+ inputs: [],
298
+ name: "ROUTER",
299
+ outputs: [
300
+ {
301
+ internalType: "address",
302
+ name: "",
303
+ type: "address",
304
+ },
305
+ ],
306
+ stateMutability: "view",
307
+ type: "function",
308
+ },
277
309
  {
278
310
  inputs: [],
279
311
  name: "WNATIVE",
@@ -698,6 +730,104 @@ const _abi = [
698
730
  stateMutability: "view",
699
731
  type: "function",
700
732
  },
733
+ {
734
+ inputs: [
735
+ {
736
+ components: [
737
+ {
738
+ components: [
739
+ {
740
+ internalType: "uint256",
741
+ name: "salt",
742
+ type: "uint256",
743
+ },
744
+ {
745
+ internalType: "uint256",
746
+ name: "expiry",
747
+ type: "uint256",
748
+ },
749
+ {
750
+ internalType: "uint256",
751
+ name: "nonce",
752
+ type: "uint256",
753
+ },
754
+ {
755
+ internalType: "enum IPLimitOrderType.OrderType",
756
+ name: "orderType",
757
+ type: "uint8",
758
+ },
759
+ {
760
+ internalType: "address",
761
+ name: "token",
762
+ type: "address",
763
+ },
764
+ {
765
+ internalType: "address",
766
+ name: "YT",
767
+ type: "address",
768
+ },
769
+ {
770
+ internalType: "address",
771
+ name: "maker",
772
+ type: "address",
773
+ },
774
+ {
775
+ internalType: "address",
776
+ name: "receiver",
777
+ type: "address",
778
+ },
779
+ {
780
+ internalType: "uint256",
781
+ name: "makingAmount",
782
+ type: "uint256",
783
+ },
784
+ {
785
+ internalType: "uint256",
786
+ name: "lnImpliedRate",
787
+ type: "uint256",
788
+ },
789
+ {
790
+ internalType: "uint256",
791
+ name: "failSafeRate",
792
+ type: "uint256",
793
+ },
794
+ {
795
+ internalType: "bytes",
796
+ name: "permit",
797
+ type: "bytes",
798
+ },
799
+ ],
800
+ internalType: "struct Order",
801
+ name: "order",
802
+ type: "tuple",
803
+ },
804
+ {
805
+ internalType: "bytes",
806
+ name: "signature",
807
+ type: "bytes",
808
+ },
809
+ {
810
+ internalType: "uint256",
811
+ name: "makingAmount",
812
+ type: "uint256",
813
+ },
814
+ ],
815
+ internalType: "struct FillOrderParams[]",
816
+ name: "params",
817
+ type: "tuple[]",
818
+ },
819
+ ],
820
+ name: "hashFillParams",
821
+ outputs: [
822
+ {
823
+ internalType: "bytes32",
824
+ name: "",
825
+ type: "bytes32",
826
+ },
827
+ ],
828
+ stateMutability: "pure",
829
+ type: "function",
830
+ },
701
831
  {
702
832
  inputs: [
703
833
  {
@@ -779,6 +909,32 @@ const _abi = [
779
909
  stateMutability: "view",
780
910
  type: "function",
781
911
  },
912
+ {
913
+ inputs: [],
914
+ name: "mintSySigner1",
915
+ outputs: [
916
+ {
917
+ internalType: "address",
918
+ name: "",
919
+ type: "address",
920
+ },
921
+ ],
922
+ stateMutability: "view",
923
+ type: "function",
924
+ },
925
+ {
926
+ inputs: [],
927
+ name: "mintSySigner2",
928
+ outputs: [
929
+ {
930
+ internalType: "address",
931
+ name: "",
932
+ type: "address",
933
+ },
934
+ ],
935
+ stateMutability: "view",
936
+ type: "function",
937
+ },
782
938
  {
783
939
  inputs: [
784
940
  {
@@ -0,0 +1,111 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import { Provider } from "@ethersproject/providers";
7
+ import type { IPSwapHelper, IPSwapHelperInterface } from "../IPSwapHelper";
8
+
9
+ const _abi = [
10
+ {
11
+ inputs: [
12
+ {
13
+ internalType: "address",
14
+ name: "receiver",
15
+ type: "address",
16
+ },
17
+ {
18
+ internalType: "address",
19
+ name: "fixedPricePTAMM",
20
+ type: "address",
21
+ },
22
+ {
23
+ internalType: "address",
24
+ name: "PT",
25
+ type: "address",
26
+ },
27
+ {
28
+ internalType: "uint256",
29
+ name: "exactPtIn",
30
+ type: "uint256",
31
+ },
32
+ {
33
+ components: [
34
+ {
35
+ internalType: "address",
36
+ name: "tokenOut",
37
+ type: "address",
38
+ },
39
+ {
40
+ internalType: "uint256",
41
+ name: "minTokenOut",
42
+ type: "uint256",
43
+ },
44
+ {
45
+ internalType: "address",
46
+ name: "tokenRedeemSy",
47
+ type: "address",
48
+ },
49
+ {
50
+ internalType: "address",
51
+ name: "pendleSwap",
52
+ type: "address",
53
+ },
54
+ {
55
+ components: [
56
+ {
57
+ internalType: "enum SwapType",
58
+ name: "swapType",
59
+ type: "uint8",
60
+ },
61
+ {
62
+ internalType: "address",
63
+ name: "extRouter",
64
+ type: "address",
65
+ },
66
+ {
67
+ internalType: "bytes",
68
+ name: "extCalldata",
69
+ type: "bytes",
70
+ },
71
+ {
72
+ internalType: "bool",
73
+ name: "needScale",
74
+ type: "bool",
75
+ },
76
+ ],
77
+ internalType: "struct SwapData",
78
+ name: "swapData",
79
+ type: "tuple",
80
+ },
81
+ ],
82
+ internalType: "struct TokenOutput",
83
+ name: "out",
84
+ type: "tuple",
85
+ },
86
+ ],
87
+ name: "swapWithFixedPricePTAMM",
88
+ outputs: [
89
+ {
90
+ internalType: "uint256",
91
+ name: "netTokenOut",
92
+ type: "uint256",
93
+ },
94
+ ],
95
+ stateMutability: "nonpayable",
96
+ type: "function",
97
+ },
98
+ ];
99
+
100
+ export class IPSwapHelper__factory {
101
+ static readonly abi = _abi;
102
+ static createInterface(): IPSwapHelperInterface {
103
+ return new utils.Interface(_abi) as IPSwapHelperInterface;
104
+ }
105
+ static connect(
106
+ address: string,
107
+ signerOrProvider: Signer | Provider
108
+ ): IPSwapHelper {
109
+ return new Contract(address, _abi, signerOrProvider) as IPSwapHelper;
110
+ }
111
+ }
@@ -174,7 +174,7 @@ const _abi = [
174
174
  ];
175
175
 
176
176
  const _bytecode =
177
- "0x60c060405234801561000f575f5ffd5b5060405161181938038061181983398101604081905261002e91610043565b6001600160a01b03166080523060a052610070565b5f60208284031215610053575f5ffd5b81516001600160a01b0381168114610069575f5ffd5b9392505050565b60805160a05161177b61009e5f395f61065f01525f818160ce0152818161012c015261019f015261177b5ff3fe608060405234801561000f575f5ffd5b506004361061004a575f3560e01c8063083c1fce1461004e578063152c3db71461006357806319585e1a1461008d5780632d36a6d3146100ae575b5f5ffd5b61006161005c36600461115e565b6100c1565b005b6100766100713660046111f3565b6102b7565b6040516100849291906112ae565b60405180910390f35b6100a061009b3660046112db565b61054b565b6040516100849291906113d6565b6100766100bc36600461144b565b6107ef565b6100cc8285836109f5565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b03161480156101955750604051637d2d278360e11b81526001600160a01b0384169063fa5a4f0690610154907f0000000000000000000000000000000000000000000000000000000000000000906004016114ae565b602060405180830381865afa15801561016f573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061019391906114d6565b155b156101c9576101c57f00000000000000000000000000000000000000000000000000000000000000005f83610a61565b5f91505b6101d38284610b1e565b5f806001600160a01b03808616908516156101ee575f6101f0565b835b6040513060248201526001600160a01b0387166044820152606481018690525f608482015260a40160408051601f198184030181529181526020820180516001600160e01b03166320e8c56560e01b1790525161024d91906114f6565b5f6040518083038185875af1925050503d805f8114610287576040519150601f19603f3d011682016040523d82523d5f602084013e61028c565b606091505b5091509150818160405163032695f960e31b81526004016102ae929190611511565b60405180910390fd5b6060808584146102fb5760405162461bcd60e51b815260206004820152600f60248201526e098cadccee8d040dad2e6dac2e8c6d608b1b60448201526064016102ae565b836001600160401b038111156103135761031361152b565b60405190808252806020026020018201604052801561033c578160200160208202803683370190505b509150836001600160401b038111156103575761035761152b565b604051908082528060200260200182016040528015610380578160200160208202803683370190505b5090505f5b848110156105405787878281811061039f5761039f61153f565b90506020020160208101906103b49190611553565b6001600160a01b03166370a082318787848181106103d4576103d461153f565b90506020020160208101906103e99190611553565b6040518263ffffffff1660e01b815260040161040591906114ae565b602060405180830381865afa158015610420573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610444919061156e565b8382815181106104565761045661153f565b6020026020010181815250508787828181106104745761047461153f565b90506020020160208101906104899190611553565b6001600160a01b031663dd62ed3e8787848181106104a9576104a961153f565b90506020020160208101906104be9190611553565b866040518363ffffffff1660e01b81526004016104dc929190611585565b602060405180830381865afa1580156104f7573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061051b919061156e565b82828151811061052d5761052d61153f565b6020908102919091010152600101610385565b509550959350505050565b6060805f8888905090505f8a6001600160a01b031663afd27bf56040518163ffffffff1660e01b8152600401602060405180830381865afa158015610592573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105b6919061159f565b9050816001600160401b038111156105d0576105d061152b565b6040519080825280602002602001820160405280156105f9578160200160208202803683370190505b509350816001600160401b038111156106145761061461152b565b60405190808252806020026020018201604052801561064757816020015b60608152602001906001900390816106325790505b5092505f5b828110156107e0575f6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163063083c1fce8e8e868181106106975761069761153f565b90506020020160208101906106ac9190611553565b868e8e888181106106bf576106bf61153f565b90506020020160208101906106d49190611553565b8d8d898181106106e6576106e661153f565b6040516001600160a01b039687166024820152948616604486015292909416606484015260209091020135608482015260a401905060408051601f198184030181529181526020820180516001600160e01b031660e09490941b93909317909252905161075392506114f6565b5f60405180830381855af49150503d805f811461078b576040519150601f19603f3d011682016040523d82523d5f602084013e610790565b606091505b5091505061079d81610bd9565b8784815181106107af576107af61153f565b602002602001018785815181106107c8576107c861153f565b6020908102919091010191909152525060010161064c565b50505097509795505050505050565b606080836001600160401b0381111561080a5761080a61152b565b604051908082528060200260200182016040528015610833578160200160208202803683370190505b509150836001600160401b0381111561084e5761084e61152b565b604051908082528060200260200182016040528015610877578160200160208202803683370190505b5090505f5b848110156109eb57866001600160a01b03166370a082318787848181106108a5576108a561153f565b90506020020160208101906108ba9190611553565b6040518263ffffffff1660e01b81526004016108d691906114ae565b602060405180830381865afa1580156108f1573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610915919061156e565b8382815181106109275761092761153f565b602002602001018181525050866001600160a01b031663dd62ed3e8787848181106109545761095461153f565b90506020020160208101906109699190611553565b866040518363ffffffff1660e01b8152600401610987929190611585565b602060405180830381865afa1580156109a2573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109c6919061156e565b8282815181106109d8576109d861153f565b602090810291909101015260010161087c565b5094509492505050565b6001600160a01b038316610a4657803414610a415760405162461bcd60e51b815260206004820152600c60248201526b0cae8d040dad2e6dac2e8c6d60a31b60448201526064016102ae565b505050565b8015610a4157610a416001600160a01b038416833084610c79565b6001600160a01b038316610ac457816001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004015f604051808303818588803b158015610aa8575f5ffd5b505af1158015610aba573d5f5f3e3d5ffd5b5050505050505050565b604051632e1a7d4d60e01b8152600481018290526001600160a01b03841690632e1a7d4d906024015f604051808303815f87803b158015610b03575f5ffd5b505af1158015610b15573d5f5f3e3d5ffd5b50505050505050565b6001600160a01b038216610b30575050565b610b4260026001600160601b036115ce565b6001600160601b0316826001600160a01b031663dd62ed3e30846040518363ffffffff1660e01b8152600401610b79929190611585565b602060405180830381865afa158015610b94573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610bb8919061156e565b1015610bd557610bc982825f610cd9565b610bd582825f19610cd9565b5050565b5f60605f6004845110158015610c07575063032695f960e31b610bfb85611608565b6001600160e01b031916145b905080610c1757505f1993915050565b5f5f610c31866004808951610c2c9190611646565b610dde565b806020019051810190610c44919061165f565b915091508115610c695780806020019051810190610c62919061156e565b9450610c71565b5f1994508093505b505050915091565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610cd3908590610eea565b50505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663095ea7b360e01b17905291515f92839290871691610d3491906114f6565b5f604051808303815f865af19150503d805f8114610d6d576040519150601f19603f3d011682016040523d82523d5f602084013e610d72565b606091505b5091509150818015610d9c575080511580610d9c575080806020019051810190610d9c91906114d6565b610dd75760405162461bcd60e51b815260206004820152600c60248201526b5361666520417070726f766560a01b60448201526064016102ae565b5050505050565b606081610dec81601f611720565b1015610e2b5760405162461bcd60e51b815260206004820152600e60248201526d736c6963655f6f766572666c6f7760901b60448201526064016102ae565b610e358284611720565b84511015610e795760405162461bcd60e51b8152602060048201526011602482015270736c6963655f6f75744f66426f756e647360781b60448201526064016102ae565b606082158015610e975760405191505f825260208201604052610ee1565b6040519150601f8416801560200281840101858101878315602002848b0101015b81831015610ed0578051835260209283019201610eb8565b5050858452601f01601f1916604052505b50949350505050565b5f610f3e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610fbd9092919063ffffffff16565b905080515f1480610f5e575080806020019051810190610f5e91906114d6565b610a415760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016102ae565b6060610fcb84845f85610fd3565b949350505050565b6060824710156110345760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016102ae565b5f5f866001600160a01b0316858760405161104f91906114f6565b5f6040518083038185875af1925050503d805f8114611089576040519150601f19603f3d011682016040523d82523d5f602084013e61108e565b606091505b509150915061109f878383876110aa565b979650505050505050565b606083156111185782515f03611111576001600160a01b0385163b6111115760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102ae565b5081610fcb565b610fcb838381511561112d5781518083602001fd5b8060405162461bcd60e51b81526004016102ae9190611733565b6001600160a01b038116811461115b575f5ffd5b50565b5f5f5f5f60808587031215611171575f5ffd5b843561117c81611147565b9350602085013561118c81611147565b9250604085013561119c81611147565b9396929550929360600135925050565b5f5f83601f8401126111bc575f5ffd5b5081356001600160401b038111156111d2575f5ffd5b6020830191508360208260051b85010111156111ec575f5ffd5b9250929050565b5f5f5f5f5f60608688031215611207575f5ffd5b85356001600160401b0381111561121c575f5ffd5b611228888289016111ac565b90965094505060208601356001600160401b03811115611246575f5ffd5b611252888289016111ac565b909450925050604086013561126681611147565b809150509295509295909350565b5f8151808452602084019350602083015f5b828110156112a4578151865260209586019590910190600101611286565b5093949350505050565b604081525f6112c06040830185611274565b82810360208401526112d28185611274565b95945050505050565b5f5f5f5f5f5f5f6080888a0312156112f1575f5ffd5b87356112fc81611147565b965060208801356001600160401b03811115611316575f5ffd5b6113228a828b016111ac565b90975095505060408801356001600160401b03811115611340575f5ffd5b61134c8a828b016111ac565b90955093505060608801356001600160401b0381111561136a575f5ffd5b6113768a828b016111ac565b989b979a50959850939692959293505050565b5f5b838110156113a357818101518382015260200161138b565b50505f910152565b5f81518084526113c2816020860160208601611389565b601f01601f19169290920160200192915050565b604081525f6113e86040830185611274565b828103602084015280845180835260208301915060208160051b840101602087015f5b8381101561143d57601f198684030185526114278383516113ab565b602095860195909350919091019060010161140b565b509098975050505050505050565b5f5f5f5f6060858703121561145e575f5ffd5b843561146981611147565b935060208501356001600160401b03811115611483575f5ffd5b61148f878288016111ac565b90945092505060408501356114a381611147565b939692955090935050565b6001600160a01b0391909116815260200190565b805180151581146114d1575f5ffd5b919050565b5f602082840312156114e6575f5ffd5b6114ef826114c2565b9392505050565b5f8251611507818460208701611389565b9190910192915050565b8215158152604060208201525f610fcb60408301846113ab565b634e487b7160e01b5f52604160045260245ffd5b634e487b7160e01b5f52603260045260245ffd5b5f60208284031215611563575f5ffd5b81356114ef81611147565b5f6020828403121561157e575f5ffd5b5051919050565b6001600160a01b0392831681529116602082015260400190565b5f602082840312156115af575f5ffd5b81516114ef81611147565b634e487b7160e01b5f52601160045260245ffd5b5f6001600160601b038316806115f257634e487b7160e01b5f52601260045260245ffd5b6001600160601b03929092169190910492915050565b805160208201516001600160e01b031981169190600482101561163f576001600160e01b0319600483900360031b81901b82161692505b5050919050565b81810381811115611659576116596115ba565b92915050565b5f5f60408385031215611670575f5ffd5b611679836114c2565b60208401519092506001600160401b03811115611694575f5ffd5b8301601f810185136116a4575f5ffd5b80516001600160401b038111156116bd576116bd61152b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156116eb576116eb61152b565b604052818152828201602001871015611702575f5ffd5b611713826020830160208601611389565b8093505050509250929050565b80820180821115611659576116596115ba565b602081525f6114ef60208301846113ab56fea264697066735822122008e7cf34d772ef0cadd6cd86cd284885c34339aa3e21453f95657b4796214e8a64736f6c634300081e0033";
177
+ "0x60c060405234801561000f575f5ffd5b5060405161181938038061181983398101604081905261002e91610043565b6001600160a01b03166080523060a052610070565b5f60208284031215610053575f5ffd5b81516001600160a01b0381168114610069575f5ffd5b9392505050565b60805160a05161177b61009e5f395f61065f01525f818160ce0152818161012c015261019f015261177b5ff3fe608060405234801561000f575f5ffd5b506004361061004a575f3560e01c8063083c1fce1461004e578063152c3db71461006357806319585e1a1461008d5780632d36a6d3146100ae575b5f5ffd5b61006161005c36600461115e565b6100c1565b005b6100766100713660046111f3565b6102b7565b6040516100849291906112ae565b60405180910390f35b6100a061009b3660046112db565b61054b565b6040516100849291906113d6565b6100766100bc36600461144b565b6107ef565b6100cc8285836109f5565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b03161480156101955750604051637d2d278360e11b81526001600160a01b0384169063fa5a4f0690610154907f0000000000000000000000000000000000000000000000000000000000000000906004016114ae565b602060405180830381865afa15801561016f573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061019391906114d6565b155b156101c9576101c57f00000000000000000000000000000000000000000000000000000000000000005f83610a61565b5f91505b6101d38284610b1e565b5f806001600160a01b03808616908516156101ee575f6101f0565b835b6040513060248201526001600160a01b0387166044820152606481018690525f608482015260a40160408051601f198184030181529181526020820180516001600160e01b03166320e8c56560e01b1790525161024d91906114f6565b5f6040518083038185875af1925050503d805f8114610287576040519150601f19603f3d011682016040523d82523d5f602084013e61028c565b606091505b5091509150818160405163032695f960e31b81526004016102ae929190611511565b60405180910390fd5b6060808584146102fb5760405162461bcd60e51b815260206004820152600f60248201526e098cadccee8d040dad2e6dac2e8c6d608b1b60448201526064016102ae565b836001600160401b038111156103135761031361152b565b60405190808252806020026020018201604052801561033c578160200160208202803683370190505b509150836001600160401b038111156103575761035761152b565b604051908082528060200260200182016040528015610380578160200160208202803683370190505b5090505f5b848110156105405787878281811061039f5761039f61153f565b90506020020160208101906103b49190611553565b6001600160a01b03166370a082318787848181106103d4576103d461153f565b90506020020160208101906103e99190611553565b6040518263ffffffff1660e01b815260040161040591906114ae565b602060405180830381865afa158015610420573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610444919061156e565b8382815181106104565761045661153f565b6020026020010181815250508787828181106104745761047461153f565b90506020020160208101906104899190611553565b6001600160a01b031663dd62ed3e8787848181106104a9576104a961153f565b90506020020160208101906104be9190611553565b866040518363ffffffff1660e01b81526004016104dc929190611585565b602060405180830381865afa1580156104f7573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061051b919061156e565b82828151811061052d5761052d61153f565b6020908102919091010152600101610385565b509550959350505050565b6060805f8888905090505f8a6001600160a01b031663afd27bf56040518163ffffffff1660e01b8152600401602060405180830381865afa158015610592573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105b6919061159f565b9050816001600160401b038111156105d0576105d061152b565b6040519080825280602002602001820160405280156105f9578160200160208202803683370190505b509350816001600160401b038111156106145761061461152b565b60405190808252806020026020018201604052801561064757816020015b60608152602001906001900390816106325790505b5092505f5b828110156107e0575f6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163063083c1fce8e8e868181106106975761069761153f565b90506020020160208101906106ac9190611553565b868e8e888181106106bf576106bf61153f565b90506020020160208101906106d49190611553565b8d8d898181106106e6576106e661153f565b6040516001600160a01b039687166024820152948616604486015292909416606484015260209091020135608482015260a401905060408051601f198184030181529181526020820180516001600160e01b031660e09490941b93909317909252905161075392506114f6565b5f60405180830381855af49150503d805f811461078b576040519150601f19603f3d011682016040523d82523d5f602084013e610790565b606091505b5091505061079d81610bd9565b8784815181106107af576107af61153f565b602002602001018785815181106107c8576107c861153f565b6020908102919091010191909152525060010161064c565b50505097509795505050505050565b606080836001600160401b0381111561080a5761080a61152b565b604051908082528060200260200182016040528015610833578160200160208202803683370190505b509150836001600160401b0381111561084e5761084e61152b565b604051908082528060200260200182016040528015610877578160200160208202803683370190505b5090505f5b848110156109eb57866001600160a01b03166370a082318787848181106108a5576108a561153f565b90506020020160208101906108ba9190611553565b6040518263ffffffff1660e01b81526004016108d691906114ae565b602060405180830381865afa1580156108f1573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610915919061156e565b8382815181106109275761092761153f565b602002602001018181525050866001600160a01b031663dd62ed3e8787848181106109545761095461153f565b90506020020160208101906109699190611553565b866040518363ffffffff1660e01b8152600401610987929190611585565b602060405180830381865afa1580156109a2573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109c6919061156e565b8282815181106109d8576109d861153f565b602090810291909101015260010161087c565b5094509492505050565b6001600160a01b038316610a4657803414610a415760405162461bcd60e51b815260206004820152600c60248201526b0cae8d040dad2e6dac2e8c6d60a31b60448201526064016102ae565b505050565b8015610a4157610a416001600160a01b038416833084610c79565b6001600160a01b038316610ac457816001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004015f604051808303818588803b158015610aa8575f5ffd5b505af1158015610aba573d5f5f3e3d5ffd5b5050505050505050565b604051632e1a7d4d60e01b8152600481018290526001600160a01b03841690632e1a7d4d906024015f604051808303815f87803b158015610b03575f5ffd5b505af1158015610b15573d5f5f3e3d5ffd5b50505050505050565b6001600160a01b038216610b30575050565b610b4260026001600160601b036115ce565b6001600160601b0316826001600160a01b031663dd62ed3e30846040518363ffffffff1660e01b8152600401610b79929190611585565b602060405180830381865afa158015610b94573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610bb8919061156e565b1015610bd557610bc982825f610cd9565b610bd582825f19610cd9565b5050565b5f60605f6004845110158015610c07575063032695f960e31b610bfb85611608565b6001600160e01b031916145b905080610c1757505f1993915050565b5f5f610c31866004808951610c2c9190611646565b610dde565b806020019051810190610c44919061165f565b915091508115610c695780806020019051810190610c62919061156e565b9450610c71565b5f1994508093505b505050915091565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610cd3908590610eea565b50505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663095ea7b360e01b17905291515f92839290871691610d3491906114f6565b5f604051808303815f865af19150503d805f8114610d6d576040519150601f19603f3d011682016040523d82523d5f602084013e610d72565b606091505b5091509150818015610d9c575080511580610d9c575080806020019051810190610d9c91906114d6565b610dd75760405162461bcd60e51b815260206004820152600c60248201526b5361666520417070726f766560a01b60448201526064016102ae565b5050505050565b606081610dec81601f611720565b1015610e2b5760405162461bcd60e51b815260206004820152600e60248201526d736c6963655f6f766572666c6f7760901b60448201526064016102ae565b610e358284611720565b84511015610e795760405162461bcd60e51b8152602060048201526011602482015270736c6963655f6f75744f66426f756e647360781b60448201526064016102ae565b606082158015610e975760405191505f825260208201604052610ee1565b6040519150601f8416801560200281840101858101878315602002848b0101015b81831015610ed0578051835260209283019201610eb8565b5050858452601f01601f1916604052505b50949350505050565b5f610f3e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610fbd9092919063ffffffff16565b905080515f1480610f5e575080806020019051810190610f5e91906114d6565b610a415760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016102ae565b6060610fcb84845f85610fd3565b949350505050565b6060824710156110345760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016102ae565b5f5f866001600160a01b0316858760405161104f91906114f6565b5f6040518083038185875af1925050503d805f8114611089576040519150601f19603f3d011682016040523d82523d5f602084013e61108e565b606091505b509150915061109f878383876110aa565b979650505050505050565b606083156111185782515f03611111576001600160a01b0385163b6111115760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102ae565b5081610fcb565b610fcb838381511561112d5781518083602001fd5b8060405162461bcd60e51b81526004016102ae9190611733565b6001600160a01b038116811461115b575f5ffd5b50565b5f5f5f5f60808587031215611171575f5ffd5b843561117c81611147565b9350602085013561118c81611147565b9250604085013561119c81611147565b9396929550929360600135925050565b5f5f83601f8401126111bc575f5ffd5b5081356001600160401b038111156111d2575f5ffd5b6020830191508360208260051b85010111156111ec575f5ffd5b9250929050565b5f5f5f5f5f60608688031215611207575f5ffd5b85356001600160401b0381111561121c575f5ffd5b611228888289016111ac565b90965094505060208601356001600160401b03811115611246575f5ffd5b611252888289016111ac565b909450925050604086013561126681611147565b809150509295509295909350565b5f8151808452602084019350602083015f5b828110156112a4578151865260209586019590910190600101611286565b5093949350505050565b604081525f6112c06040830185611274565b82810360208401526112d28185611274565b95945050505050565b5f5f5f5f5f5f5f6080888a0312156112f1575f5ffd5b87356112fc81611147565b965060208801356001600160401b03811115611316575f5ffd5b6113228a828b016111ac565b90975095505060408801356001600160401b03811115611340575f5ffd5b61134c8a828b016111ac565b90955093505060608801356001600160401b0381111561136a575f5ffd5b6113768a828b016111ac565b989b979a50959850939692959293505050565b5f5b838110156113a357818101518382015260200161138b565b50505f910152565b5f81518084526113c2816020860160208601611389565b601f01601f19169290920160200192915050565b604081525f6113e86040830185611274565b828103602084015280845180835260208301915060208160051b840101602087015f5b8381101561143d57601f198684030185526114278383516113ab565b602095860195909350919091019060010161140b565b509098975050505050505050565b5f5f5f5f6060858703121561145e575f5ffd5b843561146981611147565b935060208501356001600160401b03811115611483575f5ffd5b61148f878288016111ac565b90945092505060408501356114a381611147565b939692955090935050565b6001600160a01b0391909116815260200190565b805180151581146114d1575f5ffd5b919050565b5f602082840312156114e6575f5ffd5b6114ef826114c2565b9392505050565b5f8251611507818460208701611389565b9190910192915050565b8215158152604060208201525f610fcb60408301846113ab565b634e487b7160e01b5f52604160045260245ffd5b634e487b7160e01b5f52603260045260245ffd5b5f60208284031215611563575f5ffd5b81356114ef81611147565b5f6020828403121561157e575f5ffd5b5051919050565b6001600160a01b0392831681529116602082015260400190565b5f602082840312156115af575f5ffd5b81516114ef81611147565b634e487b7160e01b5f52601160045260245ffd5b5f6001600160601b038316806115f257634e487b7160e01b5f52601260045260245ffd5b6001600160601b03929092169190910492915050565b805160208201516001600160e01b031981169190600482101561163f576001600160e01b0319600483900360031b81901b82161692505b5050919050565b81810381811115611659576116596115ba565b92915050565b5f5f60408385031215611670575f5ffd5b611679836114c2565b60208401519092506001600160401b03811115611694575f5ffd5b8301601f810185136116a4575f5ffd5b80516001600160401b038111156116bd576116bd61152b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156116eb576116eb61152b565b604052818152828201602001871015611702575f5ffd5b611713826020830160208601611389565b8093505050509250929050565b80820180821115611659576116596115ba565b602081525f6114ef60208301846113ab56fea2646970667358221220383e8441ff53e3d00bbc0f052924b49f80915632c40e6058d26a25dd46a3c9b664736f6c634300081e0033";
178
178
 
179
179
  type LimitBackendHelperV2ConstructorParams =
180
180
  | [signer?: Signer]
@@ -48,6 +48,25 @@ const _abi = [
48
48
  name: "LnFeeRateRootsSet",
49
49
  type: "event",
50
50
  },
51
+ {
52
+ anonymous: false,
53
+ inputs: [
54
+ {
55
+ indexed: false,
56
+ internalType: "address",
57
+ name: "signer1",
58
+ type: "address",
59
+ },
60
+ {
61
+ indexed: false,
62
+ internalType: "address",
63
+ name: "signer2",
64
+ type: "address",
65
+ },
66
+ ],
67
+ name: "MintSySignersSet",
68
+ type: "event",
69
+ },
51
70
  {
52
71
  anonymous: false,
53
72
  inputs: [
@@ -340,6 +359,19 @@ const _abi = [
340
359
  stateMutability: "view",
341
360
  type: "function",
342
361
  },
362
+ {
363
+ inputs: [],
364
+ name: "ROUTER",
365
+ outputs: [
366
+ {
367
+ internalType: "address",
368
+ name: "",
369
+ type: "address",
370
+ },
371
+ ],
372
+ stateMutability: "view",
373
+ type: "function",
374
+ },
343
375
  {
344
376
  inputs: [],
345
377
  name: "WNATIVE",
@@ -773,7 +805,7 @@ const _abi = [
773
805
  },
774
806
  {
775
807
  internalType: "bytes",
776
- name: "",
808
+ name: "optData",
777
809
  type: "bytes",
778
810
  },
779
811
  {
@@ -827,6 +859,187 @@ const _abi = [
827
859
  stateMutability: "view",
828
860
  type: "function",
829
861
  },
862
+ {
863
+ inputs: [
864
+ {
865
+ components: [
866
+ {
867
+ components: [
868
+ {
869
+ internalType: "uint256",
870
+ name: "salt",
871
+ type: "uint256",
872
+ },
873
+ {
874
+ internalType: "uint256",
875
+ name: "expiry",
876
+ type: "uint256",
877
+ },
878
+ {
879
+ internalType: "uint256",
880
+ name: "nonce",
881
+ type: "uint256",
882
+ },
883
+ {
884
+ internalType: "enum IPLimitOrderType.OrderType",
885
+ name: "orderType",
886
+ type: "uint8",
887
+ },
888
+ {
889
+ internalType: "address",
890
+ name: "token",
891
+ type: "address",
892
+ },
893
+ {
894
+ internalType: "address",
895
+ name: "YT",
896
+ type: "address",
897
+ },
898
+ {
899
+ internalType: "address",
900
+ name: "maker",
901
+ type: "address",
902
+ },
903
+ {
904
+ internalType: "address",
905
+ name: "receiver",
906
+ type: "address",
907
+ },
908
+ {
909
+ internalType: "uint256",
910
+ name: "makingAmount",
911
+ type: "uint256",
912
+ },
913
+ {
914
+ internalType: "uint256",
915
+ name: "lnImpliedRate",
916
+ type: "uint256",
917
+ },
918
+ {
919
+ internalType: "uint256",
920
+ name: "failSafeRate",
921
+ type: "uint256",
922
+ },
923
+ {
924
+ internalType: "bytes",
925
+ name: "permit",
926
+ type: "bytes",
927
+ },
928
+ ],
929
+ internalType: "struct Order",
930
+ name: "order",
931
+ type: "tuple",
932
+ },
933
+ {
934
+ internalType: "bytes",
935
+ name: "signature",
936
+ type: "bytes",
937
+ },
938
+ {
939
+ internalType: "uint256",
940
+ name: "makingAmount",
941
+ type: "uint256",
942
+ },
943
+ ],
944
+ internalType: "struct FillOrderParams[]",
945
+ name: "params",
946
+ type: "tuple[]",
947
+ },
948
+ ],
949
+ name: "hashFillParams",
950
+ outputs: [
951
+ {
952
+ internalType: "bytes32",
953
+ name: "",
954
+ type: "bytes32",
955
+ },
956
+ ],
957
+ stateMutability: "pure",
958
+ type: "function",
959
+ },
960
+ {
961
+ inputs: [
962
+ {
963
+ components: [
964
+ {
965
+ internalType: "address",
966
+ name: "tokenIn",
967
+ type: "address",
968
+ },
969
+ {
970
+ internalType: "uint256",
971
+ name: "netTokenIn",
972
+ type: "uint256",
973
+ },
974
+ {
975
+ internalType: "address",
976
+ name: "tokenMintSy",
977
+ type: "address",
978
+ },
979
+ {
980
+ internalType: "address",
981
+ name: "pendleSwap",
982
+ type: "address",
983
+ },
984
+ {
985
+ components: [
986
+ {
987
+ internalType: "enum SwapType",
988
+ name: "swapType",
989
+ type: "uint8",
990
+ },
991
+ {
992
+ internalType: "address",
993
+ name: "extRouter",
994
+ type: "address",
995
+ },
996
+ {
997
+ internalType: "bytes",
998
+ name: "extCalldata",
999
+ type: "bytes",
1000
+ },
1001
+ {
1002
+ internalType: "bool",
1003
+ name: "needScale",
1004
+ type: "bool",
1005
+ },
1006
+ ],
1007
+ internalType: "struct SwapData",
1008
+ name: "swapData",
1009
+ type: "tuple",
1010
+ },
1011
+ ],
1012
+ internalType: "struct TokenInput[]",
1013
+ name: "inps",
1014
+ type: "tuple[]",
1015
+ },
1016
+ {
1017
+ internalType: "uint256[]",
1018
+ name: "minSyOuts",
1019
+ type: "uint256[]",
1020
+ },
1021
+ {
1022
+ internalType: "uint256",
1023
+ name: "expiry",
1024
+ type: "uint256",
1025
+ },
1026
+ {
1027
+ internalType: "bytes32",
1028
+ name: "fillParamsHash",
1029
+ type: "bytes32",
1030
+ },
1031
+ ],
1032
+ name: "hashMintSyPayload",
1033
+ outputs: [
1034
+ {
1035
+ internalType: "bytes32",
1036
+ name: "",
1037
+ type: "bytes32",
1038
+ },
1039
+ ],
1040
+ stateMutability: "view",
1041
+ type: "function",
1042
+ },
830
1043
  {
831
1044
  inputs: [
832
1045
  {
@@ -933,6 +1146,32 @@ const _abi = [
933
1146
  stateMutability: "nonpayable",
934
1147
  type: "function",
935
1148
  },
1149
+ {
1150
+ inputs: [],
1151
+ name: "mintSySigner1",
1152
+ outputs: [
1153
+ {
1154
+ internalType: "address",
1155
+ name: "",
1156
+ type: "address",
1157
+ },
1158
+ ],
1159
+ stateMutability: "view",
1160
+ type: "function",
1161
+ },
1162
+ {
1163
+ inputs: [],
1164
+ name: "mintSySigner2",
1165
+ outputs: [
1166
+ {
1167
+ internalType: "address",
1168
+ name: "",
1169
+ type: "address",
1170
+ },
1171
+ ],
1172
+ stateMutability: "view",
1173
+ type: "function",
1174
+ },
936
1175
  {
937
1176
  inputs: [
938
1177
  {
@@ -1236,6 +1475,24 @@ const _abi = [
1236
1475
  stateMutability: "nonpayable",
1237
1476
  type: "function",
1238
1477
  },
1478
+ {
1479
+ inputs: [
1480
+ {
1481
+ internalType: "address",
1482
+ name: "_signer1",
1483
+ type: "address",
1484
+ },
1485
+ {
1486
+ internalType: "address",
1487
+ name: "_signer2",
1488
+ type: "address",
1489
+ },
1490
+ ],
1491
+ name: "setMintSySigners",
1492
+ outputs: [],
1493
+ stateMutability: "nonpayable",
1494
+ type: "function",
1495
+ },
1239
1496
  {
1240
1497
  inputs: [
1241
1498
  {