penumbra_sdk_ibc/component/host_interface.rs
1use async_trait::async_trait;
2use cnidarium::StateRead;
3
4#[async_trait]
5pub trait HostInterface {
6 async fn get_chain_id<S: StateRead>(state: S) -> anyhow::Result<String>;
7 async fn get_revision_number<S: StateRead>(state: S) -> anyhow::Result<u64>;
8 async fn get_block_height<S: StateRead>(state: S) -> anyhow::Result<u64>;
9 async fn get_block_timestamp<S: StateRead>(state: S) -> anyhow::Result<tendermint::Time>;
10}