pub trait Msg: Send + Sync + 'static {
// Required methods
fn create_validator<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgCreateValidator>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgCreateValidatorResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn edit_validator<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgEditValidator>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgEditValidatorResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delegate<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgDelegate>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgDelegateResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn begin_redelegate<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgBeginRedelegate>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgBeginRedelegateResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn undelegate<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgUndelegate>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgUndelegateResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn cancel_unbonding_delegation<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgCancelUnbondingDelegation>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgCancelUnbondingDelegationResponse>, 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 create_validator<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgCreateValidator>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgCreateValidatorResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_validator<'life0, 'async_trait>( &'life0 self, request: Request<MsgCreateValidator> ) -> Pin<Box<dyn Future<Output = Result<Response<MsgCreateValidatorResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
CreateValidator defines a method for creating a new validator.
sourcefn edit_validator<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgEditValidator>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgEditValidatorResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn edit_validator<'life0, 'async_trait>( &'life0 self, request: Request<MsgEditValidator> ) -> Pin<Box<dyn Future<Output = Result<Response<MsgEditValidatorResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
EditValidator defines a method for editing an existing validator.
sourcefn delegate<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgDelegate>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgDelegateResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delegate<'life0, 'async_trait>( &'life0 self, request: Request<MsgDelegate> ) -> Pin<Box<dyn Future<Output = Result<Response<MsgDelegateResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Delegate defines a method for performing a delegation of coins from a delegator to a validator.
sourcefn begin_redelegate<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgBeginRedelegate>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgBeginRedelegateResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn begin_redelegate<'life0, 'async_trait>( &'life0 self, request: Request<MsgBeginRedelegate> ) -> Pin<Box<dyn Future<Output = Result<Response<MsgBeginRedelegateResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
BeginRedelegate defines a method for performing a redelegation of coins from a delegator and source validator to a destination validator.
sourcefn undelegate<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgUndelegate>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgUndelegateResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn undelegate<'life0, 'async_trait>( &'life0 self, request: Request<MsgUndelegate> ) -> Pin<Box<dyn Future<Output = Result<Response<MsgUndelegateResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Undelegate defines a method for performing an undelegation from a delegate and a validator.
sourcefn cancel_unbonding_delegation<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgCancelUnbondingDelegation>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgCancelUnbondingDelegationResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn cancel_unbonding_delegation<'life0, 'async_trait>( &'life0 self, request: Request<MsgCancelUnbondingDelegation> ) -> Pin<Box<dyn Future<Output = Result<Response<MsgCancelUnbondingDelegationResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
CancelUnbondingDelegation defines a method for performing canceling the unbonding delegation and delegate back to previous validator.
Since: cosmos-sdk 0.46