-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
55 lines (45 loc) · 3.86 KB
/
Copy path.env.example
File metadata and controls
55 lines (45 loc) · 3.86 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
# ─── Application ─────────────────────────────────────────────────────────────
NODE_ENV=development
LOG_LEVEL=debug
# ─── API Gateway ─────────────────────────────────────────────────────────────
API_PORT=3000
API_HOST=0.0.0.0
API_PREFIX=/api/v1
# ─── Relay Service ───────────────────────────────────────────────────────────
RELAY_PORT=3001
RELAY_POLL_INTERVAL_MS=5000
RELAY_MAX_RETRIES=3
RELAY_RETRY_DELAY_MS=2000
# ─── Database ────────────────────────────────────────────────────────────────
DB_PATH=./data/bridge.db
# ─── Failure Simulation ──────────────────────────────────────────────────────
# Set these to non-zero values to inject controlled faults into the pipeline.
# SIM_PROOF_DELAY_MS: adds artificial delay to proof generation
# SIM_VERIFIER_FAILURE_RATE: 0.0-1.0 probability that verifier fails
# SIM_MINT_FAILURE_RATE: 0.0-1.0 probability that target mint fails
# SIM_SOURCE_FAILURE_RATE: 0.0-1.0 probability that source lock fails
SIM_PROOF_DELAY_MS=0
SIM_VERIFIER_FAILURE_RATE=0
SIM_MINT_FAILURE_RATE=0
SIM_SOURCE_FAILURE_RATE=0
# ─── Ethereum Connector ──────────────────────────────────────────────────────
ETH_LEDGER_ID=ethereum-mainnet
ETH_INITIAL_BALANCES={"0xAlice":{"ETH":"1000","USDC":"50000"},"0xBob":{"ETH":"500","USDC":"25000"},"0xCharlie":{"ETH":"2000","USDC":"100000"}}
# ─── Fabric Connector ────────────────────────────────────────────────────────
FABRIC_LEDGER_ID=fabric-network-1
FABRIC_INITIAL_ASSETS=[{"id":"asset-001","type":"BOND","owner":"org1-alice","value":"10000"},{"id":"asset-002","type":"EQUITY","owner":"org1-bob","value":"5000"},{"id":"asset-003","type":"BOND","owner":"org1-charlie","value":"20000"}]
# ─── Mock Connector ──────────────────────────────────────────────────────────
MOCK_LEDGER_ID=mock-chain-1
MOCK_FAILURE_RATE=0
# ─── Policy Engine ───────────────────────────────────────────────────────────
POLICY_MAX_TRANSFER_AMOUNT=1000000
# Comma-separated list of "sourceLedger:targetLedger" pairs, or "*" for all
POLICY_ALLOWED_PAIRS=ethereum-mainnet:fabric-network-1,fabric-network-1:ethereum-mainnet,ethereum-mainnet:mock-chain-1,mock-chain-1:ethereum-mainnet,fabric-network-1:mock-chain-1
# Comma-separated asset types, or "*" for all
POLICY_ALLOWED_ASSET_TYPES=ETH,USDC,BOND,EQUITY,TOKEN
# Comma-separated callers, or "*" for all
POLICY_ALLOWED_CALLERS=*
# ─── CORS ────────────────────────────────────────────────────────────────────
CORS_ORIGINS=http://localhost:3000,http://localhost:8080
# ─── Metrics ─────────────────────────────────────────────────────────────────
METRICS_ENABLED=true