use pyo3::prelude::*;
use crate::factories::{BlockchainDataClientFactory, BlockchainExecutionClientFactory};
#[pymethods]
#[pyo3_stub_gen::derive::gen_stub_pymethods]
impl BlockchainDataClientFactory {
#[new]
const fn py_new() -> Self {
Self::new()
}
const fn name(&self) -> &'static str {
"BLOCKCHAIN"
}
const fn config_type(&self) -> &'static str {
"BlockchainDataClientConfig"
}
fn __repr__(&self) -> String {
format!("BlockchainDataClientFactory(name={})", self.name())
}
}
#[pymethods]
impl BlockchainExecutionClientFactory {
#[new]
const fn py_new() -> Self {
Self::new()
}
}