@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
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import { Provider } from "@ethersproject/providers";
7
+ import type {
8
+ IComposableStable,
9
+ IComposableStableInterface,
10
+ } from "../IComposableStable";
11
+
12
+ const _abi = [
13
+ {
14
+ anonymous: false,
15
+ inputs: [
16
+ {
17
+ indexed: true,
18
+ internalType: "address",
19
+ name: "owner",
20
+ type: "address",
21
+ },
22
+ {
23
+ indexed: true,
24
+ internalType: "address",
25
+ name: "spender",
26
+ type: "address",
27
+ },
28
+ {
29
+ indexed: false,
30
+ internalType: "uint256",
31
+ name: "value",
32
+ type: "uint256",
33
+ },
34
+ ],
35
+ name: "Approval",
36
+ type: "event",
37
+ },
38
+ {
39
+ anonymous: false,
40
+ inputs: [
41
+ {
42
+ indexed: true,
43
+ internalType: "address",
44
+ name: "from",
45
+ type: "address",
46
+ },
47
+ {
48
+ indexed: true,
49
+ internalType: "address",
50
+ name: "to",
51
+ type: "address",
52
+ },
53
+ {
54
+ indexed: false,
55
+ internalType: "uint256",
56
+ name: "value",
57
+ type: "uint256",
58
+ },
59
+ ],
60
+ name: "Transfer",
61
+ type: "event",
62
+ },
63
+ {
64
+ inputs: [
65
+ {
66
+ internalType: "address",
67
+ name: "owner",
68
+ type: "address",
69
+ },
70
+ {
71
+ internalType: "address",
72
+ name: "spender",
73
+ type: "address",
74
+ },
75
+ ],
76
+ name: "allowance",
77
+ outputs: [
78
+ {
79
+ internalType: "uint256",
80
+ name: "",
81
+ type: "uint256",
82
+ },
83
+ ],
84
+ stateMutability: "view",
85
+ type: "function",
86
+ },
87
+ {
88
+ inputs: [
89
+ {
90
+ internalType: "address",
91
+ name: "spender",
92
+ type: "address",
93
+ },
94
+ {
95
+ internalType: "uint256",
96
+ name: "amount",
97
+ type: "uint256",
98
+ },
99
+ ],
100
+ name: "approve",
101
+ outputs: [
102
+ {
103
+ internalType: "bool",
104
+ name: "",
105
+ type: "bool",
106
+ },
107
+ ],
108
+ stateMutability: "nonpayable",
109
+ type: "function",
110
+ },
111
+ {
112
+ inputs: [
113
+ {
114
+ internalType: "address",
115
+ name: "account",
116
+ type: "address",
117
+ },
118
+ ],
119
+ name: "balanceOf",
120
+ outputs: [
121
+ {
122
+ internalType: "uint256",
123
+ name: "",
124
+ type: "uint256",
125
+ },
126
+ ],
127
+ stateMutability: "view",
128
+ type: "function",
129
+ },
130
+ {
131
+ inputs: [],
132
+ name: "getAmplificationParameter",
133
+ outputs: [
134
+ {
135
+ internalType: "uint256",
136
+ name: "value",
137
+ type: "uint256",
138
+ },
139
+ {
140
+ internalType: "bool",
141
+ name: "isUpdating",
142
+ type: "bool",
143
+ },
144
+ {
145
+ internalType: "uint256",
146
+ name: "precision",
147
+ type: "uint256",
148
+ },
149
+ ],
150
+ stateMutability: "view",
151
+ type: "function",
152
+ },
153
+ {
154
+ inputs: [],
155
+ name: "getBptIndex",
156
+ outputs: [
157
+ {
158
+ internalType: "uint256",
159
+ name: "",
160
+ type: "uint256",
161
+ },
162
+ ],
163
+ stateMutability: "view",
164
+ type: "function",
165
+ },
166
+ {
167
+ inputs: [],
168
+ name: "getLastJoinExitData",
169
+ outputs: [
170
+ {
171
+ internalType: "uint256",
172
+ name: "lastJoinExitAmplification",
173
+ type: "uint256",
174
+ },
175
+ {
176
+ internalType: "uint256",
177
+ name: "lastPostJoinExitInvariant",
178
+ type: "uint256",
179
+ },
180
+ ],
181
+ stateMutability: "view",
182
+ type: "function",
183
+ },
184
+ {
185
+ inputs: [],
186
+ name: "getPoolId",
187
+ outputs: [
188
+ {
189
+ internalType: "bytes32",
190
+ name: "",
191
+ type: "bytes32",
192
+ },
193
+ ],
194
+ stateMutability: "view",
195
+ type: "function",
196
+ },
197
+ {
198
+ inputs: [
199
+ {
200
+ internalType: "uint256",
201
+ name: "feeType",
202
+ type: "uint256",
203
+ },
204
+ ],
205
+ name: "getProtocolFeePercentageCache",
206
+ outputs: [
207
+ {
208
+ internalType: "uint256",
209
+ name: "",
210
+ type: "uint256",
211
+ },
212
+ ],
213
+ stateMutability: "view",
214
+ type: "function",
215
+ },
216
+ {
217
+ inputs: [],
218
+ name: "getRateProviders",
219
+ outputs: [
220
+ {
221
+ internalType: "contract IRateProvider[]",
222
+ name: "",
223
+ type: "address[]",
224
+ },
225
+ ],
226
+ stateMutability: "view",
227
+ type: "function",
228
+ },
229
+ {
230
+ inputs: [],
231
+ name: "getSwapFeePercentage",
232
+ outputs: [
233
+ {
234
+ internalType: "uint256",
235
+ name: "",
236
+ type: "uint256",
237
+ },
238
+ ],
239
+ stateMutability: "view",
240
+ type: "function",
241
+ },
242
+ {
243
+ inputs: [
244
+ {
245
+ internalType: "contract IERC20",
246
+ name: "token",
247
+ type: "address",
248
+ },
249
+ ],
250
+ name: "getTokenRateCache",
251
+ outputs: [
252
+ {
253
+ internalType: "uint256",
254
+ name: "rate",
255
+ type: "uint256",
256
+ },
257
+ {
258
+ internalType: "uint256",
259
+ name: "oldRate",
260
+ type: "uint256",
261
+ },
262
+ {
263
+ internalType: "uint256",
264
+ name: "duration",
265
+ type: "uint256",
266
+ },
267
+ {
268
+ internalType: "uint256",
269
+ name: "expires",
270
+ type: "uint256",
271
+ },
272
+ ],
273
+ stateMutability: "view",
274
+ type: "function",
275
+ },
276
+ {
277
+ inputs: [
278
+ {
279
+ internalType: "contract IERC20",
280
+ name: "token",
281
+ type: "address",
282
+ },
283
+ ],
284
+ name: "isTokenExemptFromYieldProtocolFee",
285
+ outputs: [
286
+ {
287
+ internalType: "bool",
288
+ name: "",
289
+ type: "bool",
290
+ },
291
+ ],
292
+ stateMutability: "view",
293
+ type: "function",
294
+ },
295
+ {
296
+ inputs: [
297
+ {
298
+ internalType: "bytes32",
299
+ name: "poolId",
300
+ type: "bytes32",
301
+ },
302
+ {
303
+ internalType: "address",
304
+ name: "sender",
305
+ type: "address",
306
+ },
307
+ {
308
+ internalType: "address",
309
+ name: "recipient",
310
+ type: "address",
311
+ },
312
+ {
313
+ internalType: "uint256[]",
314
+ name: "balances",
315
+ type: "uint256[]",
316
+ },
317
+ {
318
+ internalType: "uint256",
319
+ name: "lastChangeBlock",
320
+ type: "uint256",
321
+ },
322
+ {
323
+ internalType: "uint256",
324
+ name: "protocolSwapFeePercentage",
325
+ type: "uint256",
326
+ },
327
+ {
328
+ internalType: "bytes",
329
+ name: "userData",
330
+ type: "bytes",
331
+ },
332
+ ],
333
+ name: "onExitPool",
334
+ outputs: [
335
+ {
336
+ internalType: "uint256[]",
337
+ name: "amountsOut",
338
+ type: "uint256[]",
339
+ },
340
+ {
341
+ internalType: "uint256[]",
342
+ name: "dueProtocolFeeAmounts",
343
+ type: "uint256[]",
344
+ },
345
+ ],
346
+ stateMutability: "nonpayable",
347
+ type: "function",
348
+ },
349
+ {
350
+ inputs: [
351
+ {
352
+ internalType: "bytes32",
353
+ name: "poolId",
354
+ type: "bytes32",
355
+ },
356
+ {
357
+ internalType: "address",
358
+ name: "sender",
359
+ type: "address",
360
+ },
361
+ {
362
+ internalType: "address",
363
+ name: "recipient",
364
+ type: "address",
365
+ },
366
+ {
367
+ internalType: "uint256[]",
368
+ name: "balances",
369
+ type: "uint256[]",
370
+ },
371
+ {
372
+ internalType: "uint256",
373
+ name: "lastChangeBlock",
374
+ type: "uint256",
375
+ },
376
+ {
377
+ internalType: "uint256",
378
+ name: "protocolSwapFeePercentage",
379
+ type: "uint256",
380
+ },
381
+ {
382
+ internalType: "bytes",
383
+ name: "userData",
384
+ type: "bytes",
385
+ },
386
+ ],
387
+ name: "onJoinPool",
388
+ outputs: [
389
+ {
390
+ internalType: "uint256[]",
391
+ name: "amountsIn",
392
+ type: "uint256[]",
393
+ },
394
+ {
395
+ internalType: "uint256[]",
396
+ name: "dueProtocolFeeAmounts",
397
+ type: "uint256[]",
398
+ },
399
+ ],
400
+ stateMutability: "nonpayable",
401
+ type: "function",
402
+ },
403
+ {
404
+ inputs: [],
405
+ name: "totalSupply",
406
+ outputs: [
407
+ {
408
+ internalType: "uint256",
409
+ name: "",
410
+ type: "uint256",
411
+ },
412
+ ],
413
+ stateMutability: "view",
414
+ type: "function",
415
+ },
416
+ {
417
+ inputs: [
418
+ {
419
+ internalType: "address",
420
+ name: "to",
421
+ type: "address",
422
+ },
423
+ {
424
+ internalType: "uint256",
425
+ name: "amount",
426
+ type: "uint256",
427
+ },
428
+ ],
429
+ name: "transfer",
430
+ outputs: [
431
+ {
432
+ internalType: "bool",
433
+ name: "",
434
+ type: "bool",
435
+ },
436
+ ],
437
+ stateMutability: "nonpayable",
438
+ type: "function",
439
+ },
440
+ {
441
+ inputs: [
442
+ {
443
+ internalType: "address",
444
+ name: "from",
445
+ type: "address",
446
+ },
447
+ {
448
+ internalType: "address",
449
+ name: "to",
450
+ type: "address",
451
+ },
452
+ {
453
+ internalType: "uint256",
454
+ name: "amount",
455
+ type: "uint256",
456
+ },
457
+ ],
458
+ name: "transferFrom",
459
+ outputs: [
460
+ {
461
+ internalType: "bool",
462
+ name: "",
463
+ type: "bool",
464
+ },
465
+ ],
466
+ stateMutability: "nonpayable",
467
+ type: "function",
468
+ },
469
+ ];
470
+
471
+ export class IComposableStable__factory {
472
+ static readonly abi = _abi;
473
+ static createInterface(): IComposableStableInterface {
474
+ return new utils.Interface(_abi) as IComposableStableInterface;
475
+ }
476
+ static connect(
477
+ address: string,
478
+ signerOrProvider: Signer | Provider
479
+ ): IComposableStable {
480
+ return new Contract(address, _abi, signerOrProvider) as IComposableStable;
481
+ }
482
+ }
@@ -0,0 +1,70 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import { Provider } from "@ethersproject/providers";
7
+ import type { IGauge, IGaugeInterface } from "../IGauge";
8
+
9
+ const _abi = [
10
+ {
11
+ inputs: [
12
+ {
13
+ internalType: "address",
14
+ name: "_addr",
15
+ type: "address",
16
+ },
17
+ {
18
+ internalType: "address",
19
+ name: "_receiver",
20
+ type: "address",
21
+ },
22
+ ],
23
+ name: "claim_rewards",
24
+ outputs: [],
25
+ stateMutability: "nonpayable",
26
+ type: "function",
27
+ },
28
+ {
29
+ inputs: [],
30
+ name: "reward_count",
31
+ outputs: [
32
+ {
33
+ internalType: "uint256",
34
+ name: "",
35
+ type: "uint256",
36
+ },
37
+ ],
38
+ stateMutability: "view",
39
+ type: "function",
40
+ },
41
+ {
42
+ inputs: [
43
+ {
44
+ internalType: "uint256",
45
+ name: "arg0",
46
+ type: "uint256",
47
+ },
48
+ ],
49
+ name: "reward_tokens",
50
+ outputs: [
51
+ {
52
+ internalType: "address",
53
+ name: "",
54
+ type: "address",
55
+ },
56
+ ],
57
+ stateMutability: "view",
58
+ type: "function",
59
+ },
60
+ ];
61
+
62
+ export class IGauge__factory {
63
+ static readonly abi = _abi;
64
+ static createInterface(): IGaugeInterface {
65
+ return new utils.Interface(_abi) as IGaugeInterface;
66
+ }
67
+ static connect(address: string, signerOrProvider: Signer | Provider): IGauge {
68
+ return new Contract(address, _abi, signerOrProvider) as IGauge;
69
+ }
70
+ }
@@ -0,0 +1,49 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import { Provider } from "@ethersproject/providers";
7
+ import type {
8
+ ILiquidityGaugeFactory,
9
+ ILiquidityGaugeFactoryInterface,
10
+ } from "../ILiquidityGaugeFactory";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [
15
+ {
16
+ internalType: "address",
17
+ name: "poolAddress",
18
+ type: "address",
19
+ },
20
+ ],
21
+ name: "getPoolGauge",
22
+ outputs: [
23
+ {
24
+ internalType: "address",
25
+ name: "",
26
+ type: "address",
27
+ },
28
+ ],
29
+ stateMutability: "view",
30
+ type: "function",
31
+ },
32
+ ];
33
+
34
+ export class ILiquidityGaugeFactory__factory {
35
+ static readonly abi = _abi;
36
+ static createInterface(): ILiquidityGaugeFactoryInterface {
37
+ return new utils.Interface(_abi) as ILiquidityGaugeFactoryInterface;
38
+ }
39
+ static connect(
40
+ address: string,
41
+ signerOrProvider: Signer | Provider
42
+ ): ILiquidityGaugeFactory {
43
+ return new Contract(
44
+ address,
45
+ _abi,
46
+ signerOrProvider
47
+ ) as ILiquidityGaugeFactory;
48
+ }
49
+ }