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

Function get

cli/src/processor/pool.rs:11–18  ·  view source on GitHub ↗
(client: &Client, id: u64)

Source from the content-addressed store, hash-verified

9use crate::{client::Client, errors::CliError};
10
11pub fn get(client: &Client, id: u64) -> Result<(), CliError> {
12 let pool_pubkey = Pool::pubkey(id);
13 let pool = client
14 .get::<Pool>(&pool_pubkey)
15 .map_err(|_err| CliError::AccountDataNotParsable(pool_pubkey.to_string()))?;
16 println!("{:#?}", pool);
17 Ok(())
18}
19
20pub fn list(client: &Client) -> Result<(), CliError> {
21 let registry_pubkey = Registry::pubkey();

Callers 15

updateFunction · 0.70
processFunction · 0.70
download_fileFunction · 0.50
hash_nonceMethod · 0.50
handlerFunction · 0.50
handlerFunction · 0.50
handlerFunction · 0.50
handlerFunction · 0.50
handlerFunction · 0.50
handlerFunction · 0.50
handlerFunction · 0.50
handlerFunction · 0.50

Calls 1

to_stringMethod · 0.80

Tested by

no test coverage detected