Trait abstract_std::proxy::ExecuteMsgFns
source · pub trait ExecuteMsgFns<Chain: TxHandler>: CwOrchExecute<Chain, ExecuteMsg = ExecuteMsg> {
// Provided methods
fn set_admin(&self, admin: String) -> Result<TxResponse<Chain>, CwOrchError> { ... }
fn module_action(
&self,
msgs: Vec<CosmosMsg<Empty>>
) -> Result<TxResponse<Chain>, CwOrchError> { ... }
fn module_action_with_data(
&self,
msg: CosmosMsg<Empty>
) -> Result<TxResponse<Chain>, CwOrchError> { ... }
fn ibc_action(
&self,
msg: IbcClientMsg
) -> Result<TxResponse<Chain>, CwOrchError> { ... }
fn add_modules(
&self,
modules: Vec<String>
) -> Result<TxResponse<Chain>, CwOrchError> { ... }
fn remove_module(
&self,
module: String
) -> Result<TxResponse<Chain>, CwOrchError> { ... }
fn update_assets(
&self,
to_add: Vec<(AssetEntry, UncheckedPriceSource)>,
to_remove: Vec<AssetEntry>
) -> 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 set_admin(&self, admin: String) -> Result<TxResponse<Chain>, CwOrchError>
fn set_admin(&self, admin: String) -> Result<TxResponse<Chain>, CwOrchError>
Automatically generated wrapper around ExecuteMsg::SetAdmin variant
sourcefn module_action(
&self,
msgs: Vec<CosmosMsg<Empty>>
) -> Result<TxResponse<Chain>, CwOrchError>
fn module_action( &self, msgs: Vec<CosmosMsg<Empty>> ) -> Result<TxResponse<Chain>, CwOrchError>
Automatically generated wrapper around ExecuteMsg::ModuleAction variant
sourcefn module_action_with_data(
&self,
msg: CosmosMsg<Empty>
) -> Result<TxResponse<Chain>, CwOrchError>
fn module_action_with_data( &self, msg: CosmosMsg<Empty> ) -> Result<TxResponse<Chain>, CwOrchError>
Automatically generated wrapper around ExecuteMsg::ModuleActionWithData variant
sourcefn ibc_action(
&self,
msg: IbcClientMsg
) -> Result<TxResponse<Chain>, CwOrchError>
fn ibc_action( &self, msg: IbcClientMsg ) -> Result<TxResponse<Chain>, CwOrchError>
Automatically generated wrapper around ExecuteMsg::IbcAction variant
sourcefn add_modules(
&self,
modules: Vec<String>
) -> Result<TxResponse<Chain>, CwOrchError>
fn add_modules( &self, modules: Vec<String> ) -> Result<TxResponse<Chain>, CwOrchError>
Automatically generated wrapper around ExecuteMsg::AddModules variant
sourcefn remove_module(
&self,
module: String
) -> Result<TxResponse<Chain>, CwOrchError>
fn remove_module( &self, module: String ) -> Result<TxResponse<Chain>, CwOrchError>
Automatically generated wrapper around ExecuteMsg::RemoveModule variant
sourcefn update_assets(
&self,
to_add: Vec<(AssetEntry, UncheckedPriceSource)>,
to_remove: Vec<AssetEntry>
) -> Result<TxResponse<Chain>, CwOrchError>
fn update_assets( &self, to_add: Vec<(AssetEntry, UncheckedPriceSource)>, to_remove: Vec<AssetEntry> ) -> Result<TxResponse<Chain>, CwOrchError>
Automatically generated wrapper around ExecuteMsg::UpdateAssets variant