Trait abstract_sdk::base::IbcCallbackEndpoint

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

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

Trait for a contract’s IBC callback ExecuteMsg variant.

Required Methods§

source

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

Queries the IBC Client address.

Provided Methods§

source

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

Handler for the ExecuteMsg::IbcCallback() variant.

Object Safety§

This trait is not object safe.

Implementors§