@pendle/core-v2 6.6.1 → 6.7.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 (180) hide show
  1. package/build/artifacts/contracts/LiquidityMining/PendleMerkleDistributor.sol/PendleMerkleDistributor.dbg.json +1 -1
  2. package/build/artifacts/contracts/LiquidityMining/PendleMerkleDistributor.sol/PendleMerkleDistributor.json +2 -88
  3. package/build/artifacts/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol/PendleMultiTokenMerkleDistributor.dbg.json +1 -1
  4. package/build/artifacts/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol/PendleMultiTokenMerkleDistributor.json +2 -122
  5. package/build/artifacts/contracts/cross-chain/OFTPTSwapper.sol/OFTPTSwapper.dbg.json +4 -0
  6. package/build/artifacts/contracts/cross-chain/OFTPTSwapper.sol/OFTPTSwapper.json +99 -0
  7. package/build/artifacts/contracts/cross-chain/factory/PendleBridgePTFactory.sol/PendleBridgePTFactory.dbg.json +4 -0
  8. package/build/artifacts/contracts/cross-chain/factory/PendleBridgePTFactory.sol/PendleBridgePTFactory.json +1388 -0
  9. package/build/artifacts/contracts/cross-chain/funder/BridgeFunder.sol/BridgeFunder.dbg.json +1 -1
  10. package/build/artifacts/contracts/cross-chain/oftImpl/hub/OFTAdapterAltImpl.sol/OFTAdapterAltImpl.dbg.json +1 -1
  11. package/build/artifacts/contracts/cross-chain/oftImpl/hub/OFTAdapterAltImpl.sol/OFTAdapterAltImpl.json +46 -14
  12. package/build/artifacts/contracts/cross-chain/oftImpl/hub/OFTAdapterImpl.sol/OFTAdapterImpl.dbg.json +1 -1
  13. package/build/artifacts/contracts/cross-chain/oftImpl/hub/OFTAdapterImpl.sol/OFTAdapterImpl.json +46 -14
  14. package/build/artifacts/contracts/cross-chain/oftImpl/pendleOft/PendleOFT.sol/PendleOFT.dbg.json +4 -0
  15. package/build/artifacts/contracts/cross-chain/oftImpl/pendleOft/PendleOFT.sol/PendleOFT.json +1541 -0
  16. package/build/artifacts/contracts/cross-chain/oftImpl/pendleOft/PendleOFTAlt.sol/PendleOFTAlt.dbg.json +4 -0
  17. package/build/artifacts/contracts/cross-chain/oftImpl/pendleOft/PendleOFTAlt.sol/PendleOFTAlt.json +1570 -0
  18. package/build/artifacts/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalToken.sol/PendleBridgedPrincipalToken.dbg.json +1 -1
  19. package/build/artifacts/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalToken.sol/PendleBridgedPrincipalToken.json +57 -35
  20. package/build/artifacts/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalTokenAlt.sol/PendleBridgedPrincipalTokenAlt.dbg.json +1 -1
  21. package/build/artifacts/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalTokenAlt.sol/PendleBridgedPrincipalTokenAlt.json +57 -35
  22. package/build/artifacts/contracts/interfaces/IMarketSweed.sol/IMarketSweed.dbg.json +1 -1
  23. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiqV3.sol/IPActionAddRemoveLiqV3.dbg.json +1 -1
  24. package/build/artifacts/contracts/interfaces/IPActionCallbackV3.sol/IPActionCallbackV3.dbg.json +1 -1
  25. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
  26. package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
  27. package/build/artifacts/contracts/interfaces/IPActionSimple.sol/IPActionSimple.dbg.json +1 -1
  28. package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
  29. package/build/artifacts/contracts/interfaces/IPActionStorageV4.sol/IPActionStorageV4.dbg.json +1 -1
  30. package/build/artifacts/contracts/interfaces/IPActionSwapPTV3.sol/IPActionSwapPTV3.dbg.json +1 -1
  31. package/build/artifacts/contracts/interfaces/IPActionSwapYTV3.sol/IPActionSwapYTV3.dbg.json +1 -1
  32. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
  33. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionAddRemoveLiqV3Events.dbg.json +1 -1
  34. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionMiscV3Events.dbg.json +1 -1
  35. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionStorageEvents.dbg.json +1 -1
  36. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapPTV3Events.dbg.json +1 -1
  37. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapYTV3Events.dbg.json +1 -1
  38. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPAllEventsV3.dbg.json +1 -1
  39. package/build/artifacts/contracts/interfaces/IPBridgeFunder.sol/IPBridgeFunder.dbg.json +1 -1
  40. package/build/artifacts/contracts/interfaces/IPBridgePTFactory.sol/IPBridgePTFactory.dbg.json +4 -0
  41. package/build/artifacts/contracts/interfaces/IPBridgePTFactory.sol/IPBridgePTFactory.json +1026 -0
  42. package/build/artifacts/contracts/interfaces/IPBridgedPrincipalToken.sol/IPBridgedPrincipalToken.dbg.json +1 -1
  43. package/build/artifacts/contracts/interfaces/IPBridgedPrincipalToken.sol/IPBridgedPrincipalToken.json +11 -0
  44. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitOrderType.dbg.json +1 -1
  45. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouter.dbg.json +1 -1
  46. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouterCallback.dbg.json +1 -1
  47. package/build/artifacts/contracts/interfaces/IPMerkleDistributor.sol/IPMerkleDistributor.dbg.json +1 -1
  48. package/build/artifacts/contracts/interfaces/IPMerkleDistributor.sol/IPMerkleDistributor.json +0 -67
  49. package/build/artifacts/contracts/interfaces/IPMultiTokenMerkleDistributor.sol/IPMultiTokenMerkleDistributor.dbg.json +1 -1
  50. package/build/artifacts/contracts/interfaces/IPMultiTokenMerkleDistributor.sol/IPMultiTokenMerkleDistributor.json +0 -120
  51. package/build/artifacts/contracts/interfaces/IPOFTPTSwapper.sol/IPOFTPTSwapper.dbg.json +4 -0
  52. package/build/artifacts/contracts/interfaces/{IPSwapHelper.sol/IPSwapHelper.json → IPOFTPTSwapper.sol/IPOFTPTSwapper.json} +2 -2
  53. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
  54. package/build/artifacts/contracts/limit/LimitMathCore.sol/LimitMathCore.dbg.json +1 -1
  55. package/build/artifacts/contracts/limit/LimitRouterBase.sol/LimitRouterBase.dbg.json +1 -1
  56. package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.dbg.json +1 -1
  57. package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.json +2 -2
  58. package/build/artifacts/contracts/limit/helpers/MintSyHelper.sol/MintSyHelper.dbg.json +1 -1
  59. package/build/artifacts/contracts/offchain-helpers/ExpiredLpPtRedeemer.sol/ExpiredLpPtRedeemer.dbg.json +1 -1
  60. package/build/artifacts/contracts/offchain-helpers/LimitBackendHelperV2.sol/LimitBackendHelperV2.dbg.json +1 -1
  61. package/build/artifacts/contracts/offchain-helpers/MarketSweed.sol/MarketSweed.dbg.json +1 -1
  62. package/build/artifacts/contracts/offchain-helpers/PendleFeeSetter.sol/PendleFeeSetter.dbg.json +1 -1
  63. package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol/PendleCommonPoolDeployHelperV2.dbg.json +1 -1
  64. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
  65. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.dbg.json +1 -1
  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/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
  68. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
  69. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
  70. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
  71. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
  72. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
  73. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.dbg.json +1 -1
  74. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.dbg.json +1 -1
  75. package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
  76. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.dbg.json +1 -1
  77. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.dbg.json +1 -1
  78. package/build/artifacts/contracts/router/Reflector.sol/Reflector.dbg.json +1 -1
  79. package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
  80. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.dbg.json +1 -1
  81. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.dbg.json +1 -1
  82. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.dbg.json +1 -1
  83. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.dbg.json +1 -1
  84. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.dbg.json +1 -1
  85. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.dbg.json +1 -1
  86. package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/IOKXDexRouter.dbg.json +1 -1
  87. package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/OKXScaleHelper.dbg.json +1 -1
  88. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IKyberScalingHelper.dbg.json +1 -1
  89. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IOdosRouterV2.dbg.json +1 -1
  90. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.dbg.json +1 -1
  91. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.json +2 -2
  92. package/contracts/LiquidityMining/PendleMerkleDistributor.sol +1 -28
  93. package/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol +1 -36
  94. package/contracts/cross-chain/{PendleSwapHelper.sol → OFTPTSwapper.sol} +4 -3
  95. package/contracts/cross-chain/factory/PendleBridgePTFactory.sol +495 -0
  96. package/contracts/cross-chain/oftImpl/hub/OFTAdapterAltImpl.sol +5 -4
  97. package/contracts/cross-chain/oftImpl/hub/OFTAdapterImpl.sol +14 -6
  98. package/contracts/cross-chain/oftImpl/pendleOft/PendleOFT.sol +11 -0
  99. package/contracts/cross-chain/oftImpl/pendleOft/PendleOFTAlt.sol +52 -0
  100. package/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalToken.sol +33 -24
  101. package/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalTokenAlt.sol +4 -13
  102. package/contracts/interfaces/IPBridgePTFactory.sol +129 -0
  103. package/contracts/interfaces/IPBridgedPrincipalToken.sol +4 -2
  104. package/contracts/interfaces/IPMerkleDistributor.sol +0 -7
  105. package/contracts/interfaces/IPMultiTokenMerkleDistributor.sol +0 -10
  106. package/contracts/interfaces/{IPSwapHelper.sol → IPOFTPTSwapper.sol} +1 -1
  107. package/contracts/limit/LimitRouterBase.sol +1 -1
  108. package/contracts/router/swap-aggregator/OKXScaleHelper.sol +4 -1
  109. package/deployments/1-core.json +2 -1
  110. package/deployments/130-core.json +2 -1
  111. package/deployments/143-core.json +38 -1
  112. package/deployments/143-offchain-helper.json +11 -0
  113. package/deployments/42161-core.json +2 -1
  114. package/deployments/4217-core.json +3 -1
  115. package/deployments/43114-core.json +3 -1
  116. package/deployments/56-core.json +2 -1
  117. package/deployments/57073-core.json +4 -1
  118. package/deployments/747474-core.json +4 -1
  119. package/deployments/8453-core.json +2 -1
  120. package/deployments/9745-core.json +2 -1
  121. package/deployments/999-core.json +2 -1
  122. package/package.json +12 -9
  123. package/typechain-types/DVNOptions.ts +57 -0
  124. package/typechain-types/ExecutorOptions.ts +57 -0
  125. package/typechain-types/IPBridgePTFactory.ts +936 -0
  126. package/typechain-types/IPMerkleDistributor.ts +0 -90
  127. package/typechain-types/IPMultiTokenMerkleDistributor.ts +0 -158
  128. package/typechain-types/IPOFTPTSwapper.ts +161 -0
  129. package/typechain-types/OAppPreCrimeSimulatorUpgradeable.ts +410 -0
  130. package/typechain-types/OFTAdapterAltImpl.ts +50 -19
  131. package/typechain-types/OFTAdapterImpl.ts +50 -19
  132. package/typechain-types/OFTAdapterUpgradeable.ts +1337 -0
  133. package/typechain-types/OFTCoreUpgradeable.ts +1337 -0
  134. package/typechain-types/OFTPTSwapper.ts +161 -0
  135. package/typechain-types/OFTUpgradeable.ts +1681 -0
  136. package/typechain-types/OptionsBuilder.ts +57 -0
  137. package/typechain-types/PendleBridgePTFactory.ts +1311 -0
  138. package/typechain-types/PendleBridgedPrincipalToken.ts +67 -20
  139. package/typechain-types/PendleBridgedPrincipalTokenAlt.ts +67 -20
  140. package/typechain-types/PendleMerkleDistributor.ts +0 -106
  141. package/typechain-types/PendleMultiTokenMerkleDistributor.ts +0 -158
  142. package/typechain-types/PendleOFT.ts +1675 -0
  143. package/typechain-types/PendleOFTAlt.ts +1694 -0
  144. package/typechain-types/factories/DVNOptions__factory.ts +77 -0
  145. package/typechain-types/factories/ExecutorOptions__factory.ts +84 -0
  146. package/typechain-types/factories/IOFT__factory.ts +11 -0
  147. package/typechain-types/factories/IPBridgePTFactory__factory.ts +1041 -0
  148. package/typechain-types/factories/IPBridgedPrincipalToken__factory.ts +11 -0
  149. package/typechain-types/factories/IPMerkleDistributor__factory.ts +0 -67
  150. package/typechain-types/factories/IPMultiTokenMerkleDistributor__factory.ts +0 -120
  151. package/typechain-types/factories/IPOFTPTSwapper__factory.ts +114 -0
  152. package/typechain-types/factories/OAppPreCrimeSimulatorUpgradeable__factory.ts +311 -0
  153. package/typechain-types/factories/OFTAdapterAltImpl__factory.ts +49 -25
  154. package/typechain-types/factories/OFTAdapterImpl__factory.ts +49 -25
  155. package/typechain-types/factories/OFTAdapterUpgradeable__factory.ts +1287 -0
  156. package/typechain-types/factories/OFTAdapter__factory.ts +11 -0
  157. package/typechain-types/factories/OFTCoreUpgradeable__factory.ts +1283 -0
  158. package/typechain-types/factories/OFTCore__factory.ts +11 -0
  159. package/typechain-types/factories/OFTPTSwapper__factory.ts +149 -0
  160. package/typechain-types/factories/OFTUpgradeable__factory.ts +1553 -0
  161. package/typechain-types/factories/OFT__factory.ts +11 -0
  162. package/typechain-types/factories/OptionsBuilder__factory.ts +91 -0
  163. package/typechain-types/factories/PendleBridgePTFactory__factory.ts +1481 -0
  164. package/typechain-types/factories/PendleBridgedPrincipalTokenAlt__factory.ts +60 -58
  165. package/typechain-types/factories/PendleBridgedPrincipalToken__factory.ts +60 -58
  166. package/typechain-types/factories/PendleLimitRouter__factory.ts +1 -1
  167. package/typechain-types/factories/PendleMerkleDistributor__factory.ts +1 -87
  168. package/typechain-types/factories/PendleMultiTokenMerkleDistributor__factory.ts +1 -121
  169. package/typechain-types/factories/PendleOFTAlt__factory.ts +1628 -0
  170. package/typechain-types/factories/PendleOFT__factory.ts +1599 -0
  171. package/typechain-types/factories/PendlePTOFTAdapterFactory__factory.ts +1 -1
  172. package/typechain-types/factories/PendleSwap__factory.ts +1 -1
  173. package/typechain-types/hardhat.d.ts +107 -53
  174. package/typechain-types/index.ts +26 -12
  175. package/build/artifacts/contracts/cross-chain/PendleSwapHelper.sol/PendleSwapHelper.dbg.json +0 -4
  176. package/build/artifacts/contracts/cross-chain/PendleSwapHelper.sol/PendleSwapHelper.json +0 -99
  177. package/build/artifacts/contracts/cross-chain/factory/hub/PendlePTOFTAdapterFactory.sol/PendlePTOFTAdapterFactory.dbg.json +0 -4
  178. package/build/artifacts/contracts/cross-chain/factory/hub/PendlePTOFTAdapterFactory.sol/PendlePTOFTAdapterFactory.json +0 -280
  179. package/build/artifacts/contracts/interfaces/IPSwapHelper.sol/IPSwapHelper.dbg.json +0 -4
  180. package/contracts/cross-chain/factory/hub/PendlePTOFTAdapterFactory.sol +0 -38
@@ -26,39 +26,22 @@ export interface IPMerkleDistributorInterface extends utils.Interface {
26
26
  contractName: "IPMerkleDistributor";
27
27
  functions: {
28
28
  "claim(address,uint256,bytes32[])": FunctionFragment;
29
- "claimVerified(address)": FunctionFragment;
30
- "verify(address,uint256,bytes32[])": FunctionFragment;
31
29
  };
32
30
 
33
31
  encodeFunctionData(
34
32
  functionFragment: "claim",
35
33
  values: [string, BigNumberish, BytesLike[]]
36
34
  ): string;
37
- encodeFunctionData(
38
- functionFragment: "claimVerified",
39
- values: [string]
40
- ): string;
41
- encodeFunctionData(
42
- functionFragment: "verify",
43
- values: [string, BigNumberish, BytesLike[]]
44
- ): string;
45
35
 
46
36
  decodeFunctionResult(functionFragment: "claim", data: BytesLike): Result;
47
- decodeFunctionResult(
48
- functionFragment: "claimVerified",
49
- data: BytesLike
50
- ): Result;
51
- decodeFunctionResult(functionFragment: "verify", data: BytesLike): Result;
52
37
 
53
38
  events: {
54
39
  "Claimed(address,address,uint256)": EventFragment;
55
40
  "SetMerkleRoot(bytes32)": EventFragment;
56
- "Verified(address,uint256)": EventFragment;
57
41
  };
58
42
 
59
43
  getEvent(nameOrSignatureOrTopic: "Claimed"): EventFragment;
60
44
  getEvent(nameOrSignatureOrTopic: "SetMerkleRoot"): EventFragment;
61
- getEvent(nameOrSignatureOrTopic: "Verified"): EventFragment;
62
45
  }
63
46
 
64
47
  export type ClaimedEvent = TypedEvent<
@@ -72,13 +55,6 @@ export type SetMerkleRootEvent = TypedEvent<[string], { merkleRoot: string }>;
72
55
 
73
56
  export type SetMerkleRootEventFilter = TypedEventFilter<SetMerkleRootEvent>;
74
57
 
75
- export type VerifiedEvent = TypedEvent<
76
- [string, BigNumber],
77
- { user: string; amountClaimable: BigNumber }
78
- >;
79
-
80
- export type VerifiedEventFilter = TypedEventFilter<VerifiedEvent>;
81
-
82
58
  export interface IPMerkleDistributor extends BaseContract {
83
59
  contractName: "IPMerkleDistributor";
84
60
  connect(signerOrProvider: Signer | Provider | string): this;
@@ -113,18 +89,6 @@ export interface IPMerkleDistributor extends BaseContract {
113
89
  proof: BytesLike[],
114
90
  overrides?: Overrides & { from?: string | Promise<string> }
115
91
  ): Promise<ContractTransaction>;
116
-
117
- claimVerified(
118
- receiver: string,
119
- overrides?: Overrides & { from?: string | Promise<string> }
120
- ): Promise<ContractTransaction>;
121
-
122
- verify(
123
- user: string,
124
- totalAccrued: BigNumberish,
125
- proof: BytesLike[],
126
- overrides?: Overrides & { from?: string | Promise<string> }
127
- ): Promise<ContractTransaction>;
128
92
  };
129
93
 
130
94
  claim(
@@ -134,18 +98,6 @@ export interface IPMerkleDistributor extends BaseContract {
134
98
  overrides?: Overrides & { from?: string | Promise<string> }
135
99
  ): Promise<ContractTransaction>;
136
100
 
137
- claimVerified(
138
- receiver: string,
139
- overrides?: Overrides & { from?: string | Promise<string> }
140
- ): Promise<ContractTransaction>;
141
-
142
- verify(
143
- user: string,
144
- totalAccrued: BigNumberish,
145
- proof: BytesLike[],
146
- overrides?: Overrides & { from?: string | Promise<string> }
147
- ): Promise<ContractTransaction>;
148
-
149
101
  callStatic: {
150
102
  claim(
151
103
  receiver: string,
@@ -153,18 +105,6 @@ export interface IPMerkleDistributor extends BaseContract {
153
105
  proof: BytesLike[],
154
106
  overrides?: CallOverrides
155
107
  ): Promise<BigNumber>;
156
-
157
- claimVerified(
158
- receiver: string,
159
- overrides?: CallOverrides
160
- ): Promise<BigNumber>;
161
-
162
- verify(
163
- user: string,
164
- totalAccrued: BigNumberish,
165
- proof: BytesLike[],
166
- overrides?: CallOverrides
167
- ): Promise<BigNumber>;
168
108
  };
169
109
 
170
110
  filters: {
@@ -183,12 +123,6 @@ export interface IPMerkleDistributor extends BaseContract {
183
123
  merkleRoot?: BytesLike | null
184
124
  ): SetMerkleRootEventFilter;
185
125
  SetMerkleRoot(merkleRoot?: BytesLike | null): SetMerkleRootEventFilter;
186
-
187
- "Verified(address,uint256)"(
188
- user?: string | null,
189
- amountClaimable?: null
190
- ): VerifiedEventFilter;
191
- Verified(user?: string | null, amountClaimable?: null): VerifiedEventFilter;
192
126
  };
193
127
 
194
128
  estimateGas: {
@@ -198,18 +132,6 @@ export interface IPMerkleDistributor extends BaseContract {
198
132
  proof: BytesLike[],
199
133
  overrides?: Overrides & { from?: string | Promise<string> }
200
134
  ): Promise<BigNumber>;
201
-
202
- claimVerified(
203
- receiver: string,
204
- overrides?: Overrides & { from?: string | Promise<string> }
205
- ): Promise<BigNumber>;
206
-
207
- verify(
208
- user: string,
209
- totalAccrued: BigNumberish,
210
- proof: BytesLike[],
211
- overrides?: Overrides & { from?: string | Promise<string> }
212
- ): Promise<BigNumber>;
213
135
  };
214
136
 
215
137
  populateTransaction: {
@@ -219,17 +141,5 @@ export interface IPMerkleDistributor extends BaseContract {
219
141
  proof: BytesLike[],
220
142
  overrides?: Overrides & { from?: string | Promise<string> }
221
143
  ): Promise<PopulatedTransaction>;
222
-
223
- claimVerified(
224
- receiver: string,
225
- overrides?: Overrides & { from?: string | Promise<string> }
226
- ): Promise<PopulatedTransaction>;
227
-
228
- verify(
229
- user: string,
230
- totalAccrued: BigNumberish,
231
- proof: BytesLike[],
232
- overrides?: Overrides & { from?: string | Promise<string> }
233
- ): Promise<PopulatedTransaction>;
234
144
  };
235
145
  }
@@ -27,21 +27,14 @@ export interface IPMultiTokenMerkleDistributorInterface
27
27
  contractName: "IPMultiTokenMerkleDistributor";
28
28
  functions: {
29
29
  "claim(address,address[],uint256[],bytes32[][])": FunctionFragment;
30
- "claimVerified(address,address[])": FunctionFragment;
31
30
  "claimed(address,address)": FunctionFragment;
32
31
  "merkleRoot()": FunctionFragment;
33
- "verified(address,address)": FunctionFragment;
34
- "verify(address,address[],uint256[],bytes32[][])": FunctionFragment;
35
32
  };
36
33
 
37
34
  encodeFunctionData(
38
35
  functionFragment: "claim",
39
36
  values: [string, string[], BigNumberish[], BytesLike[][]]
40
37
  ): string;
41
- encodeFunctionData(
42
- functionFragment: "claimVerified",
43
- values: [string, string[]]
44
- ): string;
45
38
  encodeFunctionData(
46
39
  functionFragment: "claimed",
47
40
  values: [string, string]
@@ -50,36 +43,18 @@ export interface IPMultiTokenMerkleDistributorInterface
50
43
  functionFragment: "merkleRoot",
51
44
  values?: undefined
52
45
  ): string;
53
- encodeFunctionData(
54
- functionFragment: "verified",
55
- values: [string, string]
56
- ): string;
57
- encodeFunctionData(
58
- functionFragment: "verify",
59
- values: [string, string[], BigNumberish[], BytesLike[][]]
60
- ): string;
61
46
 
62
47
  decodeFunctionResult(functionFragment: "claim", data: BytesLike): Result;
63
- decodeFunctionResult(
64
- functionFragment: "claimVerified",
65
- data: BytesLike
66
- ): Result;
67
48
  decodeFunctionResult(functionFragment: "claimed", data: BytesLike): Result;
68
49
  decodeFunctionResult(functionFragment: "merkleRoot", data: BytesLike): Result;
69
- decodeFunctionResult(functionFragment: "verified", data: BytesLike): Result;
70
- decodeFunctionResult(functionFragment: "verify", data: BytesLike): Result;
71
50
 
72
51
  events: {
73
52
  "Claimed(address,address,address,uint256)": EventFragment;
74
- "SetDefaultTokenList(address[])": EventFragment;
75
53
  "SetMerkleRoot(bytes32)": EventFragment;
76
- "Verified(address,address,uint256)": EventFragment;
77
54
  };
78
55
 
79
56
  getEvent(nameOrSignatureOrTopic: "Claimed"): EventFragment;
80
- getEvent(nameOrSignatureOrTopic: "SetDefaultTokenList"): EventFragment;
81
57
  getEvent(nameOrSignatureOrTopic: "SetMerkleRoot"): EventFragment;
82
- getEvent(nameOrSignatureOrTopic: "Verified"): EventFragment;
83
58
  }
84
59
 
85
60
  export type ClaimedEvent = TypedEvent<
@@ -89,25 +64,10 @@ export type ClaimedEvent = TypedEvent<
89
64
 
90
65
  export type ClaimedEventFilter = TypedEventFilter<ClaimedEvent>;
91
66
 
92
- export type SetDefaultTokenListEvent = TypedEvent<
93
- [string[]],
94
- { defaultTokenList: string[] }
95
- >;
96
-
97
- export type SetDefaultTokenListEventFilter =
98
- TypedEventFilter<SetDefaultTokenListEvent>;
99
-
100
67
  export type SetMerkleRootEvent = TypedEvent<[string], { merkleRoot: string }>;
101
68
 
102
69
  export type SetMerkleRootEventFilter = TypedEventFilter<SetMerkleRootEvent>;
103
70
 
104
- export type VerifiedEvent = TypedEvent<
105
- [string, string, BigNumber],
106
- { token: string; user: string; amountClaimable: BigNumber }
107
- >;
108
-
109
- export type VerifiedEventFilter = TypedEventFilter<VerifiedEvent>;
110
-
111
71
  export interface IPMultiTokenMerkleDistributor extends BaseContract {
112
72
  contractName: "IPMultiTokenMerkleDistributor";
113
73
  connect(signerOrProvider: Signer | Provider | string): this;
@@ -144,12 +104,6 @@ export interface IPMultiTokenMerkleDistributor extends BaseContract {
144
104
  overrides?: Overrides & { from?: string | Promise<string> }
145
105
  ): Promise<ContractTransaction>;
146
106
 
147
- claimVerified(
148
- receiver: string,
149
- tokens: string[],
150
- overrides?: Overrides & { from?: string | Promise<string> }
151
- ): Promise<ContractTransaction>;
152
-
153
107
  claimed(
154
108
  token: string,
155
109
  user: string,
@@ -157,20 +111,6 @@ export interface IPMultiTokenMerkleDistributor extends BaseContract {
157
111
  ): Promise<[BigNumber]>;
158
112
 
159
113
  merkleRoot(overrides?: CallOverrides): Promise<[string]>;
160
-
161
- verified(
162
- token: string,
163
- user: string,
164
- overrides?: CallOverrides
165
- ): Promise<[BigNumber]>;
166
-
167
- verify(
168
- user: string,
169
- tokens: string[],
170
- totalAccrueds: BigNumberish[],
171
- proofs: BytesLike[][],
172
- overrides?: Overrides & { from?: string | Promise<string> }
173
- ): Promise<ContractTransaction>;
174
114
  };
175
115
 
176
116
  claim(
@@ -181,12 +121,6 @@ export interface IPMultiTokenMerkleDistributor extends BaseContract {
181
121
  overrides?: Overrides & { from?: string | Promise<string> }
182
122
  ): Promise<ContractTransaction>;
183
123
 
184
- claimVerified(
185
- receiver: string,
186
- tokens: string[],
187
- overrides?: Overrides & { from?: string | Promise<string> }
188
- ): Promise<ContractTransaction>;
189
-
190
124
  claimed(
191
125
  token: string,
192
126
  user: string,
@@ -195,20 +129,6 @@ export interface IPMultiTokenMerkleDistributor extends BaseContract {
195
129
 
196
130
  merkleRoot(overrides?: CallOverrides): Promise<string>;
197
131
 
198
- verified(
199
- token: string,
200
- user: string,
201
- overrides?: CallOverrides
202
- ): Promise<BigNumber>;
203
-
204
- verify(
205
- user: string,
206
- tokens: string[],
207
- totalAccrueds: BigNumberish[],
208
- proofs: BytesLike[][],
209
- overrides?: Overrides & { from?: string | Promise<string> }
210
- ): Promise<ContractTransaction>;
211
-
212
132
  callStatic: {
213
133
  claim(
214
134
  receiver: string,
@@ -218,12 +138,6 @@ export interface IPMultiTokenMerkleDistributor extends BaseContract {
218
138
  overrides?: CallOverrides
219
139
  ): Promise<BigNumber[]>;
220
140
 
221
- claimVerified(
222
- receiver: string,
223
- tokens: string[],
224
- overrides?: CallOverrides
225
- ): Promise<BigNumber[]>;
226
-
227
141
  claimed(
228
142
  token: string,
229
143
  user: string,
@@ -231,20 +145,6 @@ export interface IPMultiTokenMerkleDistributor extends BaseContract {
231
145
  ): Promise<BigNumber>;
232
146
 
233
147
  merkleRoot(overrides?: CallOverrides): Promise<string>;
234
-
235
- verified(
236
- token: string,
237
- user: string,
238
- overrides?: CallOverrides
239
- ): Promise<BigNumber>;
240
-
241
- verify(
242
- user: string,
243
- tokens: string[],
244
- totalAccrueds: BigNumberish[],
245
- proofs: BytesLike[][],
246
- overrides?: CallOverrides
247
- ): Promise<BigNumber[]>;
248
148
  };
249
149
 
250
150
  filters: {
@@ -261,28 +161,10 @@ export interface IPMultiTokenMerkleDistributor extends BaseContract {
261
161
  amount?: null
262
162
  ): ClaimedEventFilter;
263
163
 
264
- "SetDefaultTokenList(address[])"(
265
- defaultTokenList?: null
266
- ): SetDefaultTokenListEventFilter;
267
- SetDefaultTokenList(
268
- defaultTokenList?: null
269
- ): SetDefaultTokenListEventFilter;
270
-
271
164
  "SetMerkleRoot(bytes32)"(
272
165
  merkleRoot?: BytesLike | null
273
166
  ): SetMerkleRootEventFilter;
274
167
  SetMerkleRoot(merkleRoot?: BytesLike | null): SetMerkleRootEventFilter;
275
-
276
- "Verified(address,address,uint256)"(
277
- token?: string | null,
278
- user?: string | null,
279
- amountClaimable?: null
280
- ): VerifiedEventFilter;
281
- Verified(
282
- token?: string | null,
283
- user?: string | null,
284
- amountClaimable?: null
285
- ): VerifiedEventFilter;
286
168
  };
287
169
 
288
170
  estimateGas: {
@@ -294,12 +176,6 @@ export interface IPMultiTokenMerkleDistributor extends BaseContract {
294
176
  overrides?: Overrides & { from?: string | Promise<string> }
295
177
  ): Promise<BigNumber>;
296
178
 
297
- claimVerified(
298
- receiver: string,
299
- tokens: string[],
300
- overrides?: Overrides & { from?: string | Promise<string> }
301
- ): Promise<BigNumber>;
302
-
303
179
  claimed(
304
180
  token: string,
305
181
  user: string,
@@ -307,20 +183,6 @@ export interface IPMultiTokenMerkleDistributor extends BaseContract {
307
183
  ): Promise<BigNumber>;
308
184
 
309
185
  merkleRoot(overrides?: CallOverrides): Promise<BigNumber>;
310
-
311
- verified(
312
- token: string,
313
- user: string,
314
- overrides?: CallOverrides
315
- ): Promise<BigNumber>;
316
-
317
- verify(
318
- user: string,
319
- tokens: string[],
320
- totalAccrueds: BigNumberish[],
321
- proofs: BytesLike[][],
322
- overrides?: Overrides & { from?: string | Promise<string> }
323
- ): Promise<BigNumber>;
324
186
  };
325
187
 
326
188
  populateTransaction: {
@@ -332,12 +194,6 @@ export interface IPMultiTokenMerkleDistributor extends BaseContract {
332
194
  overrides?: Overrides & { from?: string | Promise<string> }
333
195
  ): Promise<PopulatedTransaction>;
334
196
 
335
- claimVerified(
336
- receiver: string,
337
- tokens: string[],
338
- overrides?: Overrides & { from?: string | Promise<string> }
339
- ): Promise<PopulatedTransaction>;
340
-
341
197
  claimed(
342
198
  token: string,
343
199
  user: string,
@@ -345,19 +201,5 @@ export interface IPMultiTokenMerkleDistributor extends BaseContract {
345
201
  ): Promise<PopulatedTransaction>;
346
202
 
347
203
  merkleRoot(overrides?: CallOverrides): Promise<PopulatedTransaction>;
348
-
349
- verified(
350
- token: string,
351
- user: string,
352
- overrides?: CallOverrides
353
- ): Promise<PopulatedTransaction>;
354
-
355
- verify(
356
- user: string,
357
- tokens: string[],
358
- totalAccrueds: BigNumberish[],
359
- proofs: BytesLike[][],
360
- overrides?: Overrides & { from?: string | Promise<string> }
361
- ): Promise<PopulatedTransaction>;
362
204
  };
363
205
  }
@@ -0,0 +1,161 @@
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 } 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 type SwapDataStruct = {
26
+ swapType: BigNumberish;
27
+ extRouter: string;
28
+ extCalldata: BytesLike;
29
+ needScale: boolean;
30
+ };
31
+
32
+ export type SwapDataStructOutput = [number, string, string, boolean] & {
33
+ swapType: number;
34
+ extRouter: string;
35
+ extCalldata: string;
36
+ needScale: boolean;
37
+ };
38
+
39
+ export type TokenOutputStruct = {
40
+ tokenOut: string;
41
+ minTokenOut: BigNumberish;
42
+ tokenRedeemSy: string;
43
+ pendleSwap: string;
44
+ swapData: SwapDataStruct;
45
+ };
46
+
47
+ export type TokenOutputStructOutput = [
48
+ string,
49
+ BigNumber,
50
+ string,
51
+ string,
52
+ SwapDataStructOutput
53
+ ] & {
54
+ tokenOut: string;
55
+ minTokenOut: BigNumber;
56
+ tokenRedeemSy: string;
57
+ pendleSwap: string;
58
+ swapData: SwapDataStructOutput;
59
+ };
60
+
61
+ export interface IPOFTPTSwapperInterface extends utils.Interface {
62
+ contractName: "IPOFTPTSwapper";
63
+ functions: {
64
+ "swapWithFixedPricePTAMM(address,address,address,uint256,(address,uint256,address,address,(uint8,address,bytes,bool)))": FunctionFragment;
65
+ };
66
+
67
+ encodeFunctionData(
68
+ functionFragment: "swapWithFixedPricePTAMM",
69
+ values: [string, string, string, BigNumberish, TokenOutputStruct]
70
+ ): string;
71
+
72
+ decodeFunctionResult(
73
+ functionFragment: "swapWithFixedPricePTAMM",
74
+ data: BytesLike
75
+ ): Result;
76
+
77
+ events: {};
78
+ }
79
+
80
+ export interface IPOFTPTSwapper extends BaseContract {
81
+ contractName: "IPOFTPTSwapper";
82
+ connect(signerOrProvider: Signer | Provider | string): this;
83
+ attach(addressOrName: string): this;
84
+ deployed(): Promise<this>;
85
+
86
+ interface: IPOFTPTSwapperInterface;
87
+
88
+ queryFilter<TEvent extends TypedEvent>(
89
+ event: TypedEventFilter<TEvent>,
90
+ fromBlockOrBlockhash?: string | number | undefined,
91
+ toBlock?: string | number | undefined
92
+ ): Promise<Array<TEvent>>;
93
+
94
+ listeners<TEvent extends TypedEvent>(
95
+ eventFilter?: TypedEventFilter<TEvent>
96
+ ): Array<TypedListener<TEvent>>;
97
+ listeners(eventName?: string): Array<Listener>;
98
+ removeAllListeners<TEvent extends TypedEvent>(
99
+ eventFilter: TypedEventFilter<TEvent>
100
+ ): this;
101
+ removeAllListeners(eventName?: string): this;
102
+ off: OnEvent<this>;
103
+ on: OnEvent<this>;
104
+ once: OnEvent<this>;
105
+ removeListener: OnEvent<this>;
106
+
107
+ functions: {
108
+ swapWithFixedPricePTAMM(
109
+ receiver: string,
110
+ fixedPricePTAMM: string,
111
+ PT: string,
112
+ exactPtIn: BigNumberish,
113
+ out: TokenOutputStruct,
114
+ overrides?: Overrides & { from?: string | Promise<string> }
115
+ ): Promise<ContractTransaction>;
116
+ };
117
+
118
+ swapWithFixedPricePTAMM(
119
+ receiver: string,
120
+ fixedPricePTAMM: string,
121
+ PT: string,
122
+ exactPtIn: BigNumberish,
123
+ out: TokenOutputStruct,
124
+ overrides?: Overrides & { from?: string | Promise<string> }
125
+ ): Promise<ContractTransaction>;
126
+
127
+ callStatic: {
128
+ swapWithFixedPricePTAMM(
129
+ receiver: string,
130
+ fixedPricePTAMM: string,
131
+ PT: string,
132
+ exactPtIn: BigNumberish,
133
+ out: TokenOutputStruct,
134
+ overrides?: CallOverrides
135
+ ): Promise<BigNumber>;
136
+ };
137
+
138
+ filters: {};
139
+
140
+ estimateGas: {
141
+ swapWithFixedPricePTAMM(
142
+ receiver: string,
143
+ fixedPricePTAMM: string,
144
+ PT: string,
145
+ exactPtIn: BigNumberish,
146
+ out: TokenOutputStruct,
147
+ overrides?: Overrides & { from?: string | Promise<string> }
148
+ ): Promise<BigNumber>;
149
+ };
150
+
151
+ populateTransaction: {
152
+ swapWithFixedPricePTAMM(
153
+ receiver: string,
154
+ fixedPricePTAMM: string,
155
+ PT: string,
156
+ exactPtIn: BigNumberish,
157
+ out: TokenOutputStruct,
158
+ overrides?: Overrides & { from?: string | Promise<string> }
159
+ ): Promise<PopulatedTransaction>;
160
+ };
161
+ }