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.example
totoken-deployments-info.json
and update/chains/.../rpc/url
and/chains/.../inventories/[protocol:BobVault]/feeding_service_path
with proper endpoints. -
Copy
docker-compose.yml.example
todocker-compose.yml
. -
Update the following environment variables in
docker-compose.yml
:MEASUREMENTS_INTERVAL
SNAPSHOT_DIR
TSDB_DIR
FEEDING_SERVICE_URL
FEEDING_SERVICE_PATH
FEEDING_SERVICE_UPLOAD_TOKEN
-
Launch the service
docker compose up -d