Trait ibc::ics03_connection::context::ConnectionReader [−][src]
A context supplying all the necessary read-only dependencies for processing any ConnectionMsg
.
Required methods
fn connection_end(&self, conn_id: &ConnectionId) -> Option<ConnectionEnd>
[src]
Returns the ConnectionEnd for the given identifier conn_id
.
fn client_state(&self, client_id: &ClientId) -> Option<AnyClientState>
[src]
Returns the ClientState for the given identifier client_id
.
fn host_current_height(&self) -> Height
[src]
Returns the current height of the local chain.
fn host_oldest_height(&self) -> Height
[src]
Returns the oldest height available on the local chain.
fn commitment_prefix(&self) -> CommitmentPrefix
[src]
Returns the prefix that the local chain uses in the KV store.
fn client_consensus_state(
&self,
client_id: &ClientId,
height: Height
) -> Option<AnyConsensusState>
[src]
&self,
client_id: &ClientId,
height: Height
) -> Option<AnyConsensusState>
Returns the ConsensusState that the given client stores at a specific height.
fn host_consensus_state(&self, height: Height) -> Option<AnyConsensusState>
[src]
Returns the ConsensusState of the host (local) chain at a specific height.
fn connection_counter(&self) -> u64
[src]
Returns a counter on how many connections have been created thus far.
The value of this counter should increase only via method
ConnectionKeeper::increase_connection_counter
.
Provided methods
fn get_compatible_versions(&self) -> Vec<Version>
[src]
Function required by ICS 03. Returns the list of all possible versions that the connection handshake protocol supports.
fn pick_version(
&self,
supported_versions: Vec<Version>,
counterparty_candidate_versions: Vec<Version>
) -> Option<Version>
[src]
&self,
supported_versions: Vec<Version>,
counterparty_candidate_versions: Vec<Version>
) -> Option<Version>
Function required by ICS 03. Returns one version out of the supplied list of versions, which the connection handshake protocol prefers.