@@ -19,7 +19,7 @@ use super::{
1919 Block , BlockPtr , BlockTime , Blockchain , SubgraphFilter , Trigger , TriggerFilterWrapper ,
2020} ;
2121use crate :: anyhow:: Result ;
22- use crate :: components:: store:: { BlockNumber , DeploymentLocator , ReadStore } ;
22+ use crate :: components:: store:: { BlockNumber , DeploymentLocator , SourceableStore } ;
2323use crate :: data:: subgraph:: UnifiedMappingApiVersion ;
2424use crate :: firehose:: { self , FirehoseEndpoint } ;
2525use crate :: futures03:: stream:: StreamExt as _;
@@ -149,7 +149,7 @@ pub trait BlockStreamBuilder<C: Blockchain>: Send + Sync {
149149 chain : & C ,
150150 deployment : DeploymentLocator ,
151151 start_blocks : Vec < BlockNumber > ,
152- source_subgraph_stores : Vec < ( DeploymentHash , Arc < dyn ReadStore > ) > ,
152+ source_subgraph_stores : Vec < ( DeploymentHash , Arc < dyn SourceableStore > ) > ,
153153 subgraph_current_block : Option < BlockPtr > ,
154154 filter : Arc < TriggerFilterWrapper < C > > ,
155155 unified_api_version : UnifiedMappingApiVersion ,
@@ -160,7 +160,7 @@ pub trait BlockStreamBuilder<C: Blockchain>: Send + Sync {
160160 chain : & C ,
161161 deployment : DeploymentLocator ,
162162 start_blocks : Vec < BlockNumber > ,
163- source_subgraph_stores : Vec < ( DeploymentHash , Arc < dyn ReadStore > ) > ,
163+ source_subgraph_stores : Vec < ( DeploymentHash , Arc < dyn SourceableStore > ) > ,
164164 subgraph_current_block : Option < BlockPtr > ,
165165 filter : Arc < TriggerFilterWrapper < C > > ,
166166 unified_api_version : UnifiedMappingApiVersion ,
@@ -320,13 +320,13 @@ impl<C: Blockchain> BlockWithTriggers<C> {
320320/// logic for each chain, increasing code repetition.
321321pub struct TriggersAdapterWrapper < C : Blockchain > {
322322 pub adapter : Arc < dyn TriggersAdapter < C > > ,
323- pub source_subgraph_stores : Vec < ( DeploymentHash , Arc < dyn ReadStore > ) > ,
323+ pub source_subgraph_stores : Vec < ( DeploymentHash , Arc < dyn SourceableStore > ) > ,
324324}
325325
326326impl < C : Blockchain > TriggersAdapterWrapper < C > {
327327 pub fn new (
328328 adapter : Arc < dyn TriggersAdapter < C > > ,
329- source_subgraph_stores : Vec < ( DeploymentHash , Arc < dyn ReadStore > ) > ,
329+ source_subgraph_stores : Vec < ( DeploymentHash , Arc < dyn SourceableStore > ) > ,
330330 ) -> Self {
331331 Self {
332332 adapter,
0 commit comments