MCPcopy Create free account
hub / github.com/clockwork-xyz/clockwork / create_geyser_plugin_config

Function create_geyser_plugin_config

cli/src/processor/localnet.rs:319–331  ·  view source on GitHub ↗
(config: &CliConfig)

Source from the content-addressed store, hash-verified

317}
318
319fn create_geyser_plugin_config(config: &CliConfig) -> Result<()> {
320 let geyser_config = clockwork_plugin_utils::PluginConfig {
321 keypath: Some(config.signatory().to_owned()),
322 libpath: Some(config.geyser_lib().to_owned()),
323 ..Default::default()
324 };
325
326 let content = serde_json::to_string_pretty(&geyser_config)
327 .context("Unable to serialize PluginConfig to json")?;
328 let path = &config.geyser_config();
329 fs::write(&path, content).context(format!("Unable to serialize PluginConfig to {}", path))?;
330 Ok(())
331}
332
333fn start_test_validator(
334 config: &CliConfig,

Callers 1

startFunction · 0.85

Calls 3

signatoryMethod · 0.80
geyser_libMethod · 0.80
geyser_configMethod · 0.80

Tested by

no test coverage detected