Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ panic = 'abort' # Abort on panic
bitcoin-payment-instructions = { version = "0.6.0" }
lightning = { version = "0.2.0" }
lightning-invoice = { version = "0.34.0" }
lightning-macros = "0.2.0"

[profile.release]
panic = "abort"
Expand Down
16 changes: 16 additions & 0 deletions examples/cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use colored::Colorize;
use rustyline::DefaultEditor;
use rustyline::error::ReadlineError;

use orange_sdk::bitcoin::hex::DisplayHex;
use orange_sdk::bitcoin_payment_instructions::amount::Amount;
use orange_sdk::{
ChainSource, Event, ExtraConfig, LoggerType, Mnemonic, PaymentInfo, Seed, SparkWalletConfig,
Expand Down Expand Up @@ -198,6 +199,21 @@ impl WalletState {
fee_msat
);
},
Event::RebalanceFailed {
trigger_payment_id,
trusted_rebalance_payment_id,
amount_msat,
reason,
} => {
println!(
"{} Rebalance failed: {} msat, trigger_payment_id: {}, trusted_rebalance_payment_id: {:?}, reason: {}",
"❌".bright_red(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol claude says hi

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was actually github copilot :)

amount_msat,
trigger_payment_id,
trusted_rebalance_payment_id.map(|id| id.to_lower_hex_string()),
reason
);
},
Event::SplicePending { new_funding_txo, .. } => {
println!(
"{} Splice pending: {}",
Expand Down
3 changes: 2 additions & 1 deletion graduated-rebalancer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ license = "MIT OR Apache-2.0"
bitcoin-payment-instructions = { workspace = true }
lightning = { workspace = true }
lightning-invoice = { workspace = true }
tokio = { version = "1", default-features = false }
lightning-macros = { workspace = true }
tokio = { version = "1", default-features = false, features = ["sync", "macros", "rt", "time"] }
Loading
Loading