(&mut self)
| 203 | } |
| 204 | |
| 205 | pub async fn handle_get_depositor_utxos(&mut self) -> io::Result<()> { |
| 206 | let utxos = self.client.get_depositor_utxos().await; |
| 207 | match utxos.len() { |
| 208 | 0 => println!("No depositor UTXOs found."), |
| 209 | utxo_count => { |
| 210 | println!( |
| 211 | "{} operator UTXO{} found (<TXID>:<VOUT> <AMOUNT> <CONFIRMED>):", |
| 212 | utxo_count, |
| 213 | if utxo_count == 1 { "" } else { "s" } |
| 214 | ); |
| 215 | for utxo in utxos { |
| 216 | println!( |
| 217 | "{}:{} {} {}", |
| 218 | utxo.txid, utxo.vout, utxo.value, utxo.status.confirmed |
| 219 | ); |
| 220 | } |
| 221 | } |
| 222 | } |
| 223 | |
| 224 | Ok(()) |
| 225 | } |
| 226 | |
| 227 | pub fn get_initiate_peg_in_command() -> Command { |
| 228 | Command::new("initiate-peg-in") |
no test coverage detected