Skip to content

Commit

Permalink
chore(version): updated to the latest maci version
Browse files Browse the repository at this point in the history
  • Loading branch information
yashgo0018 committed Sep 20, 2024
1 parent cf2d908 commit ee2c7f6
Show file tree
Hide file tree
Showing 5 changed files with 334 additions and 458 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ yarn start
7. **Compute Results**

- In a fourth terminal, clone the maci repo - `git clone [email protected]:privacy-scaling-explorations/maci.git`
- Copy the zkeys generated from the maci wrapper repo to the cli directory of the maci repo using `cp -r maci-wrapper/packages/hardhat/zkeys maci/cli`.
- Copy the zkeys generated from the maci wrapper repo to the cli directory of the maci repo using `cp -r maci-wrapper/packages/hardhat/zkeys maci/packages/cli`.
- Install the dependencies using `pnpm i` and build the maci project using `pnpm run build`
- Copy the new contract addresses from the maci wrapper repo to the maci repo using `cp -r maci-wrapper/packages/contractAddresses.json maci/cli/build/contractAddresses.json`.
- After this you should be able to run the commands written in the [maci documentation](https://maci.pse.dev/docs/v1.2/cli).
- Copy the new contract addresses from the maci wrapper repo to the maci repo using `cp -r maci-wrapper/packages/hardhat/contractAddresses.json maci/packages/cli/build/contractAddresses.json`.
- After this you should be able to run the commands written in the [maci documentation](https://maci.pse.dev/docs/quick-start/poll-finalization).
- First merge signups, then merge messages, and then generate proof, and upload the tally.json file which is generated in the process to the admin panel after the poll is over.

Navigate to `http://localhost:3000` to interact with your dApp. Modify your app configuration in `packages/nextjs/scaffold.config.ts` and `packages/hardhat/constants.ts` as necessary.
Expand Down
19 changes: 12 additions & 7 deletions packages/hardhat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@
"lint-staged": "eslint --config ./.eslintrc.json --ignore-path ./.eslintignore",
"test": "REPORT_GAS=true hardhat test --network hardhat",
"verify": "hardhat etherscan-verify",
"download-zkeys": "./maci-scripts/download_zkeys.sh"
"download-zkeys": "./maci-scripts/download_zkeys.sh",
"merge": "maci-cli mergeSignups --poll-id 0",
"maci-cli": "maci-cli"
},
"dependencies": {
"@commander-js/extra-typings": "^12.0.1",
"@nomicfoundation/hardhat-ignition-ethers": "^0.15.0",
"@typechain/ethers-v6": "~0.5.1",
"@zk-kit/eddsa-poseidon": "^0.11.0",
"@zk-kit/poseidon-cipher": "^0.3.0",
Expand All @@ -28,12 +31,12 @@
"dotenv": "~16.0.3",
"envfile": "~6.18.0",
"hardhat-artifactor": "^0.2.0",
"maci-circuits": "2.0.0",
"maci-cli": "2.0.0",
"maci-contracts": "2.0.0",
"maci-core": "2.0.0",
"maci-crypto": "2.0.0",
"maci-domainobjs": "2.0.0",
"maci-circuits": "2.3.0",
"maci-cli": "2.3.0",
"maci-contracts": "2.3.0",
"maci-core": "2.2.0",
"maci-crypto": "2.2.0",
"maci-domainobjs": "2.2.0",
"prompt": "^1.3.0",
"qrcode": "~1.5.1",
"snarkjs": "^0.7.3"
Expand All @@ -43,8 +46,10 @@
"@ethersproject/providers": "~5.7.1",
"@nomicfoundation/hardhat-chai-matchers": "~2.0.3",
"@nomicfoundation/hardhat-ethers": "~3.0.5",
"@nomicfoundation/hardhat-ignition": "^0.15.5",
"@nomicfoundation/hardhat-network-helpers": "~1.0.6",
"@nomicfoundation/hardhat-verify": "~2.0.3",
"@nomicfoundation/ignition-core": "^0.15.5",
"@typechain/ethers-v5": "~10.1.0",
"@typechain/hardhat": "~9.1.0",
"@types/circomlibjs": "^0",
Expand Down
4 changes: 2 additions & 2 deletions packages/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"circomkit": "^0.0.24",
"circomlib": "^2.0.5",
"daisyui": "4.5.0",
"maci-crypto": "2.0.0",
"maci-domainobjs": "2.0.0",
"maci-crypto": "2.2.0",
"maci-domainobjs": "2.2.0",
"next": "^14.0.4",
"next-themes": "^0.2.1",
"nprogress": "^0.2.0",
Expand Down
Loading

0 comments on commit ee2c7f6

Please sign in to comment.