lib

Core libraries for Radroots
git clone https://radroots.dev/git/lib.git
Log | Files | Refs | README

commit 7cf7adfae464f19e6839d580a8a7c219143927ac
parent 7cbb8f28f0d3b40c41fd052852413b82c64d9bed
Author: triesap <tyson@radroots.org>
Date:   Wed, 15 Jul 2026 01:19:00 +0000

runtime: align event envelope accessors

- replace direct app-runtime event-envelope field reads with accessors
- raise the app runtime Rust floor to 1.97.0

Diffstat:
Mcrates/mobile_core/src/runtime/info.rs | 4++--
Mcrates/mobile_core/src/runtime/trade_listing.rs | 4++--
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/crates/mobile_core/src/runtime/info.rs b/crates/mobile_core/src/runtime/info.rs @@ -93,7 +93,7 @@ mod tests { let source = net::BuildInfo { crate_name: "radroots-net-core", crate_version: "1.2.3", - rustc: Some("rustc 1.92.0"), + rustc: Some("rustc 1.97.0"), profile: Some("debug"), git_sha: Some("abc123"), build_time_unix: Some(1_700_000_000), @@ -102,7 +102,7 @@ mod tests { let out = NetBuildInfo::from(&source); assert_eq!(out.crate_name, "radroots-net-core"); assert_eq!(out.crate_version, "1.2.3"); - assert_eq!(out.rustc.as_deref(), Some("rustc 1.92.0")); + assert_eq!(out.rustc.as_deref(), Some("rustc 1.97.0")); assert_eq!(out.profile.as_deref(), Some("debug")); assert_eq!(out.git_sha.as_deref(), Some("abc123")); assert_eq!(out.build_time_unix, Some(1_700_000_000)); diff --git a/crates/mobile_core/src/runtime/trade_listing.rs b/crates/mobile_core/src/runtime/trade_listing.rs @@ -277,9 +277,9 @@ fn listing_summary_from_trade( .iter() .find(|bin| bin.bin_id == listing.primary_bin_id); TradeListingSummary { - event_id: event.id.clone(), + event_id: event.id_str().to_owned(), seller_pubkey: listing.seller_pubkey, - published_at: event.created_at as u64, + published_at: event.created_at_u64(), listing_id: listing.listing_id, listing_addr: listing.listing_addr, title: listing.title,