tellor-io / telliot

The main CLI tool to interact with the Tellor projects
MIT License
28 stars 30 forks source link

Revisit the `indexes.json` file format to see if the format can be simplified or if can use an existing golang parser. #252

Closed krasi-georgiev closed 3 years ago

krasi-georgiev commented 4 years ago

@themandalore mentioned that this is the format that other projects use this format(Chainlink....) so on the plus side this should mean that people are familiar with this format. Lets see if can use some existing golang module to remove the need for a custom parser and sync with some user of the miner to agree on the format.

@mikeghen maybe you can also comment?

        "json(https://api.binance.com/api/v1/klines?symbol=BTCUSDT&interval=1d&limit=1).0.4",

could maybe be something like:

"URL": "https://api.binance.com/api/v1/klines?symbol=BTCUSDT&interval=1d&limit=1"
"type": "json",
"jsonPath":".0.4"

The format seems to be similar to https://goessner.net/articles/JsonPath/

krasi-georgiev commented 3 years ago

ducpliate of https://github.com/tellor-io/telliot/issues/221 so will continue the work these.