-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
31 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,36 @@ | ||
|
||
cd temp-zapps/ | ||
|
||
echo “$(tput setaf 3) SHIELDCONTRACTS” | ||
SOLFILES=$(find . -type f -name "*Shield*.sol" -maxdepth 3 -mindepth 3) | ||
solarray=($SOLFILES) | ||
for solelement in "${solarray[@]}" | ||
do | ||
DIR="$(dirname "${solelement}")" | ||
solelement="${solelement:2}" | ||
echo “$(tput setaf 7) $solelement compiling” | ||
solcjs --abi -o $DIR --include-path node_modules/ --base-path . $solelement || { echo “$(tput setaf 1) $solelement failed” && exit 1 ;} | ||
done | ||
# echo “$(tput setaf 3) SHIELDCONTRACTS” | ||
# SOLFILES=$(find . -type f -name "*Shield*.sol" -maxdepth 3 -mindepth 3) | ||
# solarray=($SOLFILES) | ||
# for solelement in "${solarray[@]}" | ||
# do | ||
# DIR="$(dirname "${solelement}")" | ||
# solelement="${solelement:2}" | ||
# echo “$(tput setaf 7) $solelement compiling” | ||
# solcjs --abi -o $DIR --include-path node_modules/ --base-path . $solelement || { echo “$(tput setaf 1) $solelement failed” && exit 1 ;} | ||
# done | ||
|
||
echo “$(tput setaf 3) CIRCUITS” | ||
ZOKFILES=$(find . -type f -name "*.zok" -maxdepth 3 -mindepth 3) | ||
zokarray=($ZOKFILES) | ||
for zokelement in "${zokarray[@]}" | ||
do | ||
zokelement="${zokelement:1}" | ||
echo “$(tput setaf 7) $zokelement compiling” | ||
docker run -t -v $PWD:/home/zokrates/code --name=testcircuits zokrates/zokrates:0.7.12 .zokrates/bin/zokrates compile -i code$zokelement || { echo “$(tput setaf 1) $zokelement failed” && exit 1 ;} | ||
docker rm testcircuits | ||
done | ||
|
||
# echo “$(tput setaf 3) ORCHESTRATION” | ||
# # npm init @eslint/config@latest | ||
# MJSFILES=$(find . -type f -name "*.mjs" -maxdepth 3 -mindepth 3) | ||
# mjsarray=($MJSFILES) | ||
# for mjselement in "${mjsarray[@]}" | ||
# do | ||
# DIR="$(dirname "${mjselement}")" | ||
# echo $DIR | ||
# mjselement="${mjselement:2}" | ||
# echo “$(tput setaf 7) $mjselement compiling” | ||
# npx eslint $mjselement --fix | ||
# echo “$(tput setaf 3) CIRCUITS” | ||
# ZOKFILES=$(find . -type f -name "*.zok" -maxdepth 3 -mindepth 3) | ||
# zokarray=($ZOKFILES) | ||
# for zokelement in "${zokarray[@]}" | ||
# do | ||
# zokelement="${zokelement:1}" | ||
# echo “$(tput setaf 7) $zokelement compiling” | ||
# docker run -t -v $PWD:/home/zokrates/code --name=testcircuits zokrates/zokrates:0.7.12 .zokrates/bin/zokrates compile -i code$zokelement || { echo “$(tput setaf 1) $zokelement failed” && exit 1 ;} | ||
# docker rm testcircuits | ||
# done | ||
|
||
echo “$(tput setaf 3) ORCHESTRATION” | ||
MJSFILES=$(find . -type f -name "*.mjs" -maxdepth 3 -mindepth 3) | ||
mjsarray=($MJSFILES) | ||
for mjselement in "${mjsarray[@]}" | ||
do | ||
DIR="$(dirname "${mjselement}")" | ||
echo $DIR | ||
mjselement="${mjselement:2}" | ||
echo “$(tput setaf 7) $mjselement compiling” | ||
npx eslint $mjselement --fix | ||
done |