EVM Based VRF Contract for Cosmos Enterprise.
yarn hardhat deployVRFCoordinator --minrequestconfirmations <minrequestconfirmations> --maxgaslimit <maxgaslimit> --network <network>
Users need to call the mehtod createSubscription
of VRFCoordinator
contract to register an administrator to manage their consumer contracts.
After the registration is completed, the VRFCoordinator
contract will return a subId
to the user, user deploys consumer contract with subId
.
Note, before deploying the contract, please confirm the keyHash
with the manager of the VRFCoordinator
contract.
The administrator calls the addConsumer
method of the VRFCoordinator
contract to add the consumer contract deployed in the previous step.