Skip to content

bianjieai/cosmos-vrf

Repository files navigation

Cosmos VRF

EVM Based VRF Contract for Cosmos Enterprise.

1. Deoloy VRFCoordinator contract

yarn hardhat deployVRFCoordinator --minrequestconfirmations <minrequestconfirmations> --maxgaslimit <maxgaslimit> --network <network>

2. Apply for a subscriber id

Users need to call the mehtod createSubscription of VRFCoordinator contract to register an administrator to manage their consumer contracts.

3. Deploy the consumer contract

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.

4. Add the consumer contract

The administrator calls the addConsumer method of the VRFCoordinator contract to add the consumer contract deployed in the previous step.

About

EVM Based VRF Contract for Cosmos Enterprise

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published