pub trait Msg: Send + Sync + 'static {
    fn create_validator<'life0, 'async_trait>(
        &'life0 self,
        request: Request<MsgCreateValidator>
    ) -> Pin<Box<dyn Future<Output = Result<Response<MsgCreateValidatorResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: '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
        'life0: 'async_trait,
        Self: '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
        'life0: 'async_trait,
        Self: '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
        'life0: 'async_trait,
        Self: '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
        'life0: 'async_trait,
        Self: '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
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

Generated trait containing gRPC methods that should be implemented for use with MsgServer.

Required Methods§

CreateValidator defines a method for creating a new validator.

EditValidator defines a method for editing an existing validator.

Delegate defines a method for performing a delegation of coins from a delegator to a validator.

BeginRedelegate defines a method for performing a redelegation of coins from a delegator and source validator to a destination validator.

Undelegate defines a method for performing an undelegation from a delegate and a validator.

CancelUnbondingDelegation defines a method for performing canceling the unbonding delegation and delegate back to previous validator.

Since: cosmos-sdk 0.46

Implementors§