Trait ibc::ics18_relayer::context::Ics18Context[][src]

pub trait Ics18Context {
    fn query_latest_height(&self) -> Height;
fn query_client_full_state(
        &self,
        client_id: &ClientId
    ) -> Option<AnyClientState>;
fn query_latest_header(&self) -> Option<AnyHeader>;
fn send(&mut self, msgs: Vec<Any>) -> Result<Vec<IbcEvent>, Error>;
fn signer(&self) -> Signer; }

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

fn query_latest_height(&self) -> Height[src]

Returns the latest height of the chain.

fn query_client_full_state(
    &self,
    client_id: &ClientId
) -> Option<AnyClientState>
[src]

Returns this client state for the given client_id on this chain. Wrapper over the /abci_query?path=.. endpoint.

fn query_latest_header(&self) -> Option<AnyHeader>[src]

Returns the most advanced header of this chain.

fn send(&mut self, msgs: Vec<Any>) -> Result<Vec<IbcEvent>, Error>[src]

Interface that the relayer uses to submit a datagram to this chain. One can think of this as wrapping around the /broadcast_tx_commit ABCI endpoint.

fn signer(&self) -> Signer[src]

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

Loading content...

Implementors

Loading content...