Trait ibc::ics02_client::context::ClientReader[][src]

pub trait ClientReader {
    fn client_type(&self, client_id: &ClientId) -> Option<ClientType>;
fn client_state(&self, client_id: &ClientId) -> Option<AnyClientState>;
fn consensus_state(
        &self,
        client_id: &ClientId,
        height: Height
    ) -> Option<AnyConsensusState>;
fn client_counter(&self) -> u64; }

Defines the read-only part of ICS2 (client functions) context.

Required methods

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

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

fn consensus_state(
    &self,
    client_id: &ClientId,
    height: Height
) -> Option<AnyConsensusState>
[src]

fn client_counter(&self) -> u64[src]

Returns a natural number, counting how many clients have been created thus far. The value of this counter should increase only via method ClientKeeper::increase_client_counter.

Loading content...

Implementors

Loading content...