Skip to content

A playground for building applications on top of Minimum Anti-Collusion Infrastructure.

License

Notifications You must be signed in to change notification settings

johnson86tw/maci-playground

Repository files navigation

MACI playground

Guilds

Install dependencies

yarn install

Roles

const [deployer, coordinator, alice, anyone] = await ethers.getSigners();

Initiate

Start hardhat network at http://127.0.0.1:8545/

yarn start

Compile contracts

yarn compile

Deploy MACI, Ballot, and others.

yarn hardhat:local scripts/deployMaci.ts

Get maci info

yarn hardhat:local scripts/callMaci.ts 

Vote

Sign up

yarn hardhat:local scripts/signUp.ts

Publish Message

yarn hardhat:local scripts/vote.ts

Publish Messages

yarn hardhat:local scripts/submitMessageBatch.ts

Change Key

yarn hardhat:local scripts/changeVote.ts

Tally

yarn hardhat:local scripts/tallyWithoutProofs.ts
yarn hardhat:local scripts/tally.ts

Verify

About

A playground for building applications on top of Minimum Anti-Collusion Infrastructure.

Topics

Resources

License

Stars

Watchers

Forks