RandomBeaconChaosnet
RandomBeaconChaosnet
This file documents a contract which is not yet deployed to Mainnet.
A stub contract that will be used temporarily until the real-world random beacon client implementation is ready.
authorizedRequesters
mapping(address => bool) authorizedRequesters
Authorized addresses that can request a relay entry.
entry
uint256 entry
Arbitrary relay entry. Initially set to the Euler's number. It's updated after each relay entry request.
RequesterAuthorizationUpdated
event RequesterAuthorizationUpdated(address requester, bool isAuthorized)
requestRelayEntry
function requestRelayEntry(contract IRandomBeaconConsumer callbackContract) external
Executes the callback with an arbitrary relay entry number.
The caller must be an authorized requester.
Parameters
Name
Type
Description
callbackContract
contract IRandomBeaconConsumer
Beacon consumer callback contract - Wallet Registry
setRequesterAuthorization
function setRequesterAuthorization(address requester, bool isAuthorized) external
Authorizes a requester of the relay entry.
Last updated
Was this helpful?