The RNG implementation is powered by the Verifiable Random Function(VRF).
The project is based on the Hardhat
framework. Install hardhat and other packages by the command:
npm install
npx hardhat compile
Configure the VRF related params in vrf.config.js
. Set to the coordinator on the KCC Testnet
by default.
KCC Testnet
npx hardhat run scripts/deploy.js
KCC Mainnet
npx hardhat run --network kcc_mainnet scripts/deploy.js