File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
crates/apollo_state_sync_types/src Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 1+ use apollo_storage:: header:: HeaderStorageReader ;
2+ use apollo_storage:: storage_reader_server:: StorageReaderServerHandler ;
3+ use apollo_storage:: { StorageError , StorageReader } ;
4+ use async_trait:: async_trait;
15use serde:: { Deserialize , Serialize } ;
26use starknet_api:: block:: { BlockHeader , BlockHeaderWithoutHash , BlockNumber } ;
37use starknet_api:: state:: ThinStateDiff ;
@@ -46,3 +50,18 @@ pub enum StateSyncStorageResponse {
4650 /// Table1 data for the requested operation.
4751 Table1Replacer ( BlockHeader ) ,
4852}
53+
54+ pub struct StateSyncStorageReaderServerHandler ;
55+
56+ #[ async_trait]
57+ impl StorageReaderServerHandler < StateSyncStorageRequest , StateSyncStorageResponse >
58+ for StateSyncStorageReaderServerHandler
59+ {
60+ async fn handle_request (
61+ storage_reader : & StorageReader ,
62+ request : StateSyncStorageRequest ,
63+ ) -> Result < StateSyncStorageResponse , StorageError > {
64+ // TODO(Dean/Nadin): Implement the logic for the state sync storage reader server handler.
65+ unimplemented ! ( )
66+ }
67+ }
You can’t perform that action at this time.
0 commit comments