Skip to content

Latest commit

 

History

History
65 lines (39 loc) · 1.76 KB

README.md

File metadata and controls

65 lines (39 loc) · 1.76 KB

zkGames smart contracts

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).

Install dependencies

yarn install

Run tests

npx hardhat test

When you run tests you will see something like this:

tests

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

Futoshiki contracts graph

futoshikiContractGraph

Skyscrapers contracts graph

skyscrapersContractGraph

Sudoku contracts graph

sudokuContractGraph