Repository navigation
Expand file tree
/
Copy pathexample.env
More file actions
160 lines (126 loc) · 6.57 KB
/
Copy pathexample.env
File metadata and controls
160 lines (126 loc) · 6.57 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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
# Cookie Jar Environment Configuration
# =============================================================================
# BLOCKCHAIN NETWORKS & RPC ENDPOINTS
# =============================================================================
# Alchemy API Key (works across all supported networks)
NEXT_PUBLIC_ALCHEMY_API_KEY=your_alchemy_api_key
# Moralis API Key (alternative NFT provider)
NEXT_PUBLIC_MORALIS_API_KEY=your_moralis_api_key
# =============================================================================
# NFT & METADATA SERVICES
# =============================================================================
# OpenSea API Key (for collection verification and floor prices)
NEXT_PUBLIC_OPENSEA_API_KEY=your_opensea_api_key
# Reservoir API Key (for NFT marketplace data)
NEXT_PUBLIC_RESERVOIR_API_KEY=your_reservoir_api_key
# IPFS Gateway Configuration
NEXT_PUBLIC_IPFS_GATEWAY=https://gateway.pinata.cloud/ipfs/
NEXT_PUBLIC_PINATA_JWT=your_pinata_jwt_for_uploads
# =============================================================================
# DEVELOPMENT & TESTING
# =============================================================================
# Enable debug mode for NFT validation
NEXT_PUBLIC_DEBUG_NFT_VALIDATION=false
# Mock NFT data in development (set to true to use mock data)
NEXT_PUBLIC_USE_MOCK_NFT_DATA=false
# NFT validation cache duration (minutes)
NEXT_PUBLIC_NFT_CACHE_DURATION=60
# Maximum NFTs to load per collection (performance limit)
NEXT_PUBLIC_MAX_NFTS_PER_COLLECTION=1000
# =============================================================================
# SECURITY & RATE LIMITING
# =============================================================================
# Rate limiting for NFT API calls (requests per minute)
NEXT_PUBLIC_API_RATE_LIMIT=60
# Timeout for NFT metadata fetching (milliseconds)
NEXT_PUBLIC_NFT_FETCH_TIMEOUT=10000
# Maximum concurrent NFT validation requests
NEXT_PUBLIC_MAX_CONCURRENT_VALIDATIONS=5
# =============================================================================
# ANALYTICS & MONITORING
# =============================================================================
# Enable NFT gating analytics
NEXT_PUBLIC_ENABLE_NFT_ANALYTICS=true
# Sentry DSN for error tracking
NEXT_PUBLIC_SENTRY_DSN=your_sentry_dsn
# =============================================================================
# CONTRACT DEPLOYMENT CONFIGURATION
# =============================================================================
# Production deployments use Foundry Keystore (SECURE)
# Import your account: cast wallet import deployer --interactive
KEYSTORE_ACCOUNT=deployer
# Local development only (NOT for production!)
# Only set this for local Anvil deployments
# PRIVATE_KEY=your_private_key_for_local_development_only
# Deployer address for reference (not used in deployment)
DEPLOYER_ADDRESS=your_deployer_address
# RPC URLs for deployment
ETHEREUM_RPC_URL=https://eth-mainnet.g.alchemy.com/v2/your_api_key
BASE_RPC_URL=https://base-mainnet.g.alchemy.com/v2/your_api_key
SEPOLIA_RPC_URL=https://eth-sepolia.g.alchemy.com/v2/your_api_key
# Etherscan API keys for contract verification
ETHERSCAN_API_KEY=your_etherscan_api_key
# =============================================================================
# USAGE INSTRUCTIONS
# =============================================================================
# 1. Copy this file to .env.local for local development
# 2. Replace placeholder values with your actual API keys
# 3. Never commit .env.local to version control
# 4. For production, set these as environment variables on your deployment platform
# REQUIRED for basic functionality:
# - NEXT_PUBLIC_ALCHEMY_API_KEY (at minimum)
# RECOMMENDED for full features:
# - NEXT_PUBLIC_OPENSEA_API_KEY (for collection verification)
# - NEXT_PUBLIC_PINATA_JWT (for IPFS uploads)
# OPTIONAL enhancements:
# - NEXT_PUBLIC_MORALIS_API_KEY (alternative NFT provider)
# - NEXT_PUBLIC_RESERVOIR_API_KEY (marketplace data)
# =============================================================================
# STIPEND JAR HOME PAGE (cookies.greengoods.app)
# =============================================================================
# Jar rendered on the home page. Required on live chains. Leave empty on Anvil to use the seeded jar at NEXT_PUBLIC_FEATURED_JAR_INDEX.
NEXT_PUBLIC_FEATURED_JAR_ADDRESS=
# Block the featured jar was created at (history scan start). Defaults to the factory deployment block.
NEXT_PUBLIC_FEATURED_JAR_BLOCK=
# Index into the factory's jar list when no address is configured (4 = the demo ERC1155 jar on Anvil)
NEXT_PUBLIC_FEATURED_JAR_INDEX=4
# 42161 = Arbitrum One (default in production), 31337 = Anvil (default in development)
NEXT_PUBLIC_DEFAULT_CHAIN_ID=
# Public origin used for metadata, OpenGraph and WalletConnect verification
NEXT_PUBLIC_SITE_URL=https://cookies.greengoods.app
# Required for WalletConnect / mobile wallets (https://cloud.reown.com)
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID=
# Set to true once the Content-Security-Policy has been validated in report-only mode
CSP_ENFORCE=
# =============================================================================
# FACTORY DEPLOYMENT (bun deploy:<network>), only for a chain without a usable factory.
# Arbitrum already has the Green Goods factory (0x294d222eDE6DF6625B43544F1C634322467528Da).
# =============================================================================
FEE_COLLECTOR=0xe09315A86ED0A39862158f5631b928145987fE05
FACTORY_OWNER=0x49fa954B6C2Cd14B4b3604EF1Cc17cED20a9E42C
FEE_PERCENTAGE=100
MIN_ETH_DEPOSIT=100000000000000
# Default minimum for ERC20 jars that pass MIN_DEPOSIT=<sentinel>; jars usually set their own.
MIN_ERC20_DEPOSIT=1000000000000000000
# =============================================================================
# JAR CREATION (bun create-jar:arbitrum), see contracts/script/CreateJar.s.sol for the full list
# =============================================================================
FACTORY_ADDRESS=0x294d222eDE6DF6625B43544F1C634322467528Da
# Confirm the Green Goods Safe address on Arbitrum before creating the jar.
JAR_OWNER=
CURRENCY=0xaf88d065e77c8cC2239327C5EDb3A432268e5831
ACCESS_TYPE=ERC1155
NFT_CONTRACT=0x3bc1A0Ad72417f2d411118085256fC53CBdDd137
NFT_TOKEN_ID=0x0000005c00010000000000000000000000000000000000000000000000000000
NFT_MIN_BALANCE=1
WITHDRAWAL_OPTION=Variable
MAX_WITHDRAWAL=800000000
WITHDRAWAL_INTERVAL=2419200
# Smallest deposit in token units (1 USDC). Leave unset to take the factory default.
MIN_DEPOSIT=1000000
STRICT_PURPOSE=true
EMERGENCY_WITHDRAWAL_ENABLED=true
ONE_TIME_WITHDRAWAL=false
FEE_PERCENTAGE_ON_DEPOSIT=0
METADATA_FILE=config/jars/arbitrum-stipend.json
DRY_RUN=true