From 1434aae516d22718873af2d7961541f68aa7d2ad Mon Sep 17 00:00:00 2001 From: Yash Goyal Date: Sat, 21 Sep 2024 10:35:16 +0530 Subject: [PATCH] added the finalization scripts also in the maci-wrapper --- README.md | 10 +- package.json | 3 +- packages/hardhat/.gitignore | 5 +- packages/hardhat/deploy-config.json | 752 ++++++++++++++++++ packages/hardhat/deployed-contracts.json | 30 +- packages/hardhat/hardhat.config.ts | 2 + packages/hardhat/package.json | 3 +- .../nextjs/contracts/deployedContracts.ts | 111 +-- 8 files changed, 819 insertions(+), 97 deletions(-) create mode 100644 packages/hardhat/deploy-config.json diff --git a/README.md b/README.md index 7942625..3b37c62 100644 --- a/README.md +++ b/README.md @@ -79,13 +79,9 @@ yarn start 7. **Compute Results** -- In a fourth terminal, clone the maci repo - `git clone git@github.com: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/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/hardhat/contractAddresses.json maci/packages/cli/build/contractAddresses.json`. You can also copy the `deployed-contracts.json`file from the maci wrapper repo to the maci repo `cp maci-wrapper/packages/hardhat/deployed-contracts.json maci/packages/contracts/deployed-contracts.json`. -- Inside the MACI repo folder, run `cp packages/contracts/deploy-config-example.json packages/contracts/deploy-config.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. +- Update `packages/hardhat/deploy-config.json` file, select the network, and in the `Poll` object, update `coordinatorPubkey` to the coordinator public key in the `packages/hardhat/coordinatorKeyPair.json`, and update `useQuadraticVoting` if you want to compute results for a non quadratic vote. +- Merge the poll, using `yarn hardhat merge --poll {poll id}` +- Generate proof, using `yarn hardhat prove --poll {poll id} --output-dir {proof ouput dir} --coordinator-private-key {coordinator private key} --tally-file {tally output file}` 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. diff --git a/package.json b/package.json index 5136c18..6e615a9 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,8 @@ "precommit": "lint-staged", "vercel": "yarn workspace @se-2/nextjs vercel", "vercel:yolo": "yarn workspace @se-2/nextjs vercel:yolo", - "download-zkeys": "yarn workspace @se-2/hardhat download-zkeys" + "download-zkeys": "yarn workspace @se-2/hardhat download-zkeys", + "hardhat": "yarn workspace @se-2/hardhat hardhat" }, "packageManager": "yarn@3.2.3", "devDependencies": { diff --git a/packages/hardhat/.gitignore b/packages/hardhat/.gitignore index 321d1c1..92a80b4 100644 --- a/packages/hardhat/.gitignore +++ b/packages/hardhat/.gitignore @@ -18,4 +18,7 @@ deployments/localhost zkeys coordinatorKeyPair.json -contractAddresses.json \ No newline at end of file +contractAddresses.json + +proof +tally.json diff --git a/packages/hardhat/deploy-config.json b/packages/hardhat/deploy-config.json new file mode 100644 index 0000000..b509fe0 --- /dev/null +++ b/packages/hardhat/deploy-config.json @@ -0,0 +1,752 @@ +{ + "sepolia": { + "ConstantInitialVoiceCreditProxy": { + "deploy": true, + "amount": 99 + }, + "FreeForAllGatekeeper": { + "deploy": false + }, + "MerkleProofGatekeeper": { + "deploy": false, + "root": "0x2461fcc4c0965cb7f482dd28f1ca8057b7a62a35e8b7a86bb3ad6523f4bb21c0" + }, + "EASGatekeeper": { + "deploy": true, + "easAddress": "0xC2679fBD37d54388Ce493F1DB75320D236e1815e", + "schema": "0xe2636f31239f7948afdd9a9c477048b7fc2a089c347af60e3aa1251e5bf63e5c", + "attester": "the-attester-address" + }, + "GitcoinPassportGatekeeper": { + "deploy": false, + "decoderAddress": "0xe53C60F8069C2f0c3a84F9B3DB5cf56f3100ba56", + "passingScore": 5 + }, + "ZupassGatekeeper": { + "deploy": false, + "signer1": "13908133709081944902758389525983124100292637002438232157513257158004852609027", + "signer2": "7654374482676219729919246464135900991450848628968334062174564799457623790084", + "eventId": "69c0caaa-c65d-5345-a20c-867774f18c67", + "zupassVerifier": "0x2272cdb3596617886d0F48524DA486044E0376d6" + }, + "SemaphoreGatekeeper": { + "deploy": false, + "semaphoreContract": "0x0A09FB3f63c13F1C54F2fA41AFB1e7a98cffc774", + "groupId": 0 + }, + "MACI": { + "stateTreeDepth": 10, + "gatekeeper": "EASGatekeeper" + }, + "VkRegistry": { + "stateTreeDepth": 10, + "intStateTreeDepth": 1, + "messageTreeDepth": 2, + "voteOptionTreeDepth": 2, + "messageBatchDepth": 1, + "zkeys": { + "qv": { + "processMessagesZkey": "./zkeys/ProcessMessages_10-2-1-2_test/ProcessMessages_10-2-1-2_test.0.zkey", + "tallyVotesZkey": "./zkeys/TallyVotes_10-1-2_test/TallyVotes_10-1-2_test.0.zkey", + "processWasm": "./zkeys/ProcessMessages_10-2-1-2_test/ProcessMessages_10-2-1-2_test_js/ProcessMessages_10-2-1-2_test.wasm", + "tallyWasm": "./zkeys/TallyVotes_10-1-2_test/TallyVotes_10-1-2_test_js/TallyVotes_10-1-2_test.wasm" + }, + "nonQv": { + "processMessagesZkey": "./zkeys/ProcessMessagesNonQv_10-2-1-2_test/ProcessMessagesNonQv_10-2-1-2_test.0.zkey", + "tallyVotesZkey": "./zkeys/TallyVotesNonQv_10-1-2_test/TallyVotesNonQv_10-1-2_test.0.zkey", + "processWasm": "./zkeys/ProcessMessagesNonQv_10-2-1-2_test/ProcessMessagesNonQv_10-2-1-2_test_js/ProcessMessagesNonQv_10-2-1-2_test.wasm", + "tallyWasm": "./zkeys/TallyVotesNonQv_10-1-2_test/TallyVotesNonQv_10-1-2_test_js/TallyVotesNonQv_10-1-2_test.wasm" + } + } + }, + "Poll": { + "pollDuration": 3600, + "coordinatorPubkey": "macipk.a6d3d86f81f76bd168ab28feefb0197277b693b109be40c891a916217b9e35ee", + "useQuadraticVoting": true + } + }, + "scroll_sepolia": { + "ConstantInitialVoiceCreditProxy": { + "deploy": true, + "amount": 99 + }, + "FreeForAllGatekeeper": { + "deploy": false + }, + "MerkleProofGatekeeper": { + "deploy": false, + "root": "0x2461fcc4c0965cb7f482dd28f1ca8057b7a62a35e8b7a86bb3ad6523f4bb21c0" + }, + "EASGatekeeper": { + "deploy": false, + "easAddress": "0xaEF4103A04090071165F78D45D83A0C0782c2B2a", + "schema": "0xe2636f31239f7948afdd9a9c477048b7fc2a089c347af60e3aa1251e5bf63e5c", + "attester": "0xcbc8a82e3dfc6faa2506f3033271ebc7447f096b" + }, + "GitcoinPassportGatekeeper": { + "deploy": false, + "decoderAddress": "0x2443D22Db6d25D141A1138D80724e3Eee54FD4C2", + "passingScore": 5 + }, + "ZupassGatekeeper": { + "deploy": true, + "signer1": "13908133709081944902758389525983124100292637002438232157513257158004852609027", + "signer2": "7654374482676219729919246464135900991450848628968334062174564799457623790084", + "eventId": "d2ce5bb2-99a3-5a61-b7e6-1cd46d2ee00d" + }, + "SemaphoreGatekeeper": { + "deploy": false, + "semaphoreContract": "0x0000000000000000000000000000000000000000", + "groupId": 0 + }, + "MACI": { + "stateTreeDepth": 10, + "gatekeeper": "ZupassGatekeeper" + }, + "VkRegistry": { + "stateTreeDepth": 10, + "intStateTreeDepth": 1, + "messageTreeDepth": 2, + "voteOptionTreeDepth": 2, + "messageBatchDepth": 1, + "zkeys": { + "qv": { + "processMessagesZkey": "./zkeys/ProcessMessages_10-2-1-2_test/ProcessMessages_10-2-1-2_test.0.zkey", + "tallyVotesZkey": "./zkeys/TallyVotes_10-1-2_test/TallyVotes_10-1-2_test.0.zkey", + "processWasm": "./zkeys/ProcessMessages_10-2-1-2_test/ProcessMessages_10-2-1-2_test_js/ProcessMessages_10-2-1-2_test.wasm", + "tallyWasm": "./zkeys/TallyVotes_10-1-2_test/TallyVotes_10-1-2_test_js/TallyVotes_10-1-2_test.wasm" + }, + "nonQv": { + "processMessagesZkey": "./zkeys/ProcessMessagesNonQv_10-2-1-2_test/ProcessMessagesNonQv_10-2-1-2_test.0.zkey", + "tallyVotesZkey": "./zkeys/TallyVotesNonQv_10-1-2_test/TallyVotesNonQv_10-1-2_test.0.zkey", + "processWasm": "./zkeys/ProcessMessagesNonQv_10-2-1-2_test/ProcessMessagesNonQv_10-2-1-2_test_js/ProcessMessagesNonQv_10-2-1-2_test.wasm", + "tallyWasm": "./zkeys/TallyVotesNonQv_10-1-2_test/TallyVotesNonQv_10-1-2_test_js/TallyVotesNonQv_10-1-2_test.wasm" + } + } + }, + "Poll": { + "pollDuration": 10800, + "coordinatorPubkey": "macipk.0a1ce79a43fa676ee3d2882c79d9164a24d4a22bb6190e3d8fa25d97bffc069a", + "useQuadraticVoting": true + } + }, + "optimism": { + "ConstantInitialVoiceCreditProxy": { + "deploy": true, + "amount": 99 + }, + "FreeForAllGatekeeper": { + "deploy": false + }, + "MerkleProofGatekeeper": { + "deploy": false, + "root": "0x2461fcc4c0965cb7f482dd28f1ca8057b7a62a35e8b7a86bb3ad6523f4bb21c0" + }, + "EASGatekeeper": { + "deploy": true, + "easAddress": "0x4200000000000000000000000000000000000021", + "schema": "0xe2636f31239f7948afdd9a9c477048b7fc2a089c347af60e3aa1251e5bf63e5c", + "attester": "the-attester-address" + }, + "GitcoinPassportGatekeeper": { + "deploy": false, + "decoderAddress": "0x5558D441779Eca04A329BcD6b47830D2C6607769", + "passingScore": 5 + }, + "ZupassGatekeeper": { + "deploy": false, + "signer1": "13908133709081944902758389525983124100292637002438232157513257158004852609027", + "signer2": "7654374482676219729919246464135900991450848628968334062174564799457623790084", + "eventId": "69c0caaa-c65d-5345-a20c-867774f18c67", + "zupassVerifier": "0x2272cdb3596617886d0F48524DA486044E0376d6" + }, + "SemaphoreGatekeeper": { + "deploy": false, + "semaphoreContract": "0x0000000000000000000000000000000000000000", + "groupId": 0 + }, + "MACI": { + "stateTreeDepth": 6, + "gatekeeper": "EASGatekeeper" + }, + "VkRegistry": { + "stateTreeDepth": 6, + "intStateTreeDepth": 2, + "messageTreeDepth": 9, + "voteOptionTreeDepth": 3, + "messageBatchDepth": 2, + "zkeys": { + "qv": { + "processMessagesZkey": "./zkeys/ProcessMessages_6-9-2-3/processMessages_6-9-2-3.zkey", + "tallyVotesZkey": "./zkeys/TallyVotes_6-2-3/tallyVotes_6-2-3.zkey", + "processWasm": "./zkeys/ProcessMessages_6-9-2-3/ProcessMessages_6-9-2-3_js/ProcessMessages_6-9-2-3.wasm", + "tallyWasm": "./zkeys/TallyVotes_6-2-3/TallyVotes_6-2-3_js/TallyVotes_6-2-3.wasm" + }, + "nonQv": { + "processMessagesZkey": "./zkeys/ProcessMessagesNonQv_6-9-2-3/processMessagesNonQv_6-9-2-3.zkey", + "tallyVotesZkey": "./zkeys/TallyVotesNonQv_6-2-3/tallyVotesNonQv_6-2-3.zkey", + "processWasm": "./zkeys/ProcessMessagesNonQv_6-9-2-3/ProcessMessagesNonQv_6-9-2-3_js/ProcessMessagesNonQv_6-9-2-3.wasm", + "tallyWasm": "./zkeys/TallyVotesNonQv_6-2-3/TallyVotesNonQv_6-2-3_js/TallyVotesNonQv_6-2-3.wasm" + } + } + }, + "Poll": { + "pollDuration": 3600, + "coordinatorPubkey": "macipk.a6d3d86f81f76bd168ab28feefb0197277b693b109be40c891a916217b9e35ee", + "useQuadraticVoting": true + } + }, + "arbitrum_sepolia": { + "ConstantInitialVoiceCreditProxy": { + "deploy": true, + "amount": 99 + }, + "FreeForAllGatekeeper": { + "deploy": true + }, + "MerkleProofGatekeeper": { + "deploy": false, + "root": "0x2461fcc4c0965cb7f482dd28f1ca8057b7a62a35e8b7a86bb3ad6523f4bb21c0" + }, + "EASGatekeeper": { + "deploy": false, + "easAddress": "0xC2679fBD37d54388Ce493F1DB75320D236e1815e", + "schema": "0xe2636f31239f7948afdd9a9c477048b7fc2a089c347af60e3aa1251e5bf63e5c", + "attester": "the-attester-address" + }, + "GitcoinPassportGatekeeper": { + "deploy": false, + "decoderAddress": "0xe53C60F8069C2f0c3a84F9B3DB5cf56f3100ba56", + "passingScore": 5 + }, + "ZupassGatekeeper": { + "deploy": false, + "signer1": "13908133709081944902758389525983124100292637002438232157513257158004852609027", + "signer2": "7654374482676219729919246464135900991450848628968334062174564799457623790084", + "eventId": "69c0caaa-c65d-5345-a20c-867774f18c67", + "zupassVerifier": "0x2272cdb3596617886d0F48524DA486044E0376d6" + }, + "SemaphoreGatekeeper": { + "deploy": false, + "semaphoreContract": "0x0A09FB3f63c13F1C54F2fA41AFB1e7a98cffc774", + "groupId": 0 + }, + "MACI": { + "stateTreeDepth": 10, + "gatekeeper": "FreeForAllGatekeeper" + }, + "VkRegistry": { + "stateTreeDepth": 10, + "intStateTreeDepth": 1, + "messageTreeDepth": 2, + "voteOptionTreeDepth": 2, + "messageBatchDepth": 1, + "zkeys": { + "qv": { + "processMessagesZkey": "./zkeys/ProcessMessages_10-2-1-2_test/ProcessMessages_10-2-1-2_test.0.zkey", + "tallyVotesZkey": "./zkeys/TallyVotes_10-1-2_test/TallyVotes_10-1-2_test.0.zkey", + "processWasm": "./zkeys/ProcessMessages_10-2-1-2_test/ProcessMessages_10-2-1-2_test_js/ProcessMessages_10-2-1-2_test.wasm", + "tallyWasm": "./zkeys/TallyVotes_10-1-2_test/TallyVotes_10-1-2_test_js/TallyVotes_10-1-2_test.wasm" + }, + "nonQv": { + "processMessagesZkey": "./zkeys/ProcessMessagesNonQv_10-2-1-2_test/ProcessMessagesNonQv_10-2-1-2_test.0.zkey", + "tallyVotesZkey": "./zkeys/TallyVotesNonQv_10-1-2_test/TallyVotesNonQv_10-1-2_test.0.zkey", + "processWasm": "./zkeys/ProcessMessagesNonQv_10-2-1-2_test/ProcessMessagesNonQv_10-2-1-2_test_js/ProcessMessagesNonQv_10-2-1-2_test.wasm", + "tallyWasm": "./zkeys/TallyVotesNonQv_10-1-2_test/TallyVotesNonQv_10-1-2_test_js/TallyVotesNonQv_10-1-2_test.wasm" + } + } + }, + "Poll": { + "pollDuration": 3600, + "coordinatorPubkey": "macipk.a6d3d86f81f76bd168ab28feefb0197277b693b109be40c891a916217b9e35ee", + "useQuadraticVoting": true + } + }, + "localhost": { + "ConstantInitialVoiceCreditProxy": { + "deploy": true, + "amount": 99 + }, + "FreeForAllGatekeeper": { + "deploy": true + }, + "MerkleProofGatekeeper": { + "deploy": false, + "root": "0x2461fcc4c0965cb7f482dd28f1ca8057b7a62a35e8b7a86bb3ad6523f4bb21c0" + }, + "EASGatekeeper": { + "deploy": false, + "easAddress": "0xC2679fBD37d54388Ce493F1DB75320D236e1815e", + "schema": "0xe2636f31239f7948afdd9a9c477048b7fc2a089c347af60e3aa1251e5bf63e5c", + "attester": "the-attester-address" + }, + "GitcoinPassportGatekeeper": { + "deploy": false, + "decoderAddress": "0xe53C60F8069C2f0c3a84F9B3DB5cf56f3100ba56", + "passingScore": 5 + }, + "ZupassGatekeeper": { + "deploy": false, + "signer1": "13908133709081944902758389525983124100292637002438232157513257158004852609027", + "signer2": "7654374482676219729919246464135900991450848628968334062174564799457623790084", + "eventId": "69c0caaa-c65d-5345-a20c-867774f18c67", + "zupassVerifier": "0x2272cdb3596617886d0F48524DA486044E0376d6" + }, + "SemaphoreGatekeeper": { + "deploy": false, + "semaphoreContract": "0x0A09FB3f63c13F1C54F2fA41AFB1e7a98cffc774", + "groupId": 0 + }, + "MACI": { + "stateTreeDepth": 10, + "gatekeeper": "FreeForAllGatekeeper" + }, + "VkRegistry": { + "stateTreeDepth": 10, + "intStateTreeDepth": 1, + "messageTreeDepth": 2, + "voteOptionTreeDepth": 2, + "messageBatchDepth": 1, + "zkeys": { + "qv": { + "processMessagesZkey": "./zkeys/ProcessMessages_10-2-1-2_test/ProcessMessages_10-2-1-2_test.0.zkey", + "tallyVotesZkey": "./zkeys/TallyVotes_10-1-2_test/TallyVotes_10-1-2_test.0.zkey", + "processWasm": "./zkeys/ProcessMessages_10-2-1-2_test/ProcessMessages_10-2-1-2_test_js/ProcessMessages_10-2-1-2_test.wasm", + "tallyWasm": "./zkeys/TallyVotes_10-1-2_test/TallyVotes_10-1-2_test_js/TallyVotes_10-1-2_test.wasm" + }, + "nonQv": { + "processMessagesZkey": "./zkeys/ProcessMessagesNonQv_10-2-1-2_test/ProcessMessagesNonQv_10-2-1-2_test.0.zkey", + "tallyVotesZkey": "./zkeys/TallyVotesNonQv_10-1-2_test/TallyVotesNonQv_10-1-2_test.0.zkey", + "processWasm": "./zkeys/ProcessMessagesNonQv_10-2-1-2_test/ProcessMessagesNonQv_10-2-1-2_test_js/ProcessMessagesNonQv_10-2-1-2_test.wasm", + "tallyWasm": "./zkeys/TallyVotesNonQv_10-1-2_test/TallyVotesNonQv_10-1-2_test_js/TallyVotesNonQv_10-1-2_test.wasm" + } + } + }, + "Poll": { + "pollDuration": 30, + "coordinatorPubkey": "macipk.29add77d27341c4cdfc2fb623175ecfd6527a286e3e7ded785d9fd7afbbdf399", + "useQuadraticVoting": true + } + }, + "base_sepolia": { + "ConstantInitialVoiceCreditProxy": { + "deploy": true, + "amount": 99 + }, + "FreeForAllGatekeeper": { + "deploy": true + }, + "MerkleProofGatekeeper": { + "deploy": false, + "root": "0x2461fcc4c0965cb7f482dd28f1ca8057b7a62a35e8b7a86bb3ad6523f4bb21c0" + }, + "EASGatekeeper": { + "deploy": false, + "easAddress": "0x4200000000000000000000000000000000000021", + "schema": "0xe2636f31239f7948afdd9a9c477048b7fc2a089c347af60e3aa1251e5bf63e5c", + "attester": "the-attester-address" + }, + "GitcoinPassportGatekeeper": { + "deploy": false, + "decoderAddress": "0xe53C60F8069C2f0c3a84F9B3DB5cf56f3100ba56", + "passingScore": 5 + }, + "ZupassGatekeeper": { + "deploy": false, + "signer1": "13908133709081944902758389525983124100292637002438232157513257158004852609027", + "signer2": "7654374482676219729919246464135900991450848628968334062174564799457623790084", + "eventId": "69c0caaa-c65d-5345-a20c-867774f18c67", + "zupassVerifier": "0x2272cdb3596617886d0F48524DA486044E0376d6" + }, + "SemaphoreGatekeeper": { + "deploy": false, + "semaphoreContract": "0x0A09FB3f63c13F1C54F2fA41AFB1e7a98cffc774", + "groupId": 0 + }, + "MACI": { + "stateTreeDepth": 10, + "gatekeeper": "FreeForAllGatekeeper" + }, + "VkRegistry": { + "stateTreeDepth": 10, + "intStateTreeDepth": 1, + "messageTreeDepth": 2, + "voteOptionTreeDepth": 2, + "messageBatchDepth": 1, + "zkeys": { + "qv": { + "processMessagesZkey": "./zkeys/ProcessMessages_10-2-1-2_test/ProcessMessages_10-2-1-2_test.0.zkey", + "tallyVotesZkey": "./zkeys/TallyVotes_10-1-2_test/TallyVotes_10-1-2_test.0.zkey", + "processWasm": "./zkeys/ProcessMessages_10-2-1-2_test/ProcessMessages_10-2-1-2_test_js/ProcessMessages_10-2-1-2_test.wasm", + "tallyWasm": "./zkeys/TallyVotes_10-1-2_test/TallyVotes_10-1-2_test_js/TallyVotes_10-1-2_test.wasm" + }, + "nonQv": { + "processMessagesZkey": "./zkeys/ProcessMessagesNonQv_10-2-1-2_test/ProcessMessagesNonQv_10-2-1-2_test.0.zkey", + "tallyVotesZkey": "./zkeys/TallyVotesNonQv_10-1-2_test/TallyVotesNonQv_10-1-2_test.0.zkey", + "processWasm": "./zkeys/ProcessMessagesNonQv_10-2-1-2_test/ProcessMessagesNonQv_10-2-1-2_test_js/ProcessMessagesNonQv_10-2-1-2_test.wasm", + "tallyWasm": "./zkeys/TallyVotesNonQv_10-1-2_test/TallyVotesNonQv_10-1-2_test_js/TallyVotesNonQv_10-1-2_test.wasm" + } + } + }, + "Poll": { + "pollDuration": 3600, + "coordinatorPubkey": "macipk.a6d3d86f81f76bd168ab28feefb0197277b693b109be40c891a916217b9e35ee", + "useQuadraticVoting": true + } + }, + "optimism_sepolia": { + "ConstantInitialVoiceCreditProxy": { + "deploy": true, + "amount": 99 + }, + "FreeForAllGatekeeper": { + "deploy": true + }, + "MerkleProofGatekeeper": { + "deploy": false, + "root": "0x2461fcc4c0965cb7f482dd28f1ca8057b7a62a35e8b7a86bb3ad6523f4bb21c0" + }, + "HatsGatekeeper": { + "deploy": false, + "criterionHats": ["26960358043289970096177553829315270011263390106506980876069447401472"], + "hatsProtocolAddress": "0x3bc1A0Ad72417f2d411118085256fC53CBdDd137" + }, + "EASGatekeeper": { + "deploy": false, + "easAddress": "0x4200000000000000000000000000000000000021", + "schema": "0xe2636f31239f7948afdd9a9c477048b7fc2a089c347af60e3aa1251e5bf63e5c", + "attester": "the-attester-address" + }, + "GitcoinPassportGatekeeper": { + "deploy": false, + "decoderAddress": "0x5558D441779Eca04A329BcD6b47830D2C6607769", + "passingScore": 5 + }, + "ZupassGatekeeper": { + "deploy": false, + "signer1": "13908133709081944902758389525983124100292637002438232157513257158004852609027", + "signer2": "7654374482676219729919246464135900991450848628968334062174564799457623790084", + "eventId": "69c0caaa-c65d-5345-a20c-867774f18c67", + "zupassVerifier": "0x2272cdb3596617886d0F48524DA486044E0376d6" + }, + "SemaphoreGatekeeper": { + "deploy": false, + "semaphoreContract": "0x0000000000000000000000000000000000000000", + "groupId": 0 + }, + "MACI": { + "stateTreeDepth": 14, + "gatekeeper": "FreeForAllGatekeeper" + }, + "VkRegistry": { + "stateTreeDepth": 10, + "intStateTreeDepth": 1, + "messageTreeDepth": 2, + "voteOptionTreeDepth": 2, + "messageBatchDepth": 1, + "zkeys": { + "qv": { + "processMessagesZkey": "./zkeys/ProcessMessages_10-2-1-2_test/ProcessMessages_10-2-1-2_test.0.zkey", + "tallyVotesZkey": "./zkeys/TallyVotes_10-1-2_test/TallyVotes_10-1-2_test.0.zkey", + "processWasm": "./zkeys/ProcessMessages_10-2-1-2_test/ProcessMessages_10-2-1-2_test_js/ProcessMessages_10-2-1-2_test.wasm", + "tallyWasm": "./zkeys/TallyVotes_10-1-2_test/TallyVotes_10-1-2_test_js/TallyVotes_10-1-2_test.wasm" + }, + "nonQv": { + "processMessagesZkey": "./zkeys/ProcessMessagesNonQv_10-2-1-2_test/ProcessMessagesNonQv_10-2-1-2_test.0.zkey", + "tallyVotesZkey": "./zkeys/TallyVotesNonQv_10-1-2_test/TallyVotesNonQv_10-1-2_test.0.zkey", + "processWasm": "./zkeys/ProcessMessagesNonQv_10-2-1-2_test/ProcessMessagesNonQv_10-2-1-2_test_js/ProcessMessagesNonQv_10-2-1-2_test.wasm", + "tallyWasm": "./zkeys/TallyVotesNonQv_10-1-2_test/TallyVotesNonQv_10-1-2_test_js/TallyVotesNonQv_10-1-2_test.wasm" + } + } + }, + "Poll": { + "pollDuration": 3600, + "coordinatorPubkey": "macipk.a6d3d86f81f76bd168ab28feefb0197277b693b109be40c891a916217b9e35ee", + "useQuadraticVoting": true + } + }, + "gnosis_chiado": { + "ConstantInitialVoiceCreditProxy": { + "deploy": true, + "amount": 200 + }, + "FreeForAllGatekeeper": { + "deploy": true + }, + "MerkleProofGatekeeper": { + "deploy": false, + "root": "0x2461fcc4c0965cb7f482dd28f1ca8057b7a62a35e8b7a86bb3ad6523f4bb21c0" + }, + "HatsGatekeeper": { + "deploy": false, + "criterionHats": ["26960358043289970096177553829315270011263390106506980876069447401472"], + "hatsProtocolAddress": "0x3bc1A0Ad72417f2d411118085256fC53CBdDd137" + }, + "EASGatekeeper": { + "deploy": false, + "easAddress": "0x4200000000000000000000000000000000000021", + "schema": "0xe2636f31239f7948afdd9a9c477048b7fc2a089c347af60e3aa1251e5bf63e5c", + "attester": "0xcBc8a82E3dfc6Faa2506F3033271EBc7447f096B" + }, + "GitcoinPassportGatekeeper": { + "deploy": false, + "decoderAddress": "0x5558D441779Eca04A329BcD6b47830D2C6607769", + "passingScore": 5 + }, + "ZupassGatekeeper": { + "deploy": false, + "signer1": "13908133709081944902758389525983124100292637002438232157513257158004852609027", + "signer2": "7654374482676219729919246464135900991450848628968334062174564799457623790084", + "eventId": "69c0caaa-c65d-5345-a20c-867774f18c67", + "zupassVerifier": "0x2272cdb3596617886d0F48524DA486044E0376d6" + }, + "SemaphoreGatekeeper": { + "deploy": false, + "semaphoreContract": "0x0000000000000000000000000000000000000000", + "groupId": 0 + }, + "MACI": { + "stateTreeDepth": 10, + "gatekeeper": "FreeForAllGatekeeper" + }, + "VkRegistry": { + "stateTreeDepth": 10, + "intStateTreeDepth": 1, + "messageTreeDepth": 2, + "voteOptionTreeDepth": 2, + "messageBatchDepth": 1, + "zkeys": { + "qv": { + "processMessagesZkey": "./zkeys/ProcessMessages_10-2-1-2_test/ProcessMessages_10-2-1-2_test.0.zkey", + "tallyVotesZkey": "./zkeys/TallyVotes_10-1-2_test/TallyVotes_10-1-2_test.0.zkey", + "processWasm": "./zkeys/ProcessMessages_10-2-1-2_test/ProcessMessages_10-2-1-2_test_js/ProcessMessages_10-2-1-2_test.wasm", + "tallyWasm": "./zkeys/TallyVotes_10-1-2_test/TallyVotes_10-1-2_test_js/TallyVotes_10-1-2_test.wasm" + }, + "nonQv": { + "processMessagesZkey": "./zkeys/ProcessMessagesNonQv_10-2-1-2_test/ProcessMessagesNonQv_10-2-1-2_test.0.zkey", + "tallyVotesZkey": "./zkeys/TallyVotesNonQv_10-1-2_test/TallyVotesNonQv_10-1-2_test.0.zkey", + "processWasm": "./zkeys/ProcessMessagesNonQv_10-2-1-2_test/ProcessMessagesNonQv_10-2-1-2_test_js/ProcessMessagesNonQv_10-2-1-2_test.wasm", + "tallyWasm": "./zkeys/TallyVotesNonQv_10-1-2_test/TallyVotesNonQv_10-1-2_test_js/TallyVotesNonQv_10-1-2_test.wasm" + } + } + }, + "Poll": { + "pollDuration": 3600, + "coordinatorPubkey": "macipk.0a1ce79a43fa676ee3d2882c79d9164a24d4a22bb6190e3d8fa25d97bffc069a", + "useQuadraticVoting": true + } + }, + "gnosis": { + "ConstantInitialVoiceCreditProxy": { + "deploy": true, + "amount": 200 + }, + "FreeForAllGatekeeper": { + "deploy": true + }, + "MerkleProofGatekeeper": { + "deploy": false, + "root": "0x2461fcc4c0965cb7f482dd28f1ca8057b7a62a35e8b7a86bb3ad6523f4bb21c0" + }, + "HatsGatekeeper": { + "deploy": false, + "criterionHats": ["26960358043289970096177553829315270011263390106506980876069447401472"], + "hatsProtocolAddress": "0x3bc1A0Ad72417f2d411118085256fC53CBdDd137" + }, + "EASGatekeeper": { + "deploy": false, + "easAddress": "0x4200000000000000000000000000000000000021", + "schema": "0xe2636f31239f7948afdd9a9c477048b7fc2a089c347af60e3aa1251e5bf63e5c", + "attester": "0xcBc8a82E3dfc6Faa2506F3033271EBc7447f096B" + }, + "GitcoinPassportGatekeeper": { + "deploy": false, + "decoderAddress": "0x5558D441779Eca04A329BcD6b47830D2C6607769", + "passingScore": 5 + }, + "ZupassGatekeeper": { + "deploy": false, + "signer1": "13908133709081944902758389525983124100292637002438232157513257158004852609027", + "signer2": "7654374482676219729919246464135900991450848628968334062174564799457623790084", + "eventId": "69c0caaa-c65d-5345-a20c-867774f18c67", + "zupassVerifier": "0x2272cdb3596617886d0F48524DA486044E0376d6" + }, + "SemaphoreGatekeeper": { + "deploy": false, + "semaphoreContract": "0x0000000000000000000000000000000000000000", + "groupId": 0 + }, + "MACI": { + "stateTreeDepth": 10, + "gatekeeper": "FreeForAllGatekeeper" + }, + "VkRegistry": { + "stateTreeDepth": 10, + "intStateTreeDepth": 1, + "messageTreeDepth": 2, + "voteOptionTreeDepth": 2, + "messageBatchDepth": 1, + "zkeys": { + "qv": { + "processMessagesZkey": "./zkeys/ProcessMessages_10-2-1-2_test/ProcessMessages_10-2-1-2_test.0.zkey", + "tallyVotesZkey": "./zkeys/TallyVotes_10-1-2_test/TallyVotes_10-1-2_test.0.zkey", + "processWasm": "./zkeys/ProcessMessages_10-2-1-2_test/ProcessMessages_10-2-1-2_test_js/ProcessMessages_10-2-1-2_test.wasm", + "tallyWasm": "./zkeys/TallyVotes_10-1-2_test/TallyVotes_10-1-2_test_js/TallyVotes_10-1-2_test.wasm" + }, + "nonQv": { + "processMessagesZkey": "./zkeys/ProcessMessagesNonQv_10-2-1-2_test/ProcessMessagesNonQv_10-2-1-2_test.0.zkey", + "tallyVotesZkey": "./zkeys/TallyVotesNonQv_10-1-2_test/TallyVotesNonQv_10-1-2_test.0.zkey", + "processWasm": "./zkeys/ProcessMessagesNonQv_10-2-1-2_test/ProcessMessagesNonQv_10-2-1-2_test_js/ProcessMessagesNonQv_10-2-1-2_test.wasm", + "tallyWasm": "./zkeys/TallyVotesNonQv_10-1-2_test/TallyVotesNonQv_10-1-2_test_js/TallyVotesNonQv_10-1-2_test.wasm" + } + } + }, + "Poll": { + "pollDuration": 3600, + "coordinatorPubkey": "macipk.0a1ce79a43fa676ee3d2882c79d9164a24d4a22bb6190e3d8fa25d97bffc069a", + "useQuadraticVoting": true + } + }, + "polygon_amoy": { + "ConstantInitialVoiceCreditProxy": { + "deploy": true, + "amount": 200 + }, + "FreeForAllGatekeeper": { + "deploy": true + }, + "MerkleProofGatekeeper": { + "deploy": false, + "root": "0x2461fcc4c0965cb7f482dd28f1ca8057b7a62a35e8b7a86bb3ad6523f4bb21c0" + }, + "HatsGatekeeper": { + "deploy": false, + "criterionHats": ["26960358043289970096177553829315270011263390106506980876069447401472"], + "hatsProtocolAddress": "0x3bc1A0Ad72417f2d411118085256fC53CBdDd137" + }, + "EASGatekeeper": { + "deploy": false, + "easAddress": "0x4200000000000000000000000000000000000021", + "schema": "0xe2636f31239f7948afdd9a9c477048b7fc2a089c347af60e3aa1251e5bf63e5c", + "attester": "0xcBc8a82E3dfc6Faa2506F3033271EBc7447f096B" + }, + "GitcoinPassportGatekeeper": { + "deploy": false, + "decoderAddress": "0x5558D441779Eca04A329BcD6b47830D2C6607769", + "passingScore": 5 + }, + "ZupassGatekeeper": { + "deploy": false, + "signer1": "13908133709081944902758389525983124100292637002438232157513257158004852609027", + "signer2": "7654374482676219729919246464135900991450848628968334062174564799457623790084", + "eventId": "69c0caaa-c65d-5345-a20c-867774f18c67", + "zupassVerifier": "0x2272cdb3596617886d0F48524DA486044E0376d6" + }, + "SemaphoreGatekeeper": { + "deploy": false, + "semaphoreContract": "0x0000000000000000000000000000000000000000", + "groupId": 0 + }, + "MACI": { + "stateTreeDepth": 10, + "gatekeeper": "FreeForAllGatekeeper" + }, + "VkRegistry": { + "stateTreeDepth": 10, + "intStateTreeDepth": 1, + "messageTreeDepth": 2, + "voteOptionTreeDepth": 2, + "messageBatchDepth": 1, + "zkeys": { + "qv": { + "processMessagesZkey": "./zkeys/ProcessMessages_10-2-1-2_test/ProcessMessages_10-2-1-2_test.0.zkey", + "tallyVotesZkey": "./zkeys/TallyVotes_10-1-2_test/TallyVotes_10-1-2_test.0.zkey", + "processWasm": "./zkeys/ProcessMessages_10-2-1-2_test/ProcessMessages_10-2-1-2_test_js/ProcessMessages_10-2-1-2_test.wasm", + "tallyWasm": "./zkeys/TallyVotes_10-1-2_test/TallyVotes_10-1-2_test_js/TallyVotes_10-1-2_test.wasm" + }, + "nonQv": { + "processMessagesZkey": "./zkeys/ProcessMessagesNonQv_10-2-1-2_test/ProcessMessagesNonQv_10-2-1-2_test.0.zkey", + "tallyVotesZkey": "./zkeys/TallyVotesNonQv_10-1-2_test/TallyVotesNonQv_10-1-2_test.0.zkey", + "processWasm": "./zkeys/ProcessMessagesNonQv_10-2-1-2_test/ProcessMessagesNonQv_10-2-1-2_test_js/ProcessMessagesNonQv_10-2-1-2_test.wasm", + "tallyWasm": "./zkeys/TallyVotesNonQv_10-1-2_test/TallyVotesNonQv_10-1-2_test_js/TallyVotesNonQv_10-1-2_test.wasm" + } + } + }, + "Poll": { + "pollDuration": 3600, + "coordinatorPubkey": "macipk.0a1ce79a43fa676ee3d2882c79d9164a24d4a22bb6190e3d8fa25d97bffc069a", + "useQuadraticVoting": true + } + }, + "polygon": { + "ConstantInitialVoiceCreditProxy": { + "deploy": true, + "amount": 200 + }, + "FreeForAllGatekeeper": { + "deploy": true + }, + "MerkleProofGatekeeper": { + "deploy": false, + "root": "0x2461fcc4c0965cb7f482dd28f1ca8057b7a62a35e8b7a86bb3ad6523f4bb21c0" + }, + "HatsGatekeeper": { + "deploy": false, + "criterionHats": ["26960358043289970096177553829315270011263390106506980876069447401472"], + "hatsProtocolAddress": "0x3bc1A0Ad72417f2d411118085256fC53CBdDd137" + }, + "EASGatekeeper": { + "deploy": false, + "easAddress": "0x4200000000000000000000000000000000000021", + "schema": "0xe2636f31239f7948afdd9a9c477048b7fc2a089c347af60e3aa1251e5bf63e5c", + "attester": "0xcBc8a82E3dfc6Faa2506F3033271EBc7447f096B" + }, + "GitcoinPassportGatekeeper": { + "deploy": false, + "decoderAddress": "0x5558D441779Eca04A329BcD6b47830D2C6607769", + "passingScore": 5 + }, + "ZupassGatekeeper": { + "deploy": false, + "signer1": "13908133709081944902758389525983124100292637002438232157513257158004852609027", + "signer2": "7654374482676219729919246464135900991450848628968334062174564799457623790084", + "eventId": "69c0caaa-c65d-5345-a20c-867774f18c67", + "zupassVerifier": "0x2272cdb3596617886d0F48524DA486044E0376d6" + }, + "SemaphoreGatekeeper": { + "deploy": false, + "semaphoreContract": "0x0000000000000000000000000000000000000000", + "groupId": 0 + }, + "MACI": { + "stateTreeDepth": 10, + "gatekeeper": "FreeForAllGatekeeper" + }, + "VkRegistry": { + "stateTreeDepth": 10, + "intStateTreeDepth": 1, + "messageTreeDepth": 2, + "voteOptionTreeDepth": 2, + "messageBatchDepth": 1, + "zkeys": { + "qv": { + "processMessagesZkey": "./zkeys/ProcessMessages_10-2-1-2_test/ProcessMessages_10-2-1-2_test.0.zkey", + "tallyVotesZkey": "./zkeys/TallyVotes_10-1-2_test/TallyVotes_10-1-2_test.0.zkey", + "processWasm": "./zkeys/ProcessMessages_10-2-1-2_test/ProcessMessages_10-2-1-2_test_js/ProcessMessages_10-2-1-2_test.wasm", + "tallyWasm": "./zkeys/TallyVotes_10-1-2_test/TallyVotes_10-1-2_test_js/TallyVotes_10-1-2_test.wasm" + }, + "nonQv": { + "processMessagesZkey": "./zkeys/ProcessMessagesNonQv_10-2-1-2_test/ProcessMessagesNonQv_10-2-1-2_test.0.zkey", + "tallyVotesZkey": "./zkeys/TallyVotesNonQv_10-1-2_test/TallyVotesNonQv_10-1-2_test.0.zkey", + "processWasm": "./zkeys/ProcessMessagesNonQv_10-2-1-2_test/ProcessMessagesNonQv_10-2-1-2_test_js/ProcessMessagesNonQv_10-2-1-2_test.wasm", + "tallyWasm": "./zkeys/TallyVotesNonQv_10-1-2_test/TallyVotesNonQv_10-1-2_test_js/TallyVotesNonQv_10-1-2_test.wasm" + } + } + }, + "Poll": { + "pollDuration": 3600, + "coordinatorPubkey": "macipk.0a1ce79a43fa676ee3d2882c79d9164a24d4a22bb6190e3d8fa25d97bffc069a", + "useQuadraticVoting": true + } + } +} diff --git a/packages/hardhat/deployed-contracts.json b/packages/hardhat/deployed-contracts.json index 0e54c51..bc478a7 100644 --- a/packages/hardhat/deployed-contracts.json +++ b/packages/hardhat/deployed-contracts.json @@ -66,51 +66,61 @@ "verify": { "args": "[\"0xa513E6E4b8f2a923D98304ec87F64353C4D5C853\",\"0x2279B7A0a67DB372996a5FaB50D91eAA73d2eBe6\",\"0x8A791620dd6260079BF849Dc5567aDC3F2FdC318\",\"0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512\",\"0x5FbDB2315678afecb367f032d93F642f64180aa3\",10,[\"16015576667038038422103932363190100635991292382181099511410843174865570503661\",\"166510078825589460025300915201657086611944528317298994959376081297530246971\",\"10057734083972610459557695472359628128485394923403014377687504571662791937025\",\"4904828619307091008204672239231377290495002626534171783829482835985709082773\",\"18694062287284245784028624966421731916526814537891066525886866373016385890569\"]]" } + }, + "0xA51c1fc2f0D1a1b8494Ed1FE312d7C3a78Ed91C0": { + "id": "VkRegistry", + "verify": { + "args": "[]" + } } }, "named": { "ConstantInitialVoiceCreditProxy": { "address": "0x5FbDB2315678afecb367f032d93F642f64180aa3", - "count": 1 + "count": 2 }, "FreeForAllGatekeeper": { "address": "0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512", - "count": 1 + "count": 2 }, "Verifier": { "address": "0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0", - "count": 1 + "count": 2 }, "PoseidonT3": { "address": "0xCf7Ed3AccA5a467e9e704C703E8D87F634fB0Fc9", - "count": 1 + "count": 2 }, "PoseidonT4": { "address": "0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9", - "count": 1 + "count": 2 }, "PoseidonT5": { "address": "0x5FC8d32690cc91D4c39d9d3abcBD16989F875707", - "count": 1 + "count": 2 }, "PoseidonT6": { "address": "0x0165878A594ca255338adfa4d48449f69242Eb8F", - "count": 1 + "count": 2 }, "PollFactory": { "address": "0xa513E6E4b8f2a923D98304ec87F64353C4D5C853", - "count": 1 + "count": 2 }, "MessageProcessorFactory": { "address": "0x2279B7A0a67DB372996a5FaB50D91eAA73d2eBe6", - "count": 1 + "count": 2 }, "TallyFactory": { "address": "0x8A791620dd6260079BF849Dc5567aDC3F2FdC318", - "count": 1 + "count": 2 }, "MACI": { "address": "0x610178dA211FEF7D417bC0e6FeD39F05609AD788", + "count": 2 + }, + "VkRegistry": { + "address": "0xA51c1fc2f0D1a1b8494Ed1FE312d7C3a78Ed91C0", "count": 1 } } diff --git a/packages/hardhat/hardhat.config.ts b/packages/hardhat/hardhat.config.ts index 412294d..563b57b 100644 --- a/packages/hardhat/hardhat.config.ts +++ b/packages/hardhat/hardhat.config.ts @@ -15,6 +15,8 @@ import "hardhat-deploy"; import "hardhat-deploy-ethers"; import "hardhat-artifactor"; import { task, subtask } from "hardhat/config"; +import "maci-contracts/tasks/runner/merge"; +import "maci-contracts/tasks/runner/prove"; /** * Allow to copy a directory from source to target diff --git a/packages/hardhat/package.json b/packages/hardhat/package.json index 60009b4..e30f570 100644 --- a/packages/hardhat/package.json +++ b/packages/hardhat/package.json @@ -16,8 +16,7 @@ "test": "REPORT_GAS=true hardhat test --network hardhat", "verify": "hardhat etherscan-verify", "download-zkeys": "./maci-scripts/download_zkeys.sh", - "merge": "maci-cli mergeSignups --poll-id 0", - "maci-cli": "maci-cli" + "hardhat": "hardhat" }, "dependencies": { "@commander-js/extra-typings": "^12.0.1", diff --git a/packages/nextjs/contracts/deployedContracts.ts b/packages/nextjs/contracts/deployedContracts.ts index 3594b18..2f57e28 100644 --- a/packages/nextjs/contracts/deployedContracts.ts +++ b/packages/nextjs/contracts/deployedContracts.ts @@ -251,29 +251,6 @@ const deployedContracts = { name: "_coordinatorPubKeyY", type: "uint256", }, - { - components: [ - { - internalType: "address", - name: "poll", - type: "address", - }, - { - internalType: "address", - name: "messageProcessor", - type: "address", - }, - { - internalType: "address", - name: "tally", - type: "address", - }, - ], - indexed: false, - internalType: "struct MACI.PollContracts", - name: "pollAddr", - type: "tuple", - }, { indexed: false, internalType: "enum DomainObjs.Mode", @@ -563,30 +540,7 @@ const deployedContracts = { }, ], name: "deployPoll", - outputs: [ - { - components: [ - { - internalType: "address", - name: "poll", - type: "address", - }, - { - internalType: "address", - name: "messageProcessor", - type: "address", - }, - { - internalType: "address", - name: "tally", - type: "address", - }, - ], - internalType: "struct MACI.PollContracts", - name: "pollAddr", - type: "tuple", - }, - ], + outputs: [], stateMutability: "nonpayable", type: "function", }, @@ -806,9 +760,26 @@ const deployedContracts = { name: "getPoll", outputs: [ { - internalType: "address", - name: "poll", - type: "address", + components: [ + { + internalType: "address", + name: "poll", + type: "address", + }, + { + internalType: "address", + name: "messageProcessor", + type: "address", + }, + { + internalType: "address", + name: "tally", + type: "address", + }, + ], + internalType: "struct MACI.PollContracts", + name: "pollContracts", + type: "tuple", }, ], stateMutability: "view", @@ -1249,7 +1220,17 @@ const deployedContracts = { outputs: [ { internalType: "address", - name: "", + name: "poll", + type: "address", + }, + { + internalType: "address", + name: "messageProcessor", + type: "address", + }, + { + internalType: "address", + name: "tally", type: "address", }, ], @@ -1600,11 +1581,6 @@ const deployedContracts = { stateMutability: "payable", type: "constructor", }, - { - inputs: [], - name: "InvalidMaxValues", - type: "error", - }, { inputs: [], name: "MESSAGE_DATA_LENGTH", @@ -1625,23 +1601,6 @@ const deployedContracts = { name: "_duration", type: "uint256", }, - { - components: [ - { - internalType: "uint256", - name: "maxMessages", - type: "uint256", - }, - { - internalType: "uint256", - name: "maxVoteOptions", - type: "uint256", - }, - ], - internalType: "struct Params.MaxValues", - name: "_maxValues", - type: "tuple", - }, { components: [ { @@ -2015,9 +1974,9 @@ const deployedContracts = { type: "tuple", }, { - internalType: "uint256", - name: "input", - type: "uint256", + internalType: "uint256[]", + name: "inputs", + type: "uint256[]", }, ], name: "verify",