MUTATE
// Documentation

Docs

Devnet deployment guide

1. Prepare infrastructure

  1. Provision PostgreSQL, Redis, durable private media storage, two Solana RPC endpoints, and a public HTTPS application origin.
  2. Copy .env.production.example to the secret manager for the devnet deployment.
  3. Keep SOLANA_CLUSTER=devnet and NEXT_PUBLIC_SOLANA_CLUSTER=devnet.
  4. Run npm ci, npm run db:migrate, and npm run db:seed.
  5. Start the web process with npm start and the worker with npm 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

  1. Create a dedicated protocol authority through your approved custody process.
  2. Set PROTOCOL_METADATA_AUTHORITY to its public key.
  3. Store the signer path in PROTOCOL_METADATA_AUTHORITY_KEYPAIR_PATH only for the isolated execution worker.
  4. Confirm the public metadata origin serves immutable proposal JSON and content-addressed images.
  5. 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:

ProgramAddress
Meteora DBCdbcij3LWUppWqq96dh6gJWwBifmcGfLSB5D4DuSMaqN
Meteora DAMM v2cpamdpZCGKUy5JxQXB4dcpGPiikHawvSWAd6mEn1sGG
Metaplex Token MetadatametaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s

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.

  1. Sign in and upload an arbitrary image.
  2. Launch a fixed-supply token.
  3. Confirm the mint, DBC pool, metadata account, null mint authority, fixed supply, and protocol metadata authority.
  4. Buy and sell through DBC.
  5. Open an Anchor mutation round and commit the fixed token amount.
  6. Submit proposals, generate three candidates, freeze hashes, vote, settle, and withdraw once.
  7. Confirm the new generation and unchanged mint and supply.
  8. Obtain the deployed $MUTATE token through the configured provider or use an existing balance.
  9. Create and approve a premium identity proposal.
  10. Execute one atomic BurnChecked plus Metaplex UpdateV1 transaction.
  11. Confirm the ticker and artwork update, unchanged launched-token balances and supply, and reduced $MUTATE supply.
  12. Trade until DBC migration eligibility, migrate to DAMM v2, then trade and update metadata again.
  13. 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.