- Rust stable
wasm32-unknown-unknowntarget- Soroban CLI
cd soroban
cargo check --workspacecd soroban
cargo build --workspace --target wasm32-unknown-unknown --release- Deploy scaffold:
soroban/scripts/deploy/deploy-testnet.sh - Invoke scaffold:
soroban/scripts/invoke/invoke-core-game.sh
Update contract IDs in:
soroban/config/contracts.testnet.jsonsoroban/config/contracts.mainnet.json
When running scripts against testnet, set the following variables. See SOROBAN_DEPLOYMENT_FLOW for the full contract table.
| Variable | Required | Notes |
|---|---|---|
STELLAR_NETWORK |
✅ | Set to testnet |
STELLAR_RPC_URL |
✅ | Soroban RPC endpoint |
STELLAR_SECRET_KEY |
✅ | Deployer account key |
STELLAR_NETWORK_PASSPHRASE |
✅ | Network passphrase |
CONTRACT_*_ID |
⬜ | Falls back to contracts.testnet.json |
Quick check — verify your env before running scripts:
echo "Network: $STELLAR_NETWORK"
echo "RPC: $STELLAR_RPC_URL"
[[ -z "$STELLAR_SECRET_KEY" ]] && echo "WARNING: STELLAR_SECRET_KEY not set"