From ba8596b1604a3e0423a85526210ad928e3562af8 Mon Sep 17 00:00:00 2001 From: Catrya <140891948+Catrya@users.noreply.github.com> Date: Mon, 22 Jun 2026 12:06:32 -0600 Subject: [PATCH] =?UTF-8?q?chore(deps):=20bump=20mostro-core=200.10=20?= =?UTF-8?q?=E2=86=92=200.13.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Prerequisite for the protocol v2 migration (transport module) - Fix map_core_status: add additive Status::WaitingTakerBond/WaitingMakerBond arms, mapped to None (bond out of scope, no wildcard) - Gift-wrap path unchanged; app still speaks v1 until feat/transport-v2 - No transitive nostr-sdk bump; build, 81 tests and clippy green --- rust/Cargo.lock | 4 ++-- rust/Cargo.toml | 2 +- rust/src/api/orders.rs | 4 ++++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/rust/Cargo.lock b/rust/Cargo.lock index 5f2f5d09..df8426d3 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -1616,9 +1616,9 @@ dependencies = [ [[package]] name = "mostro-core" -version = "0.10.0" +version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d76f4936f520e410ba2abf47113548ae231322209261a9b3a8aefbd10a869082" +checksum = "f9203616a4dbad09ac504d6e29348f2dbef78d96c2d47b2413e1efb0273ef5f4" dependencies = [ "bitcoin", "chrono", diff --git a/rust/Cargo.toml b/rust/Cargo.toml index af0a334c..52717538 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -11,7 +11,7 @@ flutter_rust_bridge = "=2.11.1" # Nostr & Mostro protocol nostr-sdk = { version = "0.44", default-features = false, features = ["nip44", "nip47", "nip59"] } -mostro-core = "0.10" +mostro-core = "0.13.1" # Serialization serde = { version = "1", features = ["derive"] } diff --git a/rust/src/api/orders.rs b/rust/src/api/orders.rs index d9ccc3bb..aecc6188 100644 --- a/rust/src/api/orders.rs +++ b/rust/src/api/orders.rs @@ -1541,6 +1541,10 @@ fn map_core_status(s: mostro_core::order::Status) -> Option { S::SettledByAdmin => OrderStatus::SettledByAdmin, S::CompletedByAdmin => OrderStatus::CompletedByAdmin, S::Dispute => OrderStatus::Dispute, + // Anti-abuse bond is out of scope; these statuses have no local + // OrderStatus mapping. No wildcard, so future Status variants keep + // forcing this match to be revisited. + S::WaitingTakerBond | S::WaitingMakerBond => return None, }) }