forked from sirgawain0x/ocs-hack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
136 lines (114 loc) · 5.24 KB
/
Copy pathenv.example
File metadata and controls
136 lines (114 loc) · 5.24 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
# Foundry Deployment Configuration
# Copy this file to .env and fill in your values
# NEVER commit the .env file to git!
# ============================================
# REQUIRED: Deployer Wallet
# ============================================
# Your private key (without 0x prefix)
# This wallet needs ETH for gas fees on the target network
PRIVATE_KEY=your_private_key_here
# ============================================
# REQUIRED: Contract Owner Wallet
# ============================================
# Private key for the contract owner (for creating blockchain games)
# This should be the same wallet that deployed the contract
CONTRACT_OWNER_PRIVATE_KEY=your_contract_owner_private_key_here
# ============================================
# REQUIRED: Contract Configuration
# ============================================
# Address that can submit game rankings (your backend wallet)
GAME_ORACLE_ADDRESS=0x0000000000000000000000000000000000000000
# Address that receives platform fees (3% of entry fees)
PLATFORM_FEE_RECIPIENT=0x0000000000000000000000000000000000000000
# ============================================
# REQUIRED: TriviaBattlev4 Configuration
# ============================================
# USDC token address for the target network
# Sepolia USDC: 0x036CbD53842c5426634e7929541eC2318f3dCF7e
# Base Sepolia USDC: 0x036CbD53842c5426634e7929541eC2318f3dCF7e
# Base Mainnet USDC: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
USDC_ADDRESS=0x036CbD53842c5426634e7929541eC2318f3dCF7e
# ============================================
# REQUIRED: RPC URLs
# ============================================
# Base Sepolia testnet RPC
BASE_SEPOLIA_RPC_URL=https://sepolia.base.org
# Base Mainnet RPC
BASE_MAINNET_RPC_URL=https://mainnet.base.org
# Ethereum Sepolia testnet RPC (for Chainlink Automation)
SEPOLIA_RPC_URL=https://eth-sepolia.g.alchemy.com/v2/YOUR_ALCHEMY_API_KEY
# Ethereum Mainnet RPC (for Chainlink Automation)
MAINNET_RPC_URL=https://eth-mainnet.g.alchemy.com/v2/YOUR_ALCHEMY_API_KEY
# ============================================
# REQUIRED: Contract verification (Etherscan API v2 — one key for Base and all supported L2s)
# ============================================
# https://etherscan.io/apidashboard (not a separate Basescan-only key)
ETHERSCAN_API_KEY=your_etherscan_api_key_here
# ============================================
# FRONTEND CONFIGURATION
# ============================================
# App name for Base Account connector
NEXT_PUBLIC_APP_NAME=BEAT ME
# Network for frontend (mainnet for TriviaBattlev4)
NEXT_PUBLIC_NETWORK=mainnet
# TriviaBattlev4 contract address
NEXT_PUBLIC_TRIVIA_CONTRACT_ADDRESS=0xfF52Ed1DEb46C197aD7fce9DEC93ff9e987f8dB6
# Base RPC URL (optional, defaults to mainnet.base.org)
NEXT_PUBLIC_BASE_RPC_URL=https://mainnet.base.org
# CDP Configuration (for embedded wallets and paymaster)
NEXT_PUBLIC_CDP_API_KEY=your_cdp_api_key_here
NEXT_PUBLIC_CDP_PROJECT_ID=your_cdp_project_id_here
NEXT_PUBLIC_PAYMASTER_AND_BUNDLER_ENDPOINT=https://api.developer.coinbase.com/rpc/v1/base/your_api_key
# ============================================
# REQUIRED: Chainlink Functions Configuration
# ============================================
# Your existing Chainlink Functions subscription ID (102)
FUNCTIONS_SUBSCRIPTION_ID=102
# Gas limit for Functions requests (300000 recommended)
FUNCTIONS_GAS_LIMIT=300000
# Backend API URL for rankings (replace with your domain)
BACKEND_API_URL=https://your-domain.com
# ============================================
# OPTIONAL: Chainlink Data Platform (CDP) Configuration
# ============================================
# Get your CDP API credentials from: https://portal.cdp.coinbase.com/
# These are used for live blockchain data queries (active players, earnings, etc.)
# If not configured, the app will use demo data instead
CDP_API_KEY=your_cdp_api_key_here
CDP_API_SECRET=your_cdp_api_secret_here
# ============================================
# OPTIONAL: Chainlink Automation Configuration
# ============================================
# Custom update interval for automation (in seconds)
# Default: 60 for testnet, 3600 for mainnet
UPDATE_INTERVAL=60
# ============================================
# Network Information (for reference)
# ============================================
# Base Sepolia:
# Chain ID: 84532
# USDC: 0x036CbD53842c5426634e7929541eC2318f3dCF7e
# Explorer: https://sepolia.basescan.org
# Faucet: https://www.coinbase.com/faucets/base-ethereum-goerli-faucet
# Functions Router: 0xf9B8fc078197181C841c296C876945aaa425B278
# Functions Dashboard: https://functions.chain.link/
#
# Base Mainnet:
# Chain ID: 8453
# USDC: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
# Explorer: https://basescan.org
# Functions Router: 0xf9B8fc078197181C841c296C876945aaa425B278
# Functions Dashboard: https://functions.chain.link/
#
# Ethereum Sepolia (Chainlink Automation):
# Chain ID: 11155111
# Explorer: https://sepolia.etherscan.io
# Automation Dashboard: https://automation.chain.link/sepolia
# LINK Faucet: https://faucets.chain.link/sepolia
# USDC: 0x036CbD53842c5426634e7929541eC2318f3dCF7e
#
# Ethereum Mainnet (Chainlink Automation):
# Chain ID: 1
# Explorer: https://etherscan.io
# Automation Dashboard: https://automation.chain.link/mainnet
# USDC: 0xA0b86a33E6441b8C4C8C0C4C0C4C0C4C0C4C0C4C