# OMNL Bank — production environment (copy to .env.production, never commit secrets)

# === Public URLs (nginx / Cloudflare) ===
OMNL_BANK_PUBLIC_URL=https://bank.omnl.hybxfinance.io
VITE_TOKEN_AGGREGATION_URL=https://bank.omnl.hybxfinance.io/api/v1
VITE_SETTLEMENT_MIDDLEWARE_URL=https://bank.omnl.hybxfinance.io/settlement
VITE_DBIS_EXCHANGE_URL=https://bank.omnl.hybxfinance.io/exchange

# === Production configs ===
SETTLEMENT_MIDDLEWARE_CONFIG=config/settlement-middleware.production.v1.json
DBIS_EXCHANGE_CONFIG=config/dbis-exchange.production.v1.json
OMNL_SUPPORTED_CHAINS_CONFIG=config/omnl-supported-chains.v1.json
OMNL_M2_TOKEN_REGISTRY=config/omnl-m2-token-registry.v1.json
OMNL_CROSS_CHAIN_CONFIG=config/hybx-omnl-cross-chain-lines.json

# === Production gates (enable after audit) ===
SETTLEMENT_ALLOW_HYBX_PRODUCTION=1
SETTLEMENT_ALLOW_CHAIN_MINT_EXECUTE=1
OMNL_ALLOW_CHAIN_MINT_EXECUTE=1

# === Auth ===
OMNL_API_KEY=
# Do NOT set VITE_OMNL_API_KEY in production (nginx injects server-side)

# === Four super-admin portal keys (one per LXC 5825–5828) ===
OMNL_SUPER_ADMIN_OFFICE24_KEY=
OMNL_SUPER_ADMIN_EXCHANGE_KEY=
OMNL_SUPER_ADMIN_SECURE_KEY=
OMNL_SUPER_ADMIN_FOREX_KEY=
OMNL_PORTAL_INTERNAL_SECRET=

# === Customer API keys (read + trade scopes only; comma-separated key:scope) ===
OMNL_CUSTOMER_API_KEYS=
OMNL_CUSTOMER_API_KEY_1=
OMNL_CUSTOMER_SECURITY_PRODUCTION=1
JWT_SECRET=

# === On-chain M2 mint / transfer (Chain 138 operator) ===
OMNL_MINT_OPERATOR_PRIVATE_KEY=
TOKEN_AGGREGATION_URL=http://127.0.0.1:3000

# === HYBX / bank rails (SWIFT + IBAN) ===
HYBX_MIFOS_FINERACT_SIDECAR_URL=
SWIFT_LISTENER_URL=

# === Primary chain 138 ===
RPC_URL_138=http://192.168.11.221:8545
CHAIN_138_RPC_URL=http://192.168.11.221:8545

# === Mirror chain 651940 ===
CHAIN_651940_RPC_URL=https://mainnet-rpc.alltra.global

# === Major L1/L2 RPC (set per chain — CHAIN_<id>_RPC_URL) ===
CHAIN_1_RPC_URL=https://eth.llamarpc.com
CHAIN_56_RPC_URL=https://bsc-dataseed.binance.org
CHAIN_137_RPC_URL=https://polygon-bor-rpc.publicnode.com
CHAIN_42161_RPC_URL=https://arb1.arbitrum.io/rpc
CHAIN_8453_RPC_URL=https://mainnet.base.org
CHAIN_10_RPC_URL=https://mainnet.optimism.io

# === Fineract / Office 24 ===
OMNL_FINERACT_BASE_URL=
OMNL_FINERACT_TENANT=omnl
OMNL_FINERACT_USERNAME=ali_hospitallers_tenant
OMNL_FINERACT_PASSWORD=
OMNL_PUBLIC_MONEY_SUPPLY=1
OFFICE24_OPENING_M1_USD=

# === Frontend ===
VITE_WALLETCONNECT_PROJECT_ID=
VITE_THIRDWEB_CLIENT_ID=
VITE_RPC_URL_138=http://192.168.11.221:8545
VITE_ENHANCED_SWAP_ROUTER_V2=0xa421706768aeb7fafa2d912c5e10824ef3437ad4
