rust_eigenda_client/
lib.rs

1pub(crate) mod blob_info;
2pub mod client;
3pub(crate) mod client_tests;
4pub mod config;
5pub mod errors;
6pub(crate) mod eth_client;
7pub(crate) mod sdk;
8pub(crate) mod verifier;
9pub(crate) mod verifier_tests;
10
11pub use self::client::EigenClient;
12// So users can use the client without having to depend on the signers crate as well.
13pub use rust_eigenda_signers;
14
15#[allow(clippy::all)]
16pub(crate) mod generated {
17    pub(crate) mod disperser {
18        include!("generated/disperser.rs");
19    }
20    pub(crate) mod common {
21        include!("generated/common.rs");
22    }
23}
24
25#[cfg(test)]
26pub fn test_eigenda_config() -> crate::config::EigenConfig {
27    use std::str::FromStr;
28
29    crate::config::EigenConfig {
30                disperser_rpc: "https://disperser-holesky.eigenda.xyz:443".to_string(),
31                settlement_layer_confirmation_depth: 0,
32                eth_rpc_url: crate::config::SecretUrl::new(url::Url::from_str("https://ethereum-holesky-rpc.publicnode.com").unwrap()), // Safe to unwrap, never fails
33                eigenda_svc_manager_address: ethereum_types::H160(hex_literal::hex!(
34                    "d4a7e1bd8015057293f0d0a557088c286942e84b"
35                )),
36                wait_for_finalization: false,
37                authenticated: false,
38                srs_points_source: crate::config::SrsPointsSource::Url((
39                    "https://github.com/Layr-Labs/eigenda-proxy/raw/2fd70b99ef5bf137d7bbca3461cf9e1f2c899451/resources/g1.point".to_string(),
40                    "https://github.com/Layr-Labs/eigenda-proxy/raw/2fd70b99ef5bf137d7bbca3461cf9e1f2c899451/resources/g2.point.powerOf2".to_string(),
41                )),
42                custom_quorum_numbers: vec![],
43        }
44}