mirror of
https://github.com/erhant/circomkit.git
synced 2026-05-05 03:00:37 -04:00
13 lines
352 B
Bash
Executable File
13 lines
352 B
Bash
Executable File
## Instantiate the main component
|
|
instantiate() {
|
|
echo -e "\n${CLIENV_COLOR_TITLE}=== Creating main component ===${CLIENV_COLOR_RESET}"
|
|
local CIRCUIT=$1
|
|
local DIR=$2
|
|
|
|
# generate the circuit main component
|
|
mkdir -p ./circuits/$DIR
|
|
npx ts-node ./utils/instantiate.ts $CIRCUIT $DIR
|
|
|
|
echo -e "${CLIENV_COLOR_LOG}Done!${CLIENV_COLOR_RESET}"
|
|
}
|