You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.6 KiB
51 lines
1.6 KiB
import "../../contracts/governance/extensions/GovernorVotes.sol";
|
|
|
|
contract GovernorVotesHarness is GovernorVotes {
|
|
|
|
mapping(uint256 => uint256) _quorum;
|
|
|
|
function quorum(uint256 blockNumber) public view override virtual returns (uint256) {
|
|
return _quorum[blockNumber];
|
|
}
|
|
|
|
mapping (uint256 => bool) __quoromReached;
|
|
function _quorumReached(uint256 proposalId) public view override virtual returns (bool) {
|
|
return __quoromReached[proposalId];
|
|
}
|
|
|
|
mapping (uint256 => bool) __voteSucceeded;
|
|
function _voteSucceeded(uint256 proposalId) public view override virtual returns (bool) {
|
|
return __voteSucceeded[proposalId];
|
|
}
|
|
|
|
//string _COUNTING_MODE;
|
|
function COUNTING_MODE() public pure override virtual returns (string memory) {
|
|
return "dummy";
|
|
}
|
|
|
|
mapping(uint256 => mapping(address => bool)) _hasVoted;
|
|
function hasVoted(uint256 proposalId, address account) public view override virtual returns (bool) {
|
|
return _hasVoted[proposalId][account];
|
|
}
|
|
|
|
uint256 _votingDelay;
|
|
function votingDelay() public view override virtual returns (uint256) {
|
|
return _votingDelay;
|
|
}
|
|
|
|
uint256 _votingPeriod;
|
|
function votingPeriod() public view override virtual returns (uint256) {
|
|
return _votingPeriod;
|
|
}
|
|
|
|
function _countVote(
|
|
uint256 proposalId,
|
|
address account,
|
|
uint8 support,
|
|
uint256 weight
|
|
) internal override virtual {
|
|
// havoc something
|
|
}
|
|
|
|
constructor(ERC20Votes tokenAddr, string memory name) GovernorVotes(tokenAddr) Governor(name) {}
|
|
} |