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

[OETHb] Timelock delay update #2265

Merged
merged 3 commits into from
Oct 2, 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
2 changes: 2 additions & 0 deletions contracts/contracts/interfaces/ITimelockController.sol
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,6 @@ interface ITimelockController {
function isOperation(bytes32 opHash) external view returns (bool);

function getMinDelay() external view returns (uint256);

function updateDelay(uint256 newDelay) external;
}
25 changes: 25 additions & 0 deletions contracts/deploy/base/016_timelock_2d_delay.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
const { deployOnBaseWithGuardian } = require("../../utils/deploy-l2");
const addresses = require("../../utils/addresses");

module.exports = deployOnBaseWithGuardian(
{
deployName: "016_timelock_2d_delay",
},
async ({ ethers }) => {
const cTimelock = await ethers.getContractAt(
"ITimelockController",
addresses.base.timelock
);

return {
actions: [
{
// 1. Update delay to 2d
contract: cTimelock,
signature: "updateDelay(uint256)",
args: [2 * 24 * 60 * 60],
},
],
};
}
);
3 changes: 2 additions & 1 deletion contracts/deployments/base/.migrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
"012_claim_governance": 1725984162,
"013_revoke_admin_role": 1727204761,
"014_fixed_rate_dripper": 1727409372,
"015_harvester": 1727718319
"015_harvester": 1727718319,
"016_timelock_2d_delay": 1727845272
}
Loading