@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
@@ -0,0 +1,864 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import {
5
+ BaseContract,
6
+ BigNumber,
7
+ BigNumberish,
8
+ BytesLike,
9
+ CallOverrides,
10
+ ContractTransaction,
11
+ Overrides,
12
+ PopulatedTransaction,
13
+ Signer,
14
+ utils,
15
+ } from "ethers";
16
+ import { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
17
+ import { Listener, Provider } from "@ethersproject/providers";
18
+ import type {
19
+ TypedEventFilter,
20
+ TypedEvent,
21
+ TypedListener,
22
+ OnEvent,
23
+ } from "./common";
24
+
25
+ export interface IPFixedPricePTAMMV2Interface extends utils.Interface {
26
+ contractName: "IPFixedPricePTAMMV2";
27
+ functions: {
28
+ "addFundWhitelisted(uint256)": FunctionFragment;
29
+ "allowance(address,address)": FunctionFragment;
30
+ "approve(address,uint256)": FunctionFragment;
31
+ "balanceOf(address)": FunctionFragment;
32
+ "decimals()": FunctionFragment;
33
+ "isWhitelisted(address)": FunctionFragment;
34
+ "name()": FunctionFragment;
35
+ "outputToken()": FunctionFragment;
36
+ "previewSwapExactPtForToken(address,uint256)": FunctionFragment;
37
+ "priceOracle(address)": FunctionFragment;
38
+ "removeFund(uint256)": FunctionFragment;
39
+ "setPausePtTrading(address,bool)": FunctionFragment;
40
+ "setPriceOracle(address,address,uint256)": FunctionFragment;
41
+ "setWhitelist(address,bool)": FunctionFragment;
42
+ "swapExactPtForToken(address,address,uint256,bytes)": FunctionFragment;
43
+ "symbol()": FunctionFragment;
44
+ "totalPt(address)": FunctionFragment;
45
+ "totalSupply()": FunctionFragment;
46
+ "transfer(address,uint256)": FunctionFragment;
47
+ "transferFrom(address,address,uint256)": FunctionFragment;
48
+ "withdrawPt(address,uint256)": FunctionFragment;
49
+ };
50
+
51
+ encodeFunctionData(
52
+ functionFragment: "addFundWhitelisted",
53
+ values: [BigNumberish]
54
+ ): string;
55
+ encodeFunctionData(
56
+ functionFragment: "allowance",
57
+ values: [string, string]
58
+ ): string;
59
+ encodeFunctionData(
60
+ functionFragment: "approve",
61
+ values: [string, BigNumberish]
62
+ ): string;
63
+ encodeFunctionData(functionFragment: "balanceOf", values: [string]): string;
64
+ encodeFunctionData(functionFragment: "decimals", values?: undefined): string;
65
+ encodeFunctionData(
66
+ functionFragment: "isWhitelisted",
67
+ values: [string]
68
+ ): string;
69
+ encodeFunctionData(functionFragment: "name", values?: undefined): string;
70
+ encodeFunctionData(
71
+ functionFragment: "outputToken",
72
+ values?: undefined
73
+ ): string;
74
+ encodeFunctionData(
75
+ functionFragment: "previewSwapExactPtForToken",
76
+ values: [string, BigNumberish]
77
+ ): string;
78
+ encodeFunctionData(functionFragment: "priceOracle", values: [string]): string;
79
+ encodeFunctionData(
80
+ functionFragment: "removeFund",
81
+ values: [BigNumberish]
82
+ ): string;
83
+ encodeFunctionData(
84
+ functionFragment: "setPausePtTrading",
85
+ values: [string, boolean]
86
+ ): string;
87
+ encodeFunctionData(
88
+ functionFragment: "setPriceOracle",
89
+ values: [string, string, BigNumberish]
90
+ ): string;
91
+ encodeFunctionData(
92
+ functionFragment: "setWhitelist",
93
+ values: [string, boolean]
94
+ ): string;
95
+ encodeFunctionData(
96
+ functionFragment: "swapExactPtForToken",
97
+ values: [string, string, BigNumberish, BytesLike]
98
+ ): string;
99
+ encodeFunctionData(functionFragment: "symbol", values?: undefined): string;
100
+ encodeFunctionData(functionFragment: "totalPt", values: [string]): string;
101
+ encodeFunctionData(
102
+ functionFragment: "totalSupply",
103
+ values?: undefined
104
+ ): string;
105
+ encodeFunctionData(
106
+ functionFragment: "transfer",
107
+ values: [string, BigNumberish]
108
+ ): string;
109
+ encodeFunctionData(
110
+ functionFragment: "transferFrom",
111
+ values: [string, string, BigNumberish]
112
+ ): string;
113
+ encodeFunctionData(
114
+ functionFragment: "withdrawPt",
115
+ values: [string, BigNumberish]
116
+ ): string;
117
+
118
+ decodeFunctionResult(
119
+ functionFragment: "addFundWhitelisted",
120
+ data: BytesLike
121
+ ): Result;
122
+ decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result;
123
+ decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result;
124
+ decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
125
+ decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result;
126
+ decodeFunctionResult(
127
+ functionFragment: "isWhitelisted",
128
+ data: BytesLike
129
+ ): Result;
130
+ decodeFunctionResult(functionFragment: "name", data: BytesLike): Result;
131
+ decodeFunctionResult(
132
+ functionFragment: "outputToken",
133
+ data: BytesLike
134
+ ): Result;
135
+ decodeFunctionResult(
136
+ functionFragment: "previewSwapExactPtForToken",
137
+ data: BytesLike
138
+ ): Result;
139
+ decodeFunctionResult(
140
+ functionFragment: "priceOracle",
141
+ data: BytesLike
142
+ ): Result;
143
+ decodeFunctionResult(functionFragment: "removeFund", data: BytesLike): Result;
144
+ decodeFunctionResult(
145
+ functionFragment: "setPausePtTrading",
146
+ data: BytesLike
147
+ ): Result;
148
+ decodeFunctionResult(
149
+ functionFragment: "setPriceOracle",
150
+ data: BytesLike
151
+ ): Result;
152
+ decodeFunctionResult(
153
+ functionFragment: "setWhitelist",
154
+ data: BytesLike
155
+ ): Result;
156
+ decodeFunctionResult(
157
+ functionFragment: "swapExactPtForToken",
158
+ data: BytesLike
159
+ ): Result;
160
+ decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result;
161
+ decodeFunctionResult(functionFragment: "totalPt", data: BytesLike): Result;
162
+ decodeFunctionResult(
163
+ functionFragment: "totalSupply",
164
+ data: BytesLike
165
+ ): Result;
166
+ decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result;
167
+ decodeFunctionResult(
168
+ functionFragment: "transferFrom",
169
+ data: BytesLike
170
+ ): Result;
171
+ decodeFunctionResult(functionFragment: "withdrawPt", data: BytesLike): Result;
172
+
173
+ events: {
174
+ "Approval(address,address,uint256)": EventFragment;
175
+ "PauseStatusUpdated(address,bool)": EventFragment;
176
+ "PriceOracleUpdated(address,address)": EventFragment;
177
+ "Swap(address,address,address,uint256,uint256)": EventFragment;
178
+ "TokenFunded(address,uint256)": EventFragment;
179
+ "TokenWithdrawn(address,uint256)": EventFragment;
180
+ "Transfer(address,address,uint256)": EventFragment;
181
+ "WhitelistUpdated(address,bool)": EventFragment;
182
+ };
183
+
184
+ getEvent(nameOrSignatureOrTopic: "Approval"): EventFragment;
185
+ getEvent(nameOrSignatureOrTopic: "PauseStatusUpdated"): EventFragment;
186
+ getEvent(nameOrSignatureOrTopic: "PriceOracleUpdated"): EventFragment;
187
+ getEvent(nameOrSignatureOrTopic: "Swap"): EventFragment;
188
+ getEvent(nameOrSignatureOrTopic: "TokenFunded"): EventFragment;
189
+ getEvent(nameOrSignatureOrTopic: "TokenWithdrawn"): EventFragment;
190
+ getEvent(nameOrSignatureOrTopic: "Transfer"): EventFragment;
191
+ getEvent(nameOrSignatureOrTopic: "WhitelistUpdated"): EventFragment;
192
+ }
193
+
194
+ export type ApprovalEvent = TypedEvent<
195
+ [string, string, BigNumber],
196
+ { owner: string; spender: string; value: BigNumber }
197
+ >;
198
+
199
+ export type ApprovalEventFilter = TypedEventFilter<ApprovalEvent>;
200
+
201
+ export type PauseStatusUpdatedEvent = TypedEvent<
202
+ [string, boolean],
203
+ { PT: string; isPaused: boolean }
204
+ >;
205
+
206
+ export type PauseStatusUpdatedEventFilter =
207
+ TypedEventFilter<PauseStatusUpdatedEvent>;
208
+
209
+ export type PriceOracleUpdatedEvent = TypedEvent<
210
+ [string, string],
211
+ { PT: string; priceOracle: string }
212
+ >;
213
+
214
+ export type PriceOracleUpdatedEventFilter =
215
+ TypedEventFilter<PriceOracleUpdatedEvent>;
216
+
217
+ export type SwapEvent = TypedEvent<
218
+ [string, string, string, BigNumber, BigNumber],
219
+ {
220
+ caller: string;
221
+ receiver: string;
222
+ PT: string;
223
+ netPtIn: BigNumber;
224
+ netTokenOut: BigNumber;
225
+ }
226
+ >;
227
+
228
+ export type SwapEventFilter = TypedEventFilter<SwapEvent>;
229
+
230
+ export type TokenFundedEvent = TypedEvent<
231
+ [string, BigNumber],
232
+ { sender: string; amount: BigNumber }
233
+ >;
234
+
235
+ export type TokenFundedEventFilter = TypedEventFilter<TokenFundedEvent>;
236
+
237
+ export type TokenWithdrawnEvent = TypedEvent<
238
+ [string, BigNumber],
239
+ { sender: string; amount: BigNumber }
240
+ >;
241
+
242
+ export type TokenWithdrawnEventFilter = TypedEventFilter<TokenWithdrawnEvent>;
243
+
244
+ export type TransferEvent = TypedEvent<
245
+ [string, string, BigNumber],
246
+ { from: string; to: string; value: BigNumber }
247
+ >;
248
+
249
+ export type TransferEventFilter = TypedEventFilter<TransferEvent>;
250
+
251
+ export type WhitelistUpdatedEvent = TypedEvent<
252
+ [string, boolean],
253
+ { user: string; isWhitelisted: boolean }
254
+ >;
255
+
256
+ export type WhitelistUpdatedEventFilter =
257
+ TypedEventFilter<WhitelistUpdatedEvent>;
258
+
259
+ export interface IPFixedPricePTAMMV2 extends BaseContract {
260
+ contractName: "IPFixedPricePTAMMV2";
261
+ connect(signerOrProvider: Signer | Provider | string): this;
262
+ attach(addressOrName: string): this;
263
+ deployed(): Promise<this>;
264
+
265
+ interface: IPFixedPricePTAMMV2Interface;
266
+
267
+ queryFilter<TEvent extends TypedEvent>(
268
+ event: TypedEventFilter<TEvent>,
269
+ fromBlockOrBlockhash?: string | number | undefined,
270
+ toBlock?: string | number | undefined
271
+ ): Promise<Array<TEvent>>;
272
+
273
+ listeners<TEvent extends TypedEvent>(
274
+ eventFilter?: TypedEventFilter<TEvent>
275
+ ): Array<TypedListener<TEvent>>;
276
+ listeners(eventName?: string): Array<Listener>;
277
+ removeAllListeners<TEvent extends TypedEvent>(
278
+ eventFilter: TypedEventFilter<TEvent>
279
+ ): this;
280
+ removeAllListeners(eventName?: string): this;
281
+ off: OnEvent<this>;
282
+ on: OnEvent<this>;
283
+ once: OnEvent<this>;
284
+ removeListener: OnEvent<this>;
285
+
286
+ functions: {
287
+ addFundWhitelisted(
288
+ amount: BigNumberish,
289
+ overrides?: Overrides & { from?: string | Promise<string> }
290
+ ): Promise<ContractTransaction>;
291
+
292
+ allowance(
293
+ owner: string,
294
+ spender: string,
295
+ overrides?: CallOverrides
296
+ ): Promise<[BigNumber]>;
297
+
298
+ approve(
299
+ spender: string,
300
+ amount: BigNumberish,
301
+ overrides?: Overrides & { from?: string | Promise<string> }
302
+ ): Promise<ContractTransaction>;
303
+
304
+ balanceOf(account: string, overrides?: CallOverrides): Promise<[BigNumber]>;
305
+
306
+ decimals(overrides?: CallOverrides): Promise<[number]>;
307
+
308
+ isWhitelisted(user: string, overrides?: CallOverrides): Promise<[boolean]>;
309
+
310
+ name(overrides?: CallOverrides): Promise<[string]>;
311
+
312
+ outputToken(overrides?: CallOverrides): Promise<[string]>;
313
+
314
+ previewSwapExactPtForToken(
315
+ PT: string,
316
+ exactPtIn: BigNumberish,
317
+ overrides?: CallOverrides
318
+ ): Promise<[BigNumber] & { amountTokenOut: BigNumber }>;
319
+
320
+ priceOracle(
321
+ PT: string,
322
+ overrides?: CallOverrides
323
+ ): Promise<
324
+ [boolean, string, BigNumber] & {
325
+ isPaused: boolean;
326
+ multiplier: BigNumber;
327
+ }
328
+ >;
329
+
330
+ removeFund(
331
+ amount: BigNumberish,
332
+ overrides?: Overrides & { from?: string | Promise<string> }
333
+ ): Promise<ContractTransaction>;
334
+
335
+ setPausePtTrading(
336
+ PT: string,
337
+ isPaused: boolean,
338
+ overrides?: Overrides & { from?: string | Promise<string> }
339
+ ): Promise<ContractTransaction>;
340
+
341
+ setPriceOracle(
342
+ PT: string,
343
+ priceOracle: string,
344
+ multiplier: BigNumberish,
345
+ overrides?: Overrides & { from?: string | Promise<string> }
346
+ ): Promise<ContractTransaction>;
347
+
348
+ setWhitelist(
349
+ user: string,
350
+ isWhitelisted: boolean,
351
+ overrides?: Overrides & { from?: string | Promise<string> }
352
+ ): Promise<ContractTransaction>;
353
+
354
+ swapExactPtForToken(
355
+ receiver: string,
356
+ PT: string,
357
+ exactPtIn: BigNumberish,
358
+ data: BytesLike,
359
+ overrides?: Overrides & { from?: string | Promise<string> }
360
+ ): Promise<ContractTransaction>;
361
+
362
+ symbol(overrides?: CallOverrides): Promise<[string]>;
363
+
364
+ totalPt(PT: string, overrides?: CallOverrides): Promise<[BigNumber]>;
365
+
366
+ totalSupply(overrides?: CallOverrides): Promise<[BigNumber]>;
367
+
368
+ transfer(
369
+ to: string,
370
+ amount: BigNumberish,
371
+ overrides?: Overrides & { from?: string | Promise<string> }
372
+ ): Promise<ContractTransaction>;
373
+
374
+ transferFrom(
375
+ from: string,
376
+ to: string,
377
+ amount: BigNumberish,
378
+ overrides?: Overrides & { from?: string | Promise<string> }
379
+ ): Promise<ContractTransaction>;
380
+
381
+ withdrawPt(
382
+ PT: string,
383
+ amount: BigNumberish,
384
+ overrides?: Overrides & { from?: string | Promise<string> }
385
+ ): Promise<ContractTransaction>;
386
+ };
387
+
388
+ addFundWhitelisted(
389
+ amount: BigNumberish,
390
+ overrides?: Overrides & { from?: string | Promise<string> }
391
+ ): Promise<ContractTransaction>;
392
+
393
+ allowance(
394
+ owner: string,
395
+ spender: string,
396
+ overrides?: CallOverrides
397
+ ): Promise<BigNumber>;
398
+
399
+ approve(
400
+ spender: string,
401
+ amount: BigNumberish,
402
+ overrides?: Overrides & { from?: string | Promise<string> }
403
+ ): Promise<ContractTransaction>;
404
+
405
+ balanceOf(account: string, overrides?: CallOverrides): Promise<BigNumber>;
406
+
407
+ decimals(overrides?: CallOverrides): Promise<number>;
408
+
409
+ isWhitelisted(user: string, overrides?: CallOverrides): Promise<boolean>;
410
+
411
+ name(overrides?: CallOverrides): Promise<string>;
412
+
413
+ outputToken(overrides?: CallOverrides): Promise<string>;
414
+
415
+ previewSwapExactPtForToken(
416
+ PT: string,
417
+ exactPtIn: BigNumberish,
418
+ overrides?: CallOverrides
419
+ ): Promise<BigNumber>;
420
+
421
+ priceOracle(
422
+ PT: string,
423
+ overrides?: CallOverrides
424
+ ): Promise<
425
+ [boolean, string, BigNumber] & { isPaused: boolean; multiplier: BigNumber }
426
+ >;
427
+
428
+ removeFund(
429
+ amount: BigNumberish,
430
+ overrides?: Overrides & { from?: string | Promise<string> }
431
+ ): Promise<ContractTransaction>;
432
+
433
+ setPausePtTrading(
434
+ PT: string,
435
+ isPaused: boolean,
436
+ overrides?: Overrides & { from?: string | Promise<string> }
437
+ ): Promise<ContractTransaction>;
438
+
439
+ setPriceOracle(
440
+ PT: string,
441
+ priceOracle: string,
442
+ multiplier: BigNumberish,
443
+ overrides?: Overrides & { from?: string | Promise<string> }
444
+ ): Promise<ContractTransaction>;
445
+
446
+ setWhitelist(
447
+ user: string,
448
+ isWhitelisted: boolean,
449
+ overrides?: Overrides & { from?: string | Promise<string> }
450
+ ): Promise<ContractTransaction>;
451
+
452
+ swapExactPtForToken(
453
+ receiver: string,
454
+ PT: string,
455
+ exactPtIn: BigNumberish,
456
+ data: BytesLike,
457
+ overrides?: Overrides & { from?: string | Promise<string> }
458
+ ): Promise<ContractTransaction>;
459
+
460
+ symbol(overrides?: CallOverrides): Promise<string>;
461
+
462
+ totalPt(PT: string, overrides?: CallOverrides): Promise<BigNumber>;
463
+
464
+ totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
465
+
466
+ transfer(
467
+ to: string,
468
+ amount: BigNumberish,
469
+ overrides?: Overrides & { from?: string | Promise<string> }
470
+ ): Promise<ContractTransaction>;
471
+
472
+ transferFrom(
473
+ from: string,
474
+ to: string,
475
+ amount: BigNumberish,
476
+ overrides?: Overrides & { from?: string | Promise<string> }
477
+ ): Promise<ContractTransaction>;
478
+
479
+ withdrawPt(
480
+ PT: string,
481
+ amount: BigNumberish,
482
+ overrides?: Overrides & { from?: string | Promise<string> }
483
+ ): Promise<ContractTransaction>;
484
+
485
+ callStatic: {
486
+ addFundWhitelisted(
487
+ amount: BigNumberish,
488
+ overrides?: CallOverrides
489
+ ): Promise<void>;
490
+
491
+ allowance(
492
+ owner: string,
493
+ spender: string,
494
+ overrides?: CallOverrides
495
+ ): Promise<BigNumber>;
496
+
497
+ approve(
498
+ spender: string,
499
+ amount: BigNumberish,
500
+ overrides?: CallOverrides
501
+ ): Promise<boolean>;
502
+
503
+ balanceOf(account: string, overrides?: CallOverrides): Promise<BigNumber>;
504
+
505
+ decimals(overrides?: CallOverrides): Promise<number>;
506
+
507
+ isWhitelisted(user: string, overrides?: CallOverrides): Promise<boolean>;
508
+
509
+ name(overrides?: CallOverrides): Promise<string>;
510
+
511
+ outputToken(overrides?: CallOverrides): Promise<string>;
512
+
513
+ previewSwapExactPtForToken(
514
+ PT: string,
515
+ exactPtIn: BigNumberish,
516
+ overrides?: CallOverrides
517
+ ): Promise<BigNumber>;
518
+
519
+ priceOracle(
520
+ PT: string,
521
+ overrides?: CallOverrides
522
+ ): Promise<
523
+ [boolean, string, BigNumber] & {
524
+ isPaused: boolean;
525
+ multiplier: BigNumber;
526
+ }
527
+ >;
528
+
529
+ removeFund(amount: BigNumberish, overrides?: CallOverrides): Promise<void>;
530
+
531
+ setPausePtTrading(
532
+ PT: string,
533
+ isPaused: boolean,
534
+ overrides?: CallOverrides
535
+ ): Promise<void>;
536
+
537
+ setPriceOracle(
538
+ PT: string,
539
+ priceOracle: string,
540
+ multiplier: BigNumberish,
541
+ overrides?: CallOverrides
542
+ ): Promise<void>;
543
+
544
+ setWhitelist(
545
+ user: string,
546
+ isWhitelisted: boolean,
547
+ overrides?: CallOverrides
548
+ ): Promise<void>;
549
+
550
+ swapExactPtForToken(
551
+ receiver: string,
552
+ PT: string,
553
+ exactPtIn: BigNumberish,
554
+ data: BytesLike,
555
+ overrides?: CallOverrides
556
+ ): Promise<BigNumber>;
557
+
558
+ symbol(overrides?: CallOverrides): Promise<string>;
559
+
560
+ totalPt(PT: string, overrides?: CallOverrides): Promise<BigNumber>;
561
+
562
+ totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
563
+
564
+ transfer(
565
+ to: string,
566
+ amount: BigNumberish,
567
+ overrides?: CallOverrides
568
+ ): Promise<boolean>;
569
+
570
+ transferFrom(
571
+ from: string,
572
+ to: string,
573
+ amount: BigNumberish,
574
+ overrides?: CallOverrides
575
+ ): Promise<boolean>;
576
+
577
+ withdrawPt(
578
+ PT: string,
579
+ amount: BigNumberish,
580
+ overrides?: CallOverrides
581
+ ): Promise<void>;
582
+ };
583
+
584
+ filters: {
585
+ "Approval(address,address,uint256)"(
586
+ owner?: string | null,
587
+ spender?: string | null,
588
+ value?: null
589
+ ): ApprovalEventFilter;
590
+ Approval(
591
+ owner?: string | null,
592
+ spender?: string | null,
593
+ value?: null
594
+ ): ApprovalEventFilter;
595
+
596
+ "PauseStatusUpdated(address,bool)"(
597
+ PT?: string | null,
598
+ isPaused?: null
599
+ ): PauseStatusUpdatedEventFilter;
600
+ PauseStatusUpdated(
601
+ PT?: string | null,
602
+ isPaused?: null
603
+ ): PauseStatusUpdatedEventFilter;
604
+
605
+ "PriceOracleUpdated(address,address)"(
606
+ PT?: string | null,
607
+ priceOracle?: string | null
608
+ ): PriceOracleUpdatedEventFilter;
609
+ PriceOracleUpdated(
610
+ PT?: string | null,
611
+ priceOracle?: string | null
612
+ ): PriceOracleUpdatedEventFilter;
613
+
614
+ "Swap(address,address,address,uint256,uint256)"(
615
+ caller?: string | null,
616
+ receiver?: string | null,
617
+ PT?: null,
618
+ netPtIn?: null,
619
+ netTokenOut?: null
620
+ ): SwapEventFilter;
621
+ Swap(
622
+ caller?: string | null,
623
+ receiver?: string | null,
624
+ PT?: null,
625
+ netPtIn?: null,
626
+ netTokenOut?: null
627
+ ): SwapEventFilter;
628
+
629
+ "TokenFunded(address,uint256)"(
630
+ sender?: string | null,
631
+ amount?: null
632
+ ): TokenFundedEventFilter;
633
+ TokenFunded(sender?: string | null, amount?: null): TokenFundedEventFilter;
634
+
635
+ "TokenWithdrawn(address,uint256)"(
636
+ sender?: string | null,
637
+ amount?: null
638
+ ): TokenWithdrawnEventFilter;
639
+ TokenWithdrawn(
640
+ sender?: string | null,
641
+ amount?: null
642
+ ): TokenWithdrawnEventFilter;
643
+
644
+ "Transfer(address,address,uint256)"(
645
+ from?: string | null,
646
+ to?: string | null,
647
+ value?: null
648
+ ): TransferEventFilter;
649
+ Transfer(
650
+ from?: string | null,
651
+ to?: string | null,
652
+ value?: null
653
+ ): TransferEventFilter;
654
+
655
+ "WhitelistUpdated(address,bool)"(
656
+ user?: string | null,
657
+ isWhitelisted?: null
658
+ ): WhitelistUpdatedEventFilter;
659
+ WhitelistUpdated(
660
+ user?: string | null,
661
+ isWhitelisted?: null
662
+ ): WhitelistUpdatedEventFilter;
663
+ };
664
+
665
+ estimateGas: {
666
+ addFundWhitelisted(
667
+ amount: BigNumberish,
668
+ overrides?: Overrides & { from?: string | Promise<string> }
669
+ ): Promise<BigNumber>;
670
+
671
+ allowance(
672
+ owner: string,
673
+ spender: string,
674
+ overrides?: CallOverrides
675
+ ): Promise<BigNumber>;
676
+
677
+ approve(
678
+ spender: string,
679
+ amount: BigNumberish,
680
+ overrides?: Overrides & { from?: string | Promise<string> }
681
+ ): Promise<BigNumber>;
682
+
683
+ balanceOf(account: string, overrides?: CallOverrides): Promise<BigNumber>;
684
+
685
+ decimals(overrides?: CallOverrides): Promise<BigNumber>;
686
+
687
+ isWhitelisted(user: string, overrides?: CallOverrides): Promise<BigNumber>;
688
+
689
+ name(overrides?: CallOverrides): Promise<BigNumber>;
690
+
691
+ outputToken(overrides?: CallOverrides): Promise<BigNumber>;
692
+
693
+ previewSwapExactPtForToken(
694
+ PT: string,
695
+ exactPtIn: BigNumberish,
696
+ overrides?: CallOverrides
697
+ ): Promise<BigNumber>;
698
+
699
+ priceOracle(PT: string, overrides?: CallOverrides): Promise<BigNumber>;
700
+
701
+ removeFund(
702
+ amount: BigNumberish,
703
+ overrides?: Overrides & { from?: string | Promise<string> }
704
+ ): Promise<BigNumber>;
705
+
706
+ setPausePtTrading(
707
+ PT: string,
708
+ isPaused: boolean,
709
+ overrides?: Overrides & { from?: string | Promise<string> }
710
+ ): Promise<BigNumber>;
711
+
712
+ setPriceOracle(
713
+ PT: string,
714
+ priceOracle: string,
715
+ multiplier: BigNumberish,
716
+ overrides?: Overrides & { from?: string | Promise<string> }
717
+ ): Promise<BigNumber>;
718
+
719
+ setWhitelist(
720
+ user: string,
721
+ isWhitelisted: boolean,
722
+ overrides?: Overrides & { from?: string | Promise<string> }
723
+ ): Promise<BigNumber>;
724
+
725
+ swapExactPtForToken(
726
+ receiver: string,
727
+ PT: string,
728
+ exactPtIn: BigNumberish,
729
+ data: BytesLike,
730
+ overrides?: Overrides & { from?: string | Promise<string> }
731
+ ): Promise<BigNumber>;
732
+
733
+ symbol(overrides?: CallOverrides): Promise<BigNumber>;
734
+
735
+ totalPt(PT: string, overrides?: CallOverrides): Promise<BigNumber>;
736
+
737
+ totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
738
+
739
+ transfer(
740
+ to: string,
741
+ amount: BigNumberish,
742
+ overrides?: Overrides & { from?: string | Promise<string> }
743
+ ): Promise<BigNumber>;
744
+
745
+ transferFrom(
746
+ from: string,
747
+ to: string,
748
+ amount: BigNumberish,
749
+ overrides?: Overrides & { from?: string | Promise<string> }
750
+ ): Promise<BigNumber>;
751
+
752
+ withdrawPt(
753
+ PT: string,
754
+ amount: BigNumberish,
755
+ overrides?: Overrides & { from?: string | Promise<string> }
756
+ ): Promise<BigNumber>;
757
+ };
758
+
759
+ populateTransaction: {
760
+ addFundWhitelisted(
761
+ amount: BigNumberish,
762
+ overrides?: Overrides & { from?: string | Promise<string> }
763
+ ): Promise<PopulatedTransaction>;
764
+
765
+ allowance(
766
+ owner: string,
767
+ spender: string,
768
+ overrides?: CallOverrides
769
+ ): Promise<PopulatedTransaction>;
770
+
771
+ approve(
772
+ spender: string,
773
+ amount: BigNumberish,
774
+ overrides?: Overrides & { from?: string | Promise<string> }
775
+ ): Promise<PopulatedTransaction>;
776
+
777
+ balanceOf(
778
+ account: string,
779
+ overrides?: CallOverrides
780
+ ): Promise<PopulatedTransaction>;
781
+
782
+ decimals(overrides?: CallOverrides): Promise<PopulatedTransaction>;
783
+
784
+ isWhitelisted(
785
+ user: string,
786
+ overrides?: CallOverrides
787
+ ): Promise<PopulatedTransaction>;
788
+
789
+ name(overrides?: CallOverrides): Promise<PopulatedTransaction>;
790
+
791
+ outputToken(overrides?: CallOverrides): Promise<PopulatedTransaction>;
792
+
793
+ previewSwapExactPtForToken(
794
+ PT: string,
795
+ exactPtIn: BigNumberish,
796
+ overrides?: CallOverrides
797
+ ): Promise<PopulatedTransaction>;
798
+
799
+ priceOracle(
800
+ PT: string,
801
+ overrides?: CallOverrides
802
+ ): Promise<PopulatedTransaction>;
803
+
804
+ removeFund(
805
+ amount: BigNumberish,
806
+ overrides?: Overrides & { from?: string | Promise<string> }
807
+ ): Promise<PopulatedTransaction>;
808
+
809
+ setPausePtTrading(
810
+ PT: string,
811
+ isPaused: boolean,
812
+ overrides?: Overrides & { from?: string | Promise<string> }
813
+ ): Promise<PopulatedTransaction>;
814
+
815
+ setPriceOracle(
816
+ PT: string,
817
+ priceOracle: string,
818
+ multiplier: BigNumberish,
819
+ overrides?: Overrides & { from?: string | Promise<string> }
820
+ ): Promise<PopulatedTransaction>;
821
+
822
+ setWhitelist(
823
+ user: string,
824
+ isWhitelisted: boolean,
825
+ overrides?: Overrides & { from?: string | Promise<string> }
826
+ ): Promise<PopulatedTransaction>;
827
+
828
+ swapExactPtForToken(
829
+ receiver: string,
830
+ PT: string,
831
+ exactPtIn: BigNumberish,
832
+ data: BytesLike,
833
+ overrides?: Overrides & { from?: string | Promise<string> }
834
+ ): Promise<PopulatedTransaction>;
835
+
836
+ symbol(overrides?: CallOverrides): Promise<PopulatedTransaction>;
837
+
838
+ totalPt(
839
+ PT: string,
840
+ overrides?: CallOverrides
841
+ ): Promise<PopulatedTransaction>;
842
+
843
+ totalSupply(overrides?: CallOverrides): Promise<PopulatedTransaction>;
844
+
845
+ transfer(
846
+ to: string,
847
+ amount: BigNumberish,
848
+ overrides?: Overrides & { from?: string | Promise<string> }
849
+ ): Promise<PopulatedTransaction>;
850
+
851
+ transferFrom(
852
+ from: string,
853
+ to: string,
854
+ amount: BigNumberish,
855
+ overrides?: Overrides & { from?: string | Promise<string> }
856
+ ): Promise<PopulatedTransaction>;
857
+
858
+ withdrawPt(
859
+ PT: string,
860
+ amount: BigNumberish,
861
+ overrides?: Overrides & { from?: string | Promise<string> }
862
+ ): Promise<PopulatedTransaction>;
863
+ };
864
+ }