generated from scaffold-eth/scaffold-eth-2
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
139093a
commit 158d154
Showing
1 changed file
with
9 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,6 +77,15 @@ In a third terminal, start the NextJS frontend: | |
yarn start | ||
``` | ||
|
||
7. **Compute Results** | ||
|
||
- In a fourth terminal, clone the maci repo - `git clone [email protected]:privacy-scaling-explorations/maci.git` and then reset to `ee3e2a6` commit using `git reset --hard ee3e2a6` | ||
- 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`. | ||
- 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). | ||
- 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. | ||
|
||
The deployed contracts will be saved to the file `packages/hardhat/contractAddresses.json`, this file is compatible with maci cli. | ||
|