Appearance
📃 UsingWitnetRandomness
Constructor
| Parameters | Type | Description |
|---|---|---|
| _witnetRandomness | WitnetRandomness | Address of the WitnetRandomnesscontract 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 |
| Emitted every time a new randomize query gets posted to the WitnetOracle contract. |
| WitnetQueryUpgrade |
| Emitted if the EVM reward for solving a previously posted randomize is increased by anyone in any amount. |
| Randomizing |
| Emitted every time a new randomize is requested to the WitnetRandomness contract. |