Skip to content

feloot/solidity-random-number-oracle

Repository files navigation

Random number generator

Generic contract and oracle for requesting/returning randomly generated numbers. Check the TestContract to see how to implement it.

Don't forget to update oracles/randomNumber.ts with the contract address once it is deployed.

The config.ts file is configured with sample nodes but should be replaced with your own.

Test

npx hardhat test

Deploy on a local node

npx hardhat node
npx hardhat run --network localhost scripts/deploy.ts

Run oracle

ts-node oracles/randomNumber.ts --network Ganache --environment development

Having SSL issues ?

export NODE_OPTIONS=--openssl-legacy-provider

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published