The RenVM Tracker is a server that syncs RenVM blocks and tracks volume, locked amounts and historic asset prices. It provides a GraphQL endpoint to query RenVM stats for a provided timestamp, available at stats.renproject.io.
~ Documentation ~
The documentation includes a GraphQL sandbox to test queries in the browser.
Maintainer notes
Stats to add:
- Historic fee stats
- Darknode stats
In order to keep a 1:1 map between the database entities and the GraphQL schema,
the volumes, locked amounts and prices are manipulated as strings. Any Snapshot
manipulation should be confined to snapshotUtils
.
- Run a ren_queryBlock and note the height and timestamp.
- At the top of historic.ts, update the timestamp.
- In historic.ts, select the relevant chains at the top of
main
. - Run historic.ts (
yarn run:generate-historic
) and commit the changes tofinal.json
. - Switch off the heroku server.
- Reset the database.
- Push to heroku.
- Restart the heroku server.