hermes_relayer_components/relay/traits/channel/
open_try.rs1use cgp::prelude::*;
2
3use crate::relay::traits::chains::HasRelayChains;
4use crate::relay::types::aliases::{DstChannelId, DstPortId, SrcChannelId, SrcPortId};
5
6#[derive_component(ChannelOpenTryRelayerComponent, ChannelOpenTryRelayer<Relay>)]
7#[async_trait]
8pub trait CanRelayChannelOpenTry: HasRelayChains {
9 async fn relay_channel_open_try(
10 &self,
11 dst_port_id: &DstPortId<Self>,
12 src_port_id: &SrcPortId<Self>,
13 src_channel_id: &SrcChannelId<Self>,
14 ) -> Result<DstChannelId<Self>, Self::Error>;
15}