-
Notifications
You must be signed in to change notification settings - Fork 11.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
all governance test against blockNumber & timestamp modes
- Loading branch information
Showing
11 changed files
with
1,425 additions
and
1,345 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
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 { | ||
function clock() public view override returns (uint256) { | ||
return block.timestamp; | ||
} | ||
} | ||
|
||
abstract contract ERC20VotesCompTimestampMock is ERC20VotesComp { | ||
function clock() public view override returns (uint256) { | ||
return block.timestamp; | ||
} | ||
} | ||
|
||
abstract contract ERC721VotesTimestampMock is ERC721Votes { | ||
function clock() public view override returns (uint256) { | ||
return block.timestamp; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.