You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
refactor(script): make family dispatch exhaustive #80
Make Script select Ethereum, Optimism, and Tempo execution through a direct exhaustive match on the canonical resolved EvmFamily, while preserving Script-owned capability and broadcast behavior.
Tempo must retain both ordinary broadcast and batch broadcast, including verification continuation. Ethereum and Optimism must retain their existing generic execution paths. Non-Tempo --batch invocations must continue to fail with the existing user-facing contract.
This is a Script-local hardening change. It must not move batch policy into a shared dispatcher or introduce a routing helper solely for testing.
Acceptance criteria
Script directly matches the canonical EvmFamily, explicitly naming Ethereum, Optimism, and Tempo without a wildcard, default arm, or inferred Ethereum fallback.
Ethereum and Optimism retain their existing generic Script execution and broadcast behavior.
Tempo retains ordinary broadcast, batch broadcast, pending-transaction handling, and verification continuation.
Non-Tempo --batch continues to fail before execution with the existing diagnostic and exit behavior.
A focused command-level regression test covers non-Tempo --batch rejection, asserting failure status, empty stdout, and the existing stderr diagnostic.
Existing ordinary Tempo Script command coverage and Tempo end-to-end checks for successful batch broadcast and atomic batch failure remain green.
Implemented in 7f08fec (refactor(script): match canonical EvmFamily exhaustively).
Script execution now matches the canonical resolved EvmFamily directly, explicitly naming Ethereum, Optimism, and Tempo — no wildcard, default arm, or inferred fallback.
Ethereum/Optimism keep the generic execution path; Tempo keeps ordinary broadcast, batch broadcast, pending-transaction handling, and verification continuation.
Non-Tempo --batch still fails before execution with the existing diagnostic.
Added script_batch_rejects_non_tempo_network (failure + empty stdout + existing stderr) and script_batch_broadcasts_on_tempo (single shared batch tx hash across all calls).
No shared helper, dispatcher, or new seam introduced; source audit confirms no catch-all family projection remains in Script execution.
Full workspace suite (hashkey feature): 2115 passed; the 12 failures are pre-existing (cast opts stack-overflow, SVM multi-compiler listing, external integrations), unrelated to this change.
Activity
refactor(script): match canonical EvmFamily exhaustively
mowind commentedon Aug 5, 2026
Implemented in 7f08fec (refactor(script): match canonical EvmFamily exhaustively).
EvmFamilydirectly, explicitly naming Ethereum, Optimism, and Tempo — no wildcard, default arm, or inferred fallback.--batchstill fails before execution with the existing diagnostic.script_batch_rejects_non_tempo_network(failure + empty stdout + existing stderr) andscript_batch_broadcasts_on_tempo(single shared batch tx hash across all calls).