Docs / Running it

Deploy

Program, setup, site.

The program

shell
node scripts/build-program.mjs
node scripts/solana/deploy.mjs --cluster devnet      # or --cluster mainnet --confirm-mainnet

The deployer pays the rent and keeps the upgrade authority; the script checks the bytes on chain are the local build's. Mainnet runs only when started by hand and confirmed at the terminal.

Setup

shell
node scripts/solana/setup.mjs --cluster devnet

Creates the DBC launch config (fee claimer: the pad's PDA), initializes the pad with the treasury and a 50% star share, hands admin to the admin wallet, and writes web/src/networks.json. Safe to re-run: it only sends what is missing.

The site

Vercel builds from the repository. The build picks mainnet once networks.json names a mainnet launch config, else devnet; NEXT_PUBLIC_SOLANA_NETWORK overrides. Set SOLANA_RPC_URL (a keyed RPC, for /api/rpc and the star read-out) and BLOB_READ_WRITE_TOKEN (a Vercel Blob store for icons and metadata).