-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
76 lines (56 loc) · 2.99 KB
/
Copy path.env.example
File metadata and controls
76 lines (56 loc) · 2.99 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
# ─── EcoStamp Environment Configuration ─────────────────────────────────────
# Stacks Configuration (required for deploy scripts)
STACKS_PRIVATE_KEY=
DEPLOYER_ADDRESS=
STACKS_NETWORK=testnet
# ─── Frontend (Next.js) ──────────────────────────────────────────────────────
# These are auto-generated by deploy/deploy-phase1.js after deployment.
# You can also set them manually for an existing deployment.
NEXT_PUBLIC_PROVIDER_REGISTRY_ADDRESS=
NEXT_PUBLIC_STAMP_REGISTRY_ADDRESS=
# Stacks API
NEXT_PUBLIC_STACKS_API=https://api.testnet.hiro.so
NEXT_PUBLIC_STACKS_NETWORK=testnet
# Oracle server (Phase 1: local dev | Phase 2+: hosted)
ORACLE_URL=http://localhost:3002
ORACLE_PORT=3002
# Generate with: npm run oracle:keygen
ORACLE_PRIVATE_KEY=
# App
NEXT_PUBLIC_APP_NAME=EcoStamp
NEXT_PUBLIC_APP_VERSION=1.0.0
# ─── Phase 2: x402 Content Server ────────────────────────────────────────────
# EVM wallet address that receives USDC payments (Base Sepolia / Base Mainnet)
X402_WALLET_ADDRESS=
# x402 network: base-sepolia (testnet) or base (mainnet)
X402_NETWORK=base-sepolia
# Facilitator URL (default: https://x402.org/facilitator)
X402_FACILITATOR_URL=https://x402.org/facilitator
# JWT secret shared between content-server and Next.js (change in production!)
STAMP_JWT_SECRET=ecostamp-dev-secret-change-in-prod
# Content server listen port
PORT=3001
# CORS origin for content server
CORS_ORIGIN=http://localhost:3000
# Next.js: content server URL (used by /api/x402 proxy route)
CONTENT_SERVER_URL=http://localhost:3001
# Next.js: x402 receiving wallet (exposed to client for payment prompt display)
NEXT_PUBLIC_X402_WALLET=
# Route planner data source
# - demo: uses the static dataset in content-server/src/content.js
# - live: fetches best-effort rail journeys from transport.rest and estimates CO2 using ADEME-style factors
ROUTE_DATA_MODE=demo
RAIL_API_BASE_URL=https://v6.db.transport.rest
# Demo mode (bypasses facilitator / on-chain payment settlement)
DEMO_MODE=true
NEXT_PUBLIC_DEMO_MODE=true
# ─── Phase 3: Reward Pool ─────────────────────────────────────────────────────
NEXT_PUBLIC_REWARD_POOL_ADDRESS=
POOL_SEED_USTX=5000000
# ─── Phase 4: Provider Self-Serve ────────────────────────────────────────────
# Wallet address of the designated verifier (must match provider-registry.clar)
NEXT_PUBLIC_VERIFIER_ADDRESS=
# x402 network for listing fee payments (base-sepolia = Phase 4 soft-launch)
NEXT_PUBLIC_X402_NETWORK=base-sepolia
# Listing fee in USDC micro-units (100000 = $0.10 with 6 decimals)
NEXT_PUBLIC_LISTING_FEE_AMOUNT=100000