Created
June 20, 2019 16:47
-
-
Save pedroduartecosta/4d3ee1a4ee6b616a35c5d067bdf4bd9f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// defines a general api request | |
struct Request { | |
uint id; //request id | |
string urlToQuery; //API url | |
string attributeToFetch; //json attribute (key) to retrieve in the response | |
string agreedValue; //value from key | |
mapping(uint => string) anwers; //answers provided by the oracles | |
mapping(address => uint) quorum; //oracles which will query the answer (1=oracle hasn't voted, 2=oracle has voted) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment