(client: &Client)
| 9 | use crate::{client::Client, errors::CliError}; |
| 10 | |
| 11 | pub 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 | |
| 24 | pub fn create( |
| 25 | client: &Client, |
no test coverage detected