Skip to content

fix: remove unused --typesBundle flag from seed-versions.sh#225

Merged
sameh-farouk merged 1 commit into
masterfrom
master-fix-seed-script
Jun 3, 2026
Merged

fix: remove unused --typesBundle flag from seed-versions.sh#225
sameh-farouk merged 1 commit into
masterfrom
master-fix-seed-script

Conversation

@sameh-farouk
Copy link
Copy Markdown
Member

Problem

make typegen-seed (and ./scripts/seed-versions.sh) fails with the pinned @subsquid/substrate-metadata-explorer@1.1.2, which rejects --typesBundle (error: unknown option '--typesBundle'). The script masks this as a per-network connection warning and finishes having discovered 0 versions — so the documented reseed/recovery path silently does nothing.

Why removing the flag is the right fix

The flag was never needed. The explorer just 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: bundle-free explorer output is byte-identical to the committed tfchainVersions.jsonl for all 62 devnet versions, including pre-V14 (v49–v67).

Change

  • Remove --typesBundle "$TYPES_BUNDLE" from the explorer call.
  • Remove the now-orphaned TYPES_BUNDLE variable and its existence-check guard (only existed to support the flag).
  • Keeps --chain → reseeds from the canonical chain RPC, no dependency on the archive.

Note: the --chain walk is slow over public RPC (~5–15 min/network) — acceptable for a rare recovery operation; the script imposes no timeout and runs to completion.

🤖 Generated with Claude Code

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>
@sameh-farouk sameh-farouk merged commit 5fd53d8 into master Jun 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant