side_proto::side::dlc::msg_server

Trait Msg

Source
pub trait Msg:
    Send
    + Sync
    + 'static {
    // Required methods
    fn submit_nonce<'life0, 'async_trait>(
        &'life0 self,
        request: Request<MsgSubmitNonce>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<MsgSubmitNonceResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn submit_attestation<'life0, 'async_trait>(
        &'life0 self,
        request: Request<MsgSubmitAttestation>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<MsgSubmitAttestationResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn submit_oracle_pub_key<'life0, 'async_trait>(
        &'life0 self,
        request: Request<MsgSubmitOraclePubKey>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<MsgSubmitOraclePubKeyResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn submit_agency_pub_key<'life0, 'async_trait>(
        &'life0 self,
        request: Request<MsgSubmitAgencyPubKey>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<MsgSubmitAgencyPubKeyResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn create_oracle<'life0, 'async_trait>(
        &'life0 self,
        request: Request<MsgCreateOracle>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<MsgCreateOracleResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn create_agency<'life0, 'async_trait>(
        &'life0 self,
        request: Request<MsgCreateAgency>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<MsgCreateAgencyResponse>, 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;
}
Available on crate feature grpc only.
Expand description

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

Required Methods§

Source

fn submit_nonce<'life0, 'async_trait>( &'life0 self, request: Request<MsgSubmitNonce>, ) -> Pin<Box<dyn Future<Output = Result<Response<MsgSubmitNonceResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn submit_attestation<'life0, 'async_trait>( &'life0 self, request: Request<MsgSubmitAttestation>, ) -> Pin<Box<dyn Future<Output = Result<Response<MsgSubmitAttestationResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn submit_oracle_pub_key<'life0, 'async_trait>( &'life0 self, request: Request<MsgSubmitOraclePubKey>, ) -> Pin<Box<dyn Future<Output = Result<Response<MsgSubmitOraclePubKeyResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn submit_agency_pub_key<'life0, 'async_trait>( &'life0 self, request: Request<MsgSubmitAgencyPubKey>, ) -> Pin<Box<dyn Future<Output = Result<Response<MsgSubmitAgencyPubKeyResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn create_oracle<'life0, 'async_trait>( &'life0 self, request: Request<MsgCreateOracle>, ) -> Pin<Box<dyn Future<Output = Result<Response<MsgCreateOracleResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn create_agency<'life0, 'async_trait>( &'life0 self, request: Request<MsgCreateAgency>, ) -> Pin<Box<dyn Future<Output = Result<Response<MsgCreateAgencyResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

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,

Implementors§