mirror of
https://github.com/yashgo0018/maci-wrapper.git
synced 2026-05-04 03:00:44 -04:00
added script to download the zkeys
This commit is contained in:
@@ -32,7 +32,8 @@
|
||||
"postinstall": "husky install",
|
||||
"precommit": "lint-staged",
|
||||
"vercel": "yarn workspace @se-2/nextjs vercel",
|
||||
"vercel:yolo": "yarn workspace @se-2/nextjs vercel:yolo"
|
||||
"vercel:yolo": "yarn workspace @se-2/nextjs vercel:yolo",
|
||||
"download-zkeys": "yarn workspace @se-2/hardhat download-zkeys"
|
||||
},
|
||||
"packageManager": "yarn@3.2.3",
|
||||
"devDependencies": {
|
||||
|
||||
12
packages/hardhat/maci-scripts/download_zkeys.sh
Executable file
12
packages/hardhat/maci-scripts/download_zkeys.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash -xe
|
||||
|
||||
mkdir -p ./zkeys
|
||||
|
||||
URL=https://maci-develop-fra.s3.eu-central-1.amazonaws.com/v1.1.2/maci_keys_10-2-1-2_dev.tar.gz
|
||||
DIR_NAME="maci_keys.tar.gz"
|
||||
OUT_DIR=./
|
||||
|
||||
echo "downloading $URL"
|
||||
curl $URL -o "$OUT_DIR/$DIR_NAME"
|
||||
tar -xvf "$OUT_DIR/$DIR_NAME" -C "$OUT_DIR"
|
||||
rm "$OUT_DIR/$DIR_NAME"
|
||||
@@ -14,7 +14,8 @@
|
||||
"lint": "eslint --config ./.eslintrc.json --ignore-path ./.eslintignore ./*.ts ./deploy/**/*.ts ./scripts/**/*.ts ./test/**/*.ts",
|
||||
"lint-staged": "eslint --config ./.eslintrc.json --ignore-path ./.eslintignore",
|
||||
"test": "REPORT_GAS=true hardhat test --network hardhat",
|
||||
"verify": "hardhat etherscan-verify"
|
||||
"verify": "hardhat etherscan-verify",
|
||||
"download-zkeys": "./maci-scripts/download_zkeys.sh"
|
||||
},
|
||||
"dependencies": {
|
||||
"@commander-js/extra-typings": "^12.0.1",
|
||||
|
||||
@@ -7,7 +7,7 @@ import { GenericContractsDeclaration } from "../utils/scaffold-eth/contract";
|
||||
const deployedContracts = {
|
||||
31337: {
|
||||
ConstantInitialVoiceCreditProxy: {
|
||||
address: "0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512",
|
||||
address: "0x5FbDB2315678afecb367f032d93F642f64180aa3",
|
||||
abi: [
|
||||
{
|
||||
inputs: [
|
||||
@@ -48,10 +48,10 @@ const deployedContracts = {
|
||||
inheritedFunctions: {
|
||||
getVoiceCredits: "contracts/maci-contracts/initialVoiceCreditProxy/InitialVoiceCreditProxy.sol",
|
||||
},
|
||||
deploymentBlockNumber: 2,
|
||||
deploymentBlockNumber: 1,
|
||||
},
|
||||
FreeForAllGatekeeper: {
|
||||
address: "0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0",
|
||||
address: "0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512",
|
||||
abi: [
|
||||
{
|
||||
inputs: [],
|
||||
@@ -91,10 +91,10 @@ const deployedContracts = {
|
||||
},
|
||||
],
|
||||
inheritedFunctions: {},
|
||||
deploymentBlockNumber: 4,
|
||||
deploymentBlockNumber: 3,
|
||||
},
|
||||
MACI: {
|
||||
address: "0xA51c1fc2f0D1a1b8494Ed1FE312d7C3a78Ed91C0",
|
||||
address: "0xB7f8BC63BbcaD18155201308C8f3540b07f84F5e",
|
||||
abi: [
|
||||
{
|
||||
inputs: [
|
||||
@@ -1105,10 +1105,10 @@ const deployedContracts = {
|
||||
renounceOwnership: "@openzeppelin/contracts/access/Ownable.sol",
|
||||
transferOwnership: "@openzeppelin/contracts/access/Ownable.sol",
|
||||
},
|
||||
deploymentBlockNumber: 24,
|
||||
deploymentBlockNumber: 23,
|
||||
},
|
||||
MessageProcessorFactory: {
|
||||
address: "0x610178dA211FEF7D417bC0e6FeD39F05609AD788",
|
||||
address: "0x8A791620dd6260079BF849Dc5567aDC3F2FdC318",
|
||||
abi: [
|
||||
{
|
||||
inputs: [],
|
||||
@@ -1166,10 +1166,10 @@ const deployedContracts = {
|
||||
inheritedFunctions: {
|
||||
MESSAGE_DATA_LENGTH: "contracts/maci-contracts/utilities/DomainObjs.sol",
|
||||
},
|
||||
deploymentBlockNumber: 20,
|
||||
deploymentBlockNumber: 19,
|
||||
},
|
||||
PollFactory: {
|
||||
address: "0x8A791620dd6260079BF849Dc5567aDC3F2FdC318",
|
||||
address: "0x2279B7A0a67DB372996a5FaB50D91eAA73d2eBe6",
|
||||
abi: [
|
||||
{
|
||||
inputs: [],
|
||||
@@ -1294,10 +1294,10 @@ const deployedContracts = {
|
||||
MESSAGE_DATA_LENGTH: "contracts/maci-contracts/utilities/DomainObjs.sol",
|
||||
deploy: "contracts/maci-contracts/interfaces/IPollFactory.sol",
|
||||
},
|
||||
deploymentBlockNumber: 18,
|
||||
deploymentBlockNumber: 17,
|
||||
},
|
||||
PollManager: {
|
||||
address: "0x959922bE3CAee4b8Cd9a407cc3ac1C251C2007B1",
|
||||
address: "0x0B306BF915C4d645ff596e518fAf3F9669b97016",
|
||||
abi: [
|
||||
{
|
||||
inputs: [
|
||||
@@ -1900,10 +1900,10 @@ const deployedContracts = {
|
||||
inheritedFunctions: {
|
||||
MESSAGE_DATA_LENGTH: "contracts/maci-contracts/utilities/DomainObjs.sol",
|
||||
},
|
||||
deploymentBlockNumber: 30,
|
||||
deploymentBlockNumber: 29,
|
||||
},
|
||||
PoseidonT3: {
|
||||
address: "0x5FC8d32690cc91D4c39d9d3abcBD16989F875707",
|
||||
address: "0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9",
|
||||
abi: [
|
||||
{
|
||||
inputs: [
|
||||
@@ -1926,10 +1926,10 @@ const deployedContracts = {
|
||||
},
|
||||
],
|
||||
inheritedFunctions: {},
|
||||
deploymentBlockNumber: 10,
|
||||
deploymentBlockNumber: 9,
|
||||
},
|
||||
PoseidonT4: {
|
||||
address: "0x0165878A594ca255338adfa4d48449f69242Eb8F",
|
||||
address: "0x5FC8d32690cc91D4c39d9d3abcBD16989F875707",
|
||||
abi: [
|
||||
{
|
||||
inputs: [
|
||||
@@ -1952,10 +1952,10 @@ const deployedContracts = {
|
||||
},
|
||||
],
|
||||
inheritedFunctions: {},
|
||||
deploymentBlockNumber: 12,
|
||||
deploymentBlockNumber: 11,
|
||||
},
|
||||
PoseidonT5: {
|
||||
address: "0xa513E6E4b8f2a923D98304ec87F64353C4D5C853",
|
||||
address: "0x0165878A594ca255338adfa4d48449f69242Eb8F",
|
||||
abi: [
|
||||
{
|
||||
inputs: [
|
||||
@@ -1978,10 +1978,10 @@ const deployedContracts = {
|
||||
},
|
||||
],
|
||||
inheritedFunctions: {},
|
||||
deploymentBlockNumber: 14,
|
||||
deploymentBlockNumber: 13,
|
||||
},
|
||||
PoseidonT6: {
|
||||
address: "0x2279B7A0a67DB372996a5FaB50D91eAA73d2eBe6",
|
||||
address: "0xa513E6E4b8f2a923D98304ec87F64353C4D5C853",
|
||||
abi: [
|
||||
{
|
||||
inputs: [
|
||||
@@ -2004,10 +2004,10 @@ const deployedContracts = {
|
||||
},
|
||||
],
|
||||
inheritedFunctions: {},
|
||||
deploymentBlockNumber: 16,
|
||||
deploymentBlockNumber: 15,
|
||||
},
|
||||
TallyFactory: {
|
||||
address: "0xB7f8BC63BbcaD18155201308C8f3540b07f84F5e",
|
||||
address: "0x610178dA211FEF7D417bC0e6FeD39F05609AD788",
|
||||
abi: [
|
||||
{
|
||||
inputs: [
|
||||
@@ -2057,10 +2057,10 @@ const deployedContracts = {
|
||||
inheritedFunctions: {
|
||||
deploy: "contracts/maci-contracts/interfaces/ITallyFactory.sol",
|
||||
},
|
||||
deploymentBlockNumber: 22,
|
||||
deploymentBlockNumber: 21,
|
||||
},
|
||||
TopupCredit: {
|
||||
address: "0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9",
|
||||
address: "0xCf7Ed3AccA5a467e9e704C703E8D87F634fB0Fc9",
|
||||
abi: [
|
||||
{
|
||||
inputs: [],
|
||||
@@ -2468,10 +2468,10 @@ const deployedContracts = {
|
||||
renounceOwnership: "@openzeppelin/contracts/access/Ownable.sol",
|
||||
transferOwnership: "@openzeppelin/contracts/access/Ownable.sol",
|
||||
},
|
||||
deploymentBlockNumber: 8,
|
||||
deploymentBlockNumber: 7,
|
||||
},
|
||||
Verifier: {
|
||||
address: "0xCf7Ed3AccA5a467e9e704C703E8D87F634fB0Fc9",
|
||||
address: "0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0",
|
||||
abi: [
|
||||
{
|
||||
inputs: [],
|
||||
@@ -2631,10 +2631,10 @@ const deployedContracts = {
|
||||
inheritedFunctions: {
|
||||
verify: "contracts/maci-contracts/interfaces/IVerifier.sol",
|
||||
},
|
||||
deploymentBlockNumber: 6,
|
||||
deploymentBlockNumber: 5,
|
||||
},
|
||||
VkRegistry: {
|
||||
address: "0x9A676e781A523b5d0C0e43731313A708CB607508",
|
||||
address: "0x0DCd1Bf9A1b36cE34237eEaFef220932846BCD82",
|
||||
abi: [
|
||||
{
|
||||
inputs: [],
|
||||
@@ -3639,7 +3639,7 @@ const deployedContracts = {
|
||||
getProcessVk: "contracts/maci-contracts/interfaces/IVkRegistry.sol",
|
||||
getTallyVk: "contracts/maci-contracts/interfaces/IVkRegistry.sol",
|
||||
},
|
||||
deploymentBlockNumber: 27,
|
||||
deploymentBlockNumber: 26,
|
||||
},
|
||||
},
|
||||
} as const;
|
||||
|
||||
Reference in New Issue
Block a user