cw_multi_test/
ibc.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::{AcceptingModule, FailingModule, Module};
use cosmwasm_std::{Empty, IbcMsg, IbcQuery};

/// This trait implements the interface for IBC functionalities.
pub trait Ibc: Module<ExecT = IbcMsg, QueryT = IbcQuery, SudoT = Empty> {}

/// Implementation of the always accepting IBC module.
pub type IbcAcceptingModule = AcceptingModule<IbcMsg, IbcQuery, Empty>;

impl Ibc for IbcAcceptingModule {}

/// implementation of the always failing IBC module.
pub type IbcFailingModule = FailingModule<IbcMsg, IbcQuery, Empty>;

impl Ibc for IbcFailingModule {}