pub trait Msg: Send + Sync + 'static {
    // Required methods
    fn register_payee<'life0, 'async_trait>(
        &'life0 self,
        request: Request<MsgRegisterPayee>
    ) -> Pin<Box<dyn Future<Output = Result<Response<MsgRegisterPayeeResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn register_counterparty_payee<'life0, 'async_trait>(
        &'life0 self,
        request: Request<MsgRegisterCounterpartyPayee>
    ) -> Pin<Box<dyn Future<Output = Result<Response<MsgRegisterCounterpartyPayeeResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn pay_packet_fee<'life0, 'async_trait>(
        &'life0 self,
        request: Request<MsgPayPacketFee>
    ) -> Pin<Box<dyn Future<Output = Result<Response<MsgPayPacketFeeResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn pay_packet_fee_async<'life0, 'async_trait>(
        &'life0 self,
        request: Request<MsgPayPacketFeeAsync>
    ) -> Pin<Box<dyn Future<Output = Result<Response<MsgPayPacketFeeAsyncResponse>, 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 register_payee<'life0, 'async_trait>( &'life0 self, request: Request<MsgRegisterPayee> ) -> Pin<Box<dyn Future<Output = Result<Response<MsgRegisterPayeeResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

RegisterPayee defines a rpc handler method for MsgRegisterPayee RegisterPayee is called by the relayer on each channelEnd and allows them to set an optional payee to which reverse and timeout relayer packet fees will be paid out. The payee should be registered on the source chain from which packets originate as this is where fee distribution takes place. This function may be called more than once by a relayer, in which case, the latest payee is always used.

source

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

RegisterCounterpartyPayee defines a rpc handler method for MsgRegisterCounterpartyPayee RegisterCounterpartyPayee is called by the relayer on each channelEnd and allows them to specify the counterparty payee address before relaying. This ensures they will be properly compensated for forward relaying since the destination chain must include the registered counterparty payee address in the acknowledgement. This function may be called more than once by a relayer, in which case, the latest counterparty payee address is always used.

source

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

PayPacketFee defines a rpc handler method for MsgPayPacketFee PayPacketFee is an open callback that may be called by any module/user that wishes to escrow funds in order to incentivize the relaying of the packet at the next sequence NOTE: This method is intended to be used within a multi msg transaction, where the subsequent msg that follows initiates the lifecycle of the incentivized packet

source

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

PayPacketFeeAsync defines a rpc handler method for MsgPayPacketFeeAsync PayPacketFeeAsync is an open callback that may be called by any module/user that wishes to escrow funds in order to incentivize the relaying of a known packet (i.e. at a particular sequence)

Implementors§