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§

source

fn query_latest_height(&self) -> Result<Height, ContextError>

Returns the latest height of the chain.

source

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.

source

fn signer(&self) -> Signer

Temporary solution. Similar to CosmosSDKChain::key_and_signer() but simpler.

Implementors§