@@ -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 , WritableStore } ;
22+ use crate :: components:: store:: { BlockNumber , DeploymentLocator , ReadStore } ;
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 WritableStore > ) > ,
152+ source_subgraph_stores : Vec < ( DeploymentHash , Arc < dyn ReadStore > ) > ,
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 WritableStore > ) > ,
163+ source_subgraph_stores : Vec < ( DeploymentHash , Arc < dyn ReadStore > ) > ,
164164 subgraph_current_block : Option < BlockPtr > ,
165165 filter : Arc < TriggerFilterWrapper < C > > ,
166166 unified_api_version : UnifiedMappingApiVersion ,
@@ -317,13 +317,13 @@ impl<C: Blockchain> BlockWithTriggers<C> {
317317
318318pub struct TriggersAdapterWrapper < C : Blockchain > {
319319 pub adapter : Arc < dyn TriggersAdapter < C > > ,
320- pub source_subgraph_stores : Vec < ( DeploymentHash , Arc < dyn WritableStore > ) > ,
320+ pub source_subgraph_stores : Vec < ( DeploymentHash , Arc < dyn ReadStore > ) > ,
321321}
322322
323323impl < C : Blockchain > TriggersAdapterWrapper < C > {
324324 pub fn new (
325325 adapter : Arc < dyn TriggersAdapter < C > > ,
326- source_subgraph_stores : Vec < ( DeploymentHash , Arc < dyn WritableStore > ) > ,
326+ source_subgraph_stores : Vec < ( DeploymentHash , Arc < dyn ReadStore > ) > ,
327327 ) -> Self {
328328 Self {
329329 adapter,
0 commit comments