@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
@@ -467,6 +467,25 @@ const _abi = [
467
467
  name: "MintSyFromToken",
468
468
  type: "event",
469
469
  },
470
+ {
471
+ anonymous: false,
472
+ inputs: [
473
+ {
474
+ indexed: true,
475
+ internalType: "address",
476
+ name: "previousOwner",
477
+ type: "address",
478
+ },
479
+ {
480
+ indexed: true,
481
+ internalType: "address",
482
+ name: "newOwner",
483
+ type: "address",
484
+ },
485
+ ],
486
+ name: "OwnershipTransferred",
487
+ type: "event",
488
+ },
470
489
  {
471
490
  anonymous: false,
472
491
  inputs: [
@@ -817,6 +836,25 @@ const _abi = [
817
836
  name: "RemoveLiquiditySingleToken",
818
837
  type: "event",
819
838
  },
839
+ {
840
+ anonymous: false,
841
+ inputs: [
842
+ {
843
+ indexed: true,
844
+ internalType: "bytes4",
845
+ name: "selector",
846
+ type: "bytes4",
847
+ },
848
+ {
849
+ indexed: true,
850
+ internalType: "address",
851
+ name: "facet",
852
+ type: "address",
853
+ },
854
+ ],
855
+ name: "SelectorToFacetSet",
856
+ type: "event",
857
+ },
820
858
  {
821
859
  anonymous: false,
822
860
  inputs: [
@@ -2175,80 +2213,11 @@ const _abi = [
2175
2213
  stateMutability: "nonpayable",
2176
2214
  type: "function",
2177
2215
  },
2178
- {
2179
- inputs: [
2180
- {
2181
- internalType: "bytes4",
2182
- name: "_functionSelector",
2183
- type: "bytes4",
2184
- },
2185
- ],
2186
- name: "facetAddress",
2187
- outputs: [
2188
- {
2189
- internalType: "address",
2190
- name: "facetAddress_",
2191
- type: "address",
2192
- },
2193
- ],
2194
- stateMutability: "view",
2195
- type: "function",
2196
- },
2197
- {
2198
- inputs: [],
2199
- name: "facetAddresses",
2200
- outputs: [
2201
- {
2202
- internalType: "address[]",
2203
- name: "facetAddresses_",
2204
- type: "address[]",
2205
- },
2206
- ],
2207
- stateMutability: "view",
2208
- type: "function",
2209
- },
2210
- {
2211
- inputs: [
2212
- {
2213
- internalType: "address",
2214
- name: "_facet",
2215
- type: "address",
2216
- },
2217
- ],
2218
- name: "facetFunctionSelectors",
2219
- outputs: [
2220
- {
2221
- internalType: "bytes4[]",
2222
- name: "facetFunctionSelectors_",
2223
- type: "bytes4[]",
2224
- },
2225
- ],
2226
- stateMutability: "view",
2227
- type: "function",
2228
- },
2229
2216
  {
2230
2217
  inputs: [],
2231
- name: "facets",
2232
- outputs: [
2233
- {
2234
- components: [
2235
- {
2236
- internalType: "address",
2237
- name: "facetAddress",
2238
- type: "address",
2239
- },
2240
- {
2241
- internalType: "bytes4[]",
2242
- name: "functionSelectors",
2243
- type: "bytes4[]",
2244
- },
2245
- ],
2246
- internalType: "struct IDiamondLoupe.Facet[]",
2247
- name: "facets_",
2248
- type: "tuple[]",
2249
- },
2250
- ],
2251
- stateMutability: "view",
2218
+ name: "claimOwnership",
2219
+ outputs: [],
2220
+ stateMutability: "nonpayable",
2252
2221
  type: "function",
2253
2222
  },
2254
2223
  {
@@ -2533,6 +2502,32 @@ const _abi = [
2533
2502
  stateMutability: "payable",
2534
2503
  type: "function",
2535
2504
  },
2505
+ {
2506
+ inputs: [],
2507
+ name: "owner",
2508
+ outputs: [
2509
+ {
2510
+ internalType: "address",
2511
+ name: "",
2512
+ type: "address",
2513
+ },
2514
+ ],
2515
+ stateMutability: "view",
2516
+ type: "function",
2517
+ },
2518
+ {
2519
+ inputs: [],
2520
+ name: "pendingOwner",
2521
+ outputs: [
2522
+ {
2523
+ internalType: "address",
2524
+ name: "",
2525
+ type: "address",
2526
+ },
2527
+ ],
2528
+ stateMutability: "view",
2529
+ type: "function",
2530
+ },
2536
2531
  {
2537
2532
  inputs: [
2538
2533
  {
@@ -3681,6 +3676,50 @@ const _abi = [
3681
3676
  stateMutability: "nonpayable",
3682
3677
  type: "function",
3683
3678
  },
3679
+ {
3680
+ inputs: [
3681
+ {
3682
+ internalType: "bytes4",
3683
+ name: "selector",
3684
+ type: "bytes4",
3685
+ },
3686
+ ],
3687
+ name: "selectorToFacet",
3688
+ outputs: [
3689
+ {
3690
+ internalType: "address",
3691
+ name: "",
3692
+ type: "address",
3693
+ },
3694
+ ],
3695
+ stateMutability: "view",
3696
+ type: "function",
3697
+ },
3698
+ {
3699
+ inputs: [
3700
+ {
3701
+ components: [
3702
+ {
3703
+ internalType: "address",
3704
+ name: "facet",
3705
+ type: "address",
3706
+ },
3707
+ {
3708
+ internalType: "bytes4[]",
3709
+ name: "selectors",
3710
+ type: "bytes4[]",
3711
+ },
3712
+ ],
3713
+ internalType: "struct IPActionStorageV4.SelectorsToFacet[]",
3714
+ name: "arr",
3715
+ type: "tuple[]",
3716
+ },
3717
+ ],
3718
+ name: "setSelectorToFacets",
3719
+ outputs: [],
3720
+ stateMutability: "nonpayable",
3721
+ type: "function",
3722
+ },
3684
3723
  {
3685
3724
  inputs: [
3686
3725
  {
@@ -6211,6 +6250,29 @@ const _abi = [
6211
6250
  stateMutability: "payable",
6212
6251
  type: "function",
6213
6252
  },
6253
+ {
6254
+ inputs: [
6255
+ {
6256
+ internalType: "address",
6257
+ name: "newOwner",
6258
+ type: "address",
6259
+ },
6260
+ {
6261
+ internalType: "bool",
6262
+ name: "direct",
6263
+ type: "bool",
6264
+ },
6265
+ {
6266
+ internalType: "bool",
6267
+ name: "renounce",
6268
+ type: "bool",
6269
+ },
6270
+ ],
6271
+ name: "transferOwnership",
6272
+ outputs: [],
6273
+ stateMutability: "nonpayable",
6274
+ type: "function",
6275
+ },
6214
6276
  ];
6215
6277
 
6216
6278
  export class IPAllActionV3__factory {