pub struct DefaultClientFactory {
pub chains_config: ChainsConfig,
pub http: Arc<dyn HttpClient>,
}Expand description
Default factory that creates real chain clients from configuration.
Holds a shared HttpClient transport so all chain clients route
through the same backend (native reqwest or Ghola sidecar).
Fields§
§chains_config: ChainsConfigChain configuration containing API keys and endpoints.
http: Arc<dyn HttpClient>Shared HTTP transport injected into every client.
Trait Implementations§
Source§impl ChainClientFactory for DefaultClientFactory
impl ChainClientFactory for DefaultClientFactory
Source§fn create_chain_client(&self, chain: &str) -> Result<Box<dyn ChainClient>>
fn create_chain_client(&self, chain: &str) -> Result<Box<dyn ChainClient>>
Creates a chain client for the given blockchain network. Read more
Source§fn create_dex_client(&self) -> Box<dyn DexDataSource>
fn create_dex_client(&self) -> Box<dyn DexDataSource>
Creates a DEX data source client.
Auto Trait Implementations§
impl !RefUnwindSafe for DefaultClientFactory
impl !UnwindSafe for DefaultClientFactory
impl Forget for DefaultClientFactory
impl Freeze for DefaultClientFactory
impl Send for DefaultClientFactory
impl Sync for DefaultClientFactory
impl Unpin for DefaultClientFactory
impl UnsafeUnpin for DefaultClientFactory
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more