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

Function crate_info

cli/src/processor/thread.rs:11–22  ·  view source on GitHub ↗
(client: &Client)

Source from the content-addressed store, hash-verified

9use crate::{client::Client, errors::CliError};
10
11pub fn crate_info(client: &Client) -> Result<(), CliError> {
12 let ix = Instruction {
13 program_id: clockwork_thread_program::ID,
14 accounts: clockwork_thread_program::accounts::GetCrateInfo {
15 system_program: system_program::ID,
16 }.to_account_metas(Some(false)),
17 data: clockwork_thread_program::instruction::GetCrateInfo {}.data(),
18 };
19 let crate_info: CrateInfo = client.get_return_data(ix).unwrap();
20 println!("{:#?}", crate_info);
21 Ok(())
22}
23
24pub fn create(
25 client: &Client,

Callers 1

processFunction · 0.85

Calls 1

get_return_dataMethod · 0.80

Tested by

no test coverage detected