@pendle/core-v2 5.4.2 → 5.4.4

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 +251 -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 +33 -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 +363 -0
  56. package/typechain-types/PendleMultiTokenMerkleDistributor.ts +677 -0
  57. package/typechain-types/factories/IPMultiTokenMerkleDistributor__factory.ts +270 -0
  58. package/typechain-types/factories/PendleMultiTokenMerkleDistributor__factory.ts +523 -0
  59. package/typechain-types/hardhat.d.ts +18 -9
  60. package/typechain-types/index.ts +4 -2
@@ -0,0 +1,363 @@
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
+ "claimed(address,address)": FunctionFragment;
32
+ "merkleRoot()": FunctionFragment;
33
+ "verified(address,address)": FunctionFragment;
34
+ "verify(address,address[],uint256[],bytes32[][])": FunctionFragment;
35
+ };
36
+
37
+ encodeFunctionData(
38
+ functionFragment: "claim",
39
+ values: [string, string[], BigNumberish[], BytesLike[][]]
40
+ ): string;
41
+ encodeFunctionData(
42
+ functionFragment: "claimVerified",
43
+ values: [string, string[]]
44
+ ): string;
45
+ encodeFunctionData(
46
+ functionFragment: "claimed",
47
+ values: [string, string]
48
+ ): string;
49
+ encodeFunctionData(
50
+ functionFragment: "merkleRoot",
51
+ values?: undefined
52
+ ): 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
+
62
+ decodeFunctionResult(functionFragment: "claim", data: BytesLike): Result;
63
+ decodeFunctionResult(
64
+ functionFragment: "claimVerified",
65
+ data: BytesLike
66
+ ): Result;
67
+ decodeFunctionResult(functionFragment: "claimed", data: BytesLike): Result;
68
+ decodeFunctionResult(functionFragment: "merkleRoot", data: BytesLike): Result;
69
+ decodeFunctionResult(functionFragment: "verified", data: BytesLike): Result;
70
+ decodeFunctionResult(functionFragment: "verify", data: BytesLike): Result;
71
+
72
+ events: {
73
+ "Claimed(address,address,address,uint256)": EventFragment;
74
+ "SetDefaultTokenList(address[])": EventFragment;
75
+ "SetMerkleRoot(bytes32)": EventFragment;
76
+ "Verified(address,address,uint256)": EventFragment;
77
+ };
78
+
79
+ getEvent(nameOrSignatureOrTopic: "Claimed"): EventFragment;
80
+ getEvent(nameOrSignatureOrTopic: "SetDefaultTokenList"): EventFragment;
81
+ getEvent(nameOrSignatureOrTopic: "SetMerkleRoot"): EventFragment;
82
+ getEvent(nameOrSignatureOrTopic: "Verified"): EventFragment;
83
+ }
84
+
85
+ export type ClaimedEvent = TypedEvent<
86
+ [string, string, string, BigNumber],
87
+ { token: string; user: string; receiver: string; amount: BigNumber }
88
+ >;
89
+
90
+ export type ClaimedEventFilter = TypedEventFilter<ClaimedEvent>;
91
+
92
+ export type SetDefaultTokenListEvent = TypedEvent<
93
+ [string[]],
94
+ { defaultTokenList: string[] }
95
+ >;
96
+
97
+ export type SetDefaultTokenListEventFilter =
98
+ TypedEventFilter<SetDefaultTokenListEvent>;
99
+
100
+ export type SetMerkleRootEvent = TypedEvent<[string], { merkleRoot: string }>;
101
+
102
+ export type SetMerkleRootEventFilter = TypedEventFilter<SetMerkleRootEvent>;
103
+
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
+ export interface IPMultiTokenMerkleDistributor extends BaseContract {
112
+ contractName: "IPMultiTokenMerkleDistributor";
113
+ connect(signerOrProvider: Signer | Provider | string): this;
114
+ attach(addressOrName: string): this;
115
+ deployed(): Promise<this>;
116
+
117
+ interface: IPMultiTokenMerkleDistributorInterface;
118
+
119
+ queryFilter<TEvent extends TypedEvent>(
120
+ event: TypedEventFilter<TEvent>,
121
+ fromBlockOrBlockhash?: string | number | undefined,
122
+ toBlock?: string | number | undefined
123
+ ): Promise<Array<TEvent>>;
124
+
125
+ listeners<TEvent extends TypedEvent>(
126
+ eventFilter?: TypedEventFilter<TEvent>
127
+ ): Array<TypedListener<TEvent>>;
128
+ listeners(eventName?: string): Array<Listener>;
129
+ removeAllListeners<TEvent extends TypedEvent>(
130
+ eventFilter: TypedEventFilter<TEvent>
131
+ ): this;
132
+ removeAllListeners(eventName?: string): this;
133
+ off: OnEvent<this>;
134
+ on: OnEvent<this>;
135
+ once: OnEvent<this>;
136
+ removeListener: OnEvent<this>;
137
+
138
+ functions: {
139
+ claim(
140
+ receiver: string,
141
+ tokens: string[],
142
+ totalAccrueds: BigNumberish[],
143
+ proofs: BytesLike[][],
144
+ overrides?: Overrides & { from?: string | Promise<string> }
145
+ ): Promise<ContractTransaction>;
146
+
147
+ claimVerified(
148
+ receiver: string,
149
+ tokens: string[],
150
+ overrides?: Overrides & { from?: string | Promise<string> }
151
+ ): Promise<ContractTransaction>;
152
+
153
+ claimed(
154
+ token: string,
155
+ user: string,
156
+ overrides?: CallOverrides
157
+ ): Promise<[BigNumber]>;
158
+
159
+ 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
+ };
175
+
176
+ claim(
177
+ receiver: string,
178
+ tokens: string[],
179
+ totalAccrueds: BigNumberish[],
180
+ proofs: BytesLike[][],
181
+ overrides?: Overrides & { from?: string | Promise<string> }
182
+ ): Promise<ContractTransaction>;
183
+
184
+ claimVerified(
185
+ receiver: string,
186
+ tokens: string[],
187
+ overrides?: Overrides & { from?: string | Promise<string> }
188
+ ): Promise<ContractTransaction>;
189
+
190
+ claimed(
191
+ token: string,
192
+ user: string,
193
+ overrides?: CallOverrides
194
+ ): Promise<BigNumber>;
195
+
196
+ merkleRoot(overrides?: CallOverrides): Promise<string>;
197
+
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
+ callStatic: {
213
+ claim(
214
+ receiver: string,
215
+ tokens: string[],
216
+ totalAccrueds: BigNumberish[],
217
+ proofs: BytesLike[][],
218
+ overrides?: CallOverrides
219
+ ): Promise<BigNumber[]>;
220
+
221
+ claimVerified(
222
+ receiver: string,
223
+ tokens: string[],
224
+ overrides?: CallOverrides
225
+ ): Promise<BigNumber[]>;
226
+
227
+ claimed(
228
+ token: string,
229
+ user: string,
230
+ overrides?: CallOverrides
231
+ ): Promise<BigNumber>;
232
+
233
+ 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
+ };
249
+
250
+ filters: {
251
+ "Claimed(address,address,address,uint256)"(
252
+ token?: string | null,
253
+ user?: string | null,
254
+ receiver?: string | null,
255
+ amount?: null
256
+ ): ClaimedEventFilter;
257
+ Claimed(
258
+ token?: string | null,
259
+ user?: string | null,
260
+ receiver?: string | null,
261
+ amount?: null
262
+ ): ClaimedEventFilter;
263
+
264
+ "SetDefaultTokenList(address[])"(
265
+ defaultTokenList?: null
266
+ ): SetDefaultTokenListEventFilter;
267
+ SetDefaultTokenList(
268
+ defaultTokenList?: null
269
+ ): SetDefaultTokenListEventFilter;
270
+
271
+ "SetMerkleRoot(bytes32)"(
272
+ merkleRoot?: BytesLike | null
273
+ ): SetMerkleRootEventFilter;
274
+ 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
+ };
287
+
288
+ estimateGas: {
289
+ claim(
290
+ receiver: string,
291
+ tokens: string[],
292
+ totalAccrueds: BigNumberish[],
293
+ proofs: BytesLike[][],
294
+ overrides?: Overrides & { from?: string | Promise<string> }
295
+ ): Promise<BigNumber>;
296
+
297
+ claimVerified(
298
+ receiver: string,
299
+ tokens: string[],
300
+ overrides?: Overrides & { from?: string | Promise<string> }
301
+ ): Promise<BigNumber>;
302
+
303
+ claimed(
304
+ token: string,
305
+ user: string,
306
+ overrides?: CallOverrides
307
+ ): Promise<BigNumber>;
308
+
309
+ 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
+ };
325
+
326
+ populateTransaction: {
327
+ claim(
328
+ receiver: string,
329
+ tokens: string[],
330
+ totalAccrueds: BigNumberish[],
331
+ proofs: BytesLike[][],
332
+ overrides?: Overrides & { from?: string | Promise<string> }
333
+ ): Promise<PopulatedTransaction>;
334
+
335
+ claimVerified(
336
+ receiver: string,
337
+ tokens: string[],
338
+ overrides?: Overrides & { from?: string | Promise<string> }
339
+ ): Promise<PopulatedTransaction>;
340
+
341
+ claimed(
342
+ token: string,
343
+ user: string,
344
+ overrides?: CallOverrides
345
+ ): Promise<PopulatedTransaction>;
346
+
347
+ 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
+ };
363
+ }