pub trait MockExecMsgFns<Chain: TxHandler>: CwOrchExecute<Chain, ExecuteMsg = ExecuteMsg> {
    // Provided methods
    fn do_something(&self) -> Result<TxResponse<Chain>, CwOrchError> { ... }
    fn do_something_admin(&self) -> Result<TxResponse<Chain>, CwOrchError> { ... }
    fn do_something_ibc(
        &self,
        remote_chain: String,
        target_module: ModuleInfo,
    ) -> Result<TxResponse<Chain>, CwOrchError> { ... }
    fn query_something_ibc(
        &self,
        address: String,
        remote_chain: String,
    ) -> Result<TxResponse<Chain>, CwOrchError> { ... }
}
Expand description

Automatically derived trait that allows you to call the variants of the message directly without the need to construct the struct yourself.

Provided Methods§

Source

fn do_something(&self) -> Result<TxResponse<Chain>, CwOrchError>

Automatically generated wrapper around MockExecMsg::DoSomething variant

Source

fn do_something_admin(&self) -> Result<TxResponse<Chain>, CwOrchError>

Automatically generated wrapper around MockExecMsg::DoSomethingAdmin variant

Source

fn do_something_ibc( &self, remote_chain: String, target_module: ModuleInfo, ) -> Result<TxResponse<Chain>, CwOrchError>

Automatically generated wrapper around MockExecMsg::DoSomethingIbc variant

Source

fn query_something_ibc( &self, address: String, remote_chain: String, ) -> Result<TxResponse<Chain>, CwOrchError>

Automatically generated wrapper around MockExecMsg::QuerySomethingIbc variant

Implementors§

Source§

impl<SupportedContract, Chain: TxHandler> MockExecMsgFns<Chain> for SupportedContract
where SupportedContract: CwOrchExecute<Chain, ExecuteMsg = ExecuteMsg>,