@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
@@ -0,0 +1,107 @@
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
+ IPVotingControllerStorage,
9
+ IPVotingControllerStorageInterface,
10
+ } from "../IPVotingControllerStorage";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [
15
+ {
16
+ internalType: "address",
17
+ name: "user",
18
+ type: "address",
19
+ },
20
+ {
21
+ internalType: "address",
22
+ name: "pool",
23
+ type: "address",
24
+ },
25
+ {
26
+ internalType: "uint256",
27
+ name: "index",
28
+ type: "uint256",
29
+ },
30
+ ],
31
+ name: "getUserPoolHistoryAt",
32
+ outputs: [
33
+ {
34
+ components: [
35
+ {
36
+ internalType: "uint128",
37
+ name: "timestamp",
38
+ type: "uint128",
39
+ },
40
+ {
41
+ components: [
42
+ {
43
+ internalType: "uint128",
44
+ name: "bias",
45
+ type: "uint128",
46
+ },
47
+ {
48
+ internalType: "uint128",
49
+ name: "slope",
50
+ type: "uint128",
51
+ },
52
+ ],
53
+ internalType: "struct VeBalance",
54
+ name: "value",
55
+ type: "tuple",
56
+ },
57
+ ],
58
+ internalType: "struct Checkpoint",
59
+ name: "",
60
+ type: "tuple",
61
+ },
62
+ ],
63
+ stateMutability: "view",
64
+ type: "function",
65
+ },
66
+ {
67
+ inputs: [
68
+ {
69
+ internalType: "address",
70
+ name: "user",
71
+ type: "address",
72
+ },
73
+ {
74
+ internalType: "address",
75
+ name: "pool",
76
+ type: "address",
77
+ },
78
+ ],
79
+ name: "getUserPoolHistoryLength",
80
+ outputs: [
81
+ {
82
+ internalType: "uint256",
83
+ name: "",
84
+ type: "uint256",
85
+ },
86
+ ],
87
+ stateMutability: "view",
88
+ type: "function",
89
+ },
90
+ ];
91
+
92
+ export class IPVotingControllerStorage__factory {
93
+ static readonly abi = _abi;
94
+ static createInterface(): IPVotingControllerStorageInterface {
95
+ return new utils.Interface(_abi) as IPVotingControllerStorageInterface;
96
+ }
97
+ static connect(
98
+ address: string,
99
+ signerOrProvider: Signer | Provider
100
+ ): IPVotingControllerStorage {
101
+ return new Contract(
102
+ address,
103
+ _abi,
104
+ signerOrProvider
105
+ ) as IPVotingControllerStorage;
106
+ }
107
+ }
@@ -129,6 +129,130 @@ const _abi = [
129
129
  name: "Vote",
130
130
  type: "event",
131
131
  },
132
+ {
133
+ inputs: [
134
+ {
135
+ internalType: "address",
136
+ name: "pool",
137
+ type: "address",
138
+ },
139
+ ],
140
+ name: "applyPoolSlopeChanges",
141
+ outputs: [],
142
+ stateMutability: "nonpayable",
143
+ type: "function",
144
+ },
145
+ {
146
+ inputs: [
147
+ {
148
+ internalType: "address",
149
+ name: "user",
150
+ type: "address",
151
+ },
152
+ {
153
+ internalType: "address",
154
+ name: "pool",
155
+ type: "address",
156
+ },
157
+ {
158
+ internalType: "uint256",
159
+ name: "index",
160
+ type: "uint256",
161
+ },
162
+ ],
163
+ name: "getUserPoolHistoryAt",
164
+ outputs: [
165
+ {
166
+ components: [
167
+ {
168
+ internalType: "uint128",
169
+ name: "timestamp",
170
+ type: "uint128",
171
+ },
172
+ {
173
+ components: [
174
+ {
175
+ internalType: "uint128",
176
+ name: "bias",
177
+ type: "uint128",
178
+ },
179
+ {
180
+ internalType: "uint128",
181
+ name: "slope",
182
+ type: "uint128",
183
+ },
184
+ ],
185
+ internalType: "struct VeBalance",
186
+ name: "value",
187
+ type: "tuple",
188
+ },
189
+ ],
190
+ internalType: "struct Checkpoint",
191
+ name: "",
192
+ type: "tuple",
193
+ },
194
+ ],
195
+ stateMutability: "view",
196
+ type: "function",
197
+ },
198
+ {
199
+ inputs: [
200
+ {
201
+ internalType: "address",
202
+ name: "user",
203
+ type: "address",
204
+ },
205
+ {
206
+ internalType: "address",
207
+ name: "pool",
208
+ type: "address",
209
+ },
210
+ ],
211
+ name: "getUserPoolHistoryLength",
212
+ outputs: [
213
+ {
214
+ internalType: "uint256",
215
+ name: "",
216
+ type: "uint256",
217
+ },
218
+ ],
219
+ stateMutability: "view",
220
+ type: "function",
221
+ },
222
+ {
223
+ inputs: [
224
+ {
225
+ internalType: "uint128",
226
+ name: "wTime",
227
+ type: "uint128",
228
+ },
229
+ {
230
+ internalType: "address[]",
231
+ name: "pools",
232
+ type: "address[]",
233
+ },
234
+ ],
235
+ name: "getWeekData",
236
+ outputs: [
237
+ {
238
+ internalType: "bool",
239
+ name: "isEpochFinalized",
240
+ type: "bool",
241
+ },
242
+ {
243
+ internalType: "uint128",
244
+ name: "totalVotes",
245
+ type: "uint128",
246
+ },
247
+ {
248
+ internalType: "uint128[]",
249
+ name: "poolVotes",
250
+ type: "uint128[]",
251
+ },
252
+ ],
253
+ stateMutability: "view",
254
+ type: "function",
255
+ },
132
256
  ];
133
257
 
134
258
  export class IPVotingController__factory {
@@ -104,6 +104,73 @@ const _abi = [
104
104
  name: "Withdraw",
105
105
  type: "event",
106
106
  },
107
+ {
108
+ inputs: [
109
+ {
110
+ internalType: "address",
111
+ name: "user",
112
+ type: "address",
113
+ },
114
+ {
115
+ internalType: "uint256",
116
+ name: "index",
117
+ type: "uint256",
118
+ },
119
+ ],
120
+ name: "getUserHistoryAt",
121
+ outputs: [
122
+ {
123
+ components: [
124
+ {
125
+ internalType: "uint128",
126
+ name: "timestamp",
127
+ type: "uint128",
128
+ },
129
+ {
130
+ components: [
131
+ {
132
+ internalType: "uint128",
133
+ name: "bias",
134
+ type: "uint128",
135
+ },
136
+ {
137
+ internalType: "uint128",
138
+ name: "slope",
139
+ type: "uint128",
140
+ },
141
+ ],
142
+ internalType: "struct VeBalance",
143
+ name: "value",
144
+ type: "tuple",
145
+ },
146
+ ],
147
+ internalType: "struct Checkpoint",
148
+ name: "",
149
+ type: "tuple",
150
+ },
151
+ ],
152
+ stateMutability: "view",
153
+ type: "function",
154
+ },
155
+ {
156
+ inputs: [
157
+ {
158
+ internalType: "address",
159
+ name: "user",
160
+ type: "address",
161
+ },
162
+ ],
163
+ name: "getUserHistoryLength",
164
+ outputs: [
165
+ {
166
+ internalType: "uint256",
167
+ name: "",
168
+ type: "uint256",
169
+ },
170
+ ],
171
+ stateMutability: "view",
172
+ type: "function",
173
+ },
107
174
  {
108
175
  inputs: [
109
176
  {
@@ -128,6 +195,25 @@ const _abi = [
128
195
  stateMutability: "nonpayable",
129
196
  type: "function",
130
197
  },
198
+ {
199
+ inputs: [
200
+ {
201
+ internalType: "uint128",
202
+ name: "timestamp",
203
+ type: "uint128",
204
+ },
205
+ ],
206
+ name: "totalSupplyAt",
207
+ outputs: [
208
+ {
209
+ internalType: "uint128",
210
+ name: "",
211
+ type: "uint128",
212
+ },
213
+ ],
214
+ stateMutability: "view",
215
+ type: "function",
216
+ },
131
217
  {
132
218
  inputs: [],
133
219
  name: "withdraw",
@@ -0,0 +1,183 @@
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
+ PendleFeeDistributorAbstract,
9
+ PendleFeeDistributorAbstractInterface,
10
+ } from "../PendleFeeDistributorAbstract";
11
+
12
+ const _abi = [
13
+ {
14
+ anonymous: false,
15
+ inputs: [
16
+ {
17
+ indexed: true,
18
+ internalType: "address",
19
+ name: "user",
20
+ type: "address",
21
+ },
22
+ {
23
+ indexed: true,
24
+ internalType: "address",
25
+ name: "rewardToken",
26
+ type: "address",
27
+ },
28
+ {
29
+ indexed: false,
30
+ internalType: "uint256",
31
+ name: "lastEpochClaimed",
32
+ type: "uint256",
33
+ },
34
+ {
35
+ indexed: false,
36
+ internalType: "uint256",
37
+ name: "totalReward",
38
+ type: "uint256",
39
+ },
40
+ ],
41
+ name: "ClaimReward",
42
+ type: "event",
43
+ },
44
+ {
45
+ anonymous: false,
46
+ inputs: [
47
+ {
48
+ indexed: true,
49
+ internalType: "address",
50
+ name: "rewardToken",
51
+ type: "address",
52
+ },
53
+ {
54
+ indexed: false,
55
+ internalType: "uint256",
56
+ name: "numEpoch",
57
+ type: "uint256",
58
+ },
59
+ {
60
+ indexed: false,
61
+ internalType: "uint256",
62
+ name: "incentiveForEach",
63
+ type: "uint256",
64
+ },
65
+ ],
66
+ name: "Fund",
67
+ type: "event",
68
+ },
69
+ {
70
+ inputs: [
71
+ {
72
+ internalType: "address",
73
+ name: "user",
74
+ type: "address",
75
+ },
76
+ {
77
+ internalType: "address",
78
+ name: "rewardToken",
79
+ type: "address",
80
+ },
81
+ ],
82
+ name: "claimReward",
83
+ outputs: [
84
+ {
85
+ internalType: "uint256",
86
+ name: "amountRewardOut",
87
+ type: "uint256",
88
+ },
89
+ ],
90
+ stateMutability: "nonpayable",
91
+ type: "function",
92
+ },
93
+ {
94
+ inputs: [],
95
+ name: "deployedEpoch",
96
+ outputs: [
97
+ {
98
+ internalType: "uint256",
99
+ name: "",
100
+ type: "uint256",
101
+ },
102
+ ],
103
+ stateMutability: "view",
104
+ type: "function",
105
+ },
106
+ {
107
+ inputs: [
108
+ {
109
+ internalType: "address",
110
+ name: "rewardToken",
111
+ type: "address",
112
+ },
113
+ {
114
+ internalType: "uint256",
115
+ name: "amount",
116
+ type: "uint256",
117
+ },
118
+ {
119
+ internalType: "uint256",
120
+ name: "numEpoch",
121
+ type: "uint256",
122
+ },
123
+ ],
124
+ name: "fund",
125
+ outputs: [],
126
+ stateMutability: "nonpayable",
127
+ type: "function",
128
+ },
129
+ {
130
+ inputs: [
131
+ {
132
+ internalType: "uint256",
133
+ name: "",
134
+ type: "uint256",
135
+ },
136
+ {
137
+ internalType: "address",
138
+ name: "",
139
+ type: "address",
140
+ },
141
+ ],
142
+ name: "incentivesForEpoch",
143
+ outputs: [
144
+ {
145
+ internalType: "uint256",
146
+ name: "",
147
+ type: "uint256",
148
+ },
149
+ ],
150
+ stateMutability: "view",
151
+ type: "function",
152
+ },
153
+ {
154
+ inputs: [
155
+ {
156
+ internalType: "address",
157
+ name: "user",
158
+ type: "address",
159
+ },
160
+ ],
161
+ name: "updateUserShare",
162
+ outputs: [],
163
+ stateMutability: "nonpayable",
164
+ type: "function",
165
+ },
166
+ ];
167
+
168
+ export class PendleFeeDistributorAbstract__factory {
169
+ static readonly abi = _abi;
170
+ static createInterface(): PendleFeeDistributorAbstractInterface {
171
+ return new utils.Interface(_abi) as PendleFeeDistributorAbstractInterface;
172
+ }
173
+ static connect(
174
+ address: string,
175
+ signerOrProvider: Signer | Provider
176
+ ): PendleFeeDistributorAbstract {
177
+ return new Contract(
178
+ address,
179
+ _abi,
180
+ signerOrProvider
181
+ ) as PendleFeeDistributorAbstract;
182
+ }
183
+ }