Skip to content

Commit

Permalink
Merge pull request #37 from orochi-network/feature/update_comment_of_…
Browse files Browse the repository at this point in the history
…consumer_v3

Update interface of OrandProviderV3's consumer
  • Loading branch information
chiro-hiro authored May 17, 2024
2 parents e428203 + 31323ba commit 8bb75f8
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions contracts/orand-v3/interfaces/IOrandConsumerV3.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,19 @@ pragma solidity ^0.8.0;

error InvalidProvider();

/**
* @dev IOrandConsumerV3 must be implemented for all service that use Orand
*/
interface IOrandConsumerV3 {
// Consume the verifiable randomness from Orand provider
// Return false if you want to stop batching
/**
* Consume the verifiable randomness from Orand provider
* @param randomness Randomness value
* @return return false if you want to stop batching otherwise return true
*/
function consumeRandomness(uint256 randomness) external returns (bool);
// Return true if all requests are fulfilled otherwise return false
/**
* Check the fulfill status of randomness batching
* @return true if all requests are fulfilled otherwise return false
*/
function isFulfilled() external returns (bool);
}

0 comments on commit 8bb75f8

Please sign in to comment.