Go-Live Checklist

This page provides a checklist for deploying Somnia applications to production (Mainnet). It ensures that all necessary environment variables, contract addresses, allowlists, and rollback strategies are correctly configured before launch.


Environment Variables

Example .env.production:

.env.production
SOMNIA_RPC_MAINNET=https://api.infra.mainnet.somnia.network/
PRIVATE_KEY=0xabc123...
EXPLORER_API_KEY=...
ALLOWED_ORIGIN=https://yourapp.com

Contract Addresses

Example config/addresses.json:

config/addresses.json
{
  "network": "mainnet",
  "dao": "0x1234...",
  "token": "0xabcd...",
  "subgraph": "https://subgraph.somnia.network/dashboard/subgraph/..."
}

Allowlists

Example allowlist.json:

allowlist.json
{
  "admins": ["0xAdmin1...", "0xAdmin2..."],
  "oracles": ["0xOracle1..."],
  "relayers": ["0xRelayer1..."]
}

Rollback Plan

Having a clear rollback strategy is essential if something goes wrong during or after deployment. This should include both technical measures and operational procedures.

Technical Rollback Steps

Operational Rollback Steps


Best Practices

  • Always test on Shannon Testnet before mainnet deployment.

  • Pin dependencies & compiler versions for reproducibility.

  • Run audit checklist (see Smart Contract Security 101).

  • Monitor deployed contracts with logging & health checks.

  • Communicate launch windows to your community in advance.

Last updated