pub trait Msg: 'static + Send + Sync {
    fn grant<'life0, 'async_trait>(
        &'life0 self,
        request: Request<MsgGrant>
    ) -> Pin<Box<dyn Future<Output = Result<Response<MsgGrantResponse>, Status>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn exec<'life0, 'async_trait>(
        &'life0 self,
        request: Request<MsgExec>
    ) -> Pin<Box<dyn Future<Output = Result<Response<MsgExecResponse>, Status>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn revoke<'life0, 'async_trait>(
        &'life0 self,
        request: Request<MsgRevoke>
    ) -> Pin<Box<dyn Future<Output = Result<Response<MsgRevokeResponse>, 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

Grant grants the provided authorization to the grantee on the granter’s account with the provided expiration time. If there is already a grant for the given (granter, grantee, Authorization) triple, then the grant will be overwritten.

Exec attempts to execute the provided messages using authorizations granted to the grantee. Each message should have only one signer corresponding to the granter of the authorization.

Revoke revokes any authorization corresponding to the provided method name on the granter’s account that has been granted to the grantee.

Implementors