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
use cgp::prelude::*;
use hermes_relayer_components::multi::types::index::Index;

use crate::driver::traits::types::chain_driver_at::{ChainDriverTypeAt, HasChainDriverTypeAt};

#[derive_component(ChainSetupComponent, ChainSetup<Setup>)]
#[async_trait]
pub trait CanSetupChain<const I: usize>: HasChainDriverTypeAt<I> + HasErrorType {
    async fn setup_chain(&self, index: Index<I>)
        -> Result<ChainDriverTypeAt<Self, I>, Self::Error>;
}