abstract_std::account

Trait ExecuteMsgFns

Source
pub trait ExecuteMsgFns<Chain: TxHandler, CwOrchExecuteMsgType, Authenticator: Debug + Serialize + DeserializeOwned = Empty>: CwOrchExecute<Chain, ExecuteMsg = CwOrchExecuteMsgType>
where ExecuteMsg<Authenticator>: Into<CwOrchExecuteMsgType>,
{
Show 17 methods // Provided methods fn execute_msgs( &self, msgs: Vec<CosmosMsg<Empty>>, coins: &[Coin], ) -> Result<TxResponse<Chain>, CwEnvError> { ... } fn execute_with_data( &self, msg: CosmosMsg<Empty>, coins: &[Coin], ) -> Result<TxResponse<Chain>, CwEnvError> { ... } fn execute_on_module( &self, exec_msg: Binary, funds: Vec<Coin>, module_id: impl Into<String>, coins: &[Coin], ) -> Result<TxResponse<Chain>, CwEnvError> { ... } fn admin_execute( &self, addr: impl Into<String>, msg: Binary, coins: &[Coin], ) -> Result<TxResponse<Chain>, CwEnvError> { ... } fn admin_execute_on_module( &self, module_id: impl Into<String>, msg: Binary, coins: &[Coin], ) -> Result<TxResponse<Chain>, CwEnvError> { ... } fn ica_action( &self, action_query_msg: Binary, ) -> Result<TxResponse<Chain>, CwEnvError> { ... } fn update_internal_config( &self, arg0: InternalConfigAction, ) -> Result<TxResponse<Chain>, CwEnvError> { ... } fn install_modules( &self, modules: Vec<ModuleInstallConfig>, coins: &[Coin], ) -> Result<TxResponse<Chain>, CwEnvError> { ... } fn uninstall_module( &self, module_id: impl Into<String>, ) -> Result<TxResponse<Chain>, CwEnvError> { ... } fn upgrade( &self, modules: Vec<(ModuleInfo, Option<Binary>)>, ) -> Result<TxResponse<Chain>, CwEnvError> { ... } fn create_sub_account( &self, install_modules: Vec<ModuleInstallConfig>, account_id: Option<u32>, description: Option<String>, link: Option<String>, name: Option<String>, namespace: Option<String>, coins: &[Coin], ) -> Result<TxResponse<Chain>, CwEnvError> { ... } fn update_info( &self, description: Option<String>, link: Option<String>, name: Option<String>, ) -> Result<TxResponse<Chain>, CwEnvError> { ... } fn update_status( &self, is_suspended: Option<bool>, ) -> Result<TxResponse<Chain>, CwEnvError> { ... } fn update_sub_account( &self, arg0: UpdateSubAccountAction, ) -> Result<TxResponse<Chain>, CwEnvError> { ... } fn update_ownership( &self, arg0: GovAction, ) -> Result<TxResponse<Chain>, CwEnvError> { ... } fn add_auth_method( &self, add_authenticator: Authenticator, ) -> Result<TxResponse<Chain>, CwEnvError> { ... } fn remove_auth_method( &self, id: u8, ) -> Result<TxResponse<Chain>, 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 execute_msgs( &self, msgs: Vec<CosmosMsg<Empty>>, coins: &[Coin], ) -> Result<TxResponse<Chain>, CwEnvError>

Automatically generated wrapper around ExecuteMsg::Execute variant

Source

fn execute_with_data( &self, msg: CosmosMsg<Empty>, coins: &[Coin], ) -> Result<TxResponse<Chain>, CwEnvError>

Automatically generated wrapper around ExecuteMsg::ExecuteWithData variant

Source

fn execute_on_module( &self, exec_msg: Binary, funds: Vec<Coin>, module_id: impl Into<String>, coins: &[Coin], ) -> Result<TxResponse<Chain>, CwEnvError>

Automatically generated wrapper around ExecuteMsg::ExecuteOnModule variant

Source

fn admin_execute( &self, addr: impl Into<String>, msg: Binary, coins: &[Coin], ) -> Result<TxResponse<Chain>, CwEnvError>

Automatically generated wrapper around ExecuteMsg::AdminExecute variant

Source

fn admin_execute_on_module( &self, module_id: impl Into<String>, msg: Binary, coins: &[Coin], ) -> Result<TxResponse<Chain>, CwEnvError>

Automatically generated wrapper around ExecuteMsg::AdminExecuteOnModule variant

Source

fn ica_action( &self, action_query_msg: Binary, ) -> Result<TxResponse<Chain>, CwEnvError>

Automatically generated wrapper around ExecuteMsg::IcaAction variant

Source

fn update_internal_config( &self, arg0: InternalConfigAction, ) -> Result<TxResponse<Chain>, CwEnvError>

Automatically generated wrapper around ExecuteMsg::UpdateInternalConfig variant

Source

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

Automatically generated wrapper around ExecuteMsg::InstallModules variant

Source

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

Automatically generated wrapper around ExecuteMsg::UninstallModule variant

Source

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

Automatically generated wrapper around ExecuteMsg::Upgrade variant

Source

fn create_sub_account( &self, install_modules: Vec<ModuleInstallConfig>, account_id: Option<u32>, description: Option<String>, link: Option<String>, name: Option<String>, namespace: Option<String>, coins: &[Coin], ) -> Result<TxResponse<Chain>, CwEnvError>

Automatically generated wrapper around ExecuteMsg::CreateSubAccount variant

Source

fn update_info( &self, description: Option<String>, link: Option<String>, name: Option<String>, ) -> Result<TxResponse<Chain>, CwEnvError>

Automatically generated wrapper around ExecuteMsg::UpdateInfo variant

Source

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

Automatically generated wrapper around ExecuteMsg::UpdateStatus variant

Source

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

Automatically generated wrapper around ExecuteMsg::UpdateSubAccount variant

Source

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

Automatically generated wrapper around ExecuteMsg::UpdateOwnership variant

Source

fn add_auth_method( &self, add_authenticator: Authenticator, ) -> Result<TxResponse<Chain>, CwEnvError>

Automatically generated wrapper around ExecuteMsg::AddAuthMethod variant

Source

fn remove_auth_method(&self, id: u8) -> Result<TxResponse<Chain>, CwEnvError>

Automatically generated wrapper around ExecuteMsg::RemoveAuthMethod variant

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<Chain: TxHandler, CwOrchExecuteMsgType, Authenticator: Debug + Serialize + DeserializeOwned, SupportedContract> ExecuteMsgFns<Chain, CwOrchExecuteMsgType, Authenticator> for SupportedContract
where ExecuteMsg<Authenticator>: Into<CwOrchExecuteMsgType>, SupportedContract: CwOrchExecute<Chain, ExecuteMsg = CwOrchExecuteMsgType>,