Deployment
For developers looking to set up a local MultiGov environment:
Clone the repository:
git clone [MultiGov Repository URL] cd evm # for evm testing/deploying
Install dependencies:
forge install
Set up environment variables:
cp .env.example .env
Edit
.env
with your specific configuration.Compile contracts:
forge build
Deploy contracts (example for Sepolia testnet):
forge script script/DeployHubContractsSepolia.s.sol --rpc-url $SEPOLIA_RPC_URL --broadcast
For spoke chains (e.g., Optimism Sepolia):
forge script script/DeploySpokeContractsOptimismSepolia.s.sol --rpc-url $OPTIMISM_SEPOLIA_RPC_URL --broadcast
Last updated
Was this helpful?