@pendle/core-v2 5.4.2 → 5.4.3

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 (60) hide show
  1. package/build/artifacts/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol/PendleMultiTokenMerkleDistributor.dbg.json +4 -0
  2. package/build/artifacts/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol/PendleMultiTokenMerkleDistributor.json +462 -0
  3. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiqV3.sol/IPActionAddRemoveLiqV3.dbg.json +1 -1
  4. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
  5. package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
  6. package/build/artifacts/contracts/interfaces/IPActionSimple.sol/IPActionSimple.dbg.json +1 -1
  7. package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
  8. package/build/artifacts/contracts/interfaces/IPActionStorageV4.sol/IPActionStorageV4.dbg.json +1 -1
  9. package/build/artifacts/contracts/interfaces/IPActionSwapPTV3.sol/IPActionSwapPTV3.dbg.json +1 -1
  10. package/build/artifacts/contracts/interfaces/IPActionSwapYTV3.sol/IPActionSwapYTV3.dbg.json +1 -1
  11. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
  12. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionAddRemoveLiqV3Events.dbg.json +1 -1
  13. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionMiscV3Events.dbg.json +1 -1
  14. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionStorageEvents.dbg.json +1 -1
  15. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapPTV3Events.dbg.json +1 -1
  16. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapYTV3Events.dbg.json +1 -1
  17. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPAllEventsV3.dbg.json +1 -1
  18. package/build/artifacts/contracts/interfaces/IPMultiTokenMerkleDistributor.sol/IPMultiTokenMerkleDistributor.dbg.json +4 -0
  19. package/build/artifacts/contracts/interfaces/IPMultiTokenMerkleDistributor.sol/IPMultiTokenMerkleDistributor.json +190 -0
  20. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
  21. package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
  22. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
  23. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
  24. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
  25. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
  26. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
  27. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
  28. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
  29. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.dbg.json +1 -1
  30. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.dbg.json +1 -1
  31. package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
  32. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.dbg.json +1 -1
  33. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.dbg.json +1 -1
  34. package/build/artifacts/contracts/router/Reflector.sol/Reflector.dbg.json +1 -1
  35. package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
  36. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.dbg.json +1 -1
  37. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.dbg.json +1 -1
  38. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.dbg.json +1 -1
  39. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.dbg.json +1 -1
  40. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.dbg.json +1 -1
  41. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.dbg.json +1 -1
  42. package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.dbg.json +1 -1
  43. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IKyberScalingHelper.dbg.json +1 -1
  44. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IOdosRouterV2.dbg.json +1 -1
  45. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.dbg.json +1 -1
  46. package/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol +117 -0
  47. package/contracts/interfaces/IPMultiTokenMerkleDistributor.sol +27 -0
  48. package/deployments/1-core.json +1 -0
  49. package/deployments/10-core.json +1 -0
  50. package/deployments/42161-core.json +1 -0
  51. package/deployments/5000-core.json +1 -0
  52. package/deployments/56-core.json +1 -0
  53. package/deployments/8453-core.json +1 -0
  54. package/package.json +1 -1
  55. package/typechain-types/IPMultiTokenMerkleDistributor.ts +275 -0
  56. package/typechain-types/PendleMultiTokenMerkleDistributor.ts +677 -0
  57. package/typechain-types/factories/IPMultiTokenMerkleDistributor__factory.ts +209 -0
  58. package/typechain-types/factories/PendleMultiTokenMerkleDistributor__factory.ts +523 -0
  59. package/typechain-types/hardhat.d.ts +18 -0
  60. package/typechain-types/index.ts +4 -0
@@ -0,0 +1,275 @@
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 IPMultiTokenMerkleDistributorInterface
26
+ extends utils.Interface {
27
+ contractName: "IPMultiTokenMerkleDistributor";
28
+ functions: {
29
+ "claim(address,address[],uint256[],bytes32[][])": FunctionFragment;
30
+ "claimVerified(address,address[])": FunctionFragment;
31
+ "verify(address,address[],uint256[],bytes32[][])": FunctionFragment;
32
+ };
33
+
34
+ encodeFunctionData(
35
+ functionFragment: "claim",
36
+ values: [string, string[], BigNumberish[], BytesLike[][]]
37
+ ): string;
38
+ encodeFunctionData(
39
+ functionFragment: "claimVerified",
40
+ values: [string, string[]]
41
+ ): string;
42
+ encodeFunctionData(
43
+ functionFragment: "verify",
44
+ values: [string, string[], BigNumberish[], BytesLike[][]]
45
+ ): string;
46
+
47
+ decodeFunctionResult(functionFragment: "claim", data: BytesLike): Result;
48
+ decodeFunctionResult(
49
+ functionFragment: "claimVerified",
50
+ data: BytesLike
51
+ ): Result;
52
+ decodeFunctionResult(functionFragment: "verify", data: BytesLike): Result;
53
+
54
+ events: {
55
+ "Claimed(address,address,address,uint256)": EventFragment;
56
+ "SetDefaultTokenList(address[])": EventFragment;
57
+ "SetMerkleRoot(bytes32)": EventFragment;
58
+ "Verified(address,address,uint256)": EventFragment;
59
+ };
60
+
61
+ getEvent(nameOrSignatureOrTopic: "Claimed"): EventFragment;
62
+ getEvent(nameOrSignatureOrTopic: "SetDefaultTokenList"): EventFragment;
63
+ getEvent(nameOrSignatureOrTopic: "SetMerkleRoot"): EventFragment;
64
+ getEvent(nameOrSignatureOrTopic: "Verified"): EventFragment;
65
+ }
66
+
67
+ export type ClaimedEvent = TypedEvent<
68
+ [string, string, string, BigNumber],
69
+ { token: string; user: string; receiver: string; amount: BigNumber }
70
+ >;
71
+
72
+ export type ClaimedEventFilter = TypedEventFilter<ClaimedEvent>;
73
+
74
+ export type SetDefaultTokenListEvent = TypedEvent<
75
+ [string[]],
76
+ { defaultTokenList: string[] }
77
+ >;
78
+
79
+ export type SetDefaultTokenListEventFilter =
80
+ TypedEventFilter<SetDefaultTokenListEvent>;
81
+
82
+ export type SetMerkleRootEvent = TypedEvent<[string], { merkleRoot: string }>;
83
+
84
+ export type SetMerkleRootEventFilter = TypedEventFilter<SetMerkleRootEvent>;
85
+
86
+ export type VerifiedEvent = TypedEvent<
87
+ [string, string, BigNumber],
88
+ { token: string; user: string; amountClaimable: BigNumber }
89
+ >;
90
+
91
+ export type VerifiedEventFilter = TypedEventFilter<VerifiedEvent>;
92
+
93
+ export interface IPMultiTokenMerkleDistributor extends BaseContract {
94
+ contractName: "IPMultiTokenMerkleDistributor";
95
+ connect(signerOrProvider: Signer | Provider | string): this;
96
+ attach(addressOrName: string): this;
97
+ deployed(): Promise<this>;
98
+
99
+ interface: IPMultiTokenMerkleDistributorInterface;
100
+
101
+ queryFilter<TEvent extends TypedEvent>(
102
+ event: TypedEventFilter<TEvent>,
103
+ fromBlockOrBlockhash?: string | number | undefined,
104
+ toBlock?: string | number | undefined
105
+ ): Promise<Array<TEvent>>;
106
+
107
+ listeners<TEvent extends TypedEvent>(
108
+ eventFilter?: TypedEventFilter<TEvent>
109
+ ): Array<TypedListener<TEvent>>;
110
+ listeners(eventName?: string): Array<Listener>;
111
+ removeAllListeners<TEvent extends TypedEvent>(
112
+ eventFilter: TypedEventFilter<TEvent>
113
+ ): this;
114
+ removeAllListeners(eventName?: string): this;
115
+ off: OnEvent<this>;
116
+ on: OnEvent<this>;
117
+ once: OnEvent<this>;
118
+ removeListener: OnEvent<this>;
119
+
120
+ functions: {
121
+ claim(
122
+ receiver: string,
123
+ tokens: string[],
124
+ totalAccrueds: BigNumberish[],
125
+ proofs: BytesLike[][],
126
+ overrides?: Overrides & { from?: string | Promise<string> }
127
+ ): Promise<ContractTransaction>;
128
+
129
+ claimVerified(
130
+ receiver: string,
131
+ tokens: string[],
132
+ overrides?: Overrides & { from?: string | Promise<string> }
133
+ ): Promise<ContractTransaction>;
134
+
135
+ verify(
136
+ user: string,
137
+ tokens: string[],
138
+ totalAccrueds: BigNumberish[],
139
+ proofs: BytesLike[][],
140
+ overrides?: Overrides & { from?: string | Promise<string> }
141
+ ): Promise<ContractTransaction>;
142
+ };
143
+
144
+ claim(
145
+ receiver: string,
146
+ tokens: string[],
147
+ totalAccrueds: BigNumberish[],
148
+ proofs: BytesLike[][],
149
+ overrides?: Overrides & { from?: string | Promise<string> }
150
+ ): Promise<ContractTransaction>;
151
+
152
+ claimVerified(
153
+ receiver: string,
154
+ tokens: string[],
155
+ overrides?: Overrides & { from?: string | Promise<string> }
156
+ ): Promise<ContractTransaction>;
157
+
158
+ verify(
159
+ user: string,
160
+ tokens: string[],
161
+ totalAccrueds: BigNumberish[],
162
+ proofs: BytesLike[][],
163
+ overrides?: Overrides & { from?: string | Promise<string> }
164
+ ): Promise<ContractTransaction>;
165
+
166
+ callStatic: {
167
+ claim(
168
+ receiver: string,
169
+ tokens: string[],
170
+ totalAccrueds: BigNumberish[],
171
+ proofs: BytesLike[][],
172
+ overrides?: CallOverrides
173
+ ): Promise<BigNumber[]>;
174
+
175
+ claimVerified(
176
+ receiver: string,
177
+ tokens: string[],
178
+ overrides?: CallOverrides
179
+ ): Promise<BigNumber[]>;
180
+
181
+ verify(
182
+ user: string,
183
+ tokens: string[],
184
+ totalAccrueds: BigNumberish[],
185
+ proofs: BytesLike[][],
186
+ overrides?: CallOverrides
187
+ ): Promise<BigNumber[]>;
188
+ };
189
+
190
+ filters: {
191
+ "Claimed(address,address,address,uint256)"(
192
+ token?: string | null,
193
+ user?: string | null,
194
+ receiver?: string | null,
195
+ amount?: null
196
+ ): ClaimedEventFilter;
197
+ Claimed(
198
+ token?: string | null,
199
+ user?: string | null,
200
+ receiver?: string | null,
201
+ amount?: null
202
+ ): ClaimedEventFilter;
203
+
204
+ "SetDefaultTokenList(address[])"(
205
+ defaultTokenList?: null
206
+ ): SetDefaultTokenListEventFilter;
207
+ SetDefaultTokenList(
208
+ defaultTokenList?: null
209
+ ): SetDefaultTokenListEventFilter;
210
+
211
+ "SetMerkleRoot(bytes32)"(
212
+ merkleRoot?: BytesLike | null
213
+ ): SetMerkleRootEventFilter;
214
+ SetMerkleRoot(merkleRoot?: BytesLike | null): SetMerkleRootEventFilter;
215
+
216
+ "Verified(address,address,uint256)"(
217
+ token?: string | null,
218
+ user?: string | null,
219
+ amountClaimable?: null
220
+ ): VerifiedEventFilter;
221
+ Verified(
222
+ token?: string | null,
223
+ user?: string | null,
224
+ amountClaimable?: null
225
+ ): VerifiedEventFilter;
226
+ };
227
+
228
+ estimateGas: {
229
+ claim(
230
+ receiver: string,
231
+ tokens: string[],
232
+ totalAccrueds: BigNumberish[],
233
+ proofs: BytesLike[][],
234
+ overrides?: Overrides & { from?: string | Promise<string> }
235
+ ): Promise<BigNumber>;
236
+
237
+ claimVerified(
238
+ receiver: string,
239
+ tokens: string[],
240
+ overrides?: Overrides & { from?: string | Promise<string> }
241
+ ): Promise<BigNumber>;
242
+
243
+ verify(
244
+ user: string,
245
+ tokens: string[],
246
+ totalAccrueds: BigNumberish[],
247
+ proofs: BytesLike[][],
248
+ overrides?: Overrides & { from?: string | Promise<string> }
249
+ ): Promise<BigNumber>;
250
+ };
251
+
252
+ populateTransaction: {
253
+ claim(
254
+ receiver: string,
255
+ tokens: string[],
256
+ totalAccrueds: BigNumberish[],
257
+ proofs: BytesLike[][],
258
+ overrides?: Overrides & { from?: string | Promise<string> }
259
+ ): Promise<PopulatedTransaction>;
260
+
261
+ claimVerified(
262
+ receiver: string,
263
+ tokens: string[],
264
+ overrides?: Overrides & { from?: string | Promise<string> }
265
+ ): Promise<PopulatedTransaction>;
266
+
267
+ verify(
268
+ user: string,
269
+ tokens: string[],
270
+ totalAccrueds: BigNumberish[],
271
+ proofs: BytesLike[][],
272
+ overrides?: Overrides & { from?: string | Promise<string> }
273
+ ): Promise<PopulatedTransaction>;
274
+ };
275
+ }