mirror of
https://github.com/datahaven-xyz/datahaven
synced 2026-05-24 09:50:01 +00:00
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
23 lines
No EOL
589 B
Bash
Executable file
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 |