@pendle/core-v2 4.4.6 → 4.5.0-beta-2

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 (126) hide show
  1. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleERC20WithSupplyCapSY.sol/PendleERC20WithSupplyCapSY.dbg.json +4 -0
  2. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleERC20WithSupplyCapSY.sol/PendleERC20WithSupplyCapSY.json +1073 -0
  3. package/build/artifacts/contracts/core/StandardizedYield/implementations/Tensorplex/PendleStTAOSY.sol/PendleStTAOSY.dbg.json +1 -1
  4. package/build/artifacts/contracts/core/StandardizedYield/implementations/Tensorplex/PendleStTAOSY.sol/PendleStTAOSY.json +2 -2
  5. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiqV3.sol/IPActionAddRemoveLiqV3.dbg.json +1 -1
  6. package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
  7. package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
  8. package/build/artifacts/contracts/interfaces/IPActionStorageV4.sol/IPActionStorageV4.dbg.json +4 -0
  9. package/build/artifacts/contracts/interfaces/IPActionStorageV4.sol/IPActionStorageV4.json +149 -0
  10. package/build/artifacts/contracts/interfaces/IPActionSwapPTV3.sol/IPActionSwapPTV3.dbg.json +1 -1
  11. package/build/artifacts/contracts/interfaces/IPActionSwapYTV3.sol/IPActionSwapYTV3.dbg.json +1 -1
  12. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
  13. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.json +134 -72
  14. package/build/artifacts/contracts/interfaces/IPMiniDiamond.sol/IPMiniDiamond.dbg.json +1 -1
  15. package/build/artifacts/contracts/interfaces/IPRouterHelper.sol/IPRouterHelper.dbg.json +1 -1
  16. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
  17. package/build/artifacts/contracts/limit/LimitRouterBase.sol/LimitRouterBase.dbg.json +1 -1
  18. package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.dbg.json +1 -1
  19. package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.json +2 -2
  20. package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
  21. package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.json +2 -2
  22. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
  23. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +2 -2
  24. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
  25. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +2 -2
  26. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
  27. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +2 -2
  28. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
  29. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +2 -28
  30. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
  31. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +2 -2
  32. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
  33. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +2 -2
  34. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
  35. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +2 -2
  36. package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
  37. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.dbg.json +1 -1
  38. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.json +2 -124
  39. package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.dbg.json +1 -1
  40. package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.json +3 -51
  41. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.dbg.json +1 -1
  42. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.json +2 -50
  43. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.dbg.json +4 -0
  44. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.json +149 -0
  45. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.dbg.json +1 -1
  46. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.json +2 -76
  47. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.dbg.json +1 -1
  48. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.json +2 -92
  49. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.dbg.json +4 -0
  50. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.json +35 -0
  51. package/build/artifacts/contracts/router/RouterStorage.sol/RouterStorage.dbg.json +4 -0
  52. package/build/artifacts/contracts/router/RouterStorage.sol/RouterStorage.json +10 -0
  53. package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
  54. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
  55. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.json +2 -2
  56. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
  57. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.json +2 -2
  58. package/contracts/core/StandardizedYield/implementations/PendleERC20WithSupplyCapSY.sol +55 -0
  59. package/contracts/core/StandardizedYield/implementations/Tensorplex/PendleStTAOSY.sol +1 -1
  60. package/contracts/interfaces/IPActionStorageStatic.sol +1 -0
  61. package/contracts/interfaces/IPActionStorageV4.sol +25 -0
  62. package/contracts/interfaces/IPAllActionV3.sol +2 -2
  63. package/contracts/interfaces/IPMiniDiamond.sol +1 -0
  64. package/contracts/limit/LimitRouterBase.sol +48 -25
  65. package/contracts/router/ActionAddRemoveLiqV3.sol +12 -12
  66. package/contracts/router/ActionCallbackV3.sol +14 -13
  67. package/contracts/router/ActionMiscV3.sol +1 -3
  68. package/contracts/router/ActionStorageV4.sol +64 -0
  69. package/contracts/router/ActionSwapYTV3.sol +3 -3
  70. package/contracts/router/PendleRouterV4.sol +23 -0
  71. package/contracts/router/RouterStorage.sol +19 -0
  72. package/contracts/router/base/ActionBase.sol +5 -7
  73. package/contracts/router/base/MarketApproxLib.sol +18 -16
  74. package/deployments/1-core.json +1 -1
  75. package/deployments/1-markets/ENA-AUG2024.json +13 -0
  76. package/deployments/1-markets/EZETH-DEC2024.json +11 -0
  77. package/deployments/1-markets/SUSDE-JUL2024.json +13 -0
  78. package/deployments/1-markets/WEETH-DEC2024.json +13 -0
  79. package/deployments/10-core.json +1 -1
  80. package/deployments/42161-core.json +1 -1
  81. package/deployments/5000-core.json +1 -1
  82. package/deployments/56-core.json +1 -1
  83. package/deployments/56-markets/EZETH-BSC-SEP2024.json +13 -0
  84. package/package.json +1 -1
  85. package/typechain-types/ActionCallbackV3.ts +5 -5
  86. package/typechain-types/ActionStorageV4.ts +293 -0
  87. package/typechain-types/IPActionStorageV4.ts +293 -0
  88. package/typechain-types/IPAllActionV3.ts +208 -109
  89. package/typechain-types/PendleERC20WithSupplyCapSY.ts +1332 -0
  90. package/typechain-types/PendleRouterV4.ts +57 -0
  91. package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +1 -123
  92. package/typechain-types/factories/ActionCallbackV3__factory.ts +2 -50
  93. package/typechain-types/factories/ActionInfoStatic__factory.ts +1 -1
  94. package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +1 -1
  95. package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +1 -27
  96. package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +1 -1
  97. package/typechain-types/factories/ActionMiscV3__factory.ts +1 -49
  98. package/typechain-types/factories/ActionStorageStatic__factory.ts +1 -1
  99. package/typechain-types/factories/ActionStorageV4__factory.ts +202 -0
  100. package/typechain-types/factories/ActionSwapPTV3__factory.ts +1 -75
  101. package/typechain-types/factories/ActionSwapYTV3__factory.ts +1 -91
  102. package/typechain-types/factories/ActionVePendleStatic__factory.ts +1 -1
  103. package/typechain-types/factories/IPActionStorageV4__factory.ts +164 -0
  104. package/typechain-types/factories/IPAllActionV3__factory.ts +134 -72
  105. package/typechain-types/factories/PendleERC20WithSupplyCapSY__factory.ts +1157 -0
  106. package/typechain-types/factories/PendleLimitRouter__factory.ts +1 -1
  107. package/typechain-types/factories/PendlePoolDeployHelper__factory.ts +1 -1
  108. package/typechain-types/factories/PendleRouterStatic__factory.ts +1 -1
  109. package/typechain-types/factories/PendleRouterV4__factory.ts +96 -0
  110. package/typechain-types/factories/PendleStTAOSY__factory.ts +1 -1
  111. package/typechain-types/hardhat.d.ts +31 -58
  112. package/typechain-types/index.ts +8 -14
  113. package/build/artifacts/contracts/interfaces/IDiamondCut.sol/IDiamondCut.dbg.json +0 -4
  114. package/build/artifacts/contracts/interfaces/IDiamondCut.sol/IDiamondCut.json +0 -93
  115. package/build/artifacts/contracts/interfaces/IDiamondLoupe.sol/IDiamondLoupe.dbg.json +0 -4
  116. package/build/artifacts/contracts/interfaces/IDiamondLoupe.sol/IDiamondLoupe.json +0 -87
  117. package/build/artifacts/contracts/router/PendleRouterHelper.sol/PendleRouterHelper.dbg.json +0 -4
  118. package/build/artifacts/contracts/router/PendleRouterHelper.sol/PendleRouterHelper.json +0 -1002
  119. package/build/artifacts/contracts/router/PendleRouterHelper.sol/RouterV2InterfaceForRouterHelper.dbg.json +0 -4
  120. package/build/artifacts/contracts/router/PendleRouterHelper.sol/RouterV2InterfaceForRouterHelper.json +0 -466
  121. package/build/artifacts/contracts/router/PendleRouterV3.sol/PendleRouterV3.dbg.json +0 -4
  122. package/build/artifacts/contracts/router/PendleRouterV3.sol/PendleRouterV3.json +0 -179
  123. package/contracts/interfaces/IDiamondCut.sol +0 -32
  124. package/contracts/interfaces/IDiamondLoupe.sol +0 -38
  125. package/contracts/router/PendleRouterHelper.sol +0 -305
  126. package/contracts/router/PendleRouterV3.sol +0 -235
@@ -463,6 +463,25 @@
463
463
  "name": "MintSyFromToken",
464
464
  "type": "event"
465
465
  },
466
+ {
467
+ "anonymous": false,
468
+ "inputs": [
469
+ {
470
+ "indexed": true,
471
+ "internalType": "address",
472
+ "name": "previousOwner",
473
+ "type": "address"
474
+ },
475
+ {
476
+ "indexed": true,
477
+ "internalType": "address",
478
+ "name": "newOwner",
479
+ "type": "address"
480
+ }
481
+ ],
482
+ "name": "OwnershipTransferred",
483
+ "type": "event"
484
+ },
466
485
  {
467
486
  "anonymous": false,
468
487
  "inputs": [
@@ -813,6 +832,25 @@
813
832
  "name": "RemoveLiquiditySingleToken",
814
833
  "type": "event"
815
834
  },
835
+ {
836
+ "anonymous": false,
837
+ "inputs": [
838
+ {
839
+ "indexed": true,
840
+ "internalType": "bytes4",
841
+ "name": "selector",
842
+ "type": "bytes4"
843
+ },
844
+ {
845
+ "indexed": true,
846
+ "internalType": "address",
847
+ "name": "facet",
848
+ "type": "address"
849
+ }
850
+ ],
851
+ "name": "SelectorToFacetSet",
852
+ "type": "event"
853
+ },
816
854
  {
817
855
  "anonymous": false,
818
856
  "inputs": [
@@ -2171,80 +2209,11 @@
2171
2209
  "stateMutability": "nonpayable",
2172
2210
  "type": "function"
2173
2211
  },
2174
- {
2175
- "inputs": [
2176
- {
2177
- "internalType": "bytes4",
2178
- "name": "_functionSelector",
2179
- "type": "bytes4"
2180
- }
2181
- ],
2182
- "name": "facetAddress",
2183
- "outputs": [
2184
- {
2185
- "internalType": "address",
2186
- "name": "facetAddress_",
2187
- "type": "address"
2188
- }
2189
- ],
2190
- "stateMutability": "view",
2191
- "type": "function"
2192
- },
2193
- {
2194
- "inputs": [],
2195
- "name": "facetAddresses",
2196
- "outputs": [
2197
- {
2198
- "internalType": "address[]",
2199
- "name": "facetAddresses_",
2200
- "type": "address[]"
2201
- }
2202
- ],
2203
- "stateMutability": "view",
2204
- "type": "function"
2205
- },
2206
- {
2207
- "inputs": [
2208
- {
2209
- "internalType": "address",
2210
- "name": "_facet",
2211
- "type": "address"
2212
- }
2213
- ],
2214
- "name": "facetFunctionSelectors",
2215
- "outputs": [
2216
- {
2217
- "internalType": "bytes4[]",
2218
- "name": "facetFunctionSelectors_",
2219
- "type": "bytes4[]"
2220
- }
2221
- ],
2222
- "stateMutability": "view",
2223
- "type": "function"
2224
- },
2225
2212
  {
2226
2213
  "inputs": [],
2227
- "name": "facets",
2228
- "outputs": [
2229
- {
2230
- "components": [
2231
- {
2232
- "internalType": "address",
2233
- "name": "facetAddress",
2234
- "type": "address"
2235
- },
2236
- {
2237
- "internalType": "bytes4[]",
2238
- "name": "functionSelectors",
2239
- "type": "bytes4[]"
2240
- }
2241
- ],
2242
- "internalType": "struct IDiamondLoupe.Facet[]",
2243
- "name": "facets_",
2244
- "type": "tuple[]"
2245
- }
2246
- ],
2247
- "stateMutability": "view",
2214
+ "name": "claimOwnership",
2215
+ "outputs": [],
2216
+ "stateMutability": "nonpayable",
2248
2217
  "type": "function"
2249
2218
  },
2250
2219
  {
@@ -2529,6 +2498,32 @@
2529
2498
  "stateMutability": "payable",
2530
2499
  "type": "function"
2531
2500
  },
2501
+ {
2502
+ "inputs": [],
2503
+ "name": "owner",
2504
+ "outputs": [
2505
+ {
2506
+ "internalType": "address",
2507
+ "name": "",
2508
+ "type": "address"
2509
+ }
2510
+ ],
2511
+ "stateMutability": "view",
2512
+ "type": "function"
2513
+ },
2514
+ {
2515
+ "inputs": [],
2516
+ "name": "pendingOwner",
2517
+ "outputs": [
2518
+ {
2519
+ "internalType": "address",
2520
+ "name": "",
2521
+ "type": "address"
2522
+ }
2523
+ ],
2524
+ "stateMutability": "view",
2525
+ "type": "function"
2526
+ },
2532
2527
  {
2533
2528
  "inputs": [
2534
2529
  {
@@ -3677,6 +3672,50 @@
3677
3672
  "stateMutability": "nonpayable",
3678
3673
  "type": "function"
3679
3674
  },
3675
+ {
3676
+ "inputs": [
3677
+ {
3678
+ "internalType": "bytes4",
3679
+ "name": "selector",
3680
+ "type": "bytes4"
3681
+ }
3682
+ ],
3683
+ "name": "selectorToFacet",
3684
+ "outputs": [
3685
+ {
3686
+ "internalType": "address",
3687
+ "name": "",
3688
+ "type": "address"
3689
+ }
3690
+ ],
3691
+ "stateMutability": "view",
3692
+ "type": "function"
3693
+ },
3694
+ {
3695
+ "inputs": [
3696
+ {
3697
+ "components": [
3698
+ {
3699
+ "internalType": "address",
3700
+ "name": "facet",
3701
+ "type": "address"
3702
+ },
3703
+ {
3704
+ "internalType": "bytes4[]",
3705
+ "name": "selectors",
3706
+ "type": "bytes4[]"
3707
+ }
3708
+ ],
3709
+ "internalType": "struct IPActionStorageV4.SelectorsToFacet[]",
3710
+ "name": "arr",
3711
+ "type": "tuple[]"
3712
+ }
3713
+ ],
3714
+ "name": "setSelectorToFacets",
3715
+ "outputs": [],
3716
+ "stateMutability": "nonpayable",
3717
+ "type": "function"
3718
+ },
3680
3719
  {
3681
3720
  "inputs": [
3682
3721
  {
@@ -6206,6 +6245,29 @@
6206
6245
  ],
6207
6246
  "stateMutability": "payable",
6208
6247
  "type": "function"
6248
+ },
6249
+ {
6250
+ "inputs": [
6251
+ {
6252
+ "internalType": "address",
6253
+ "name": "newOwner",
6254
+ "type": "address"
6255
+ },
6256
+ {
6257
+ "internalType": "bool",
6258
+ "name": "direct",
6259
+ "type": "bool"
6260
+ },
6261
+ {
6262
+ "internalType": "bool",
6263
+ "name": "renounce",
6264
+ "type": "bool"
6265
+ }
6266
+ ],
6267
+ "name": "transferOwnership",
6268
+ "outputs": [],
6269
+ "stateMutability": "nonpayable",
6270
+ "type": "function"
6209
6271
  }
6210
6272
  ],
6211
6273
  "bytecode": "0x",
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/cc003aa9aa823af61dac599cd20978c0.json"
3
+ "buildInfo": "../../../build-info/3e21d7a5332fcfa07816d028107d0b58.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/ff3d2c74f70919561846fe4739fdaa6d.json"
3
+ "buildInfo": "../../../build-info/3e21d7a5332fcfa07816d028107d0b58.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/ff3d2c74f70919561846fe4739fdaa6d.json"
3
+ "buildInfo": "../../../build-info/3e21d7a5332fcfa07816d028107d0b58.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/376b10287731dd32583df546c24f2c5b.json"
3
+ "buildInfo": "../../../build-info/3e21d7a5332fcfa07816d028107d0b58.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/b8b251e0aab115a32ffa98722f4f2175.json"
3
+ "buildInfo": "../../../build-info/58c2f6e61d617faeec6d4753e6f1cc90.json"
4
4
  }