nym_wasm_client_core/
lib.rs

1// Copyright 2023 - Nym Technologies SA <contact@nymtech.net>
2// SPDX-License-Identifier: Apache-2.0
3
4#[cfg(target_arch = "wasm32")]
5pub mod config;
6#[cfg(target_arch = "wasm32")]
7pub mod error;
8#[cfg(target_arch = "wasm32")]
9pub mod helpers;
10#[cfg(target_arch = "wasm32")]
11pub mod storage;
12#[cfg(target_arch = "wasm32")]
13pub mod topology;
14
15// re-export types for ease of use
16pub use nym_bandwidth_controller::BandwidthController;
17pub use nym_client_core::*;
18pub use nym_client_core::{
19    client::key_manager::ClientKeys, error::ClientCoreError, init::types::InitialisationResult,
20};
21pub use nym_gateway_client::{
22    error::GatewayClientError, GatewayClient, GatewayClientConfig, GatewayConfig,
23};
24pub use nym_http_api_client::Client as ApiClient;
25pub use nym_sphinx::{
26    addressing::{clients::Recipient, nodes::NodeIdentity},
27    params::PacketType,
28    receiver::ReconstructedMessage,
29};
30pub use nym_statistics_common::clients::ClientStatsSender;
31pub use nym_task;
32pub use nym_topology::{HardcodedTopologyProvider, MixLayer, NymTopology, TopologyProvider};
33pub use nym_validator_client::{DirectSigningReqwestRpcNyxdClient, QueryReqwestRpcNyxdClient};
34// TODO: that's a very nasty import path. it should come from contracts instead!
35pub use nym_validator_client::client::IdentityKey;
36
37#[cfg(target_arch = "wasm32")]
38pub use nym_wasm_utils::set_panic_hook;