zescrow_core/
lib.rs

1#![forbid(unsafe_code)]
2#![warn(missing_docs)]
3#![deny(rustdoc::invalid_html_tags, rustdoc::broken_intra_doc_links)]
4#![doc = include_str!("../README.md")]
5
6pub mod asset;
7pub mod bignum;
8pub mod condition;
9pub mod error;
10pub mod escrow;
11pub mod identity;
12#[cfg(feature = "json")]
13pub mod interface;
14#[cfg(not(feature = "json"))]
15pub mod interface;
16#[cfg(feature = "json")]
17pub mod serde;
18
19pub use asset::{Asset, AssetKind};
20pub use bignum::BigNumber;
21pub use condition::Condition;
22pub use error::EscrowError;
23pub use escrow::Escrow;
24pub use identity::{Party, ID};
25pub use interface::{Chain, ChainConfig, EscrowMetadata, EscrowParams, ExecutionState};
26
27/// `Result` type for all core operations.
28pub type Result<T> = std::result::Result<T, EscrowError>;