Skip to content

Instantly share code, notes, and snippets.

@ngrinkevich
Last active October 8, 2018 12:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ngrinkevich/b23284dac4c1c57d572826d8811eb507 to your computer and use it in GitHub Desktop.
Save ngrinkevich/b23284dac4c1c57d572826d8811eb507 to your computer and use it in GitHub Desktop.
/**
* @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