@pendle/core-v2 0.19.0-testnet → 0.20.1-testnet

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 (51) hide show
  1. package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
  2. package/build/artifacts/contracts/core/RewardManager/RewardManager.sol/RewardManager.dbg.json +1 -1
  3. package/build/artifacts/contracts/core/RewardManager/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
  4. package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.dbg.json +1 -1
  5. package/build/artifacts/contracts/interfaces/ConvexCurve/IRewards.sol/IRewards.dbg.json +1 -1
  6. package/deployments/43113-helper.json +1 -1
  7. package/deployments/80001-helper.json +3 -0
  8. package/package.json +1 -1
  9. package/typechain-types/ComposableStablePreview.ts +217 -0
  10. package/typechain-types/IBalancerFees.ts +89 -0
  11. package/typechain-types/IBalancerStablePreview.ts +217 -0
  12. package/typechain-types/IBasePool.ts +482 -0
  13. package/typechain-types/IComposableStable.ts +730 -0
  14. package/typechain-types/IGauge.ts +160 -0
  15. package/typechain-types/ILiquidityGaugeFactory.ts +99 -0
  16. package/typechain-types/IMetaStablePool.ts +619 -0
  17. package/typechain-types/IRateProvider.ts +81 -0
  18. package/typechain-types/IVault.ts +410 -0
  19. package/typechain-types/MetaStableMath.ts +113 -0
  20. package/typechain-types/MetaStablePreview.ts +501 -0
  21. package/typechain-types/Multicall2.ts +437 -0
  22. package/typechain-types/PendleAura3EthSY.ts +1639 -0
  23. package/typechain-types/PendleAuraBalancerStableLPSY.ts +1523 -0
  24. package/typechain-types/PendleAuraCbethWstethSY.ts +1626 -0
  25. package/typechain-types/PendleAuraWethRethSY.ts +1549 -0
  26. package/typechain-types/PendleAuraWethWstethSY.ts +1562 -0
  27. package/typechain-types/StEthHelper.ts +107 -0
  28. package/typechain-types/StablePreviewBase.ts +217 -0
  29. package/typechain-types/factories/ComposableStablePreview__factory.ts +190 -0
  30. package/typechain-types/factories/IBalancerFees__factory.ts +36 -0
  31. package/typechain-types/factories/IBalancerStablePreview__factory.ts +152 -0
  32. package/typechain-types/factories/IBasePool__factory.ts +340 -0
  33. package/typechain-types/factories/IComposableStable__factory.ts +482 -0
  34. package/typechain-types/factories/IGauge__factory.ts +70 -0
  35. package/typechain-types/factories/ILiquidityGaugeFactory__factory.ts +49 -0
  36. package/typechain-types/factories/IMetaStablePool__factory.ts +413 -0
  37. package/typechain-types/factories/IRateProvider__factory.ts +36 -0
  38. package/typechain-types/factories/IVault__factory.ts +287 -0
  39. package/typechain-types/factories/MetaStableMath__factory.ts +93 -0
  40. package/typechain-types/factories/MetaStablePreview__factory.ts +375 -0
  41. package/typechain-types/factories/Multicall2__factory.ts +372 -0
  42. package/typechain-types/factories/PendleAura3EthSY__factory.ts +1365 -0
  43. package/typechain-types/factories/PendleAuraBalancerStableLPSY__factory.ts +1190 -0
  44. package/typechain-types/factories/PendleAuraCbethWstethSY__factory.ts +1356 -0
  45. package/typechain-types/factories/PendleAuraWethRethSY__factory.ts +1291 -0
  46. package/typechain-types/factories/PendleAuraWethWstethSY__factory.ts +1304 -0
  47. package/typechain-types/factories/StEthHelper__factory.ts +62 -0
  48. package/typechain-types/factories/StablePreviewBase__factory.ts +148 -0
  49. package/typechain-types/hardhat.d.ts +180 -9
  50. package/typechain-types/index.ts +40 -2
  51. package/deployments/1-markets/APE-JUNE-29.json +0 -8
@@ -0,0 +1,482 @@
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 IBasePoolInterface extends utils.Interface {
26
+ contractName: "IBasePool";
27
+ functions: {
28
+ "allowance(address,address)": FunctionFragment;
29
+ "approve(address,uint256)": FunctionFragment;
30
+ "balanceOf(address)": FunctionFragment;
31
+ "getPoolId()": FunctionFragment;
32
+ "getSwapFeePercentage()": FunctionFragment;
33
+ "onExitPool(bytes32,address,address,uint256[],uint256,uint256,bytes)": FunctionFragment;
34
+ "onJoinPool(bytes32,address,address,uint256[],uint256,uint256,bytes)": FunctionFragment;
35
+ "totalSupply()": FunctionFragment;
36
+ "transfer(address,uint256)": FunctionFragment;
37
+ "transferFrom(address,address,uint256)": FunctionFragment;
38
+ };
39
+
40
+ encodeFunctionData(
41
+ functionFragment: "allowance",
42
+ values: [string, string]
43
+ ): string;
44
+ encodeFunctionData(
45
+ functionFragment: "approve",
46
+ values: [string, BigNumberish]
47
+ ): string;
48
+ encodeFunctionData(functionFragment: "balanceOf", values: [string]): string;
49
+ encodeFunctionData(functionFragment: "getPoolId", values?: undefined): string;
50
+ encodeFunctionData(
51
+ functionFragment: "getSwapFeePercentage",
52
+ values?: undefined
53
+ ): string;
54
+ encodeFunctionData(
55
+ functionFragment: "onExitPool",
56
+ values: [
57
+ BytesLike,
58
+ string,
59
+ string,
60
+ BigNumberish[],
61
+ BigNumberish,
62
+ BigNumberish,
63
+ BytesLike
64
+ ]
65
+ ): string;
66
+ encodeFunctionData(
67
+ functionFragment: "onJoinPool",
68
+ values: [
69
+ BytesLike,
70
+ string,
71
+ string,
72
+ BigNumberish[],
73
+ BigNumberish,
74
+ BigNumberish,
75
+ BytesLike
76
+ ]
77
+ ): string;
78
+ encodeFunctionData(
79
+ functionFragment: "totalSupply",
80
+ values?: undefined
81
+ ): string;
82
+ encodeFunctionData(
83
+ functionFragment: "transfer",
84
+ values: [string, BigNumberish]
85
+ ): string;
86
+ encodeFunctionData(
87
+ functionFragment: "transferFrom",
88
+ values: [string, string, BigNumberish]
89
+ ): string;
90
+
91
+ decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result;
92
+ decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result;
93
+ decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
94
+ decodeFunctionResult(functionFragment: "getPoolId", data: BytesLike): Result;
95
+ decodeFunctionResult(
96
+ functionFragment: "getSwapFeePercentage",
97
+ data: BytesLike
98
+ ): Result;
99
+ decodeFunctionResult(functionFragment: "onExitPool", data: BytesLike): Result;
100
+ decodeFunctionResult(functionFragment: "onJoinPool", data: BytesLike): Result;
101
+ decodeFunctionResult(
102
+ functionFragment: "totalSupply",
103
+ data: BytesLike
104
+ ): Result;
105
+ decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result;
106
+ decodeFunctionResult(
107
+ functionFragment: "transferFrom",
108
+ data: BytesLike
109
+ ): Result;
110
+
111
+ events: {
112
+ "Approval(address,address,uint256)": EventFragment;
113
+ "Transfer(address,address,uint256)": EventFragment;
114
+ };
115
+
116
+ getEvent(nameOrSignatureOrTopic: "Approval"): EventFragment;
117
+ getEvent(nameOrSignatureOrTopic: "Transfer"): EventFragment;
118
+ }
119
+
120
+ export type ApprovalEvent = TypedEvent<
121
+ [string, string, BigNumber],
122
+ { owner: string; spender: string; value: BigNumber }
123
+ >;
124
+
125
+ export type ApprovalEventFilter = TypedEventFilter<ApprovalEvent>;
126
+
127
+ export type TransferEvent = TypedEvent<
128
+ [string, string, BigNumber],
129
+ { from: string; to: string; value: BigNumber }
130
+ >;
131
+
132
+ export type TransferEventFilter = TypedEventFilter<TransferEvent>;
133
+
134
+ export interface IBasePool extends BaseContract {
135
+ contractName: "IBasePool";
136
+ connect(signerOrProvider: Signer | Provider | string): this;
137
+ attach(addressOrName: string): this;
138
+ deployed(): Promise<this>;
139
+
140
+ interface: IBasePoolInterface;
141
+
142
+ queryFilter<TEvent extends TypedEvent>(
143
+ event: TypedEventFilter<TEvent>,
144
+ fromBlockOrBlockhash?: string | number | undefined,
145
+ toBlock?: string | number | undefined
146
+ ): Promise<Array<TEvent>>;
147
+
148
+ listeners<TEvent extends TypedEvent>(
149
+ eventFilter?: TypedEventFilter<TEvent>
150
+ ): Array<TypedListener<TEvent>>;
151
+ listeners(eventName?: string): Array<Listener>;
152
+ removeAllListeners<TEvent extends TypedEvent>(
153
+ eventFilter: TypedEventFilter<TEvent>
154
+ ): this;
155
+ removeAllListeners(eventName?: string): this;
156
+ off: OnEvent<this>;
157
+ on: OnEvent<this>;
158
+ once: OnEvent<this>;
159
+ removeListener: OnEvent<this>;
160
+
161
+ functions: {
162
+ allowance(
163
+ owner: string,
164
+ spender: string,
165
+ overrides?: CallOverrides
166
+ ): Promise<[BigNumber]>;
167
+
168
+ approve(
169
+ spender: string,
170
+ amount: BigNumberish,
171
+ overrides?: Overrides & { from?: string | Promise<string> }
172
+ ): Promise<ContractTransaction>;
173
+
174
+ balanceOf(account: string, overrides?: CallOverrides): Promise<[BigNumber]>;
175
+
176
+ getPoolId(overrides?: CallOverrides): Promise<[string]>;
177
+
178
+ getSwapFeePercentage(overrides?: CallOverrides): Promise<[BigNumber]>;
179
+
180
+ onExitPool(
181
+ poolId: BytesLike,
182
+ sender: string,
183
+ recipient: string,
184
+ balances: BigNumberish[],
185
+ lastChangeBlock: BigNumberish,
186
+ protocolSwapFeePercentage: BigNumberish,
187
+ userData: BytesLike,
188
+ overrides?: Overrides & { from?: string | Promise<string> }
189
+ ): Promise<ContractTransaction>;
190
+
191
+ onJoinPool(
192
+ poolId: BytesLike,
193
+ sender: string,
194
+ recipient: string,
195
+ balances: BigNumberish[],
196
+ lastChangeBlock: BigNumberish,
197
+ protocolSwapFeePercentage: BigNumberish,
198
+ userData: BytesLike,
199
+ overrides?: Overrides & { from?: string | Promise<string> }
200
+ ): Promise<ContractTransaction>;
201
+
202
+ totalSupply(overrides?: CallOverrides): Promise<[BigNumber]>;
203
+
204
+ transfer(
205
+ to: string,
206
+ amount: BigNumberish,
207
+ overrides?: Overrides & { from?: string | Promise<string> }
208
+ ): Promise<ContractTransaction>;
209
+
210
+ transferFrom(
211
+ from: string,
212
+ to: string,
213
+ amount: BigNumberish,
214
+ overrides?: Overrides & { from?: string | Promise<string> }
215
+ ): Promise<ContractTransaction>;
216
+ };
217
+
218
+ allowance(
219
+ owner: string,
220
+ spender: string,
221
+ overrides?: CallOverrides
222
+ ): Promise<BigNumber>;
223
+
224
+ approve(
225
+ spender: string,
226
+ amount: BigNumberish,
227
+ overrides?: Overrides & { from?: string | Promise<string> }
228
+ ): Promise<ContractTransaction>;
229
+
230
+ balanceOf(account: string, overrides?: CallOverrides): Promise<BigNumber>;
231
+
232
+ getPoolId(overrides?: CallOverrides): Promise<string>;
233
+
234
+ getSwapFeePercentage(overrides?: CallOverrides): Promise<BigNumber>;
235
+
236
+ onExitPool(
237
+ poolId: BytesLike,
238
+ sender: string,
239
+ recipient: string,
240
+ balances: BigNumberish[],
241
+ lastChangeBlock: BigNumberish,
242
+ protocolSwapFeePercentage: BigNumberish,
243
+ userData: BytesLike,
244
+ overrides?: Overrides & { from?: string | Promise<string> }
245
+ ): Promise<ContractTransaction>;
246
+
247
+ onJoinPool(
248
+ poolId: BytesLike,
249
+ sender: string,
250
+ recipient: string,
251
+ balances: BigNumberish[],
252
+ lastChangeBlock: BigNumberish,
253
+ protocolSwapFeePercentage: BigNumberish,
254
+ userData: BytesLike,
255
+ overrides?: Overrides & { from?: string | Promise<string> }
256
+ ): Promise<ContractTransaction>;
257
+
258
+ totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
259
+
260
+ transfer(
261
+ to: string,
262
+ amount: BigNumberish,
263
+ overrides?: Overrides & { from?: string | Promise<string> }
264
+ ): Promise<ContractTransaction>;
265
+
266
+ transferFrom(
267
+ from: string,
268
+ to: string,
269
+ amount: BigNumberish,
270
+ overrides?: Overrides & { from?: string | Promise<string> }
271
+ ): Promise<ContractTransaction>;
272
+
273
+ callStatic: {
274
+ allowance(
275
+ owner: string,
276
+ spender: string,
277
+ overrides?: CallOverrides
278
+ ): Promise<BigNumber>;
279
+
280
+ approve(
281
+ spender: string,
282
+ amount: BigNumberish,
283
+ overrides?: CallOverrides
284
+ ): Promise<boolean>;
285
+
286
+ balanceOf(account: string, overrides?: CallOverrides): Promise<BigNumber>;
287
+
288
+ getPoolId(overrides?: CallOverrides): Promise<string>;
289
+
290
+ getSwapFeePercentage(overrides?: CallOverrides): Promise<BigNumber>;
291
+
292
+ onExitPool(
293
+ poolId: BytesLike,
294
+ sender: string,
295
+ recipient: string,
296
+ balances: BigNumberish[],
297
+ lastChangeBlock: BigNumberish,
298
+ protocolSwapFeePercentage: BigNumberish,
299
+ userData: BytesLike,
300
+ overrides?: CallOverrides
301
+ ): Promise<
302
+ [BigNumber[], BigNumber[]] & {
303
+ amountsOut: BigNumber[];
304
+ dueProtocolFeeAmounts: BigNumber[];
305
+ }
306
+ >;
307
+
308
+ onJoinPool(
309
+ poolId: BytesLike,
310
+ sender: string,
311
+ recipient: string,
312
+ balances: BigNumberish[],
313
+ lastChangeBlock: BigNumberish,
314
+ protocolSwapFeePercentage: BigNumberish,
315
+ userData: BytesLike,
316
+ overrides?: CallOverrides
317
+ ): Promise<
318
+ [BigNumber[], BigNumber[]] & {
319
+ amountsIn: BigNumber[];
320
+ dueProtocolFeeAmounts: BigNumber[];
321
+ }
322
+ >;
323
+
324
+ totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
325
+
326
+ transfer(
327
+ to: string,
328
+ amount: BigNumberish,
329
+ overrides?: CallOverrides
330
+ ): Promise<boolean>;
331
+
332
+ transferFrom(
333
+ from: string,
334
+ to: string,
335
+ amount: BigNumberish,
336
+ overrides?: CallOverrides
337
+ ): Promise<boolean>;
338
+ };
339
+
340
+ filters: {
341
+ "Approval(address,address,uint256)"(
342
+ owner?: string | null,
343
+ spender?: string | null,
344
+ value?: null
345
+ ): ApprovalEventFilter;
346
+ Approval(
347
+ owner?: string | null,
348
+ spender?: string | null,
349
+ value?: null
350
+ ): ApprovalEventFilter;
351
+
352
+ "Transfer(address,address,uint256)"(
353
+ from?: string | null,
354
+ to?: string | null,
355
+ value?: null
356
+ ): TransferEventFilter;
357
+ Transfer(
358
+ from?: string | null,
359
+ to?: string | null,
360
+ value?: null
361
+ ): TransferEventFilter;
362
+ };
363
+
364
+ estimateGas: {
365
+ allowance(
366
+ owner: string,
367
+ spender: string,
368
+ overrides?: CallOverrides
369
+ ): Promise<BigNumber>;
370
+
371
+ approve(
372
+ spender: string,
373
+ amount: BigNumberish,
374
+ overrides?: Overrides & { from?: string | Promise<string> }
375
+ ): Promise<BigNumber>;
376
+
377
+ balanceOf(account: string, overrides?: CallOverrides): Promise<BigNumber>;
378
+
379
+ getPoolId(overrides?: CallOverrides): Promise<BigNumber>;
380
+
381
+ getSwapFeePercentage(overrides?: CallOverrides): Promise<BigNumber>;
382
+
383
+ onExitPool(
384
+ poolId: BytesLike,
385
+ sender: string,
386
+ recipient: string,
387
+ balances: BigNumberish[],
388
+ lastChangeBlock: BigNumberish,
389
+ protocolSwapFeePercentage: BigNumberish,
390
+ userData: BytesLike,
391
+ overrides?: Overrides & { from?: string | Promise<string> }
392
+ ): Promise<BigNumber>;
393
+
394
+ onJoinPool(
395
+ poolId: BytesLike,
396
+ sender: string,
397
+ recipient: string,
398
+ balances: BigNumberish[],
399
+ lastChangeBlock: BigNumberish,
400
+ protocolSwapFeePercentage: BigNumberish,
401
+ userData: BytesLike,
402
+ overrides?: Overrides & { from?: string | Promise<string> }
403
+ ): Promise<BigNumber>;
404
+
405
+ totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
406
+
407
+ transfer(
408
+ to: string,
409
+ amount: BigNumberish,
410
+ overrides?: Overrides & { from?: string | Promise<string> }
411
+ ): Promise<BigNumber>;
412
+
413
+ transferFrom(
414
+ from: string,
415
+ to: string,
416
+ amount: BigNumberish,
417
+ overrides?: Overrides & { from?: string | Promise<string> }
418
+ ): Promise<BigNumber>;
419
+ };
420
+
421
+ populateTransaction: {
422
+ allowance(
423
+ owner: string,
424
+ spender: string,
425
+ overrides?: CallOverrides
426
+ ): Promise<PopulatedTransaction>;
427
+
428
+ approve(
429
+ spender: string,
430
+ amount: BigNumberish,
431
+ overrides?: Overrides & { from?: string | Promise<string> }
432
+ ): Promise<PopulatedTransaction>;
433
+
434
+ balanceOf(
435
+ account: string,
436
+ overrides?: CallOverrides
437
+ ): Promise<PopulatedTransaction>;
438
+
439
+ getPoolId(overrides?: CallOverrides): Promise<PopulatedTransaction>;
440
+
441
+ getSwapFeePercentage(
442
+ overrides?: CallOverrides
443
+ ): Promise<PopulatedTransaction>;
444
+
445
+ onExitPool(
446
+ poolId: BytesLike,
447
+ sender: string,
448
+ recipient: string,
449
+ balances: BigNumberish[],
450
+ lastChangeBlock: BigNumberish,
451
+ protocolSwapFeePercentage: BigNumberish,
452
+ userData: BytesLike,
453
+ overrides?: Overrides & { from?: string | Promise<string> }
454
+ ): Promise<PopulatedTransaction>;
455
+
456
+ onJoinPool(
457
+ poolId: BytesLike,
458
+ sender: string,
459
+ recipient: string,
460
+ balances: BigNumberish[],
461
+ lastChangeBlock: BigNumberish,
462
+ protocolSwapFeePercentage: BigNumberish,
463
+ userData: BytesLike,
464
+ overrides?: Overrides & { from?: string | Promise<string> }
465
+ ): Promise<PopulatedTransaction>;
466
+
467
+ totalSupply(overrides?: CallOverrides): Promise<PopulatedTransaction>;
468
+
469
+ transfer(
470
+ to: string,
471
+ amount: BigNumberish,
472
+ overrides?: Overrides & { from?: string | Promise<string> }
473
+ ): Promise<PopulatedTransaction>;
474
+
475
+ transferFrom(
476
+ from: string,
477
+ to: string,
478
+ amount: BigNumberish,
479
+ overrides?: Overrides & { from?: string | Promise<string> }
480
+ ): Promise<PopulatedTransaction>;
481
+ };
482
+ }