Skip to content

Commit

Permalink
Add deployment file
Browse files Browse the repository at this point in the history
  • Loading branch information
shahthepro committed Oct 2, 2024
1 parent d0bafdc commit 4db9365
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
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],
},
],
};
}
);

0 comments on commit 4db9365

Please sign in to comment.