githubEdit

Deployment

For developers looking to set up a local MultiGov environment:

  1. Clone the repository:

    git clone [MultiGov Repository URL]
    cd evm # for evm testing/deploying
  2. Install dependencies:

    forge install
  3. Set up environment variables:

    cp .env.example .env

    Edit .env with your specific configuration.

  4. Compile contracts:

    forge build
  5. 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?