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§
Sourcefn host_current_height(&self) -> Height
fn host_current_height(&self) -> Height
Returns the host current height
Sourcefn proof_specs(&self) -> &ProofSpecs
fn proof_specs(&self) -> &ProofSpecs
Returns the proof specs of the host
Sourcefn unbonding_period(&self) -> Duration
fn unbonding_period(&self) -> Duration
Returns the unbonding period of the host
Sourcefn upgrade_path(&self) -> &[String]
fn upgrade_path(&self) -> &[String]
Returns the host upgrade path. May be empty.