Skip to content

Commit

Permalink
Merge pull request #240 from Shourya742/fix-taker-cli
Browse files Browse the repository at this point in the history
remove fidelity api from taker cli
  • Loading branch information
mojoX911 committed Aug 20, 2024
2 parents e49fee8 + dfc7d5f commit 2780640
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/bin/taker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,12 @@ enum Commands {
SwapUtxo,
/// Returns a list of live contract utxos
ContractUtxo,
/// Returns a list of fidelity utxos
FidelityUtxo,
/// Returns the total seed balance
SeedBalance,
/// Returns the total swap coin balance
SwapBalance,
/// Returns the total live contract balance
ContractBalance,
/// Returns the total fidelity balance
FidelityBalance,
/// Returns the total balance of taker wallet
TotalBalance,
/// Returns a new address
Expand Down Expand Up @@ -152,16 +148,6 @@ fn main() {
.collect();
println!("{:?}", utxos);
}
Commands::FidelityUtxo => {
let utxos: Vec<ListUnspentResultEntry> = taker
.get_wallet()
.list_fidelity_spend_info(None)
.unwrap()
.iter()
.map(|(l, _)| l.clone())
.collect();
println!("{:?}", utxos);
}
Commands::ContractBalance => {
let balance = taker.get_wallet().balance_live_contract(None).unwrap();
println!("{:?}", balance);
Expand All @@ -174,10 +160,6 @@ fn main() {
let balance = taker.get_wallet().balance_descriptor_utxo(None).unwrap();
println!("{:?}", balance);
}
Commands::FidelityBalance => {
let balance = taker.get_wallet().balance_fidelity_bonds(None).unwrap();
println!("{:?}", balance);
}
Commands::TotalBalance => {
let balance = taker.get_wallet().balance().unwrap();
println!("{:?}", balance);
Expand Down

0 comments on commit 2780640

Please sign in to comment.