Cobotium Mainnet Deployment Guide
This guide provides detailed instructions for deploying your Cobotium token program to the Solana mainnet.
Pre-Deployment Checklist
Before deploying to mainnet, ensure you have completed the following:
Security Audit
- Code review completed ✓
- Security vulnerabilities addressed ✓
- Overflow protection implemented ✓
- Freeze functionality tested ✓
- External audit completed (recommended) !
Testing
- All functionality tested on devnet !
- Edge cases tested !
- Performance testing completed !
- Stress testing completed !
Documentation
- User documentation completed ✓
- Developer documentation completed ✓
- Monitoring documentation completed ✓
- Website documentation updated !
Deployment Process
Step 1: Final Build
Build the program for deployment:
cd cobotium-program
cargo build-bpf --release
This will create the program binary at target/deploy/cobotium_program.so
.
Step 2: Program Keypair
Generate a keypair for your program (if not already done):
solana-keygen new -o cobotium-program-keypair.json
Recommended backup methods:
- Hardware security module
- Multiple encrypted backups in separate physical locations
- Paper backup in a secure location
Step 3: Fund the Deployer Account
Ensure your deployer account has sufficient SOL for deployment:
solana balance --keypair <PATH_TO_DEPLOYER_KEYPAIR>
If needed, transfer SOL to the deployer account:
solana transfer --keypair <FUNDING_KEYPAIR> <DEPLOYER_ADDRESS> <AMOUNT_SOL> --allow-unfunded-recipient
Step 4: Deploy to Mainnet
Switch to the mainnet endpoint:
solana config set --url https://api.mainnet-beta.solana.com
Deploy the program:
solana program deploy --keypair <PATH_TO_DEPLOYER_KEYPAIR> --program-id cobotium-program-keypair.json target/deploy/cobotium_program.so
This command will output the program ID. Save this ID as it will be needed for all interactions with your program.
Post-Deployment Verification
Verify Deployment
Verify that the program was deployed successfully:
solana program show <PROGRAM_ID>
This should display information about your deployed program, including:
- Program ID
- Owner
- Program data account
- Last deployed slot
Functional Testing
Perform basic functional tests to ensure the program is working correctly:
-
Create a mint:
./target/release/cobotium-cli --rpc-url https://api.mainnet-beta.solana.com --program-id <PROGRAM_ID> create-mint --mint-keypair <KEYPAIR_PATH> --decimals 9
-
Create a token account:
./target/release/cobotium-cli --rpc-url https://api.mainnet-beta.solana.com --program-id <PROGRAM_ID> create-account --account-keypair <KEYPAIR_PATH> --mint <MINT_ADDRESS> --owner <OWNER_ADDRESS>
-
Mint tokens:
./target/release/cobotium-cli --rpc-url https://api.mainnet-beta.solana.com --program-id <PROGRAM_ID> mint-tokens --mint <MINT_ADDRESS> --account <ACCOUNT_ADDRESS> --mint-authority <AUTHORITY_KEYPAIR> --amount <AMOUNT>
Website Integration
Update your website at cobotium.io with the following information:
Program Information
- Program ID
- Deployment date
- Current version
Explorer Links
Add links to Solana explorers for your program:
Ongoing Maintenance
Monitoring
Start your monitoring system:
cd monitoring
pm2 start monitor.js
Refer to the Monitoring Guide for detailed instructions.
Regular Health Checks
Schedule regular health checks:
-
Daily:
- Check program logs for errors
- Verify transaction volume is within expected range
-
Weekly:
- Perform basic functionality tests
- Review account growth
-
Monthly:
- Comprehensive security review
- Performance optimization review