Trait abstract_interface::ManagerExecFns

source ·
pub trait ManagerExecFns<Chain, CwOrchExecuteMsgType>: CwOrchExecute<Chain, ExecuteMsg = CwOrchExecuteMsgType>
where Chain: TxHandler, ExecuteMsg: Into<CwOrchExecuteMsgType>,
{ // Provided methods fn exec_on_module( &self, exec_msg: Binary, module_id: impl Into<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: impl Into<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: impl Into<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 update_status( &self, is_suspended: 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: GovAction, ) -> 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§

source

fn exec_on_module( &self, exec_msg: Binary, module_id: impl Into<String>, coins: &[Coin], ) -> Result<<Chain as TxHandler>::Response, CwEnvError>

Automatically generated wrapper around ExecuteMsg::ExecOnModule variant

source

fn update_internal_config( &self, arg0: Binary, ) -> Result<<Chain as TxHandler>::Response, CwEnvError>

Automatically generated wrapper around ExecuteMsg::UpdateInternalConfig variant

source

fn install_modules( &self, modules: Vec<ModuleInstallConfig>, coins: &[Coin], ) -> Result<<Chain as TxHandler>::Response, CwEnvError>

Automatically generated wrapper around ExecuteMsg::InstallModules variant

source

fn uninstall_module( &self, module_id: impl Into<String>, ) -> Result<<Chain as TxHandler>::Response, CwEnvError>

Automatically generated wrapper around ExecuteMsg::UninstallModule variant

source

fn upgrade( &self, modules: Vec<(ModuleInfo, Option<Binary>)>, ) -> Result<<Chain as TxHandler>::Response, CwEnvError>

Automatically generated wrapper around ExecuteMsg::Upgrade variant

source

fn create_sub_account( &self, install_modules: Vec<ModuleInstallConfig>, name: impl Into<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

source

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

source

fn update_status( &self, is_suspended: Option<bool>, ) -> Result<<Chain as TxHandler>::Response, CwEnvError>

Automatically generated wrapper around ExecuteMsg::UpdateStatus variant

source

fn update_sub_account( &self, arg0: UpdateSubAccountAction, ) -> Result<<Chain as TxHandler>::Response, CwEnvError>

Automatically generated wrapper around ExecuteMsg::UpdateSubAccount variant

source

fn callback( &self, arg0: CallbackMsg, ) -> Result<<Chain as TxHandler>::Response, CwEnvError>

Automatically generated wrapper around ExecuteMsg::Callback variant

source

fn update_ownership( &self, arg0: GovAction, ) -> Result<<Chain as TxHandler>::Response, CwEnvError>

Automatically generated wrapper around ExecuteMsg::UpdateOwnership variant

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<Chain, CwOrchExecuteMsgType, SupportedContract> ExecuteMsgFns<Chain, CwOrchExecuteMsgType> for SupportedContract
where Chain: TxHandler, ExecuteMsg: Into<CwOrchExecuteMsgType>, SupportedContract: CwOrchExecute<Chain, ExecuteMsg = CwOrchExecuteMsgType>,