GeneralRandcastConsumerBase
Imports the necessary contracts and libraries:
import "../utils/RequestIdBase.sol";
import "../utils/GasEstimationBase.sol";
import "./BasicRandcastConsumerBase.sol";
import "openzeppelin-contracts/contracts/access/Ownable.sol";Inherits the imported contracts and libraries:
abstract contract GeneralRandcastConsumerBase is
BasicRandcastConsumerBase,
RequestIdBase,
GasEstimationBase,
Ownable
{ ... }Sets important constants:
Defines public variables for callback gas limit, max gas fee, and request confirmations(blocks):
Provides the setCallbackGasConfig() function and setRequestConfirmations() function to allow the owner to set the callbackGasLimit, callbackMaxGasFee and requestConfirmations manually:
setCallbackGasConfig() function and setRequestConfirmations() function to allow the owner to set the callbackGasLimit, callbackMaxGasFee and requestConfirmations manually:Implements the requestRandomness() function for requesting randomness from the Adapter:
requestRandomness() function for requesting randomness from the Adapter:Estimates the required gas for the callback function:
Sends a raw randomness request to the Adapter:
Last updated