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

Add proposal to add Guardian to Timelock #2021

Merged
merged 11 commits into from
May 8, 2024
9 changes: 9 additions & 0 deletions contracts/contracts/interfaces/ITimelockController.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
pragma solidity ^0.8.0;

interface ITimelockController {
function grantRole(bytes32 role, address account) external;

function revokeRole(bytes32 role, address account) external;

function renounceRole(bytes32 role, address account) external;
}
35 changes: 35 additions & 0 deletions contracts/deploy/092_add_multisig_to_timelock.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
const addresses = require("../utils/addresses");
const { deploymentWithGovernanceProposal } = require("../utils/deploy");

module.exports = deploymentWithGovernanceProposal(
shahthepro marked this conversation as resolved.
Show resolved Hide resolved
{
deployName: "092_add_multisig_to_timelock",
forceDeploy: false,
// forceSkip: true,
// onlyOnFork: true, // this is only executed in forked environment
reduceQueueTime: true, // just to solve the issue of later active proposals failing
proposalId: "",
},
async ({ ethers }) => {
const TIMELOCK_ADMIN_ROLE =
"0x5f58e3a2316349923ce3780f8d587db2d72378aed66a8261c916544fa6846ca5"; // keccak256"TIMELOCK_ADMIN_ROLE");
const cTimelock = await ethers.getContractAt(
"ITimelockController",
addresses.mainnet.Timelock
);

return {
name: "Add Guardian Multisig to Timelock\n\
\n\
Part of the OGN/OGV merger. This proposal adds the Origin's 5 of 8 Multisig to the Timelock to make things easier during migration/merger. This permission will be revoked once the merger is complete. \
DanielVF marked this conversation as resolved.
Show resolved Hide resolved
",
actions: [
{
contract: cTimelock,
signature: "grantRole(bytes32,address)",
args: [TIMELOCK_ADMIN_ROLE, addresses.mainnet.Guardian],
},
],
};
}
);
Loading