Trait abstract_sdk::IbcCallbackEndpoint
source · [−]pub trait IbcCallbackEndpoint: Sized + MemoryOperation {
type ContractError: From<StdError>;
fn callback_handler(
&self,
id: &str
) -> Option<IbcCallbackHandlerFn<Self, Self::ContractError>>;
fn handle_ibc_callback(
self,
deps: DepsMut<'_>,
env: Env,
info: MessageInfo,
msg: IbcResponseMsg
) -> Result<Response, Self::ContractError> { ... }
}Required Associated Types
type ContractError: From<StdError>
Required Methods
sourcefn callback_handler(
&self,
id: &str
) -> Option<IbcCallbackHandlerFn<Self, Self::ContractError>>
fn callback_handler(
&self,
id: &str
) -> Option<IbcCallbackHandlerFn<Self, Self::ContractError>>
Takes request, sets destination and executes request handler This fn is the only way to get an ApiContract instance which ensures the destination address is set correctly.