Skip to main content

chio_listing/
lib.rs

1//! Generic listing and trust-activation contracts for the Chio protocol.
2//!
3//! This crate is used to publish, discover, compare, and activate marketplace
4//! listings. It defines the signed `Listing` artifact, listing search and
5//! comparison, SLA and pricing-hint shapes, and the trust-activation flow that
6//! turns a discovered listing into a locally admissible one. Listings are
7//! signed by their namespace owner and verification is pure. The governance
8//! and open-market crates build on these types.
9//!
10//! # Modules
11//!
12//! - [`discovery`] -- listing search, comparison, and admissibility
13//!   resolution.
14
15#![forbid(unsafe_code)]
16
17pub use chio_core_types::capability::scope::MonetaryAmount;
18pub use chio_core_types::{canonical_json_bytes, crypto, receipt};
19
20pub mod discovery;
21pub mod outcome;
22pub use discovery::{
23    compare, provider_signing_key, resolve_admissible_listing, search, Listing, ListingComparison,
24    ListingComparisonRow, ListingPricingHint, ListingQuery, ListingSearchResponse, ListingSla,
25    SignedListingPricingHint, LISTING_COMPARISON_SCHEMA, LISTING_PRICING_HINT_SCHEMA,
26    LISTING_SEARCH_SCHEMA, MAX_MARKETPLACE_SEARCH_LIMIT,
27};
28
29mod listing;
30mod search;
31mod trust_activation;
32mod util;
33
34pub use listing::*;
35pub use search::*;
36pub use trust_activation::*;
37pub use util::*;
38
39#[cfg(test)]
40mod tests;