@pendle/core-v2 4.5.0 → 4.5.1-beta-1

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 (41) hide show
  1. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleERC20WithSupplyCapSY.sol/PendleERC20WithSupplyCapSY.dbg.json +1 -1
  2. package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
  3. package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.json +431 -0
  4. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
  5. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.json +431 -0
  6. package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
  7. package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.json +2 -2
  8. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
  9. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.dbg.json +1 -1
  10. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.json +2 -2
  11. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.dbg.json +1 -1
  12. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.json +591 -2
  13. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.dbg.json +1 -1
  14. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.json +2 -2
  15. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.dbg.json +1 -1
  16. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.json +2 -2
  17. package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
  18. package/contracts/interfaces/IPActionMiscV3.sol +38 -0
  19. package/contracts/router/ActionMiscV3.sol +216 -36
  20. package/contracts/router/ActionSwapYTV3.sol +0 -85
  21. package/contracts/router/base/ActionBase.sol +106 -1
  22. package/deployments/merkle-distribution/2024-04-25.json +14930 -0
  23. package/package.json +1 -1
  24. package/typechain-types/ActionMiscV3.ts +379 -16
  25. package/typechain-types/IPActionMiscV3.ts +249 -16
  26. package/typechain-types/IPAllActionV3.ts +156 -0
  27. package/typechain-types/ISwellSimpleStakingERC20.ts +289 -0
  28. package/typechain-types/PendleSwellRswETHStakingSY.ts +1325 -0
  29. package/typechain-types/PendleSwellStakingERC20SY.ts +1299 -0
  30. package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +1 -1
  31. package/typechain-types/factories/ActionMiscV3__factory.ts +590 -1
  32. package/typechain-types/factories/ActionSwapPTV3__factory.ts +1 -1
  33. package/typechain-types/factories/ActionSwapYTV3__factory.ts +1 -1
  34. package/typechain-types/factories/IPActionMiscV3__factory.ts +431 -0
  35. package/typechain-types/factories/IPAllActionV3__factory.ts +431 -0
  36. package/typechain-types/factories/ISwellSimpleStakingERC20__factory.ts +226 -0
  37. package/typechain-types/factories/PendlePoolDeployHelper__factory.ts +1 -1
  38. package/typechain-types/factories/PendleSwellRswETHStakingSY__factory.ts +1106 -0
  39. package/typechain-types/factories/PendleSwellStakingERC20SY__factory.ts +1112 -0
  40. package/typechain-types/hardhat.d.ts +27 -0
  41. package/typechain-types/index.ts +6 -0
@@ -281,6 +281,437 @@ const _abi = [
281
281
  stateMutability: "nonpayable",
282
282
  type: "function",
283
283
  },
284
+ {
285
+ inputs: [
286
+ {
287
+ internalType: "address",
288
+ name: "receiver",
289
+ type: "address",
290
+ },
291
+ {
292
+ internalType: "address",
293
+ name: "market",
294
+ type: "address",
295
+ },
296
+ {
297
+ internalType: "uint256",
298
+ name: "netPtIn",
299
+ type: "uint256",
300
+ },
301
+ {
302
+ internalType: "uint256",
303
+ name: "netLpIn",
304
+ type: "uint256",
305
+ },
306
+ {
307
+ components: [
308
+ {
309
+ internalType: "address",
310
+ name: "tokenOut",
311
+ type: "address",
312
+ },
313
+ {
314
+ internalType: "uint256",
315
+ name: "minTokenOut",
316
+ type: "uint256",
317
+ },
318
+ {
319
+ internalType: "address",
320
+ name: "tokenRedeemSy",
321
+ type: "address",
322
+ },
323
+ {
324
+ internalType: "address",
325
+ name: "pendleSwap",
326
+ type: "address",
327
+ },
328
+ {
329
+ components: [
330
+ {
331
+ internalType: "enum SwapType",
332
+ name: "swapType",
333
+ type: "uint8",
334
+ },
335
+ {
336
+ internalType: "address",
337
+ name: "extRouter",
338
+ type: "address",
339
+ },
340
+ {
341
+ internalType: "bytes",
342
+ name: "extCalldata",
343
+ type: "bytes",
344
+ },
345
+ {
346
+ internalType: "bool",
347
+ name: "needScale",
348
+ type: "bool",
349
+ },
350
+ ],
351
+ internalType: "struct SwapData",
352
+ name: "swapData",
353
+ type: "tuple",
354
+ },
355
+ ],
356
+ internalType: "struct TokenOutput",
357
+ name: "output",
358
+ type: "tuple",
359
+ },
360
+ ],
361
+ name: "exitMultiplePostExpiry",
362
+ outputs: [
363
+ {
364
+ internalType: "uint256",
365
+ name: "netTokenOut",
366
+ type: "uint256",
367
+ },
368
+ {
369
+ internalType: "uint256",
370
+ name: "netPtFromRemove",
371
+ type: "uint256",
372
+ },
373
+ {
374
+ internalType: "uint256",
375
+ name: "netSyFromRemove",
376
+ type: "uint256",
377
+ },
378
+ {
379
+ internalType: "uint256",
380
+ name: "netPtRedeem",
381
+ type: "uint256",
382
+ },
383
+ {
384
+ internalType: "uint256",
385
+ name: "netSyFromRedeem",
386
+ type: "uint256",
387
+ },
388
+ ],
389
+ stateMutability: "nonpayable",
390
+ type: "function",
391
+ },
392
+ {
393
+ inputs: [
394
+ {
395
+ internalType: "address",
396
+ name: "receiver",
397
+ type: "address",
398
+ },
399
+ {
400
+ internalType: "address",
401
+ name: "market",
402
+ type: "address",
403
+ },
404
+ {
405
+ internalType: "uint256",
406
+ name: "netPtIn",
407
+ type: "uint256",
408
+ },
409
+ {
410
+ internalType: "uint256",
411
+ name: "netYtIn",
412
+ type: "uint256",
413
+ },
414
+ {
415
+ internalType: "uint256",
416
+ name: "netLpIn",
417
+ type: "uint256",
418
+ },
419
+ {
420
+ components: [
421
+ {
422
+ internalType: "address",
423
+ name: "tokenOut",
424
+ type: "address",
425
+ },
426
+ {
427
+ internalType: "uint256",
428
+ name: "minTokenOut",
429
+ type: "uint256",
430
+ },
431
+ {
432
+ internalType: "address",
433
+ name: "tokenRedeemSy",
434
+ type: "address",
435
+ },
436
+ {
437
+ internalType: "address",
438
+ name: "pendleSwap",
439
+ type: "address",
440
+ },
441
+ {
442
+ components: [
443
+ {
444
+ internalType: "enum SwapType",
445
+ name: "swapType",
446
+ type: "uint8",
447
+ },
448
+ {
449
+ internalType: "address",
450
+ name: "extRouter",
451
+ type: "address",
452
+ },
453
+ {
454
+ internalType: "bytes",
455
+ name: "extCalldata",
456
+ type: "bytes",
457
+ },
458
+ {
459
+ internalType: "bool",
460
+ name: "needScale",
461
+ type: "bool",
462
+ },
463
+ ],
464
+ internalType: "struct SwapData",
465
+ name: "swapData",
466
+ type: "tuple",
467
+ },
468
+ ],
469
+ internalType: "struct TokenOutput",
470
+ name: "output",
471
+ type: "tuple",
472
+ },
473
+ {
474
+ components: [
475
+ {
476
+ internalType: "address",
477
+ name: "limitRouter",
478
+ type: "address",
479
+ },
480
+ {
481
+ internalType: "uint256",
482
+ name: "epsSkipMarket",
483
+ type: "uint256",
484
+ },
485
+ {
486
+ components: [
487
+ {
488
+ components: [
489
+ {
490
+ internalType: "uint256",
491
+ name: "salt",
492
+ type: "uint256",
493
+ },
494
+ {
495
+ internalType: "uint256",
496
+ name: "expiry",
497
+ type: "uint256",
498
+ },
499
+ {
500
+ internalType: "uint256",
501
+ name: "nonce",
502
+ type: "uint256",
503
+ },
504
+ {
505
+ internalType: "enum IPLimitOrderType.OrderType",
506
+ name: "orderType",
507
+ type: "uint8",
508
+ },
509
+ {
510
+ internalType: "address",
511
+ name: "token",
512
+ type: "address",
513
+ },
514
+ {
515
+ internalType: "address",
516
+ name: "YT",
517
+ type: "address",
518
+ },
519
+ {
520
+ internalType: "address",
521
+ name: "maker",
522
+ type: "address",
523
+ },
524
+ {
525
+ internalType: "address",
526
+ name: "receiver",
527
+ type: "address",
528
+ },
529
+ {
530
+ internalType: "uint256",
531
+ name: "makingAmount",
532
+ type: "uint256",
533
+ },
534
+ {
535
+ internalType: "uint256",
536
+ name: "lnImpliedRate",
537
+ type: "uint256",
538
+ },
539
+ {
540
+ internalType: "uint256",
541
+ name: "failSafeRate",
542
+ type: "uint256",
543
+ },
544
+ {
545
+ internalType: "bytes",
546
+ name: "permit",
547
+ type: "bytes",
548
+ },
549
+ ],
550
+ internalType: "struct Order",
551
+ name: "order",
552
+ type: "tuple",
553
+ },
554
+ {
555
+ internalType: "bytes",
556
+ name: "signature",
557
+ type: "bytes",
558
+ },
559
+ {
560
+ internalType: "uint256",
561
+ name: "makingAmount",
562
+ type: "uint256",
563
+ },
564
+ ],
565
+ internalType: "struct FillOrderParams[]",
566
+ name: "normalFills",
567
+ type: "tuple[]",
568
+ },
569
+ {
570
+ components: [
571
+ {
572
+ components: [
573
+ {
574
+ internalType: "uint256",
575
+ name: "salt",
576
+ type: "uint256",
577
+ },
578
+ {
579
+ internalType: "uint256",
580
+ name: "expiry",
581
+ type: "uint256",
582
+ },
583
+ {
584
+ internalType: "uint256",
585
+ name: "nonce",
586
+ type: "uint256",
587
+ },
588
+ {
589
+ internalType: "enum IPLimitOrderType.OrderType",
590
+ name: "orderType",
591
+ type: "uint8",
592
+ },
593
+ {
594
+ internalType: "address",
595
+ name: "token",
596
+ type: "address",
597
+ },
598
+ {
599
+ internalType: "address",
600
+ name: "YT",
601
+ type: "address",
602
+ },
603
+ {
604
+ internalType: "address",
605
+ name: "maker",
606
+ type: "address",
607
+ },
608
+ {
609
+ internalType: "address",
610
+ name: "receiver",
611
+ type: "address",
612
+ },
613
+ {
614
+ internalType: "uint256",
615
+ name: "makingAmount",
616
+ type: "uint256",
617
+ },
618
+ {
619
+ internalType: "uint256",
620
+ name: "lnImpliedRate",
621
+ type: "uint256",
622
+ },
623
+ {
624
+ internalType: "uint256",
625
+ name: "failSafeRate",
626
+ type: "uint256",
627
+ },
628
+ {
629
+ internalType: "bytes",
630
+ name: "permit",
631
+ type: "bytes",
632
+ },
633
+ ],
634
+ internalType: "struct Order",
635
+ name: "order",
636
+ type: "tuple",
637
+ },
638
+ {
639
+ internalType: "bytes",
640
+ name: "signature",
641
+ type: "bytes",
642
+ },
643
+ {
644
+ internalType: "uint256",
645
+ name: "makingAmount",
646
+ type: "uint256",
647
+ },
648
+ ],
649
+ internalType: "struct FillOrderParams[]",
650
+ name: "flashFills",
651
+ type: "tuple[]",
652
+ },
653
+ {
654
+ internalType: "bytes",
655
+ name: "optData",
656
+ type: "bytes",
657
+ },
658
+ ],
659
+ internalType: "struct LimitOrderData",
660
+ name: "limit",
661
+ type: "tuple",
662
+ },
663
+ ],
664
+ name: "exitMultiplePreExpiry",
665
+ outputs: [
666
+ {
667
+ internalType: "uint256",
668
+ name: "netTokenOut",
669
+ type: "uint256",
670
+ },
671
+ {
672
+ internalType: "uint256",
673
+ name: "netPtFromRemove",
674
+ type: "uint256",
675
+ },
676
+ {
677
+ internalType: "uint256",
678
+ name: "netSyFromRemove",
679
+ type: "uint256",
680
+ },
681
+ {
682
+ internalType: "uint256",
683
+ name: "netPyRedeem",
684
+ type: "uint256",
685
+ },
686
+ {
687
+ internalType: "uint256",
688
+ name: "netSyFromRedeem",
689
+ type: "uint256",
690
+ },
691
+ {
692
+ internalType: "uint256",
693
+ name: "netPtSwap",
694
+ type: "uint256",
695
+ },
696
+ {
697
+ internalType: "uint256",
698
+ name: "netYtSwap",
699
+ type: "uint256",
700
+ },
701
+ {
702
+ internalType: "uint256",
703
+ name: "netSyFromSwap",
704
+ type: "uint256",
705
+ },
706
+ {
707
+ internalType: "uint256",
708
+ name: "netSyFee",
709
+ type: "uint256",
710
+ },
711
+ ],
712
+ stateMutability: "nonpayable",
713
+ type: "function",
714
+ },
284
715
  {
285
716
  inputs: [
286
717
  {