commit 4c9445cdae5ae4c9e0d09bc3fcbeb113eb92a88c
parent d432e8e0a1bbd8f1b09f74b987975e3c4122cb39
Author: triesap <tyson@radroots.org>
Date: Sun, 22 Feb 2026 14:20:12 +0000
trade: consolidate listing kind lane around dvm kinds
- replace duplicated trade listing kind families with one canonical set
- rewire trade envelope and app runtime imports to listing kinds constants
- remove legacy listing meta and stage modules tied to old kind values
- assert message type kind mappings stay inside the canonical kind set
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/core/crates/tera_core/src/runtime/trade_listing.rs b/core/crates/tera_core/src/runtime/trade_listing.rs
@@ -25,7 +25,7 @@ use radroots_trade::listing::{
TradeListingEnvelope, TradeListingMessagePayload, TradeListingMessageType,
TradeListingValidateRequest,
},
- dvm_kinds::TRADE_LISTING_DVM_KINDS,
+ kinds::TRADE_LISTING_KINDS,
order::{TradeOrder, TradeOrderItem, TradeOrderStatus},
tags::trade_listing_dvm_tags,
validation::{RadrootsTradeListing, validate_listing_event},
@@ -295,7 +295,7 @@ impl RadrootsRuntime {
.as_ref()
.ok_or_else(|| RadrootsAppError::Msg("nostr not initialized".into()))?;
- let kinds: Vec<RadrootsNostrKind> = TRADE_LISTING_DVM_KINDS
+ let kinds: Vec<RadrootsNostrKind> = TRADE_LISTING_KINDS
.iter()
.map(|k| RadrootsNostrKind::Custom(*k))
.collect();