☒ Implement LINE Mini dApp with gamified USDT yield farming
☒ Deploy smart contracts to Kaia mainnet with real USDT
☒ Create comprehensive Dune Analytics dashboard
☒ Build AI-powered chat bot for LINE integration
☒ Implement DID-based credentials and social features
☒ Create demo video and pitch deck
☒ Deploy live production environment
206 lines
5.5 KiB
Plaintext
206 lines
5.5 KiB
Plaintext
# KAIA YIELD AI - Environment Configuration
|
|
# Copy this file to .env and fill in your values
|
|
|
|
# ===============================================
|
|
# BLOCKCHAIN CONFIGURATION
|
|
# ===============================================
|
|
|
|
# Private key for contract deployment (DO NOT COMMIT TO GIT)
|
|
PRIVATE_KEY=your_private_key_here
|
|
|
|
# Kaia Network RPC URLs
|
|
KAIA_MAINNET_RPC=https://public-en-cypress.klaytn.net
|
|
KAIA_TESTNET_RPC=https://public-en-baobab.klaytn.net
|
|
|
|
# Contract Addresses (Update after deployment)
|
|
YIELD_OPTIMIZER_ADDRESS=
|
|
GAME_REWARDS_ADDRESS=
|
|
USDT_TOKEN_ADDRESS=0x19Aac5f612f524B754CA7e7c41cbFa2E981A4432
|
|
USDT_TESTNET_ADDRESS=
|
|
|
|
# Strategy Contract Addresses
|
|
STABLE_EARN_STRATEGY_ADDRESS=
|
|
GROWTH_PLUS_STRATEGY_ADDRESS=
|
|
HIGH_YIELD_PRO_STRATEGY_ADDRESS=
|
|
|
|
# ===============================================
|
|
# DATABASE CONFIGURATION
|
|
# ===============================================
|
|
|
|
# PostgreSQL Database URL
|
|
DATABASE_URL=postgresql://postgres:password@localhost:5432/kaia_yield_ai
|
|
|
|
# Redis Cache URL
|
|
REDIS_URL=redis://localhost:6379
|
|
|
|
# ===============================================
|
|
# API CONFIGURATION
|
|
# ===============================================
|
|
|
|
# Server Configuration
|
|
NODE_ENV=development
|
|
PORT=3001
|
|
LOG_LEVEL=debug
|
|
|
|
# CORS Settings
|
|
ALLOWED_ORIGINS=http://localhost:3000,https://liff.line.me
|
|
|
|
# Rate Limiting
|
|
RATE_LIMIT_WINDOW_MS=900000
|
|
RATE_LIMIT_MAX_REQUESTS=100
|
|
|
|
# ===============================================
|
|
# LINE PLATFORM INTEGRATION
|
|
# ===============================================
|
|
|
|
# LINE Bot Configuration
|
|
LINE_CHANNEL_ACCESS_TOKEN=your_line_channel_access_token
|
|
LINE_CHANNEL_SECRET=your_line_channel_secret
|
|
|
|
# LIFF (LINE Front-end Framework) Configuration
|
|
LIFF_ID=your_liff_app_id
|
|
LINE_LOGIN_CHANNEL_ID=your_line_login_channel_id
|
|
|
|
# ===============================================
|
|
# AI/ML CONFIGURATION
|
|
# ===============================================
|
|
|
|
# OpenAI API (for enhanced AI features)
|
|
OPENAI_API_KEY=your_openai_api_key
|
|
|
|
# TensorFlow Model Paths
|
|
MODEL_PATH=./ai/models/yield_optimizer_model
|
|
SCALER_PATH=./ai/models/feature_scaler.pkl
|
|
|
|
# AI Engine Settings
|
|
AI_CONFIDENCE_THRESHOLD=0.7
|
|
RECOMMENDATION_UPDATE_INTERVAL=3600000
|
|
|
|
# ===============================================
|
|
# EXTERNAL API INTEGRATIONS
|
|
# ===============================================
|
|
|
|
# CoinGecko API (for price data)
|
|
COINGECKO_API_KEY=your_coingecko_api_key
|
|
|
|
# DeFiLlama API (for protocol data)
|
|
DEFILLAMA_API_KEY=your_defillama_api_key
|
|
|
|
# Klaytnscope API (for blockchain data)
|
|
KLAYTNSCOPE_API_KEY=your_klaytnscope_api_key
|
|
|
|
# ===============================================
|
|
# SECURITY CONFIGURATION
|
|
# ===============================================
|
|
|
|
# JWT Secret for authentication
|
|
JWT_SECRET=your_jwt_secret_key_here
|
|
JWT_EXPIRE_TIME=7d
|
|
|
|
# Encryption Keys
|
|
ENCRYPTION_KEY=your_32_character_encryption_key
|
|
IV_LENGTH=16
|
|
|
|
# Session Secret
|
|
SESSION_SECRET=your_session_secret_here
|
|
|
|
# ===============================================
|
|
# MONITORING & ANALYTICS
|
|
# ===============================================
|
|
|
|
# Sentry Error Tracking
|
|
SENTRY_DSN=your_sentry_dsn
|
|
|
|
# Analytics & Metrics
|
|
ANALYTICS_API_KEY=your_analytics_api_key
|
|
MIXPANEL_TOKEN=your_mixpanel_token
|
|
|
|
# Health Check Configuration
|
|
HEALTH_CHECK_INTERVAL=30000
|
|
|
|
# ===============================================
|
|
# NOTIFICATION CONFIGURATION
|
|
# ===============================================
|
|
|
|
# Email Service (SendGrid)
|
|
SENDGRID_API_KEY=your_sendgrid_api_key
|
|
FROM_EMAIL=noreply@kaia-yield-ai.app
|
|
|
|
# Slack Notifications (for alerts)
|
|
SLACK_WEBHOOK_URL=your_slack_webhook_url
|
|
|
|
# ===============================================
|
|
# SCHEDULER CONFIGURATION
|
|
# ===============================================
|
|
|
|
# Enable Background Jobs
|
|
ENABLE_SCHEDULER=true
|
|
|
|
# Job Intervals (in milliseconds)
|
|
APY_UPDATE_INTERVAL=300000
|
|
REWARD_DISTRIBUTION_INTERVAL=86400000
|
|
MISSION_CHECK_INTERVAL=3600000
|
|
|
|
# ===============================================
|
|
# FEATURE FLAGS
|
|
# ===============================================
|
|
|
|
# Enable/Disable Features
|
|
ENABLE_AI_RECOMMENDATIONS=true
|
|
ENABLE_GAMIFICATION=true
|
|
ENABLE_SOCIAL_FEATURES=true
|
|
ENABLE_LINE_INTEGRATION=true
|
|
ENABLE_DID_CREDENTIALS=true
|
|
|
|
# Beta Features
|
|
ENABLE_ADVANCED_ANALYTICS=false
|
|
ENABLE_GOVERNANCE_FEATURES=false
|
|
ENABLE_NFT_REWARDS=false
|
|
|
|
# ===============================================
|
|
# DEVELOPMENT CONFIGURATION
|
|
# ===============================================
|
|
|
|
# Development Tools
|
|
REPORT_GAS=false
|
|
COVERAGE_REPORT=false
|
|
ENABLE_MOCK_DATA=false
|
|
|
|
# Testing Configuration
|
|
TEST_PRIVATE_KEY=0x0000000000000000000000000000000000000000000000000000000000000001
|
|
TEST_DATABASE_URL=postgresql://postgres:password@localhost:5432/kaia_yield_ai_test
|
|
|
|
# ===============================================
|
|
# PRODUCTION OVERRIDES
|
|
# ===============================================
|
|
|
|
# Production Database (Override for production)
|
|
# DATABASE_URL=postgresql://user:pass@prod-db:5432/kaia_yield_ai
|
|
|
|
# Production Redis (Override for production)
|
|
# REDIS_URL=redis://prod-redis:6379
|
|
|
|
# Production RPC (Override for production)
|
|
# KAIA_MAINNET_RPC=https://your-dedicated-rpc-endpoint
|
|
|
|
# CDN Configuration
|
|
# CDN_URL=https://cdn.kaia-yield-ai.app
|
|
# STATIC_ASSETS_URL=https://assets.kaia-yield-ai.app
|
|
|
|
# ===============================================
|
|
# HACKATHON DEMO CONFIGURATION
|
|
# ===============================================
|
|
|
|
# Demo Mode Settings
|
|
DEMO_MODE=true
|
|
DEMO_USER_WALLET=0x1234567890123456789012345678901234567890
|
|
DEMO_INITIAL_BALANCE=10000
|
|
|
|
# Mock Data for Demo
|
|
USE_MOCK_BLOCKCHAIN=false
|
|
USE_MOCK_AI_RESPONSES=false
|
|
MOCK_LINE_USER_ID=U1a2b3c4d5e6f7890123456789abcdef
|
|
|
|
# Demo Analytics
|
|
DUNE_API_KEY=your_dune_api_key
|
|
DEMO_DASHBOARD_URL=https://dune.com/kaia-yield-ai/kaia-wave-hackathon |