Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
144 lines (102 loc) · 4.39 KB
/
Copy path.env.example
File metadata and controls
144 lines (102 loc) · 4.39 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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# Tesseract Environment Configuration Template
# Copy this file to .env and fill in your values
# =============================================================================
# NETWORK CONFIGURATION
# =============================================================================
# Alchemy API Keys (recommended for production)
ALCHEMY_API_KEY=your_alchemy_api_key_here
# Infura API Keys (alternative to Alchemy)
INFURA_API_KEY=your_infura_api_key_here
# =============================================================================
# ACCOUNT CONFIGURATION
# =============================================================================
# IMPORTANT: Never commit real private keys to version control!
# Use hardware wallets or secure key management systems for mainnet
# Deployer account (contract owner)
DEPLOYER_PRIVATE_KEY=your_deployer_private_key_here
# Operator account (has BUFFER_ROLE and ADMIN_ROLE)
OPERATOR_PRIVATE_KEY=your_operator_private_key_here
# Resolver account (has RESOLVE_ROLE)
RESOLVER_PRIVATE_KEY=your_resolver_private_key_here
# Emergency admin account (can pause contract in emergencies)
EMERGENCY_ADMIN_PRIVATE_KEY=your_emergency_admin_private_key_here
# Use test accounts for local development
USE_TEST_ACCOUNT=false
# =============================================================================
# CONTRACT CONFIGURATION
# =============================================================================
# Coordination window in seconds (time window for cross-rollup coordination)
COORDINATION_WINDOW=30
# Maximum number of transactions per block (DoS protection)
MAX_TRANSACTIONS_PER_BLOCK=100
# Maximum number of transactions per user per block
MAX_USER_TRANSACTIONS_PER_BLOCK=10
# Maximum payload size in bytes
MAX_PAYLOAD_SIZE=2048
# Circuit breaker threshold (number of failures before activation)
CIRCUIT_BREAKER_THRESHOLD=50
# Emergency admin address (if different from deployer)
EMERGENCY_ADMIN=
# =============================================================================
# MONITORING AND OBSERVABILITY
# =============================================================================
# Sentry DSN for error tracking
SENTRY_DSN=your_sentry_dsn_here
# Prometheus endpoint for metrics
PROMETHEUS_ENDPOINT=http://localhost:9090
# Discord webhook for alerts
DISCORD_WEBHOOK_URL=your_discord_webhook_url_here
# Slack webhook for notifications
SLACK_WEBHOOK_URL=your_slack_webhook_url_here
# =============================================================================
# TESTING CONFIGURATION
# =============================================================================
# Test network configuration
TEST_NETWORK=ethereum:local:hardhat
# Number of test transactions for load testing
TEST_TRANSACTION_COUNT=1000
# Number of concurrent workers for testing
TEST_WORKER_COUNT=10
# =============================================================================
# SECURITY CONFIGURATION
# =============================================================================
# Key vault configuration (for production)
KEY_VAULT_URL=
KEY_VAULT_CLIENT_ID=
KEY_VAULT_CLIENT_SECRET=
# Multi-signature wallet addresses
MULTISIG_WALLET_ADDRESS=
# Time-lock delay for critical operations (in seconds)
TIMELOCK_DELAY=86400
# =============================================================================
# DEVELOPMENT CONFIGURATION
# =============================================================================
# Enable debug logging
DEBUG=false
# Development mode (enables additional logging and checks)
DEV_MODE=true
# Local network ports
LOCAL_RPC_PORT=8545
LOCAL_WS_PORT=8546
# =============================================================================
# CI/CD CONFIGURATION
# =============================================================================
# GitHub token for CI/CD
GITHUB_TOKEN=
# Deployment environment (dev, staging, prod)
DEPLOYMENT_ENV=dev
# Auto-verification on deployment
AUTO_VERIFY=true
# =============================================================================
# CROSS-CHAIN CONFIGURATION
# =============================================================================
# Cross-chain message relayer configuration
RELAYER_PRIVATE_KEY=your_relayer_private_key_here
# Cross-chain finality requirements (blocks)
ETHEREUM_FINALITY_BLOCKS=12
POLYGON_FINALITY_BLOCKS=256
ARBITRUM_FINALITY_BLOCKS=1
OPTIMISM_FINALITY_BLOCKS=1
# Oracle configuration for cross-chain state verification
ORACLE_ENDPOINT=
ORACLE_API_KEY=