penumbra_ibc/component/
rpc.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
use cnidarium::Storage;
use tonic::transport::server::Routes;

use super::HostInterface;

mod client_query;
mod connection_query;
mod consensus_query;

use std::marker::PhantomData;

// TODO: hide and replace with a routes() constructor that
// bundles up all the internal services
#[derive(Clone)]
pub struct IbcQuery<HI: HostInterface> {
    storage: cnidarium::Storage,
    _marker: PhantomData<HI>,
}

impl<HI: HostInterface> IbcQuery<HI> {
    pub fn new(storage: cnidarium::Storage) -> Self {
        Self {
            storage,
            _marker: PhantomData,
        }
    }
}

pub fn routes(_storage: Storage) -> Routes {
    unimplemented!("functionality we need is only in tonic 0.10")
}