@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,728 @@
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 { ICamelotPair, ICamelotPairInterface } from "../ICamelotPair";
8
+
9
+ const _abi = [
10
+ {
11
+ anonymous: false,
12
+ inputs: [
13
+ {
14
+ indexed: true,
15
+ internalType: "address",
16
+ name: "owner",
17
+ type: "address",
18
+ },
19
+ {
20
+ indexed: true,
21
+ internalType: "address",
22
+ name: "spender",
23
+ type: "address",
24
+ },
25
+ {
26
+ indexed: false,
27
+ internalType: "uint256",
28
+ name: "value",
29
+ type: "uint256",
30
+ },
31
+ ],
32
+ name: "Approval",
33
+ type: "event",
34
+ },
35
+ {
36
+ anonymous: false,
37
+ inputs: [
38
+ {
39
+ indexed: true,
40
+ internalType: "address",
41
+ name: "sender",
42
+ type: "address",
43
+ },
44
+ {
45
+ indexed: false,
46
+ internalType: "uint256",
47
+ name: "amount0",
48
+ type: "uint256",
49
+ },
50
+ {
51
+ indexed: false,
52
+ internalType: "uint256",
53
+ name: "amount1",
54
+ type: "uint256",
55
+ },
56
+ {
57
+ indexed: true,
58
+ internalType: "address",
59
+ name: "to",
60
+ type: "address",
61
+ },
62
+ ],
63
+ name: "Burn",
64
+ type: "event",
65
+ },
66
+ {
67
+ anonymous: false,
68
+ inputs: [
69
+ {
70
+ indexed: true,
71
+ internalType: "address",
72
+ name: "sender",
73
+ type: "address",
74
+ },
75
+ {
76
+ indexed: false,
77
+ internalType: "uint256",
78
+ name: "amount0",
79
+ type: "uint256",
80
+ },
81
+ {
82
+ indexed: false,
83
+ internalType: "uint256",
84
+ name: "amount1",
85
+ type: "uint256",
86
+ },
87
+ ],
88
+ name: "Mint",
89
+ type: "event",
90
+ },
91
+ {
92
+ anonymous: false,
93
+ inputs: [
94
+ {
95
+ indexed: true,
96
+ internalType: "address",
97
+ name: "sender",
98
+ type: "address",
99
+ },
100
+ {
101
+ indexed: false,
102
+ internalType: "uint256",
103
+ name: "amount0In",
104
+ type: "uint256",
105
+ },
106
+ {
107
+ indexed: false,
108
+ internalType: "uint256",
109
+ name: "amount1In",
110
+ type: "uint256",
111
+ },
112
+ {
113
+ indexed: false,
114
+ internalType: "uint256",
115
+ name: "amount0Out",
116
+ type: "uint256",
117
+ },
118
+ {
119
+ indexed: false,
120
+ internalType: "uint256",
121
+ name: "amount1Out",
122
+ type: "uint256",
123
+ },
124
+ {
125
+ indexed: true,
126
+ internalType: "address",
127
+ name: "to",
128
+ type: "address",
129
+ },
130
+ ],
131
+ name: "Swap",
132
+ type: "event",
133
+ },
134
+ {
135
+ anonymous: false,
136
+ inputs: [
137
+ {
138
+ indexed: false,
139
+ internalType: "uint112",
140
+ name: "reserve0",
141
+ type: "uint112",
142
+ },
143
+ {
144
+ indexed: false,
145
+ internalType: "uint112",
146
+ name: "reserve1",
147
+ type: "uint112",
148
+ },
149
+ ],
150
+ name: "Sync",
151
+ type: "event",
152
+ },
153
+ {
154
+ anonymous: false,
155
+ inputs: [
156
+ {
157
+ indexed: true,
158
+ internalType: "address",
159
+ name: "from",
160
+ type: "address",
161
+ },
162
+ {
163
+ indexed: true,
164
+ internalType: "address",
165
+ name: "to",
166
+ type: "address",
167
+ },
168
+ {
169
+ indexed: false,
170
+ internalType: "uint256",
171
+ name: "value",
172
+ type: "uint256",
173
+ },
174
+ ],
175
+ name: "Transfer",
176
+ type: "event",
177
+ },
178
+ {
179
+ inputs: [],
180
+ name: "DOMAIN_SEPARATOR",
181
+ outputs: [
182
+ {
183
+ internalType: "bytes32",
184
+ name: "",
185
+ type: "bytes32",
186
+ },
187
+ ],
188
+ stateMutability: "view",
189
+ type: "function",
190
+ },
191
+ {
192
+ inputs: [],
193
+ name: "MINIMUM_LIQUIDITY",
194
+ outputs: [
195
+ {
196
+ internalType: "uint256",
197
+ name: "",
198
+ type: "uint256",
199
+ },
200
+ ],
201
+ stateMutability: "pure",
202
+ type: "function",
203
+ },
204
+ {
205
+ inputs: [],
206
+ name: "PERMIT_TYPEHASH",
207
+ outputs: [
208
+ {
209
+ internalType: "bytes32",
210
+ name: "",
211
+ type: "bytes32",
212
+ },
213
+ ],
214
+ stateMutability: "pure",
215
+ type: "function",
216
+ },
217
+ {
218
+ inputs: [
219
+ {
220
+ internalType: "address",
221
+ name: "owner",
222
+ type: "address",
223
+ },
224
+ {
225
+ internalType: "address",
226
+ name: "spender",
227
+ type: "address",
228
+ },
229
+ ],
230
+ name: "allowance",
231
+ outputs: [
232
+ {
233
+ internalType: "uint256",
234
+ name: "",
235
+ type: "uint256",
236
+ },
237
+ ],
238
+ stateMutability: "view",
239
+ type: "function",
240
+ },
241
+ {
242
+ inputs: [
243
+ {
244
+ internalType: "address",
245
+ name: "spender",
246
+ type: "address",
247
+ },
248
+ {
249
+ internalType: "uint256",
250
+ name: "value",
251
+ type: "uint256",
252
+ },
253
+ ],
254
+ name: "approve",
255
+ outputs: [
256
+ {
257
+ internalType: "bool",
258
+ name: "",
259
+ type: "bool",
260
+ },
261
+ ],
262
+ stateMutability: "nonpayable",
263
+ type: "function",
264
+ },
265
+ {
266
+ inputs: [
267
+ {
268
+ internalType: "address",
269
+ name: "owner",
270
+ type: "address",
271
+ },
272
+ ],
273
+ name: "balanceOf",
274
+ outputs: [
275
+ {
276
+ internalType: "uint256",
277
+ name: "",
278
+ type: "uint256",
279
+ },
280
+ ],
281
+ stateMutability: "view",
282
+ type: "function",
283
+ },
284
+ {
285
+ inputs: [
286
+ {
287
+ internalType: "address",
288
+ name: "to",
289
+ type: "address",
290
+ },
291
+ ],
292
+ name: "burn",
293
+ outputs: [
294
+ {
295
+ internalType: "uint256",
296
+ name: "amount0",
297
+ type: "uint256",
298
+ },
299
+ {
300
+ internalType: "uint256",
301
+ name: "amount1",
302
+ type: "uint256",
303
+ },
304
+ ],
305
+ stateMutability: "nonpayable",
306
+ type: "function",
307
+ },
308
+ {
309
+ inputs: [],
310
+ name: "decimals",
311
+ outputs: [
312
+ {
313
+ internalType: "uint8",
314
+ name: "",
315
+ type: "uint8",
316
+ },
317
+ ],
318
+ stateMutability: "pure",
319
+ type: "function",
320
+ },
321
+ {
322
+ inputs: [],
323
+ name: "factory",
324
+ outputs: [
325
+ {
326
+ internalType: "address",
327
+ name: "",
328
+ type: "address",
329
+ },
330
+ ],
331
+ stateMutability: "view",
332
+ type: "function",
333
+ },
334
+ {
335
+ inputs: [
336
+ {
337
+ internalType: "uint256",
338
+ name: "amountIn",
339
+ type: "uint256",
340
+ },
341
+ {
342
+ internalType: "address",
343
+ name: "tokenIn",
344
+ type: "address",
345
+ },
346
+ ],
347
+ name: "getAmountOut",
348
+ outputs: [
349
+ {
350
+ internalType: "uint256",
351
+ name: "",
352
+ type: "uint256",
353
+ },
354
+ ],
355
+ stateMutability: "view",
356
+ type: "function",
357
+ },
358
+ {
359
+ inputs: [],
360
+ name: "getReserves",
361
+ outputs: [
362
+ {
363
+ internalType: "uint112",
364
+ name: "reserve0",
365
+ type: "uint112",
366
+ },
367
+ {
368
+ internalType: "uint112",
369
+ name: "reserve1",
370
+ type: "uint112",
371
+ },
372
+ {
373
+ internalType: "uint16",
374
+ name: "token0feePercent",
375
+ type: "uint16",
376
+ },
377
+ {
378
+ internalType: "uint16",
379
+ name: "token1FeePercent",
380
+ type: "uint16",
381
+ },
382
+ ],
383
+ stateMutability: "view",
384
+ type: "function",
385
+ },
386
+ {
387
+ inputs: [
388
+ {
389
+ internalType: "address",
390
+ name: "",
391
+ type: "address",
392
+ },
393
+ {
394
+ internalType: "address",
395
+ name: "",
396
+ type: "address",
397
+ },
398
+ ],
399
+ name: "initialize",
400
+ outputs: [],
401
+ stateMutability: "nonpayable",
402
+ type: "function",
403
+ },
404
+ {
405
+ inputs: [],
406
+ name: "kLast",
407
+ outputs: [
408
+ {
409
+ internalType: "uint256",
410
+ name: "",
411
+ type: "uint256",
412
+ },
413
+ ],
414
+ stateMutability: "view",
415
+ type: "function",
416
+ },
417
+ {
418
+ inputs: [
419
+ {
420
+ internalType: "address",
421
+ name: "to",
422
+ type: "address",
423
+ },
424
+ ],
425
+ name: "mint",
426
+ outputs: [
427
+ {
428
+ internalType: "uint256",
429
+ name: "liquidity",
430
+ type: "uint256",
431
+ },
432
+ ],
433
+ stateMutability: "nonpayable",
434
+ type: "function",
435
+ },
436
+ {
437
+ inputs: [],
438
+ name: "name",
439
+ outputs: [
440
+ {
441
+ internalType: "string",
442
+ name: "",
443
+ type: "string",
444
+ },
445
+ ],
446
+ stateMutability: "pure",
447
+ type: "function",
448
+ },
449
+ {
450
+ inputs: [
451
+ {
452
+ internalType: "address",
453
+ name: "owner",
454
+ type: "address",
455
+ },
456
+ ],
457
+ name: "nonces",
458
+ outputs: [
459
+ {
460
+ internalType: "uint256",
461
+ name: "",
462
+ type: "uint256",
463
+ },
464
+ ],
465
+ stateMutability: "view",
466
+ type: "function",
467
+ },
468
+ {
469
+ inputs: [
470
+ {
471
+ internalType: "address",
472
+ name: "owner",
473
+ type: "address",
474
+ },
475
+ {
476
+ internalType: "address",
477
+ name: "spender",
478
+ type: "address",
479
+ },
480
+ {
481
+ internalType: "uint256",
482
+ name: "value",
483
+ type: "uint256",
484
+ },
485
+ {
486
+ internalType: "uint256",
487
+ name: "deadline",
488
+ type: "uint256",
489
+ },
490
+ {
491
+ internalType: "uint8",
492
+ name: "v",
493
+ type: "uint8",
494
+ },
495
+ {
496
+ internalType: "bytes32",
497
+ name: "r",
498
+ type: "bytes32",
499
+ },
500
+ {
501
+ internalType: "bytes32",
502
+ name: "s",
503
+ type: "bytes32",
504
+ },
505
+ ],
506
+ name: "permit",
507
+ outputs: [],
508
+ stateMutability: "nonpayable",
509
+ type: "function",
510
+ },
511
+ {
512
+ inputs: [
513
+ {
514
+ internalType: "uint16",
515
+ name: "token0FeePercent",
516
+ type: "uint16",
517
+ },
518
+ {
519
+ internalType: "uint16",
520
+ name: "token1FeePercent",
521
+ type: "uint16",
522
+ },
523
+ ],
524
+ name: "setFeePercent",
525
+ outputs: [],
526
+ stateMutability: "nonpayable",
527
+ type: "function",
528
+ },
529
+ {
530
+ inputs: [
531
+ {
532
+ internalType: "address",
533
+ name: "to",
534
+ type: "address",
535
+ },
536
+ ],
537
+ name: "skim",
538
+ outputs: [],
539
+ stateMutability: "nonpayable",
540
+ type: "function",
541
+ },
542
+ {
543
+ inputs: [
544
+ {
545
+ internalType: "uint256",
546
+ name: "amount0Out",
547
+ type: "uint256",
548
+ },
549
+ {
550
+ internalType: "uint256",
551
+ name: "amount1Out",
552
+ type: "uint256",
553
+ },
554
+ {
555
+ internalType: "address",
556
+ name: "to",
557
+ type: "address",
558
+ },
559
+ {
560
+ internalType: "bytes",
561
+ name: "data",
562
+ type: "bytes",
563
+ },
564
+ ],
565
+ name: "swap",
566
+ outputs: [],
567
+ stateMutability: "nonpayable",
568
+ type: "function",
569
+ },
570
+ {
571
+ inputs: [
572
+ {
573
+ internalType: "uint256",
574
+ name: "amount0Out",
575
+ type: "uint256",
576
+ },
577
+ {
578
+ internalType: "uint256",
579
+ name: "amount1Out",
580
+ type: "uint256",
581
+ },
582
+ {
583
+ internalType: "address",
584
+ name: "to",
585
+ type: "address",
586
+ },
587
+ {
588
+ internalType: "bytes",
589
+ name: "data",
590
+ type: "bytes",
591
+ },
592
+ {
593
+ internalType: "address",
594
+ name: "referrer",
595
+ type: "address",
596
+ },
597
+ ],
598
+ name: "swap",
599
+ outputs: [],
600
+ stateMutability: "nonpayable",
601
+ type: "function",
602
+ },
603
+ {
604
+ inputs: [],
605
+ name: "symbol",
606
+ outputs: [
607
+ {
608
+ internalType: "string",
609
+ name: "",
610
+ type: "string",
611
+ },
612
+ ],
613
+ stateMutability: "pure",
614
+ type: "function",
615
+ },
616
+ {
617
+ inputs: [],
618
+ name: "sync",
619
+ outputs: [],
620
+ stateMutability: "nonpayable",
621
+ type: "function",
622
+ },
623
+ {
624
+ inputs: [],
625
+ name: "token0",
626
+ outputs: [
627
+ {
628
+ internalType: "address",
629
+ name: "",
630
+ type: "address",
631
+ },
632
+ ],
633
+ stateMutability: "view",
634
+ type: "function",
635
+ },
636
+ {
637
+ inputs: [],
638
+ name: "token1",
639
+ outputs: [
640
+ {
641
+ internalType: "address",
642
+ name: "",
643
+ type: "address",
644
+ },
645
+ ],
646
+ stateMutability: "view",
647
+ type: "function",
648
+ },
649
+ {
650
+ inputs: [],
651
+ name: "totalSupply",
652
+ outputs: [
653
+ {
654
+ internalType: "uint256",
655
+ name: "",
656
+ type: "uint256",
657
+ },
658
+ ],
659
+ stateMutability: "view",
660
+ type: "function",
661
+ },
662
+ {
663
+ inputs: [
664
+ {
665
+ internalType: "address",
666
+ name: "to",
667
+ type: "address",
668
+ },
669
+ {
670
+ internalType: "uint256",
671
+ name: "value",
672
+ type: "uint256",
673
+ },
674
+ ],
675
+ name: "transfer",
676
+ outputs: [
677
+ {
678
+ internalType: "bool",
679
+ name: "",
680
+ type: "bool",
681
+ },
682
+ ],
683
+ stateMutability: "nonpayable",
684
+ type: "function",
685
+ },
686
+ {
687
+ inputs: [
688
+ {
689
+ internalType: "address",
690
+ name: "from",
691
+ type: "address",
692
+ },
693
+ {
694
+ internalType: "address",
695
+ name: "to",
696
+ type: "address",
697
+ },
698
+ {
699
+ internalType: "uint256",
700
+ name: "value",
701
+ type: "uint256",
702
+ },
703
+ ],
704
+ name: "transferFrom",
705
+ outputs: [
706
+ {
707
+ internalType: "bool",
708
+ name: "",
709
+ type: "bool",
710
+ },
711
+ ],
712
+ stateMutability: "nonpayable",
713
+ type: "function",
714
+ },
715
+ ];
716
+
717
+ export class ICamelotPair__factory {
718
+ static readonly abi = _abi;
719
+ static createInterface(): ICamelotPairInterface {
720
+ return new utils.Interface(_abi) as ICamelotPairInterface;
721
+ }
722
+ static connect(
723
+ address: string,
724
+ signerOrProvider: Signer | Provider
725
+ ): ICamelotPair {
726
+ return new Contract(address, _abi, signerOrProvider) as ICamelotPair;
727
+ }
728
+ }