@pendle/core-v2 1.1.0-mainnet → 1.2.0-mainnet

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 (190) 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/AggregationRouterHelper.sol/AggregationRouterHelper.json +2 -2
  114. package/build/artifacts/contracts/router/kyberswap/IMultihopRouterEthereum.sol/IMultihopRouterEthereum.dbg.json +4 -0
  115. package/build/artifacts/contracts/router/kyberswap/{IMultihopRouter.sol/IMultihopRouter.json → IMultihopRouterEthereum.sol/IMultihopRouterEthereum.json} +3 -3
  116. package/build/artifacts/contracts/router/kyberswap/KyberSwapHelper.sol/KyberSwapHelper.dbg.json +1 -1
  117. package/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol +224 -0
  118. package/contracts/core/BulkSeller/BulkSeller.sol +1 -1
  119. package/contracts/core/libraries/ArrayLib.sol +9 -0
  120. package/contracts/core/libraries/Errors.sol +10 -2
  121. package/contracts/interfaces/IPFeeDistributor.sol +12 -10
  122. package/contracts/offchain-helpers/Multicall2.sol +103 -0
  123. package/contracts/router/kyberswap/AggregationRouterHelper.sol +37 -23
  124. package/contracts/router/kyberswap/{IMultihopRouter.sol → IMultihopRouterEthereum.sol} +11 -9
  125. package/deployments/1-core.json +2 -1
  126. package/package.json +1 -1
  127. package/typechain-types/BribeDistributor.ts +363 -0
  128. package/typechain-types/DistributorBase.ts +363 -0
  129. package/typechain-types/FeeDistributor.ts +416 -0
  130. package/typechain-types/IMultihopRouterEthereum.ts +209 -0
  131. package/typechain-types/IPFeeDistributor.ts +43 -78
  132. package/typechain-types/IPFeeDistributorFactory.ts +53 -139
  133. package/typechain-types/PendleFeeDistributor.ts +373 -118
  134. package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +1 -1
  135. package/typechain-types/factories/ActionCallback__factory.ts +1 -1
  136. package/typechain-types/factories/ActionMintRedeem__factory.ts +1 -1
  137. package/typechain-types/factories/ActionMisc__factory.ts +1 -1
  138. package/typechain-types/factories/ActionSwapPTYT__factory.ts +1 -1
  139. package/typechain-types/factories/ActionSwapPT__factory.ts +1 -1
  140. package/typechain-types/factories/ActionSwapYT__factory.ts +1 -1
  141. package/typechain-types/factories/AggregationRouterHelper__factory.ts +1 -1
  142. package/typechain-types/factories/BribeDistributor__factory.ts +303 -0
  143. package/typechain-types/factories/BulkSellerFactory__factory.ts +1 -1
  144. package/typechain-types/factories/BulkSellerOffchain__factory.ts +1 -1
  145. package/typechain-types/factories/BulkSeller__factory.ts +1 -1
  146. package/typechain-types/factories/DistributorBase__factory.ts +249 -0
  147. package/typechain-types/factories/Errors__factory.ts +85 -4
  148. package/typechain-types/factories/FeeDistributor__factory.ts +339 -0
  149. package/typechain-types/factories/IMultihopRouterEthereum__factory.ts +155 -0
  150. package/typechain-types/factories/IPFeeDistributorFactory__factory.ts +25 -34
  151. package/typechain-types/factories/IPFeeDistributor__factory.ts +24 -32
  152. package/typechain-types/factories/MarketMathStatic__factory.ts +1 -1
  153. package/typechain-types/factories/OracleLib__factory.ts +1 -1
  154. package/typechain-types/factories/PendleCurveFraxUsdcSY__factory.ts +1 -1
  155. package/typechain-types/factories/PendleCurveUsdd3CrvSY__factory.ts +1 -1
  156. package/typechain-types/factories/PendleFeeDistributor__factory.ts +310 -67
  157. package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +1 -1
  158. package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +1 -1
  159. package/typechain-types/factories/PendleLooksStakingSY__factory.ts +1 -1
  160. package/typechain-types/factories/PendleMarketFactory__factory.ts +1 -1
  161. package/typechain-types/factories/PendleMarket__factory.ts +1 -1
  162. package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +1 -1
  163. package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +1 -1
  164. package/typechain-types/factories/PendlePrincipalToken__factory.ts +1 -1
  165. package/typechain-types/factories/PendleQiTokenHelper__factory.ts +1 -1
  166. package/typechain-types/factories/PendleQiTokenSY__factory.ts +1 -1
  167. package/typechain-types/factories/PendleRouter__factory.ts +1 -1
  168. package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +1 -1
  169. package/typechain-types/factories/PendleWstEthSY__factory.ts +1 -1
  170. package/typechain-types/factories/PendleYieldContractFactory__factory.ts +1 -1
  171. package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
  172. package/typechain-types/factories/RouterStatic__factory.ts +1 -1
  173. package/typechain-types/factories/SAPE__factory.ts +1 -1
  174. package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +1 -1
  175. package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +1 -1
  176. package/typechain-types/hardhat.d.ts +18 -36
  177. package/typechain-types/index.ts +4 -8
  178. package/build/artifacts/contracts/LiquidityMining/FeeDistributor/EpochResultManager.sol/EpochResultManager.dbg.json +0 -4
  179. package/build/artifacts/contracts/LiquidityMining/FeeDistributor/EpochResultManager.sol/EpochResultManager.json +0 -131
  180. package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +0 -4
  181. package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.json +0 -310
  182. package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributorFactory.sol/PendleFeeDistributorFactory.dbg.json +0 -4
  183. package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributorFactory.sol/PendleFeeDistributorFactory.json +0 -389
  184. package/build/artifacts/contracts/interfaces/IPFeeDistributorFactory.sol/IPFeeDistributorFactory.dbg.json +0 -4
  185. package/build/artifacts/contracts/interfaces/IPFeeDistributorFactory.sol/IPFeeDistributorFactory.json +0 -76
  186. package/build/artifacts/contracts/router/kyberswap/IMultihopRouter.sol/IMultihopRouter.dbg.json +0 -4
  187. package/contracts/LiquidityMining/FeeDistributor/EpochResultManager.sol +0 -159
  188. package/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributor.sol +0 -99
  189. package/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributorFactory.sol +0 -70
  190. package/contracts/interfaces/IPFeeDistributorFactory.sol +0 -14
@@ -0,0 +1,249 @@
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
+ DistributorBase,
9
+ DistributorBaseInterface,
10
+ } from "../DistributorBase";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [],
15
+ name: "FDEpochLengthMismatch",
16
+ type: "error",
17
+ },
18
+ {
19
+ anonymous: false,
20
+ inputs: [
21
+ {
22
+ indexed: true,
23
+ internalType: "address",
24
+ name: "user",
25
+ type: "address",
26
+ },
27
+ {
28
+ indexed: true,
29
+ internalType: "address",
30
+ name: "rewardToken",
31
+ type: "address",
32
+ },
33
+ {
34
+ indexed: false,
35
+ internalType: "uint256",
36
+ name: "lastEpochClaimed",
37
+ type: "uint256",
38
+ },
39
+ {
40
+ indexed: false,
41
+ internalType: "uint256",
42
+ name: "totalReward",
43
+ type: "uint256",
44
+ },
45
+ ],
46
+ name: "ClaimReward",
47
+ type: "event",
48
+ },
49
+ {
50
+ anonymous: false,
51
+ inputs: [
52
+ {
53
+ indexed: true,
54
+ internalType: "uint256",
55
+ name: "epoch",
56
+ type: "uint256",
57
+ },
58
+ {
59
+ indexed: false,
60
+ internalType: "uint256",
61
+ name: "incentive",
62
+ type: "uint256",
63
+ },
64
+ ],
65
+ name: "Fund",
66
+ type: "event",
67
+ },
68
+ {
69
+ anonymous: false,
70
+ inputs: [
71
+ {
72
+ indexed: false,
73
+ internalType: "uint8",
74
+ name: "version",
75
+ type: "uint8",
76
+ },
77
+ ],
78
+ name: "Initialized",
79
+ type: "event",
80
+ },
81
+ {
82
+ inputs: [
83
+ {
84
+ internalType: "address",
85
+ name: "user",
86
+ type: "address",
87
+ },
88
+ ],
89
+ name: "claimReward",
90
+ outputs: [
91
+ {
92
+ internalType: "uint256",
93
+ name: "amountRewardOut",
94
+ type: "uint256",
95
+ },
96
+ ],
97
+ stateMutability: "nonpayable",
98
+ type: "function",
99
+ },
100
+ {
101
+ inputs: [],
102
+ name: "factory",
103
+ outputs: [
104
+ {
105
+ internalType: "address",
106
+ name: "",
107
+ type: "address",
108
+ },
109
+ ],
110
+ stateMutability: "view",
111
+ type: "function",
112
+ },
113
+ {
114
+ inputs: [
115
+ {
116
+ internalType: "uint256[]",
117
+ name: "epochs",
118
+ type: "uint256[]",
119
+ },
120
+ {
121
+ internalType: "uint256[]",
122
+ name: "rewardsForEpoch",
123
+ type: "uint256[]",
124
+ },
125
+ ],
126
+ name: "fund",
127
+ outputs: [],
128
+ stateMutability: "nonpayable",
129
+ type: "function",
130
+ },
131
+ {
132
+ inputs: [
133
+ {
134
+ internalType: "uint256",
135
+ name: "",
136
+ type: "uint256",
137
+ },
138
+ ],
139
+ name: "incentivesForEpoch",
140
+ outputs: [
141
+ {
142
+ internalType: "uint256",
143
+ name: "",
144
+ type: "uint256",
145
+ },
146
+ ],
147
+ stateMutability: "view",
148
+ type: "function",
149
+ },
150
+ {
151
+ inputs: [
152
+ {
153
+ internalType: "address",
154
+ name: "_pool",
155
+ type: "address",
156
+ },
157
+ {
158
+ internalType: "address",
159
+ name: "_rewardToken",
160
+ type: "address",
161
+ },
162
+ {
163
+ internalType: "uint256",
164
+ name: "_startEpoch",
165
+ type: "uint256",
166
+ },
167
+ {
168
+ internalType: "address",
169
+ name: "_factory",
170
+ type: "address",
171
+ },
172
+ ],
173
+ name: "initialize",
174
+ outputs: [],
175
+ stateMutability: "nonpayable",
176
+ type: "function",
177
+ },
178
+ {
179
+ inputs: [],
180
+ name: "pool",
181
+ outputs: [
182
+ {
183
+ internalType: "address",
184
+ name: "",
185
+ type: "address",
186
+ },
187
+ ],
188
+ stateMutability: "view",
189
+ type: "function",
190
+ },
191
+ {
192
+ inputs: [],
193
+ name: "rewardToken",
194
+ outputs: [
195
+ {
196
+ internalType: "address",
197
+ name: "",
198
+ type: "address",
199
+ },
200
+ ],
201
+ stateMutability: "view",
202
+ type: "function",
203
+ },
204
+ {
205
+ inputs: [],
206
+ name: "startEpoch",
207
+ outputs: [
208
+ {
209
+ internalType: "uint256",
210
+ name: "",
211
+ type: "uint256",
212
+ },
213
+ ],
214
+ stateMutability: "view",
215
+ type: "function",
216
+ },
217
+ {
218
+ inputs: [
219
+ {
220
+ internalType: "address",
221
+ name: "",
222
+ type: "address",
223
+ },
224
+ ],
225
+ name: "userUnclaimedEpoch",
226
+ outputs: [
227
+ {
228
+ internalType: "uint256",
229
+ name: "",
230
+ type: "uint256",
231
+ },
232
+ ],
233
+ stateMutability: "view",
234
+ type: "function",
235
+ },
236
+ ];
237
+
238
+ export class DistributorBase__factory {
239
+ static readonly abi = _abi;
240
+ static createInterface(): DistributorBaseInterface {
241
+ return new utils.Interface(_abi) as DistributorBaseInterface;
242
+ }
243
+ static connect(
244
+ address: string,
245
+ signerOrProvider: Signer | Provider
246
+ ): DistributorBase {
247
+ return new Contract(address, _abi, signerOrProvider) as DistributorBase;
248
+ }
249
+ }
@@ -78,6 +78,22 @@ const _abi = [
78
78
  name: "ArrayOutOfBounds",
79
79
  type: "error",
80
80
  },
81
+ {
82
+ inputs: [
83
+ {
84
+ internalType: "uint256",
85
+ name: "epoch",
86
+ type: "uint256",
87
+ },
88
+ {
89
+ internalType: "uint256",
90
+ name: "startTime",
91
+ type: "uint256",
92
+ },
93
+ ],
94
+ name: "BDInvalidEpoch",
95
+ type: "error",
96
+ },
81
97
  {
82
98
  inputs: [
83
99
  {
@@ -271,7 +287,23 @@ const _abi = [
271
287
  },
272
288
  {
273
289
  inputs: [],
274
- name: "FDCantFundFutureEpoch",
290
+ name: "FDEpochLengthMismatch",
291
+ type: "error",
292
+ },
293
+ {
294
+ inputs: [
295
+ {
296
+ internalType: "uint256",
297
+ name: "oldFinishedEpoch",
298
+ type: "uint256",
299
+ },
300
+ {
301
+ internalType: "uint256",
302
+ name: "newFinishedEpoch",
303
+ type: "uint256",
304
+ },
305
+ ],
306
+ name: "FDInvalidNewFinishedEpoch",
275
307
  type: "error",
276
308
  },
277
309
  {
@@ -281,13 +313,62 @@ const _abi = [
281
313
  name: "pool",
282
314
  type: "address",
283
315
  },
316
+ ],
317
+ name: "FDInvalidPool",
318
+ type: "error",
319
+ },
320
+ {
321
+ inputs: [
322
+ {
323
+ internalType: "uint256",
324
+ name: "startEpoch",
325
+ type: "uint256",
326
+ },
327
+ ],
328
+ name: "FDInvalidStartEpoch",
329
+ type: "error",
330
+ },
331
+ {
332
+ inputs: [
333
+ {
334
+ internalType: "uint256",
335
+ name: "lastFunded",
336
+ type: "uint256",
337
+ },
338
+ {
339
+ internalType: "uint256",
340
+ name: "wTime",
341
+ type: "uint256",
342
+ },
343
+ ],
344
+ name: "FDInvalidWTimeFund",
345
+ type: "error",
346
+ },
347
+ {
348
+ inputs: [
284
349
  {
285
350
  internalType: "address",
286
- name: "distributor",
351
+ name: "pool",
287
352
  type: "address",
288
353
  },
289
354
  ],
290
- name: "FDFactoryDistributorAlreadyExisted",
355
+ name: "FDPoolAlreadyExists",
356
+ type: "error",
357
+ },
358
+ {
359
+ inputs: [
360
+ {
361
+ internalType: "uint256",
362
+ name: "actualTotalAmount",
363
+ type: "uint256",
364
+ },
365
+ {
366
+ internalType: "uint256",
367
+ name: "expectedTotalAmount",
368
+ type: "uint256",
369
+ },
370
+ ],
371
+ name: "FDTotalAmountFundedNotMatch",
291
372
  type: "error",
292
373
  },
293
374
  {
@@ -1226,7 +1307,7 @@ const _abi = [
1226
1307
  ];
1227
1308
 
1228
1309
  const _bytecode =
1229
- "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212201339f48729e880a478cfe0778a98265d38b97e74692828e9c1130fcbb4fbe66364736f6c63430008110033";
1310
+ "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220ed79459d869c78d2638caf7c9b0ec18eed8046ff171dfcc1b041d66299c8bb5b64736f6c63430008110033";
1230
1311
 
1231
1312
  type ErrorsConstructorParams =
1232
1313
  | [signer?: Signer]
@@ -0,0 +1,339 @@
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
+ FeeDistributor,
8
+ FeeDistributorInterface,
9
+ } from "../FeeDistributor";
10
+
11
+ const _abi = [
12
+ {
13
+ inputs: [],
14
+ name: "FDEpochLengthMismatch",
15
+ type: "error",
16
+ },
17
+ {
18
+ inputs: [
19
+ {
20
+ internalType: "uint256",
21
+ name: "epoch",
22
+ type: "uint256",
23
+ },
24
+ {
25
+ internalType: "uint256",
26
+ name: "startTime",
27
+ type: "uint256",
28
+ },
29
+ {
30
+ internalType: "uint256",
31
+ name: "currentWeekStart",
32
+ type: "uint256",
33
+ },
34
+ ],
35
+ name: "FDInvalidEpoch",
36
+ type: "error",
37
+ },
38
+ {
39
+ inputs: [],
40
+ name: "FDNotAdmin",
41
+ type: "error",
42
+ },
43
+ {
44
+ anonymous: false,
45
+ inputs: [
46
+ {
47
+ indexed: true,
48
+ internalType: "address",
49
+ name: "user",
50
+ type: "address",
51
+ },
52
+ {
53
+ indexed: true,
54
+ internalType: "address",
55
+ name: "rewardToken",
56
+ type: "address",
57
+ },
58
+ {
59
+ indexed: false,
60
+ internalType: "uint256",
61
+ name: "lastEpochClaimed",
62
+ type: "uint256",
63
+ },
64
+ {
65
+ indexed: false,
66
+ internalType: "uint256",
67
+ name: "totalReward",
68
+ type: "uint256",
69
+ },
70
+ ],
71
+ name: "ClaimReward",
72
+ type: "event",
73
+ },
74
+ {
75
+ anonymous: false,
76
+ inputs: [
77
+ {
78
+ indexed: true,
79
+ internalType: "uint256",
80
+ name: "epoch",
81
+ type: "uint256",
82
+ },
83
+ {
84
+ indexed: false,
85
+ internalType: "uint256",
86
+ name: "incentive",
87
+ type: "uint256",
88
+ },
89
+ ],
90
+ name: "Fund",
91
+ type: "event",
92
+ },
93
+ {
94
+ anonymous: false,
95
+ inputs: [
96
+ {
97
+ indexed: false,
98
+ internalType: "uint8",
99
+ name: "version",
100
+ type: "uint8",
101
+ },
102
+ ],
103
+ name: "Initialized",
104
+ type: "event",
105
+ },
106
+ {
107
+ inputs: [
108
+ {
109
+ internalType: "address",
110
+ name: "user",
111
+ type: "address",
112
+ },
113
+ ],
114
+ name: "claimReward",
115
+ outputs: [
116
+ {
117
+ internalType: "uint256",
118
+ name: "amountRewardOut",
119
+ type: "uint256",
120
+ },
121
+ ],
122
+ stateMutability: "nonpayable",
123
+ type: "function",
124
+ },
125
+ {
126
+ inputs: [],
127
+ name: "factory",
128
+ outputs: [
129
+ {
130
+ internalType: "address",
131
+ name: "",
132
+ type: "address",
133
+ },
134
+ ],
135
+ stateMutability: "view",
136
+ type: "function",
137
+ },
138
+ {
139
+ inputs: [
140
+ {
141
+ internalType: "uint256[]",
142
+ name: "epochs",
143
+ type: "uint256[]",
144
+ },
145
+ {
146
+ internalType: "uint256[]",
147
+ name: "rewardsForEpoch",
148
+ type: "uint256[]",
149
+ },
150
+ ],
151
+ name: "fund",
152
+ outputs: [],
153
+ stateMutability: "nonpayable",
154
+ type: "function",
155
+ },
156
+ {
157
+ inputs: [
158
+ {
159
+ internalType: "uint256",
160
+ name: "",
161
+ type: "uint256",
162
+ },
163
+ ],
164
+ name: "incentivesForEpoch",
165
+ outputs: [
166
+ {
167
+ internalType: "uint256",
168
+ name: "",
169
+ type: "uint256",
170
+ },
171
+ ],
172
+ stateMutability: "view",
173
+ type: "function",
174
+ },
175
+ {
176
+ inputs: [
177
+ {
178
+ internalType: "address",
179
+ name: "_pool",
180
+ type: "address",
181
+ },
182
+ {
183
+ internalType: "address",
184
+ name: "_rewardToken",
185
+ type: "address",
186
+ },
187
+ {
188
+ internalType: "uint256",
189
+ name: "_startEpoch",
190
+ type: "uint256",
191
+ },
192
+ {
193
+ internalType: "address",
194
+ name: "_factory",
195
+ type: "address",
196
+ },
197
+ ],
198
+ name: "initialize",
199
+ outputs: [],
200
+ stateMutability: "nonpayable",
201
+ type: "function",
202
+ },
203
+ {
204
+ inputs: [],
205
+ name: "lastFinishedEpoch",
206
+ outputs: [
207
+ {
208
+ internalType: "uint256",
209
+ name: "",
210
+ type: "uint256",
211
+ },
212
+ ],
213
+ stateMutability: "view",
214
+ type: "function",
215
+ },
216
+ {
217
+ inputs: [],
218
+ name: "pool",
219
+ outputs: [
220
+ {
221
+ internalType: "address",
222
+ name: "",
223
+ type: "address",
224
+ },
225
+ ],
226
+ stateMutability: "view",
227
+ type: "function",
228
+ },
229
+ {
230
+ inputs: [],
231
+ name: "rewardToken",
232
+ outputs: [
233
+ {
234
+ internalType: "address",
235
+ name: "",
236
+ type: "address",
237
+ },
238
+ ],
239
+ stateMutability: "view",
240
+ type: "function",
241
+ },
242
+ {
243
+ inputs: [
244
+ {
245
+ internalType: "uint256",
246
+ name: "newLastFinishedEpoch",
247
+ type: "uint256",
248
+ },
249
+ ],
250
+ name: "setLastFinishedEpoch",
251
+ outputs: [],
252
+ stateMutability: "nonpayable",
253
+ type: "function",
254
+ },
255
+ {
256
+ inputs: [],
257
+ name: "startEpoch",
258
+ outputs: [
259
+ {
260
+ internalType: "uint256",
261
+ name: "",
262
+ type: "uint256",
263
+ },
264
+ ],
265
+ stateMutability: "view",
266
+ type: "function",
267
+ },
268
+ {
269
+ inputs: [
270
+ {
271
+ internalType: "address",
272
+ name: "",
273
+ type: "address",
274
+ },
275
+ ],
276
+ name: "userUnclaimedEpoch",
277
+ outputs: [
278
+ {
279
+ internalType: "uint256",
280
+ name: "",
281
+ type: "uint256",
282
+ },
283
+ ],
284
+ stateMutability: "view",
285
+ type: "function",
286
+ },
287
+ ];
288
+
289
+ const _bytecode =
290
+ "0x608060405234801561001057600080fd5b50610e25806100206000396000f3fe608060405234801561001057600080fd5b50600436106100985760003560e01c8062bd0e4b1461009d57806316f0115b146100b257806321a56181146100e15780638413bb89146100f4578063a2c8b17714610122578063b9a53a841461012b578063be20309414610134578063c45a015514610147578063d279c1911461015a578063f4466f071461016d578063f7c618c11461018d575b600080fd5b6100b06100ab366004610af8565b6101a0565b005b6000546100cb906201000090046001600160a01b031681565b6040516100d89190610b63565b60405180910390f35b6100b06100ef366004610b77565b61030b565b610114610102366004610b77565b60056020526000908152604090205481565b6040519081526020016100d8565b61011460025481565b61011460065481565b6100b0610142366004610bac565b61039e565b6003546100cb906001600160a01b031681565b610114610168366004610bf9565b61050d565b61011461017b366004610bf9565b60046020526000908152604090205481565b6001546100cb906001600160a01b031681565b8281146101c057604051635174addf60e11b815260040160405180910390fd5b6000805b8281101561028b5760008686838181106101e0576101e0610c14565b9050602002013590506101f281610742565b600085858481811061020657610206610c14565b905060200201359050806005600084815260200190815260200160002060008282546102329190610c40565b909155505060405181815282907fe10598fa0628b6878df33dddd270fc68abc6bc5b8b864e07ac2d9313cf31043e9060200160405180910390a26102768185610c40565b935050508061028490610c53565b90506101c4565b506001546040516323b872dd60e01b81526001600160a01b03909116906323b872dd906102c090339030908690600401610c6c565b6020604051808303816000875af11580156102df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103039190610c90565b505050505050565b600354604051630935e01b60e21b81526001600160a01b03909116906324d7806c9061033b903390600401610b63565b602060405180830381865afa158015610358573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061037c9190610c90565b610399576040516360ce039160e01b815260040160405180910390fd5b600655565b600054610100900460ff16158080156103be5750600054600160ff909116105b806103df57506103cd306107ae565b1580156103df575060005460ff166001145b6104475760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084015b60405180910390fd5b6000805460ff19166001179055801561046a576000805461ff0019166101001790555b600080546001600160a01b03808816620100000262010000600160b01b031990921691909117909155600180548683166001600160a01b031991821617909155600285905560038054928516929091169190911790558015610506576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050505050565b60035460008054604051633c771a6f60e01b81526001600160a01b038581166004830152620100009092048216602482015291921690633c771a6f90604401600060405180830381600087803b15801561056657600080fd5b505af115801561057a573d6000803e3d6000fd5b50505050600061058960065490565b6001600160a01b0384166000908152600460205260409020549091508181036105b6575060009392505050565b806000036105d2576002546105cf9062093a8090610c40565b90505b8181116106b857600081815260056020526040808220546003548354925163c0aabb0d60e01b815291939283926001600160a01b039283169263c0aabb0d9261062c928c9262010000909204909116908990600401610c6c565b6040805180830381865afa158015610648573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061066c9190610cb2565b9150915081600003610680575050506105d2565b8061068b8484610cd6565b6106959190610d03565b61069f9087610c40565b95506106ae62093a8085610c40565b93505050506105d2565b6001600160a01b038416600090815260046020526040902082905582156106f0576001546106f0906001600160a01b031685856107bd565b60015460408051848152602081018690526001600160a01b03928316928716917ffe7c5fc89da23a432c91f264decb100ab9d08ab7b14650c3cdb9b6b4f84a60e9910160405180910390a35050919050565b600061074c610814565b6001600160801b0316905060025482108061076657508082115b80610777575061077582610824565b155b156107aa57600254604051637ee6bc2d60e01b81526004810184905260248101919091526044810182905260640161043e565b5050565b6001600160a01b03163b151590565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261080f90849061083a565b505050565b600061081f4261090c565b905090565b600061083362093a8083610d17565b1592915050565b600061088f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661092c9092919063ffffffff16565b80519091501561080f57808060200190518101906108ad9190610c90565b61080f5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161043e565b600062093a8061091c8184610d2b565b6109269190610d51565b92915050565b606061093b8484600085610945565b90505b9392505050565b6060824710156109a65760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161043e565b6109af856107ae565b6109fb5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161043e565b600080866001600160a01b03168587604051610a179190610da0565b60006040518083038185875af1925050503d8060008114610a54576040519150601f19603f3d011682016040523d82523d6000602084013e610a59565b606091505b5091509150610a69828286610a74565b979650505050505050565b60608315610a8357508161093e565b825115610a935782518084602001fd5b8160405162461bcd60e51b815260040161043e9190610dbc565b60008083601f840112610abf57600080fd5b5081356001600160401b03811115610ad657600080fd5b6020830191508360208260051b8501011115610af157600080fd5b9250929050565b60008060008060408587031215610b0e57600080fd5b84356001600160401b0380821115610b2557600080fd5b610b3188838901610aad565b90965094506020870135915080821115610b4a57600080fd5b50610b5787828801610aad565b95989497509550505050565b6001600160a01b0391909116815260200190565b600060208284031215610b8957600080fd5b5035919050565b80356001600160a01b0381168114610ba757600080fd5b919050565b60008060008060808587031215610bc257600080fd5b610bcb85610b90565b9350610bd960208601610b90565b925060408501359150610bee60608601610b90565b905092959194509250565b600060208284031215610c0b57600080fd5b61093e82610b90565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8082018082111561092657610926610c2a565b600060018201610c6557610c65610c2a565b5060010190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b600060208284031215610ca257600080fd5b8151801515811461093e57600080fd5b60008060408385031215610cc557600080fd5b505080516020909101519092909150565b808202811582820484141761092657610926610c2a565b634e487b7160e01b600052601260045260246000fd5b600082610d1257610d12610ced565b500490565b600082610d2657610d26610ced565b500690565b60006001600160801b0383811680610d4557610d45610ced565b92169190910492915050565b6001600160801b03818116838216028082169190828114610d7457610d74610c2a565b505092915050565b60005b83811015610d97578181015183820152602001610d7f565b50506000910152565b60008251610db2818460208701610d7c565b9190910192915050565b6020815260008251806020840152610ddb816040850160208701610d7c565b601f01601f1916919091016040019291505056fea2646970667358221220c2966d5fdaf4a3caafd675d58bae4b1b1b40a6843e6356203d96050d443550c064736f6c63430008110033";
291
+
292
+ type FeeDistributorConstructorParams =
293
+ | [signer?: Signer]
294
+ | ConstructorParameters<typeof ContractFactory>;
295
+
296
+ const isSuperArgs = (
297
+ xs: FeeDistributorConstructorParams
298
+ ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
299
+
300
+ export class FeeDistributor__factory extends ContractFactory {
301
+ constructor(...args: FeeDistributorConstructorParams) {
302
+ if (isSuperArgs(args)) {
303
+ super(...args);
304
+ } else {
305
+ super(_abi, _bytecode, args[0]);
306
+ }
307
+ this.contractName = "FeeDistributor";
308
+ }
309
+
310
+ deploy(
311
+ overrides?: Overrides & { from?: string | Promise<string> }
312
+ ): Promise<FeeDistributor> {
313
+ return super.deploy(overrides || {}) as Promise<FeeDistributor>;
314
+ }
315
+ getDeployTransaction(
316
+ overrides?: Overrides & { from?: string | Promise<string> }
317
+ ): TransactionRequest {
318
+ return super.getDeployTransaction(overrides || {});
319
+ }
320
+ attach(address: string): FeeDistributor {
321
+ return super.attach(address) as FeeDistributor;
322
+ }
323
+ connect(signer: Signer): FeeDistributor__factory {
324
+ return super.connect(signer) as FeeDistributor__factory;
325
+ }
326
+ static readonly contractName: "FeeDistributor";
327
+ public readonly contractName: "FeeDistributor";
328
+ static readonly bytecode = _bytecode;
329
+ static readonly abi = _abi;
330
+ static createInterface(): FeeDistributorInterface {
331
+ return new utils.Interface(_abi) as FeeDistributorInterface;
332
+ }
333
+ static connect(
334
+ address: string,
335
+ signerOrProvider: Signer | Provider
336
+ ): FeeDistributor {
337
+ return new Contract(address, _abi, signerOrProvider) as FeeDistributor;
338
+ }
339
+ }