Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1 migrate test cases of governance contracts #8

Merged
merged 8 commits into from
Feb 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
704 changes: 704 additions & 0 deletions contracts/EPNS.sol

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions contracts/GovernorBravo.sol
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,15 @@ contract GovernorBravoDelegate is GovernorBravoDelegateStorageV1, GovernorBravoE
emit NewAdmin(oldAdmin, admin);
emit NewPendingAdmin(oldPendingAdmin, pendingAdmin);
}

/**
* @notice Accepts the admin ownership of the timelock contract.
* @dev Allows the GovernorBravo to become to admin of timelock for any operation to be performed via Timelock
*/
function acceptTimelockOwnership() external {
require(msg.sender == admin, "GovernorBravo::_setProposalThreshold: admin only");
timelock.acceptAdmin();
}

function add256(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
Expand Down
Loading