DucaturFw / ducor-backend

Ducatur Oracles Backend
3 stars 3 forks source link

Refactor /config format #35

Open zlumer opened 6 years ago

zlumer commented 6 years ago

Config is a mess currently. We should refactor it to new provider format:

  1. List of categories.
  2. List of data providers in a specified category (with pretty i18n-enabled names).
  3. List of available configs for data providers (with pretty i18n-enabled names).

E.g.: Cryptocurrency exchanges -> Binance -> ETH/BTC ticker (crypto->binance->{ pair: "ETH/BTC" }) Random numbers -> Random.Org -> Single random integer (random->random-org->{ multi: false })

zlumer commented 6 years ago

And we definitely should put configs inside providers themselves.