From 33002b1499177fb0216c6df51172a2ad55dd5594 Mon Sep 17 00:00:00 2001 From: Sameh Abouel-saad Date: Wed, 3 Jun 2026 15:28:08 +0300 Subject: [PATCH] fix: remove unused --typesBundle flag from seed-versions.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The pinned @subsquid/substrate-metadata-explorer@1.1.2 does not support a --typesBundle option (it offers only --out, --archive, --chain), so 'make typegen-seed' / './scripts/seed-versions.sh' failed per network with 'error: unknown option --typesBundle' — masked by the script as a connection warning, ending with 0 versions discovered. The flag was never needed: the explorer fetches raw runtime metadata blobs over --chain; the types bundle is a typegen-side concern (decoding pre-V14 custom types), not required to capture metadata. Verified the bundle-free explorer output is byte-identical to the committed tfchainVersions.jsonl for all devnet versions, including pre-V14 (v49-v67). Keeps --chain (canonical chain RPC, no dependency on the archive). Also drops the now-orphaned TYPES_BUNDLE variable and its existence guard, which only existed to support the removed flag. Co-Authored-By: Claude Opus 4.8 (1M context) --- scripts/seed-versions.sh | 8 -------- 1 file changed, 8 deletions(-) diff --git a/scripts/seed-versions.sh b/scripts/seed-versions.sh index c01a204..bb6dd99 100755 --- a/scripts/seed-versions.sh +++ b/scripts/seed-versions.sh @@ -15,7 +15,6 @@ set -euo pipefail SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" REPO_DIR="$(cd "$SCRIPT_DIR/.." && pwd)" MASTER="$REPO_DIR/typegen/tfchainVersions.jsonl" -TYPES_BUNDLE="$REPO_DIR/typegen/typesBundle.json" TMP_DIR=$(mktemp -d) # Network endpoints @@ -35,12 +34,6 @@ cleanup() { } trap cleanup EXIT -if [ ! -f "$TYPES_BUNDLE" ]; then - echo "Error: typesBundle.json not found at $TYPES_BUNDLE" - echo "Restore it from indexer/typesBundle.json first." - exit 1 -fi - # Determine which networks to scan if [ $# -gt 0 ]; then SCAN_NETWORKS="$*" @@ -72,7 +65,6 @@ for network in $SCAN_NETWORKS; do if npx squid-substrate-metadata-explorer \ --chain "$endpoint" \ - --typesBundle "$TYPES_BUNDLE" \ --out "$outfile" 2>&1; then if [ -f "$outfile" ] && [ -s "$outfile" ]; then