(&mut self)
| 159 | } |
| 160 | |
| 161 | pub async fn handle_get_operator_utxos(&mut self) -> io::Result<()> { |
| 162 | let utxos = self.client.get_operator_utxos().await; |
| 163 | match utxos.len() { |
| 164 | 0 => println!("No operator UTXOs found."), |
| 165 | utxo_count => { |
| 166 | println!( |
| 167 | "{} operator UTXO{} found (<TXID>:<VOUT> <AMOUNT> <CONFIRMED>):", |
| 168 | utxo_count, |
| 169 | if utxo_count == 1 { "" } else { "s" } |
| 170 | ); |
| 171 | for utxo in utxos { |
| 172 | println!( |
| 173 | "{}:{} {} {}", |
| 174 | utxo.txid, utxo.vout, utxo.value, utxo.status.confirmed |
| 175 | ); |
| 176 | } |
| 177 | } |
| 178 | } |
| 179 | |
| 180 | Ok(()) |
| 181 | } |
| 182 | |
| 183 | pub fn get_depositor_address_command() -> Command { |
| 184 | Command::new("get-depositor-address") |
no test coverage detected