Browse Source

chore: update

thesimplekid 1 year ago
parent
commit
d82ff1105d

+ 2 - 2
crates/cashu-sdk/Cargo.toml

@@ -36,13 +36,13 @@ futures-util = { version = "0.3", default-features = false, features = ["sink",
 once_cell = { version = "1.17", optional = true }
 thiserror = { workspace = true }
 async-trait = "0.1.74"
-gloo = { version = "0.10.0", optional = true, features = ["net"] }
+gloo = { version = "0.11.0", optional = true, features = ["net"] }
 http = "1.0.0"
 
 [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
 tokio = { workspace = true, features = ["rt-multi-thread", "time", "macros", "sync"] }
 minreq = { version = "2.7.0", optional = true, features = ["json-using-serde", "https"] }
-redb = { version = "1.4.0", optional = true }
+redb = { version = "2.0.0", optional = true }
 
 [target.'cfg(target_arch = "wasm32")'.dependencies]
 tokio = { workspace = true, features = ["rt", "macros", "sync", "time"] }

+ 1 - 3
crates/cashu-sdk/src/wallet/localstore/redb_store.rs

@@ -6,9 +6,7 @@ use async_trait::async_trait;
 use cashu::nuts::{Id, KeySetInfo, Keys, MintInfo, Proofs};
 use cashu::types::{MeltQuote, MintQuote};
 use cashu::url::UncheckedUrl;
-use redb::{
-    Database, MultimapTableDefinition, ReadableMultimapTable, ReadableTable, TableDefinition,
-};
+use redb::{Database, MultimapTableDefinition, ReadableTable, TableDefinition};
 use tokio::sync::Mutex;
 
 use super::{Error, LocalStore};

+ 4 - 4
crates/cashu/Cargo.toml

@@ -26,13 +26,13 @@ nut13 = ["dep:bip39", "dep:bip32", "nut09"]
 
 
 [dependencies]
-base64 = "0.21.0"
-bitcoin = { version = "0.30.0", features=["serde",  "rand"] }
+base64 = "0.22.0"
+bitcoin = { version = "0.31.0", features=["serde",  "rand"] }
 bip39 = { version = "2.0.0", optional = true }
 bip32 = { version = "0.5.1", optional = true }
 hex = "0.4.3"
 k256 = { version = "0.13.1", features=["arithmetic", "serde", "schnorr"] }
-lightning-invoice = { version = "0.25.0", features=["serde"] }
+lightning-invoice = { version = "0.29.0", features=["serde"] }
 log = "0.4.2"
 rand = "0.8.5"
 getrandom = { version = "0.2", features = ["js"] }
@@ -41,7 +41,7 @@ serde_json = { workspace = true }
 serde_with = "3.4.0"
 url = { workspace = true }
 regex = "1.8.4"
-itertools = "0.11.0"
+itertools = "0.12.0"
 thiserror = { workspace = true }
 uuid = { version = "1.6.1", features = ["v4"] }