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

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 (116) hide show
  1. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleERC20WithSupplyCapSY.sol/PendleERC20WithSupplyCapSY.dbg.json +1 -1
  2. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleERC20WithSupplyCapSY.sol/PendleERC20WithSupplyCapSY.json +2 -2
  3. package/build/artifacts/contracts/core/StandardizedYield/implementations/Swell/PendleSwellRswETHStakingSY.sol/PendleSwellRswETHStakingSY.dbg.json +4 -0
  4. package/build/artifacts/contracts/core/StandardizedYield/implementations/Swell/PendleSwellRswETHStakingSY.sol/PendleSwellRswETHStakingSY.json +1049 -0
  5. package/build/artifacts/contracts/core/StandardizedYield/implementations/Swell/PendleSwellStakingERC20SY.sol/PendleSwellStakingERC20SY.dbg.json +4 -0
  6. package/build/artifacts/contracts/core/StandardizedYield/implementations/Swell/PendleSwellStakingERC20SY.sol/PendleSwellStakingERC20SY.json +1039 -0
  7. package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
  8. package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.json +0 -431
  9. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
  10. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.json +0 -431
  11. package/build/artifacts/contracts/interfaces/IPGovernanceProxy.sol/IPGovernanceProxy.dbg.json +4 -0
  12. package/build/artifacts/contracts/interfaces/IPGovernanceProxy.sol/IPGovernanceProxy.json +60 -0
  13. package/build/artifacts/contracts/interfaces/IPPYLpOracle.sol/IPPYLpOracle.dbg.json +4 -0
  14. package/build/artifacts/contracts/interfaces/{IPPtLpOracle.sol/IPPtLpOracle.json → IPPYLpOracle.sol/IPPYLpOracle.json} +50 -2
  15. package/build/artifacts/contracts/interfaces/IPPausingInterface.sol/IPPausingInterface.dbg.json +4 -0
  16. package/build/artifacts/contracts/interfaces/IPPausingInterface.sol/IPPausingInterface.json +25 -0
  17. package/build/artifacts/contracts/interfaces/Swell/ISwellSimpleStakingERC20.sol/ISwellSimpleStakingERC20.dbg.json +4 -0
  18. package/build/artifacts/contracts/interfaces/Swell/ISwellSimpleStakingERC20.sol/ISwellSimpleStakingERC20.json +207 -0
  19. package/build/artifacts/contracts/offchain-helpers/PendleGovernanceProxy.sol/PendleGovernanceProxy.dbg.json +4 -0
  20. package/build/artifacts/contracts/offchain-helpers/PendleGovernanceProxy.sol/PendleGovernanceProxy.json +401 -0
  21. package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
  22. package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.json +2 -2
  23. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
  24. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +2 -2
  25. package/build/artifacts/contracts/oracles/PendleLpOracleLib.sol/PendleLpOracleLib.dbg.json +1 -1
  26. package/build/artifacts/contracts/oracles/PendleLpOracleLib.sol/PendleLpOracleLib.json +2 -2
  27. package/build/artifacts/contracts/oracles/PendlePYLpOracle.sol/PendlePYLpOracle.dbg.json +4 -0
  28. package/build/artifacts/contracts/oracles/PendlePYLpOracle.sol/PendlePYLpOracle.json +422 -0
  29. package/build/artifacts/contracts/oracles/PendlePYOracleLib.sol/PendlePYOracleLib.dbg.json +4 -0
  30. package/build/artifacts/contracts/oracles/{PendlePtOracleLib.sol/PendlePtOracleLib.json → PendlePYOracleLib.sol/PendlePYOracleLib.json} +4 -4
  31. package/build/artifacts/contracts/oracles/samples/BoringLpGlpOracle.sol/BoringLpGlpOracle.dbg.json +1 -1
  32. package/build/artifacts/contracts/oracles/samples/BoringLpGlpOracle.sol/BoringLpGlpOracle.json +2 -2
  33. package/build/artifacts/contracts/oracles/samples/BoringPYUsdChainlinkAssetOracle.sol/BoringPYUsdChainlinkAssetOracle.dbg.json +4 -0
  34. package/build/artifacts/contracts/oracles/samples/BoringPYUsdChainlinkAssetOracle.sol/BoringPYUsdChainlinkAssetOracle.json +183 -0
  35. package/build/artifacts/contracts/oracles/samples/BoringPYUsdChainlinkSYOracle.sol/BoringPYUsdChainlinkSYOracle.dbg.json +4 -0
  36. package/build/artifacts/contracts/oracles/samples/BoringPYUsdChainlinkSYOracle.sol/BoringPYUsdChainlinkSYOracle.json +183 -0
  37. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.dbg.json +1 -1
  38. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.json +2 -2
  39. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.dbg.json +1 -1
  40. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.json +2 -591
  41. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.dbg.json +1 -1
  42. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.json +2 -2
  43. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.dbg.json +1 -1
  44. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.json +2 -2
  45. package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
  46. package/contracts/core/StandardizedYield/implementations/PendleERC20WithSupplyCapSY.sol +6 -1
  47. package/contracts/core/StandardizedYield/implementations/Swell/PendleSwellRswETHStakingSY.sol +56 -0
  48. package/contracts/core/StandardizedYield/implementations/Swell/PendleSwellStakingERC20SY.sol +111 -0
  49. package/contracts/interfaces/IPActionMiscV3.sol +0 -38
  50. package/contracts/interfaces/IPGovernanceProxy.sol +14 -0
  51. package/contracts/interfaces/{IPPtLpOracle.sol → IPPYLpOracle.sol} +5 -1
  52. package/contracts/interfaces/IPPausingInterface.sol +8 -0
  53. package/contracts/interfaces/Swell/ISwellSimpleStakingERC20.sol +66 -0
  54. package/contracts/offchain-helpers/PendleGovernanceProxy.sol +84 -0
  55. package/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol +12 -4
  56. package/contracts/oracles/PendleLpOracleLib.sol +4 -4
  57. package/contracts/oracles/{PendlePtLpOracle.sol → PendlePYLpOracle.sol} +44 -16
  58. package/contracts/oracles/{PendlePtOracleLib.sol → PendlePYOracleLib.sol} +31 -1
  59. package/contracts/oracles/samples/BoringLpGlpOracle.sol +2 -2
  60. package/contracts/oracles/samples/{BoringPtUsdChainlinkOracle.sol → BoringPYUsdChainlinkAssetOracle.sol} +36 -12
  61. package/contracts/oracles/samples/BoringPYUsdChainlinkSYOracle.sol +102 -0
  62. package/contracts/router/ActionMiscV3.sol +36 -216
  63. package/contracts/router/ActionSwapYTV3.sol +85 -0
  64. package/contracts/router/base/ActionBase.sol +1 -106
  65. package/deployments/1-markets/EZETH-MAINNET-SEP2024.json +11 -0
  66. package/deployments/1-markets/PUFETH-MAINNET-SEP2024.json +11 -0
  67. package/deployments/1-markets/RSETH-MAINNET-SEP2024.json +11 -0
  68. package/deployments/1-markets/RSWETH-SWELL-STAKING-MAINNET-JUL2024.json +11 -0
  69. package/deployments/1-markets/SUSDE-MAINNET-SEP2024.json +13 -0
  70. package/deployments/1-markets/WEETH-MAINNET-SEP2024.json +11 -0
  71. package/deployments/42161-markets/EZETH-ARB-SEP2024.json +11 -0
  72. package/deployments/42161-markets/RSETH-ARBITRUM-SEP2024.json +11 -0
  73. package/deployments/42161-markets/SILO-PTEETH-ARBITRUM-JUNE2024.json +11 -0
  74. package/deployments/42161-markets/SILO-PTEZETH-ARBITRUM-JUNE2024.json +11 -0
  75. package/deployments/42161-markets/WEETH-ARB-SEP2024.json +11 -0
  76. package/deployments/56-markets/WEETH-BSC-SEP2024.json +11 -0
  77. package/package.json +1 -1
  78. package/typechain-types/ActionMiscV3.ts +16 -379
  79. package/typechain-types/BoringPYUsdChainlinkAssetOracle.ts +244 -0
  80. package/typechain-types/BoringPYUsdChainlinkSYOracle.ts +243 -0
  81. package/typechain-types/IPActionMiscV3.ts +16 -249
  82. package/typechain-types/IPAllActionV3.ts +0 -156
  83. package/typechain-types/IPGovernanceProxy.ts +142 -0
  84. package/typechain-types/IPPYLpOracle.ts +379 -0
  85. package/typechain-types/IPPausingInterface.ts +112 -0
  86. package/typechain-types/PendleGovernanceProxy.ts +603 -0
  87. package/typechain-types/PendlePYLpOracle.ts +612 -0
  88. package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +1 -1
  89. package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +1 -1
  90. package/typechain-types/factories/ActionMiscV3__factory.ts +1 -590
  91. package/typechain-types/factories/ActionSwapPTV3__factory.ts +1 -1
  92. package/typechain-types/factories/ActionSwapYTV3__factory.ts +1 -1
  93. package/typechain-types/factories/BoringLpGlpOracle__factory.ts +1 -1
  94. package/typechain-types/factories/BoringPYUsdChainlinkAssetOracle__factory.ts +269 -0
  95. package/typechain-types/factories/BoringPYUsdChainlinkSYOracle__factory.ts +267 -0
  96. package/typechain-types/factories/IPActionMiscV3__factory.ts +0 -431
  97. package/typechain-types/factories/IPAllActionV3__factory.ts +0 -431
  98. package/typechain-types/factories/IPGovernanceProxy__factory.ts +75 -0
  99. package/typechain-types/factories/IPPYLpOracle__factory.ts +214 -0
  100. package/typechain-types/factories/IPPausingInterface__factory.ts +40 -0
  101. package/typechain-types/factories/PendleERC20WithSupplyCapSY__factory.ts +1 -1
  102. package/typechain-types/factories/PendleGovernanceProxy__factory.ts +458 -0
  103. package/typechain-types/factories/PendlePYLpOracle__factory.ts +487 -0
  104. package/typechain-types/factories/PendlePoolDeployHelper__factory.ts +1 -1
  105. package/typechain-types/factories/PendleSwellRswETHStakingSY__factory.ts +1 -1
  106. package/typechain-types/hardhat.d.ts +63 -0
  107. package/typechain-types/index.ts +14 -0
  108. package/build/artifacts/contracts/interfaces/IPPtLpOracle.sol/IPPtLpOracle.dbg.json +0 -4
  109. package/build/artifacts/contracts/oracles/PendlePtLpOracle.sol/PendlePtLpOracle.dbg.json +0 -4
  110. package/build/artifacts/contracts/oracles/PendlePtLpOracle.sol/PendlePtLpOracle.json +0 -367
  111. package/build/artifacts/contracts/oracles/PendlePtOracleLib.sol/PendlePtOracleLib.dbg.json +0 -4
  112. package/build/artifacts/contracts/oracles/samples/BoringPtUsdChainlinkOracle.sol/BoringPtUsdChainlinkOracle.dbg.json +0 -4
  113. package/build/artifacts/contracts/oracles/samples/BoringPtUsdChainlinkOracle.sol/BoringPtUsdChainlinkOracle.json +0 -157
  114. /package/deployments/1-markets/{EZETH-JUNE2024.json → EZETH-APR2024.json} +0 -0
  115. /package/deployments/42161-markets/{RSETH-MAY2024.json → RSETH-JUNE2024.json} +0 -0
  116. /package/deployments/42161-markets/{WEETH-MAY2024.json → WEETH-JUNE2024.json} +0 -0
@@ -281,437 +281,6 @@ 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
- },
715
284
  {
716
285
  inputs: [
717
286
  {