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§
Sourcefn do_something(&self) -> Result<TxResponse<Chain>, CwOrchError>
fn do_something(&self) -> Result<TxResponse<Chain>, CwOrchError>
Automatically generated wrapper around MockExecMsg::DoSomething variant
Sourcefn do_something_admin(&self) -> Result<TxResponse<Chain>, CwOrchError>
fn do_something_admin(&self) -> Result<TxResponse<Chain>, CwOrchError>
Automatically generated wrapper around MockExecMsg::DoSomethingAdmin variant
Sourcefn do_something_ibc(
&self,
remote_chain: String,
target_module: ModuleInfo,
) -> Result<TxResponse<Chain>, CwOrchError>
fn do_something_ibc( &self, remote_chain: String, target_module: ModuleInfo, ) -> Result<TxResponse<Chain>, CwOrchError>
Automatically generated wrapper around MockExecMsg::DoSomethingIbc variant
Sourcefn query_something_ibc(
&self,
address: String,
remote_chain: String,
) -> Result<TxResponse<Chain>, CwOrchError>
fn query_something_ibc( &self, address: String, remote_chain: String, ) -> Result<TxResponse<Chain>, CwOrchError>
Automatically generated wrapper around MockExecMsg::QuerySomethingIbc variant