Last active
October 8, 2018 12:03
-
-
Save ngrinkevich/b23284dac4c1c57d572826d8811eb507 to your computer and use it in GitHub Desktop.
This file contains 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
/** | |
* @dev Creates a request to generate a new relay entry, which will include a | |
* random number (by signing the previous entry's random number). | |
* @param blockReward The value in KEEP for generating the signature. | |
* @param seed Initial seed random value from the client. It should be a cryptographically generated random value. | |
* @param callbackContract Callback contract address. | |
* @param callbackMethod Callback contract method signature. | |
* @return An uint256 representing uniquely generated ID. It is also returned as part of the event. | |
*/ | |
function requestRelayEntry( | |
uint256 blockReward, | |
uint256 seed, | |
address callbackContract, | |
string callbackMethod | |
) public payable returns (uint256 requestID) { | |
// ... | |
return requestID; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment