Trait abstract_std::proxy::ExecuteMsgFns

source ·
pub trait ExecuteMsgFns<Chain: TxHandler, CwOrchExecuteMsgType>: CwOrchExecute<Chain, ExecuteMsg = CwOrchExecuteMsgType>
where ExecuteMsg: Into<CwOrchExecuteMsgType>,
{ // Provided methods fn set_admin( &self, admin: impl Into<String>, ) -> Result<TxResponse<Chain>, CwEnvError> { ... } fn module_action( &self, msgs: Vec<CosmosMsg<Empty>>, ) -> Result<TxResponse<Chain>, CwEnvError> { ... } fn module_action_with_data( &self, msg: CosmosMsg<Empty>, ) -> Result<TxResponse<Chain>, CwEnvError> { ... } fn ibc_action( &self, msg: IbcClientMsg, ) -> Result<TxResponse<Chain>, CwEnvError> { ... } fn add_modules( &self, modules: Vec<String>, ) -> Result<TxResponse<Chain>, CwEnvError> { ... } fn remove_module( &self, module: impl Into<String>, ) -> Result<TxResponse<Chain>, CwEnvError> { ... } fn update_assets( &self, to_add: Vec<(AssetEntry, UncheckedPriceSource)>, to_remove: Vec<AssetEntry>, ) -> 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 set_admin( &self, admin: impl Into<String>, ) -> Result<TxResponse<Chain>, CwEnvError>

Automatically generated wrapper around ExecuteMsg::SetAdmin variant

source

fn module_action( &self, msgs: Vec<CosmosMsg<Empty>>, ) -> Result<TxResponse<Chain>, CwEnvError>

Automatically generated wrapper around ExecuteMsg::ModuleAction variant

source

fn module_action_with_data( &self, msg: CosmosMsg<Empty>, ) -> Result<TxResponse<Chain>, CwEnvError>

Automatically generated wrapper around ExecuteMsg::ModuleActionWithData variant

source

fn ibc_action(&self, msg: IbcClientMsg) -> Result<TxResponse<Chain>, CwEnvError>

Automatically generated wrapper around ExecuteMsg::IbcAction variant

source

fn add_modules( &self, modules: Vec<String>, ) -> Result<TxResponse<Chain>, CwEnvError>

Automatically generated wrapper around ExecuteMsg::AddModules variant

source

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

Automatically generated wrapper around ExecuteMsg::RemoveModule variant

source

fn update_assets( &self, to_add: Vec<(AssetEntry, UncheckedPriceSource)>, to_remove: Vec<AssetEntry>, ) -> Result<TxResponse<Chain>, CwEnvError>

Automatically generated wrapper around ExecuteMsg::UpdateAssets variant

Object Safety§

This trait is not object safe.

Implementors§

source§

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