1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2026 Regit
//! Explicit, validated transport limits and optional HTTP(S) configuration.
//!
//! Endpoint URLs and headers are excluded from diagnostics. RPC configuration
//! and credentials are supplied by the caller. Native HTTPS uses verified
//! standard platform trust, including certificate-store discovery. On
//! `wasm32-unknown-unknown`, the JavaScript host owns TLS and CORS policy; outgoing
//! backends require Fetch, streams, abort signals, performance clocks and timers.
//! Redirects and ambient cookies are disabled; explicit headers and endpoint
//! credentials remain caller-owned. A browser backend rejects URL user information
//! and browser-controlled headers instead of silently dropping them.
//!
//! ```
//! # #[cfg(feature = "http")]
//! # fn main() -> Result<(), regit_web3::error::Error> {
//! use std::time::Duration;
//! use regit_web3::config::{HttpConfig, RpcEndpoint, RpcLimits};
//!
//! let endpoint = RpcEndpoint::new("https://api.example.invalid/v1")?;
//! let limits = RpcLimits::new(
//! Duration::from_secs(3), Duration::from_secs(10), 1024 * 1024, 1,
//! )?;
//! let config = HttpConfig::new(endpoint, limits, "example-provider")?;
//! assert_eq!(config.provider_id(), "example-provider");
//! # Ok(())
//! # }
//! # #[cfg(not(feature = "http"))]
//! # fn main() {}
//! ```
//!
//! ```
//! # #[cfg(feature = "evm-http")]
//! # fn main() -> Result<(), regit_web3::error::Error> {
//! use std::time::Duration;
//! use regit_web3::{
//! config::{EvmConfig, RpcEndpoint, RpcLimits},
//! domain::{BlockSelector, ChainId, NetworkId},
//! };
//!
//! let network = NetworkId::new(ChainId::from(1), "ethereum")?;
//! let endpoint = RpcEndpoint::new("https://rpc.example.invalid")?;
//! let limits = RpcLimits::new(
//! Duration::from_secs(3), Duration::from_secs(10), 1024 * 1024, 1,
//! )?;
//! let config = EvmConfig::new(
//! network, endpoint, 18, Some("ETH".to_owned()),
//! BlockSelector::Latest, limits, "example-provider",
//! )?;
//! assert_eq!(config.native_asset().decimals(), 18);
//! # Ok(())
//! # }
//! # #[cfg(not(feature = "evm-http"))]
//! # fn main() {}
//! ```
pub use EvmConfig;
pub use ;
pub use RpcLimits;