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§
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 host proof specs
sourcefn unbonding_period(&self) -> Duration
fn unbonding_period(&self) -> Duration
Returns the host unbonding period
sourcefn upgrade_path(&self) -> &[String]
fn upgrade_path(&self) -> &[String]
Returns the host upgrade path. May be empty.