Skip to content

Commit 22f12c9

Browse files
committed
Bump nostr-sdk to v0.40
Signed-off-by: Yuki Kishimoto <[email protected]>
1 parent f732b3f commit 22f12c9

File tree

6 files changed

+332
-432
lines changed

6 files changed

+332
-432
lines changed

lib/src/rust/api/client/options.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ abstract class ClientOptions implements RustOpaqueInterface {
2727
/// Enable gossip model (default: false)
2828
ClientOptions gossip({required bool enabled});
2929

30-
/// Minimum POW difficulty for received events
31-
ClientOptions minPow({required int difficulty});
32-
3330
factory ClientOptions() =>
3431
NostrSdk.instance.api.crateApiClientOptionsClientOptionsNew();
3532
}

lib/src/rust/frb_generated.dart

Lines changed: 157 additions & 193 deletions
Large diffs are not rendered by default.

rust/Cargo.lock

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

rust/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ anyhow = "1.0"
2121
chrono = "0.4"
2222
flutter_rust_bridge = { version = "=2.0.0", features = ["anyhow", "chrono"] }
2323
flutter_rust_bridge_codegen = { version = "=2.0.0", optional = true }
24-
#nostr-sdk = { version = "0.39", default-features = false, features = ["all-nips", "lmdb", "tor"] }
25-
nostr-sdk = { git = "https://github.com/rust-nostr/nostr", rev = "a620e3fef5aaef343f5edf58bd682cea5744d488", default-features = false, features = ["all-nips", "lmdb", "tor"] }
24+
nostr-sdk = { version = "0.40", default-features = false, features = ["all-nips", "lmdb", "tor"] }
2625

2726
[lints.rust]
2827
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(frb_expand)'] }

rust/src/api/client/options.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,6 @@ impl _ClientOptions {
5252
builder
5353
}
5454

55-
/// Minimum POW difficulty for received events
56-
pub fn min_pow(&self, difficulty: u8) -> Self {
57-
let mut builder = self.clone();
58-
builder.inner = builder.inner.min_pow(difficulty);
59-
builder
60-
}
61-
6255
// pub fn req_filters_chunk_size(&self, req_filters_chunk_size: u8) -> Self {
6356
// let mut builder = self.clone();
6457
// builder.inner = builder.inner.req_filters_chunk_size(req_filters_chunk_size);

0 commit comments

Comments
 (0)