@pendle/core-v2 2.8.0-mainnet → 2.8.2-mainnet

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 (28) hide show
  1. package/build/artifacts/contracts/core/StandardizedYield/implementations/UniV2/PendleUniV2Base.sol/PendleCamelotV1Base.dbg.json +4 -0
  2. package/build/artifacts/contracts/core/StandardizedYield/implementations/UniV2/PendleUniV2Base.sol/PendleCamelotV1Base.json +63 -0
  3. package/build/artifacts/contracts/interfaces/ICamelotPair.sol/ICamelotPair.dbg.json +4 -0
  4. package/build/artifacts/contracts/interfaces/ICamelotPair.sol/ICamelotPair.json +716 -0
  5. package/build/artifacts/contracts/interfaces/ICamelotRouter.sol/ICamelotRouter.dbg.json +4 -0
  6. package/build/artifacts/contracts/interfaces/ICamelotRouter.sol/ICamelotRouter.json +647 -0
  7. package/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSYV2.sol +31 -10
  8. package/contracts/offchain-helpers/PendleMulticallV1.sol +61 -0
  9. package/deployments/1-markets/BALANCER-LP-AURA-STAFI-RETH-WETH-JUNE-27-2024.json +5 -5
  10. package/deployments/1-offchain-helper.json +1 -1
  11. package/deployments/42161-core.json +3 -3
  12. package/deployments/42161-offchain-helper.json +1 -1
  13. package/package.json +1 -1
  14. package/typechain-types/ICamelotPair.ts +972 -0
  15. package/typechain-types/ICamelotRouter.ts +955 -0
  16. package/typechain-types/PendleCamelotV1Base.ts +120 -0
  17. package/typechain-types/factories/ICamelotPair__factory.ts +728 -0
  18. package/typechain-types/factories/ICamelotRouter__factory.ts +662 -0
  19. package/typechain-types/factories/PendleCamelotV1Base__factory.ts +78 -0
  20. package/typechain-types/hardhat.d.ts +27 -99
  21. package/typechain-types/index.ts +6 -22
  22. package/contracts/offchain-helpers/PendleMulticall.sol +0 -26
  23. /package/deployments/1-markets/{BALANCER-LP-AURA-ANKRETH-WETH-MARCH-28-2024.json → deprecated/BALANCER-LP-AURA-ANKRETH-WETH-MARCH-28-2024.json} +0 -0
  24. /package/deployments/1-markets/{BALANCER-LP-AURA-RETH-WETH-28DEC.json → deprecated/BALANCER-LP-AURA-RETH-WETH-28DEC.json} +0 -0
  25. /package/deployments/1-markets/{BALANCER-LP-AURA-WSTETH-WETH-JUN272024.json → deprecated/BALANCER-LP-AURA-WSTETH-WETH-JUN272024.json} +0 -0
  26. /package/deployments/1-markets/{FRAXUSDC-CURVELP-MARCH30.json → deprecated/FRAXUSDC-CURVELP-MARCH30.json} +0 -0
  27. /package/deployments/1-markets/{LOOKS-STAKING-MARCH30.json → deprecated/LOOKS-STAKING-MARCH30.json} +0 -0
  28. /package/deployments/1-markets/{STETH-MARCH30.json → deprecated/STETH-MARCH30.json} +0 -0
@@ -0,0 +1,662 @@
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
+ ICamelotRouter,
9
+ ICamelotRouterInterface,
10
+ } from "../ICamelotRouter";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [],
15
+ name: "WETH",
16
+ outputs: [
17
+ {
18
+ internalType: "address",
19
+ name: "",
20
+ type: "address",
21
+ },
22
+ ],
23
+ stateMutability: "pure",
24
+ type: "function",
25
+ },
26
+ {
27
+ inputs: [
28
+ {
29
+ internalType: "address",
30
+ name: "tokenA",
31
+ type: "address",
32
+ },
33
+ {
34
+ internalType: "address",
35
+ name: "tokenB",
36
+ type: "address",
37
+ },
38
+ {
39
+ internalType: "uint256",
40
+ name: "amountADesired",
41
+ type: "uint256",
42
+ },
43
+ {
44
+ internalType: "uint256",
45
+ name: "amountBDesired",
46
+ type: "uint256",
47
+ },
48
+ {
49
+ internalType: "uint256",
50
+ name: "amountAMin",
51
+ type: "uint256",
52
+ },
53
+ {
54
+ internalType: "uint256",
55
+ name: "amountBMin",
56
+ type: "uint256",
57
+ },
58
+ {
59
+ internalType: "address",
60
+ name: "to",
61
+ type: "address",
62
+ },
63
+ {
64
+ internalType: "uint256",
65
+ name: "deadline",
66
+ type: "uint256",
67
+ },
68
+ ],
69
+ name: "addLiquidity",
70
+ outputs: [
71
+ {
72
+ internalType: "uint256",
73
+ name: "amountA",
74
+ type: "uint256",
75
+ },
76
+ {
77
+ internalType: "uint256",
78
+ name: "amountB",
79
+ type: "uint256",
80
+ },
81
+ {
82
+ internalType: "uint256",
83
+ name: "liquidity",
84
+ type: "uint256",
85
+ },
86
+ ],
87
+ stateMutability: "nonpayable",
88
+ type: "function",
89
+ },
90
+ {
91
+ inputs: [
92
+ {
93
+ internalType: "address",
94
+ name: "token",
95
+ type: "address",
96
+ },
97
+ {
98
+ internalType: "uint256",
99
+ name: "amountTokenDesired",
100
+ type: "uint256",
101
+ },
102
+ {
103
+ internalType: "uint256",
104
+ name: "amountTokenMin",
105
+ type: "uint256",
106
+ },
107
+ {
108
+ internalType: "uint256",
109
+ name: "amountETHMin",
110
+ type: "uint256",
111
+ },
112
+ {
113
+ internalType: "address",
114
+ name: "to",
115
+ type: "address",
116
+ },
117
+ {
118
+ internalType: "uint256",
119
+ name: "deadline",
120
+ type: "uint256",
121
+ },
122
+ ],
123
+ name: "addLiquidityETH",
124
+ outputs: [
125
+ {
126
+ internalType: "uint256",
127
+ name: "amountToken",
128
+ type: "uint256",
129
+ },
130
+ {
131
+ internalType: "uint256",
132
+ name: "amountETH",
133
+ type: "uint256",
134
+ },
135
+ {
136
+ internalType: "uint256",
137
+ name: "liquidity",
138
+ type: "uint256",
139
+ },
140
+ ],
141
+ stateMutability: "payable",
142
+ type: "function",
143
+ },
144
+ {
145
+ inputs: [],
146
+ name: "factory",
147
+ outputs: [
148
+ {
149
+ internalType: "address",
150
+ name: "",
151
+ type: "address",
152
+ },
153
+ ],
154
+ stateMutability: "pure",
155
+ type: "function",
156
+ },
157
+ {
158
+ inputs: [
159
+ {
160
+ internalType: "uint256",
161
+ name: "amountA",
162
+ type: "uint256",
163
+ },
164
+ {
165
+ internalType: "uint256",
166
+ name: "reserveA",
167
+ type: "uint256",
168
+ },
169
+ {
170
+ internalType: "uint256",
171
+ name: "reserveB",
172
+ type: "uint256",
173
+ },
174
+ ],
175
+ name: "quote",
176
+ outputs: [
177
+ {
178
+ internalType: "uint256",
179
+ name: "amountB",
180
+ type: "uint256",
181
+ },
182
+ ],
183
+ stateMutability: "pure",
184
+ type: "function",
185
+ },
186
+ {
187
+ inputs: [
188
+ {
189
+ internalType: "address",
190
+ name: "tokenA",
191
+ type: "address",
192
+ },
193
+ {
194
+ internalType: "address",
195
+ name: "tokenB",
196
+ type: "address",
197
+ },
198
+ {
199
+ internalType: "uint256",
200
+ name: "liquidity",
201
+ type: "uint256",
202
+ },
203
+ {
204
+ internalType: "uint256",
205
+ name: "amountAMin",
206
+ type: "uint256",
207
+ },
208
+ {
209
+ internalType: "uint256",
210
+ name: "amountBMin",
211
+ type: "uint256",
212
+ },
213
+ {
214
+ internalType: "address",
215
+ name: "to",
216
+ type: "address",
217
+ },
218
+ {
219
+ internalType: "uint256",
220
+ name: "deadline",
221
+ type: "uint256",
222
+ },
223
+ ],
224
+ name: "removeLiquidity",
225
+ outputs: [
226
+ {
227
+ internalType: "uint256",
228
+ name: "amountA",
229
+ type: "uint256",
230
+ },
231
+ {
232
+ internalType: "uint256",
233
+ name: "amountB",
234
+ type: "uint256",
235
+ },
236
+ ],
237
+ stateMutability: "nonpayable",
238
+ type: "function",
239
+ },
240
+ {
241
+ inputs: [
242
+ {
243
+ internalType: "address",
244
+ name: "token",
245
+ type: "address",
246
+ },
247
+ {
248
+ internalType: "uint256",
249
+ name: "liquidity",
250
+ type: "uint256",
251
+ },
252
+ {
253
+ internalType: "uint256",
254
+ name: "amountTokenMin",
255
+ type: "uint256",
256
+ },
257
+ {
258
+ internalType: "uint256",
259
+ name: "amountETHMin",
260
+ type: "uint256",
261
+ },
262
+ {
263
+ internalType: "address",
264
+ name: "to",
265
+ type: "address",
266
+ },
267
+ {
268
+ internalType: "uint256",
269
+ name: "deadline",
270
+ type: "uint256",
271
+ },
272
+ ],
273
+ name: "removeLiquidityETH",
274
+ outputs: [
275
+ {
276
+ internalType: "uint256",
277
+ name: "amountToken",
278
+ type: "uint256",
279
+ },
280
+ {
281
+ internalType: "uint256",
282
+ name: "amountETH",
283
+ type: "uint256",
284
+ },
285
+ ],
286
+ stateMutability: "nonpayable",
287
+ type: "function",
288
+ },
289
+ {
290
+ inputs: [
291
+ {
292
+ internalType: "address",
293
+ name: "token",
294
+ type: "address",
295
+ },
296
+ {
297
+ internalType: "uint256",
298
+ name: "liquidity",
299
+ type: "uint256",
300
+ },
301
+ {
302
+ internalType: "uint256",
303
+ name: "amountTokenMin",
304
+ type: "uint256",
305
+ },
306
+ {
307
+ internalType: "uint256",
308
+ name: "amountETHMin",
309
+ type: "uint256",
310
+ },
311
+ {
312
+ internalType: "address",
313
+ name: "to",
314
+ type: "address",
315
+ },
316
+ {
317
+ internalType: "uint256",
318
+ name: "deadline",
319
+ type: "uint256",
320
+ },
321
+ ],
322
+ name: "removeLiquidityETHSupportingFeeOnTransferTokens",
323
+ outputs: [
324
+ {
325
+ internalType: "uint256",
326
+ name: "amountETH",
327
+ type: "uint256",
328
+ },
329
+ ],
330
+ stateMutability: "nonpayable",
331
+ type: "function",
332
+ },
333
+ {
334
+ inputs: [
335
+ {
336
+ internalType: "address",
337
+ name: "token",
338
+ type: "address",
339
+ },
340
+ {
341
+ internalType: "uint256",
342
+ name: "liquidity",
343
+ type: "uint256",
344
+ },
345
+ {
346
+ internalType: "uint256",
347
+ name: "amountTokenMin",
348
+ type: "uint256",
349
+ },
350
+ {
351
+ internalType: "uint256",
352
+ name: "amountETHMin",
353
+ type: "uint256",
354
+ },
355
+ {
356
+ internalType: "address",
357
+ name: "to",
358
+ type: "address",
359
+ },
360
+ {
361
+ internalType: "uint256",
362
+ name: "deadline",
363
+ type: "uint256",
364
+ },
365
+ {
366
+ internalType: "bool",
367
+ name: "approveMax",
368
+ type: "bool",
369
+ },
370
+ {
371
+ internalType: "uint8",
372
+ name: "v",
373
+ type: "uint8",
374
+ },
375
+ {
376
+ internalType: "bytes32",
377
+ name: "r",
378
+ type: "bytes32",
379
+ },
380
+ {
381
+ internalType: "bytes32",
382
+ name: "s",
383
+ type: "bytes32",
384
+ },
385
+ ],
386
+ name: "removeLiquidityETHWithPermit",
387
+ outputs: [
388
+ {
389
+ internalType: "uint256",
390
+ name: "amountToken",
391
+ type: "uint256",
392
+ },
393
+ {
394
+ internalType: "uint256",
395
+ name: "amountETH",
396
+ type: "uint256",
397
+ },
398
+ ],
399
+ stateMutability: "nonpayable",
400
+ type: "function",
401
+ },
402
+ {
403
+ inputs: [
404
+ {
405
+ internalType: "address",
406
+ name: "token",
407
+ type: "address",
408
+ },
409
+ {
410
+ internalType: "uint256",
411
+ name: "liquidity",
412
+ type: "uint256",
413
+ },
414
+ {
415
+ internalType: "uint256",
416
+ name: "amountTokenMin",
417
+ type: "uint256",
418
+ },
419
+ {
420
+ internalType: "uint256",
421
+ name: "amountETHMin",
422
+ type: "uint256",
423
+ },
424
+ {
425
+ internalType: "address",
426
+ name: "to",
427
+ type: "address",
428
+ },
429
+ {
430
+ internalType: "uint256",
431
+ name: "deadline",
432
+ type: "uint256",
433
+ },
434
+ {
435
+ internalType: "bool",
436
+ name: "approveMax",
437
+ type: "bool",
438
+ },
439
+ {
440
+ internalType: "uint8",
441
+ name: "v",
442
+ type: "uint8",
443
+ },
444
+ {
445
+ internalType: "bytes32",
446
+ name: "r",
447
+ type: "bytes32",
448
+ },
449
+ {
450
+ internalType: "bytes32",
451
+ name: "s",
452
+ type: "bytes32",
453
+ },
454
+ ],
455
+ name: "removeLiquidityETHWithPermitSupportingFeeOnTransferTokens",
456
+ outputs: [
457
+ {
458
+ internalType: "uint256",
459
+ name: "amountETH",
460
+ type: "uint256",
461
+ },
462
+ ],
463
+ stateMutability: "nonpayable",
464
+ type: "function",
465
+ },
466
+ {
467
+ inputs: [
468
+ {
469
+ internalType: "address",
470
+ name: "tokenA",
471
+ type: "address",
472
+ },
473
+ {
474
+ internalType: "address",
475
+ name: "tokenB",
476
+ type: "address",
477
+ },
478
+ {
479
+ internalType: "uint256",
480
+ name: "liquidity",
481
+ type: "uint256",
482
+ },
483
+ {
484
+ internalType: "uint256",
485
+ name: "amountAMin",
486
+ type: "uint256",
487
+ },
488
+ {
489
+ internalType: "uint256",
490
+ name: "amountBMin",
491
+ type: "uint256",
492
+ },
493
+ {
494
+ internalType: "address",
495
+ name: "to",
496
+ type: "address",
497
+ },
498
+ {
499
+ internalType: "uint256",
500
+ name: "deadline",
501
+ type: "uint256",
502
+ },
503
+ {
504
+ internalType: "bool",
505
+ name: "approveMax",
506
+ type: "bool",
507
+ },
508
+ {
509
+ internalType: "uint8",
510
+ name: "v",
511
+ type: "uint8",
512
+ },
513
+ {
514
+ internalType: "bytes32",
515
+ name: "r",
516
+ type: "bytes32",
517
+ },
518
+ {
519
+ internalType: "bytes32",
520
+ name: "s",
521
+ type: "bytes32",
522
+ },
523
+ ],
524
+ name: "removeLiquidityWithPermit",
525
+ outputs: [
526
+ {
527
+ internalType: "uint256",
528
+ name: "amountA",
529
+ type: "uint256",
530
+ },
531
+ {
532
+ internalType: "uint256",
533
+ name: "amountB",
534
+ type: "uint256",
535
+ },
536
+ ],
537
+ stateMutability: "nonpayable",
538
+ type: "function",
539
+ },
540
+ {
541
+ inputs: [
542
+ {
543
+ internalType: "uint256",
544
+ name: "amountOutMin",
545
+ type: "uint256",
546
+ },
547
+ {
548
+ internalType: "address[]",
549
+ name: "path",
550
+ type: "address[]",
551
+ },
552
+ {
553
+ internalType: "address",
554
+ name: "to",
555
+ type: "address",
556
+ },
557
+ {
558
+ internalType: "address",
559
+ name: "referrer",
560
+ type: "address",
561
+ },
562
+ {
563
+ internalType: "uint256",
564
+ name: "deadline",
565
+ type: "uint256",
566
+ },
567
+ ],
568
+ name: "swapExactETHForTokensSupportingFeeOnTransferTokens",
569
+ outputs: [],
570
+ stateMutability: "payable",
571
+ type: "function",
572
+ },
573
+ {
574
+ inputs: [
575
+ {
576
+ internalType: "uint256",
577
+ name: "amountIn",
578
+ type: "uint256",
579
+ },
580
+ {
581
+ internalType: "uint256",
582
+ name: "amountOutMin",
583
+ type: "uint256",
584
+ },
585
+ {
586
+ internalType: "address[]",
587
+ name: "path",
588
+ type: "address[]",
589
+ },
590
+ {
591
+ internalType: "address",
592
+ name: "to",
593
+ type: "address",
594
+ },
595
+ {
596
+ internalType: "address",
597
+ name: "referrer",
598
+ type: "address",
599
+ },
600
+ {
601
+ internalType: "uint256",
602
+ name: "deadline",
603
+ type: "uint256",
604
+ },
605
+ ],
606
+ name: "swapExactTokensForETHSupportingFeeOnTransferTokens",
607
+ outputs: [],
608
+ stateMutability: "nonpayable",
609
+ type: "function",
610
+ },
611
+ {
612
+ inputs: [
613
+ {
614
+ internalType: "uint256",
615
+ name: "amountIn",
616
+ type: "uint256",
617
+ },
618
+ {
619
+ internalType: "uint256",
620
+ name: "amountOutMin",
621
+ type: "uint256",
622
+ },
623
+ {
624
+ internalType: "address[]",
625
+ name: "path",
626
+ type: "address[]",
627
+ },
628
+ {
629
+ internalType: "address",
630
+ name: "to",
631
+ type: "address",
632
+ },
633
+ {
634
+ internalType: "address",
635
+ name: "referrer",
636
+ type: "address",
637
+ },
638
+ {
639
+ internalType: "uint256",
640
+ name: "deadline",
641
+ type: "uint256",
642
+ },
643
+ ],
644
+ name: "swapExactTokensForTokensSupportingFeeOnTransferTokens",
645
+ outputs: [],
646
+ stateMutability: "nonpayable",
647
+ type: "function",
648
+ },
649
+ ];
650
+
651
+ export class ICamelotRouter__factory {
652
+ static readonly abi = _abi;
653
+ static createInterface(): ICamelotRouterInterface {
654
+ return new utils.Interface(_abi) as ICamelotRouterInterface;
655
+ }
656
+ static connect(
657
+ address: string,
658
+ signerOrProvider: Signer | Provider
659
+ ): ICamelotRouter {
660
+ return new Contract(address, _abi, signerOrProvider) as ICamelotRouter;
661
+ }
662
+ }