Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 2.45 KB

usingwitnetrandomness.md

File metadata and controls

22 lines (15 loc) · 2.45 KB

📃 UsingWitnetRandomness

{% content-ref url="../../solidity-wizard.md" %} solidity-wizard.md {% endcontent-ref %}

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

EventsArgumentsDescription
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.