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
use cgp::prelude::*;
use hermes_relayer_components::chain::traits::types::height::HasHeightType;
use hermes_relayer_components::chain::traits::types::timestamp::HasTimestampType;

#[derive_component(IbcTransferTimeoutCalculatorComponent, IbcTransferTimeoutCalculator<ChainDriver>)]
pub trait CanCalculateIbcTransferTimeout: HasTimestampType + HasHeightType {
    fn ibc_transfer_timeout_time(&self, current_time: &Self::Timestamp) -> Option<Self::Timestamp>;

    fn ibc_transfer_timeout_height(&self, current_height: &Self::Height) -> Option<Self::Height>;
}