Skip to content

Commit 46b81b7

Browse files
committed
use timelock if we are executing code once a proposal passes
1 parent e53c0c3 commit 46b81b7

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

contracts/contracts/TimeLock.sol

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
pragma solidity ^0.8.0;
2+
3+
import "@openzeppelin/contracts/governance/TimelockController.sol";
4+
5+
contract TimeLock is TimelockController {
6+
// minDelay is how long you have to wait before executing
7+
// proposers is the list of addresses that can propose
8+
// executors is the list of addresses that can execute
9+
constructor(
10+
uint256 minDelay,
11+
address[] memory proposers,
12+
address[] memory executors
13+
) TimelockController(minDelay, proposers, executors) {}
14+
}

0 commit comments

Comments
 (0)