tellor-io / dataSpecs

Data specifications for oracle queries
17 stars 9 forks source link

Create Snapshot.md #32

Closed QuintusTheFifth closed 2 years ago

themandalore commented 2 years ago

Hey @QuintusTheFifth , don't we also need the address/ chain for getting the information? Just wondering here how we go from an ID to getting the answer (is there a website or api you can throw in as an example?)

themandalore commented 2 years ago

Hey @QuintusTheFifth , in the docs, what value are we returning on-chain? It says an array of uints...is this the yes/no votes? Some result? (what query/json parsing needs to happen?)

QuintusTheFifth commented 2 years ago

An array of values representing the amount of votes (uints) for each vote option should be returned on-chain. An example to get the data can be seen here: https://gist.github.com/QuintusTheFifth/3c5d79c9dd5eb8edbb3fc55f5518de2b