Add timestamp based governor with EIP-6372 and EIP-5805 (#3934)
Co-authored-by: Francisco Giordano <fg@frang.io> Co-authored-by: Ernesto García <ernestognw@gmail.com> Co-authored-by: Francisco <frangio.1@gmail.com>
This commit is contained in:
9
contracts/interfaces/IERC5805.sol
Normal file
9
contracts/interfaces/IERC5805.sol
Normal file
@ -0,0 +1,9 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// OpenZeppelin Contracts (interfaces/IERC5805.sol)
|
||||
|
||||
pragma solidity ^0.8.0;
|
||||
|
||||
import "../governance/utils/IVotes.sol";
|
||||
import "./IERC6372.sol";
|
||||
|
||||
interface IERC5805 is IERC6372, IVotes {}
|
||||
17
contracts/interfaces/IERC6372.sol
Normal file
17
contracts/interfaces/IERC6372.sol
Normal file
@ -0,0 +1,17 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// OpenZeppelin Contracts (interfaces/IERC6372.sol)
|
||||
|
||||
pragma solidity ^0.8.0;
|
||||
|
||||
interface IERC6372 {
|
||||
/**
|
||||
* @dev Clock used for flagging checkpoints. Can be overridden to implement timestamp based checkpoints (and voting).
|
||||
*/
|
||||
function clock() external view returns (uint48);
|
||||
|
||||
/**
|
||||
* @dev Description of the clock
|
||||
*/
|
||||
// solhint-disable-next-line func-name-mixedcase
|
||||
function CLOCK_MODE() external view returns (string memory);
|
||||
}
|
||||
Reference in New Issue
Block a user