https://github.com/noot/harmony-assignment
for zk course
https://github.com/noot/harmony-assignment
Last synced: 6 months ago
JSON representation
for zk course
- Host: GitHub
- URL: https://github.com/noot/harmony-assignment
- Owner: noot
- Created: 2022-04-20T19:32:00.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-04-20T19:33:12.000Z (over 4 years ago)
- Last Synced: 2025-03-17T20:39:18.456Z (over 1 year ago)
- Language: Solidity
- Size: 4.88 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Harmony Assignment
This repo contains two contracts `NumberStorer.sol` and `Ballot.sol` which implement the functionality described [here](https://harmonyone.notion.site/Background-Assignment-a0d3855f9b9d4728a58b481c30ecfd3f).
There is also a test for `Ballot.sol` that tests the revert functionality described in the above document.
## Requirements
node.js v16+
Hardhat: `npm i -g hardhat`
ganache-cli: `npm i -g ganache-cli`
## Instructions
To build:
```bash
npx hardhat compile
```
To run unit tests:
```bash
ganache-cli
npx hardhat test
# Compiled 1 Solidity file successfully
# Ballot
# ✔ Should deploy and vote (751ms)
# ✔ Should revert after voting period ends (102ms)
# 2 passing (856ms)
```