Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ngutech21 committed Apr 10, 2024
1 parent e6bbcb3 commit 6020ef3
Show file tree
Hide file tree
Showing 6 changed files with 87 additions and 71 deletions.
125 changes: 70 additions & 55 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions moksha-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ path = "src/lib.rs"
anyhow = { workspace = true }
url = { workspace = true }
base64 = { workspace = true }
bitcoin_hashes = "0.13.0"
secp256k1 = { version = "0.28.2", features = ["rand", "serde"] }
bitcoin_hashes = "0.14.0"
secp256k1 = { version = "0.29.0", features = ["rand", "serde"] }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
hex = { workspace = true }
Expand Down
3 changes: 1 addition & 2 deletions moksha-mint/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@ serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
tokio = { workspace = true, features = ["full"] }
tower-http = { workspace = true, features = ["cors", "fs", "set-header"] }

secp256k1 = { version = "0.28.2", default-features = false, features = ["rand", "serde"] }
thiserror = { workspace = true }
moksha-core = { path = "../moksha-core", version = "0.2.1" }
lightning-invoice = "0.26.0"
lightning-invoice = "0.30.0"
reqwest = { workspace = true, features = ["json", "rustls-tls", "socks"] }
url = { workspace = true }
dotenvy = { workspace = true }
Expand Down
3 changes: 2 additions & 1 deletion moksha-mint/src/lightning/lnd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ impl Lightning for LndLightning {
#[instrument(skip(self), err)]
async fn is_invoice_paid(&self, payment_request: String) -> Result<bool, MokshaMintError> {
let invoice = self.decode_invoice(payment_request).await?;
let payment_hash = invoice.payment_hash();
let payment_hash: &[u8] = invoice.payment_hash().as_ref();

let invoice_request = fedimint_tonic_lnd::lnrpc::PaymentHash {
r_hash: payment_hash.to_vec(),
..Default::default()
Expand Down
7 changes: 4 additions & 3 deletions moksha-mint/src/lightning/strike.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ impl Lightning for StrikeLightning {
let invoice =
LNInvoice::from_signed(payment_request.parse::<SignedRawBolt11Invoice>().unwrap())
.unwrap();
let payment_hash = invoice.payment_hash().to_vec();
let payment_hash: &[u8] = invoice.payment_hash().as_ref();

Ok(CreateInvoiceResult {
payment_hash,
payment_hash: payment_hash.to_vec(),
payment_request,
})
}
Expand All @@ -96,7 +96,8 @@ impl Lightning for StrikeLightning {
) -> Result<PayInvoiceResult, MokshaMintError> {
// strike doesn't return the payment_hash so we have to read the invoice into a Bolt11 and extract it
let invoice = self.decode_invoice(payment_request.clone()).await?;
let payment_hash = invoice.payment_hash().to_vec();
let invoice2 = invoice.clone();
let payment_hash: &[u8] = invoice2.payment_hash().as_ref();

let payment_quote_id = self
.client
Expand Down
16 changes: 8 additions & 8 deletions moksha-wallet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ path = "src/lib.rs"

[dependencies]
anyhow = { workspace = true, features = ["backtrace"] }
secp256k1 = { version = "0.28.2", default-features = false, features = ["serde"] }
secp256k1 = { version = "0.29.0", default-features = false, features = ["serde"] }
moksha-core = { version = "0.2.1", path = "../moksha-core" }
serde_json = { workspace = true }
serde = { workspace = true }
thiserror = { workspace = true }
async-trait = { workspace = true }
lightning-invoice = "0.29.0"
lightning-invoice = "0.30.0"
url = { workspace = true }
dirs = { workspace = true }
bip32 = { workspace = true, features = ["secp256k1", "std"] }
Expand All @@ -31,15 +31,15 @@ rand = { workspace = true }

[target.'cfg(target_family = "wasm")'.dependencies]
gloo-net = { version = "0.5.0" }
serde-wasm-bindgen = "0.6.3"
wasm-bindgen = "0.2.90"
serde-wasm-bindgen = "0.6.5"
wasm-bindgen = "0.2.92"
rexie = "0.5.0"
tokio = { version = "1.37.0", features = ["rt", "sync"] }
tokio = { workspace = true, features = ["rt", "sync"] }

[target.'cfg(not(target_family="wasm"))'.dependencies]
reqwest = { version = "0.12.3", features = ["json", "rustls-tls"], default-features = false }
tokio = { version = "1.37.0", features = ["rt", "rt-multi-thread", "macros"] }
sqlx = { version = "0.7.4", default-features = false, features = ["sqlite", "runtime-tokio", "tls-rustls", "migrate", "macros", "json"] }
reqwest = { workspace = true, features = ["json", "rustls-tls"], default-features = false }
tokio = { workspace = true, features = ["rt", "rt-multi-thread", "macros"] }
sqlx = { workspace = true, default-features = false, features = ["sqlite", "runtime-tokio", "tls-rustls", "migrate", "macros", "json"] }

[dev-dependencies]
tempfile = { workspace = true }
Expand Down

0 comments on commit 6020ef3

Please sign in to comment.