1pub mod constants;
2pub mod core;
3pub mod pubsub;
4pub mod rpc;
5pub mod traits;
6pub mod transaction;
7pub mod tx_builder;
8pub mod types;
9pub mod unlock;
10pub mod util;
11
12#[cfg(feature = "test")]
13pub mod test_util;
14
15#[cfg(feature = "test")]
16#[cfg(test)]
17mod tests;
18
19pub use rpc::{CkbRpcAsyncClient, IndexerRpcAsyncClient, RpcError};
20#[cfg(not(target_arch = "wasm32"))]
21pub use rpc::{CkbRpcClient, IndexerRpcClient};
22pub use types::{
23 Address, AddressPayload, AddressType, CodeHashIndex, HumanCapacity, NetworkInfo, NetworkType,
24 OldAddress, OldAddressFormat, ScriptGroup, ScriptGroupType, ScriptId, Since, SinceType,
25 TransactionWithScriptGroups,
26};
27
28pub use ckb_crypto::secp::SECP256K1;
29
30#[cfg(target_arch = "wasm32")]
31mod target_specific {
32 pub trait MaybeSend {}
33 impl<T> MaybeSend for T {}
34}
35#[cfg(not(target_arch = "wasm32"))]
36mod target_specific {
37 pub trait MaybeSend: Send {}
38 impl<T> MaybeSend for T where T: Send {}
39}
40pub use target_specific::MaybeSend;