Trait boot_core::cosmos_modules::staking::msg_server::Msg
pub trait Msg: 'static + Send + Sync {
fn create_validator<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgCreateValidator>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgCreateValidatorResponse>, Status>> + Send + 'async_trait, Global>>
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, Global>>
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, Global>>
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, Global>>
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, Global>>
where
'life0: 'async_trait,
Self: 'async_trait;
}Expand description
Generated trait containing gRPC methods that should be implemented for use with MsgServer.
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, Global>>where
'life0: 'async_trait,
Self: '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, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
CreateValidator defines a method for creating a new validator.
fn edit_validator<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgEditValidator>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgEditValidatorResponse>, Status>> + Send + 'async_trait, Global>>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, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
EditValidator defines a method for editing an existing validator.
fn delegate<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgDelegate>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgDelegateResponse>, Status>> + Send + 'async_trait, Global>>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, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Delegate defines a method for performing a delegation of coins from a delegator to a validator.
fn begin_redelegate<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgBeginRedelegate>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgBeginRedelegateResponse>, Status>> + Send + 'async_trait, Global>>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, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
BeginRedelegate defines a method for performing a redelegation of coins from a delegator and source validator to a destination validator.
fn undelegate<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgUndelegate>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgUndelegateResponse>, Status>> + Send + 'async_trait, Global>>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, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Undelegate defines a method for performing an undelegation from a delegate and a validator.