description |
---|
Internal architecture of the project. |
It defines all DATA ids for the oracle contract. For example DATA is 10 in the tellor oracle contract is 24h VWAP of the AMPL/USD price. It uses the aggregator to get the required aggregated data.
Aggregates data to expose median, mean, TWAP, VWAP etc. It uses the data from the local/remote db. The db is populated by the index tracker.
A tracker is module that runs at a given interval and collects and records data. The most important tracked it the Index Tracker. It gets and parses data from an HTTP API or a Blockchain smart contract for later usage or aggregation. Another tracker is the profit tracker. It monitors and records all profit and cost for a one or multiple addresses.
The cli exposes an api to query all collected data from the trackers. The api is an exact copy of the Prometheus API which uses the promql query language.