The directory is an off-chain API/service (utilizing openapi/swagger) that makes it easier for users and client to discover data providers. The directory consumes events from the cosmos chain such as

All of the chain events can be discovered here.

The directory can also perform reputation analysis on a provider based on the data received from the events. One or several algos could be created here, giving different measurements of reputation.

The directory service should also crawl the providers, fetching their metadata.json files, and aggregating that it into its database (mysql/postgres?). Each time the directory gets an event that increments the metadata nonce, it should fetch the latest metadata.json from the provider and update its state.

Validator Payout

This service should track the amount of tokens paid to validators for running a data provider. This can be used to give a relative degree of confidence to the community about “fake” contracts, seeing how much the provider must of spent to fake these contracts. The higher the payout, the less likely the contracts are fake.

Geolocation Search

This service should input long/lat into the database which is queryable, to help users find data providers that are close by.

API Endpoints

Fetch Provider- gets a specific provider