@pendle/core-v2 0.17.8-testnet → 0.18.0-testnet

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 (111) hide show
  1. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.dbg.json +1 -1
  2. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.dbg.json +1 -1
  3. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.dbg.json +1 -1
  4. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.dbg.json +1 -1
  5. package/build/artifacts/contracts/LiquidityMining/FeeDistributor/EpochResultManager.sol/EpochResultManager.dbg.json +1 -1
  6. package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +1 -1
  7. package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributorFactory.sol/PendleFeeDistributorFactory.dbg.json +1 -1
  8. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
  9. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
  10. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
  11. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
  12. package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
  13. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
  14. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
  15. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
  16. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
  17. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
  18. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
  19. package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.dbg.json +1 -1
  20. package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.json +2 -2
  21. package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.dbg.json +1 -1
  22. package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.dbg.json +1 -1
  23. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
  24. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
  25. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
  26. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
  27. package/build/artifacts/contracts/core/StandardizedYield/SYBase.sol/SYBase.dbg.json +1 -1
  28. package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.dbg.json +1 -1
  29. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.dbg.json +4 -0
  30. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.json +934 -0
  31. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
  32. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.dbg.json +1 -1
  33. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.dbg.json +1 -1
  34. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.dbg.json +1 -1
  35. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/PendleConvexLPSY.sol/PendleConvexLPSY.dbg.json +1 -1
  36. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.dbg.json +1 -1
  37. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.dbg.json +1 -1
  38. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
  39. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
  40. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
  41. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
  42. package/build/artifacts/contracts/interfaces/IApeStaking.sol/IApeStaking.dbg.json +1 -1
  43. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
  44. package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
  45. package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
  46. package/build/artifacts/contracts/interfaces/IPActionSwapPTYT.sol/IPActionSwapPTYT.dbg.json +1 -1
  47. package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
  48. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
  49. package/build/artifacts/contracts/interfaces/IPBulkSeller.sol/IPBulkSeller.dbg.json +1 -1
  50. package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.dbg.json +1 -1
  51. package/build/artifacts/contracts/interfaces/IPFeeDistributorFactory.sol/IPFeeDistributorFactory.dbg.json +1 -1
  52. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
  53. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
  54. package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
  55. package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.dbg.json +1 -1
  56. package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.json +2 -2
  57. package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.dbg.json +1 -1
  58. package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.json +42 -2
  59. package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.dbg.json +1 -1
  60. package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.json +73 -100
  61. package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
  62. package/build/artifacts/contracts/router/ActionCallback.sol/ActionCallback.dbg.json +1 -1
  63. package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
  64. package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.dbg.json +1 -1
  65. package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
  66. package/build/artifacts/contracts/router/ActionSwapPTYT.sol/ActionSwapPTYT.dbg.json +1 -1
  67. package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
  68. package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.dbg.json +1 -1
  69. package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +1 -1
  70. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
  71. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
  72. package/build/artifacts/contracts/router/kyberswap/AggregationRouterHelper.sol/AggregationRouterHelper.dbg.json +1 -1
  73. package/build/artifacts/contracts/router/kyberswap/AggregationRouterHelper.sol/AggregationRouterHelper.json +2 -2
  74. package/build/artifacts/contracts/router/kyberswap/IMultihopRouterEthereum.sol/IMultihopRouterEthereum.dbg.json +4 -0
  75. package/build/artifacts/contracts/router/kyberswap/{IMultihopRouter.sol/IMultihopRouter.json → IMultihopRouterEthereum.sol/IMultihopRouterEthereum.json} +3 -3
  76. package/build/artifacts/contracts/router/kyberswap/KyberSwapHelper.sol/KyberSwapHelper.dbg.json +1 -1
  77. package/contracts/core/BulkSeller/BulkSeller.sol +1 -1
  78. package/contracts/core/StandardizedYield/implementations/Ape/{PendleApeStakingSY.sol → sAPE.sol} +43 -30
  79. package/contracts/offchain-helpers/MarketMathStatic.sol +30 -55
  80. package/contracts/offchain-helpers/RouterStatic.sol +30 -52
  81. package/contracts/router/kyberswap/AggregationRouterHelper.sol +37 -23
  82. package/contracts/router/kyberswap/{IMultihopRouter.sol → IMultihopRouterEthereum.sol} +11 -9
  83. package/deployments/1-markets/APE-JUNE-29.json +8 -0
  84. package/deployments/80001-core.json +28 -0
  85. package/deployments/80001-markets/USDC-FEB-4TH.json +10 -0
  86. package/deployments/80001-markets/WETH-FEB-4TH.json +11 -0
  87. package/deployments/80001-testenv.json +22 -0
  88. package/package.json +1 -1
  89. package/typechain-types/BribeDistributor.ts +363 -0
  90. package/typechain-types/DistributorBase.ts +363 -0
  91. package/typechain-types/FeeDistributor.ts +416 -0
  92. package/typechain-types/IMultihopRouterEthereum.ts +209 -0
  93. package/typechain-types/MarketMathStatic.ts +49 -0
  94. package/typechain-types/RouterStatic.ts +0 -49
  95. package/typechain-types/SAPE.ts +1191 -0
  96. package/typechain-types/factories/AggregationRouterHelper__factory.ts +1 -1
  97. package/typechain-types/factories/BribeDistributor__factory.ts +303 -0
  98. package/typechain-types/factories/BulkSellerOffchain__factory.ts +1 -1
  99. package/typechain-types/factories/BulkSeller__factory.ts +1 -1
  100. package/typechain-types/factories/DistributorBase__factory.ts +249 -0
  101. package/typechain-types/factories/FeeDistributor__factory.ts +339 -0
  102. package/typechain-types/factories/IMultihopRouterEthereum__factory.ts +155 -0
  103. package/typechain-types/factories/MarketMathStatic__factory.ts +41 -1
  104. package/typechain-types/factories/PendleApeStakingSY__factory.ts +1 -1
  105. package/typechain-types/factories/RouterStatic__factory.ts +18 -41
  106. package/typechain-types/factories/SAPE__factory.ts +1001 -0
  107. package/typechain-types/hardhat.d.ts +58 -4
  108. package/typechain-types/index.ts +10 -2
  109. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/PendleApeStakingSY.sol/PendleApeStakingSY.dbg.json +0 -4
  110. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/PendleApeStakingSY.sol/PendleApeStakingSY.json +0 -908
  111. package/build/artifacts/contracts/router/kyberswap/IMultihopRouter.sol/IMultihopRouter.dbg.json +0 -4
@@ -20,10 +20,33 @@ import type {
20
20
  OnEvent,
21
21
  } from "./common";
22
22
 
23
+ export type ApproxParamsStruct = {
24
+ guessMin: BigNumberish;
25
+ guessMax: BigNumberish;
26
+ guessOffchain: BigNumberish;
27
+ maxIteration: BigNumberish;
28
+ eps: BigNumberish;
29
+ };
30
+
31
+ export type ApproxParamsStructOutput = [
32
+ BigNumber,
33
+ BigNumber,
34
+ BigNumber,
35
+ BigNumber,
36
+ BigNumber
37
+ ] & {
38
+ guessMin: BigNumber;
39
+ guessMax: BigNumber;
40
+ guessOffchain: BigNumber;
41
+ maxIteration: BigNumber;
42
+ eps: BigNumber;
43
+ };
44
+
23
45
  export interface MarketMathStaticInterface extends utils.Interface {
24
46
  contractName: "MarketMathStatic";
25
47
  functions: {
26
48
  "addLiquidityDualSyAndPtStatic(address,uint256,uint256)": FunctionFragment;
49
+ "getDefaultApproxParams()": FunctionFragment;
27
50
  "getPtImpliedYield(address)": FunctionFragment;
28
51
  "removeLiquidityDualSyAndPtStatic(address,uint256)": FunctionFragment;
29
52
  };
@@ -32,6 +55,10 @@ export interface MarketMathStaticInterface extends utils.Interface {
32
55
  functionFragment: "addLiquidityDualSyAndPtStatic",
33
56
  values: [string, BigNumberish, BigNumberish]
34
57
  ): string;
58
+ encodeFunctionData(
59
+ functionFragment: "getDefaultApproxParams",
60
+ values?: undefined
61
+ ): string;
35
62
  encodeFunctionData(
36
63
  functionFragment: "getPtImpliedYield",
37
64
  values: [string]
@@ -45,6 +72,10 @@ export interface MarketMathStaticInterface extends utils.Interface {
45
72
  functionFragment: "addLiquidityDualSyAndPtStatic",
46
73
  data: BytesLike
47
74
  ): Result;
75
+ decodeFunctionResult(
76
+ functionFragment: "getDefaultApproxParams",
77
+ data: BytesLike
78
+ ): Result;
48
79
  decodeFunctionResult(
49
80
  functionFragment: "getPtImpliedYield",
50
81
  data: BytesLike
@@ -98,6 +129,10 @@ export interface MarketMathStatic extends BaseContract {
98
129
  }
99
130
  >;
100
131
 
132
+ getDefaultApproxParams(
133
+ overrides?: CallOverrides
134
+ ): Promise<[ApproxParamsStructOutput]>;
135
+
101
136
  getPtImpliedYield(
102
137
  market: string,
103
138
  overrides?: CallOverrides
@@ -125,6 +160,10 @@ export interface MarketMathStatic extends BaseContract {
125
160
  }
126
161
  >;
127
162
 
163
+ getDefaultApproxParams(
164
+ overrides?: CallOverrides
165
+ ): Promise<ApproxParamsStructOutput>;
166
+
128
167
  getPtImpliedYield(
129
168
  market: string,
130
169
  overrides?: CallOverrides
@@ -152,6 +191,10 @@ export interface MarketMathStatic extends BaseContract {
152
191
  }
153
192
  >;
154
193
 
194
+ getDefaultApproxParams(
195
+ overrides?: CallOverrides
196
+ ): Promise<ApproxParamsStructOutput>;
197
+
155
198
  getPtImpliedYield(
156
199
  market: string,
157
200
  overrides?: CallOverrides
@@ -176,6 +219,8 @@ export interface MarketMathStatic extends BaseContract {
176
219
  overrides?: CallOverrides
177
220
  ): Promise<BigNumber>;
178
221
 
222
+ getDefaultApproxParams(overrides?: CallOverrides): Promise<BigNumber>;
223
+
179
224
  getPtImpliedYield(
180
225
  market: string,
181
226
  overrides?: CallOverrides
@@ -196,6 +241,10 @@ export interface MarketMathStatic extends BaseContract {
196
241
  overrides?: CallOverrides
197
242
  ): Promise<PopulatedTransaction>;
198
243
 
244
+ getDefaultApproxParams(
245
+ overrides?: CallOverrides
246
+ ): Promise<PopulatedTransaction>;
247
+
199
248
  getPtImpliedYield(
200
249
  market: string,
201
250
  overrides?: CallOverrides
@@ -23,28 +23,6 @@ import type {
23
23
  OnEvent,
24
24
  } from "./common";
25
25
 
26
- export type ApproxParamsStruct = {
27
- guessMin: BigNumberish;
28
- guessMax: BigNumberish;
29
- guessOffchain: BigNumberish;
30
- maxIteration: BigNumberish;
31
- eps: BigNumberish;
32
- };
33
-
34
- export type ApproxParamsStructOutput = [
35
- BigNumber,
36
- BigNumber,
37
- BigNumber,
38
- BigNumber,
39
- BigNumber
40
- ] & {
41
- guessMin: BigNumber;
42
- guessMax: BigNumber;
43
- guessOffchain: BigNumber;
44
- maxIteration: BigNumber;
45
- eps: BigNumber;
46
- };
47
-
48
26
  export type MarketStateStruct = {
49
27
  totalPt: BigNumberish;
50
28
  totalSy: BigNumberish;
@@ -168,7 +146,6 @@ export interface RouterStaticInterface extends utils.Interface {
168
146
  "claimOwnership()": FunctionFragment;
169
147
  "getAmountTokenToMintSy(address,address,address,uint256)": FunctionFragment;
170
148
  "getBulkSellerInfo(address,address)": FunctionFragment;
171
- "getDefaultApproxParams()": FunctionFragment;
172
149
  "getExchangeRate(address)": FunctionFragment;
173
150
  "getMarketInfo(address)": FunctionFragment;
174
151
  "getPY(address)": FunctionFragment;
@@ -264,10 +241,6 @@ export interface RouterStaticInterface extends utils.Interface {
264
241
  functionFragment: "getBulkSellerInfo",
265
242
  values: [string, string]
266
243
  ): string;
267
- encodeFunctionData(
268
- functionFragment: "getDefaultApproxParams",
269
- values?: undefined
270
- ): string;
271
244
  encodeFunctionData(
272
245
  functionFragment: "getExchangeRate",
273
246
  values: [string]
@@ -491,10 +464,6 @@ export interface RouterStaticInterface extends utils.Interface {
491
464
  functionFragment: "getBulkSellerInfo",
492
465
  data: BytesLike
493
466
  ): Result;
494
- decodeFunctionResult(
495
- functionFragment: "getDefaultApproxParams",
496
- data: BytesLike
497
- ): Result;
498
467
  decodeFunctionResult(
499
468
  functionFragment: "getExchangeRate",
500
469
  data: BytesLike
@@ -840,10 +809,6 @@ export interface RouterStatic extends BaseContract {
840
809
  }
841
810
  >;
842
811
 
843
- getDefaultApproxParams(
844
- overrides?: CallOverrides
845
- ): Promise<[ApproxParamsStructOutput]>;
846
-
847
812
  getExchangeRate(
848
813
  market: string,
849
814
  overrides?: Overrides & { from?: string | Promise<string> }
@@ -1263,10 +1228,6 @@ export interface RouterStatic extends BaseContract {
1263
1228
  }
1264
1229
  >;
1265
1230
 
1266
- getDefaultApproxParams(
1267
- overrides?: CallOverrides
1268
- ): Promise<ApproxParamsStructOutput>;
1269
-
1270
1231
  getExchangeRate(
1271
1232
  market: string,
1272
1233
  overrides?: Overrides & { from?: string | Promise<string> }
@@ -1692,10 +1653,6 @@ export interface RouterStatic extends BaseContract {
1692
1653
  }
1693
1654
  >;
1694
1655
 
1695
- getDefaultApproxParams(
1696
- overrides?: CallOverrides
1697
- ): Promise<ApproxParamsStructOutput>;
1698
-
1699
1656
  getExchangeRate(
1700
1657
  market: string,
1701
1658
  overrides?: CallOverrides
@@ -2238,8 +2195,6 @@ export interface RouterStatic extends BaseContract {
2238
2195
  overrides?: CallOverrides
2239
2196
  ): Promise<BigNumber>;
2240
2197
 
2241
- getDefaultApproxParams(overrides?: CallOverrides): Promise<BigNumber>;
2242
-
2243
2198
  getExchangeRate(
2244
2199
  market: string,
2245
2200
  overrides?: Overrides & { from?: string | Promise<string> }
@@ -2600,10 +2555,6 @@ export interface RouterStatic extends BaseContract {
2600
2555
  overrides?: CallOverrides
2601
2556
  ): Promise<PopulatedTransaction>;
2602
2557
 
2603
- getDefaultApproxParams(
2604
- overrides?: CallOverrides
2605
- ): Promise<PopulatedTransaction>;
2606
-
2607
2558
  getExchangeRate(
2608
2559
  market: string,
2609
2560
  overrides?: Overrides & { from?: string | Promise<string> }