estimateRandomizeFee(uint256)
getRandomizeData(uint256)
getRandomnessAfter(uint256)
randomize()
was not called in either the given block, or afterwards; (b) a request posted in/after given block does exist, but no result has been provided yet; or (c), all requests in/after the given block were solved with errors.getRandomnessNextBlock(uint256)
getRandomnessPrevBlock(uint256)
isRandomized(uint256)
true
only when the randomness request that got posted within given block was already reported back from the Witnet oracle, either successfully or with an error of any kind.latestRandomizeBlock()
random(uint32,uint256,uint256)
[0 .. _range)
, by using the given _nonce
value and the randomness returned by getRandomnessAfter(_block)
. Fails under the same conditions as getRandomnessAfter(uint256)
does.random(uint32,uint256,bytes32)
[0 .. _range)
, by using the given _nonce
value and the given _seed
as a source of entropy.randomize() payable
upgradeRandomizeFee(uint256) payable
tx.gasprice
is with respect the highest gas price that was paid in either previous fee upgrades, or when the given randomness request was posted. All unused funds shall be transferred back to the msg.sender
.witnetRandomnessRequest()
WitnetRequestRandomness
contract that is being used for requesting new randomness to the Witnet oracle.cloned()
self()
)clone()
cloneDeterministic(bytes32)
_salt
to deterministically deploy the clone. Using the same _salt
multiple times will revert, since no contract can be deployed more than once at the same address.self()
witnet()
bytecode()
bytes
array is encoded using Protocol Buffers.hash()
bytecode()
.setWitnessingCollateral(uint64)
owner()
, if any.setWitnessingFees(uint64,uint64)
owner()
, if any.setWitnessingQuorum(uint8,uint8)
owner()
, if any.template()
totalWitnessingCollateral()
totalWitnessingFee()
witnessingParams()
cloned()
self()
)clone()
cloneDeterministic(bytes32)
_salt
to deterministically deploy the clone. Using the same _salt
multiple times will revert, since no contract can be deployed more than once at the same address.self()
owner()
WitnetRandomness
contract.