From 2859b27a5e7d116bc0ae65a2def7b91ac80e6c88 Mon Sep 17 00:00:00 2001 From: ctrlc03 <93448202+ctrlc03@users.noreply.github.com> Date: Sun, 14 Jul 2024 14:52:50 +0100 Subject: [PATCH] chore: update to latest maci version --- README.md | 2 +- packages/hardhat/constants.ts | 1 - .../contracts/maci-contracts/MACIWrapper.sol | 6 +- .../deploy/{04_poseidon.ts => 03_poseidon.ts} | 0 packages/hardhat/deploy/03_topup_credit.ts | 21 - ...{05_poll_factory.ts => 04_poll_factory.ts} | 0 ...ory.ts => 05_message_processor_factory.ts} | 0 ...7_tally_factory.ts => 06_tally_factory.ts} | 0 .../hardhat/deploy/{08_maci.ts => 07_maci.ts} | 11 +- .../{09_vk_registry.ts => 08_vk_registry.ts} | 4 +- .../{10_configure.ts => 09_configure.ts} | 0 ...ss_file.ts => 10_generate_address_file.ts} | 30 +- packages/hardhat/hardhat.config.ts | 1 + .../hardhat/maci-scripts/download_zkeys.sh | 2 +- packages/hardhat/package.json | 10 +- .../nextjs/contracts/deployedContracts.ts | 598 ++---------------- packages/nextjs/package.json | 4 +- pnpm-lock.yaml | 375 +++++++++++ yarn.lock | 406 ++++++++---- 19 files changed, 727 insertions(+), 744 deletions(-) rename packages/hardhat/deploy/{04_poseidon.ts => 03_poseidon.ts} (100%) delete mode 100644 packages/hardhat/deploy/03_topup_credit.ts rename packages/hardhat/deploy/{05_poll_factory.ts => 04_poll_factory.ts} (100%) rename packages/hardhat/deploy/{06_message_processor_factory.ts => 05_message_processor_factory.ts} (100%) rename packages/hardhat/deploy/{07_tally_factory.ts => 06_tally_factory.ts} (100%) rename packages/hardhat/deploy/{08_maci.ts => 07_maci.ts} (86%) rename packages/hardhat/deploy/{09_vk_registry.ts => 08_vk_registry.ts} (98%) rename packages/hardhat/deploy/{10_configure.ts => 09_configure.ts} (100%) rename packages/hardhat/deploy/{11_generate_address_file.ts => 10_generate_address_file.ts} (66%) create mode 100644 pnpm-lock.yaml diff --git a/README.md b/README.md index 488630c..7c00709 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,7 @@ yarn start 7. **Compute Results** -- In a fourth terminal, clone the maci repo - `git clone git@github.com:privacy-scaling-explorations/maci.git` and then reset to `ee3e2a6` commit using `git reset --hard ee3e2a6` +- 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/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`. diff --git a/packages/hardhat/constants.ts b/packages/hardhat/constants.ts index 1502fdc..ed92b18 100644 --- a/packages/hardhat/constants.ts +++ b/packages/hardhat/constants.ts @@ -1,7 +1,6 @@ export const InitialVoiceCreditProxyContractName = "ConstantInitialVoiceCreditProxy"; export const GatekeeperContractName = "FreeForAllGatekeeper"; export const VerifierContractName = "Verifier"; -export const TopupCreditContractName = "TopupCredit"; // zk registry config export const stateTreeDepth = 10; diff --git a/packages/hardhat/contracts/maci-contracts/MACIWrapper.sol b/packages/hardhat/contracts/maci-contracts/MACIWrapper.sol index 88e6061..57e2410 100644 --- a/packages/hardhat/contracts/maci-contracts/MACIWrapper.sol +++ b/packages/hardhat/contracts/maci-contracts/MACIWrapper.sol @@ -1,17 +1,17 @@ // SPDX-License-Identifier: MIT pragma solidity ^0.8.20; +import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol"; import { MACI } from "maci-contracts/contracts/MACI.sol"; import { IPollFactory } from "maci-contracts/contracts/interfaces/IPollFactory.sol"; import { IMessageProcessorFactory } from "maci-contracts/contracts/interfaces/IMPFactory.sol"; import { ITallyFactory } from "maci-contracts/contracts/interfaces/ITallyFactory.sol"; import { SignUpGatekeeper } from "maci-contracts/contracts/gatekeepers/SignUpGatekeeper.sol"; import { InitialVoiceCreditProxy } from "maci-contracts/contracts/initialVoiceCreditProxy/InitialVoiceCreditProxy.sol"; -import { TopupCredit } from "maci-contracts/contracts/TopupCredit.sol"; /// @title MACI - Minimum Anti-Collusion Infrastructure Version 1 /// @notice A contract which allows users to sign up, and deploy new polls -contract MACIWrapper is MACI { +contract MACIWrapper is MACI, Ownable(msg.sender) { struct PollData { uint256 id; string name; @@ -59,7 +59,6 @@ contract MACIWrapper is MACI { ITallyFactory _tallyFactory, SignUpGatekeeper _signUpGatekeeper, InitialVoiceCreditProxy _initialVoiceCreditProxy, - TopupCredit _topupCredit, uint8 _stateTreeDepth ) MACI( @@ -68,7 +67,6 @@ contract MACIWrapper is MACI { _tallyFactory, _signUpGatekeeper, _initialVoiceCreditProxy, - _topupCredit, _stateTreeDepth ) {} diff --git a/packages/hardhat/deploy/04_poseidon.ts b/packages/hardhat/deploy/03_poseidon.ts similarity index 100% rename from packages/hardhat/deploy/04_poseidon.ts rename to packages/hardhat/deploy/03_poseidon.ts diff --git a/packages/hardhat/deploy/03_topup_credit.ts b/packages/hardhat/deploy/03_topup_credit.ts deleted file mode 100644 index e368a3f..0000000 --- a/packages/hardhat/deploy/03_topup_credit.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { HardhatRuntimeEnvironment } from "hardhat/types"; -import { DeployFunction } from "hardhat-deploy/types"; -import { TopupCreditContractName } from "../constants"; - -const deployContracts: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { - const { deployer } = await hre.getNamedAccounts(); - - await hre.deployments.deploy(TopupCreditContractName, { - from: deployer, - args: [], - log: true, - autoMine: true, - }); - - const topupCredit = await hre.ethers.getContract(TopupCreditContractName, deployer); - console.log(`The topupCredit is deployed at ${await topupCredit.getAddress()}`); -}; - -export default deployContracts; - -deployContracts.tags = ["TopupCredit"]; diff --git a/packages/hardhat/deploy/05_poll_factory.ts b/packages/hardhat/deploy/04_poll_factory.ts similarity index 100% rename from packages/hardhat/deploy/05_poll_factory.ts rename to packages/hardhat/deploy/04_poll_factory.ts diff --git a/packages/hardhat/deploy/06_message_processor_factory.ts b/packages/hardhat/deploy/05_message_processor_factory.ts similarity index 100% rename from packages/hardhat/deploy/06_message_processor_factory.ts rename to packages/hardhat/deploy/05_message_processor_factory.ts diff --git a/packages/hardhat/deploy/07_tally_factory.ts b/packages/hardhat/deploy/06_tally_factory.ts similarity index 100% rename from packages/hardhat/deploy/07_tally_factory.ts rename to packages/hardhat/deploy/06_tally_factory.ts diff --git a/packages/hardhat/deploy/08_maci.ts b/packages/hardhat/deploy/07_maci.ts similarity index 86% rename from packages/hardhat/deploy/08_maci.ts rename to packages/hardhat/deploy/07_maci.ts index 1087b73..1ad82f7 100644 --- a/packages/hardhat/deploy/08_maci.ts +++ b/packages/hardhat/deploy/07_maci.ts @@ -1,15 +1,8 @@ import { HardhatRuntimeEnvironment } from "hardhat/types"; import { DeployFunction } from "hardhat-deploy/types"; -import { - GatekeeperContractName, - InitialVoiceCreditProxyContractName, - TopupCreditContractName, - stateTreeDepth, -} from "../constants"; +import { GatekeeperContractName, InitialVoiceCreditProxyContractName, stateTreeDepth } from "../constants"; import { MACIWrapper, SignUpGatekeeper } from "../typechain-types"; -// const STATE_TREE_SUBDEPTH = 2; - const deployContracts: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { const { deployer } = await hre.getNamedAccounts(); @@ -19,7 +12,6 @@ const deployContracts: DeployFunction = async function (hre: HardhatRuntimeEnvir const poseidonT6 = await hre.ethers.getContract("PoseidonT6", deployer); const initialVoiceCreditProxy = await hre.ethers.getContract(InitialVoiceCreditProxyContractName, deployer); const gatekeeper = await hre.ethers.getContract(GatekeeperContractName, deployer); - const topupCredit = await hre.ethers.getContract(TopupCreditContractName, deployer); const pollFactory = await hre.ethers.getContract("PollFactory", deployer); const messageProcessorFactory = await hre.ethers.getContract("MessageProcessorFactory", deployer); const tallyFactory = await hre.ethers.getContract("TallyFactory", deployer); @@ -32,7 +24,6 @@ const deployContracts: DeployFunction = async function (hre: HardhatRuntimeEnvir await tallyFactory.getAddress(), await gatekeeper.getAddress(), await initialVoiceCreditProxy.getAddress(), - await topupCredit.getAddress(), stateTreeDepth, ], log: true, diff --git a/packages/hardhat/deploy/09_vk_registry.ts b/packages/hardhat/deploy/08_vk_registry.ts similarity index 98% rename from packages/hardhat/deploy/09_vk_registry.ts rename to packages/hardhat/deploy/08_vk_registry.ts index 50554b9..4b0ce00 100644 --- a/packages/hardhat/deploy/09_vk_registry.ts +++ b/packages/hardhat/deploy/08_vk_registry.ts @@ -29,7 +29,7 @@ const deployContracts: DeployFunction = async function (hre: HardhatRuntimeEnvir await hre.deployments.deploy("VkRegistry", { from: deployer, args: [], - log: true, + log: false, autoMine: true, }); @@ -59,7 +59,7 @@ const deployContracts: DeployFunction = async function (hre: HardhatRuntimeEnvir [processVkParam, processVkNonQvParam], [tallyVkParam, tallyVkNonQvParam], ); - await tx.wait(1); + await tx.wait(); }; export default deployContracts; diff --git a/packages/hardhat/deploy/10_configure.ts b/packages/hardhat/deploy/09_configure.ts similarity index 100% rename from packages/hardhat/deploy/10_configure.ts rename to packages/hardhat/deploy/09_configure.ts diff --git a/packages/hardhat/deploy/11_generate_address_file.ts b/packages/hardhat/deploy/10_generate_address_file.ts similarity index 66% rename from packages/hardhat/deploy/11_generate_address_file.ts rename to packages/hardhat/deploy/10_generate_address_file.ts index b5f106d..6e8865e 100644 --- a/packages/hardhat/deploy/11_generate_address_file.ts +++ b/packages/hardhat/deploy/10_generate_address_file.ts @@ -12,7 +12,6 @@ const deployContracts: DeployFunction = async function (hre: HardhatRuntimeEnvir const gatekeeper = await hre.ethers.getContract(GatekeeperContractName, deployer); const verifier = await hre.ethers.getContract("Verifier", deployer); const pollFactory = await hre.ethers.getContract("PollFactory", deployer); - const topupCredit = await hre.ethers.getContract("TopupCredit", deployer); const poseidonT3 = await hre.ethers.getContract("PoseidonT3", deployer); const poseidonT4 = await hre.ethers.getContract("PoseidonT4", deployer); const poseidonT5 = await hre.ethers.getContract("PoseidonT5", deployer); @@ -20,20 +19,23 @@ const deployContracts: DeployFunction = async function (hre: HardhatRuntimeEnvir fs.writeFileSync( "./contractAddresses.json", - JSON.stringify({ - [hre.network.name]: { - MACI: await maci.getAddress(), - InitialVoiceCreditProxy: await initialVoiceCreditProxy.getAddress(), - SignUpGatekeeper: await gatekeeper.getAddress(), - Verifier: await verifier.getAddress(), - PollFactory: await pollFactory.getAddress(), - TopupCredit: await topupCredit.getAddress(), - PoseidonT3: await poseidonT3.getAddress(), - PoseidonT4: await poseidonT4.getAddress(), - PoseidonT5: await poseidonT5.getAddress(), - PoseidonT6: await poseidonT6.getAddress(), + JSON.stringify( + { + [hre.network.name]: { + MACI: await maci.getAddress(), + InitialVoiceCreditProxy: await initialVoiceCreditProxy.getAddress(), + SignUpGatekeeper: await gatekeeper.getAddress(), + Verifier: await verifier.getAddress(), + PollFactory: await pollFactory.getAddress(), + PoseidonT3: await poseidonT3.getAddress(), + PoseidonT4: await poseidonT4.getAddress(), + PoseidonT5: await poseidonT5.getAddress(), + PoseidonT6: await poseidonT6.getAddress(), + }, }, - }), + undefined, + 4, + ), ); }; diff --git a/packages/hardhat/hardhat.config.ts b/packages/hardhat/hardhat.config.ts index f9dfc89..412294d 100644 --- a/packages/hardhat/hardhat.config.ts +++ b/packages/hardhat/hardhat.config.ts @@ -100,6 +100,7 @@ const config: HardhatUserConfig = { // url: `https://eth-mainnet.alchemyapi.io/v2/${providerApiKey}`, // enabled: process.env.MAINNET_FORKING_ENABLED === "true", // }, + loggingEnabled: false, }, mainnet: { url: `https://eth-mainnet.alchemyapi.io/v2/${providerApiKey}`, diff --git a/packages/hardhat/maci-scripts/download_zkeys.sh b/packages/hardhat/maci-scripts/download_zkeys.sh index 7c86ceb..6441b17 100755 --- a/packages/hardhat/maci-scripts/download_zkeys.sh +++ b/packages/hardhat/maci-scripts/download_zkeys.sh @@ -2,7 +2,7 @@ mkdir -p ./zkeys -URL=https://maci-develop-fra.s3.eu-central-1.amazonaws.com/v1.3.0/maci_artifacts_10-2-1-2_test_f6073a6.tar.gz +URL=https://maci-develop-fra.s3.eu-central-1.amazonaws.com/v1.3.0/maci_artifacts_10-2-1-2_test.tar.gz DIR_NAME="maci_keys.tar.gz" OUT_DIR=./ diff --git a/packages/hardhat/package.json b/packages/hardhat/package.json index d1964a9..d9b20d8 100644 --- a/packages/hardhat/package.json +++ b/packages/hardhat/package.json @@ -28,11 +28,11 @@ "dotenv": "~16.0.3", "envfile": "~6.18.0", "hardhat-artifactor": "^0.2.0", - "maci-circuits": "0.0.0-ci.f6073a6", - "maci-cli": "0.0.0-ci.f6073a6", - "maci-contracts": "0.0.0-ci.f6073a6", - "maci-crypto": "0.0.0-ci.f6073a6", - "maci-domainobjs": "0.0.0-ci.f6073a6", + "maci-circuits": "0.0.0-ci.4d2d340", + "maci-cli": "0.0.0-ci.4d2d340", + "maci-contracts": "0.0.0-ci.4d2d340", + "maci-crypto": "0.0.0-ci.4d2d340", + "maci-domainobjs": "0.0.0-ci.4d2d340", "prompt": "^1.3.0", "qrcode": "~1.5.1", "snarkjs": "^0.7.3" diff --git a/packages/nextjs/contracts/deployedContracts.ts b/packages/nextjs/contracts/deployedContracts.ts index d995afb..0081edd 100644 --- a/packages/nextjs/contracts/deployedContracts.ts +++ b/packages/nextjs/contracts/deployedContracts.ts @@ -55,6 +55,19 @@ const deployedContracts = { stateMutability: "payable", type: "constructor", }, + { + inputs: [], + name: "getTrait", + outputs: [ + { + internalType: "string", + name: "", + type: "string", + }, + ], + stateMutability: "pure", + type: "function", + }, { inputs: [ { @@ -90,7 +103,7 @@ const deployedContracts = { deploymentBlockNumber: 3, }, MACIWrapper: { - address: "0xB7f8BC63BbcaD18155201308C8f3540b07f84F5e", + address: "0x610178dA211FEF7D417bC0e6FeD39F05609AD788", abi: [ { inputs: [ @@ -119,11 +132,6 @@ const deployedContracts = { name: "_initialVoiceCreditProxy", type: "address", }, - { - internalType: "contract TopupCredit", - name: "_topupCredit", - type: "address", - }, { internalType: "uint8", name: "_stateTreeDepth", @@ -133,17 +141,6 @@ const deployedContracts = { stateMutability: "nonpayable", type: "constructor", }, - { - inputs: [ - { - internalType: "address", - name: "_caller", - type: "address", - }, - ], - name: "CallerMustBePoll", - type: "error", - }, { inputs: [], name: "DefaultZeroBadIndex", @@ -218,27 +215,11 @@ const deployedContracts = { name: "PoseidonHashLibrariesNotLinked", type: "error", }, - { - inputs: [ - { - internalType: "uint256", - name: "pollId", - type: "uint256", - }, - ], - name: "PreviousPollNotCompleted", - type: "error", - }, { inputs: [], name: "PubKeyAlreadyRegistered", type: "error", }, - { - inputs: [], - name: "SignupTemporaryBlocked", - type: "error", - }, { inputs: [], name: "TooManySignups", @@ -288,6 +269,12 @@ const deployedContracts = { name: "pollAddr", type: "tuple", }, + { + indexed: false, + internalType: "enum DomainObjs.Mode", + name: "_mode", + type: "uint8", + }, ], name: "DeployPoll", type: "event", @@ -939,11 +926,6 @@ const deployedContracts = { inputs: [ { components: [ - { - internalType: "uint256", - name: "msgType", - type: "uint256", - }, { internalType: "uint256[10]", name: "data", @@ -1086,6 +1068,19 @@ const deployedContracts = { stateMutability: "view", type: "function", }, + { + inputs: [], + name: "maxSignups", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, { inputs: [], name: "messageProcessorFactory", @@ -1145,21 +1140,11 @@ const deployedContracts = { name: "dataToPad", type: "uint256[2]", }, - { - internalType: "uint256", - name: "msgType", - type: "uint256", - }, ], name: "padAndHashMessage", outputs: [ { components: [ - { - internalType: "uint256", - name: "msgType", - type: "uint256", - }, { internalType: "uint256[10]", name: "data", @@ -1409,19 +1394,6 @@ const deployedContracts = { stateMutability: "view", type: "function", }, - { - inputs: [], - name: "topupCredit", - outputs: [ - { - internalType: "contract TopupCredit", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, { inputs: [ { @@ -1522,26 +1494,23 @@ const deployedContracts = { hashStateLeaf: "maci-contracts/contracts/MACI.sol", initialVoiceCreditProxy: "maci-contracts/contracts/MACI.sol", lazyIMTData: "maci-contracts/contracts/MACI.sol", + maxSignups: "maci-contracts/contracts/MACI.sol", messageProcessorFactory: "maci-contracts/contracts/MACI.sol", nextPollId: "maci-contracts/contracts/MACI.sol", numSignUps: "maci-contracts/contracts/MACI.sol", - owner: "maci-contracts/contracts/MACI.sol", padAndHashMessage: "maci-contracts/contracts/MACI.sol", pollFactory: "maci-contracts/contracts/MACI.sol", polls: "maci-contracts/contracts/MACI.sol", - renounceOwnership: "maci-contracts/contracts/MACI.sol", sha256Hash: "maci-contracts/contracts/MACI.sol", signUp: "maci-contracts/contracts/MACI.sol", signUpGatekeeper: "maci-contracts/contracts/MACI.sol", stateTreeDepth: "maci-contracts/contracts/MACI.sol", tallyFactory: "maci-contracts/contracts/MACI.sol", - topupCredit: "maci-contracts/contracts/MACI.sol", - transferOwnership: "maci-contracts/contracts/MACI.sol", }, - deploymentBlockNumber: 23, + deploymentBlockNumber: 21, }, MessageProcessorFactory: { - address: "0x8A791620dd6260079BF849Dc5567aDC3F2FdC318", + address: "0x2279B7A0a67DB372996a5FaB50D91eAA73d2eBe6", abi: [ { inputs: [], @@ -1596,10 +1565,10 @@ const deployedContracts = { type: "function", }, ], - deploymentBlockNumber: 19, + deploymentBlockNumber: 17, }, PollFactory: { - address: "0x2279B7A0a67DB372996a5FaB50D91eAA73d2eBe6", + address: "0xa513E6E4b8f2a923D98304ec87F64353C4D5C853", abi: [ { inputs: [], @@ -1697,16 +1666,6 @@ const deployedContracts = { name: "_maci", type: "address", }, - { - internalType: "contract TopupCredit", - name: "_topupCredit", - type: "address", - }, - { - internalType: "address", - name: "_pollOwner", - type: "address", - }, ], name: "deploy", outputs: [ @@ -1720,10 +1679,10 @@ const deployedContracts = { type: "function", }, ], - deploymentBlockNumber: 17, + deploymentBlockNumber: 15, }, PoseidonT3: { - address: "0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9", + address: "0xCf7Ed3AccA5a467e9e704C703E8D87F634fB0Fc9", abi: [ { inputs: [ @@ -1745,10 +1704,10 @@ const deployedContracts = { type: "function", }, ], - deploymentBlockNumber: 9, + deploymentBlockNumber: 7, }, PoseidonT4: { - address: "0x5FC8d32690cc91D4c39d9d3abcBD16989F875707", + address: "0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9", abi: [ { inputs: [ @@ -1770,10 +1729,10 @@ const deployedContracts = { type: "function", }, ], - deploymentBlockNumber: 11, + deploymentBlockNumber: 9, }, PoseidonT5: { - address: "0x0165878A594ca255338adfa4d48449f69242Eb8F", + address: "0x5FC8d32690cc91D4c39d9d3abcBD16989F875707", abi: [ { inputs: [ @@ -1795,10 +1754,10 @@ const deployedContracts = { type: "function", }, ], - deploymentBlockNumber: 13, + deploymentBlockNumber: 11, }, PoseidonT6: { - address: "0xa513E6E4b8f2a923D98304ec87F64353C4D5C853", + address: "0x0165878A594ca255338adfa4d48449f69242Eb8F", abi: [ { inputs: [ @@ -1820,10 +1779,10 @@ const deployedContracts = { type: "function", }, ], - deploymentBlockNumber: 15, + deploymentBlockNumber: 13, }, TallyFactory: { - address: "0x610178dA211FEF7D417bC0e6FeD39F05609AD788", + address: "0x8A791620dd6260079BF849Dc5567aDC3F2FdC318", abi: [ { inputs: [], @@ -1883,462 +1842,7 @@ const deployedContracts = { type: "function", }, ], - deploymentBlockNumber: 21, - }, - TopupCredit: { - address: "0xCf7Ed3AccA5a467e9e704C703E8D87F634fB0Fc9", - abi: [ - { - inputs: [], - stateMutability: "payable", - type: "constructor", - }, - { - inputs: [ - { - internalType: "address", - name: "spender", - type: "address", - }, - { - internalType: "uint256", - name: "allowance", - type: "uint256", - }, - { - internalType: "uint256", - name: "needed", - type: "uint256", - }, - ], - name: "ERC20InsufficientAllowance", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "sender", - type: "address", - }, - { - internalType: "uint256", - name: "balance", - type: "uint256", - }, - { - internalType: "uint256", - name: "needed", - type: "uint256", - }, - ], - name: "ERC20InsufficientBalance", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "approver", - type: "address", - }, - ], - name: "ERC20InvalidApprover", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "receiver", - type: "address", - }, - ], - name: "ERC20InvalidReceiver", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "sender", - type: "address", - }, - ], - name: "ERC20InvalidSender", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "spender", - type: "address", - }, - ], - name: "ERC20InvalidSpender", - type: "error", - }, - { - inputs: [], - name: "ExceedLimit", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "owner", - type: "address", - }, - ], - name: "OwnableInvalidOwner", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "OwnableUnauthorizedAccount", - type: "error", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "owner", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "spender", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "Approval", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "previousOwner", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "newOwner", - type: "address", - }, - ], - name: "OwnershipTransferred", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "from", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "to", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "Transfer", - type: "event", - }, - { - inputs: [], - name: "DECIMALS", - outputs: [ - { - internalType: "uint8", - name: "", - type: "uint8", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "MAXIMUM_AIRDROP_AMOUNT", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "airdrop", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "account", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "airdropTo", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "owner", - type: "address", - }, - { - internalType: "address", - name: "spender", - type: "address", - }, - ], - name: "allowance", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "spender", - type: "address", - }, - { - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "approve", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "balanceOf", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "decimals", - outputs: [ - { - internalType: "uint8", - name: "", - type: "uint8", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "name", - outputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "owner", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "renounceOwnership", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "symbol", - outputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "totalSupply", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "transfer", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "from", - type: "address", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "transferFrom", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "newOwner", - type: "address", - }, - ], - name: "transferOwnership", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - ], - deploymentBlockNumber: 7, + deploymentBlockNumber: 19, }, Verifier: { address: "0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0", @@ -2501,7 +2005,7 @@ const deployedContracts = { deploymentBlockNumber: 5, }, VkRegistry: { - address: "0x0DCd1Bf9A1b36cE34237eEaFef220932846BCD82", + address: "0xA51c1fc2f0D1a1b8494Ed1FE312d7C3a78Ed91C0", abi: [ { inputs: [], @@ -3761,7 +3265,7 @@ const deployedContracts = { type: "function", }, ], - deploymentBlockNumber: 26, + deploymentBlockNumber: 24, }, }, } as const; diff --git a/packages/nextjs/package.json b/packages/nextjs/package.json index f4dba0b..069f93c 100644 --- a/packages/nextjs/package.json +++ b/packages/nextjs/package.json @@ -27,8 +27,8 @@ "circomkit": "^0.0.24", "circomlib": "^2.0.5", "daisyui": "4.5.0", - "maci-crypto": "0.0.0-ci.f6073a6", - "maci-domainobjs": "0.0.0-ci.f6073a6", + "maci-crypto": "0.0.0-ci.4d2d340", + "maci-domainobjs": "0.0.0-ci.4d2d340", "next": "^14.0.4", "next-themes": "^0.2.1", "nprogress": "^0.2.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml new file mode 100644 index 0000000..a93f471 --- /dev/null +++ b/pnpm-lock.yaml @@ -0,0 +1,375 @@ +lockfileVersion: '6.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +devDependencies: + husky: + specifier: ^8.0.1 + version: 8.0.3 + lint-staged: + specifier: ^13.0.3 + version: 13.3.0 + +packages: + + /ansi-escapes@5.0.0: + resolution: {integrity: sha512-5GFMVX8HqE/TB+FuBJGuO5XG0WrsA6ptUqoODaT/n9mmUaZFkqnBueB4leqGBCmrUHnCnC4PCZTCd0E7QQ83bA==} + engines: {node: '>=12'} + dependencies: + type-fest: 1.4.0 + dev: true + + /ansi-regex@6.0.1: + resolution: {integrity: sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==} + engines: {node: '>=12'} + dev: true + + /ansi-styles@6.2.1: + resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==} + engines: {node: '>=12'} + dev: true + + /braces@3.0.3: + resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} + engines: {node: '>=8'} + dependencies: + fill-range: 7.1.1 + dev: true + + /chalk@5.3.0: + resolution: {integrity: sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==} + engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} + dev: true + + /cli-cursor@4.0.0: + resolution: {integrity: sha512-VGtlMu3x/4DOtIUwEkRezxUZ2lBacNJCHash0N0WeZDBS+7Ux1dm3XWAgWYxLJFMMdOeXMHXorshEFhbMSGelg==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + dependencies: + restore-cursor: 4.0.0 + dev: true + + /cli-truncate@3.1.0: + resolution: {integrity: sha512-wfOBkjXteqSnI59oPcJkcPl/ZmwvMMOj340qUIY1SKZCv0B9Cf4D4fAucRkIKQmsIuYK3x1rrgU7MeGRruiuiA==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + dependencies: + slice-ansi: 5.0.0 + string-width: 5.1.2 + dev: true + + /colorette@2.0.20: + resolution: {integrity: sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==} + dev: true + + /commander@11.0.0: + resolution: {integrity: sha512-9HMlXtt/BNoYr8ooyjjNRdIilOTkVJXB+GhxMTtOKwk0R4j4lS4NpjuqmRxroBfnfTSHQIHQB7wryHhXarNjmQ==} + engines: {node: '>=16'} + dev: true + + /cross-spawn@7.0.3: + resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==} + engines: {node: '>= 8'} + dependencies: + path-key: 3.1.1 + shebang-command: 2.0.0 + which: 2.0.2 + dev: true + + /debug@4.3.4: + resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==} + engines: {node: '>=6.0'} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + dependencies: + ms: 2.1.2 + dev: true + + /eastasianwidth@0.2.0: + resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} + dev: true + + /emoji-regex@9.2.2: + resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==} + dev: true + + /eventemitter3@5.0.1: + resolution: {integrity: sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==} + dev: true + + /execa@7.2.0: + resolution: {integrity: sha512-UduyVP7TLB5IcAQl+OzLyLcS/l32W/GLg+AhHJ+ow40FOk2U3SAllPwR44v4vmdFwIWqpdwxxpQbF1n5ta9seA==} + engines: {node: ^14.18.0 || ^16.14.0 || >=18.0.0} + dependencies: + cross-spawn: 7.0.3 + get-stream: 6.0.1 + human-signals: 4.3.1 + is-stream: 3.0.0 + merge-stream: 2.0.0 + npm-run-path: 5.3.0 + onetime: 6.0.0 + signal-exit: 3.0.7 + strip-final-newline: 3.0.0 + dev: true + + /fill-range@7.1.1: + resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} + engines: {node: '>=8'} + dependencies: + to-regex-range: 5.0.1 + dev: true + + /get-stream@6.0.1: + resolution: {integrity: sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==} + engines: {node: '>=10'} + dev: true + + /human-signals@4.3.1: + resolution: {integrity: sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ==} + engines: {node: '>=14.18.0'} + dev: true + + /husky@8.0.3: + resolution: {integrity: sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==} + engines: {node: '>=14'} + hasBin: true + dev: true + + /is-fullwidth-code-point@4.0.0: + resolution: {integrity: sha512-O4L094N2/dZ7xqVdrXhh9r1KODPJpFms8B5sGdJLPy664AgvXsreZUyCQQNItZRDlYug4xStLjNp/sz3HvBowQ==} + engines: {node: '>=12'} + dev: true + + /is-number@7.0.0: + resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} + engines: {node: '>=0.12.0'} + dev: true + + /is-stream@3.0.0: + resolution: {integrity: sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + dev: true + + /isexe@2.0.0: + resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} + dev: true + + /lilconfig@2.1.0: + resolution: {integrity: sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==} + engines: {node: '>=10'} + dev: true + + /lint-staged@13.3.0: + resolution: {integrity: sha512-mPRtrYnipYYv1FEE134ufbWpeggNTo+O/UPzngoaKzbzHAthvR55am+8GfHTnqNRQVRRrYQLGW9ZyUoD7DsBHQ==} + engines: {node: ^16.14.0 || >=18.0.0} + hasBin: true + dependencies: + chalk: 5.3.0 + commander: 11.0.0 + debug: 4.3.4 + execa: 7.2.0 + lilconfig: 2.1.0 + listr2: 6.6.1 + micromatch: 4.0.5 + pidtree: 0.6.0 + string-argv: 0.3.2 + yaml: 2.3.1 + transitivePeerDependencies: + - enquirer + - supports-color + dev: true + + /listr2@6.6.1: + resolution: {integrity: sha512-+rAXGHh0fkEWdXBmX+L6mmfmXmXvDGEKzkjxO+8mP3+nI/r/CWznVBvsibXdxda9Zz0OW2e2ikphN3OwCT/jSg==} + engines: {node: '>=16.0.0'} + peerDependencies: + enquirer: '>= 2.3.0 < 3' + peerDependenciesMeta: + enquirer: + optional: true + dependencies: + cli-truncate: 3.1.0 + colorette: 2.0.20 + eventemitter3: 5.0.1 + log-update: 5.0.1 + rfdc: 1.3.1 + wrap-ansi: 8.1.0 + dev: true + + /log-update@5.0.1: + resolution: {integrity: sha512-5UtUDQ/6edw4ofyljDNcOVJQ4c7OjDro4h3y8e1GQL5iYElYclVHJ3zeWchylvMaKnDbDilC8irOVyexnA/Slw==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + dependencies: + ansi-escapes: 5.0.0 + cli-cursor: 4.0.0 + slice-ansi: 5.0.0 + strip-ansi: 7.1.0 + wrap-ansi: 8.1.0 + dev: true + + /merge-stream@2.0.0: + resolution: {integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==} + dev: true + + /micromatch@4.0.5: + resolution: {integrity: sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==} + engines: {node: '>=8.6'} + dependencies: + braces: 3.0.3 + picomatch: 2.3.1 + dev: true + + /mimic-fn@2.1.0: + resolution: {integrity: sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==} + engines: {node: '>=6'} + dev: true + + /mimic-fn@4.0.0: + resolution: {integrity: sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==} + engines: {node: '>=12'} + dev: true + + /ms@2.1.2: + resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} + dev: true + + /npm-run-path@5.3.0: + resolution: {integrity: sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + dependencies: + path-key: 4.0.0 + dev: true + + /onetime@5.1.2: + resolution: {integrity: sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==} + engines: {node: '>=6'} + dependencies: + mimic-fn: 2.1.0 + dev: true + + /onetime@6.0.0: + resolution: {integrity: sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==} + engines: {node: '>=12'} + dependencies: + mimic-fn: 4.0.0 + dev: true + + /path-key@3.1.1: + resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} + engines: {node: '>=8'} + dev: true + + /path-key@4.0.0: + resolution: {integrity: sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==} + engines: {node: '>=12'} + dev: true + + /picomatch@2.3.1: + resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} + engines: {node: '>=8.6'} + dev: true + + /pidtree@0.6.0: + resolution: {integrity: sha512-eG2dWTVw5bzqGRztnHExczNxt5VGsE6OwTeCG3fdUf9KBsZzO3R5OIIIzWR+iZA0NtZ+RDVdaoE2dK1cn6jH4g==} + engines: {node: '>=0.10'} + hasBin: true + dev: true + + /restore-cursor@4.0.0: + resolution: {integrity: sha512-I9fPXU9geO9bHOt9pHHOhOkYerIMsmVaWB0rA2AI9ERh/+x/i7MV5HKBNrg+ljO5eoPVgCcnFuRjJ9uH6I/3eg==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + dependencies: + onetime: 5.1.2 + signal-exit: 3.0.7 + dev: true + + /rfdc@1.3.1: + resolution: {integrity: sha512-r5a3l5HzYlIC68TpmYKlxWjmOP6wiPJ1vWv2HeLhNsRZMrCkxeqxiHlQ21oXmQ4F3SiryXBHhAD7JZqvOJjFmg==} + dev: true + + /shebang-command@2.0.0: + resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} + engines: {node: '>=8'} + dependencies: + shebang-regex: 3.0.0 + dev: true + + /shebang-regex@3.0.0: + resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} + engines: {node: '>=8'} + dev: true + + /signal-exit@3.0.7: + resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==} + dev: true + + /slice-ansi@5.0.0: + resolution: {integrity: sha512-FC+lgizVPfie0kkhqUScwRu1O/lF6NOgJmlCgK+/LYxDCTk8sGelYaHDhFcDN+Sn3Cv+3VSa4Byeo+IMCzpMgQ==} + engines: {node: '>=12'} + dependencies: + ansi-styles: 6.2.1 + is-fullwidth-code-point: 4.0.0 + dev: true + + /string-argv@0.3.2: + resolution: {integrity: sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==} + engines: {node: '>=0.6.19'} + dev: true + + /string-width@5.1.2: + resolution: {integrity: sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==} + engines: {node: '>=12'} + dependencies: + eastasianwidth: 0.2.0 + emoji-regex: 9.2.2 + strip-ansi: 7.1.0 + dev: true + + /strip-ansi@7.1.0: + resolution: {integrity: sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==} + engines: {node: '>=12'} + dependencies: + ansi-regex: 6.0.1 + dev: true + + /strip-final-newline@3.0.0: + resolution: {integrity: sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==} + engines: {node: '>=12'} + dev: true + + /to-regex-range@5.0.1: + resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} + engines: {node: '>=8.0'} + dependencies: + is-number: 7.0.0 + dev: true + + /type-fest@1.4.0: + resolution: {integrity: sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA==} + engines: {node: '>=10'} + dev: true + + /which@2.0.2: + resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} + engines: {node: '>= 8'} + hasBin: true + dependencies: + isexe: 2.0.0 + dev: true + + /wrap-ansi@8.1.0: + resolution: {integrity: sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==} + engines: {node: '>=12'} + dependencies: + ansi-styles: 6.2.1 + string-width: 5.1.2 + strip-ansi: 7.1.0 + dev: true + + /yaml@2.3.1: + resolution: {integrity: sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ==} + engines: {node: '>= 14'} + dev: true diff --git a/yarn.lock b/yarn.lock index 019466b..ebae1cb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -332,6 +332,15 @@ __metadata: languageName: node linkType: hard +"@commander-js/extra-typings@npm:^12.1.0": + version: 12.1.0 + resolution: "@commander-js/extra-typings@npm:12.1.0" + peerDependencies: + commander: ~12.1.0 + checksum: 3a1779855b02c13f0a621ff1f022c301632ef5a59185c6f0012af4f3597389732239a0ba11817479b181ed97ae7c99fd0e9ce471b01d267172165cc8d74e4e77 + languageName: node + linkType: hard + "@cspotcode/source-map-support@npm:^0.8.0": version: 0.8.1 resolution: "@cspotcode/source-map-support@npm:0.8.1" @@ -1337,82 +1346,67 @@ __metadata: languageName: node linkType: hard -"@nomicfoundation/edr-darwin-arm64@npm:0.3.7": - version: 0.3.7 - resolution: "@nomicfoundation/edr-darwin-arm64@npm:0.3.7" - conditions: os=darwin & cpu=arm64 +"@nomicfoundation/edr-darwin-arm64@npm:0.4.2": + version: 0.4.2 + resolution: "@nomicfoundation/edr-darwin-arm64@npm:0.4.2" + checksum: 7835e998c2ef83924efac0694bb4392f6abf770dc7f935dd28abc1a291f830cade14750d83a46a3205338e4ddff943dda60a9849317cf42edd38d7a2ce843588 languageName: node linkType: hard -"@nomicfoundation/edr-darwin-x64@npm:0.3.7": - version: 0.3.7 - resolution: "@nomicfoundation/edr-darwin-x64@npm:0.3.7" - conditions: os=darwin & cpu=x64 +"@nomicfoundation/edr-darwin-x64@npm:0.4.2": + version: 0.4.2 + resolution: "@nomicfoundation/edr-darwin-x64@npm:0.4.2" + checksum: 94daa26610621e85cb025feb37bb93e9b89c59f908bf3eae70720d2b86632dbb1236420ae3ae6f685d563ba52519d5f860e68ccd898fa1fced831961dea2c08a languageName: node linkType: hard -"@nomicfoundation/edr-linux-arm64-gnu@npm:0.3.7": - version: 0.3.7 - resolution: "@nomicfoundation/edr-linux-arm64-gnu@npm:0.3.7" - conditions: os=linux & cpu=arm64 & libc=glibc +"@nomicfoundation/edr-linux-arm64-gnu@npm:0.4.2": + version: 0.4.2 + resolution: "@nomicfoundation/edr-linux-arm64-gnu@npm:0.4.2" + checksum: a7181e237f6ece8bd97e0f75972044dbf584c506bbac5bef586d9f7d627a2c07a279a2d892837bbedc80ea3dfb39fa66becc297238b5d715a942eed2a50745cd languageName: node linkType: hard -"@nomicfoundation/edr-linux-arm64-musl@npm:0.3.7": - version: 0.3.7 - resolution: "@nomicfoundation/edr-linux-arm64-musl@npm:0.3.7" - conditions: os=linux & cpu=arm64 & libc=musl +"@nomicfoundation/edr-linux-arm64-musl@npm:0.4.2": + version: 0.4.2 + resolution: "@nomicfoundation/edr-linux-arm64-musl@npm:0.4.2" + checksum: 5a849484b7a104a7e1497774c4117afc58f64d57d30889d4f6f676dddb5c695192c0789b8be0b71171a2af770167a28aa301ae3ece7a2a156d82d94388639b66 languageName: node linkType: hard -"@nomicfoundation/edr-linux-x64-gnu@npm:0.3.7": - version: 0.3.7 - resolution: "@nomicfoundation/edr-linux-x64-gnu@npm:0.3.7" - conditions: os=linux & cpu=x64 & libc=glibc +"@nomicfoundation/edr-linux-x64-gnu@npm:0.4.2": + version: 0.4.2 + resolution: "@nomicfoundation/edr-linux-x64-gnu@npm:0.4.2" + checksum: 0520dd9a583976fd0f49dfe6c23227f03cd811a395dc5eed1a2922b4358d7c71fdcfea8f389d4a0e23b4ec53e1435959a544380f94e48122a75f94a42b177ac7 languageName: node linkType: hard -"@nomicfoundation/edr-linux-x64-musl@npm:0.3.7": - version: 0.3.7 - resolution: "@nomicfoundation/edr-linux-x64-musl@npm:0.3.7" - conditions: os=linux & cpu=x64 & libc=musl +"@nomicfoundation/edr-linux-x64-musl@npm:0.4.2": + version: 0.4.2 + resolution: "@nomicfoundation/edr-linux-x64-musl@npm:0.4.2" + checksum: 80c3b4346d8c27539bc005b09db233dedd8930310d1a049827661e69a8e03be9cbac27eb620a6ae9bfd46a2fbe22f83cee5af8d9e63178925d74d9c656246708 languageName: node linkType: hard -"@nomicfoundation/edr-win32-x64-msvc@npm:0.3.7": - version: 0.3.7 - resolution: "@nomicfoundation/edr-win32-x64-msvc@npm:0.3.7" - conditions: os=win32 & cpu=x64 +"@nomicfoundation/edr-win32-x64-msvc@npm:0.4.2": + version: 0.4.2 + resolution: "@nomicfoundation/edr-win32-x64-msvc@npm:0.4.2" + checksum: 736fb866fd5c2708560cbd5ae72815b5fc96e650cd74bc8bab0a1cb0e8baede4f595fdceb445c159814a6a7e8e691de227a5db49f61b3cd0ddfafd5715b397ab languageName: node linkType: hard -"@nomicfoundation/edr@npm:^0.3.5": - version: 0.3.7 - resolution: "@nomicfoundation/edr@npm:0.3.7" +"@nomicfoundation/edr@npm:^0.4.1": + version: 0.4.2 + resolution: "@nomicfoundation/edr@npm:0.4.2" dependencies: - "@nomicfoundation/edr-darwin-arm64": 0.3.7 - "@nomicfoundation/edr-darwin-x64": 0.3.7 - "@nomicfoundation/edr-linux-arm64-gnu": 0.3.7 - "@nomicfoundation/edr-linux-arm64-musl": 0.3.7 - "@nomicfoundation/edr-linux-x64-gnu": 0.3.7 - "@nomicfoundation/edr-linux-x64-musl": 0.3.7 - "@nomicfoundation/edr-win32-x64-msvc": 0.3.7 - dependenciesMeta: - "@nomicfoundation/edr-darwin-arm64": - optional: true - "@nomicfoundation/edr-darwin-x64": - optional: true - "@nomicfoundation/edr-linux-arm64-gnu": - optional: true - "@nomicfoundation/edr-linux-arm64-musl": - optional: true - "@nomicfoundation/edr-linux-x64-gnu": - optional: true - "@nomicfoundation/edr-linux-x64-musl": - optional: true - "@nomicfoundation/edr-win32-x64-msvc": - optional: true - checksum: bad2d4c916c01dc219086def3a3c29d17834f5eb3a8898f3a79e4e4270c013c2417ff7d2eea1401bf6d1e436fcdbf5d7e4db6a2fdf76ed2495f6f900ab3e0273 + "@nomicfoundation/edr-darwin-arm64": 0.4.2 + "@nomicfoundation/edr-darwin-x64": 0.4.2 + "@nomicfoundation/edr-linux-arm64-gnu": 0.4.2 + "@nomicfoundation/edr-linux-arm64-musl": 0.4.2 + "@nomicfoundation/edr-linux-x64-gnu": 0.4.2 + "@nomicfoundation/edr-linux-x64-musl": 0.4.2 + "@nomicfoundation/edr-win32-x64-msvc": 0.4.2 + checksum: 8c8457257b59ed9a29d88b7492e98e974d24e8318903e876a14dc0f6d5dc77948cd9053937d9730f54f920ba82ce3d244cab518d068359bcc20df88623f171ef languageName: node linkType: hard @@ -1641,7 +1635,20 @@ __metadata: languageName: node linkType: hard -"@nomicfoundation/hardhat-ethers@npm:^3.0.5, @nomicfoundation/hardhat-ethers@npm:~3.0.5": +"@nomicfoundation/hardhat-ethers@npm:^3.0.6": + version: 3.0.6 + resolution: "@nomicfoundation/hardhat-ethers@npm:3.0.6" + dependencies: + debug: ^4.1.1 + lodash.isequal: ^4.5.0 + peerDependencies: + ethers: ^6.1.0 + hardhat: ^2.0.0 + checksum: 31a9b5aeb7b42cf3d8bcd1f11e680ce7018874a4c63b16b01a928fb34d2bd3e0f046fc4c7180e01bcd8b8b398874fc370317165284b3f543c4f3d1fbdcfbf05d + languageName: node + linkType: hard + +"@nomicfoundation/hardhat-ethers@npm:~3.0.5": version: 3.0.5 resolution: "@nomicfoundation/hardhat-ethers@npm:3.0.5" dependencies: @@ -2151,11 +2158,11 @@ __metadata: hardhat-deploy: ^0.12.2 hardhat-deploy-ethers: ~0.4.1 hardhat-gas-reporter: ~1.0.9 - maci-circuits: 0.0.0-ci.f6073a6 - maci-cli: 0.0.0-ci.f6073a6 - maci-contracts: 0.0.0-ci.f6073a6 - maci-crypto: 0.0.0-ci.f6073a6 - maci-domainobjs: 0.0.0-ci.f6073a6 + maci-circuits: 0.0.0-ci.4d2d340 + maci-cli: 0.0.0-ci.4d2d340 + maci-contracts: 0.0.0-ci.4d2d340 + maci-crypto: 0.0.0-ci.4d2d340 + maci-domainobjs: 0.0.0-ci.4d2d340 prettier: ~2.8.4 prompt: ^1.3.0 qrcode: ~1.5.1 @@ -2196,8 +2203,8 @@ __metadata: eslint-config-next: ^14.0.4 eslint-config-prettier: ^8.5.0 eslint-plugin-prettier: ^4.2.1 - maci-crypto: 0.0.0-ci.f6073a6 - maci-domainobjs: 0.0.0-ci.f6073a6 + maci-crypto: 0.0.0-ci.4d2d340 + maci-domainobjs: 0.0.0-ci.4d2d340 next: ^14.0.4 next-themes: ^0.2.1 nprogress: ^0.2.0 @@ -4165,7 +4172,7 @@ __metadata: languageName: node linkType: hard -"@zk-kit/baby-jubjub@npm:0.3.0, @zk-kit/baby-jubjub@npm:^0.3.0": +"@zk-kit/baby-jubjub@npm:0.3.0": version: 0.3.0 resolution: "@zk-kit/baby-jubjub@npm:0.3.0" dependencies: @@ -4174,6 +4181,15 @@ __metadata: languageName: node linkType: hard +"@zk-kit/baby-jubjub@npm:1.0.1, @zk-kit/baby-jubjub@npm:^1.0.1": + version: 1.0.1 + resolution: "@zk-kit/baby-jubjub@npm:1.0.1" + dependencies: + "@zk-kit/utils": 1.0.0 + checksum: 90cdd7ebcd91320a6b53a53131803d8445974daa5a2fee47af2f97c09a98ca9daabc7b60264430a51e414d71d20c0578cb9494c541c2127a541e93ce89f0918b + languageName: node + linkType: hard + "@zk-kit/circuits@npm:^0.4.0": version: 0.4.0 resolution: "@zk-kit/circuits@npm:0.4.0" @@ -4194,6 +4210,17 @@ __metadata: languageName: node linkType: hard +"@zk-kit/eddsa-poseidon@npm:^1.0.2": + version: 1.0.2 + resolution: "@zk-kit/eddsa-poseidon@npm:1.0.2" + dependencies: + "@zk-kit/baby-jubjub": 1.0.1 + "@zk-kit/utils": 1.0.0 + buffer: 6.0.3 + checksum: ecbb244341abefc9fb04db5c340d9b293efdeb6652575777e41569ed18b234547f41bf95c8ea045666fed8cca288bd42713e49dd61e575edfa0f51e87244f073 + languageName: node + linkType: hard + "@zk-kit/imt.sol@npm:2.0.0-beta.12": version: 2.0.0-beta.12 resolution: "@zk-kit/imt.sol@npm:2.0.0-beta.12" @@ -4213,6 +4240,16 @@ __metadata: languageName: node linkType: hard +"@zk-kit/poseidon-cipher@npm:^0.3.1": + version: 0.3.1 + resolution: "@zk-kit/poseidon-cipher@npm:0.3.1" + dependencies: + "@zk-kit/baby-jubjub": 1.0.1 + "@zk-kit/utils": 1.0.0 + checksum: a307335e3105e20a0bfbd6f6c1a93f8f6f4b8bd946d8d1939500efb3f7a1561d618b2f8689eb1e62cea9ac4f966c1ccb3d39674060be34f29cf31ca83a8673f7 + languageName: node + linkType: hard + "@zk-kit/utils@npm:0.3.0": version: 0.3.0 resolution: "@zk-kit/utils@npm:0.3.0" @@ -4238,6 +4275,15 @@ __metadata: languageName: node linkType: hard +"@zk-kit/utils@npm:1.0.0": + version: 1.0.0 + resolution: "@zk-kit/utils@npm:1.0.0" + dependencies: + buffer: ^6.0.3 + checksum: 9ff7758e89002471921c4af299ddaf770015b3de350d351f79f1a04532141fa27b5dec14cf692614ccd62857d9aacf4b5098153def78e25397adf1e5a4c60016 + languageName: node + linkType: hard + "JSONStream@npm:^1.3.5": version: 1.3.5 resolution: "JSONStream@npm:1.3.5" @@ -5814,17 +5860,19 @@ __metadata: languageName: node linkType: hard -"circomkit@npm:^0.1.0": - version: 0.1.0 - resolution: "circomkit@npm:0.1.0" +"circomkit@npm:^0.2.1": + version: 0.2.1 + resolution: "circomkit@npm:0.2.1" dependencies: - chai: ^4.3.7 circom_tester: ^0.0.19 + commander: ^12.0.0 loglevel: ^1.8.1 - snarkjs: ^0.7.0 + peerDependencies: + "@types/snarkjs": ^0.7.x + snarkjs: ^0.7.x bin: - circomkit: dist/bin/index.js - checksum: 1681962d7147712a1b8ef6d802304d35bbe8fb2938920f37b46a92024e23f0af2c07f2b4b8fd104d1461922f51e9005278575451dcf3efb0d476aaefb2fe1ae0 + circomkit: dist/cli.js + checksum: 7e6e495eb593fb60658284fb3393197bfdee34988d86e0c12bce9d8f6456e2da0a246f819794f235a2e487acaf7cb06eebfc88c08e5cc71637f251fe902ccdfe languageName: node linkType: hard @@ -6128,6 +6176,13 @@ __metadata: languageName: node linkType: hard +"commander@npm:^12.1.0": + version: 12.1.0 + resolution: "commander@npm:12.1.0" + checksum: 68e9818b00fc1ed9cdab9eb16905551c2b768a317ae69a5e3c43924c2b20ac9bb65b27e1cab36aeda7b6496376d4da908996ba2c0b5d79463e0fb1e77935d514 + languageName: node + linkType: hard + "commander@npm:^2.20.3": version: 2.20.3 resolution: "commander@npm:2.20.3" @@ -6149,6 +6204,13 @@ __metadata: languageName: node linkType: hard +"commander@npm:^8.1.0": + version: 8.3.0 + resolution: "commander@npm:8.3.0" + checksum: 0f82321821fc27b83bd409510bb9deeebcfa799ff0bf5d102128b500b7af22872c0c92cb6a0ebc5a4cf19c6b550fba9cedfa7329d18c6442a625f851377bacf0 + languageName: node + linkType: hard + "common-tags@npm:^1.8.0": version: 1.8.2 resolution: "common-tags@npm:1.8.2" @@ -8079,9 +8141,9 @@ __metadata: languageName: node linkType: hard -"ethers@npm:^6.12.0": - version: 6.12.1 - resolution: "ethers@npm:6.12.1" +"ethers@npm:^6.13.1": + version: 6.13.1 + resolution: "ethers@npm:6.13.1" dependencies: "@adraffy/ens-normalize": 1.10.1 "@noble/curves": 1.2.0 @@ -8089,8 +8151,8 @@ __metadata: "@types/node": 18.15.13 aes-js: 4.0.0-beta.5 tslib: 2.4.0 - ws: 8.5.0 - checksum: ddf398c91f584b9e643740ec17a9c82b4a1c4ea3fb6efd00f1a043b89d1ec6f9427aa80894f75850ee805722e91b8d054bce18579a2c621226302c096774df90 + ws: 8.17.1 + checksum: beef4b6d117f64c369f44be631e0f666b966374eac0cc0446fa7abe114b11d6b3019060022eec65c031f150711f4913d249de507ff3da3204e654635db80a07e languageName: node linkType: hard @@ -9235,7 +9297,7 @@ __metadata: languageName: node linkType: hard -"graceful-fs@npm:^4.1.2, graceful-fs@npm:^4.1.6, graceful-fs@npm:^4.1.9, graceful-fs@npm:^4.2.0, graceful-fs@npm:^4.2.11, graceful-fs@npm:^4.2.4, graceful-fs@npm:^4.2.6, graceful-fs@npm:^4.2.9": +"graceful-fs@npm:^4.1.2, graceful-fs@npm:^4.1.3, graceful-fs@npm:^4.1.6, graceful-fs@npm:^4.1.9, graceful-fs@npm:^4.2.0, graceful-fs@npm:^4.2.11, graceful-fs@npm:^4.2.4, graceful-fs@npm:^4.2.6, graceful-fs@npm:^4.2.9": version: 4.2.11 resolution: "graceful-fs@npm:4.2.11" checksum: ac85f94da92d8eb6b7f5a8b20ce65e43d66761c55ce85ac96df6865308390da45a8d3f0296dd3a663de65d30ba497bd46c696cc1e248c72b13d6d567138a4fc7 @@ -9379,13 +9441,13 @@ __metadata: languageName: node linkType: hard -"hardhat@npm:^2.22.3": - version: 2.22.3 - resolution: "hardhat@npm:2.22.3" +"hardhat@npm:^2.22.4": + version: 2.22.6 + resolution: "hardhat@npm:2.22.6" dependencies: "@ethersproject/abi": ^5.1.2 "@metamask/eth-sig-util": ^4.0.0 - "@nomicfoundation/edr": ^0.3.5 + "@nomicfoundation/edr": ^0.4.1 "@nomicfoundation/ethereumjs-common": 4.0.4 "@nomicfoundation/ethereumjs-tx": 5.0.4 "@nomicfoundation/ethereumjs-util": 9.0.4 @@ -9419,7 +9481,7 @@ __metadata: raw-body: ^2.4.1 resolve: 1.17.0 semver: ^6.3.0 - solc: 0.7.3 + solc: 0.8.26 source-map-support: ^0.5.13 stacktrace-parser: ^0.1.10 tsort: 0.0.1 @@ -9436,7 +9498,7 @@ __metadata: optional: true bin: hardhat: internal/cli/bootstrap.js - checksum: 7f0b8b2b803aca1f07b1e421605f9ff0243e93fe75f04b57d45292e7fedf7a50deb2ef435c47d0dde5b14988ea0493f58852d8973096f76719b35040927dcd55 + checksum: 5aec1824db3575d63754de18c2629bcd820bc836d836f8a6346bcd9aa2ae4c397e090c43ea482ee765b704e018001015b5c84c5ded301a6a1144129c1a4c509b languageName: node linkType: hard @@ -10255,6 +10317,13 @@ __metadata: languageName: node linkType: hard +"is-promise@npm:^2.1.0": + version: 2.2.2 + resolution: "is-promise@npm:2.2.2" + checksum: 18bf7d1c59953e0ad82a1ed963fb3dc0d135c8f299a14f89a17af312fc918373136e56028e8831700e1933519630cc2fd4179a777030330fde20d34e96f40c78 + languageName: node + linkType: hard + "is-regex@npm:^1.1.4": version: 1.1.4 resolution: "is-regex@npm:1.1.4" @@ -11140,7 +11209,7 @@ __metadata: languageName: node linkType: hard -"lodash@npm:^4.17.11, lodash@npm:^4.17.14, lodash@npm:^4.17.15, lodash@npm:^4.17.19, lodash@npm:^4.17.21, lodash@npm:^4.17.4": +"lodash@npm:4, lodash@npm:^4.17.11, lodash@npm:^4.17.14, lodash@npm:^4.17.15, lodash@npm:^4.17.19, lodash@npm:^4.17.21, lodash@npm:^4.17.4": version: 4.17.21 resolution: "lodash@npm:4.17.21" checksum: eb835a2e51d381e561e508ce932ea50a8e5a68f4ebdd771ea240d3048244a8d13658acbd502cd4829768c56f2e16bdd4340b9ea141297d472517b83868e677f7 @@ -11234,6 +11303,19 @@ __metadata: languageName: node linkType: hard +"lowdb@npm:^1.0.0": + version: 1.0.0 + resolution: "lowdb@npm:1.0.0" + dependencies: + graceful-fs: ^4.1.3 + is-promise: ^2.1.0 + lodash: 4 + pify: ^3.0.0 + steno: ^0.4.1 + checksum: 7ae89e3d6e00963129f72c4d4e1fe8e4cda5c08a46b4f4e525109483147e799df90c07d95aeced1c270cc10f4a24c6660fe1601cc4b3a6e2c3f922ad64517eab + languageName: node + linkType: hard + "lru-cache@npm:^10.0.2": version: 10.1.0 resolution: "lru-cache@npm:10.1.0" @@ -11280,93 +11362,95 @@ __metadata: languageName: node linkType: hard -"maci-circuits@npm:0.0.0-ci.f6073a6": - version: 0.0.0-ci.f6073a6 - resolution: "maci-circuits@npm:0.0.0-ci.f6073a6" +"maci-circuits@npm:0.0.0-ci.4d2d340": + version: 0.0.0-ci.4d2d340 + resolution: "maci-circuits@npm:0.0.0-ci.4d2d340" dependencies: "@zk-kit/circuits": ^0.4.0 - circomkit: ^0.1.0 + circomkit: ^0.2.1 circomlib: ^2.0.5 - maci-core: 0.0.0-ci.f6073a6 - maci-crypto: 0.0.0-ci.f6073a6 - maci-domainobjs: 0.0.0-ci.f6073a6 + maci-core: 0.0.0-ci.4d2d340 + maci-crypto: 0.0.0-ci.4d2d340 + maci-domainobjs: 0.0.0-ci.4d2d340 snarkjs: ^0.7.4 - checksum: 3a48bda939d754db32a38036797ce90c5a7fc794dd48e65a654aa0cc3155fb6e102995303b92fadec5e0063651f1baeb253618b6e75481f19f692648a843fb69 + checksum: 43642cce8e999a04f469861213c23c36261599b4c415692c14260806a0cd9ffa5fa55036f1201c5d33a91b97d49761318da3a2f5cc1c7fa8db62ae52ba4e6455 languageName: node linkType: hard -"maci-cli@npm:0.0.0-ci.f6073a6": - version: 0.0.0-ci.f6073a6 - resolution: "maci-cli@npm:0.0.0-ci.f6073a6" +"maci-cli@npm:0.0.0-ci.4d2d340": + version: 0.0.0-ci.4d2d340 + resolution: "maci-cli@npm:0.0.0-ci.4d2d340" dependencies: - "@commander-js/extra-typings": ^12.0.1 + "@commander-js/extra-typings": ^12.1.0 "@nomicfoundation/hardhat-toolbox": ^5.0.0 - commander: ^12.0.0 + commander: ^12.1.0 dotenv: ^16.4.5 - ethers: ^6.12.0 - hardhat: ^2.22.3 - maci-circuits: 0.0.0-ci.f6073a6 - maci-contracts: 0.0.0-ci.f6073a6 - maci-core: 0.0.0-ci.f6073a6 - maci-crypto: 0.0.0-ci.f6073a6 - maci-domainobjs: 0.0.0-ci.f6073a6 + ethers: ^6.13.1 + hardhat: ^2.22.4 + maci-circuits: 0.0.0-ci.4d2d340 + maci-contracts: 0.0.0-ci.4d2d340 + maci-core: 0.0.0-ci.4d2d340 + maci-crypto: 0.0.0-ci.4d2d340 + maci-domainobjs: 0.0.0-ci.4d2d340 prompt: ^1.3.0 bin: - maci-cli: build/ts/index.js - checksum: 90f1497acb2aee3da9e1e395d027a896043a542021f1712e933581c45ad92d419a48bbda541ffa51e75bac7b486b29aa5b14e7b3f5cb88b369da4276a546033a + maci-cli: ./build/ts/index.js + checksum: 996d7ec9a0262e06470e8b967699fa6fe574e926c8a4214989432b818dbcceb3462d3352ade4fd34b414356193723b95fca950862547b9f97ad6079463b05268 languageName: node linkType: hard -"maci-contracts@npm:0.0.0-ci.f6073a6": - version: 0.0.0-ci.f6073a6 - resolution: "maci-contracts@npm:0.0.0-ci.f6073a6" +"maci-contracts@npm:0.0.0-ci.4d2d340": + version: 0.0.0-ci.4d2d340 + resolution: "maci-contracts@npm:0.0.0-ci.4d2d340" dependencies: - "@nomicfoundation/hardhat-ethers": ^3.0.5 + "@nomicfoundation/hardhat-ethers": ^3.0.6 "@nomicfoundation/hardhat-toolbox": ^5.0.0 "@openzeppelin/contracts": ^5.0.2 "@zk-kit/imt.sol": 2.0.0-beta.12 circomlibjs: ^0.1.7 - ethers: ^6.12.0 - hardhat: ^2.22.3 - maci-circuits: 0.0.0-ci.f6073a6 - maci-core: 0.0.0-ci.f6073a6 - maci-crypto: 0.0.0-ci.f6073a6 - maci-domainobjs: 0.0.0-ci.f6073a6 + ethers: ^6.13.1 + hardhat: ^2.22.4 + lowdb: ^1.0.0 + maci-circuits: 0.0.0-ci.4d2d340 + maci-core: 0.0.0-ci.4d2d340 + maci-crypto: 0.0.0-ci.4d2d340 + maci-domainobjs: 0.0.0-ci.4d2d340 solidity-docgen: ^0.6.0-beta.36 + uuid: ^10.0.0 bin: - maci-contracts: build/ts/index.js - checksum: 825e1c8b62fc31641fe061f0a9fcacbbf4f3b12f85e6562cfa0eb6ba3086ed696934f10e79f96c371cec9874a32ef675c49c2a0ef33eef7b8b54451a3b32fefe + maci-contracts: ./build/ts/index.js + checksum: 8db708db941ff0ca260bd6562147d5d3ce1c2cc35753b0e7a8443bdf9d13a5b9c1cc02e0d3140f8e66b511f3d7a8a75177c40313f7f4ef4043584ce8a382f5c9 languageName: node linkType: hard -"maci-core@npm:0.0.0-ci.f6073a6": - version: 0.0.0-ci.f6073a6 - resolution: "maci-core@npm:0.0.0-ci.f6073a6" +"maci-core@npm:0.0.0-ci.4d2d340": + version: 0.0.0-ci.4d2d340 + resolution: "maci-core@npm:0.0.0-ci.4d2d340" dependencies: - maci-crypto: 0.0.0-ci.f6073a6 - maci-domainobjs: 0.0.0-ci.f6073a6 - checksum: 5f902acdd11a5f99e49bbe4ea1cbdf9818eb54496d56769bdf10b60e2fe5ddc3b99d992794511e656729d7bdeab95a873a513f719c3fd028faf0270dbabfbaea + maci-crypto: 0.0.0-ci.4d2d340 + maci-domainobjs: 0.0.0-ci.4d2d340 + checksum: 74ac9c5b4f184f7f147305ae9b831842b50e0daa1c6268401d32389e79cfa96cf14db8320add14c7921432ec3e493d441fd659a3c19bc95c3f1e3be8c5c879b9 languageName: node linkType: hard -"maci-crypto@npm:0.0.0-ci.f6073a6": - version: 0.0.0-ci.f6073a6 - resolution: "maci-crypto@npm:0.0.0-ci.f6073a6" +"maci-crypto@npm:0.0.0-ci.4d2d340": + version: 0.0.0-ci.4d2d340 + resolution: "maci-crypto@npm:0.0.0-ci.4d2d340" dependencies: - "@zk-kit/baby-jubjub": ^0.3.0 - "@zk-kit/eddsa-poseidon": ^0.11.0 - "@zk-kit/poseidon-cipher": ^0.3.0 - ethers: ^6.12.0 - checksum: 30870030e5bc0c9e7c5772435925d965bdca5a8569966a9c022e431e28009a0a04c44faeb3c76d62208093e3f87495b589aee2a58604bb0c0fe47a33614d3ed0 + "@zk-kit/baby-jubjub": ^1.0.1 + "@zk-kit/eddsa-poseidon": ^1.0.2 + "@zk-kit/poseidon-cipher": ^0.3.1 + ethers: ^6.13.1 + checksum: 49e6441e92c3c2cdeb35c75b9865a9aaf5361219ca745939e426ee998d225f4518ae1b38be51507b4ce1af9b4d8524fdcc9aafaaa0486bfb69bb14b2cc03c71c languageName: node linkType: hard -"maci-domainobjs@npm:0.0.0-ci.f6073a6": - version: 0.0.0-ci.f6073a6 - resolution: "maci-domainobjs@npm:0.0.0-ci.f6073a6" +"maci-domainobjs@npm:0.0.0-ci.4d2d340": + version: 0.0.0-ci.4d2d340 + resolution: "maci-domainobjs@npm:0.0.0-ci.4d2d340" dependencies: - maci-crypto: 0.0.0-ci.f6073a6 - checksum: 11ee8b6636a1e63cc30ca4104d41d0f5446a84d5a4644b8991ff5e4bc2e9e793da5b3415198fb519e5f3bce82bea641bfc6114fe01260367277162260407ec2c + maci-crypto: 0.0.0-ci.4d2d340 + checksum: ecdc151424f86c6a9bcda4381b4c32fbd8c5524b50404ce6ceae9f630025896e2fd4b90da43fd66f2f538f7fc5cec9ce5e9160c7b9bdf443748e2fc4b8b4c961 languageName: node linkType: hard @@ -14512,6 +14596,23 @@ __metadata: languageName: node linkType: hard +"solc@npm:0.8.26": + version: 0.8.26 + resolution: "solc@npm:0.8.26" + dependencies: + command-exists: ^1.2.8 + commander: ^8.1.0 + follow-redirects: ^1.12.1 + js-sha3: 0.8.0 + memorystream: ^0.3.1 + semver: ^5.5.0 + tmp: 0.0.33 + bin: + solcjs: solc.js + checksum: e3eaeac76e60676377b357af8f3919d4c8c6a74b74112b49279fe8c74a3dfa1de8afe4788689fc307453bde336edc8572988d2cf9e909f84d870420eb640400c + languageName: node + linkType: hard + "solidity-ast@npm:^0.4.38": version: 0.4.56 resolution: "solidity-ast@npm:0.4.56" @@ -14731,6 +14832,15 @@ __metadata: languageName: node linkType: hard +"steno@npm:^0.4.1": + version: 0.4.4 + resolution: "steno@npm:0.4.4" + dependencies: + graceful-fs: ^4.1.3 + checksum: 87df4121cf8159fceb3dc925111aff1e237bdea2d37f6684eabbcdea63bfcff79b3234f2a61ffe8de5cf17fcb97e2cf09075a2a98993251f79e2868fe0d5ba1e + languageName: node + linkType: hard + "stream-browserify@npm:^3.0.0": version: 3.0.0 resolution: "stream-browserify@npm:3.0.0" @@ -16259,6 +16369,15 @@ __metadata: languageName: node linkType: hard +"uuid@npm:^10.0.0": + version: 10.0.0 + resolution: "uuid@npm:10.0.0" + bin: + uuid: dist/bin/uuid + checksum: 4b81611ade2885d2313ddd8dc865d93d8dccc13ddf901745edca8f86d99bc46d7a330d678e7532e7ebf93ce616679fb19b2e3568873ac0c14c999032acb25869 + languageName: node + linkType: hard + "uuid@npm:^3.3.2": version: 3.4.0 resolution: "uuid@npm:3.4.0" @@ -16742,6 +16861,21 @@ __metadata: languageName: node linkType: hard +"ws@npm:8.17.1": + version: 8.17.1 + resolution: "ws@npm:8.17.1" + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: ">=5.0.2" + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + checksum: 442badcce1f1178ec87a0b5372ae2e9771e07c4929a3180321901f226127f252441e8689d765aa5cfba5f50ac60dd830954afc5aeae81609aefa11d3ddf5cecf + languageName: node + linkType: hard + "ws@npm:8.5.0": version: 8.5.0 resolution: "ws@npm:8.5.0"