@pendle/core-v2 0.18.0-testnet → 0.19.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 (174) hide show
  1. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.dbg.json +1 -1
  2. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.json +2 -2
  3. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.dbg.json +1 -1
  4. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.dbg.json +1 -1
  5. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.json +2 -2
  6. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.dbg.json +1 -1
  7. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
  8. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
  9. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +2 -2
  10. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
  11. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.json +2 -2
  12. package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +4 -0
  13. package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.json +560 -0
  14. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
  15. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +2 -2
  16. package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
  17. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
  18. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +2 -2
  19. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
  20. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +2 -2
  21. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
  22. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
  23. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.json +2 -2
  24. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
  25. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.json +2 -2
  26. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
  27. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.json +2 -2
  28. package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.dbg.json +1 -1
  29. package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.json +2 -2
  30. package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.dbg.json +1 -1
  31. package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.json +2 -2
  32. package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.dbg.json +1 -1
  33. package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.json +2 -2
  34. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
  35. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.json +2 -2
  36. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
  37. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.json +2 -2
  38. package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
  39. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
  40. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.json +2 -2
  41. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
  42. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.json +2 -2
  43. package/build/artifacts/contracts/core/RewardManager/RewardManager.sol/RewardManager.dbg.json +1 -1
  44. package/build/artifacts/contracts/core/RewardManager/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
  45. package/build/artifacts/contracts/core/StandardizedYield/SYBase.sol/SYBase.dbg.json +1 -1
  46. package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.dbg.json +1 -1
  47. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.dbg.json +1 -1
  48. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.json +2 -2
  49. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
  50. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.json +2 -2
  51. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.dbg.json +1 -1
  52. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.json +2 -2
  53. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.dbg.json +1 -1
  54. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.json +2 -2
  55. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.dbg.json +1 -1
  56. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.json +2 -2
  57. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/PendleConvexLPSY.sol/PendleConvexLPSY.dbg.json +1 -1
  58. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.dbg.json +1 -1
  59. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.json +2 -2
  60. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.dbg.json +1 -1
  61. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.json +2 -2
  62. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
  63. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.json +2 -2
  64. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
  65. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +2 -2
  66. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
  67. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +2 -2
  68. package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.dbg.json +1 -1
  69. package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.json +2 -2
  70. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
  71. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.json +86 -5
  72. package/build/artifacts/contracts/interfaces/IApeStaking.sol/IApeStaking.dbg.json +1 -1
  73. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
  74. package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
  75. package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
  76. package/build/artifacts/contracts/interfaces/IPActionSwapPTYT.sol/IPActionSwapPTYT.dbg.json +1 -1
  77. package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
  78. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
  79. package/build/artifacts/contracts/interfaces/IPBulkSeller.sol/IPBulkSeller.dbg.json +1 -1
  80. package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.dbg.json +1 -1
  81. package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.json +24 -32
  82. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
  83. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
  84. package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
  85. package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.dbg.json +1 -1
  86. package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.json +2 -2
  87. package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.dbg.json +1 -1
  88. package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.json +2 -2
  89. package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.dbg.json +1 -1
  90. package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.json +2 -2
  91. package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
  92. package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +2 -2
  93. package/build/artifacts/contracts/router/ActionCallback.sol/ActionCallback.dbg.json +1 -1
  94. package/build/artifacts/contracts/router/ActionCallback.sol/ActionCallback.json +2 -2
  95. package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
  96. package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.json +2 -2
  97. package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.dbg.json +1 -1
  98. package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.json +2 -2
  99. package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
  100. package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.json +2 -2
  101. package/build/artifacts/contracts/router/ActionSwapPTYT.sol/ActionSwapPTYT.dbg.json +1 -1
  102. package/build/artifacts/contracts/router/ActionSwapPTYT.sol/ActionSwapPTYT.json +2 -2
  103. package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
  104. package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.json +2 -2
  105. package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.dbg.json +1 -1
  106. package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.json +2 -2
  107. package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +1 -1
  108. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
  109. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.json +2 -2
  110. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
  111. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.json +2 -2
  112. package/build/artifacts/contracts/router/kyberswap/AggregationRouterHelper.sol/AggregationRouterHelper.dbg.json +1 -1
  113. package/build/artifacts/contracts/router/kyberswap/IMultihopRouterEthereum.sol/IMultihopRouterEthereum.dbg.json +1 -1
  114. package/build/artifacts/contracts/router/kyberswap/KyberSwapHelper.sol/KyberSwapHelper.dbg.json +1 -1
  115. package/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol +214 -0
  116. package/contracts/core/libraries/ArrayLib.sol +9 -0
  117. package/contracts/core/libraries/Errors.sol +9 -2
  118. package/contracts/interfaces/IPFeeDistributor.sol +10 -10
  119. package/deployments/43113-core.json +9 -3
  120. package/package.json +1 -1
  121. package/typechain-types/IPFeeDistributor.ts +43 -78
  122. package/typechain-types/IPFeeDistributorFactory.ts +53 -139
  123. package/typechain-types/PendleFeeDistributor.ts +373 -118
  124. package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +1 -1
  125. package/typechain-types/factories/ActionCallback__factory.ts +1 -1
  126. package/typechain-types/factories/ActionMintRedeem__factory.ts +1 -1
  127. package/typechain-types/factories/ActionMisc__factory.ts +1 -1
  128. package/typechain-types/factories/ActionSwapPTYT__factory.ts +1 -1
  129. package/typechain-types/factories/ActionSwapPT__factory.ts +1 -1
  130. package/typechain-types/factories/ActionSwapYT__factory.ts +1 -1
  131. package/typechain-types/factories/BulkSellerFactory__factory.ts +1 -1
  132. package/typechain-types/factories/BulkSellerOffchain__factory.ts +1 -1
  133. package/typechain-types/factories/BulkSeller__factory.ts +1 -1
  134. package/typechain-types/factories/Errors__factory.ts +85 -4
  135. package/typechain-types/factories/IPFeeDistributorFactory__factory.ts +25 -34
  136. package/typechain-types/factories/IPFeeDistributor__factory.ts +24 -32
  137. package/typechain-types/factories/MarketMathStatic__factory.ts +1 -1
  138. package/typechain-types/factories/OracleLib__factory.ts +1 -1
  139. package/typechain-types/factories/PendleCurveFraxUsdcSY__factory.ts +1 -1
  140. package/typechain-types/factories/PendleCurveUsdd3CrvSY__factory.ts +1 -1
  141. package/typechain-types/factories/PendleFeeDistributor__factory.ts +310 -67
  142. package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +1 -1
  143. package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +1 -1
  144. package/typechain-types/factories/PendleLooksStakingSY__factory.ts +1 -1
  145. package/typechain-types/factories/PendleMarketFactory__factory.ts +1 -1
  146. package/typechain-types/factories/PendleMarket__factory.ts +1 -1
  147. package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +1 -1
  148. package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +1 -1
  149. package/typechain-types/factories/PendlePrincipalToken__factory.ts +1 -1
  150. package/typechain-types/factories/PendleQiTokenHelper__factory.ts +1 -1
  151. package/typechain-types/factories/PendleQiTokenSY__factory.ts +1 -1
  152. package/typechain-types/factories/PendleRouter__factory.ts +1 -1
  153. package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +1 -1
  154. package/typechain-types/factories/PendleWstEthSY__factory.ts +1 -1
  155. package/typechain-types/factories/PendleYieldContractFactory__factory.ts +1 -1
  156. package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
  157. package/typechain-types/factories/RouterStatic__factory.ts +1 -1
  158. package/typechain-types/factories/SAPE__factory.ts +1 -1
  159. package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +1 -1
  160. package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +1 -1
  161. package/typechain-types/hardhat.d.ts +4 -76
  162. package/typechain-types/index.ts +2 -14
  163. package/build/artifacts/contracts/LiquidityMining/FeeDistributor/EpochResultManager.sol/EpochResultManager.dbg.json +0 -4
  164. package/build/artifacts/contracts/LiquidityMining/FeeDistributor/EpochResultManager.sol/EpochResultManager.json +0 -131
  165. package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +0 -4
  166. package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.json +0 -310
  167. package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributorFactory.sol/PendleFeeDistributorFactory.dbg.json +0 -4
  168. package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributorFactory.sol/PendleFeeDistributorFactory.json +0 -389
  169. package/build/artifacts/contracts/interfaces/IPFeeDistributorFactory.sol/IPFeeDistributorFactory.dbg.json +0 -4
  170. package/build/artifacts/contracts/interfaces/IPFeeDistributorFactory.sol/IPFeeDistributorFactory.json +0 -76
  171. package/contracts/LiquidityMining/FeeDistributor/EpochResultManager.sol +0 -159
  172. package/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributor.sol +0 -99
  173. package/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributorFactory.sol +0 -70
  174. package/contracts/interfaces/IPFeeDistributorFactory.sol +0 -14
@@ -1,19 +1,8 @@
1
1
  /* Autogenerated file. Do not edit manually. */
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
- import {
5
- BaseContract,
6
- BigNumber,
7
- BigNumberish,
8
- BytesLike,
9
- CallOverrides,
10
- ContractTransaction,
11
- Overrides,
12
- PopulatedTransaction,
13
- Signer,
14
- utils,
15
- } from "ethers";
16
- import { FunctionFragment, Result } from "@ethersproject/abi";
4
+ import { BaseContract, BigNumber, BigNumberish, Signer, utils } from "ethers";
5
+ import { EventFragment } from "@ethersproject/abi";
17
6
  import { Listener, Provider } from "@ethersproject/providers";
18
7
  import type {
19
8
  TypedEventFilter,
@@ -24,41 +13,31 @@ import type {
24
13
 
25
14
  export interface IPFeeDistributorFactoryInterface extends utils.Interface {
26
15
  contractName: "IPFeeDistributorFactory";
27
- functions: {
28
- "getUserAndTotalSharesAt(address,address,uint256)": FunctionFragment;
29
- "lastFinishedEpoch()": FunctionFragment;
30
- "updateUserShare(address,address)": FunctionFragment;
16
+ functions: {};
17
+
18
+ events: {
19
+ "ClaimReward(address,address,uint256,uint256)": EventFragment;
20
+ "Fund(address,uint256,uint256)": EventFragment;
31
21
  };
32
22
 
33
- encodeFunctionData(
34
- functionFragment: "getUserAndTotalSharesAt",
35
- values: [string, string, BigNumberish]
36
- ): string;
37
- encodeFunctionData(
38
- functionFragment: "lastFinishedEpoch",
39
- values?: undefined
40
- ): string;
41
- encodeFunctionData(
42
- functionFragment: "updateUserShare",
43
- values: [string, string]
44
- ): string;
45
-
46
- decodeFunctionResult(
47
- functionFragment: "getUserAndTotalSharesAt",
48
- data: BytesLike
49
- ): Result;
50
- decodeFunctionResult(
51
- functionFragment: "lastFinishedEpoch",
52
- data: BytesLike
53
- ): Result;
54
- decodeFunctionResult(
55
- functionFragment: "updateUserShare",
56
- data: BytesLike
57
- ): Result;
58
-
59
- events: {};
23
+ getEvent(nameOrSignatureOrTopic: "ClaimReward"): EventFragment;
24
+ getEvent(nameOrSignatureOrTopic: "Fund"): EventFragment;
60
25
  }
61
26
 
27
+ export type ClaimRewardEvent = TypedEvent<
28
+ [string, string, BigNumber, BigNumber],
29
+ { pool: string; user: string; epoch: BigNumber; amountReward: BigNumber }
30
+ >;
31
+
32
+ export type ClaimRewardEventFilter = TypedEventFilter<ClaimRewardEvent>;
33
+
34
+ export type FundEvent = TypedEvent<
35
+ [string, BigNumber, BigNumber],
36
+ { pool: string; epoch: BigNumber; incentive: BigNumber }
37
+ >;
38
+
39
+ export type FundEventFilter = TypedEventFilter<FundEvent>;
40
+
62
41
  export interface IPFeeDistributorFactory extends BaseContract {
63
42
  contractName: "IPFeeDistributorFactory";
64
43
  connect(signerOrProvider: Signer | Provider | string): this;
@@ -86,102 +65,37 @@ export interface IPFeeDistributorFactory extends BaseContract {
86
65
  once: OnEvent<this>;
87
66
  removeListener: OnEvent<this>;
88
67
 
89
- functions: {
90
- getUserAndTotalSharesAt(
91
- user: string,
92
- pool: string,
93
- epoch: BigNumberish,
94
- overrides?: CallOverrides
95
- ): Promise<
96
- [BigNumber, BigNumber] & { userShare: BigNumber; totalShare: BigNumber }
97
- >;
98
-
99
- lastFinishedEpoch(
100
- overrides?: Overrides & { from?: string | Promise<string> }
101
- ): Promise<ContractTransaction>;
102
-
103
- updateUserShare(
104
- user: string,
105
- pool: string,
106
- overrides?: Overrides & { from?: string | Promise<string> }
107
- ): Promise<ContractTransaction>;
68
+ functions: {};
69
+
70
+ callStatic: {};
71
+
72
+ filters: {
73
+ "ClaimReward(address,address,uint256,uint256)"(
74
+ pool?: string | null,
75
+ user?: string | null,
76
+ epoch?: null,
77
+ amountReward?: null
78
+ ): ClaimRewardEventFilter;
79
+ ClaimReward(
80
+ pool?: string | null,
81
+ user?: string | null,
82
+ epoch?: null,
83
+ amountReward?: null
84
+ ): ClaimRewardEventFilter;
85
+
86
+ "Fund(address,uint256,uint256)"(
87
+ pool?: string | null,
88
+ epoch?: BigNumberish | null,
89
+ incentive?: null
90
+ ): FundEventFilter;
91
+ Fund(
92
+ pool?: string | null,
93
+ epoch?: BigNumberish | null,
94
+ incentive?: null
95
+ ): FundEventFilter;
108
96
  };
109
97
 
110
- getUserAndTotalSharesAt(
111
- user: string,
112
- pool: string,
113
- epoch: BigNumberish,
114
- overrides?: CallOverrides
115
- ): Promise<
116
- [BigNumber, BigNumber] & { userShare: BigNumber; totalShare: BigNumber }
117
- >;
118
-
119
- lastFinishedEpoch(
120
- overrides?: Overrides & { from?: string | Promise<string> }
121
- ): Promise<ContractTransaction>;
122
-
123
- updateUserShare(
124
- user: string,
125
- pool: string,
126
- overrides?: Overrides & { from?: string | Promise<string> }
127
- ): Promise<ContractTransaction>;
128
-
129
- callStatic: {
130
- getUserAndTotalSharesAt(
131
- user: string,
132
- pool: string,
133
- epoch: BigNumberish,
134
- overrides?: CallOverrides
135
- ): Promise<
136
- [BigNumber, BigNumber] & { userShare: BigNumber; totalShare: BigNumber }
137
- >;
138
-
139
- lastFinishedEpoch(overrides?: CallOverrides): Promise<BigNumber>;
140
-
141
- updateUserShare(
142
- user: string,
143
- pool: string,
144
- overrides?: CallOverrides
145
- ): Promise<void>;
146
- };
147
-
148
- filters: {};
149
-
150
- estimateGas: {
151
- getUserAndTotalSharesAt(
152
- user: string,
153
- pool: string,
154
- epoch: BigNumberish,
155
- overrides?: CallOverrides
156
- ): Promise<BigNumber>;
157
-
158
- lastFinishedEpoch(
159
- overrides?: Overrides & { from?: string | Promise<string> }
160
- ): Promise<BigNumber>;
161
-
162
- updateUserShare(
163
- user: string,
164
- pool: string,
165
- overrides?: Overrides & { from?: string | Promise<string> }
166
- ): Promise<BigNumber>;
167
- };
98
+ estimateGas: {};
168
99
 
169
- populateTransaction: {
170
- getUserAndTotalSharesAt(
171
- user: string,
172
- pool: string,
173
- epoch: BigNumberish,
174
- overrides?: CallOverrides
175
- ): Promise<PopulatedTransaction>;
176
-
177
- lastFinishedEpoch(
178
- overrides?: Overrides & { from?: string | Promise<string> }
179
- ): Promise<PopulatedTransaction>;
180
-
181
- updateUserShare(
182
- user: string,
183
- pool: string,
184
- overrides?: Overrides & { from?: string | Promise<string> }
185
- ): Promise<PopulatedTransaction>;
186
- };
100
+ populateTransaction: {};
187
101
  }