circles_rpc/lib.rs
1//! Circles RPC client: async HTTP/WS JSON-RPC wrapper mirroring the TS SDK.
2//!
3//! - HTTP via `alloy-provider`; WebSocket subscriptions behind the `ws` feature.
4//! - Method namespaces under [`methods`] map directly to Circles RPC methods
5//! (balance, token, trust, avatar, query, events, invitation, pathfinder, group, tables, health, network, search).
6//! - `paged_query`/`paged_stream` helpers for `circles_query` with cursor handling.
7//! - WS parsing tolerates heartbeats (`[]`) and batched frames; unknown event types surface as `CrcUnknownEvent`.
8
9pub mod client;
10pub mod error;
11pub mod events;
12pub mod methods;
13pub mod paged_query;
14pub mod rpc;
15pub mod utils;
16
17pub use client::RpcClient;
18pub use error::{CirclesRpcError, Result};
19pub use events::EventStream;
20pub use methods::{
21 AvatarMethods, BalanceMethods, EventsMethods, GroupMethods, HealthMethods, InvitationMethods,
22 NetworkMethods, PathfinderMethods, QueryMethods, SearchMethods, TablesMethods,
23 TokenInfoMethods, TokenMethods, TransactionMethods, TrustMethods,
24};
25pub use paged_query::{Page, PagedQuery};
26pub use rpc::CirclesRpc;