wormhole-explorer/api/handlers
agodnic d9d49ec919
Add 24h volume to scorecards (#274)
### Summary

This pull request adds volume metrics to influxdb. Also, it adds the 24h volume metric to `GET /api/v1/scorecards`.

Tracking issues: https://github.com/wormhole-foundation/wormhole-explorer/issues/221, https://github.com/wormhole-foundation/wormhole-explorer/issues/280

### Changes:
* The `parser` service no longer generates metrics for influxdb. All metrics-related code was removed from that service, that code was moved to the analytics service instead.
* New volume metrics were added to the analytics service.
* The notional cache was modified to use token names (i.e.: ticker symbols) as keys instead of chain IDs.
* The notional cache reader was moved to the `common/client/cache` package.
* A little bit of duplicated code between the cache reader and writer was removed.
* A 24h volume metric was added to `GET /api/v1/scorecards`.
* A dictionary that stores token metadata was added under `common/domain/tokenbridge.go`. More tokens will be added to it in the near future.
2023-05-04 20:17:03 -03:00
..
address Add route `GET /api/v1/address/{address}` (#228) 2023-04-12 15:51:33 -03:00
governor Sort the output of `GET /api/v1/vaas` by timestamp (#267) 2023-04-28 10:18:07 -03:00
guardian Handle guardianSet by p2p enviroment in fly/api (#112) 2023-01-31 11:38:17 -03:00
heartbeats [API/PARSER] Chain activity and last transaction endpoints (#175) 2023-03-07 16:25:42 -03:00
infrastructure [API] split api/v1 and v1 routing in different files (#101) 2023-01-27 12:58:37 -03:00
observations Sort the output of `GET /api/v1/vaas` by timestamp (#267) 2023-04-28 10:18:07 -03:00
transactions Add 24h volume to scorecards (#274) 2023-05-04 20:17:03 -03:00
vaa Add 24h volume to scorecards (#274) 2023-05-04 20:17:03 -03:00