Skip to content

Commit

Permalink
stub service
Browse files Browse the repository at this point in the history
  • Loading branch information
TalDerei committed Jan 28, 2025
1 parent 2feaaf0 commit 29b2d63
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions crates/view/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,8 @@ impl ViewService for ViewServer {
>;
type AuctionsStream =
Pin<Box<dyn futures::Stream<Item = Result<pb::AuctionsResponse, tonic::Status>> + Send>>;
type LatestSwapsStream =
Pin<Box<dyn futures::Stream<Item = Result<pb::LatestSwapsResponse, tonic::Status>> + Send>>;

#[instrument(skip_all, level = "trace")]
async fn auctions(
Expand Down Expand Up @@ -1860,6 +1862,14 @@ impl ViewService for ViewServer {
) -> Result<tonic::Response<Self::UnbondingTokensByAddressIndexStream>, tonic::Status> {
unimplemented!("unbonding_tokens_by_address_index currently only implemented on web")
}

#[instrument(skip_all, level = "trace")]
async fn latest_swaps(
&self,
_request: tonic::Request<pb::LatestSwapsRequest>,
) -> Result<tonic::Response<Self::LatestSwapsStream>, tonic::Status> {
unimplemented!("latest_swaps currently only implemented on web")
}
}

/// Convert a pd node URL to a Tonic `Endpoint`.
Expand Down

0 comments on commit 29b2d63

Please sign in to comment.