-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.local.example
More file actions
65 lines (54 loc) · 4.68 KB
/
Copy path.env.local.example
File metadata and controls
65 lines (54 loc) · 4.68 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
# ════════════════════════════════════════════════════════════════════════════
# Flow Sentinel — Environment Variables
# Copy this file to .env.local and fill in your values.
# NEVER commit .env.local to git — it is already in .gitignore.
# ════════════════════════════════════════════════════════════════════════════
# ── Flow Blockchain ──────────────────────────────────────────────────────────
# Testnet (current):
NEXT_PUBLIC_FLOW_ACCESS_NODE=https://rest-testnet.onflow.org
NEXT_PUBLIC_FLOW_NETWORK=testnet
# Mainnet (when ready):
# NEXT_PUBLIC_FLOW_ACCESS_NODE=https://rest-mainnet.onflow.org
# NEXT_PUBLIC_FLOW_NETWORK=mainnet
# ── Deployed Contract Addresses ──────────────────────────────────────────────
# All contracts are currently co-deployed on the same testnet account.
NEXT_PUBLIC_SENTINEL_VAULT_ADDRESS=0xc2cda89ef9d88797
NEXT_PUBLIC_SENTINEL_INTERFACES_ADDRESS=0xc2cda89ef9d88797
NEXT_PUBLIC_STRATEGY_REGISTRY_ADDRESS=0xc2cda89ef9d88797
NEXT_PUBLIC_LIQUID_STAKING_STRATEGY_ADDRESS=0xc2cda89ef9d88797
NEXT_PUBLIC_YIELD_FARMING_STRATEGY_ADDRESS=0xc2cda89ef9d88797
NEXT_PUBLIC_FLOW_TOKEN_ADDRESS=0x7e60df042a9c0868
NEXT_PUBLIC_FUNGIBLE_TOKEN_ADDRESS=0x9a0766d93b6608b7
# ── WalletConnect ─────────────────────────────────────────────────────────────
# Get a project ID from https://cloud.walletconnect.com
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID=your_walletconnect_project_id
# ── Supabase (Phase 6 — Backend) ─────────────────────────────────────────────
# Create a project at https://supabase.com and run the schema from lib/supabase.ts
NEXT_PUBLIC_SUPABASE_URL=https://your-project-id.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
SUPABASE_SERVICE_KEY=your_supabase_service_role_key # server-side only, never expose to browser
# ── Oracle Admin (Phase 4 — Live Oracle) ─────────────────────────────────────
# The Flow account that holds the YieldOracle.OracleAdminResource
# This account signs oracle update transactions submitted by the oracle-update API route
ORACLE_ADMIN_ADDRESS=0x...your_oracle_admin_address
ORACLE_ADMIN_PRIVATE_KEY=your_p256_private_key_hex # P-256 curve, 64 hex chars — KEEP SECRET
ORACLE_ADMIN_KEY_INDEX=0 # Key index on the Flow account (usually 0)
# ── Strategy Keeper (Phase 5 — Automated Execution) ──────────────────────────
# The Flow account that triggers automated vault execution via the keeper function
KEEPER_ADDRESS=0x...your_keeper_address
KEEPER_PRIVATE_KEY=your_p256_private_key_hex # Different key from oracle admin — KEEP SECRET
# ── Cron Authentication ───────────────────────────────────────────────────────
# Shared secret between Netlify scheduled functions and the API routes they call
# Generate with: openssl rand -base64 32
CRON_SECRET=your_random_cron_secret_here
# ── Resend (Phase 6 — Email Notifications) ────────────────────────────────────
# Create an account at https://resend.com and add a sending domain
RESEND_API_KEY=re_your_resend_api_key
# ── Sentry (Error Monitoring) ─────────────────────────────────────────────────
# Create a project at https://sentry.io
NEXT_PUBLIC_SENTRY_DSN=https://your_key@sentry.io/your_project_id
# ── App ───────────────────────────────────────────────────────────────────────
# The public URL of your deployed app — used by Netlify functions to call API routes
NEXT_PUBLIC_BASE_URL=https://your-app.netlify.app
# For local development:
# NEXT_PUBLIC_BASE_URL=http://localhost:3000