paralock 0.1.1

Rust SDK of Paralock: embed a market maker or a taker for trustless ZEC to stablecoin swaps (htlc and private adaptor mode) in a Rust server. Zcash JSON-RPC and lightwalletd backends, durable swap stores, the maker HTTP API (server and client) and a price feed, wire-compatible with @paralock/sdk.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! The maker HTTP API: the axum server (feature `server`) and the reqwest client (feature `client`).

#[cfg(feature = "client")]
mod client;
#[cfg(feature = "server")]
mod server;

#[cfg(feature = "client")]
pub use client::{
    HttpMakerApi, HttpMakerApiOptions, MakerHealth, parse_accepted_response, parse_health, parse_quote_response,
    parse_swap_response,
};
#[cfg(feature = "server")]
pub use server::{
    ClientAddress, CorsOrigins, DEFAULT_RATE_LIMIT, RateLimit, ServerOptions, maker_router, serve, serve_with_shutdown,
};