Mars² is a real-time, onchain risk radar for validators on the Sei EVM network. It gives delegators live color-coded trust scores, enables anonymous (Sybil-resistant) incident reports, and provides validators with a shared encrypted communication channel to coordinate in emergencies—all fully deployed and verifiable on Sei testnet.
🎯 Stake confidently. Report anonymously. Coordinate securely.
- Real-time Validator Monitoring: Live scoring system with color-coded risk assessments
- Real AI-Powered Analysis: OpenAI GPT-4o integration for genuine machine learning validator assessment
- Anonymous Incident Reporting: Zero-knowledge proof-based and Sibyl resistant reporting system
- Encrypted Group Messaging: Secure validator communication with key management
- MetaMask Integration: Wallet connectivity for Sei EVM testnet
- Performance Optimized: Sub-second response times for all analysis features
Mars² uses three main contracts deployed on Sei EVM Testnet (Atlantic-2):
| Contract | Address | Description |
|---|---|---|
| MarsValidatorScore | 0x2358F2a3A43aa1aD43A1B6A04D52E26b7c37B294 |
Validator scoring and updates |
| MarsZkAttest | 0x45d1DfaC9051d1B2552126D68caD5E6d3B9c5Cae |
Anonymous incident reporting |
| MarsValidatorGroupMessages | 0x9FE44Ee4805318bc5093A1daE2cc42A519dDD950 |
Encrypted group messaging |
- MarsValidatorScore: View on Seitrace
- MarsZkAttest: View on Seitrace
- MarsValidatorGroupMessages: View on Seitrace
Sei EVM Testnet (Atlantic-2)
- Network Name: Sei Testnet
- RPC URL: https://evm-rpc-testnet.sei-apis.com
- Chain ID: 1328
- Currency: SEI
- Block Explorer: https://seitrace.com
-
Clone the repository
git clone https://github.com/tatdz/mars2.git cd mars2 -
Install Dependencies
npm install
-
Start Development Server
npm run dev
The application will be available at http://localhost:5000
-
Connect MetaMask
- The app will automatically configure Sei testnet in MetaMask
- Ensure you have testnet SEI tokens for transactions
-
Try AI Recommendations
- Connect your wallet and click "Get AI Recommendations"
- Experience sub-second analysis of validator delegations
- Get instant, actionable staking advice
- React 18 with TypeScript
- Tailwind CSS with custom Mars² theming
- Radix UI components for accessibility
- TanStack Query for state management
- Wouter for lightweight routing
- Express.js with TypeScript
- Drizzle ORM for database operations
- Memory storage for development
- AI-powered analysis with fast timeout handling
- ethers.js v6 for blockchain interactions
- Real-time validator data from Sei APIs
- ZK-proof simulation for anonymous reporting
- Optimized parallel processing for validator score fetching
- Real OpenAI Integration using GPT-4o for validator analysis
- Machine Learning Assessment of complex performance patterns
- Portfolio Strategy Analysis with diversification recommendations
- Confidence Scoring and detailed reasoning for each recommendation
- Intelligent Fallback when AI service limits reached
- Sub-5 second responses even with real AI processing
- Parallel validator analysis with optimized timeouts
- Graceful degradation when blockchain RPC is unavailable
- Real-time score updates from Mars² smart contracts
Getting Started:
- Connect Wallet: Click "Connect MetaMask" and approve the Sei testnet configuration
- Browse Validators: View the real-time validator dashboard with color-coded scores
- Get AI Recommendations: Click "Get AI Recommendations" for personalized staking advice
- Understand the Scoring:
- 🟢 Green (80-100): Safe validators to stake with
- 🟡 Yellow (50-79): Monitor closely, moderate risk
- 🔴 Red (0-49): High risk, consider unstaking
Real AI-Powered Analysis:
- OpenAI GPT-4o Integration: Genuine machine learning analysis of validator performance patterns
- Comprehensive Assessment: AI examines uptime, commission, governance participation, jailed status
- Portfolio Insights: Strategic analysis of entire delegation portfolio with diversification recommendations
- Confidence Scoring: Each recommendation includes AI confidence levels and specific concerns
- Enhanced Fallback: Sophisticated analysis when AI quota limits reached
Monitoring Your Stakes:
- Click the info button (ℹ️) next to any validator for detailed score breakdowns
- Monitor your chosen validators regularly for score changes
- Use the network stats sidebar to understand overall network health
Reporting Issues:
- Navigate to any validator's row in the dashboard
- Click the yellow warning icon (
⚠️ ) to report an incident - Select incident type (missed blocks, downtime, governance issues, etc.)
- Provide a detailed description of the issue you observed
- Submit report - your identity remains completely anonymous
- The validator's score will update automatically if the report is verified
Account Setup:
- Connect Wallet: Use MetaMask with your validator operator account
- Monitor Your Score: Find your validator in the dashboard and track your performance
- Understand Score Factors: Uptime, missed blocks, governance participation, and incident reports
Encrypted Messaging:
- Navigate to the "Messaging" page
- Generate Keys: Click "Generate New Keys" to create your encryption keypair
- Import Validator Keys: Add public keys from other validators you want to communicate with
- Send Messages: Compose encrypted messages for coordination and emergency communication
- Decrypt Messages: View and decrypt messages sent to you by other validators
Incident Response:
- Monitor your score for any negative changes
- Check for incident reports that may affect your rating
- Use the messaging system to coordinate with other validators during network issues
- Maintain high uptime and active governance participation
Step-by-Step Process:
- Identify Issue: Observe problematic validator behavior (downtime, missed blocks, etc.)
- Access Report Form: Click the warning icon (
⚠️ ) next to the validator - Select Issue Type: Choose from predefined categories or select "Other"
- Provide Details: Write a detailed description (minimum 10 characters)
- Submit Anonymously: Your report is submitted with zero-knowledge proof verification
- Automatic Processing: The system verifies the report and updates the validator's score
- Monitor Resolution: Check if the validator addresses the reported issue
Privacy Protection:
- Your wallet address is never revealed in reports
- Zero-knowledge proofs prevent double-reporting while maintaining anonymity
- All reports are Sybil-resistant to prevent spam attacks
- Report authenticity is cryptographically verified
- AES-256 encryption simulation for messaging
The application includes demo functionality that works without requiring MetaMask signatures for testing:
- Validator Scoring: Color-coded risk assessment (Green: 80+, Yellow: 60-79, Red: <60)
- Report Submission: Anonymous incident reporting with ZK-proof verification
- Group Messaging: Encrypted communication between validators
- Real-time Updates: Live data from Sei testnet APIs
Environment Variables:
- All secrets are managed through environment variables (never commit to repository)
- Required for AI features:
OPENAI_API_KEY(OpenAI GPT-4o access) - Use Replit Secrets or your platform's environment management system
- The
.gitignorefile prevents accidental secret exposure
Security Practices:
- No API keys or secrets in source code
- Environment variables used for all sensitive data
- Comprehensive
.gitignorefor common secret file patterns - Zero-knowledge proof simulation for anonymous reporting
├── client/ # React frontend
├── server/ # Express backend
├── shared/ # Shared types and schemas
└── components.json # UI component configuration
ValidatorTable: Main dashboard with scoring systemReportModal: Anonymous incident reporting interfaceGroupChat: Encrypted messaging systemNetworkStats: Real-time network statistics
MIT License - see LICENSE file for details