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