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: Any
    ) -> Result<(), ContextError> { ... }
}
Expand description

Provides an implementation of ValidationContext::validate_self_client for Tendermint-based hosts.

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: Any ) -> Result<(), ContextError>

Implementors§