diff --git a/Cargo.lock b/Cargo.lock index 7f1e79d1ac..21c3ef2eb6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5393,6 +5393,7 @@ dependencies = [ "decaf377-fmd", "decaf377-ka", "decaf377-rdsa", + "futures", "hex", "ibc-types", "im", diff --git a/crates/core/component/shielded-pool/Cargo.toml b/crates/core/component/shielded-pool/Cargo.toml index c399dd96af..bf573f4fb9 100644 --- a/crates/core/component/shielded-pool/Cargo.toml +++ b/crates/core/component/shielded-pool/Cargo.toml @@ -46,6 +46,7 @@ decaf377 = {workspace = true, features = ["r1cs"], default-features = true} decaf377-fmd = {workspace = true} decaf377-ka = {workspace = true} decaf377-rdsa = {workspace = true} +futures = {workspace = true} hex = {workspace = true} ibc-types = {workspace = true, default-features = false} im = {workspace = true} diff --git a/crates/core/component/shielded-pool/src/component/rpc.rs b/crates/core/component/shielded-pool/src/component/rpc.rs index bc27938767..ef77083ca1 100644 --- a/crates/core/component/shielded-pool/src/component/rpc.rs +++ b/crates/core/component/shielded-pool/src/component/rpc.rs @@ -1,7 +1,10 @@ +use std::pin::Pin; + use cnidarium::Storage; use penumbra_asset::asset; use penumbra_proto::core::component::shielded_pool::v1::{ query_service_server::QueryService, AssetMetadataByIdRequest, AssetMetadataByIdResponse, + AssetMetadataByIdsRequest, AssetMetadataByIdsResponse, }; use tonic::Status; @@ -22,6 +25,10 @@ impl Server { #[tonic::async_trait] impl QueryService for Server { + type AssetMetadataByIdsStream = Pin< + Box> + Send>, + >; + #[instrument(skip(self, request))] async fn asset_metadata_by_id( &self, @@ -53,4 +60,11 @@ impl QueryService for Server { Ok(tonic::Response::new(rsp)) } + + async fn asset_metadata_by_ids( + &self, + _request: tonic::Request, + ) -> Result, tonic::Status> { + unimplemented!("asset_metadata_by_ids not yet implemented") + } }