Contributions are welcome! Here's how to get started.
Prerequisites: mise
git clone https://github.com/kilnfi/tron-validator-watcher.git
cd tron-validator-watcher
mise install # installs Go, Node, golangci-lint, mockery, task
cp config.example.yaml config.yaml
# Edit config.yaml with your RPC endpoint and validator addresses
task setup # downloads deps, generates mocks, builds frontendRun directly:
task runtask testtask linttask generatecmd/watcher/ # Entrypoint
internal/
tron/ # Tron API client (blocks, witnesses, accounts)
watcher/block/ # Block-by-block monitoring logic
watcher/network/ # Network-level metrics
status/ # In-memory state store
ui/ # Embedded frontend (React/Vite)
server/http/ # HTTP server (/metrics, /api/status, dashboard)
frontend/ # React + TypeScript source
- Fork the repo and create a branch from
main - Make your changes with tests
- Ensure
make testsandmake lintpass - Open a PR against
main
Please do not open a public issue for security vulnerabilities. See SECURITY.md.