Files
openzeppelin-contracts/contracts/mocks/governance/GovernorVotesSuperQuorumFractionMock.sol
Hadrien Croubois 887697148d Release v5.3 cherrypick #2 (#5526)
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Co-authored-by: Ernesto García <ernestognw@gmail.com>
Co-authored-by: Arr00 <13561405+arr00@users.noreply.github.com>
Co-authored-by: Voronor <129545215+voronor@users.noreply.github.com>
Co-authored-by: StackOverflowExcept1on <109800286+StackOverflowExcept1on@users.noreply.github.com>
Co-authored-by: Michalis Kargakis <kargakis@protonmail.com>
2025-03-03 07:51:41 -07:00

38 lines
1.3 KiB
Solidity

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import {Governor} from "../../governance/Governor.sol";
import {GovernorSettings} from "../../governance/extensions/GovernorSettings.sol";
import {GovernorSuperQuorum} from "../../governance/extensions/GovernorSuperQuorum.sol";
import {GovernorCountingSimple} from "../../governance/extensions/GovernorCountingSimple.sol";
import {GovernorVotesSuperQuorumFraction} from "../../governance/extensions/GovernorVotesSuperQuorumFraction.sol";
abstract contract GovernorVotesSuperQuorumFractionMock is
GovernorSettings,
GovernorVotesSuperQuorumFraction,
GovernorCountingSimple
{
function proposalThreshold() public view override(Governor, GovernorSettings) returns (uint256) {
return super.proposalThreshold();
}
function proposalVotes(
uint256 proposalId
)
public
view
virtual
override(GovernorCountingSimple, GovernorSuperQuorum)
returns (uint256 againstVotes, uint256 forVotes, uint256 abstainVotes)
{
return super.proposalVotes(proposalId);
}
function state(
uint256 proposalId
) public view override(Governor, GovernorVotesSuperQuorumFraction) returns (ProposalState) {
return super.state(proposalId);
}
}