ExecuteMsgFns

Trait ExecuteMsgFns 

Source
pub trait ExecuteMsgFns<Chain: TxHandler, CwOrchExecuteMsgType>: CwOrchExecute<Chain, ExecuteMsg = CwOrchExecuteMsgType>
where ExecuteMsg: Into<CwOrchExecuteMsgType>,
{ // Provided methods fn propose( &self, description: impl Into<String>, msgs: Vec<CosmosMsg<Empty>>, title: impl Into<String>, latest: Option<Expiration>, ) -> Result<TxResponse<Chain>, CwEnvError> { ... } fn vote( &self, proposal_id: u64, vote: Vote, ) -> Result<TxResponse<Chain>, CwEnvError> { ... } fn execute(&self, proposal_id: u64) -> Result<TxResponse<Chain>, CwEnvError> { ... } fn close(&self, proposal_id: u64) -> Result<TxResponse<Chain>, CwEnvError> { ... } fn member_changed_hook( &self, arg0: MemberChangedHookMsg, ) -> 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 propose( &self, description: impl Into<String>, msgs: Vec<CosmosMsg<Empty>>, title: impl Into<String>, latest: Option<Expiration>, ) -> Result<TxResponse<Chain>, CwEnvError>

Automatically generated wrapper around ExecuteMsg::Propose variant

Source

fn vote( &self, proposal_id: u64, vote: Vote, ) -> Result<TxResponse<Chain>, CwEnvError>

Automatically generated wrapper around ExecuteMsg::Vote variant

Source

fn execute(&self, proposal_id: u64) -> Result<TxResponse<Chain>, CwEnvError>

Automatically generated wrapper around ExecuteMsg::Execute variant

Source

fn close(&self, proposal_id: u64) -> Result<TxResponse<Chain>, CwEnvError>

Automatically generated wrapper around ExecuteMsg::Close variant

Source

fn member_changed_hook( &self, arg0: MemberChangedHookMsg, ) -> Result<TxResponse<Chain>, CwEnvError>

Automatically generated wrapper around ExecuteMsg::MemberChangedHook 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, SupportedContract> ExecuteMsgFns<Chain, CwOrchExecuteMsgType> for SupportedContract
where ExecuteMsg: Into<CwOrchExecuteMsgType>, SupportedContract: CwOrchExecute<Chain, ExecuteMsg = CwOrchExecuteMsgType>,

Available on non-WebAssembly only.