pub trait Msg: Send + Sync + 'static {
// 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>>
where Self: 'async_trait,
'life0: 'async_trait;
fn exec_legacy_content<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgExecLegacyContent>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgExecLegacyContentResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn vote<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgVote>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgVoteResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: '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>>
where Self: 'async_trait,
'life0: 'async_trait;
fn deposit<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgDeposit>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgDepositResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn update_params<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgUpdateParams>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgUpdateParamsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Generated trait containing gRPC methods that should be implemented for use with MsgServer.
Required Methods§
sourcefn submit_proposal<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgSubmitProposal>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgSubmitProposalResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: '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>>where
Self: 'async_trait,
'life0: 'async_trait,
SubmitProposal defines a method to create new proposal given the messages.
sourcefn exec_legacy_content<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgExecLegacyContent>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgExecLegacyContentResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn exec_legacy_content<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgExecLegacyContent>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgExecLegacyContentResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
ExecLegacyContent defines a Msg to be in included in a MsgSubmitProposal to execute a legacy content-based proposal.
sourcefn vote<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgVote>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgVoteResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn vote<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgVote>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgVoteResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Vote defines a method to add a vote on a specific proposal.
sourcefn vote_weighted<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgVoteWeighted>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgVoteWeightedResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: '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>>where
Self: 'async_trait,
'life0: 'async_trait,
VoteWeighted defines a method to add a weighted vote on a specific proposal.
sourcefn deposit<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgDeposit>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgDepositResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn deposit<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgDeposit>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgDepositResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Deposit defines a method to add deposit on a specific proposal.
sourcefn update_params<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgUpdateParams>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgUpdateParamsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_params<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgUpdateParams>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgUpdateParamsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
UpdateParams defines a governance operation for updating the x/gov module parameters. The authority is defined in the keeper.
Since: cosmos-sdk 0.47