Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crates/apollo_class_manager_types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ workspace = true
apollo_compile_to_casm_types.workspace = true
apollo_infra.workspace = true
apollo_proc_macros.workspace = true
apollo_storage.workspace = true
async-trait.workspace = true
mockall = { workspace = true, optional = true }
serde = { workspace = true, features = ["derive"] }
Expand Down
19 changes: 19 additions & 0 deletions crates/apollo_class_manager_types/src/class_manager_types.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
use apollo_storage::storage_reader_server::StorageReaderServerHandler;
use apollo_storage::{StorageError, StorageReader};
use async_trait::async_trait;
use serde::{Deserialize, Serialize};
use starknet_api::block::{BlockHeader, BlockNumber};

Expand All @@ -16,3 +19,19 @@ pub enum ClassManagerStorageResponse {
/// Table1 data for the requested operation.
Table1Replacer(BlockHeader),
}

pub struct ClassManagerStorageReaderServerHandler;

#[async_trait]
impl StorageReaderServerHandler<ClassManagerStorageRequest, ClassManagerStorageResponse>
for ClassManagerStorageReaderServerHandler
{
async fn handle_request(
_storage_reader: &StorageReader,
_request: ClassManagerStorageRequest,
) -> Result<ClassManagerStorageResponse, StorageError> {
// TODO(Dean/Nadin): Implement the logic for the class manager storage reader server
// handler.
unimplemented!()
}
}
Loading