Skip to content

Commit

Permalink
added the prod script
Browse files Browse the repository at this point in the history
  • Loading branch information
yashgo0018 committed Jun 5, 2024
1 parent 815bf4d commit 14050b6
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@
"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",
"download-prod-zkeys": "yarn workspace @se-2/hardhat download-prod-zkeys"
},
"packageManager": "yarn@3.2.3",
"devDependencies": {
"husky": "^8.0.1",
"lint-staged": "^13.0.3"
}
}
}
4 changes: 3 additions & 1 deletion packages/hardhat/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ deployments/localhost

zkeys
coordinatorKeyPair.json
contractAddresses.json
contractAddresses.json

*.tar.gz
12 changes: 12 additions & 0 deletions packages/hardhat/maci-scripts/download_prod_zkeys.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash -xe

mkdir -p ./zkeys

URL=https://maci-develop-fra.s3.eu-central-1.amazonaws.com/v1.3.0/maci_artifacts_14-7-2-3_f6073a6.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"
5 changes: 3 additions & 2 deletions packages/hardhat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"lint-staged": "eslint --config ./.eslintrc.json --ignore-path ./.eslintignore",
"test": "REPORT_GAS=true hardhat test --network hardhat",
"verify": "hardhat etherscan-verify",
"download-zkeys": "./maci-scripts/download_zkeys.sh"
"download-zkeys": "./maci-scripts/download_zkeys.sh",
"download-prod-zkeys": "./maci-scripts/download_prod_zkeys.sh"
},
"dependencies": {
"@commander-js/extra-typings": "^12.0.1",
Expand Down Expand Up @@ -70,4 +71,4 @@
"typechain": "~8.1.0",
"typescript": "~5.1.6"
}
}
}

0 comments on commit 14050b6

Please sign in to comment.