CoolFace
Apppublic

Maxx45654/ricci-reserve-protocol

sourceHugging Faceupdated 10mo agoView on Hugging Face
0likes
App README

AxiomTestnet - Ricci Flow Consensus Engine

Real-time oracle monitoring with geometric consensus using Ricci Flow curvature.

Features

  • โ€”๐Ÿ”„ Real-time Metrics - Lyapunov exponent, Coherence, Total Energy
  • โ€”๐Ÿ“Š Live Price Feeds - CoinGecko/Binance integration
  • โ€”๐ŸŽจ Interactive Dashboard - Recharts with smooth animations
  • โ€”๐Ÿ” Blockchain Integration - Sepolia testnet support
  • โ€”๐Ÿšจ Alert System - Native, email, and Telegram notifications
  • โ€”๐Ÿค– Multi-Agent Consensus - 9 agents on 3x3 lattice with Fisher metrics

Architecture

Single Docker Container
โ”œโ”€โ”€ Node.js Dashboard (port 7860)
โ”‚   โ”œโ”€โ”€ Express server
โ”‚   โ”œโ”€โ”€ Socket.io WebSocket
โ”‚   โ”œโ”€โ”€ React frontend (Recharts)
โ”‚   โ””โ”€โ”€ Alert services
โ”œโ”€โ”€ Python Engine (subprocess)
โ”‚   โ”œโ”€โ”€ Ricci Flow engine
โ”‚   โ”œโ”€โ”€ Multi-agent consensus
โ”‚   โ”œโ”€โ”€ Live price feeds
โ”‚   โ””โ”€โ”€ Metrics calculation
โ””โ”€โ”€ Persistent Storage
    โ””โ”€โ”€ Metrics accumulation

Environment Variables

Required environment variables (set in HuggingFace Secrets):

# Dashboard
NODE_ENV=production
PORT=7860
USE_ENGINE_WORKER=true

# Price Feed
PRICE_FEED_COIN=ethereum
USE_LIVE_PRICES=true

# Blockchain (Sepolia)
SEPOLIA_RPC_URL=https://sepolia.infura.io/v3/YOUR_KEY
SEPOLIA_PRIVATE_KEY=0x...
ORACLE_REGISTRY_ADDRESS=0x...

# Alerts
TELEGRAM_BOT_TOKEN=your_token
TELEGRAM_CHAT_ID=your_chat_id
GMAIL_USER=your_email@gmail.com
GMAIL_PASSWORD=your_app_password

Deployment

Deployed on HuggingFace Spaces with Docker runtime.

Local Testing

bash
docker build -f Dockerfile.huggingface -t axiom-test .
docker run -p 7860:7860 --env-file .env axiom-test

Visit: http://localhost:7860

Documentation

  • โ€”HUGGINGFACE_DEPLOYMENT_GUIDE.md - Setup instructions
  • โ€”HUGGINGFACE_DEPLOYMENT_CHECKLIST.md - Verification steps
  • โ€”DEPLOYMENT_SUMMARY.md - Complete overview

Support

  • โ€”HuggingFace Docs: https://huggingface.co/docs/hub/spaces
  • โ€”Docker Spaces: https://huggingface.co/docs/hub/spaces-docker