pub fn connect_with_new_channel(
    a_chain_handle: Box<dyn ChainHandle>,
    b_chain_handle: Box<dyn ChainHandle>,
    delay: Duration,
    ordering: Order,
    path: RelayPath,
) -> Result<Channel, BoxError> {
    info!("\nChannel Relay Loop\n");

    // Instantiate the foreign client on the two chains
    let client_on_a = ForeignClient::new(a_chain_handle.clone(), b_chain_handle.clone())?;
    let client_on_b = ForeignClient::new(b_chain_handle.clone(), a_chain_handle.clone())?;

    // Setup the connection between the two chains
    let connection = Connection::new(client_on_a, client_on_b, delay)?;

    // Setup the channel over the connection
    Ok(Channel::new(
        connection,
        ordering,
        path.a_port,
        path.b_port,
        None,
    )?)
}
/// Connects two ports of two chains creating new clients, connection and channel
/// Used by the `hermes channel handshake ibc-0 ibc-1`
Connects two ports of two chains creating new clients, connection and channel
Used by the `hermes channel handshake ibc-0 ibc-1`
Connects two ports of two chains creating new clients connection and channel Used by the ` hermes channel handshake ibc - 0 ibc - 1 `
pub fn connect_with_new_channel(
    a_chain_handle: Box<dyn ChainHandle>,
    b_chain_handle: Box<dyn ChainHandle>,
    delay: Duration,
    ordering: Order,
    path: RelayPath,
) -> Result<Channel, BoxError> {
    info!("\nChannel Relay Loop\n");
    // Instantiate the foreign client on the two chains
    let client_on_a = ForeignClient::new(a_chain_handle.clone(), b_chain_handle.clone())?;
    let client_on_b = ForeignClient::new(b_chain_handle.clone(), a_chain_handle.clone())?;
    // Setup the connection between the two chains
    let connection = Connection::new(client_on_a, client_on_b, delay)?;
    // Setup the channel over the connection
    Ok(Channel::new(
        connection,
        ordering,
        path.a_port,
        path.b_port,
        None,
    )?)
}
pub fn connect_with_new_channel ( a_chain_handle : Box < dyn ChainHandle > , b_chain_handle : Box < dyn ChainHandle > , delay : Duration , ordering : Order , path : RelayPath , ) -> Result < Channel , BoxError > { info ! ( " \n \n " ) ; // Instantiate the foreign client on the two chains let client_on_a = ForeignClient :: new ( a_chain_handle . clone ( ) , b_chain_handle . clone ( ) ) ? ; let client_on_b = ForeignClient :: new ( b_chain_handle . clone ( ) , a_chain_handle . clone ( ) ) ? ; // Setup the connection between the two chains let connection = Connection :: new ( client_on_a , client_on_b , delay ) ? ; // Setup the channel over the connection Ok ( Channel :: new ( connection , ordering , path . a_port , path . b_port , None , ) ? ) }
Connects two ports of two chains creating new clients, connection and channel
Used by the `hermes channel handshake ibc-0 ibc-1`
Connects two ports of two chains creating new clients connection and channel Used by the ` hermes channel handshake ibc - 0 ibc - 1 `
a_chain_handle
Box<dyn ChainHandle>
b_chain_handle
Box<dyn ChainHandle>
delay
Duration
ordering
Order
path
RelayPath
a_chain_handle
Box<dyn ChainHandle>
b_chain_handle
Box<dyn ChainHandle>
delay
Duration
ordering
Order
path
RelayPath