VrfResponse
Copy event VrfResponse ( address user, uint256 randomNumber, bytes32 requestId, uint256 blockNumber)
GeodeWin
Copy event GeodeWin ( address user, uint256 itemId, uint256 geodeTokenId, bytes32 requestId, uint256 blockNumber)
GeodeEmpty
Copy event GeodeEmpty ( address user, uint256 geodeTokenId, bytes32 requestId, uint256 blockNumber)
GeodeRefunded
Copy event GeodeRefunded ( address user, uint256 geodeTokenId, bytes32 requestId, uint256 blockNumber)
linkBalance
Copy function linkBalance () external view returns ( uint256 linkBalance_)
vrfCoordinator
Copy function vrfCoordinator () external view returns ( address )
link
Copy function link () external view returns ( address )
keyHash
Copy function keyHash () external view returns ( bytes32 )
getMaxVrf
Copy function getMaxVrf () public pure returns ( uint256 )
areGeodePrizesAvailable
Copy function areGeodePrizesAvailable () public view returns ( bool )
numTotalPrizesLeft
Copy function numTotalPrizesLeft () public view returns ( uint256 total)
openGeodes
Copy function openGeodes ( uint256 [] _geodeTokenIds , uint256 [] _amountPerToken ) external
rawFulfillRandomness
Copy function rawFulfillRandomness ( bytes32 _requestId , uint256 _randomNumber ) external
fulfillRandomness handles the VRF response. Your contract must implement it.
The VRFCoordinator expects a calling contract to have a method with this signature, and will trigger it once it has verified the proof associated with the randomness (It is triggered via a call to rawFulfillRandomness, below.)
Parameters
Name Type Description The Id initially returned by requestRandomness
getRequestInfo
Copy function getRequestInfo ( address user) external view returns (struct VrfRequestInfo )
getRequestInfoByRequestId
Copy function getRequestInfoByRequestId ( bytes32 requestId) external view returns (struct VrfRequestInfo )
claimWinnings
Copy function claimWinnings () external
changeVrf
Copy function changeVrf ( uint256 _newFee , bytes32 _keyHash , address _vrfCoordinator , address _link ) external
Allow the diamond owner or DAO to change the vrf details
removeLinkTokens
Copy function removeLinkTokens ( address _to , uint256 _value ) external