Trait abstract_interface::ManagerExecFns
source · pub trait ManagerExecFns<Chain>: CwOrchExecute<Chain, ExecuteMsg = ExecuteMsg>where
Chain: CwEnv,{
Show 13 methods
// Provided methods
fn exec_on_module(
&self,
exec_msg: Binary,
module_id: String,
coins: &[Coin]
) -> Result<<Chain as TxHandler>::Response, CwEnvError> { ... }
fn update_internal_config(
&self,
arg0: Binary
) -> Result<<Chain as TxHandler>::Response, CwEnvError> { ... }
fn install_modules(
&self,
modules: Vec<ModuleInstallConfig>,
coins: &[Coin]
) -> Result<<Chain as TxHandler>::Response, CwEnvError> { ... }
fn uninstall_module(
&self,
module_id: String
) -> Result<<Chain as TxHandler>::Response, CwEnvError> { ... }
fn upgrade(
&self,
modules: Vec<(ModuleInfo, Option<Binary>)>
) -> Result<<Chain as TxHandler>::Response, CwEnvError> { ... }
fn create_sub_account(
&self,
install_modules: Vec<ModuleInstallConfig>,
name: String,
account_id: Option<u32>,
base_asset: Option<AssetEntry>,
description: Option<String>,
link: Option<String>,
namespace: Option<String>,
coins: &[Coin]
) -> Result<<Chain as TxHandler>::Response, CwEnvError> { ... }
fn update_info(
&self,
description: Option<String>,
link: Option<String>,
name: Option<String>
) -> Result<<Chain as TxHandler>::Response, CwEnvError> { ... }
fn propose_owner(
&self,
owner: GovernanceDetails<String>
) -> Result<<Chain as TxHandler>::Response, CwEnvError> { ... }
fn update_status(
&self,
is_suspended: Option<bool>
) -> Result<<Chain as TxHandler>::Response, CwEnvError> { ... }
fn update_settings(
&self,
ibc_enabled: Option<bool>
) -> Result<<Chain as TxHandler>::Response, CwEnvError> { ... }
fn update_sub_account(
&self,
arg0: UpdateSubAccountAction
) -> Result<<Chain as TxHandler>::Response, CwEnvError> { ... }
fn callback(
&self,
arg0: CallbackMsg
) -> Result<<Chain as TxHandler>::Response, CwEnvError> { ... }
fn update_ownership(
&self,
arg0: Action
) -> Result<<Chain as TxHandler>::Response, CwEnvError> { ... }
}
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 exec_on_module(
&self,
exec_msg: Binary,
module_id: String,
coins: &[Coin]
) -> Result<<Chain as TxHandler>::Response, CwEnvError>
fn exec_on_module( &self, exec_msg: Binary, module_id: String, coins: &[Coin] ) -> Result<<Chain as TxHandler>::Response, CwEnvError>
Automatically generated wrapper around ExecuteMsg::ExecOnModule variant
sourcefn update_internal_config(
&self,
arg0: Binary
) -> Result<<Chain as TxHandler>::Response, CwEnvError>
fn update_internal_config( &self, arg0: Binary ) -> Result<<Chain as TxHandler>::Response, CwEnvError>
Automatically generated wrapper around ExecuteMsg::UpdateInternalConfig variant
sourcefn install_modules(
&self,
modules: Vec<ModuleInstallConfig>,
coins: &[Coin]
) -> Result<<Chain as TxHandler>::Response, CwEnvError>
fn install_modules( &self, modules: Vec<ModuleInstallConfig>, coins: &[Coin] ) -> Result<<Chain as TxHandler>::Response, CwEnvError>
Automatically generated wrapper around ExecuteMsg::InstallModules variant
sourcefn uninstall_module(
&self,
module_id: String
) -> Result<<Chain as TxHandler>::Response, CwEnvError>
fn uninstall_module( &self, module_id: String ) -> Result<<Chain as TxHandler>::Response, CwEnvError>
Automatically generated wrapper around ExecuteMsg::UninstallModule variant
sourcefn upgrade(
&self,
modules: Vec<(ModuleInfo, Option<Binary>)>
) -> Result<<Chain as TxHandler>::Response, CwEnvError>
fn upgrade( &self, modules: Vec<(ModuleInfo, Option<Binary>)> ) -> Result<<Chain as TxHandler>::Response, CwEnvError>
Automatically generated wrapper around ExecuteMsg::Upgrade variant
sourcefn create_sub_account(
&self,
install_modules: Vec<ModuleInstallConfig>,
name: String,
account_id: Option<u32>,
base_asset: Option<AssetEntry>,
description: Option<String>,
link: Option<String>,
namespace: Option<String>,
coins: &[Coin]
) -> Result<<Chain as TxHandler>::Response, CwEnvError>
fn create_sub_account( &self, install_modules: Vec<ModuleInstallConfig>, name: String, account_id: Option<u32>, base_asset: Option<AssetEntry>, description: Option<String>, link: Option<String>, namespace: Option<String>, coins: &[Coin] ) -> Result<<Chain as TxHandler>::Response, CwEnvError>
Automatically generated wrapper around ExecuteMsg::CreateSubAccount variant
sourcefn update_info(
&self,
description: Option<String>,
link: Option<String>,
name: Option<String>
) -> Result<<Chain as TxHandler>::Response, CwEnvError>
fn update_info( &self, description: Option<String>, link: Option<String>, name: Option<String> ) -> Result<<Chain as TxHandler>::Response, CwEnvError>
Automatically generated wrapper around ExecuteMsg::UpdateInfo variant
sourcefn propose_owner(
&self,
owner: GovernanceDetails<String>
) -> Result<<Chain as TxHandler>::Response, CwEnvError>
fn propose_owner( &self, owner: GovernanceDetails<String> ) -> Result<<Chain as TxHandler>::Response, CwEnvError>
Automatically generated wrapper around ExecuteMsg::ProposeOwner variant
sourcefn update_status(
&self,
is_suspended: Option<bool>
) -> Result<<Chain as TxHandler>::Response, CwEnvError>
fn update_status( &self, is_suspended: Option<bool> ) -> Result<<Chain as TxHandler>::Response, CwEnvError>
Automatically generated wrapper around ExecuteMsg::UpdateStatus variant
sourcefn update_settings(
&self,
ibc_enabled: Option<bool>
) -> Result<<Chain as TxHandler>::Response, CwEnvError>
fn update_settings( &self, ibc_enabled: Option<bool> ) -> Result<<Chain as TxHandler>::Response, CwEnvError>
Automatically generated wrapper around ExecuteMsg::UpdateSettings variant
sourcefn update_sub_account(
&self,
arg0: UpdateSubAccountAction
) -> Result<<Chain as TxHandler>::Response, CwEnvError>
fn update_sub_account( &self, arg0: UpdateSubAccountAction ) -> Result<<Chain as TxHandler>::Response, CwEnvError>
Automatically generated wrapper around ExecuteMsg::UpdateSubAccount variant
sourcefn callback(
&self,
arg0: CallbackMsg
) -> Result<<Chain as TxHandler>::Response, CwEnvError>
fn callback( &self, arg0: CallbackMsg ) -> Result<<Chain as TxHandler>::Response, CwEnvError>
Automatically generated wrapper around ExecuteMsg::Callback variant
sourcefn update_ownership(
&self,
arg0: Action
) -> Result<<Chain as TxHandler>::Response, CwEnvError>
fn update_ownership( &self, arg0: Action ) -> Result<<Chain as TxHandler>::Response, CwEnvError>
Automatically generated wrapper around ExecuteMsg::UpdateOwnership variant