Random Gelato
EeseeRandomGelato
vrfGelatoOperator
Gelato VRF operator.
InvalidOperator
requestRandom
Requests random from Gelato. Emits {RequestRandom} event.
checker
Called by Gelato to determine if requestRandom() needs to be called.
Inherited from GelatoVRFConsumerBase
fulfillRandomness
Callback function used by Gelato VRF to return the random number. The randomness is derived by hashing the provided randomness with the request ID.
Parameters
Name | Type | Description |
---|---|---|
randomness | uint256 | The random number generated by Gelato VRF. |
dataWithRound | bytes | Additional data provided by Gelato VRF containing request details. |
Inherited from IGelatoVRFConsumer
RequestedRandomness
Event emitted when a randomness request is made.
Parameters
Name | Type | Description |
---|---|---|
round | uint256 | |
data | bytes | The round of randomness to request. |
Inherited from EeseeRandomBase
requestRandomImmediate
Request random immediately, skipping canRequestRandom() check. Emits {RequestRandom} event. Note: This function can only be called by REQUEST_RANDOM_ROLE.
changeRandomRequestInterval
Changes randomRequestInterval. Emits {ChangeRandomRequestInterval} event.
Parameters
Name | Type | Description |
---|---|---|
_randomRequestInterval | uint32 | - New randomRequestInterval. |
Note: This function can only be called by ADMIN_ROLE. |
getRandomFromTimestamp
canRequestRandom
Check if random needs to be requested.
ChangeRandomRequestInterval
Inherited from EeseeRoleHandler
Inherited from IEeseeRandom
random
lastRandomRequestTimestamp
randomRequestInterval
MAX_RANDOM_REQUEST_INTERVAL
FulfillRandom
RequestRandom
Last updated