This guide covers deploying the Solana casino game programs and EVM casino game smart contracts in this repo.
Reminder: deploying gambling software has regulatory implications. Make sure you comply with local laws.
- Solana CLI
- Anchor
- Rust toolchain
- A funded deployer keypair (devnet or mainnet)
cd web3/solana
npm install
anchor buildcd web3/solana
anchor testcd web3/solana
solana config set --url devnet
anchor deploy --provider.cluster devnetEach program declares an ID in its lib.rs (example: Crash). When you deploy, Anchor updates IDs/metadata under target/. Keep your deployed program IDs in sync with your client.
- Foundry installed
- An RPC URL (e.g., Sepolia/Base/Arbitrum/etc.)
- A funded deployer key (testnet ETH)
cd web3/evm
npm install
forge build
forge test -vvvcd web3/evm
forge script script/Deploy.s.sol --rpc-url sepolia --broadcast --verifyIf verification fails, confirm your Etherscan-style API key and the target chain settings.
- Treasury funded: payouts must be solvent.
- Limits configured: min/max bet and payout constraints.
- Pause controls verified: you should be able to halt games in emergencies.
- Randomness provider configured: VRF integration must be live on target chain.
- Monitoring: alert on large bets, large payouts, and abnormal failure rates.
- Architecture:
ARCHITECTURE.md - API / interaction surface:
API.md - Games landing page :
GAMES.md