Skip to content

Latest commit

 

History

History
77 lines (52 loc) · 848 Bytes

File metadata and controls

77 lines (52 loc) · 848 Bytes

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