-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
125 lines (95 loc) · 3.69 KB
/
Copy path.env.example
File metadata and controls
125 lines (95 loc) · 3.69 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
################ FRONTEND ################
REACT_APP_CHAIN_ID=80002
REACT_APP_REGISTRY_ADDRESS=0xYourRegistryContractAddress
# REACT_APP_IPFS_GATEWAY=https://gateway.pinata.cloud/ipfs/
# REACT_APP_IPFS_GATEWAY=https://ipfs.io/ipfs/
# REACT_APP_IPFS_GATEWAY=http://localhost:8000/ipfs/cid/
REACT_APP_API_BASE=http://localhost:8000
REACT_APP_AMOY_RPC_URL=https://polygon-amoy.g.alchemy.com/v2/YOUR_ALCHEMY_KEY
# REACT_APP_FFT_ADMIN_API_KEY=your_admin_api_key_here
REACT_APP_QUADRANTS_ADDRESS=0xYourGeoQuadrantsContractAddress
REACT_APP_DEPLOY_FROM_BLOCK=0
############################################
DEPLOY_FROM_BLOCK=0
################ BACKEND #################
# ===== Basic environment =====
FFT_ENV=dev
FFT_API_HOST=0.0.0.0
FFT_API_PORT=8000
API_BASE=http://localhost:8000
AMOY_RPC_URL=https://polygon-amoy.g.alchemy.com/v2/YOUR_ALCHEMY_KEY
NODE_ENV=development
# ===== MySQL (used in db.py / DB_CONFIG) =====
DB_HOST=127.0.0.1
DB_PORT=3306
DB_USER=your_db_user
DB_PASSWORD=your_db_password
DB_NAME=fft_db
# ===== CORS / frontend =====
FFT_CORS_ORIGINS=http://localhost:3000
CORS_ORIGINS=http://localhost:3000
# ===== Qdrant =====
QDRANT_HOST=127.0.0.1
QDRANT_PORT=6333
QDRANT_API_KEY=your_qdrant_api_key_here
QDRANT_COLLECTION=fft_events
# QDRANT_VECTOR_SIZE=128
QDRANT_VECTOR_SIZE=384
QDRANT_REP_REF=1000.00
# ===== Blockchain / GCD (Polygon Amoy) =====
FFT_POLYGON_RPC_URL=https://rpc-amoy.polygon.technology/
chainId=80002
# ===== Contract addresses (deployed on Amoy) =====
CONTRACT_ADDRESS=0xYourGCDContractAddress
GCD_CONTRACT_ADDRESS=0xYourGCDContractAddress
QUADRANTS_ADDRESS=0xYourGeoQuadrantsContractAddress
REGISTRY_ADDRESS=0xYourFfTRegistryContractAddress
STAKING_ADDRESS=0xYourFfTStakingContractAddress
# ===== Role hashes (keccak256) =====
MINTER_ROLE=0x9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6
BURN_ROLE=0xe97b137254058bd94f28d2f3eb79e2d34074ffb488d042e3bc958e0a57d2fa22
PAUSER_ROLE=0x65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a
ORACLE_ROLE=0x68e79a7bf1e0bc45d0a330c573bc367f9cf464fd326078812f301165fbda4ef1
# ===== Rate limits and rewards =====
MAX_EVENTS_PER_WALLET_PER_DAY=80
FFT_GCD_DAILY_REWARD_CAP=30.0
# ===== Security keys / admin =====
FFT_ADMIN_API_KEY=your_admin_api_key_here
FFT_JWT_SECRET=change_this_to_a_long_random_secret
FFT_JWT_PINATA=your_pinata_jwt_token_here
FFT_JWT_ALG=HS256
# ===== JWT for wallet authentication =====
FFT_AUTH_JWT_SECRET=change_this_to_a_long_random_secret
FFT_AUTH_JWT_TTL_SEC=86400
FFT_AUTH_DOMAIN=audit-string
# ===== OpenAI / AI (optional — for moderation, embeddings, etc.) =====
OPENAI_API_KEY=sk-...
# ===== Quadrants indexer =====
QUADRANTS_DEPLOY_FROM_BLOCK=0
QUADRANTS_LOG_SCAN_STEP=50000
QUADRANTS_INDEXER_INTERVAL_SEC=60
QUADRANTS_FINALITY_BLOCKS=10
FFT_QIDX_STEP_START=2000
FFT_QIDX_STEP_MIN=200
FFT_QIDX_STEP_MAX=20000
FFT_USE_PSEUDO_EMBEDDING=0
FFT_EMBEDDING_MODEL=paraphrase-multilingual-MiniLM-L12-v2
# ===== Signature requirement for IPFS pin =====
# Set to 1 in production to require wallet signature on every pin request
FFT_PIN_REQUIRE_SIG=0
# ===== Log level =====
# Production — show warnings and errors only:
# LOG_LEVEL=WARNING
# Development — show everything:
# LOG_LEVEL=DEBUG
# Staging — show info and above:
LOG_LEVEL=INFO
# ===== Backend wallet =====
BACKEND_WALLET_ADDRESS=0xYourBackendWalletAddress
BACKEND_WALLET_PRIVATE_KEY=your_private_key_here
# ===== GeoquadrantAnchor contract (flow of economic time) =====
ANCHOR_CONTRACT_ADDRESS=0xYourGeoquadrantAnchorContractAddress
# ===== Testnet faucet =====
ENABLE_TESTNET_FAUCET=1
FAUCET_AMOUNT_GCD=5.0
FAUCET_COOLDOWN_HOURS=24