tellor-io / dataSpecs

Data specifications for oracle queries
17 stars 9 forks source link

Numeric API response type #62

Closed oraclown closed 2 years ago

oraclown commented 2 years ago

Updates the generic API query type to be NumericApiReponse, because it's not fun to try to parse a stringified json blob in Solidity that's been reported to the oracle. Instead, the reporter only reports a bytes encoded integer with 18 decimals of precision on-chain... after parsing out that value from the API's response themselves.