This guide covers the deployment of all SolVoid components: Smart Contracts, Dashboard, and Relayer.
- Solana CLI configured for the target network (Devnet/Mainnet).
- A wallet with sufficient SOL for deployment fees.
- Build the program:
anchor build
- Deploy:
anchor deploy --provider.cluster <NETWORK>
- Initialize the state:
solvoid init --authority <PUBKEY>
The dashboard is a Next.js application designed to be deployed to Vercel or Netlify.
Set the following on your deployment platform:
NEXT_PUBLIC_RPC_URL: Your Solana RPC endpoint.NEXT_PUBLIC_PROGRAM_ID: The deployed SolVoid program ID.
# Build
npm run build
# Start
npm run startThe relayer should be deployed to a server with high availability.
docker build -t solvoid-relayer ./relayer
docker run -p 3001:3001 --env-file .env solvoid-relayercd relayer
npm install
npm run build
pm2 start dist/index.js --name solvoid-relayerWe use GitHub Actions for automated deployment.
- Main Branch: Triggers deployment to Staging/Devnet.
- Releases: Trigger deployment to Production/Mainnet.
For details, see CI_CD.md.
Solana programs can be rolled back if they were deployed with an upgrade authority.
solana program rollback <PROGRAM_ID>Note: This depends on the specific buffer management and authority settings.
Use the Vercel/Netlify "Rollback to previous deployment" button.