(&self)
| 113 | } |
| 114 | |
| 115 | pub async fn handle_get_funding_amounts(&self) -> io::Result<()> { |
| 116 | const INITIAL_AMOUNT: u64 = 2 << 20; // 2097152 |
| 117 | |
| 118 | println!("Minimum required input amounts"); |
| 119 | println!("------------------------------"); |
| 120 | println!( |
| 121 | "'Peg-in deposit' tx input: {} SAT (spendable by [DEPOSITOR])", |
| 122 | INITIAL_AMOUNT + PEG_IN_FEE |
| 123 | ); |
| 124 | println!( |
| 125 | "'Peg-out confirm' tx input: {} SAT (spendable by [OPERATOR])", |
| 126 | INITIAL_AMOUNT + PEG_OUT_FEE |
| 127 | ); |
| 128 | println!( |
| 129 | "'Peg-out' tx input: {} SAT (spendable by [OPERATOR])", |
| 130 | INITIAL_AMOUNT + MIN_RELAY_FEE_PEG_OUT |
| 131 | ); |
| 132 | |
| 133 | println!(); |
| 134 | self.handle_get_depositor_address().await?; |
| 135 | self.handle_get_operator_address().await?; |
| 136 | Ok(()) |
| 137 | } |
| 138 | |
| 139 | pub fn get_operator_address_command() -> Command { |
| 140 | Command::new("get-operator-address") |
no test coverage detected