@pendle/core-v2 0.11.0-testnet → 0.11.2-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 (166) hide show
  1. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/PendleAaveV3SCY.sol/PendleAaveV3SCY.dbg.json +1 -1
  2. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/WadRayMath.sol/WadRayMath.dbg.json +1 -1
  3. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiSAvaxSCY.sol/PendleQiSAvaxSCY.dbg.json +1 -1
  4. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
  5. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenSCY.sol/PendleQiTokenSCY.dbg.json +1 -1
  6. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleSAvaxSCY.sol/PendleSAvaxSCY.dbg.json +1 -1
  7. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Euler/PendleEulerSCY.sol/PendleEulerSCY.dbg.json +1 -1
  8. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleERC4626SCY.sol/PendleERC4626SCY.dbg.json +1 -1
  9. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleStargateSCY.sol/PendleStargateSCY.dbg.json +1 -1
  10. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleWstEthSCY.sol/PendleWstEthSCY.dbg.json +1 -1
  11. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleYearnVaultSCY.sol/PendleYearnVaultSCY.dbg.json +1 -1
  12. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/TraderJoe/PendleSJoeSCY.sol/PendleSJoeSCY.dbg.json +1 -1
  13. package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBase.sol/SCYBase.dbg.json +1 -1
  14. package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBaseWithRewards.sol/SCYBaseWithRewards.dbg.json +1 -1
  15. package/build/artifacts/contracts/core/LiquidityMining/CelerAbstracts/CelerReceiverUpg.sol/CelerReceiverUpg.dbg.json +1 -1
  16. package/build/artifacts/contracts/core/LiquidityMining/CelerAbstracts/CelerSenderUpg.sol/CelerSenderUpg.dbg.json +1 -1
  17. package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/FeeDistributorVePendle.sol/FeeDistributorVePendle.dbg.json +4 -0
  18. package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/FeeDistributorVePendle.sol/FeeDistributorVePendle.json +188 -0
  19. package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/PendleFeeDistributorAbstract.sol/PendleFeeDistributorAbstract.dbg.json +4 -0
  20. package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/PendleFeeDistributorAbstract.sol/PendleFeeDistributorAbstract.json +164 -0
  21. package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/PendleFeeDistributorVoting.sol/PendleFeeDistributorVoting.dbg.json +4 -0
  22. package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/PendleFeeDistributorVoting.sol/PendleFeeDistributorVoting.json +206 -0
  23. package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/PendleFeeDistributorVotingFactory.sol/PendleFeeDistributorVotingFactory.dbg.json +4 -0
  24. package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/PendleFeeDistributorVotingFactory.sol/PendleFeeDistributorVotingFactory.json +149 -0
  25. package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
  26. package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
  27. package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +2 -2
  28. package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
  29. package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.json +2 -2
  30. package/build/artifacts/contracts/core/LiquidityMining/PendleGauge.sol/PendleGauge.dbg.json +1 -1
  31. package/build/artifacts/contracts/core/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
  32. package/build/artifacts/contracts/core/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +62 -14
  33. package/build/artifacts/contracts/core/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
  34. package/build/artifacts/contracts/core/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.json +192 -12
  35. package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
  36. package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +51 -8
  37. package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
  38. package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +2 -2
  39. package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
  40. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
  41. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
  42. package/build/artifacts/contracts/core/PendleERC20.sol/PendleERC20.dbg.json +1 -1
  43. package/build/artifacts/contracts/core/PendleRouter.sol/PendleRouter.dbg.json +1 -1
  44. package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
  45. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
  46. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
  47. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
  48. package/build/artifacts/contracts/core/actions/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
  49. package/build/artifacts/contracts/core/actions/ActionCallback.sol/ActionCallback.dbg.json +1 -1
  50. package/build/artifacts/contracts/core/actions/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
  51. package/build/artifacts/contracts/core/actions/ActionMisc.sol/ActionMisc.dbg.json +1 -1
  52. package/build/artifacts/contracts/core/actions/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
  53. package/build/artifacts/contracts/core/actions/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
  54. package/build/artifacts/contracts/core/actions/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +1 -1
  55. package/build/artifacts/contracts/core/actions/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
  56. package/build/artifacts/contracts/interfaces/IAToken.sol/IAToken.dbg.json +1 -1
  57. package/build/artifacts/contracts/interfaces/IAavePool.sol/IAavePool.dbg.json +1 -1
  58. package/build/artifacts/contracts/interfaces/IAaveRewardsController.sol/IAaveRewardsController.dbg.json +1 -1
  59. package/build/artifacts/contracts/interfaces/IBenQiComptroller.sol/IBenQiComptroller.dbg.json +1 -1
  60. package/build/artifacts/contracts/interfaces/IBenQiInterestRateModel.sol/IBenQiInterestRateModel.dbg.json +1 -1
  61. package/build/artifacts/contracts/interfaces/ICelerMessageBus.sol/ICelerMessageBus.dbg.json +1 -1
  62. package/build/artifacts/contracts/interfaces/ICelerMessageReceiverApp.sol/ICelerMessageReceiverApp.dbg.json +1 -1
  63. package/build/artifacts/contracts/interfaces/IERC4626.sol/IERC4626.dbg.json +1 -1
  64. package/build/artifacts/contracts/interfaces/IEulerEToken.sol/IEulerEToken.dbg.json +1 -1
  65. package/build/artifacts/contracts/interfaces/IEulerMarkets.sol/IEulerMarkets.dbg.json +1 -1
  66. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
  67. package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
  68. package/build/artifacts/contracts/interfaces/IPActionMisc.sol/IPActionMisc.dbg.json +1 -1
  69. package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
  70. package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
  71. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
  72. package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.dbg.json +4 -0
  73. package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.json +151 -0
  74. package/build/artifacts/contracts/interfaces/IPGauge.sol/IPGauge.dbg.json +1 -1
  75. package/build/artifacts/contracts/interfaces/IPGaugeController.sol/IPGaugeController.dbg.json +1 -1
  76. package/build/artifacts/contracts/interfaces/IPGaugeControllerMainchain.sol/IPGaugeControllerMainchain.dbg.json +1 -1
  77. package/build/artifacts/contracts/interfaces/IPInterestManagerYT.sol/IPInterestManagerYT.dbg.json +1 -1
  78. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
  79. package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.dbg.json +1 -1
  80. package/build/artifacts/contracts/interfaces/IPMarketSwapCallback.sol/IPMarketSwapCallback.dbg.json +1 -1
  81. package/build/artifacts/contracts/interfaces/IPPrincipalToken.sol/IPPrincipalToken.dbg.json +1 -1
  82. package/build/artifacts/contracts/interfaces/IPVeToken.sol/IPVeToken.dbg.json +1 -1
  83. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
  84. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.json +124 -0
  85. package/build/artifacts/contracts/interfaces/IPVotingEscrow.sol/IPVotingEscrow.dbg.json +1 -1
  86. package/build/artifacts/contracts/interfaces/IPVotingEscrow.sol/IPVotingEscrow.json +86 -0
  87. package/build/artifacts/contracts/interfaces/IPYieldContractFactory.sol/IPYieldContractFactory.dbg.json +1 -1
  88. package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.dbg.json +1 -1
  89. package/build/artifacts/contracts/interfaces/IQiAvax.sol/IQiAvax.dbg.json +1 -1
  90. package/build/artifacts/contracts/interfaces/IQiErc20.sol/IQiErc20.dbg.json +1 -1
  91. package/build/artifacts/contracts/interfaces/IQiToken.sol/IQiToken.dbg.json +1 -1
  92. package/build/artifacts/contracts/interfaces/IRewardManager.sol/IRewardManager.dbg.json +1 -1
  93. package/build/artifacts/contracts/interfaces/ISAvax.sol/ISAvax.dbg.json +1 -1
  94. package/build/artifacts/contracts/interfaces/ISJoe.sol/ISJoe.dbg.json +1 -1
  95. package/build/artifacts/contracts/interfaces/IStETH.sol/IStETH.dbg.json +1 -1
  96. package/build/artifacts/contracts/interfaces/IStargateLPStaking.sol/IStargateLPStaking.dbg.json +1 -1
  97. package/build/artifacts/contracts/interfaces/IStargatePool.sol/IStargatePool.dbg.json +1 -1
  98. package/build/artifacts/contracts/interfaces/IStargateRouter.sol/IStargateRouter.dbg.json +1 -1
  99. package/build/artifacts/contracts/interfaces/ISuperComposableYield.sol/ISuperComposableYield.dbg.json +1 -1
  100. package/build/artifacts/contracts/interfaces/IWAvax.sol/IWAvax.dbg.json +1 -1
  101. package/build/artifacts/contracts/interfaces/IWETH.sol/IWETH.dbg.json +1 -1
  102. package/build/artifacts/contracts/interfaces/IWstETH.sol/IWstETH.dbg.json +1 -1
  103. package/build/artifacts/contracts/interfaces/IYearnVault.sol/IYearnVault.dbg.json +1 -1
  104. package/build/artifacts/contracts/libraries/OracleLib.sol/OracleLib.dbg.json +1 -1
  105. package/build/artifacts/contracts/libraries/RewardManager.sol/RewardManager.dbg.json +1 -1
  106. package/build/artifacts/contracts/libraries/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
  107. package/build/artifacts/contracts/libraries/SCY/SCYUtils.sol/SCYUtils.dbg.json +1 -1
  108. package/build/artifacts/contracts/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
  109. package/build/artifacts/contracts/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
  110. package/build/artifacts/contracts/libraries/VeHistoryLib.sol/Checkpoints.json +2 -2
  111. package/build/artifacts/contracts/libraries/helpers/ArrayLib.sol/ArrayLib.dbg.json +1 -1
  112. package/build/artifacts/contracts/libraries/helpers/ExpiryUtilsLib.sol/ExpiryUtils.dbg.json +1 -1
  113. package/build/artifacts/contracts/libraries/helpers/MiniHelpers.sol/MiniHelpers.dbg.json +1 -1
  114. package/build/artifacts/contracts/libraries/helpers/PYIndex.sol/PYIndexLib.dbg.json +1 -1
  115. package/build/artifacts/contracts/libraries/helpers/SSTORE2Deployer.sol/SSTORE2Deployer.dbg.json +1 -1
  116. package/build/artifacts/contracts/libraries/helpers/TokenHelper.sol/TokenHelper.dbg.json +1 -1
  117. package/build/artifacts/contracts/libraries/kyberswap/KyberSwapHelper.sol/KyberSwapHelper.dbg.json +1 -1
  118. package/build/artifacts/contracts/libraries/math/LogExpMath.sol/LogExpMath.dbg.json +1 -1
  119. package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
  120. package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
  121. package/build/artifacts/contracts/libraries/math/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
  122. package/build/artifacts/contracts/libraries/math/Math.sol/Math.dbg.json +1 -1
  123. package/build/artifacts/contracts/libraries/math/WeekMath.sol/WeekMath.dbg.json +1 -1
  124. package/build/artifacts/contracts/libraries/math/WeekMath.sol/WeekMath.json +2 -2
  125. package/build/artifacts/contracts/libraries/solmate/SSTORE2.sol/SSTORE2.dbg.json +1 -1
  126. package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.dbg.json +1 -1
  127. package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.dbg.json +1 -1
  128. package/build/artifacts/contracts/periphery/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeable.dbg.json +1 -1
  129. package/build/artifacts/contracts/periphery/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeableData.dbg.json +1 -1
  130. package/contracts/core/actions/base/ActionBaseMintRedeem.sol +1 -0
  131. package/contracts/interfaces/IPGauge.sol +2 -0
  132. package/deployments/43113-core.json +1 -1
  133. package/package.json +1 -1
  134. package/typechain-types/FeeDistributorAbstract.ts +240 -0
  135. package/typechain-types/FeeDistributorVePendle.ts +302 -0
  136. package/typechain-types/FeeDistributorVoting.ts +272 -0
  137. package/typechain-types/FeeDistributorVotingFactory.ts +293 -0
  138. package/typechain-types/IPFeeDistributor.ts +270 -0
  139. package/typechain-types/IPVotingController.ts +205 -7
  140. package/typechain-types/IPVotingControllerStorage.ts +169 -0
  141. package/typechain-types/IPVotingEscrow.ts +117 -0
  142. package/typechain-types/PendleFeeDistributorAbstract.ts +289 -0
  143. package/typechain-types/PendleFeeDistributorVoting.ts +321 -0
  144. package/typechain-types/PendleFeeDistributorVotingFactory.ts +294 -0
  145. package/typechain-types/PendleVotingControllerUpg.ts +73 -24
  146. package/typechain-types/VotingControllerStorageUpg.ts +207 -27
  147. package/typechain-types/VotingEscrowPendleMainchain.ts +57 -13
  148. package/typechain-types/factories/FeeDistributorAbstract__factory.ts +127 -0
  149. package/typechain-types/factories/FeeDistributorVePendle__factory.ts +250 -0
  150. package/typechain-types/factories/FeeDistributorVotingFactory__factory.ts +211 -0
  151. package/typechain-types/factories/FeeDistributorVoting__factory.ts +219 -0
  152. package/typechain-types/factories/IPFeeDistributor__factory.ts +166 -0
  153. package/typechain-types/factories/IPVotingControllerStorage__factory.ts +107 -0
  154. package/typechain-types/factories/IPVotingController__factory.ts +124 -0
  155. package/typechain-types/factories/IPVotingEscrow__factory.ts +86 -0
  156. package/typechain-types/factories/PendleFeeDistributorAbstract__factory.ts +183 -0
  157. package/typechain-types/factories/PendleFeeDistributorVotingFactory__factory.ts +213 -0
  158. package/typechain-types/factories/PendleFeeDistributorVoting__factory.ts +275 -0
  159. package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +1 -1
  160. package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +1 -1
  161. package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +61 -13
  162. package/typechain-types/factories/VotingControllerStorageUpg__factory.ts +192 -12
  163. package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +50 -7
  164. package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +1 -1
  165. package/typechain-types/hardhat.d.ts +54 -0
  166. package/typechain-types/index.ts +12 -0
@@ -30,6 +30,16 @@ export type VeBalanceStructOutput = [BigNumber, BigNumber] & {
30
30
  slope: BigNumber;
31
31
  };
32
32
 
33
+ export type CheckpointStruct = {
34
+ timestamp: BigNumberish;
35
+ value: VeBalanceStruct;
36
+ };
37
+
38
+ export type CheckpointStructOutput = [BigNumber, VeBalanceStructOutput] & {
39
+ timestamp: BigNumber;
40
+ value: VeBalanceStructOutput;
41
+ };
42
+
33
43
  export interface VotingEscrowPendleMainchainInterface extends utils.Interface {
34
44
  contractName: "VotingEscrowPendleMainchain";
35
45
  functions: {
@@ -45,7 +55,8 @@ export interface VotingEscrowPendleMainchainInterface extends utils.Interface {
45
55
  "getAllDestinationContracts()": FunctionFragment;
46
56
  "getBroadcastPositionFee(uint256[])": FunctionFragment;
47
57
  "getBroadcastSupplyFee(uint256[])": FunctionFragment;
48
- "getUserVeBalanceAt(address,uint128)": FunctionFragment;
58
+ "getUserHistoryAt(address,uint256)": FunctionFragment;
59
+ "getUserHistoryLength(address)": FunctionFragment;
49
60
  "increaseLockPosition(uint128,uint128)": FunctionFragment;
50
61
  "increaseLockPositionAndBroadcast(uint128,uint128,uint256[])": FunctionFragment;
51
62
  "initialize()": FunctionFragment;
@@ -107,9 +118,13 @@ export interface VotingEscrowPendleMainchainInterface extends utils.Interface {
107
118
  values: [BigNumberish[]]
108
119
  ): string;
109
120
  encodeFunctionData(
110
- functionFragment: "getUserVeBalanceAt",
121
+ functionFragment: "getUserHistoryAt",
111
122
  values: [string, BigNumberish]
112
123
  ): string;
124
+ encodeFunctionData(
125
+ functionFragment: "getUserHistoryLength",
126
+ values: [string]
127
+ ): string;
113
128
  encodeFunctionData(
114
129
  functionFragment: "increaseLockPosition",
115
130
  values: [BigNumberish, BigNumberish]
@@ -209,7 +224,11 @@ export interface VotingEscrowPendleMainchainInterface extends utils.Interface {
209
224
  data: BytesLike
210
225
  ): Result;
211
226
  decodeFunctionResult(
212
- functionFragment: "getUserVeBalanceAt",
227
+ functionFragment: "getUserHistoryAt",
228
+ data: BytesLike
229
+ ): Result;
230
+ decodeFunctionResult(
231
+ functionFragment: "getUserHistoryLength",
213
232
  data: BytesLike
214
233
  ): Result;
215
234
  decodeFunctionResult(
@@ -393,9 +412,14 @@ export interface VotingEscrowPendleMainchain extends BaseContract {
393
412
  overrides?: CallOverrides
394
413
  ): Promise<[BigNumber]>;
395
414
 
396
- getUserVeBalanceAt(
415
+ getUserHistoryAt(
416
+ user: string,
417
+ index: BigNumberish,
418
+ overrides?: CallOverrides
419
+ ): Promise<[CheckpointStructOutput]>;
420
+
421
+ getUserHistoryLength(
397
422
  user: string,
398
- timestamp: BigNumberish,
399
423
  overrides?: CallOverrides
400
424
  ): Promise<[BigNumber]>;
401
425
 
@@ -516,9 +540,14 @@ export interface VotingEscrowPendleMainchain extends BaseContract {
516
540
  overrides?: CallOverrides
517
541
  ): Promise<BigNumber>;
518
542
 
519
- getUserVeBalanceAt(
543
+ getUserHistoryAt(
544
+ user: string,
545
+ index: BigNumberish,
546
+ overrides?: CallOverrides
547
+ ): Promise<CheckpointStructOutput>;
548
+
549
+ getUserHistoryLength(
520
550
  user: string,
521
- timestamp: BigNumberish,
522
551
  overrides?: CallOverrides
523
552
  ): Promise<BigNumber>;
524
553
 
@@ -635,9 +664,14 @@ export interface VotingEscrowPendleMainchain extends BaseContract {
635
664
  overrides?: CallOverrides
636
665
  ): Promise<BigNumber>;
637
666
 
638
- getUserVeBalanceAt(
667
+ getUserHistoryAt(
668
+ user: string,
669
+ index: BigNumberish,
670
+ overrides?: CallOverrides
671
+ ): Promise<CheckpointStructOutput>;
672
+
673
+ getUserHistoryLength(
639
674
  user: string,
640
- timestamp: BigNumberish,
641
675
  overrides?: CallOverrides
642
676
  ): Promise<BigNumber>;
643
677
 
@@ -795,9 +829,14 @@ export interface VotingEscrowPendleMainchain extends BaseContract {
795
829
  overrides?: CallOverrides
796
830
  ): Promise<BigNumber>;
797
831
 
798
- getUserVeBalanceAt(
832
+ getUserHistoryAt(
833
+ user: string,
834
+ index: BigNumberish,
835
+ overrides?: CallOverrides
836
+ ): Promise<BigNumber>;
837
+
838
+ getUserHistoryLength(
799
839
  user: string,
800
- timestamp: BigNumberish,
801
840
  overrides?: CallOverrides
802
841
  ): Promise<BigNumber>;
803
842
 
@@ -915,9 +954,14 @@ export interface VotingEscrowPendleMainchain extends BaseContract {
915
954
  overrides?: CallOverrides
916
955
  ): Promise<PopulatedTransaction>;
917
956
 
918
- getUserVeBalanceAt(
957
+ getUserHistoryAt(
958
+ user: string,
959
+ index: BigNumberish,
960
+ overrides?: CallOverrides
961
+ ): Promise<PopulatedTransaction>;
962
+
963
+ getUserHistoryLength(
919
964
  user: string,
920
- timestamp: BigNumberish,
921
965
  overrides?: CallOverrides
922
966
  ): Promise<PopulatedTransaction>;
923
967
 
@@ -0,0 +1,127 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import { Provider } from "@ethersproject/providers";
7
+ import type {
8
+ FeeDistributorAbstract,
9
+ FeeDistributorAbstractInterface,
10
+ } from "../FeeDistributorAbstract";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [
15
+ {
16
+ internalType: "address",
17
+ name: "user",
18
+ type: "address",
19
+ },
20
+ {
21
+ internalType: "address",
22
+ name: "rewardToken",
23
+ type: "address",
24
+ },
25
+ ],
26
+ name: "claimReward",
27
+ outputs: [
28
+ {
29
+ internalType: "uint256",
30
+ name: "amountRewardOut",
31
+ type: "uint256",
32
+ },
33
+ ],
34
+ stateMutability: "nonpayable",
35
+ type: "function",
36
+ },
37
+ {
38
+ inputs: [],
39
+ name: "deployedEpoch",
40
+ outputs: [
41
+ {
42
+ internalType: "uint256",
43
+ name: "",
44
+ type: "uint256",
45
+ },
46
+ ],
47
+ stateMutability: "view",
48
+ type: "function",
49
+ },
50
+ {
51
+ inputs: [
52
+ {
53
+ internalType: "address",
54
+ name: "rewardToken",
55
+ type: "address",
56
+ },
57
+ {
58
+ internalType: "uint256",
59
+ name: "amount",
60
+ type: "uint256",
61
+ },
62
+ {
63
+ internalType: "uint256",
64
+ name: "numEpoch",
65
+ type: "uint256",
66
+ },
67
+ ],
68
+ name: "fund",
69
+ outputs: [],
70
+ stateMutability: "nonpayable",
71
+ type: "function",
72
+ },
73
+ {
74
+ inputs: [
75
+ {
76
+ internalType: "uint256",
77
+ name: "",
78
+ type: "uint256",
79
+ },
80
+ {
81
+ internalType: "address",
82
+ name: "",
83
+ type: "address",
84
+ },
85
+ ],
86
+ name: "incentivesForEpoch",
87
+ outputs: [
88
+ {
89
+ internalType: "uint256",
90
+ name: "",
91
+ type: "uint256",
92
+ },
93
+ ],
94
+ stateMutability: "view",
95
+ type: "function",
96
+ },
97
+ {
98
+ inputs: [
99
+ {
100
+ internalType: "address",
101
+ name: "user",
102
+ type: "address",
103
+ },
104
+ ],
105
+ name: "updateUserShare",
106
+ outputs: [],
107
+ stateMutability: "nonpayable",
108
+ type: "function",
109
+ },
110
+ ];
111
+
112
+ export class FeeDistributorAbstract__factory {
113
+ static readonly abi = _abi;
114
+ static createInterface(): FeeDistributorAbstractInterface {
115
+ return new utils.Interface(_abi) as FeeDistributorAbstractInterface;
116
+ }
117
+ static connect(
118
+ address: string,
119
+ signerOrProvider: Signer | Provider
120
+ ): FeeDistributorAbstract {
121
+ return new Contract(
122
+ address,
123
+ _abi,
124
+ signerOrProvider
125
+ ) as FeeDistributorAbstract;
126
+ }
127
+ }
@@ -0,0 +1,250 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
5
+ import { Provider, TransactionRequest } from "@ethersproject/providers";
6
+ import type {
7
+ FeeDistributorVePendle,
8
+ FeeDistributorVePendleInterface,
9
+ } from "../FeeDistributorVePendle";
10
+
11
+ const _abi = [
12
+ {
13
+ inputs: [
14
+ {
15
+ internalType: "address",
16
+ name: "_vePendle",
17
+ type: "address",
18
+ },
19
+ ],
20
+ stateMutability: "nonpayable",
21
+ type: "constructor",
22
+ },
23
+ {
24
+ anonymous: false,
25
+ inputs: [
26
+ {
27
+ indexed: true,
28
+ internalType: "address",
29
+ name: "user",
30
+ type: "address",
31
+ },
32
+ {
33
+ indexed: true,
34
+ internalType: "address",
35
+ name: "rewardToken",
36
+ type: "address",
37
+ },
38
+ {
39
+ indexed: false,
40
+ internalType: "uint256",
41
+ name: "lastEpochClaimed",
42
+ type: "uint256",
43
+ },
44
+ {
45
+ indexed: false,
46
+ internalType: "uint256",
47
+ name: "totalReward",
48
+ type: "uint256",
49
+ },
50
+ ],
51
+ name: "ClaimReward",
52
+ type: "event",
53
+ },
54
+ {
55
+ anonymous: false,
56
+ inputs: [
57
+ {
58
+ indexed: true,
59
+ internalType: "address",
60
+ name: "rewardToken",
61
+ type: "address",
62
+ },
63
+ {
64
+ indexed: false,
65
+ internalType: "uint256",
66
+ name: "numEpoch",
67
+ type: "uint256",
68
+ },
69
+ {
70
+ indexed: false,
71
+ internalType: "uint256",
72
+ name: "incentiveForEach",
73
+ type: "uint256",
74
+ },
75
+ ],
76
+ name: "Fund",
77
+ type: "event",
78
+ },
79
+ {
80
+ inputs: [
81
+ {
82
+ internalType: "address",
83
+ name: "user",
84
+ type: "address",
85
+ },
86
+ {
87
+ internalType: "address",
88
+ name: "rewardToken",
89
+ type: "address",
90
+ },
91
+ ],
92
+ name: "claimReward",
93
+ outputs: [
94
+ {
95
+ internalType: "uint256",
96
+ name: "amountRewardOut",
97
+ type: "uint256",
98
+ },
99
+ ],
100
+ stateMutability: "nonpayable",
101
+ type: "function",
102
+ },
103
+ {
104
+ inputs: [],
105
+ name: "deployedEpoch",
106
+ outputs: [
107
+ {
108
+ internalType: "uint256",
109
+ name: "",
110
+ type: "uint256",
111
+ },
112
+ ],
113
+ stateMutability: "view",
114
+ type: "function",
115
+ },
116
+ {
117
+ inputs: [
118
+ {
119
+ internalType: "address",
120
+ name: "rewardToken",
121
+ type: "address",
122
+ },
123
+ {
124
+ internalType: "uint256",
125
+ name: "amount",
126
+ type: "uint256",
127
+ },
128
+ {
129
+ internalType: "uint256",
130
+ name: "numEpoch",
131
+ type: "uint256",
132
+ },
133
+ ],
134
+ name: "fund",
135
+ outputs: [],
136
+ stateMutability: "nonpayable",
137
+ type: "function",
138
+ },
139
+ {
140
+ inputs: [
141
+ {
142
+ internalType: "uint256",
143
+ name: "",
144
+ type: "uint256",
145
+ },
146
+ {
147
+ internalType: "address",
148
+ name: "",
149
+ type: "address",
150
+ },
151
+ ],
152
+ name: "incentivesForEpoch",
153
+ outputs: [
154
+ {
155
+ internalType: "uint256",
156
+ name: "",
157
+ type: "uint256",
158
+ },
159
+ ],
160
+ stateMutability: "view",
161
+ type: "function",
162
+ },
163
+ {
164
+ inputs: [
165
+ {
166
+ internalType: "address",
167
+ name: "user",
168
+ type: "address",
169
+ },
170
+ ],
171
+ name: "updateUserShare",
172
+ outputs: [],
173
+ stateMutability: "nonpayable",
174
+ type: "function",
175
+ },
176
+ {
177
+ inputs: [],
178
+ name: "vePendle",
179
+ outputs: [
180
+ {
181
+ internalType: "address",
182
+ name: "",
183
+ type: "address",
184
+ },
185
+ ],
186
+ stateMutability: "view",
187
+ type: "function",
188
+ },
189
+ ];
190
+
191
+ const _bytecode =
192
+ "0x60c06040523480156200001157600080fd5b50604051620013013803806200130183398101604081905262000034916200009d565b620000496200006760201b620004211760201c565b6001600160801b03166080526001600160a01b031660a05262000142565b6000620000744262000079565b905090565b600062093a806200008b8184620000cf565b62000097919062000104565b92915050565b600060208284031215620000b057600080fd5b81516001600160a01b0381168114620000c857600080fd5b9392505050565b60006001600160801b0383811680620000f857634e487b7160e01b600052601260045260246000fd5b92169190910492915050565b60006001600160801b03828116848216811515828404821116156200013957634e487b7160e01b600052601160045260246000fd5b02949350505050565b60805160a051611171620001906000396000818160a7015281816104a4015281816107a30152818161095401526109e901526000818160db0152818161029b015261057901526111716000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c80630af6ce85146100675780634953c7821461007c57806382dabb21146100a25780639cb8d634146100d6578063ad2ee5f5146100fd578063edf0923214610110575b600080fd5b61007a610075366004610d38565b61013b565b005b61008f61008a366004610d6b565b61022f565b6040519081526020015b60405180910390f35b6100c97f000000000000000000000000000000000000000000000000000000000000000081565b6040516100999190610d9e565b61008f7f000000000000000000000000000000000000000000000000000000000000000081565b61007a61010b366004610db2565b610415565b61008f61011e366004610dcd565b600360209081526000928352604080842090915290825290205481565b600062093a80610149610421565b6101539190610e06565b6001600160801b03169050600061016a8385610e47565b905060005b838110156101ce5760008381526003602090815260408083206001600160a01b038a168452909152812080548492906101a9908490610e5b565b909155506101bc905062093a8084610e5b565b92506101c781610e73565b905061016f565b506101e46001600160a01b038616333087610431565b60408051848152602081018390526001600160a01b038716917fd5321498ebef1d048889992d8457d0f50576d300db1fd93488480c1f57a65601910160405180910390a25050505050565b60006102396104a2565b61024283610526565b600061024c610421565b6001600160a01b038086166000908152600160209081526040808320938816835292905220549091506001600160801b03821681036102905760009250505061040f565b806000036102bb57507f00000000000000000000000000000000000000000000000000000000000000005b816001600160801b031681101561036f576102d962093a8082610e5b565b6001600160a01b038616600090815260026020908152604080832084845290915281205491925081900361030d57506102bb565b60008281526003602090815260408083206001600160a01b03891684529091528120549081900361033f5750506102bb565b61034883610766565b6103528284610e8c565b61035c9190610e47565b6103669086610e5b565b945050506102bb565b6001600160a01b0380861660009081526001602090815260408083209388168352929052206001600160801b038316905582156103ba576103ba6001600160a01b0385168685610825565b604080516001600160801b0384168152602081018590526001600160a01b0380871692908816917ffe7c5fc89da23a432c91f264decb100ab9d08ab7b14650c3cdb9b6b4f84a60e9910160405180910390a350505b92915050565b61041e81610526565b50565b600061042c42610849565b905090565b6040516001600160a01b038085166024830152831660448201526064810182905261049c9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610863565b50505050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166330d981af6040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610502573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061041e9190610ec2565b6000610530610421565b6001600160a01b0383166000908152602081905260409020549091506001600160801b03908116908216810361056557505050565b806001600160801b031660000361059957507f00000000000000000000000000000000000000000000000000000000000000005b60006105a48461093a565b9050806000036105e95750506001600160a01b0391909116600090815260208190526040902080546001600160801b0319166001600160801b03909216919091179055565b6001600160a01b038416600090815260208190526040812054600160801b90046001600160801b03169061061d86836109ca565b9050610627610ccd565b83610633846001610e06565b6001600160801b031610156106625761065f87610651856001610e06565b6001600160801b03166109ca565b90505b856001600160801b0316856001600160801b031610156107125761068962093a8086610e06565b945061069987858585858a610a68565b925081600001516001600160801b0316856001600160801b03161061070d5760208201516000906106ca9087610af5565b6001600160801b03169050801561070b576001600160a01b03881660009081526002602090815260408083206001600160801b038a16845290915290208190555b505b610662565b50506040805180820182526001600160801b03958616815291851660208084019182526001600160a01b039097166000908152968790529520905194518416600160801b0294909316939093179091555050565b600061077961077483610b13565b610b2d565b61078557610785610edd565b60405163947975d960e01b81526001600160801b03831660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063947975d990602401602060405180830381865afa1580156107f2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108169190610ec2565b6001600160801b031692915050565b6108448363a9059cbb60e01b8484604051602401610465929190610ef3565b505050565b600062093a806108598184610f0c565b61040f9190610f32565b60006108b8826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610b4c9092919063ffffffff16565b80519091501561084457808060200190518101906108d69190610f61565b6108445760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084015b60405180910390fd5b60405163fc367c6160e01b81526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063fc367c6190610989908590600401610d9e565b602060405180830381865afa1580156109a6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061040f9190610f83565b6109d2610ccd565b604051637c386c7160e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690637c386c7190610a209086908690600401610ef3565b606060405180830381865afa158015610a3d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a619190610fd2565b9392505050565b60005b85610a77866001610e06565b6001600160801b0316108015610aa3575082600001516001600160801b0316826001600160801b031610155b15610aea5782935085856002610ab99190610e06565b6001600160801b03161015610ada57610ad787610651876002610e06565b92505b610ae385611044565b9450610a6b565b509295945050505050565b6000818360200151610b079190610f32565b8351610a619190611072565b60006001600160801b03821115610b2957600080fd5b5090565b6000610b3c62093a808361109a565b6001600160801b03161592915050565b6060610b5b8484600085610b63565b949350505050565b606082471015610bc45760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610931565b6001600160a01b0385163b610c1b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610931565b600080866001600160a01b03168587604051610c3791906110ec565b60006040518083038185875af1925050503d8060008114610c74576040519150601f19603f3d011682016040523d82523d6000602084013e610c79565b606091505b5091509150610c89828286610c94565b979650505050505050565b60608315610ca3575081610a61565b825115610cb35782518084602001fd5b8160405162461bcd60e51b81526004016109319190611108565b604051806040016040528060006001600160801b03168152602001610d17604051806040016040528060006001600160801b0316815260200160006001600160801b031681525090565b905290565b80356001600160a01b0381168114610d3357600080fd5b919050565b600080600060608486031215610d4d57600080fd5b610d5684610d1c565b95602085013595506040909401359392505050565b60008060408385031215610d7e57600080fd5b610d8783610d1c565b9150610d9560208401610d1c565b90509250929050565b6001600160a01b0391909116815260200190565b600060208284031215610dc457600080fd5b610a6182610d1c565b60008060408385031215610de057600080fd5b82359150610d9560208401610d1c565b634e487b7160e01b600052601160045260246000fd5b60006001600160801b03828116848216808303821115610e2857610e28610df0565b01949350505050565b634e487b7160e01b600052601260045260246000fd5b600082610e5657610e56610e31565b500490565b60008219821115610e6e57610e6e610df0565b500190565b600060018201610e8557610e85610df0565b5060010190565b6000816000190483118215151615610ea657610ea6610df0565b500290565b80516001600160801b0381168114610d3357600080fd5b600060208284031215610ed457600080fd5b610a6182610eab565b634e487b7160e01b600052600160045260246000fd5b6001600160a01b03929092168252602082015260400190565b60006001600160801b0383811680610f2657610f26610e31565b92169190910492915050565b60006001600160801b0382811684821681151582840482111615610f5857610f58610df0565b02949350505050565b600060208284031215610f7357600080fd5b81518015158114610a6157600080fd5b600060208284031215610f9557600080fd5b5051919050565b604080519081016001600160401b0381118282101715610fcc57634e487b7160e01b600052604160045260246000fd5b60405290565b60008183036060811215610fe557600080fd5b610fed610f9c565b610ff684610eab565b81526040601f198301121561100a57600080fd5b611012610f9c565b915061102060208501610eab565b825261102e60408501610eab565b6020830152816020820152809250505092915050565b60006001600160801b038281166002600160801b0319810161106857611068610df0565b6001019392505050565b60006001600160801b038381169083168181101561109257611092610df0565b039392505050565b60006001600160801b03838116806110b4576110b4610e31565b92169190910692915050565b60005b838110156110db5781810151838201526020016110c3565b8381111561049c5750506000910152565b600082516110fe8184602087016110c0565b9190910192915050565b60208152600082518060208401526111278160408501602087016110c0565b601f01601f1916919091016040019291505056fea26469706673582212201f1dfa8dc0b5f51d05c3aca7182a9039dda5c27bb0cd42c5a0c27f21dd2ab2e564736f6c634300080f0033";
193
+
194
+ type FeeDistributorVePendleConstructorParams =
195
+ | [signer?: Signer]
196
+ | ConstructorParameters<typeof ContractFactory>;
197
+
198
+ const isSuperArgs = (
199
+ xs: FeeDistributorVePendleConstructorParams
200
+ ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
201
+
202
+ export class FeeDistributorVePendle__factory extends ContractFactory {
203
+ constructor(...args: FeeDistributorVePendleConstructorParams) {
204
+ if (isSuperArgs(args)) {
205
+ super(...args);
206
+ } else {
207
+ super(_abi, _bytecode, args[0]);
208
+ }
209
+ this.contractName = "FeeDistributorVePendle";
210
+ }
211
+
212
+ deploy(
213
+ _vePendle: string,
214
+ overrides?: Overrides & { from?: string | Promise<string> }
215
+ ): Promise<FeeDistributorVePendle> {
216
+ return super.deploy(
217
+ _vePendle,
218
+ overrides || {}
219
+ ) as Promise<FeeDistributorVePendle>;
220
+ }
221
+ getDeployTransaction(
222
+ _vePendle: string,
223
+ overrides?: Overrides & { from?: string | Promise<string> }
224
+ ): TransactionRequest {
225
+ return super.getDeployTransaction(_vePendle, overrides || {});
226
+ }
227
+ attach(address: string): FeeDistributorVePendle {
228
+ return super.attach(address) as FeeDistributorVePendle;
229
+ }
230
+ connect(signer: Signer): FeeDistributorVePendle__factory {
231
+ return super.connect(signer) as FeeDistributorVePendle__factory;
232
+ }
233
+ static readonly contractName: "FeeDistributorVePendle";
234
+ public readonly contractName: "FeeDistributorVePendle";
235
+ static readonly bytecode = _bytecode;
236
+ static readonly abi = _abi;
237
+ static createInterface(): FeeDistributorVePendleInterface {
238
+ return new utils.Interface(_abi) as FeeDistributorVePendleInterface;
239
+ }
240
+ static connect(
241
+ address: string,
242
+ signerOrProvider: Signer | Provider
243
+ ): FeeDistributorVePendle {
244
+ return new Contract(
245
+ address,
246
+ _abi,
247
+ signerOrProvider
248
+ ) as FeeDistributorVePendle;
249
+ }
250
+ }