This folder was generated using Hardhat and contains all the smart contracts used in the zkGames application.
There are 3 folders inside the contracts folder, one folder per game. Each game has two smart contracts: one contract for game logic (generate boards, verify boards, mint NFT) and another contract to verify the zk proof (this contract was generated using snarkjs).
yarn install
npx hardhat test
When you run tests you will see something like this:
Deploy on Harmony Testnet
Create a .env
file and add to it:
PRIVATE_KEY=<yourPrivateKey>
where yourPrivateKey
is the private key of your wallet.
To deploy on Harmony Testnet run:
npx hardhat run scripts/deploy.js --network harmonyTestnet
Deploy on Harmony Mainnet
Create a .env
file and add to it:
PRIVATE_KEY=<yourPrivateKey>
where yourPrivateKey
is the private key of your wallet.
To deploy on Harmony Mainnet run:
npx hardhat run scripts/deploy.js --network harmonyMainnet