This service on regualar basis sends requests to blockchains and CoinGecko API to collect BOB token stats on different chain, keeps it in a local timeseries database and publishes the stats on the BOB token stats server.
The sources for the stats:
| total supply | BOB contract |
| collateralised circulated supply | BobVault + pools on Uniswap V3 and KyberSwap Elastic |
| trading fees | pools on Uniswap V3 and KyberSwap Elastic |
| trading bolume | BobVault and CoinGecko API |
| balances | BOB contract |
It assumes that the corresponding BigQuery project was created and an access key to update dataset was issued and stored in /some/path/to/biguery.key.json
-
Copy
token-deployments-info.json.exampletotoken-deployments-info.jsonand update/chains/.../rpc/urland/chains/.../inventories/[protocol:BobVault]/feeding_service_pathwith proper endpoints. -
Copy
docker-compose.yml.exampletodocker-compose.yml. -
Update the following environment variables in
docker-compose.yml:MEASUREMENTS_INTERVALSNAPSHOT_DIRTSDB_DIRFEEDING_SERVICE_URLFEEDING_SERVICE_PATHFEEDING_SERVICE_UPLOAD_TOKEN
-
Launch the service
docker compose up -d