Trait ibc::cosmos_host::ValidateSelfClientContext

source ·
pub trait ValidateSelfClientContext {
    // Required methods
    fn chain_id(&self) -> &ChainId;
    fn host_current_height(&self) -> Height;
    fn proof_specs(&self) -> &ProofSpecs;
    fn unbonding_period(&self) -> Duration;
    fn upgrade_path(&self) -> &[String];

    // Provided method
    fn validate_self_tendermint_client(
        &self,
        client_state_of_host_on_counterparty: ClientState
    ) -> Result<(), ContextError> { ... }
}
Expand description

Provides a default implementation intended for implementing the ValidationContext::validate_self_client API.

This validation logic tailored for Tendermint client states of a host chain operating across various counterparty chains.

Required Methods§

source

fn chain_id(&self) -> &ChainId

Returns the host chain id

source

fn host_current_height(&self) -> Height

Returns the host current height

source

fn proof_specs(&self) -> &ProofSpecs

Returns the host proof specs

source

fn unbonding_period(&self) -> Duration

Returns the host unbonding period

source

fn upgrade_path(&self) -> &[String]

Returns the host upgrade path. May be empty.

Provided Methods§

source

fn validate_self_tendermint_client( &self, client_state_of_host_on_counterparty: ClientState ) -> Result<(), ContextError>

Implementors§