-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
59b2db0
commit fcc9c85
Showing
4 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
pragma solidity 0.8.10; | ||
|
||
import "../AbstractScript.sol"; | ||
import {Vm} from "forge-std/Vm.sol"; | ||
|
||
import {AddressesSonic} from "contracts/utils/Addresses.sol"; | ||
|
||
import {Timelock} from "contracts/Timelock.sol"; | ||
|
||
contract SonicDeployTimelockScript is AbstractScript { | ||
string public constant override DEPLOY_NAME = "001_Timelock"; | ||
uint256 public constant override CHAIN_ID = 146; | ||
bool public constant override proposalExecuted = false; | ||
|
||
constructor() {} | ||
|
||
function _execute() internal override { | ||
console.log("Deploy:"); | ||
console.log("------------"); | ||
|
||
address[] memory proposers = new address[](1); | ||
address[] memory executors = new address[](1); | ||
|
||
proposers[0] = AddressesSonic.ADMIN; | ||
executors[0] = AddressesSonic.ADMIN; | ||
|
||
// 1. Deploy Timelock | ||
Timelock timelock = new Timelock( | ||
60, // 60s | ||
proposers, | ||
executors | ||
); | ||
_recordDeploy("TIMELOCK", address(timelock)); | ||
} | ||
|
||
function _fork() internal override {} | ||
} |