diff --git a/core/node/eth_watch/src/client.rs b/core/node/eth_watch/src/client.rs
index 8d465109994..67e603041e6 100644
--- a/core/node/eth_watch/src/client.rs
+++ b/core/node/eth_watch/src/client.rs
@@ -88,75 +88,34 @@ impl EthHttpQueryClient {
}
}
- async fn get_filter_logs(
+ fn get_default_address_list(&self) -> Vec
{
+ [
+ Some(self.diamond_proxy_addr),
+ Some(self.governance_address),
+ self.state_transition_manager_address,
+ self.chain_admin_address,
+ ]
+ .into_iter()
+ .flatten()
+ .collect()
+ }
+
+ async fn get_events_inner(
&self,
from: BlockNumber,
to: BlockNumber,
- topics: Vec,
+ topics1: Vec,
+ topics2: Vec,
+ addresses: Vec,
+ retries_left: usize,
) -> EnrichedClientResult> {
let filter = FilterBuilder::default()
- .address(
- [
- Some(self.diamond_proxy_addr),
- Some(self.governance_address),
- self.state_transition_manager_address,
- self.chain_admin_address,
- ]
- .into_iter()
- .flatten()
- .collect(),
- )
.from_block(from)
.to_block(to)
- .topics(Some(topics), None, None, None)
+ .topics(Some(topics1), Some(topics2), None, None)
+ .address(addresses)
.build();
- self.client.logs(&filter).await
- }
-}
-
-#[async_trait::async_trait]
-impl EthClient for EthHttpQueryClient {
- async fn scheduler_vk_hash(
- &self,
- verifier_address: Address,
- ) -> Result {
- // New verifier returns the hash of the verification key.
- CallFunctionArgs::new("verificationKeyHash", ())
- .for_contract(verifier_address, &self.verifier_contract_abi)
- .call(&self.client)
- .await
- }
-
- async fn diamond_cut_by_version(
- &self,
- packed_version: H256,
- ) -> EnrichedClientResult