๐Ÿ“ƒUsingWitnetRandomness

๐Ÿง™Solidity Wizard

Constructor

Parameters
Type
Description

_witnetRandomness

WitnetRandomness

Address of the WitnetRandomness contract to interact with.

Properties

Name
Visibility
Description

witnet

Immutable public

Address of the WitnetOracle instance used by WitnetRandomness for posting randomize requests.

__RNG

Immutable internal

WitnetRandomness instance where to query and fetch randomness from.

Events

Events
Arguments
Description

WitnetQuery

address evmRequester

uint256 evmGasPrice

uint256 evmReward

uint256 queryId

bytes32 queryRadHash

RadonSLA querySLA

Emitted every time a new randomize query gets posted to the WitnetOracle contract.

WitnetQueryUpgrade

uint256 queryId

address evmSender

uint256 evmGasPrice

uint256 evmReward

Emitted if the EVM reward for solving a previously posted randomize is increased by anyone in any amount.

Randomizing

address evmOrigin

address evmSender

uint256 witOracleQueryId

Emitted every time a new randomize is requested to the WitnetRandomness contract.

Last updated

Was this helpful?