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

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

#[derive_component(BootstrapAtComponent, ProvideBootstrapAt<Setup>)]
pub trait HasBootstrapAt<const I: usize>: HasChainDriverTypeAt<I> {
    type Bootstrap: HasChainDriverType<ChainDriver = ChainDriverTypeAt<Self, I>>;

    fn chain_bootstrap(&self, index: Index<I>) -> &Self::Bootstrap;
}

pub type BootstrapAt<Context, const I: usize> = <Context as HasBootstrapAt<I>>::Bootstrap;