hermes-test-components 0.1.0

Implementation of an IBC Relayer in Rust, as a library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use cgp::prelude::*;

use crate::chain::traits::proposal::types::proposal_id::HasProposalIdType;
use crate::chain::traits::proposal::types::proposal_status::HasProposalStatusType;

#[derive_component(ProposalStatusPollerComponent, ProposalStatusPoller<Chain>)]
#[async_trait]
pub trait CanPollProposalStatus: HasProposalIdType + HasProposalStatusType + HasErrorType {
    async fn poll_proposal_status<M>(
        &self,
        proposal_id: &Self::ProposalId,
        status_matcher: &M,
    ) -> Result<Self::ProposalStatus, Self::Error>
    where
        M: Fn(&Self::ProposalStatus) -> bool + Async;
}