lib

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

lib.rs (2628B)


      1 #![doc = include_str!("../README.md")]
      2 #![cfg_attr(not(feature = "std"), no_std)]
      3 #![forbid(unsafe_code)]
      4 #![warn(missing_docs)]
      5 
      6 extern crate alloc;
      7 
      8 mod agreement;
      9 mod amount;
     10 mod commerce;
     11 mod context;
     12 mod currency;
     13 mod fulfillment;
     14 mod identifier;
     15 mod issuance;
     16 /// Validated public-offer values; these establish no stock or command authority.
     17 pub mod listing;
     18 mod message;
     19 mod money;
     20 mod pricing;
     21 mod quantity;
     22 /// Exact physical stock values; these are neither authority nor a stock store.
     23 pub mod stock;
     24 mod time;
     25 mod variable_price;
     26 
     27 /// The identity-owned validated participant key; no second key type is defined.
     28 pub use radroots_identity::PublicKey;
     29 
     30 pub use agreement::{
     31     AgreedFixedPrice, AgreementLine, AgreementPrice, FulfillmentGroup, FuturePromise,
     32     SupplyCommitment, Terms, TermsError,
     33 };
     34 pub use amount::{AmountError, Decimal, PositiveDecimal};
     35 pub use commerce::causal;
     36 pub use commerce::{
     37     AgreementCommitment, CancellationProposal, CommerceContent, CommerceError, CommerceHeader,
     38     CommercePayload, CommerceType, FinalMeasurement, HandoverClaim, IssueCode, IssueReport,
     39     LineQuantity, ProposalAuthorization, ReadinessClaim, ReceiptObservation, RecordReason,
     40     ResidualRelease, Resolution, ResolutionCommitment, ResolutionProposal, TermsAuthorization,
     41     TermsProposal, TermsQuote, TermsRequest, WithdrawalAcknowledgement,
     42 };
     43 pub use context::{
     44     ActorRef, ActorRole, Approval, AuthorityRef, CheckpointRef, CommandContextData, ContextError,
     45     CorrelationId, Coverage, ExpectedOrder, Generation, Sequence, UnixSeconds,
     46 };
     47 pub use currency::{
     48     CURRENCY_REGISTRY_ID, CURRENCY_REGISTRY_SHA256, Currency, CurrencyError,
     49     SUPPORTED_CURRENCY_COUNT,
     50 };
     51 pub use fulfillment::{FulfillmentError, PrivateFulfillment};
     52 pub use identifier::{
     53     AgreementLineId, ApprovalIntentDigest, CheckpointDigest, CommandDigest, EnvelopeEventId,
     54     ExecutorId, FulfillmentGroupId, GrantId, IdentifierError, ListingOptionId, MessageId,
     55     OperationId, OrderId, PoolId, RecordId, RouteDigest, RumorEventId, SigningAttemptId, SourceId,
     56     TermsDigest, ThreadId, TransactionId, WorkspaceId,
     57 };
     58 pub use issuance::{FIRST_ISSUANCE_MAX_SECONDS, IssuanceWindow};
     59 pub use message::{CHAT_MAX_BYTES, ChatMessage, ChatRelation, MessageError};
     60 pub use money::{MinorAmount, Money, MoneyError};
     61 pub use pricing::{
     62     DiscountBps, FixedPrice, LinePrice, MAX_PRICED_LINES, PRICING_PROFILE, PriceTier, PricingError,
     63     checked_order_total,
     64 };
     65 pub use quantity::{ContentMeasure, Quantity, QuantityError};
     66 pub use time::{TIME_ZONE_DATABASE_VERSION, TimeError, TimeZoneId, Window};
     67 pub use variable_price::VariableWeight;