pub fn filter(&mut self, chain_names: &[String]) {
        self.hyperchains_config
            .retain(|config| chain_names.contains(&config.network.key));
    }
Retains only the chains whose names are present in the given vector.
zkstack_cli/crates/config/src/portal.rs