Trait boot_core::cosmos_modules::gov::msg_server::Msg
pub trait Msg: 'static + Send + Sync {
fn submit_proposal<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgSubmitProposal>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgSubmitProposalResponse>, Status>> + Send + 'async_trait, Global>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn vote<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgVote>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgVoteResponse>, Status>> + Send + 'async_trait, Global>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn vote_weighted<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgVoteWeighted>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgVoteWeightedResponse>, Status>> + Send + 'async_trait, Global>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn deposit<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgDeposit>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgDepositResponse>, Status>> + Send + 'async_trait, Global>>
where
'life0: 'async_trait,
Self: 'async_trait;
}Expand description
Generated trait containing gRPC methods that should be implemented for use with MsgServer.
Required Methods
fn submit_proposal<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgSubmitProposal>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgSubmitProposalResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn submit_proposal<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgSubmitProposal>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgSubmitProposalResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
SubmitProposal defines a method to create new proposal given a content.
fn vote<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgVote>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgVoteResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn vote<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgVote>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgVoteResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Vote defines a method to add a vote on a specific proposal.
fn vote_weighted<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgVoteWeighted>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgVoteWeightedResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn vote_weighted<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgVoteWeighted>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgVoteWeightedResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
VoteWeighted defines a method to add a weighted vote on a specific proposal.
Since: cosmos-sdk 0.43