refactors and typed config

This commit is contained in:
Erhan Tezcan
2023-03-31 15:00:57 +03:00
parent d46b5fae90
commit ddb2e296fa
19 changed files with 84 additions and 51 deletions

View File

@@ -2,12 +2,12 @@
compile() {
echo -e "\n${CLIENV_COLOR_TITLE}=== Compiling the circuit ===${CLIENV_COLOR_RESET}"
local CIRCUIT=$1
local CIRCOM_IN=./circuits/main/$CIRCUIT.circom
local CIRCOM_OUT=./build/$CIRCUIT
# generate the circuit main component
node ./scripts/instantiate.js $CIRCUIT
local CIRCOM_IN=./circuits/main/$CIRCUIT.circom
local CIRCOM_OUT=./build/$CIRCUIT
# create build dir if not exists already
mkdir -p $CIRCOM_OUT