#!/usr/bin/env bash
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
cd "$ROOT"
echo "== validate cross-chain config =="
node scripts/hybx-omnl/validate-cross-chain-config.mjs
echo "== forge test hybx-omnl =="
bash scripts/forge/scope.sh test hybx-omnl
echo "== token-aggregation build =="
cd services/token-aggregation
pnpm exec tsc --noEmit
echo "verify-deployment: OK"
