Skip to content

Commit 49b511b

Browse files
author
22388o
committed
disable cli for now
1 parent a4e4d63 commit 49b511b

2 files changed

Lines changed: 0 additions & 72 deletions

File tree

src/bin/zk_coinjoin_cli.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,6 @@
22

33
// tokio = { version = "1.0", features = ["full"] }// tokio = { version = "1.0", features = ["full"] }
44

5-
#[cfg(feature = "cli")]
6-
use zk_coinjoin_lib::cli::run;
7-
8-
#[cfg(feature = "cli")]
9-
fn main() {
10-
if let Err(e) = run() {
11-
eprintln!("Error: {}", e);
12-
std::process::exit(1);
13-
}
14-
}
155

166
#[cfg(not(feature = "cli"))]
177
fn main() {

src/lib.rs

Lines changed: 0 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -71,65 +71,3 @@ pub fn zk_proof_to_json_with_zk(proof: &str) -> Result<String, String> {
7171
Ok(String::new())
7272
}
7373

74-
#[cfg(feature = "cli")]
75-
pub mod cli {
76-
use super::*;
77-
use clap::Parser;
78-
79-
#[derive(Parser, Debug)]
80-
#[command(name = "zk-coinjoin-cli", version, about = "ZK Proof CoinJoin CLI")]
81-
pub struct Cli {
82-
#[arg(long)]
83-
pub recipient_address: String,
84-
85-
#[arg(long)]
86-
pub amount: u64,
87-
88-
#[arg(long)]
89-
pub is_taproot: bool,
90-
91-
#[arg(long)]
92-
pub invoice: String,
93-
94-
#[arg(long)]
95-
pub htlc: String,
96-
97-
#[arg(long)]
98-
pub electrum_client: String,
99-
100-
#[arg(long)]
101-
pub use_zk: bool,
102-
}
103-
104-
pub async fn run() -> Result<(), String> {
105-
let args = Cli::parse();
106-
let client = reqwest::Client::new();
107-
108-
if args.use_zk {
109-
create_and_broadcast_transaction_with_zk(
110-
&client,
111-
args.is_taproot,
112-
&args.recipient_address,
113-
args.amount,
114-
&args.invoice,
115-
&args.htlc,
116-
&args.electrum_client,
117-
)
118-
} else {
119-
// For now, provide dummy values to match full call signature
120-
create_and_broadcast_transaction(
121-
&client,
122-
args.is_taproot,
123-
&args.recipient_address,
124-
args.amount,
125-
&args.htlc,
126-
&args.invoice,
127-
&args.electrum_client,
128-
"hex_placeholder",
129-
"asset_id_placeholder",
130-
"address_placeholder",
131-
"pool_placeholder",
132-
)
133-
}
134-
}
135-
}

0 commit comments

Comments
 (0)