pub trait ExecuteMsgFns<Chain: CwEnv>: CwOrchExecute<Chain, ExecuteMsg = ExecuteMsg> {
// Provided methods
fn propose(
&self,
description: String,
msgs: Vec<CosmosMsg<Empty>>,
title: String,
latest: Option<Expiration>
) -> Result<TxResponse<Chain>, CwOrchError> { ... }
fn vote(
&self,
proposal_id: u64,
vote: Vote
) -> Result<TxResponse<Chain>, CwOrchError> { ... }
fn execute(
&self,
proposal_id: u64
) -> Result<TxResponse<Chain>, CwOrchError> { ... }
fn close(&self, proposal_id: u64) -> Result<TxResponse<Chain>, CwOrchError> { ... }
}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§
sourcefn propose(
&self,
description: String,
msgs: Vec<CosmosMsg<Empty>>,
title: String,
latest: Option<Expiration>
) -> Result<TxResponse<Chain>, CwOrchError>
fn propose( &self, description: String, msgs: Vec<CosmosMsg<Empty>>, title: String, latest: Option<Expiration> ) -> Result<TxResponse<Chain>, CwOrchError>
Automatically generated wrapper around ExecuteMsg::Propose variant
sourcefn vote(
&self,
proposal_id: u64,
vote: Vote
) -> Result<TxResponse<Chain>, CwOrchError>
fn vote( &self, proposal_id: u64, vote: Vote ) -> Result<TxResponse<Chain>, CwOrchError>
Automatically generated wrapper around ExecuteMsg::Vote variant
sourcefn execute(&self, proposal_id: u64) -> Result<TxResponse<Chain>, CwOrchError>
fn execute(&self, proposal_id: u64) -> Result<TxResponse<Chain>, CwOrchError>
Automatically generated wrapper around ExecuteMsg::Execute variant
sourcefn close(&self, proposal_id: u64) -> Result<TxResponse<Chain>, CwOrchError>
fn close(&self, proposal_id: u64) -> Result<TxResponse<Chain>, CwOrchError>
Automatically generated wrapper around ExecuteMsg::Close variant