Request form
Cookbook may introduce a token in the future. Share and contribute to be eligible for future airdrops.
close icon
relevant tag icon
VRFConsumerBaseV2
copy icon
DirtyCajunRice
• version 1.0.0
Utility
Chainlink
VRF
Upgradeable
Inheritable

VRFConsumerBaseV2

Upgradeable Chainlink VRF consumer (Base) inheritable

*Visit desktop site to download or deploy

Version

1.0.0

Last Publish

12/12/2022
Any contract you deploy is yours.
Fully owned and controlled by your wallet.
Documentation
Source Code
__VRFConsumerBaseV2_init(address) :
This function is an internal function used to initialize the VRFConsumerBaseV2 contract. It sets the address of the VRFCoordinator contract, which is used to interact with the VRF system. It also sets the state of the contract to "onlyInitializing" to ensure that no other functions can be called until the initialization is complete. (autogenerated documentation)
__VRFConsumerBaseV2_init_unchained(address) :
This function is used to initialize the VRFConsumerBaseV2 contract. It sets the address of the VRFCoordinator contract, which is used to coordinate the VRF process. This allows the VRFConsumerBaseV2 contract to interact with the VRFCoordinator contract and access its functions. (autogenerated documentation)
fulfillRandomWords(uint256,uint256[]) :
This function allows the VRF Coordinator to fulfill a request for random words. It takes two parameters: a request ID and an array of random words. The function checks that the sender is the VRF Coordinator, and if so, calls the fulfillRandomWords() function to fulfill the request. (autogenerated documentation)
rawFulfillRandomWords(uint256,uint256[]) :
This function allows the VrfCoordinator to fulfill a request for random words. It takes a request ID and an array of random words as parameters. The function then calls the fulfillRandomWords() function, which stores the random words in the mapping associated with the request ID. (autogenerated documentation)

Get Cookin'
share iconShare

copy iconDownload Source
copy iconnpx cookbookdev i VRFConsumerBaseV2
copy icon

Last Publish

12/12/2022

Version

1.0.0

Cookbook is free.
Any contract you deploy is yours.
Your contract is owned and controlled by you.