Skip to content

Commit 5cb395c

Browse files
authored
Merge pull request #106 from MostroP2P/upgrade-dependencies
Update dependencies and fixes
2 parents 32997a1 + fdd5cc8 commit 5cb395c

File tree

4 files changed

+57
-84
lines changed

4 files changed

+57
-84
lines changed

Cargo.lock

Lines changed: 49 additions & 70 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,8 @@ path = "src/main.rs"
2121

2222
[dependencies]
2323
anyhow = "1.0.68"
24-
clap = { version = "4.0.32", features = ["derive"] }
25-
nostr-sdk = { git = "https://github.com/rust-nostr/nostr", features = [
26-
"nip06",
27-
"nip44",
28-
"nip59",
29-
], rev = "70db575d51965240aab1e1b3f1edab782c0ef625" }
30-
# nostr-sdk = { version = "0.37.0", features = ["nip06", "nip44", "nip59"] }
24+
clap = { version = "4.0", features = ["derive"] }
25+
nostr-sdk = { version = "0.38.0", features = ["nip06", "nip44", "nip59"] }
3126
serde = "1.0.215"
3227
serde_json = "1.0.91"
3328
tokio = { version = "1.23.0", features = ["full"] }
@@ -42,11 +37,10 @@ uuid = { version = "1.3.0", features = [
4237
"serde",
4338
] }
4439
dotenvy = "0.15.6"
45-
lightning-invoice = "0.23.0"
40+
lightning-invoice = { version = "0.32.0", features = ["std"] }
4641
reqwest = { version = "0.12.4", features = ["json"] }
47-
mostro-core = { git = "https://github.com/MostroP2P/mostro-core", branch = "test-new-sdk" }
48-
# mostro-core = { path = "../mostro-core" }
49-
bitcoin_hashes = "0.15.0"
42+
mostro-core = "0.6.23"
43+
bitcoin_hashes = "0.16.0"
5044
lnurl-rs = "0.9.0"
5145
pretty_env_logger = "0.5.0"
5246
openssl = { version = "0.10.68", features = ["vendored"] }

src/error.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ impl fmt::Display for MostroError {
2323
}
2424
}
2525

26-
impl From<lightning_invoice::ParseError> for MostroError {
27-
fn from(_: lightning_invoice::ParseError) -> Self {
26+
impl From<lightning_invoice::Bolt11ParseError> for MostroError {
27+
fn from(_: lightning_invoice::Bolt11ParseError) -> Self {
2828
MostroError::ParsingInvoiceError
2929
}
3030
}

src/lightning/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::error::MostroError;
2-
use lightning_invoice::Invoice;
2+
use lightning_invoice::Bolt11Invoice as Invoice;
33
use std::str::FromStr;
44

55
/// Verify if an invoice is valid

0 commit comments

Comments
 (0)