Trait 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: TmClientState,
    ) -> Result<(), HostError> { ... }
}
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 chain id of the host

Source

fn host_current_height(&self) -> Height

Returns the host current height

Source

fn proof_specs(&self) -> &ProofSpecs

Returns the proof specs of the host

Source

fn unbonding_period(&self) -> Duration

Returns the unbonding period of the host

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: TmClientState, ) -> Result<(), HostError>

Implementors§