From 474418b58245f7c2bb9cbfa0168a7e73583e12c6 Mon Sep 17 00:00:00 2001 From: sourcebridge_42 Date: Sun, 19 Apr 2026 09:10:10 +0000 Subject: [PATCH] citizen: add deployment script --- script/DeployGovernanceContract.s.sol | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 script/DeployGovernanceContract.s.sol diff --git a/script/DeployGovernanceContract.s.sol b/script/DeployGovernanceContract.s.sol new file mode 100644 index 0000000..685b5cc --- /dev/null +++ b/script/DeployGovernanceContract.s.sol @@ -0,0 +1,21 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.24; + +import "forge-std/Script.sol"; +import "../contracts/GovernanceContract.sol"; + +/// @title Deploy GovernanceContract +/// @notice Deployment script for GovernanceContract +contract DeployGovernanceContract is Script { + function run() public { + uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY"); + vm.startBroadcast(deployerPrivateKey); + + GovernanceContract instance = new GovernanceContract("Implement: Defines the main community governance"); + + vm.stopBroadcast(); + + // Log deployed address for verification + console.log("GovernanceContract deployed at:", address(instance)); + } +}