Devnet deployment guide
1. Prepare infrastructure
- Provision PostgreSQL, Redis, durable private media storage, two Solana RPC endpoints, and a public HTTPS application origin.
- Copy
.env.production.exampleto the secret manager for the devnet deployment. - Keep
SOLANA_CLUSTER=devnetandNEXT_PUBLIC_SOLANA_CLUSTER=devnet. - Run
npm ci,npm run db:migrate, andnpm run db:seed. - Start the web process with
npm startand the worker withnpm run worker.
2. Deploy the mutation program
Use a dedicated deployment wallet. Do not place its keypair inside the repository.
npm run anchor:build
solana program deploy target/deploy/mutate_binding.so --url devnet
solana program show <PROGRAM_ADDRESS> --url devnet
Update declare_id!, Anchor.toml, MUTATION_PROGRAM_ID, and generated client references when the deployed address differs. Rebuild after every address change. Set MUTATION_BINDING_REQUIRED=true only after RPC reports the exact address as executable.
The repository address CYnd85QVSTaVe5vyhmZQ8F1GjQGeu59SUtGCFfp4pS2L is a local keypair address. No devnet deployment exists at this address.
3. Configure metadata authority
- Create a dedicated protocol authority through your approved custody process.
- Set
PROTOCOL_METADATA_AUTHORITYto its public key. - Store the signer path in
PROTOCOL_METADATA_AUTHORITY_KEYPAIR_PATHonly for the isolated execution worker. - Confirm the public metadata origin serves immutable proposal JSON and content-addressed images.
- Record the authority address, custody owner, signer policy, rotation policy, and emergency response owner.
4. Deploy $MUTATE
Review distribution and vesting before any signature.
npm run deploy:mutate-token
The deployment must create 1,000,000,000 tokens with six decimals, distribute all allocations, set no freeze authority unless explicitly disclosed, verify supply, and revoke mint authority. Store the confirmed mint in MUTATE_TOKEN_MINT. Publish treasury, liquidity, admin, allocation, and vesting addresses.
5. Verify official programs
npm run test:devnet-programs
Expected official devnet programs:
| Program | Address |
|---|---|
| Meteora DBC | dbcij3LWUppWqq96dh6gJWwBifmcGfLSB5D4DuSMaqN |
| Meteora DAMM v2 | cpamdpZCGKUy5JxQXB4dcpGPiikHawvSWAd6mEn1sGG |
| Metaplex Token Metadata | metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s |
The October 1, 2026 read-only check found all three executable at confirmed devnet slot 506315755. Re-run before deployment because program state changes over time.
6. Run the signed lifecycle
Use a funded operator-approved browser wallet. Review every transaction preview before signing. Record the explorer link, slot, mint, pool, authority, supply, and before-and-after balances for each step.
- Sign in and upload an arbitrary image.
- Launch a fixed-supply token.
- Confirm the mint, DBC pool, metadata account, null mint authority, fixed supply, and protocol metadata authority.
- Buy and sell through DBC.
- Open an Anchor mutation round and commit the fixed token amount.
- Submit proposals, generate three candidates, freeze hashes, vote, settle, and withdraw once.
- Confirm the new generation and unchanged mint and supply.
- Obtain the deployed
$MUTATEtoken through the configured provider or use an existing balance. - Create and approve a premium identity proposal.
- Execute one atomic
BurnCheckedplus MetaplexUpdateV1transaction. - Confirm the ticker and artwork update, unchanged launched-token balances and supply, and reduced
$MUTATEsupply. - Trade until DBC migration eligibility, migrate to DAMM v2, then trade and update metadata again.
- Ingest verified revenue, record a verified expense, allocate net revenue, quote within limits, simulate, execute, reconcile, and burn the purchased
$MUTATE.
Do not mark a step verified without a finalized signature and matching RPC state.