johnson86tw / maci-playground

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

Home Page:https://maci-docs.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

https://maci-docs.netlify.app/

License:MIT License


Languages

Language:TypeScript 83.9%Language:Solidity 16.1%