Deployment

For developers looking to set up a local MultiGov environment:

  1. Install prerequisites:

  2. Clone the repository:

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

    forge install
  4. Set up environment variables:

    cp .env.example .env

    Edit .env with your specific configuration.

  5. Compile contracts:

    forge build
  6. 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