Remove TokenTimelock, PaymentSplitter, ERC20Snapshot, ERC20VotesComp, GovernorVotesComp (#4276)
This commit is contained in:
@ -1,20 +0,0 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
pragma solidity ^0.8.0;
|
||||
|
||||
import "../../governance/extensions/GovernorCountingSimple.sol";
|
||||
import "../../governance/extensions/GovernorVotesComp.sol";
|
||||
|
||||
abstract contract GovernorCompMock is GovernorVotesComp, GovernorCountingSimple {
|
||||
function quorum(uint256) public pure override returns (uint256) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
function votingDelay() public pure override returns (uint256) {
|
||||
return 4;
|
||||
}
|
||||
|
||||
function votingPeriod() public pure override returns (uint256) {
|
||||
return 16;
|
||||
}
|
||||
}
|
||||
@ -5,13 +5,13 @@ pragma solidity ^0.8.0;
|
||||
import "../../governance/compatibility/GovernorCompatibilityBravo.sol";
|
||||
import "../../governance/extensions/GovernorTimelockCompound.sol";
|
||||
import "../../governance/extensions/GovernorSettings.sol";
|
||||
import "../../governance/extensions/GovernorVotesComp.sol";
|
||||
import "../../governance/extensions/GovernorVotes.sol";
|
||||
|
||||
abstract contract GovernorCompatibilityBravoMock is
|
||||
GovernorCompatibilityBravo,
|
||||
GovernorSettings,
|
||||
GovernorTimelockCompound,
|
||||
GovernorVotesComp
|
||||
GovernorVotes
|
||||
{
|
||||
function quorum(uint256) public pure override returns (uint256) {
|
||||
return 0;
|
||||
|
||||
@ -3,7 +3,6 @@
|
||||
pragma solidity ^0.8.0;
|
||||
|
||||
import "../../token/ERC20/extensions/ERC20Votes.sol";
|
||||
import "../../token/ERC20/extensions/ERC20VotesComp.sol";
|
||||
import "../../token/ERC721/extensions/ERC721Votes.sol";
|
||||
|
||||
abstract contract ERC20VotesTimestampMock is ERC20Votes {
|
||||
@ -17,17 +16,6 @@ abstract contract ERC20VotesTimestampMock is ERC20Votes {
|
||||
}
|
||||
}
|
||||
|
||||
abstract contract ERC20VotesCompTimestampMock is ERC20VotesComp {
|
||||
function clock() public view virtual override returns (uint48) {
|
||||
return SafeCast.toUint48(block.timestamp);
|
||||
}
|
||||
|
||||
// solhint-disable-next-line func-name-mixedcase
|
||||
function CLOCK_MODE() public view virtual override returns (string memory) {
|
||||
return "mode=timestamp";
|
||||
}
|
||||
}
|
||||
|
||||
abstract contract ERC721VotesTimestampMock is ERC721Votes {
|
||||
function clock() public view virtual override returns (uint48) {
|
||||
return SafeCast.toUint48(block.timestamp);
|
||||
|
||||
Reference in New Issue
Block a user