@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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "_format": "hh-sol-artifact-1",
3
- "contractName": "IPFixedPricePTAMM",
4
- "sourceName": "contracts/interfaces/IPFixedPricePTAMM.sol",
3
+ "contractName": "IPFixedPricePTAMMV2",
4
+ "sourceName": "contracts/interfaces/IPFixedPricePTAMMV2.sol",
5
5
  "abi": [
6
6
  {
7
7
  "anonymous": false,
@@ -9,23 +9,42 @@
9
9
  {
10
10
  "indexed": true,
11
11
  "internalType": "address",
12
- "name": "PT",
12
+ "name": "owner",
13
13
  "type": "address"
14
14
  },
15
15
  {
16
16
  "indexed": true,
17
17
  "internalType": "address",
18
- "name": "token",
18
+ "name": "spender",
19
19
  "type": "address"
20
20
  },
21
+ {
22
+ "indexed": false,
23
+ "internalType": "uint256",
24
+ "name": "value",
25
+ "type": "uint256"
26
+ }
27
+ ],
28
+ "name": "Approval",
29
+ "type": "event"
30
+ },
31
+ {
32
+ "anonymous": false,
33
+ "inputs": [
21
34
  {
22
35
  "indexed": true,
23
36
  "internalType": "address",
24
- "name": "priceOracle",
37
+ "name": "PT",
25
38
  "type": "address"
39
+ },
40
+ {
41
+ "indexed": false,
42
+ "internalType": "bool",
43
+ "name": "isPaused",
44
+ "type": "bool"
26
45
  }
27
46
  ],
28
- "name": "PriceOracleUpdated",
47
+ "name": "PauseStatusUpdated",
29
48
  "type": "event"
30
49
  },
31
50
  {
@@ -34,17 +53,17 @@
34
53
  {
35
54
  "indexed": true,
36
55
  "internalType": "address",
37
- "name": "token",
56
+ "name": "PT",
38
57
  "type": "address"
39
58
  },
40
59
  {
41
- "indexed": false,
42
- "internalType": "uint256",
43
- "name": "amount",
44
- "type": "uint256"
60
+ "indexed": true,
61
+ "internalType": "address",
62
+ "name": "priceOracle",
63
+ "type": "address"
45
64
  }
46
65
  ],
47
- "name": "Seeded",
66
+ "name": "PriceOracleUpdated",
48
67
  "type": "event"
49
68
  },
50
69
  {
@@ -76,18 +95,31 @@
76
95
  },
77
96
  {
78
97
  "indexed": false,
98
+ "internalType": "uint256",
99
+ "name": "netTokenOut",
100
+ "type": "uint256"
101
+ }
102
+ ],
103
+ "name": "Swap",
104
+ "type": "event"
105
+ },
106
+ {
107
+ "anonymous": false,
108
+ "inputs": [
109
+ {
110
+ "indexed": true,
79
111
  "internalType": "address",
80
- "name": "token",
112
+ "name": "sender",
81
113
  "type": "address"
82
114
  },
83
115
  {
84
116
  "indexed": false,
85
117
  "internalType": "uint256",
86
- "name": "netTokenOut",
118
+ "name": "amount",
87
119
  "type": "uint256"
88
120
  }
89
121
  ],
90
- "name": "Swap",
122
+ "name": "TokenFunded",
91
123
  "type": "event"
92
124
  },
93
125
  {
@@ -96,7 +128,7 @@
96
128
  {
97
129
  "indexed": true,
98
130
  "internalType": "address",
99
- "name": "token",
131
+ "name": "sender",
100
132
  "type": "address"
101
133
  },
102
134
  {
@@ -106,79 +138,209 @@
106
138
  "type": "uint256"
107
139
  }
108
140
  ],
109
- "name": "Unseeded",
141
+ "name": "TokenWithdrawn",
110
142
  "type": "event"
111
143
  },
112
144
  {
145
+ "anonymous": false,
113
146
  "inputs": [
114
147
  {
148
+ "indexed": true,
149
+ "internalType": "address",
150
+ "name": "from",
151
+ "type": "address"
152
+ },
153
+ {
154
+ "indexed": true,
115
155
  "internalType": "address",
116
- "name": "token",
156
+ "name": "to",
117
157
  "type": "address"
118
158
  },
159
+ {
160
+ "indexed": false,
161
+ "internalType": "uint256",
162
+ "name": "value",
163
+ "type": "uint256"
164
+ }
165
+ ],
166
+ "name": "Transfer",
167
+ "type": "event"
168
+ },
169
+ {
170
+ "anonymous": false,
171
+ "inputs": [
172
+ {
173
+ "indexed": true,
174
+ "internalType": "address",
175
+ "name": "user",
176
+ "type": "address"
177
+ },
178
+ {
179
+ "indexed": false,
180
+ "internalType": "bool",
181
+ "name": "isWhitelisted",
182
+ "type": "bool"
183
+ }
184
+ ],
185
+ "name": "WhitelistUpdated",
186
+ "type": "event"
187
+ },
188
+ {
189
+ "inputs": [
119
190
  {
120
191
  "internalType": "uint256",
121
192
  "name": "amount",
122
193
  "type": "uint256"
123
194
  }
124
195
  ],
125
- "name": "addFund",
196
+ "name": "addFundWhitelisted",
126
197
  "outputs": [],
127
- "stateMutability": "payable",
198
+ "stateMutability": "nonpayable",
128
199
  "type": "function"
129
200
  },
130
201
  {
131
202
  "inputs": [
132
203
  {
133
204
  "internalType": "address",
134
- "name": "PT",
205
+ "name": "owner",
135
206
  "type": "address"
136
207
  },
208
+ {
209
+ "internalType": "address",
210
+ "name": "spender",
211
+ "type": "address"
212
+ }
213
+ ],
214
+ "name": "allowance",
215
+ "outputs": [
137
216
  {
138
217
  "internalType": "uint256",
139
- "name": "exactPtIn",
218
+ "name": "",
140
219
  "type": "uint256"
220
+ }
221
+ ],
222
+ "stateMutability": "view",
223
+ "type": "function"
224
+ },
225
+ {
226
+ "inputs": [
227
+ {
228
+ "internalType": "address",
229
+ "name": "spender",
230
+ "type": "address"
141
231
  },
232
+ {
233
+ "internalType": "uint256",
234
+ "name": "amount",
235
+ "type": "uint256"
236
+ }
237
+ ],
238
+ "name": "approve",
239
+ "outputs": [
240
+ {
241
+ "internalType": "bool",
242
+ "name": "",
243
+ "type": "bool"
244
+ }
245
+ ],
246
+ "stateMutability": "nonpayable",
247
+ "type": "function"
248
+ },
249
+ {
250
+ "inputs": [
142
251
  {
143
252
  "internalType": "address",
144
- "name": "token",
253
+ "name": "account",
145
254
  "type": "address"
146
255
  }
147
256
  ],
148
- "name": "previewSwapExactPtForToken",
257
+ "name": "balanceOf",
149
258
  "outputs": [
150
259
  {
151
260
  "internalType": "uint256",
152
- "name": "amountTokenOut",
261
+ "name": "",
153
262
  "type": "uint256"
154
263
  }
155
264
  ],
156
265
  "stateMutability": "view",
157
266
  "type": "function"
158
267
  },
268
+ {
269
+ "inputs": [],
270
+ "name": "decimals",
271
+ "outputs": [
272
+ {
273
+ "internalType": "uint8",
274
+ "name": "",
275
+ "type": "uint8"
276
+ }
277
+ ],
278
+ "stateMutability": "view",
279
+ "type": "function"
280
+ },
159
281
  {
160
282
  "inputs": [
161
283
  {
162
284
  "internalType": "address",
163
- "name": "PT",
285
+ "name": "user",
164
286
  "type": "address"
165
- },
287
+ }
288
+ ],
289
+ "name": "isWhitelisted",
290
+ "outputs": [
291
+ {
292
+ "internalType": "bool",
293
+ "name": "",
294
+ "type": "bool"
295
+ }
296
+ ],
297
+ "stateMutability": "view",
298
+ "type": "function"
299
+ },
300
+ {
301
+ "inputs": [],
302
+ "name": "name",
303
+ "outputs": [
304
+ {
305
+ "internalType": "string",
306
+ "name": "",
307
+ "type": "string"
308
+ }
309
+ ],
310
+ "stateMutability": "view",
311
+ "type": "function"
312
+ },
313
+ {
314
+ "inputs": [],
315
+ "name": "outputToken",
316
+ "outputs": [
166
317
  {
167
318
  "internalType": "address",
168
- "name": "token",
319
+ "name": "",
320
+ "type": "address"
321
+ }
322
+ ],
323
+ "stateMutability": "view",
324
+ "type": "function"
325
+ },
326
+ {
327
+ "inputs": [
328
+ {
329
+ "internalType": "address",
330
+ "name": "PT",
169
331
  "type": "address"
170
332
  },
171
333
  {
172
334
  "internalType": "uint256",
173
- "name": "exactTokenOut",
335
+ "name": "exactPtIn",
174
336
  "type": "uint256"
175
337
  }
176
338
  ],
177
- "name": "previewSwapPtForExactToken",
339
+ "name": "previewSwapExactPtForToken",
178
340
  "outputs": [
179
341
  {
180
342
  "internalType": "uint256",
181
- "name": "amountPtIn",
343
+ "name": "amountTokenOut",
182
344
  "type": "uint256"
183
345
  }
184
346
  ],
@@ -191,15 +353,15 @@
191
353
  "internalType": "address",
192
354
  "name": "PT",
193
355
  "type": "address"
194
- },
195
- {
196
- "internalType": "address",
197
- "name": "token",
198
- "type": "address"
199
356
  }
200
357
  ],
201
358
  "name": "priceOracle",
202
359
  "outputs": [
360
+ {
361
+ "internalType": "bool",
362
+ "name": "isPaused",
363
+ "type": "bool"
364
+ },
203
365
  {
204
366
  "internalType": "contract IPChainlinkOracleEssential",
205
367
  "name": "",
@@ -216,11 +378,6 @@
216
378
  },
217
379
  {
218
380
  "inputs": [
219
- {
220
- "internalType": "address",
221
- "name": "token",
222
- "type": "address"
223
- },
224
381
  {
225
382
  "internalType": "uint256",
226
383
  "name": "amount",
@@ -239,9 +396,22 @@
239
396
  "name": "PT",
240
397
  "type": "address"
241
398
  },
399
+ {
400
+ "internalType": "bool",
401
+ "name": "isPaused",
402
+ "type": "bool"
403
+ }
404
+ ],
405
+ "name": "setPausePtTrading",
406
+ "outputs": [],
407
+ "stateMutability": "nonpayable",
408
+ "type": "function"
409
+ },
410
+ {
411
+ "inputs": [
242
412
  {
243
413
  "internalType": "address",
244
- "name": "token",
414
+ "name": "PT",
245
415
  "type": "address"
246
416
  },
247
417
  {
@@ -260,6 +430,24 @@
260
430
  "stateMutability": "nonpayable",
261
431
  "type": "function"
262
432
  },
433
+ {
434
+ "inputs": [
435
+ {
436
+ "internalType": "address",
437
+ "name": "user",
438
+ "type": "address"
439
+ },
440
+ {
441
+ "internalType": "bool",
442
+ "name": "isWhitelisted",
443
+ "type": "bool"
444
+ }
445
+ ],
446
+ "name": "setWhitelist",
447
+ "outputs": [],
448
+ "stateMutability": "nonpayable",
449
+ "type": "function"
450
+ },
263
451
  {
264
452
  "inputs": [
265
453
  {
@@ -277,11 +465,6 @@
277
465
  "name": "exactPtIn",
278
466
  "type": "uint256"
279
467
  },
280
- {
281
- "internalType": "address",
282
- "name": "token",
283
- "type": "address"
284
- },
285
468
  {
286
469
  "internalType": "bytes",
287
470
  "name": "data",
@@ -300,73 +483,69 @@
300
483
  "type": "function"
301
484
  },
302
485
  {
303
- "inputs": [
486
+ "inputs": [],
487
+ "name": "symbol",
488
+ "outputs": [
304
489
  {
305
- "internalType": "address",
306
- "name": "receiver",
307
- "type": "address"
308
- },
490
+ "internalType": "string",
491
+ "name": "",
492
+ "type": "string"
493
+ }
494
+ ],
495
+ "stateMutability": "view",
496
+ "type": "function"
497
+ },
498
+ {
499
+ "inputs": [
309
500
  {
310
501
  "internalType": "address",
311
502
  "name": "PT",
312
503
  "type": "address"
313
- },
314
- {
315
- "internalType": "address",
316
- "name": "token",
317
- "type": "address"
318
- },
504
+ }
505
+ ],
506
+ "name": "totalPt",
507
+ "outputs": [
319
508
  {
320
509
  "internalType": "uint256",
321
- "name": "exactTokenOut",
510
+ "name": "",
322
511
  "type": "uint256"
323
- },
324
- {
325
- "internalType": "bytes",
326
- "name": "data",
327
- "type": "bytes"
328
512
  }
329
513
  ],
330
- "name": "swapPtForExactToken",
514
+ "stateMutability": "view",
515
+ "type": "function"
516
+ },
517
+ {
518
+ "inputs": [],
519
+ "name": "totalSupply",
331
520
  "outputs": [
332
521
  {
333
522
  "internalType": "uint256",
334
- "name": "netPtIn",
523
+ "name": "",
335
524
  "type": "uint256"
336
525
  }
337
526
  ],
338
- "stateMutability": "nonpayable",
527
+ "stateMutability": "view",
339
528
  "type": "function"
340
529
  },
341
530
  {
342
531
  "inputs": [
343
532
  {
344
533
  "internalType": "address",
345
- "name": "receiver",
346
- "type": "address"
347
- },
348
- {
349
- "internalType": "address",
350
- "name": "PT",
534
+ "name": "to",
351
535
  "type": "address"
352
536
  },
353
537
  {
354
538
  "internalType": "uint256",
355
- "name": "exactPtIn",
539
+ "name": "amount",
356
540
  "type": "uint256"
357
- },
358
- {
359
- "internalType": "address",
360
- "name": "token",
361
- "type": "address"
362
541
  }
363
542
  ],
364
- "name": "transferInThenSwapExactPtForToken",
543
+ "name": "transfer",
365
544
  "outputs": [
366
545
  {
367
- "internalType": "uint256",
368
- "name": "netPtIn",
369
- "type": "uint256"
546
+ "internalType": "bool",
547
+ "name": "",
548
+ "type": "bool"
370
549
  }
371
550
  ],
372
551
  "stateMutability": "nonpayable",
@@ -376,33 +555,46 @@
376
555
  "inputs": [
377
556
  {
378
557
  "internalType": "address",
379
- "name": "receiver",
380
- "type": "address"
381
- },
382
- {
383
- "internalType": "address",
384
- "name": "PT",
558
+ "name": "from",
385
559
  "type": "address"
386
560
  },
387
561
  {
388
562
  "internalType": "address",
389
- "name": "token",
563
+ "name": "to",
390
564
  "type": "address"
391
565
  },
392
566
  {
393
567
  "internalType": "uint256",
394
- "name": "exactTokenOut",
568
+ "name": "amount",
395
569
  "type": "uint256"
396
570
  }
397
571
  ],
398
- "name": "transferInThenSwapPtForExactToken",
572
+ "name": "transferFrom",
399
573
  "outputs": [
574
+ {
575
+ "internalType": "bool",
576
+ "name": "",
577
+ "type": "bool"
578
+ }
579
+ ],
580
+ "stateMutability": "nonpayable",
581
+ "type": "function"
582
+ },
583
+ {
584
+ "inputs": [
585
+ {
586
+ "internalType": "address",
587
+ "name": "PT",
588
+ "type": "address"
589
+ },
400
590
  {
401
591
  "internalType": "uint256",
402
- "name": "netPtIn",
592
+ "name": "amount",
403
593
  "type": "uint256"
404
594
  }
405
595
  ],
596
+ "name": "withdrawPt",
597
+ "outputs": [],
406
598
  "stateMutability": "nonpayable",
407
599
  "type": "function"
408
600
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/e9a26f399229f6458b2626c3e072b4e2.json"
3
+ "buildInfo": "../../../build-info/5c7b2bdba5fe83bb2f60579b84f3c814.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/e9a26f399229f6458b2626c3e072b4e2.json"
3
+ "buildInfo": "../../../build-info/5c7b2bdba5fe83bb2f60579b84f3c814.json"
4
4
  }