Skip to content

Commit

Permalink
updated packages
Browse files Browse the repository at this point in the history
  • Loading branch information
kKahina committed Oct 24, 2024
1 parent cdf455d commit 2a438ce
Showing 1 changed file with 31 additions and 32 deletions.
63 changes: 31 additions & 32 deletions test/test-zapp-actions.sh
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

0 comments on commit 2a438ce

Please sign in to comment.