Created
June 29, 2019 12:30
-
-
Save mikery/1eeb7f5f46de4f8b62db59f6c8d5183c 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
| function requestFlightStatus(address _oracle, string _jobId, string _flightId) | |
| public | |
| onlyOwner | |
| { | |
| Chainlink.Request memory req = buildChainlinkRequest(stringToBytes32(_jobId), this, this.fulfillFlightStatus.selector); | |
| req.add("flightId", _flightId); | |
| sendChainlinkRequestTo(_oracle, req, ORACLE_PAYMENT); | |
| } | |
| function fulfillFlightStatus(bytes32 _requestId, uint256 _status) | |
| public | |
| recordChainlinkFulfillment(_requestId) | |
| { | |
| flightStatus = _status; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment