mars-v2-frontend/generate_types.sh
Gustavo Mauricio 9bc09c68af
Withdraw assets from account (#43)
* withdraw modal and respective hooks initial commit

* max withdraw amount hook logic improvements

* withdraw flow code cleanup

* reset modal state when reopened

* memoize withdraw amount. percentage value fix

* unused store selector

* credit manager and accountnft clients added to store

* script to pull generated types from rover repo
2022-11-07 16:36:12 +00:00

20 lines
568 B
Bash
Executable File

# generates smart contracts type definitions and copies respective files to types directory
# Usage: ./generate-types.sh
R='\033[0;31m' #'0;31' is Red's ANSI color code
G='\033[0;32m' #'0;32' is Green's ANSI color code
dir=$(pwd)
echo $dir
if [ -d "../rover" ]; then
echo "Fetching latest changes from rover repo"
cd ../rover && git fetch && git checkout master && git pull
cd $dir
echo "Generating types for rover..."
cp -r ../rover/scripts/types/generated ./types
echo "${G}Success"
else
echo "${R}Directory rover not found..."
fi