How meenish/innoblock-ps6-sentiment-ledger works
Sentiment Ledger collects crypto headlines, scores and aggregates token sentiment, stores the detailed analysis off-chain, and publishes tamper-evident summaries to Ethereum Sepolia. The dashboard reads scores and history directly from the contract, then requests headlines and analysis details from the backend; it can also trigger agent runs and verify an analysis against its on-chain hash. The graph preserves the documented sample-data/backfill and AI-fallback capabilities. Some storage and aggregation internals were not sampled, so their connections are shown only where the README or source index supports them.
Main entry points: api.py HTTP API · agent.py Agent orchestration · app.js Dashboard and verification · chain.py Chain adapter
Components 17
Agent backend
- Flask entry point
backend/app.py - HTTP API
backend/api.py - Agent orchestration
backend/agent.py - Headline collection
backend/news.py - Sentiment scoring
backend/scorer.py - Signal aggregation
backend/aggregate.py - Analysis database
backend/db.py - Backend settings
backend/config.py
Dashboard
- Dashboard and verification
frontend/app.js - Dashboard settings
frontend/config.js
On-chain ledger
- Chain adapter
backend/chain.py - Sentiment registry
contracts/SentimentRegistry.sol
Data and services
- RSS feeds
- Sample headlines
backend/data/sample_headlines.json - AI scoring service
- Sepolia RPC
Other components
- Dashboard user
Connections 20
- Dashboard user → Dashboard and verification: uses
README.md - Flask entry point → HTTP API: creates app
backend/app.py - Dashboard and verification → Dashboard settings: reads settings
frontend/app.js - Dashboard and verification → Sentiment registry: reads history
frontend/app.js - Dashboard and verification → HTTP API: requests details
frontend/app.js - Dashboard and verification → HTTP API: starts runs
README.md - HTTP API → Agent orchestration: runs agent
backend/api.py - HTTP API → Chain adapter: checks chain
backend/api.py - HTTP API → Analysis database: queries records
backend/api.py - HTTP API → Backend settings: reads settings
backend/api.py - Agent orchestration → Headline collection: collects headlines
backend/agent.py - Agent orchestration → Sentiment scoring: scores headlines
backend/agent.py - Agent orchestration → Signal aggregation: builds signals
backend/agent.py - Agent orchestration → Analysis database: stores analysis
backend/agent.py - Agent orchestration → Chain adapter: publishes signals
backend/agent.py - RSS feeds → Headline collection: provides headlines
README.md - Sample headlines → Headline collection: provides headlines
README.md - Sentiment scoring → AI scoring service: requests scores
backend/scorer.py - Chain adapter → Sentiment registry: publishes and reads
backend/chain.py - Chain adapter → Sepolia RPC: uses RPC
backend/chain.py