The home for Hyperlane core contracts, sdk packages, and other infrastructure
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
hyperlane-monorepo/scripts/test-solidity.sh

25 lines
570 B

# script for running solidity tests locally
# Run from root (./scripts/test-solidity.sh)
set -e
# compile contracts
cd ./solidity/optics-core
npm run compile
cd ../optics-xapps
npm run compile
cd ../../
# copy artifacts
cp -R ./solidity/optics-xapps/artifacts ./typescript/optics-tests
cp -R ./solidity/optics-core/artifacts ./typescript/optics-tests
# copy cache
cp -R ./solidity/optics-xapps/cache ./typescript/optics-tests
cp -R ./solidity/optics-core/cache ./typescript/optics-tests
# run tests
cd ./typescript/optics-tests
npm i
npm run testNoCompile
cd ../..