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, }) }