Trait abstract_interface::ProxyExecFns

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

Automatically generated wrapper around ExecuteMsg::SetAdmin variant

source

fn module_action( &self, msgs: Vec<CosmosMsg> ) -> Result<<Chain as TxHandler>::Response, CwEnvError>

Automatically generated wrapper around ExecuteMsg::ModuleAction variant

source

fn module_action_with_data( &self, msg: CosmosMsg ) -> Result<<Chain as TxHandler>::Response, CwEnvError>

Automatically generated wrapper around ExecuteMsg::ModuleActionWithData variant

source

fn ibc_action( &self, msg: ExecuteMsg ) -> Result<<Chain as TxHandler>::Response, CwEnvError>

Automatically generated wrapper around ExecuteMsg::IbcAction variant

source

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

Automatically generated wrapper around ExecuteMsg::AddModules variant

source

fn remove_module( &self, module: String ) -> Result<<Chain as TxHandler>::Response, CwEnvError>

Automatically generated wrapper around ExecuteMsg::RemoveModule variant

source

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

Automatically generated wrapper around ExecuteMsg::UpdateAssets variant

Implementors§

source§

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