-
Notifications
You must be signed in to change notification settings - Fork 76
Expand file tree
/
Copy path.env.example
More file actions
128 lines (107 loc) · 5.52 KB
/
Copy path.env.example
File metadata and controls
128 lines (107 loc) · 5.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# =============================================================================
# Opaque Stellar — root .env (deployment, relayer, tooling)
# =============================================================================
# Copy to `.env` (`cp .env.example .env`) and fill in before running:
# npm run deploy:testnet # build + deploy all contracts to testnet
# npm run deploy:mainnet # mainnet (requires audit signoff)
# cd relayer && npm run relayer # relayer market node
# cd relayer && npm run hub # standalone gossip hub (see relayer hub notes)
#
# The FRONTEND has its own env file — see frontend/.env.example.
# -----------------------------------------------------------------------------
# =============================================================================
# Contract deployment
# =============================================================================
# Target network for deploys: testnet | mainnet
STELLAR_NETWORK=testnet
# Deployer identity (PREFERRED). Create once with the Stellar CLI:
# stellar keys generate opaque-deployer --network testnet --fund
# stellar keys address opaque-deployer
# Then set the identity NAME here:
STELLAR_DEPLOYER=opaque-deployer
# Alternative to STELLAR_DEPLOYER: a raw secret seed (S...). Use ONLY for
# automation/CI; never commit a real secret. If both are set, STELLAR_DEPLOYER wins.
# STELLAR_DEPLOYER_SECRET=S...
# Optional: the funded G... address to record as deployer/admin in the manifest.
# Auto-derived from STELLAR_DEPLOYER when omitted.
# STELLAR_DEPLOYER_ADDRESS=G...
# =============================================================================
# Reputation publisher (`cd publisher && npm run serve`)
# =============================================================================
# The publisher API accepts holder-submitted V2 reputation leaf commitments,
# publishes PSR Merkle roots, and returns Merkle paths to the frontend.
#
# Current testnet verifier requires the verifier admin key. For production,
# use a dedicated root-publisher role/key instead of admin.
# PUBLISHER_SECRET=S...
#
# Soroban RPC URL. Defaults to manifest rpcUrl.
# STELLAR_RPC_URL=https://soroban-testnet.stellar.org
#
# HTTP API bind host/port. Default: 127.0.0.1:8790
# PUBLISHER_HTTP_HOST=127.0.0.1
# PUBLISHER_HTTP_PORT=8790
#
# Browser CORS origin for the frontend. Use the deployed frontend origin in staging.
# PUBLISHER_CORS_ORIGIN=http://localhost:5173
# Rate limiting for publisher HTTP API (token bucket).
# RATE_LIMIT_WINDOW_MS=60000
# RATE_LIMIT_MAX_REQUESTS=120
# RATE_LIMIT_BURST=20
# =============================================================================
# Relayer market node (`cd relayer && npm run relayer`)
# =============================================================================
# The relayer script loads this root `.env` automatically.
#
# Create a dedicated operator key (needs testnet XLM for stake + tx fees):
# stellar keys generate opaque-relayer --network testnet --fund
# stellar keys show opaque-relayer
#
# Derive the X25519 secret deterministically from the operator secret (64 hex chars):
# node -e "const {createHash}=require('crypto');const s='YOUR_S_SECRET';console.log(createHash('sha256').update(s).update('opaque-relayer-x25519-v1').digest('hex'))"
#
# Register on-chain before bidding (once per operator):
# cd relayer && npm run smoke:market
#
# --- Required ---
# Stellar secret seed (S...) for the relayer operator account.
RELAYER_OPERATOR_SECRET=
# 32-byte X25519 seed as hex (64 characters). Must match the pubkey registered
# on-chain in relayerRegistry. Use the node command above or any secure 32-byte hex.
RELAYER_X25519_SECRET=
# --- Optional (defaults from deployments/v1/testnet.json unless noted) ---
# Soroban RPC URL. Defaults to manifest rpcUrl.
# STELLAR_RPC_URL=https://soroban-testnet.stellar.org
# Network passphrase. Defaults to manifest networkPassphrase.
# NETWORK_PASSPHRASE=Test SDF Network ; September 2015
# relayerRegistry contract ID (C...). Defaults to manifest contracts.relayerRegistry.id.
# RELAYER_REGISTRY_ID=
# Public HTTP URL advertised to wallets / registered on-chain. Default: http://127.0.0.1:8787
# RELAYER_ENDPOINT=http://127.0.0.1:8787
# HTTP listen port in standalone mode (when RELAYER_HUB_URL is unset). Default: 8787
# RELAYER_PORT=8787
# Rate limiting for relayer HTTP API (token bucket).
# RATE_LIMIT_WINDOW_MS=60000
# RATE_LIMIT_MAX_REQUESTS=120
# RATE_LIMIT_BURST=20
# Minimum fee (stroops) the node will bid. Default: 100000
# RELAYER_MIN_FEE=100000
# Connect to a separate gossip hub instead of embedding one locally.
# When set, the node does not listen on RELAYER_PORT; only the hub does.
# RELAYER_HUB_URL=http://127.0.0.1:8787
# =============================================================================
# Relayer hub (`cd relayer && npm run hub`)
# =============================================================================
# Hub does not load `.env` automatically — export vars or run:
# set -a && source .env && set +a && cd relayer && npm run hub
#
# Public gateway URL shown in logs. Default: http://127.0.0.1:8787
# RELAYER_GATEWAY_ENDPOINT=http://127.0.0.1:8787
#
# Bind port (shared name with relayer standalone mode). Default: 8787
# RELAYER_PORT=8787
# =============================================================================
# Relayer smoke test (`cd relayer && npm run smoke:market`)
# =============================================================================
# Uses RELAYER_OPERATOR_SECRET, or falls back to DEPLOYER_SECRET / STELLAR_DEPLOYER_SECRET.
# RELAYER_JOB_FEE=100000