mirror of
https://github.com/tornadocash/tornado-nova
synced 2024-02-02 14:53:56 +01:00
upfate prod setup
This commit is contained in:
parent
fb624e57c9
commit
76cf0e9502
@ -8,7 +8,8 @@
|
||||
},
|
||||
"scripts": {
|
||||
"circuit": "./scripts/buildCircuit.sh 2 && ./scripts/buildCircuit.sh 16",
|
||||
"circuit_prod": "rm -rf ./artifacts/circuits && ./scripts/buildCircuit_prod.sh 2 && ./scripts/buildCircuit_prod.sh 16 && tar -czvf artifacts/circuits.tar.gz artifacts/circuits",
|
||||
"circuit_prod": "rm -rf ./artifacts/circuits && yarn changeTreeHeight 23 && ./scripts/buildCircuit_prod.sh 2 && ./scripts/buildCircuit_prod.sh 16 && tar -czvf artifacts/circuits.tar.gz artifacts/circuits",
|
||||
"changeTreeHeight": "./scripts/changeTreeHeight.sh",
|
||||
"compile": "npx hardhat compile",
|
||||
"build": "npm run circuit && npm run compile",
|
||||
"deploy": "npx hardhat run scripts/deploy.js --network optimism",
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash -e
|
||||
POWERS_OF_TAU=15 # circuit will support max 2^POWERS_OF_TAU constraints
|
||||
POWERS_OF_TAU=18 # circuit will support max 2^POWERS_OF_TAU constraints
|
||||
mkdir -p artifacts/circuits
|
||||
if [ ! -f artifacts/circuits/ptau$POWERS_OF_TAU ]; then
|
||||
echo "Downloading powers of tau file"
|
||||
|
6
scripts/changeTreeHeight.sh
Executable file
6
scripts/changeTreeHeight.sh
Executable file
@ -0,0 +1,6 @@
|
||||
case $(sed --help 2>&1) in
|
||||
*GNU*) sed_i () { xargs sed -i "$@"; };;
|
||||
*) sed_i () { xargs sed -i '' "$@"; };;
|
||||
esac
|
||||
|
||||
grep -l --exclude-dir={.git,node_modules,artifacts,contracts} -r "component main = Transaction([0-9]*," . | sed_i "s/component main = Transaction([0-9]*,/component main = Transaction(${1},/g"
|
Loading…
Reference in New Issue
Block a user