datahaven/operator/test/scripts/build-contracts.sh
Gonza Montiel 7a4d441fd9
build: 🏗️ DataHaven operator setup (#6)
Adds the `Substrate` node and runtime, as well as configuration and test
files, from https://github.com/Moonsong-Labs/flamingo to the `operator`
folder in DataHaven
2025-03-17 17:57:14 +01:00

23 lines
No EOL
589 B
Bash
Executable file

#!/bin/bash
# Exit on any error
set -e
source scripts/set-env.sh
build_snowbridge_contracts() {
if [ -d "$relayer_dir" ]; then
echo "Snowbridge contracts seem to be already downloaded. Skipping downloading again"
else
echo "Downloading datahaven-bridge-relayer"
git clone --recurse-submodules https://github.com/Moonsong-Labs/datahaven-bridge-relayer $relayer_dir
fi
pushd $snowbridge_contracts_dir
forge build
popd
}
if [ -z "${from_start_services:-}" ]; then
echo "Building snowbridge contracts"
build_snowbridge_contracts
fi