https://github.com/johnson86tw/maci-playground
A playground for building applications on top of Minimum Anti-Collusion Infrastructure.
https://github.com/johnson86tw/maci-playground
maci
Last synced: 11 months ago
JSON representation
A playground for building applications on top of Minimum Anti-Collusion Infrastructure.
- Host: GitHub
- URL: https://github.com/johnson86tw/maci-playground
- Owner: johnson86tw
- License: mit
- Created: 2021-08-09T02:35:48.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-09-28T09:32:04.000Z (over 4 years ago)
- Last Synced: 2025-06-19T06:40:33.336Z (12 months ago)
- Topics: maci
- Language: TypeScript
- Homepage: https://maci-docs.netlify.app/
- Size: 1.19 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MACI playground
## Guilds
Install dependencies
```
yarn install
```
### Roles
```ts
const [deployer, coordinator, alice, anyone] = await ethers.getSigners();
```
### Initiate
Start hardhat network at http://127.0.0.1:8545/
```sh
yarn start
```
Compile contracts
```sh
yarn compile
```
Deploy MACI, Ballot, and others.
```sh
yarn hardhat:local scripts/deployMaci.ts
```
Get maci info
```sh
yarn hardhat:local scripts/callMaci.ts
```
### Vote
Sign up
```sh
yarn hardhat:local scripts/signUp.ts
```
Publish Message
```sh
yarn hardhat:local scripts/vote.ts
```
Publish Messages
```sh
yarn hardhat:local scripts/submitMessageBatch.ts
```
Change Key
```sh
yarn hardhat:local scripts/changeVote.ts
```
### Tally
```sh
yarn hardhat:local scripts/tallyWithoutProofs.ts
```
```sh
yarn hardhat:local scripts/tally.ts
```
### Verify