Skip to main content

IRandomBeacon

IRandomBeacon

Random beacon interface

Update

event Update(uint256 blockNumber, uint256 value)

EPOCH_PERIOD

function EPOCH_PERIOD() external view returns (uint8)

getRandomness

function getRandomness(uint256 blockNumber) external view returns (uint256)

currEpochBlock

function currEpochBlock() external view returns (uint256)

getEpochBlock

function getEpochBlock(uint256 blockNumber) external view returns (uint256)

currEpochExpires

function currEpochExpires() external view returns (uint256)

getEpochExpires

function getEpochExpires(uint256 blockNumber) external view returns (uint256)

requestRandomness

function requestRandomness() external returns (uint256, uint256)