GovernorProposalThresholdUpgradeable.sol 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. // SPDX-License-Identifier: MIT
  2. // OpenZeppelin Contracts v4.4.1 (governance/extensions/GovernorProposalThreshold.sol)
  3. pragma solidity ^0.8.0;
  4. import "../GovernorUpgradeable.sol";
  5. import "../../proxy/utils/Initializable.sol";
  6. /**
  7. * @dev Extension of {Governor} for proposal restriction to token holders with a minimum balance.
  8. *
  9. * _Available since v4.3._
  10. * _Deprecated since v4.4._
  11. */
  12. abstract contract GovernorProposalThresholdUpgradeable is Initializable, GovernorUpgradeable {
  13. function __GovernorProposalThreshold_init() internal onlyInitializing {
  14. __Context_init_unchained();
  15. __ERC165_init_unchained();
  16. __IGovernor_init_unchained();
  17. __GovernorProposalThreshold_init_unchained();
  18. }
  19. function __GovernorProposalThreshold_init_unchained() internal onlyInitializing {
  20. }
  21. function propose(
  22. address[] memory targets,
  23. uint256[] memory values,
  24. bytes[] memory calldatas,
  25. string memory description
  26. ) public virtual override returns (uint256) {
  27. return super.propose(targets, values, calldatas, description);
  28. }
  29. uint256[50] private __gap;
  30. }