Some checks failed
Deploy to Phoenix / deploy (push) Has been cancelled
Co-authored-by: Cursor <cursoragent@cursor.com>
3.2 KiB
3.2 KiB
Script Environment Variables Reference
Last Updated: 2026-02-13
Central reference for env vars used by scripts/ automation.
Chain 138 RPC — two standards (load-project-env.sh)
| Variable | Use | Canonical value |
|---|---|---|
RPC_URL_138 |
Core (admin, deploy, scripts on LAN) | VMID 2101, http://192.168.11.211:8545 |
RPC_URL_138_PUBLIC |
Public (bridge, frontend, monitoring, relay) | VMID 2201, http://192.168.11.221:8545 |
Set in config/ip-addresses.conf or smom-dbis-138/.env. See RPC_ENDPOINTS_MASTER.
Contract addresses — master JSON
| Item | Description |
|---|---|
| Source | config/smart-contracts-master.json (single source of truth; safe to publish) |
| Bash | Loaded by load-project-env.sh → load-contract-addresses.sh; .env overrides JSON |
| Node | require('.../config/contracts-loader.cjs') → getContractAddress(chainId, name), loadContractsIntoProcessEnv() |
| Docs | config/README-CONTRACTS-MASTER.md, CONTRACT_ADDRESSES_REFERENCE |
Loaded by load-project-env.sh
| Variable | Source | Description |
|---|---|---|
PROJECT_ROOT |
auto | Project root directory |
RPC_URL_138 |
config, smom-dbis-138/.env | Chain 138 Core RPC (VMID 2101) |
RPC_URL_138_PUBLIC |
config, .env | Chain 138 Public RPC (VMID 2201) |
RPC_CORE_1 |
config | Core RPC host IP (192.168.11.211) |
SMOM_DIR |
SMOM_DBIS_138_DIR, PROJECT_ROOT | smom-dbis-138 path |
DBIS_CORE_DIR |
config, PROJECT_ROOT | dbis_core path |
PROXMOX_HOST_R630_01 |
config | Proxmox R630-01 IP |
PROXMOX_HOST_R630_02 |
config | Proxmox R630-02 IP |
PROXMOX_HOST_ML110 |
config | Proxmox ML110 IP |
Bridge (run-send-cross-chain.sh)
| Variable | Required | Default | Description |
|---|---|---|---|
PRIVATE_KEY |
yes | - | Deployer key (from smom-dbis-138/.env) |
CCIPWETH9_BRIDGE_CHAIN138 |
yes | - | Bridge contract address |
CCIP_DEST_CHAIN_SELECTOR |
no | 5009297550715157269 | Destination chain (Ethereum mainnet) |
GAS_PRICE |
no | 1000000000 | Gas price in wei |
GAS_LIMIT |
no | - | Gas limit override |
CONFIRM_ABOVE_ETH |
no | 1 | Prompt confirmation above this amount |
Verification (run-contract-verification-with-proxy.sh)
| Variable | Default | Description |
|---|---|---|
FORGE_VERIFY_TIMEOUT |
900 | Timeout seconds (0 = none) |
KEEP_PROXY |
0 | 1 = don't kill proxy on exit |
SKIP_BLOCKSCOUT_CHECK |
- | Set to skip Blockscout connectivity check |
DEBUG |
0 | 1 = verbose logging |
DBIS Frontend Deploy
| Variable | Default | Description |
|---|---|---|
VMID_DBIS_FRONTEND |
10130 | Container VMID |
DBIS_FRONTEND_DEPLOY_PATH |
auto | Override container path |
VITE_API_BASE_URL |
- | API URL for frontend build |
DEBUG |
0 | 1 = verbose |
Security
- Never commit
.env,smom-dbis-138/.env, or files containingPRIVATE_KEY - Run
chmod 600 .env smom-dbis-138/.envafter setup