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;
    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§

source

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.

source

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.

source

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.

source

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.

source

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.

source

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

source

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 an operation for updating the x/staking module parameters. Since: cosmos-sdk 0.47

Implementors§