|
1 | | -# The environment to use `development`, `testing`, `staging`, `production` |
| 1 | +# Environment: development | staging | production |
2 | 2 | STELLAR_SCAFFOLD_ENV=development |
3 | 3 |
|
4 | | -# Location of the config files for this project for the scaffold stellar CLI. |
5 | | -# Learn more at https://developers.stellar.org/docs/tools/cli/stellar-cli#stellar-config-dir |
| 4 | +# Stellar CLI config directory |
6 | 5 | XDG_CONFIG_HOME=".config" |
7 | 6 |
|
8 | | -# Prefix with "PUBLIC_" to make available in frontend files |
9 | | -# Which Stellar network to use in the frontend: local, testnet, futurenet, or mainnet |
10 | | -# More on Stellar networks: https://developers.stellar.org/docs/networks |
| 7 | +# Network configuration (uncomment ONE block) |
11 | 8 |
|
| 9 | +# --- Local development --- |
12 | 10 | PUBLIC_STELLAR_NETWORK="LOCAL" |
13 | | -# The Stellar network passphrase, this is local |
14 | 11 | PUBLIC_STELLAR_NETWORK_PASSPHRASE="Standalone Network ; February 2017" |
15 | | -# The Stellar network RPC URL. this is local |
16 | 12 | PUBLIC_STELLAR_RPC_URL="http://localhost:8000/rpc" |
17 | | -# The Stellar Horizon URL. this is local |
18 | 13 | PUBLIC_STELLAR_HORIZON_URL="http://localhost:8000" |
19 | 14 |
|
20 | | -# PUBLIC_STELLAR_NETWORK="TESTNET" |
21 | | -# PUBLIC_STELLAR_NETWORK_PASSPHRASE="Test SDF Network ; September 2015" |
22 | | -# PUBLIC_STELLAR_RPC_URL="https://soroban-testnet.stellar.org" |
23 | | -# PUBLIC_STELLAR_HORIZON_URL="https://horizon-testnet.stellar.org" |
| 15 | +# --- Testnet --- |
| 16 | +# PUBLIC_STELLAR_NETWORK=TESTNET |
| 17 | +# PUBLIC_STELLAR_NETWORK_PASSPHRASE=Test SDF Network ; September 2015 |
| 18 | +# PUBLIC_STELLAR_RPC_URL=https://soroban-testnet.stellar.org |
| 19 | +# PUBLIC_STELLAR_HORIZON_URL=https://horizon-testnet.stellar.org |
24 | 20 |
|
25 | | -# PUBLIC_STELLAR_NETWORK="MAINNET" |
26 | | -# PUBLIC_STELLAR_NETWORK_PASSPHRASE="Public Global Stellar Network ; September 2015" |
27 | | -# PUBLIC_STELLAR_RPC_URL= |
28 | | -# PUBLIC_STELLAR_HORIZON_URL= |
29 | | - |
30 | | -# ============================================================================ |
31 | | -# CONTRACT IDs - CRITICAL: MUST UPDATE AFTER EVERY DEPLOYMENT! |
32 | | -# ============================================================================ |
33 | | -# After deploying contracts, you MUST manually update these IDs. |
34 | | -# Check: cat .config/stellar/contract-ids/gene_splicer.json |
35 | | -# Then copy the ID here and restart the dev server. |
36 | | -# |
37 | | -# ⚠️ If these IDs don't match the deployed contract, your frontend will fail |
38 | | -# silently - transactions will simulate successfully but not actually execute! |
39 | | -# ============================================================================ |
40 | | - |
41 | | -# Gene Splicer contract ID |
42 | | -PUBLIC_GENE_SPLICER_CONTRACT_ID="YOUR_CONTRACT_ID_HERE" |
| 21 | +# Contract ID — must match the deployed contract. |
| 22 | +# For local dev: auto-populated by `stellar scaffold watch` |
| 23 | +# For testnet/mainnet: update manually after deployment |
| 24 | +# Also stored as TESTNET_CONTRACT_ID GitHub secret for CI/CD |
| 25 | +PUBLIC_GENE_SPLICER_CONTRACT_ID=YOUR_CONTRACT_ID_HERE |
0 commit comments