(client: &Client, id: u64)
| 9 | use crate::{client::Client, errors::CliError}; |
| 10 | |
| 11 | pub 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 | |
| 20 | pub fn list(client: &Client) -> Result<(), CliError> { |
| 21 | let registry_pubkey = Registry::pubkey(); |
no test coverage detected