@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,211 @@
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
+ FeeDistributorVotingFactory,
8
+ FeeDistributorVotingFactoryInterface,
9
+ } from "../FeeDistributorVotingFactory";
10
+
11
+ const _abi = [
12
+ {
13
+ inputs: [
14
+ {
15
+ internalType: "address",
16
+ name: "_votingController",
17
+ type: "address",
18
+ },
19
+ ],
20
+ stateMutability: "nonpayable",
21
+ type: "constructor",
22
+ },
23
+ {
24
+ anonymous: false,
25
+ inputs: [
26
+ {
27
+ indexed: true,
28
+ internalType: "address",
29
+ name: "previousOwner",
30
+ type: "address",
31
+ },
32
+ {
33
+ indexed: true,
34
+ internalType: "address",
35
+ name: "newOwner",
36
+ type: "address",
37
+ },
38
+ ],
39
+ name: "OwnershipTransferred",
40
+ type: "event",
41
+ },
42
+ {
43
+ inputs: [],
44
+ name: "claimOwnership",
45
+ outputs: [],
46
+ stateMutability: "nonpayable",
47
+ type: "function",
48
+ },
49
+ {
50
+ inputs: [
51
+ {
52
+ internalType: "address",
53
+ name: "pool",
54
+ type: "address",
55
+ },
56
+ ],
57
+ name: "createFeeDistributor",
58
+ outputs: [],
59
+ stateMutability: "nonpayable",
60
+ type: "function",
61
+ },
62
+ {
63
+ inputs: [
64
+ {
65
+ internalType: "address",
66
+ name: "",
67
+ type: "address",
68
+ },
69
+ ],
70
+ name: "distributorOf",
71
+ outputs: [
72
+ {
73
+ internalType: "address",
74
+ name: "",
75
+ type: "address",
76
+ },
77
+ ],
78
+ stateMutability: "view",
79
+ type: "function",
80
+ },
81
+ {
82
+ inputs: [],
83
+ name: "initialize",
84
+ outputs: [],
85
+ stateMutability: "nonpayable",
86
+ type: "function",
87
+ },
88
+ {
89
+ inputs: [],
90
+ name: "owner",
91
+ outputs: [
92
+ {
93
+ internalType: "address",
94
+ name: "",
95
+ type: "address",
96
+ },
97
+ ],
98
+ stateMutability: "view",
99
+ type: "function",
100
+ },
101
+ {
102
+ inputs: [],
103
+ name: "pendingOwner",
104
+ outputs: [
105
+ {
106
+ internalType: "address",
107
+ name: "",
108
+ type: "address",
109
+ },
110
+ ],
111
+ stateMutability: "view",
112
+ type: "function",
113
+ },
114
+ {
115
+ inputs: [
116
+ {
117
+ internalType: "address",
118
+ name: "newOwner",
119
+ type: "address",
120
+ },
121
+ {
122
+ internalType: "bool",
123
+ name: "direct",
124
+ type: "bool",
125
+ },
126
+ {
127
+ internalType: "bool",
128
+ name: "renounce",
129
+ type: "bool",
130
+ },
131
+ ],
132
+ name: "transferOwnership",
133
+ outputs: [],
134
+ stateMutability: "nonpayable",
135
+ type: "function",
136
+ },
137
+ {
138
+ inputs: [],
139
+ name: "votingController",
140
+ outputs: [
141
+ {
142
+ internalType: "address",
143
+ name: "",
144
+ type: "address",
145
+ },
146
+ ],
147
+ stateMutability: "view",
148
+ type: "function",
149
+ },
150
+ ];
151
+
152
+ const _bytecode =
153
+ "0x60a060405234801561001057600080fd5b50604051611c0c380380611c0c83398101604081905261002f91610040565b6001600160a01b0316608052610070565b60006020828403121561005257600080fd5b81516001600160a01b038116811461006957600080fd5b9392505050565b608051611b7b6100916000396000818160f7015261017c0152611b7b6000f3fe608060405234801561001057600080fd5b50600436106100785760003560e01c8063062e631e1461007d578063078dfbe7146100925780633f20b9b4146100a55780634e71e0c8146100ea578063517afbcf146100f25780638129fc1c146101195780638da5cb5b14610121578063e30c397814610134575b600080fd5b61009061008b366004610530565b610147565b005b6100906100a0366004610562565b61020a565b6100ce6100b3366004610530565b6032602052600090815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b610090610307565b6100ce7f000000000000000000000000000000000000000000000000000000000000000081565b6100906103b2565b6000546100ce906001600160a01b031681565b6001546100ce906001600160a01b031681565b6000546001600160a01b0316331461017a5760405162461bcd60e51b8152600401610171906105a5565b60405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000000816040516101a890610507565b6001600160a01b03928316815291166020820152604001604051809103906000f0801580156101db573d6000803e3d6000fd5b506001600160a01b03918216600090815260326020526040902080546001600160a01b03191691909216179055565b6000546001600160a01b031633146102345760405162461bcd60e51b8152600401610171906105a5565b81156102e5576001600160a01b03831615158061024e5750805b6102925760405162461bcd60e51b81526020600482015260156024820152744f776e61626c653a207a65726f206164647265737360581b6044820152606401610171565b600080546040516001600160a01b0380871693921691600080516020611b2683398151915291a3600080546001600160a01b0385166001600160a01b031991821617909155600180549091169055505050565b600180546001600160a01b0385166001600160a01b0319909116179055505050565b6001546001600160a01b03163381146103625760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c657220213d2070656e64696e67206f776e65726044820152606401610171565b600080546040516001600160a01b0380851693921691600080516020611b2683398151915291a3600080546001600160a01b039092166001600160a01b0319928316179055600180549091169055565b600154600160a81b900460ff166103d657600154600160a01b900460ff16156103da565b303b155b61043d5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610171565b600154600160a81b900460ff16158015610467576001805461ffff60a01b191661010160a01b1790555b61046f610486565b8015610483576001805460ff60a81b191690555b50565b600154600160a81b900460ff166104f35760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610171565b600080546001600160a01b03191633179055565b61154b806105db83390190565b80356001600160a01b038116811461052b57600080fd5b919050565b60006020828403121561054257600080fd5b61054b82610514565b9392505050565b8035801515811461052b57600080fd5b60008060006060848603121561057757600080fd5b61058084610514565b925061058e60208501610552565b915061059c60408501610552565b90509250925092565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260408201526060019056fe60e06040523480156200001157600080fd5b506040516200154b3803806200154b8339810160408190526200003491620000c0565b620000496200006d60201b620003b61760201c565b6001600160801b03166080526001600160a01b0391821660a0521660c0526200016b565b60006200007a426200007f565b905090565b600062093a80620000918184620000f8565b6200009d91906200012d565b92915050565b80516001600160a01b0381168114620000bb57600080fd5b919050565b60008060408385031215620000d457600080fd5b620000df83620000a3565b9150620000ef60208401620000a3565b90509250929050565b60006001600160801b03838116806200012157634e487b7160e01b600052601260045260246000fd5b92169190910492915050565b60006001600160801b03828116848216811515828404821116156200016257634e487b7160e01b600052601160045260246000fd5b02949350505050565b60805160a05160c05161136c620001df60003960008181608c0152818161046801528181610741015281816109950152610a7b01526000818160ea0152818161043b0152818161078e015281816109c00152610a4c015260008181610111015281816102820152610511015261136c6000f3fe608060405234801561001057600080fd5b506004361061006d5760003560e01c80630af6ce851461007257806316f0115b146100875780634953c782146100c4578063517afbcf146100e55780639cb8d6341461010c578063ad2ee5f514610133578063edf0923214610146575b600080fd5b610085610080366004610dbd565b610171565b005b6100ae7f000000000000000000000000000000000000000000000000000000000000000081565b6040516100bb9190610df0565b60405180910390f35b6100d76100d2366004610e04565b610216565b6040519081526020016100bb565b6100ae7f000000000000000000000000000000000000000000000000000000000000000081565b6100d77f000000000000000000000000000000000000000000000000000000000000000081565b610085610141366004610e37565b6103aa565b6100d7610154366004610e52565b600360209081526000928352604080842090915290825290205481565b600061017b6103b6565b6001600160801b0316905060006101928385610ea1565b905060005b838110156101f9576101ac62093a8084610eb5565b60008181526003602090815260408083206001600160a01b038b1684529091528120805492955084929091906101e3908490610eb5565b909155506101f2905081610ecd565b9050610197565b5061020f6001600160a01b0386163330876103c6565b5050505050565b6000610220610424565b610229836104be565b60006102336103b6565b6001600160a01b038086166000908152600160209081526040808320938816835292905220549091506001600160801b0382168103610277576000925050506103a4565b806000036102a257507f00000000000000000000000000000000000000000000000000000000000000005b816001600160801b0316811015610356576102c062093a8082610eb5565b6001600160a01b03861660009081526002602090815260408083208484529091528120549192508190036102f457506102a2565b60008281526003602090815260408083206001600160a01b0389168452909152812054908190036103265750506102a2565b61032f836106fe565b6103398284610ee6565b6103439190610ea1565b61034d9086610eb5565b945050506102a2565b6001600160a01b0380861660009081526001602090815260408083209388168352929052206001600160801b038316905582156103a1576103a16001600160a01b0385168685610850565b50505b92915050565b6103b3816104be565b50565b60006103c142610885565b905090565b61041e846323b872dd60e01b8585856040516024016103e793929190610f05565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261089f565b50505050565b604051630e2e1d9760e21b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906338b8765c90610490907f000000000000000000000000000000000000000000000000000000000000000090600401610df0565b600060405180830381600087803b1580156104aa57600080fd5b505af115801561041e573d6000803e3d6000fd5b60006104c86103b6565b6001600160a01b0383166000908152602081905260409020549091506001600160801b0390811690821681036104fd57505050565b806001600160801b031660000361053157507f00000000000000000000000000000000000000000000000000000000000000005b600061053c84610976565b9050806000036105815750506001600160a01b0391909116600090815260208190526040902080546001600160801b0319166001600160801b03909216919091179055565b6001600160a01b038416600090815260208190526040812054600160801b90046001600160801b0316906105b58683610a2d565b90506105bf610d52565b836105cb846001610f29565b6001600160801b031610156105fa576105f7876105e9856001610f29565b6001600160801b0316610a2d565b90505b856001600160801b0316856001600160801b031610156106aa5761062162093a8086610f29565b945061063187858585858a610aed565b925081600001516001600160801b0316856001600160801b0316106106a55760208201516000906106629087610b7a565b6001600160801b0316905080156106a3576001600160a01b03881660009081526002602090815260408083206001600160801b038a16845290915290208190555b505b6105fa565b50506040805180820182526001600160801b03958616815291851660208084019182526001600160a01b039097166000908152968790529520905194518416600160801b0294909316939093179091555050565b600061071161070c83610b98565b610bb2565b61071d5761071d610f54565b604080516001808252818301909252600091602080830190803683370190505090507f00000000000000000000000000000000000000000000000000000000000000008160008151811061077357610773610f80565b6001600160a01b0392831660209182029290920101526000907f000000000000000000000000000000000000000000000000000000000000000016638d66c2846107bc86610b98565b846040518363ffffffff1660e01b81526004016107da929190610f96565b600060405180830381865afa1580156107f7573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261081f9190810190611074565b925050508060008151811061083657610836610f80565b60200260200101516001600160801b031692505050919050565b6040516001600160a01b03831660248201526044810182905261088090849063a9059cbb60e01b906064016103e7565b505050565b600062093a806108958184611144565b6103a4919061116a565b60006108f4826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610bd19092919063ffffffff16565b80519091501561088057808060200190518101906109129190611199565b6108805760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084015b60405180910390fd5b604051633575141360e11b81526001600160a01b0382811660048301527f0000000000000000000000000000000000000000000000000000000000000000811660248301526000917f000000000000000000000000000000000000000000000000000000000000000090911690636aea282690604401602060405180830381865afa158015610a09573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103a491906111b4565b610a35610d52565b60405163632c096d60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063632c096d90610aa59086907f0000000000000000000000000000000000000000000000000000000000000000908790600401610f05565b606060405180830381865afa158015610ac2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae691906111cd565b9392505050565b60005b85610afc866001610f29565b6001600160801b0316108015610b28575082600001516001600160801b0316826001600160801b031610155b15610b6f5782935085856002610b3e9190610f29565b6001600160801b03161015610b5f57610b5c876105e9876002610f29565b92505b610b688561123f565b9450610af0565b509295945050505050565b6000818360200151610b8c919061116a565b8351610ae6919061126d565b60006001600160801b03821115610bae57600080fd5b5090565b6000610bc162093a8083611295565b6001600160801b03161592915050565b6060610be08484600085610be8565b949350505050565b606082471015610c495760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161096d565b6001600160a01b0385163b610ca05760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161096d565b600080866001600160a01b03168587604051610cbc91906112e7565b60006040518083038185875af1925050503d8060008114610cf9576040519150601f19603f3d011682016040523d82523d6000602084013e610cfe565b606091505b5091509150610d0e828286610d19565b979650505050505050565b60608315610d28575081610ae6565b825115610d385782518084602001fd5b8160405162461bcd60e51b815260040161096d9190611303565b604051806040016040528060006001600160801b03168152602001610d9c604051806040016040528060006001600160801b0316815260200160006001600160801b031681525090565b905290565b80356001600160a01b0381168114610db857600080fd5b919050565b600080600060608486031215610dd257600080fd5b610ddb84610da1565b95602085013595506040909401359392505050565b6001600160a01b0391909116815260200190565b60008060408385031215610e1757600080fd5b610e2083610da1565b9150610e2e60208401610da1565b90509250929050565b600060208284031215610e4957600080fd5b610ae682610da1565b60008060408385031215610e6557600080fd5b82359150610e2e60208401610da1565b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082610eb057610eb0610e75565b500490565b60008219821115610ec857610ec8610e8b565b500190565b600060018201610edf57610edf610e8b565b5060010190565b6000816000190483118215151615610f0057610f00610e8b565b500290565b6001600160a01b039384168152919092166020820152604081019190915260600190565b60006001600160801b03828116848216808303821115610f4b57610f4b610e8b565b01949350505050565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6001600160801b038316815260406020808301829052835191830182905260009184820191906060850190845b81811015610fe85784516001600160a01b031683529383019391830191600101610fc3565b5090979650505050505050565b80518015158114610db857600080fd5b80516001600160801b0381168114610db857600080fd5b604080519081016001600160401b038111828210171561103e5761103e610f6a565b60405290565b604051601f8201601f191681016001600160401b038111828210171561106c5761106c610f6a565b604052919050565b60008060006060848603121561108957600080fd5b61109284610ff5565b925060206110a1818601611005565b60408601519093506001600160401b03808211156110be57600080fd5b818701915087601f8301126110d257600080fd5b8151818111156110e4576110e4610f6a565b8060051b91506110f5848301611044565b818152918301840191848101908a84111561110f57600080fd5b938501935b838510156111345761112585611005565b82529385019390850190611114565b8096505050505050509250925092565b60006001600160801b038381168061115e5761115e610e75565b92169190910492915050565b60006001600160801b038281168482168115158284048211161561119057611190610e8b565b02949350505050565b6000602082840312156111ab57600080fd5b610ae682610ff5565b6000602082840312156111c657600080fd5b5051919050565b600081830360608112156111e057600080fd5b6111e861101c565b6111f184611005565b81526040601f198301121561120557600080fd5b61120d61101c565b915061121b60208501611005565b825261122960408501611005565b6020830152816020820152809250505092915050565b60006001600160801b038281166002600160801b0319810161126357611263610e8b565b6001019392505050565b60006001600160801b038381169083168181101561128d5761128d610e8b565b039392505050565b60006001600160801b03838116806112af576112af610e75565b92169190910692915050565b60005b838110156112d65781810151838201526020016112be565b8381111561041e5750506000910152565b600082516112f98184602087016112bb565b9190910192915050565b60208152600082518060208401526113228160408501602087016112bb565b601f01601f1916919091016040019291505056fea26469706673582212207f6307b1335e8b999af69132d2ff3fc26205d9a4c7810539f20433e35210c15764736f6c634300080f00338be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0a26469706673582212208bab0164e9657e0099736604e5560ed80d96e799074ab43d98579d5a339d9edb64736f6c634300080f0033";
154
+
155
+ type FeeDistributorVotingFactoryConstructorParams =
156
+ | [signer?: Signer]
157
+ | ConstructorParameters<typeof ContractFactory>;
158
+
159
+ const isSuperArgs = (
160
+ xs: FeeDistributorVotingFactoryConstructorParams
161
+ ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
162
+
163
+ export class FeeDistributorVotingFactory__factory extends ContractFactory {
164
+ constructor(...args: FeeDistributorVotingFactoryConstructorParams) {
165
+ if (isSuperArgs(args)) {
166
+ super(...args);
167
+ } else {
168
+ super(_abi, _bytecode, args[0]);
169
+ }
170
+ this.contractName = "FeeDistributorVotingFactory";
171
+ }
172
+
173
+ deploy(
174
+ _votingController: string,
175
+ overrides?: Overrides & { from?: string | Promise<string> }
176
+ ): Promise<FeeDistributorVotingFactory> {
177
+ return super.deploy(
178
+ _votingController,
179
+ overrides || {}
180
+ ) as Promise<FeeDistributorVotingFactory>;
181
+ }
182
+ getDeployTransaction(
183
+ _votingController: string,
184
+ overrides?: Overrides & { from?: string | Promise<string> }
185
+ ): TransactionRequest {
186
+ return super.getDeployTransaction(_votingController, overrides || {});
187
+ }
188
+ attach(address: string): FeeDistributorVotingFactory {
189
+ return super.attach(address) as FeeDistributorVotingFactory;
190
+ }
191
+ connect(signer: Signer): FeeDistributorVotingFactory__factory {
192
+ return super.connect(signer) as FeeDistributorVotingFactory__factory;
193
+ }
194
+ static readonly contractName: "FeeDistributorVotingFactory";
195
+ public readonly contractName: "FeeDistributorVotingFactory";
196
+ static readonly bytecode = _bytecode;
197
+ static readonly abi = _abi;
198
+ static createInterface(): FeeDistributorVotingFactoryInterface {
199
+ return new utils.Interface(_abi) as FeeDistributorVotingFactoryInterface;
200
+ }
201
+ static connect(
202
+ address: string,
203
+ signerOrProvider: Signer | Provider
204
+ ): FeeDistributorVotingFactory {
205
+ return new Contract(
206
+ address,
207
+ _abi,
208
+ signerOrProvider
209
+ ) as FeeDistributorVotingFactory;
210
+ }
211
+ }
@@ -0,0 +1,219 @@
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
+ FeeDistributorVoting,
8
+ FeeDistributorVotingInterface,
9
+ } from "../FeeDistributorVoting";
10
+
11
+ const _abi = [
12
+ {
13
+ inputs: [
14
+ {
15
+ internalType: "address",
16
+ name: "_votingController",
17
+ type: "address",
18
+ },
19
+ {
20
+ internalType: "address",
21
+ name: "_pool",
22
+ type: "address",
23
+ },
24
+ ],
25
+ stateMutability: "nonpayable",
26
+ type: "constructor",
27
+ },
28
+ {
29
+ inputs: [
30
+ {
31
+ internalType: "address",
32
+ name: "user",
33
+ type: "address",
34
+ },
35
+ {
36
+ internalType: "address",
37
+ name: "rewardToken",
38
+ type: "address",
39
+ },
40
+ ],
41
+ name: "claimReward",
42
+ outputs: [
43
+ {
44
+ internalType: "uint256",
45
+ name: "amountRewardOut",
46
+ type: "uint256",
47
+ },
48
+ ],
49
+ stateMutability: "nonpayable",
50
+ type: "function",
51
+ },
52
+ {
53
+ inputs: [],
54
+ name: "deployedEpoch",
55
+ outputs: [
56
+ {
57
+ internalType: "uint256",
58
+ name: "",
59
+ type: "uint256",
60
+ },
61
+ ],
62
+ stateMutability: "view",
63
+ type: "function",
64
+ },
65
+ {
66
+ inputs: [
67
+ {
68
+ internalType: "address",
69
+ name: "rewardToken",
70
+ type: "address",
71
+ },
72
+ {
73
+ internalType: "uint256",
74
+ name: "amount",
75
+ type: "uint256",
76
+ },
77
+ {
78
+ internalType: "uint256",
79
+ name: "numEpoch",
80
+ type: "uint256",
81
+ },
82
+ ],
83
+ name: "fund",
84
+ outputs: [],
85
+ stateMutability: "nonpayable",
86
+ type: "function",
87
+ },
88
+ {
89
+ inputs: [
90
+ {
91
+ internalType: "uint256",
92
+ name: "",
93
+ type: "uint256",
94
+ },
95
+ {
96
+ internalType: "address",
97
+ name: "",
98
+ type: "address",
99
+ },
100
+ ],
101
+ name: "incentivesForEpoch",
102
+ outputs: [
103
+ {
104
+ internalType: "uint256",
105
+ name: "",
106
+ type: "uint256",
107
+ },
108
+ ],
109
+ stateMutability: "view",
110
+ type: "function",
111
+ },
112
+ {
113
+ inputs: [],
114
+ name: "pool",
115
+ outputs: [
116
+ {
117
+ internalType: "address",
118
+ name: "",
119
+ type: "address",
120
+ },
121
+ ],
122
+ stateMutability: "view",
123
+ type: "function",
124
+ },
125
+ {
126
+ inputs: [
127
+ {
128
+ internalType: "address",
129
+ name: "user",
130
+ type: "address",
131
+ },
132
+ ],
133
+ name: "updateUserShare",
134
+ outputs: [],
135
+ stateMutability: "nonpayable",
136
+ type: "function",
137
+ },
138
+ {
139
+ inputs: [],
140
+ name: "votingController",
141
+ outputs: [
142
+ {
143
+ internalType: "address",
144
+ name: "",
145
+ type: "address",
146
+ },
147
+ ],
148
+ stateMutability: "view",
149
+ type: "function",
150
+ },
151
+ ];
152
+
153
+ const _bytecode =
154
+ "0x60e06040523480156200001157600080fd5b506040516200154b3803806200154b8339810160408190526200003491620000c0565b620000496200006d60201b620003b61760201c565b6001600160801b03166080526001600160a01b0391821660a0521660c0526200016b565b60006200007a426200007f565b905090565b600062093a80620000918184620000f8565b6200009d91906200012d565b92915050565b80516001600160a01b0381168114620000bb57600080fd5b919050565b60008060408385031215620000d457600080fd5b620000df83620000a3565b9150620000ef60208401620000a3565b90509250929050565b60006001600160801b03838116806200012157634e487b7160e01b600052601260045260246000fd5b92169190910492915050565b60006001600160801b03828116848216811515828404821116156200016257634e487b7160e01b600052601160045260246000fd5b02949350505050565b60805160a05160c05161136c620001df60003960008181608c0152818161046801528181610741015281816109950152610a7b01526000818160ea0152818161043b0152818161078e015281816109c00152610a4c015260008181610111015281816102820152610511015261136c6000f3fe608060405234801561001057600080fd5b506004361061006d5760003560e01c80630af6ce851461007257806316f0115b146100875780634953c782146100c4578063517afbcf146100e55780639cb8d6341461010c578063ad2ee5f514610133578063edf0923214610146575b600080fd5b610085610080366004610dbd565b610171565b005b6100ae7f000000000000000000000000000000000000000000000000000000000000000081565b6040516100bb9190610df0565b60405180910390f35b6100d76100d2366004610e04565b610216565b6040519081526020016100bb565b6100ae7f000000000000000000000000000000000000000000000000000000000000000081565b6100d77f000000000000000000000000000000000000000000000000000000000000000081565b610085610141366004610e37565b6103aa565b6100d7610154366004610e52565b600360209081526000928352604080842090915290825290205481565b600061017b6103b6565b6001600160801b0316905060006101928385610ea1565b905060005b838110156101f9576101ac62093a8084610eb5565b60008181526003602090815260408083206001600160a01b038b1684529091528120805492955084929091906101e3908490610eb5565b909155506101f2905081610ecd565b9050610197565b5061020f6001600160a01b0386163330876103c6565b5050505050565b6000610220610424565b610229836104be565b60006102336103b6565b6001600160a01b038086166000908152600160209081526040808320938816835292905220549091506001600160801b0382168103610277576000925050506103a4565b806000036102a257507f00000000000000000000000000000000000000000000000000000000000000005b816001600160801b0316811015610356576102c062093a8082610eb5565b6001600160a01b03861660009081526002602090815260408083208484529091528120549192508190036102f457506102a2565b60008281526003602090815260408083206001600160a01b0389168452909152812054908190036103265750506102a2565b61032f836106fe565b6103398284610ee6565b6103439190610ea1565b61034d9086610eb5565b945050506102a2565b6001600160a01b0380861660009081526001602090815260408083209388168352929052206001600160801b038316905582156103a1576103a16001600160a01b0385168685610850565b50505b92915050565b6103b3816104be565b50565b60006103c142610885565b905090565b61041e846323b872dd60e01b8585856040516024016103e793929190610f05565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261089f565b50505050565b604051630e2e1d9760e21b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906338b8765c90610490907f000000000000000000000000000000000000000000000000000000000000000090600401610df0565b600060405180830381600087803b1580156104aa57600080fd5b505af115801561041e573d6000803e3d6000fd5b60006104c86103b6565b6001600160a01b0383166000908152602081905260409020549091506001600160801b0390811690821681036104fd57505050565b806001600160801b031660000361053157507f00000000000000000000000000000000000000000000000000000000000000005b600061053c84610976565b9050806000036105815750506001600160a01b0391909116600090815260208190526040902080546001600160801b0319166001600160801b03909216919091179055565b6001600160a01b038416600090815260208190526040812054600160801b90046001600160801b0316906105b58683610a2d565b90506105bf610d52565b836105cb846001610f29565b6001600160801b031610156105fa576105f7876105e9856001610f29565b6001600160801b0316610a2d565b90505b856001600160801b0316856001600160801b031610156106aa5761062162093a8086610f29565b945061063187858585858a610aed565b925081600001516001600160801b0316856001600160801b0316106106a55760208201516000906106629087610b7a565b6001600160801b0316905080156106a3576001600160a01b03881660009081526002602090815260408083206001600160801b038a16845290915290208190555b505b6105fa565b50506040805180820182526001600160801b03958616815291851660208084019182526001600160a01b039097166000908152968790529520905194518416600160801b0294909316939093179091555050565b600061071161070c83610b98565b610bb2565b61071d5761071d610f54565b604080516001808252818301909252600091602080830190803683370190505090507f00000000000000000000000000000000000000000000000000000000000000008160008151811061077357610773610f80565b6001600160a01b0392831660209182029290920101526000907f000000000000000000000000000000000000000000000000000000000000000016638d66c2846107bc86610b98565b846040518363ffffffff1660e01b81526004016107da929190610f96565b600060405180830381865afa1580156107f7573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261081f9190810190611074565b925050508060008151811061083657610836610f80565b60200260200101516001600160801b031692505050919050565b6040516001600160a01b03831660248201526044810182905261088090849063a9059cbb60e01b906064016103e7565b505050565b600062093a806108958184611144565b6103a4919061116a565b60006108f4826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610bd19092919063ffffffff16565b80519091501561088057808060200190518101906109129190611199565b6108805760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084015b60405180910390fd5b604051633575141360e11b81526001600160a01b0382811660048301527f0000000000000000000000000000000000000000000000000000000000000000811660248301526000917f000000000000000000000000000000000000000000000000000000000000000090911690636aea282690604401602060405180830381865afa158015610a09573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103a491906111b4565b610a35610d52565b60405163632c096d60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063632c096d90610aa59086907f0000000000000000000000000000000000000000000000000000000000000000908790600401610f05565b606060405180830381865afa158015610ac2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae691906111cd565b9392505050565b60005b85610afc866001610f29565b6001600160801b0316108015610b28575082600001516001600160801b0316826001600160801b031610155b15610b6f5782935085856002610b3e9190610f29565b6001600160801b03161015610b5f57610b5c876105e9876002610f29565b92505b610b688561123f565b9450610af0565b509295945050505050565b6000818360200151610b8c919061116a565b8351610ae6919061126d565b60006001600160801b03821115610bae57600080fd5b5090565b6000610bc162093a8083611295565b6001600160801b03161592915050565b6060610be08484600085610be8565b949350505050565b606082471015610c495760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161096d565b6001600160a01b0385163b610ca05760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161096d565b600080866001600160a01b03168587604051610cbc91906112e7565b60006040518083038185875af1925050503d8060008114610cf9576040519150601f19603f3d011682016040523d82523d6000602084013e610cfe565b606091505b5091509150610d0e828286610d19565b979650505050505050565b60608315610d28575081610ae6565b825115610d385782518084602001fd5b8160405162461bcd60e51b815260040161096d9190611303565b604051806040016040528060006001600160801b03168152602001610d9c604051806040016040528060006001600160801b0316815260200160006001600160801b031681525090565b905290565b80356001600160a01b0381168114610db857600080fd5b919050565b600080600060608486031215610dd257600080fd5b610ddb84610da1565b95602085013595506040909401359392505050565b6001600160a01b0391909116815260200190565b60008060408385031215610e1757600080fd5b610e2083610da1565b9150610e2e60208401610da1565b90509250929050565b600060208284031215610e4957600080fd5b610ae682610da1565b60008060408385031215610e6557600080fd5b82359150610e2e60208401610da1565b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082610eb057610eb0610e75565b500490565b60008219821115610ec857610ec8610e8b565b500190565b600060018201610edf57610edf610e8b565b5060010190565b6000816000190483118215151615610f0057610f00610e8b565b500290565b6001600160a01b039384168152919092166020820152604081019190915260600190565b60006001600160801b03828116848216808303821115610f4b57610f4b610e8b565b01949350505050565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6001600160801b038316815260406020808301829052835191830182905260009184820191906060850190845b81811015610fe85784516001600160a01b031683529383019391830191600101610fc3565b5090979650505050505050565b80518015158114610db857600080fd5b80516001600160801b0381168114610db857600080fd5b604080519081016001600160401b038111828210171561103e5761103e610f6a565b60405290565b604051601f8201601f191681016001600160401b038111828210171561106c5761106c610f6a565b604052919050565b60008060006060848603121561108957600080fd5b61109284610ff5565b925060206110a1818601611005565b60408601519093506001600160401b03808211156110be57600080fd5b818701915087601f8301126110d257600080fd5b8151818111156110e4576110e4610f6a565b8060051b91506110f5848301611044565b818152918301840191848101908a84111561110f57600080fd5b938501935b838510156111345761112585611005565b82529385019390850190611114565b8096505050505050509250925092565b60006001600160801b038381168061115e5761115e610e75565b92169190910492915050565b60006001600160801b038281168482168115158284048211161561119057611190610e8b565b02949350505050565b6000602082840312156111ab57600080fd5b610ae682610ff5565b6000602082840312156111c657600080fd5b5051919050565b600081830360608112156111e057600080fd5b6111e861101c565b6111f184611005565b81526040601f198301121561120557600080fd5b61120d61101c565b915061121b60208501611005565b825261122960408501611005565b6020830152816020820152809250505092915050565b60006001600160801b038281166002600160801b0319810161126357611263610e8b565b6001019392505050565b60006001600160801b038381169083168181101561128d5761128d610e8b565b039392505050565b60006001600160801b03838116806112af576112af610e75565b92169190910692915050565b60005b838110156112d65781810151838201526020016112be565b8381111561041e5750506000910152565b600082516112f98184602087016112bb565b9190910192915050565b60208152600082518060208401526113228160408501602087016112bb565b601f01601f1916919091016040019291505056fea26469706673582212207f6307b1335e8b999af69132d2ff3fc26205d9a4c7810539f20433e35210c15764736f6c634300080f0033";
155
+
156
+ type FeeDistributorVotingConstructorParams =
157
+ | [signer?: Signer]
158
+ | ConstructorParameters<typeof ContractFactory>;
159
+
160
+ const isSuperArgs = (
161
+ xs: FeeDistributorVotingConstructorParams
162
+ ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
163
+
164
+ export class FeeDistributorVoting__factory extends ContractFactory {
165
+ constructor(...args: FeeDistributorVotingConstructorParams) {
166
+ if (isSuperArgs(args)) {
167
+ super(...args);
168
+ } else {
169
+ super(_abi, _bytecode, args[0]);
170
+ }
171
+ this.contractName = "FeeDistributorVoting";
172
+ }
173
+
174
+ deploy(
175
+ _votingController: string,
176
+ _pool: string,
177
+ overrides?: Overrides & { from?: string | Promise<string> }
178
+ ): Promise<FeeDistributorVoting> {
179
+ return super.deploy(
180
+ _votingController,
181
+ _pool,
182
+ overrides || {}
183
+ ) as Promise<FeeDistributorVoting>;
184
+ }
185
+ getDeployTransaction(
186
+ _votingController: string,
187
+ _pool: string,
188
+ overrides?: Overrides & { from?: string | Promise<string> }
189
+ ): TransactionRequest {
190
+ return super.getDeployTransaction(
191
+ _votingController,
192
+ _pool,
193
+ overrides || {}
194
+ );
195
+ }
196
+ attach(address: string): FeeDistributorVoting {
197
+ return super.attach(address) as FeeDistributorVoting;
198
+ }
199
+ connect(signer: Signer): FeeDistributorVoting__factory {
200
+ return super.connect(signer) as FeeDistributorVoting__factory;
201
+ }
202
+ static readonly contractName: "FeeDistributorVoting";
203
+ public readonly contractName: "FeeDistributorVoting";
204
+ static readonly bytecode = _bytecode;
205
+ static readonly abi = _abi;
206
+ static createInterface(): FeeDistributorVotingInterface {
207
+ return new utils.Interface(_abi) as FeeDistributorVotingInterface;
208
+ }
209
+ static connect(
210
+ address: string,
211
+ signerOrProvider: Signer | Provider
212
+ ): FeeDistributorVoting {
213
+ return new Contract(
214
+ address,
215
+ _abi,
216
+ signerOrProvider
217
+ ) as FeeDistributorVoting;
218
+ }
219
+ }
@@ -0,0 +1,166 @@
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
+ IPFeeDistributor,
9
+ IPFeeDistributorInterface,
10
+ } from "../IPFeeDistributor";
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
+ {
96
+ internalType: "address",
97
+ name: "rewardToken",
98
+ type: "address",
99
+ },
100
+ {
101
+ internalType: "uint256",
102
+ name: "amount",
103
+ type: "uint256",
104
+ },
105
+ {
106
+ internalType: "uint256",
107
+ name: "numEpoch",
108
+ type: "uint256",
109
+ },
110
+ ],
111
+ name: "fund",
112
+ outputs: [],
113
+ stateMutability: "nonpayable",
114
+ type: "function",
115
+ },
116
+ {
117
+ inputs: [
118
+ {
119
+ internalType: "uint256",
120
+ name: "epoch",
121
+ type: "uint256",
122
+ },
123
+ {
124
+ internalType: "address",
125
+ name: "rewardToken",
126
+ type: "address",
127
+ },
128
+ ],
129
+ name: "incentivesForEpoch",
130
+ outputs: [
131
+ {
132
+ internalType: "uint256",
133
+ name: "",
134
+ type: "uint256",
135
+ },
136
+ ],
137
+ stateMutability: "nonpayable",
138
+ type: "function",
139
+ },
140
+ {
141
+ inputs: [
142
+ {
143
+ internalType: "address",
144
+ name: "user",
145
+ type: "address",
146
+ },
147
+ ],
148
+ name: "updateUserShare",
149
+ outputs: [],
150
+ stateMutability: "nonpayable",
151
+ type: "function",
152
+ },
153
+ ];
154
+
155
+ export class IPFeeDistributor__factory {
156
+ static readonly abi = _abi;
157
+ static createInterface(): IPFeeDistributorInterface {
158
+ return new utils.Interface(_abi) as IPFeeDistributorInterface;
159
+ }
160
+ static connect(
161
+ address: string,
162
+ signerOrProvider: Signer | Provider
163
+ ): IPFeeDistributor {
164
+ return new Contract(address, _abi, signerOrProvider) as IPFeeDistributor;
165
+ }
166
+ }