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

Function get

cli/src/processor/thread.rs:67–72  ·  view source on GitHub ↗
(client: &Client, address: Pubkey)

Source from the content-addressed store, hash-verified

65}
66
67pub fn get(client: &Client, address: Pubkey) -> Result<(), CliError> {
68 let data = client.get_account_data(&address).unwrap();
69 let thread = VersionedThread::try_deserialize(&mut data.as_slice()).unwrap();
70 println!("Address: {}\n{:#?}", address, thread);
71 Ok(())
72}
73
74pub fn pause(client: &Client, id: String) -> Result<(), CliError> {
75 let thread_pubkey = Thread::pubkey(client.payer_pubkey(), id.into_bytes());

Callers 5

createFunction · 0.70
pauseFunction · 0.70
resumeFunction · 0.70
resetFunction · 0.70
updateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected