From d77c859d353c81dc84532bbc7634478069a76289 Mon Sep 17 00:00:00 2001 From: Domen Grabec Date: Thu, 23 Jan 2025 22:19:55 +0100 Subject: [PATCH] add deploy file for timelock delay change --- .../deploy/sonic/004_timelock_1d_delay.js | 25 +++++++++++++++++++ contracts/deployments/sonic/.migrations.json | 3 ++- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 contracts/deploy/sonic/004_timelock_1d_delay.js diff --git a/contracts/deploy/sonic/004_timelock_1d_delay.js b/contracts/deploy/sonic/004_timelock_1d_delay.js new file mode 100644 index 0000000000..f145e1d921 --- /dev/null +++ b/contracts/deploy/sonic/004_timelock_1d_delay.js @@ -0,0 +1,25 @@ +const { deployOnSonic } = require("../../utils/deploy-l2"); +const addresses = require("../../utils/addresses"); + +module.exports = deployOnSonic( + { + deployName: "004_timelock_1d_delay", + }, + async ({ ethers }) => { + const cTimelock = await ethers.getContractAt( + "ITimelockController", + addresses.sonic.timelock + ); + + return { + actions: [ + { + // 1. Update delay to 1d + contract: cTimelock, + signature: "updateDelay(uint256)", + args: [24 * 60 * 60], + }, + ], + }; + } +); diff --git a/contracts/deployments/sonic/.migrations.json b/contracts/deployments/sonic/.migrations.json index 7b6b6a42f6..ff25982182 100644 --- a/contracts/deployments/sonic/.migrations.json +++ b/contracts/deployments/sonic/.migrations.json @@ -1,5 +1,6 @@ { "001_vault_and_token": 1736867284, "002_oracle_router": 1737018791, - "003_sonic_staking_strategy": 1737523080 + "003_sonic_staking_strategy": 1737523080, + "004_timelock_1d_delay": 1737667104 } \ No newline at end of file