Trait abstract_std::ibc_client::ExecuteMsgFns

source ·
pub trait ExecuteMsgFns<Chain: TxHandler, CwOrchExecuteMsgType>: CwOrchExecute<Chain, ExecuteMsg = CwOrchExecuteMsgType>
where ExecuteMsg: Into<CwOrchExecuteMsgType>,
{ // Provided methods fn update_ownership( &self, arg0: Action, ) -> Result<TxResponse<Chain>, CwEnvError> { ... } fn register_infrastructure( &self, chain: TruncatedChainId, host: impl Into<String>, note: impl Into<String>, ) -> Result<TxResponse<Chain>, CwEnvError> { ... } fn update_config( &self, ans_host: Option<String>, version_control: Option<String>, ) -> Result<TxResponse<Chain>, CwEnvError> { ... } fn send_funds( &self, funds: Vec<Coin>, host_chain: TruncatedChainId, memo: Option<String>, ) -> Result<TxResponse<Chain>, CwEnvError> { ... } fn register( &self, host_chain: TruncatedChainId, install_modules: Vec<ModuleInstallConfig>, base_asset: Option<AssetEntry>, namespace: Option<String>, ) -> Result<TxResponse<Chain>, CwEnvError> { ... } fn module_ibc_action( &self, host_chain: TruncatedChainId, msg: Binary, target_module: ModuleInfo, callback: Option<Callback>, ) -> Result<TxResponse<Chain>, CwEnvError> { ... } fn ibc_query( &self, callback: Callback, host_chain: TruncatedChainId, queries: Vec<QueryRequest<ModuleQuery>>, ) -> Result<TxResponse<Chain>, CwEnvError> { ... } fn remote_action( &self, action: HostAction, host_chain: TruncatedChainId, ) -> Result<TxResponse<Chain>, CwEnvError> { ... } fn remove_host( &self, host_chain: TruncatedChainId, ) -> Result<TxResponse<Chain>, CwEnvError> { ... } fn callback( &self, arg0: CallbackMessage, ) -> 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 update_ownership( &self, arg0: Action, ) -> Result<TxResponse<Chain>, CwEnvError>

Automatically generated wrapper around ExecuteMsg::UpdateOwnership variant

source

fn register_infrastructure( &self, chain: TruncatedChainId, host: impl Into<String>, note: impl Into<String>, ) -> Result<TxResponse<Chain>, CwEnvError>

Automatically generated wrapper around ExecuteMsg::RegisterInfrastructure variant

source

fn update_config( &self, ans_host: Option<String>, version_control: Option<String>, ) -> Result<TxResponse<Chain>, CwEnvError>

Automatically generated wrapper around ExecuteMsg::UpdateConfig variant

source

fn send_funds( &self, funds: Vec<Coin>, host_chain: TruncatedChainId, memo: Option<String>, ) -> Result<TxResponse<Chain>, CwEnvError>

Automatically generated wrapper around ExecuteMsg::SendFunds variant

source

fn register( &self, host_chain: TruncatedChainId, install_modules: Vec<ModuleInstallConfig>, base_asset: Option<AssetEntry>, namespace: Option<String>, ) -> Result<TxResponse<Chain>, CwEnvError>

Automatically generated wrapper around ExecuteMsg::Register variant

source

fn module_ibc_action( &self, host_chain: TruncatedChainId, msg: Binary, target_module: ModuleInfo, callback: Option<Callback>, ) -> Result<TxResponse<Chain>, CwEnvError>

Automatically generated wrapper around ExecuteMsg::ModuleIbcAction variant

source

fn ibc_query( &self, callback: Callback, host_chain: TruncatedChainId, queries: Vec<QueryRequest<ModuleQuery>>, ) -> Result<TxResponse<Chain>, CwEnvError>

Automatically generated wrapper around ExecuteMsg::IbcQuery variant

source

fn remote_action( &self, action: HostAction, host_chain: TruncatedChainId, ) -> Result<TxResponse<Chain>, CwEnvError>

Automatically generated wrapper around ExecuteMsg::RemoteAction variant

source

fn remove_host( &self, host_chain: TruncatedChainId, ) -> Result<TxResponse<Chain>, CwEnvError>

Automatically generated wrapper around ExecuteMsg::RemoveHost variant

source

fn callback( &self, arg0: CallbackMessage, ) -> Result<TxResponse<Chain>, CwEnvError>

Automatically generated wrapper around ExecuteMsg::Callback 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>,