Trait ibc_testkit::relayer::context::RelayerContext
source · pub trait RelayerContext {
// Required methods
fn query_latest_height(&self) -> Result<Height, ContextError>;
fn query_client_full_state(
&self,
client_id: &ClientId
) -> Option<AnyClientState>;
fn signer(&self) -> Signer;
}Expand description
Trait capturing all dependencies (i.e., the context) which algorithms in ICS18 require to
relay packets between chains. This trait comprises the dependencies towards a single chain.
Most of the functions in this represent wrappers over the ABCI interface.
This trait mimics the Chain trait, but at a lower level of abstraction (no networking, header
types, light client, RPC client, etc.)
Required Methods§
sourcefn query_latest_height(&self) -> Result<Height, ContextError>
fn query_latest_height(&self) -> Result<Height, ContextError>
Returns the latest height of the chain.
sourcefn query_client_full_state(
&self,
client_id: &ClientId
) -> Option<AnyClientState>
fn query_client_full_state( &self, client_id: &ClientId ) -> Option<AnyClientState>
Returns this client state for the given client_id on this chain.
Wrapper over the /abci_query?path=.. endpoint.