Skip to content

Commit 33002b1

Browse files
sameh-faroukclaude
andcommitted
fix: remove unused --typesBundle flag from seed-versions.sh
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) <noreply@anthropic.com>
1 parent 5c1cf30 commit 33002b1

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

scripts/seed-versions.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ set -euo pipefail
1515
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
1616
REPO_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
1717
MASTER="$REPO_DIR/typegen/tfchainVersions.jsonl"
18-
TYPES_BUNDLE="$REPO_DIR/typegen/typesBundle.json"
1918
TMP_DIR=$(mktemp -d)
2019

2120
# Network endpoints
@@ -35,12 +34,6 @@ cleanup() {
3534
}
3635
trap cleanup EXIT
3736

38-
if [ ! -f "$TYPES_BUNDLE" ]; then
39-
echo "Error: typesBundle.json not found at $TYPES_BUNDLE"
40-
echo "Restore it from indexer/typesBundle.json first."
41-
exit 1
42-
fi
43-
4437
# Determine which networks to scan
4538
if [ $# -gt 0 ]; then
4639
SCAN_NETWORKS="$*"
@@ -72,7 +65,6 @@ for network in $SCAN_NETWORKS; do
7265

7366
if npx squid-substrate-metadata-explorer \
7467
--chain "$endpoint" \
75-
--typesBundle "$TYPES_BUNDLE" \
7668
--out "$outfile" 2>&1; then
7769

7870
if [ -f "$outfile" ] && [ -s "$outfile" ]; then

0 commit comments

Comments
 (0)