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.
npx hardhat test
npx hardhat node
npx hardhat run --network localhost scripts/deploy.ts
ts-node oracles/randomNumber.ts --network Ganache --environment development
export NODE_OPTIONS=--openssl-legacy-provider