pub async fn try_replica_indexer(&self, setup: &ChainSetup) -> Result<CommonIndexers, Report> {
        let signer = self.get_signer(&setup.name).await;

        match &setup.chain {
            ChainConf::Ethereum(conn) => Ok(CommonIndexers::Ethereum(
                make_replica_indexer(
                    conn.clone(),
                    &ContractLocator {
                        name: setup.name.clone(),
                        domain: setup.domain.parse().expect("invalid uint"),
                        address: setup.address.parse::<ethers::types::Address>()?.into(),
                    },
                    signer,
                    self.index.from(),
                    self.index.chunk_size(),
                )
                .await?,
            )),
        }
    }
/// Try to get an indexer object for a replica
Try to get an indexer object for a replica
Try to get an indexer object for a replica
pub async fn try_replica_indexer(&self, setup: &ChainSetup) -> Result<CommonIndexers, Report> {
        let signer = self.get_signer(&setup.name).await;
        match &setup.chain {
            ChainConf::Ethereum(conn) => Ok(CommonIndexers::Ethereum(
                make_replica_indexer(
                    conn.clone(),
                    &ContractLocator {
                        name: setup.name.clone(),
                        domain: setup.domain.parse().expect("invalid uint"),
                        address: setup.address.parse::<ethers::types::Address>()?.into(),
                    },
                    signer,
                    self.index.from(),
                    self.index.chunk_size(),
                )
                .await?,
            )),
        }
    }
pub async fn try_replica_indexer ( & self , setup : & ChainSetup ) -> Result < CommonIndexers , Report > { let signer = self . get_signer ( & setup . name ) . await ; match & setup . chain { ChainConf :: Ethereum ( conn ) => Ok ( CommonIndexers :: Ethereum ( make_replica_indexer ( conn . clone ( ) , & ContractLocator { name : setup . name . clone ( ) , domain : setup . domain . parse ( ) . expect ( " " ) , address : setup . address . parse :: < ethers :: types :: Address > ( ) ? . into ( ) , } , signer , self . index . from ( ) , self . index . chunk_size ( ) , ) . await ? , ) ) , } }
Try to get an indexer object for a replica
Try to get an indexer object for a replica
&self
setup
&ChainSetup
&self
setup
&ChainSetup