From 4db9365ad85927127d5e3ee05dba666e54683b86 Mon Sep 17 00:00:00 2001 From: Shahul Hameed <10547529+shahthepro@users.noreply.github.com> Date: Wed, 2 Oct 2024 09:00:47 +0400 Subject: [PATCH 1/2] Add deployment file --- .../interfaces/ITimelockController.sol | 2 ++ .../deploy/base/016_timelock_2d_delay.js | 25 +++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 contracts/deploy/base/016_timelock_2d_delay.js diff --git a/contracts/contracts/interfaces/ITimelockController.sol b/contracts/contracts/interfaces/ITimelockController.sol index f0b11f59d1..349c50dfbd 100644 --- a/contracts/contracts/interfaces/ITimelockController.sol +++ b/contracts/contracts/interfaces/ITimelockController.sol @@ -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; } diff --git a/contracts/deploy/base/016_timelock_2d_delay.js b/contracts/deploy/base/016_timelock_2d_delay.js new file mode 100644 index 0000000000..135cf811db --- /dev/null +++ b/contracts/deploy/base/016_timelock_2d_delay.js @@ -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], + }, + ], + }; + } +); From b90894c28e452d17ddd5545acc3679788f6d93b3 Mon Sep 17 00:00:00 2001 From: Shahul Hameed <10547529+shahthepro@users.noreply.github.com> Date: Wed, 2 Oct 2024 09:01:31 +0400 Subject: [PATCH 2/2] Execute deployment --- contracts/deployments/base/.migrations.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contracts/deployments/base/.migrations.json b/contracts/deployments/base/.migrations.json index ee8891ad19..62320f3e13 100644 --- a/contracts/deployments/base/.migrations.json +++ b/contracts/deployments/base/.migrations.json @@ -12,5 +12,6 @@ "011_transfer_governance": 1725984158, "012_claim_governance": 1725984162, "013_revoke_admin_role": 1727204761, - "014_fixed_rate_dripper": 1727409372 + "014_fixed_rate_dripper": 1727409372, + "016_timelock_2d_delay": 1727845272 } \ No newline at end of file