Callback

Callback

This file documents a contract which is not yet deployed to Mainnet.

Library for handling calls to random beacon consumer.

Data

struct Data {
  contract IRandomBeaconConsumer callbackContract;
}

CallbackFailed

event CallbackFailed(uint256 entry, uint256 entrySubmittedBlock)

setCallbackContract

function setCallbackContract(struct Callback.Data self, contract IRandomBeaconConsumer callbackContract) internal

Sets callback contract.

Parameters

NameTypeDescription

self

struct Callback.Data

callbackContract

contract IRandomBeaconConsumer

Callback contract.

executeCallback

function executeCallback(struct Callback.Data self, uint256 entry, uint256 callbackGasLimit) internal

Executes consumer specified callback for the relay entry request.

Parameters

NameTypeDescription

self

struct Callback.Data

entry

uint256

The generated random number.

callbackGasLimit

uint256

Callback gas limit.

Last updated