pub trait Msg:
Send
+ Sync
+ 'static {
// Required methods
fn assign_consumer_key<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgAssignConsumerKey>,
) -> Pin<Box<dyn Future<Output = Result<Response<MsgAssignConsumerKeyResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn submit_consumer_misbehaviour<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgSubmitConsumerMisbehaviour>,
) -> Pin<Box<dyn Future<Output = Result<Response<MsgSubmitConsumerMisbehaviourResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn submit_consumer_double_voting<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgSubmitConsumerDoubleVoting>,
) -> Pin<Box<dyn Future<Output = Result<Response<MsgSubmitConsumerDoubleVotingResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn create_consumer<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgCreateConsumer>,
) -> Pin<Box<dyn Future<Output = Result<Response<MsgCreateConsumerResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn update_consumer<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgUpdateConsumer>,
) -> Pin<Box<dyn Future<Output = Result<Response<MsgUpdateConsumerResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn remove_consumer<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgRemoveConsumer>,
) -> Pin<Box<dyn Future<Output = Result<Response<MsgRemoveConsumerResponse>, 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;
fn opt_in<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgOptIn>,
) -> Pin<Box<dyn Future<Output = Result<Response<MsgOptInResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn opt_out<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgOptOut>,
) -> Pin<Box<dyn Future<Output = Result<Response<MsgOptOutResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn set_consumer_commission_rate<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgSetConsumerCommissionRate>,
) -> Pin<Box<dyn Future<Output = Result<Response<MsgSetConsumerCommissionRateResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn change_reward_denoms<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgChangeRewardDenoms>,
) -> Pin<Box<dyn Future<Output = Result<Response<MsgChangeRewardDenomsResponse>, 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.