#!/usr/bin/env bash set -euo pipefail SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" SKILL_ROOT="$(dirname "$SCRIPT_DIR")" source "$SCRIPT_DIR/_common.sh" : "${ETH_RPC_URL:=}" main() { [[ -f "$SKILL_ROOT/outputs/last_run_dir.txt" ]] || die "No last run. Run 11_apply.sh first." run_dir="$(cat "$SKILL_ROOT/outputs/last_run_dir.txt")" status="$run_dir/status_matrix.json" ok_proof=false; ok_tx=false; ok_receipt=false [[ -f "$run_dir/PROOF.json" ]] && ok_proof=true if [[ -f "$run_dir/tx_hash.txt" ]]; then tx="$(cat "$run_dir/tx_hash.txt")" [[ -n "$tx" ]] && ok_tx=true if cast receipt --rpc-url "$ETH_RPC_URL" "$tx" >/dev/null 2>&1; then ok_receipt=true fi fi blockers="[]" if [[ "$ok_tx" != "true" ]]; then blockers='["missing_tx_hash"]' elif [[ "$ok_receipt" != "true" ]]; then blockers='["tx_receipt_not_found_yet"]' fi cat > "$status" <