GovernorProposalThresholdUpgradeable.sol 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  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. }
  15. function __GovernorProposalThreshold_init_unchained() internal onlyInitializing {
  16. }
  17. function propose(
  18. address[] memory targets,
  19. uint256[] memory values,
  20. bytes[] memory calldatas,
  21. string memory description
  22. ) public virtual override returns (uint256) {
  23. return super.propose(targets, values, calldatas, description);
  24. }
  25. /**
  26. * @dev This empty reserved space is put in place to allow future versions to add new
  27. * variables without shifting down storage in the inheritance chain.
  28. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
  29. */
  30. uint256[50] private __gap;
  31. }