Trait abstract_sdk::base::ModuleIbcEndpoint

source ·
pub trait ModuleIbcEndpoint: Handler {
    // Required method
    fn ibc_host(&self, deps: Deps<'_>) -> Result<Addr, Self::Error>;

    // Provided method
    fn module_ibc(
        self,
        deps: DepsMut<'_>,
        env: Env,
        info: MessageInfo,
        msg: ModuleIbcMsg
    ) -> Result<Response, Self::Error> { ... }
}
Expand description

Trait for a contract to call itself on an IBC counterpart.

Required Methods§

source

fn ibc_host(&self, deps: Deps<'_>) -> Result<Addr, Self::Error>

Get the address of the ibc host associated with this module

Provided Methods§

source

fn module_ibc( self, deps: DepsMut<'_>, env: Env, info: MessageInfo, msg: ModuleIbcMsg ) -> Result<Response, Self::Error>

Handler for the ExecuteMsg::ModuleIbc(ModuleIbcMsg) variant.

Object Safety§

This trait is not object safe.

Implementors§