Skip to content

Commit

Permalink
Move network to new file
Browse files Browse the repository at this point in the history
  • Loading branch information
yorhodes committed Jan 20, 2025
1 parent 3a2e093 commit 4a6513f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
14 changes: 2 additions & 12 deletions solidity/script/avs/DeployNetwork.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,8 @@ import "forge-std/Script.sol";

import {ProxyAdmin} from "../../contracts/upgrade/ProxyAdmin.sol";
import {TransparentUpgradeableProxy} from "../../contracts/upgrade/TransparentUpgradeableProxy.sol";
import {TimelockControllerUpgradeable} from "@openzeppelin/contracts-upgradeable/governance/TimelockControllerUpgradeable.sol";

contract Network is TimelockControllerUpgradeable {
function initialize(
uint256 minDelay,
address[] memory proposers,
address[] memory executors,
address admin
) public initializer {
__TimelockController_init(minDelay, proposers, executors, admin);
}
}

import {Network} from "./Network.sol";

contract DeployNetwork is Script {
uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY");
Expand Down
12 changes: 12 additions & 0 deletions solidity/script/avs/Network.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import {TimelockControllerUpgradeable} from "@openzeppelin/contracts-upgradeable/governance/TimelockControllerUpgradeable.sol";

contract Network is TimelockControllerUpgradeable {
function initialize(
uint256 minDelay,
address[] memory proposers,
address[] memory executors,
address admin
) public initializer {
__TimelockController_init(minDelay, proposers, executors, admin);
}
}

0 comments on commit 4a6513f

Please sign in to comment.