Granola-Team / zkapps-itn

zkApps for ITN track 2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

zkApps for ITN track 2

These smart contracts were crafted to black box test various features of Mina Protocol zkApps.

Install dependencies

These contracts were tested with node v19.9.0 but should work with all node versions >= 16.

npm install

Make sure you now have the zkapp-cli

zk --version

How to build

npm run build

How to run tests

npm run test
npm run testw # watch mode

How to run coverage

npm run coverage

Deploying and interacting with contracts on chain

Create a deploy alias for the contract of interest

zk config

Follow the directions to create a deploy alias and fund the account. Or you can generate a keypair match the keyPath of a delpoy alias in config.json.

Deploy the contract

zk deploy <alias>

Each contract has an accompanying "interaction script" in src/interactions. In general, the pattern is

npm run interact:<alias>

Checkout package.json for more info or to modify the scripts.

License

Mozilla-2.0

About

zkApps for ITN track 2

License:Mozilla Public License 2.0


Languages

Language:TypeScript 95.8%Language:JavaScript 4.1%Language:Shell 0.1%