https://github.com/renproject/renvm-tracker
https://github.com/renproject/renvm-tracker
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/renproject/renvm-tracker
- Owner: renproject
- License: mit
- Created: 2021-07-23T00:25:47.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-21T14:55:24.000Z (about 2 years ago)
- Last Synced: 2025-06-17T22:41:55.085Z (12 months ago)
- Language: TypeScript
- Size: 89 MB
- Stars: 0
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `RenVM Tracker`
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](https://stats.renproject.io).
## ~ [Documentation](https://renproject.github.io/ren-client-docs/stats/renvm-stats) ~
The documentation includes a GraphQL sandbox to test queries in the browser.
Maintainer notes
## Maintainer notes
### TODO
Stats to add:
- Historic fee stats
- Darknode stats
### Notes
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`.
### Current set-up guides:
1. Run a ren_queryBlock and note the height and timestamp.
2. At the top of historic.ts, update the timestamp.
3. In historic.ts, select the relevant chains at the top of `main`.
4. Run historic.ts (`yarn run:generate-historic`) and commit the changes to `final.json`.
5. Switch off the heroku server.
6. Reset the database.
7. Push to heroku.
8. Restart the heroku server.