Trait ibc::ics04_channel::context::ChannelReader[][src]

pub trait ChannelReader {
    fn channel_end(
        &self,
        port_channel_id: &(PortId, ChannelId)
    ) -> Option<ChannelEnd>;
fn connection_end(
        &self,
        connection_id: &ConnectionId
    ) -> Option<ConnectionEnd>;
fn connection_channels(
        &self,
        cid: &ConnectionId
    ) -> Option<Vec<(PortId, ChannelId)>>;
fn client_state(&self, client_id: &ClientId) -> Option<AnyClientState>;
fn client_consensus_state(
        &self,
        client_id: &ClientId,
        height: Height
    ) -> Option<AnyConsensusState>;
fn authenticated_capability(
        &self,
        port_id: &PortId
    ) -> Result<Capability, Error>;
fn get_next_sequence_send(
        &self,
        port_channel_id: &(PortId, ChannelId)
    ) -> Option<Sequence>;
fn get_next_sequence_recv(
        &self,
        port_channel_id: &(PortId, ChannelId)
    ) -> Option<Sequence>;
fn get_next_sequence_ack(
        &self,
        port_channel_id: &(PortId, ChannelId)
    ) -> Option<Sequence>;
fn get_packet_commitment(
        &self,
        key: &(PortId, ChannelId, Sequence)
    ) -> Option<String>;
fn get_packet_receipt(
        &self,
        key: &(PortId, ChannelId, Sequence)
    ) -> Option<Receipt>;
fn get_packet_acknowledgement(
        &self,
        key: &(PortId, ChannelId, Sequence)
    ) -> Option<String>;
fn hash(&self, value: String) -> String;
fn host_height(&self) -> Height;
fn host_timestamp(&self) -> u64;
fn channel_counter(&self) -> u64; }

A context supplying all the necessary read-only dependencies for processing any ChannelMsg.

Required methods

fn channel_end(
    &self,
    port_channel_id: &(PortId, ChannelId)
) -> Option<ChannelEnd>
[src]

Returns the ChannelEnd for the given port_id and chan_id.

fn connection_end(&self, connection_id: &ConnectionId) -> Option<ConnectionEnd>[src]

Returns the ConnectionState for the given identifier connection_id.

fn connection_channels(
    &self,
    cid: &ConnectionId
) -> Option<Vec<(PortId, ChannelId)>>
[src]

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

Returns the ClientState for the given identifier client_id. Necessary dependency towards proof verification.

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

fn authenticated_capability(
    &self,
    port_id: &PortId
) -> Result<Capability, Error>
[src]

fn get_next_sequence_send(
    &self,
    port_channel_id: &(PortId, ChannelId)
) -> Option<Sequence>
[src]

fn get_next_sequence_recv(
    &self,
    port_channel_id: &(PortId, ChannelId)
) -> Option<Sequence>
[src]

fn get_next_sequence_ack(
    &self,
    port_channel_id: &(PortId, ChannelId)
) -> Option<Sequence>
[src]

fn get_packet_commitment(
    &self,
    key: &(PortId, ChannelId, Sequence)
) -> Option<String>
[src]

fn get_packet_receipt(
    &self,
    key: &(PortId, ChannelId, Sequence)
) -> Option<Receipt>
[src]

fn get_packet_acknowledgement(
    &self,
    key: &(PortId, ChannelId, Sequence)
) -> Option<String>
[src]

fn hash(&self, value: String) -> String[src]

A hashing function for packet commitments

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

Returns the current height of the local chain.

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

Returns the current timestamp of the local chain.

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

Returns a counter on the number of channel ids have been created thus far. The value of this counter should increase only via method ChannelKeeper::increase_channel_counter.

Loading content...

Implementors

Loading content...