pub trait Query:
Send
+ Sync
+ 'static {
// Required methods
fn incentivized_packets<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryIncentivizedPacketsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryIncentivizedPacketsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn incentivized_packet<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryIncentivizedPacketRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryIncentivizedPacketResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn incentivized_packets_for_channel<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryIncentivizedPacketsForChannelRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryIncentivizedPacketsForChannelResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn total_recv_fees<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryTotalRecvFeesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryTotalRecvFeesResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn total_ack_fees<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryTotalAckFeesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryTotalAckFeesResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn total_timeout_fees<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryTotalTimeoutFeesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryTotalTimeoutFeesResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn payee<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryPayeeRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryPayeeResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn counterparty_payee<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryCounterpartyPayeeRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryCounterpartyPayeeResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn fee_enabled_channels<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryFeeEnabledChannelsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryFeeEnabledChannelsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn fee_enabled_channel<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryFeeEnabledChannelRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryFeeEnabledChannelResponse>, 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 QueryServer.
Required Methods§
Sourcefn incentivized_packets<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryIncentivizedPacketsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryIncentivizedPacketsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn incentivized_packets<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryIncentivizedPacketsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryIncentivizedPacketsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
IncentivizedPackets returns all incentivized packets and their associated fees
Sourcefn incentivized_packet<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryIncentivizedPacketRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryIncentivizedPacketResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn incentivized_packet<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryIncentivizedPacketRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryIncentivizedPacketResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
IncentivizedPacket returns all packet fees for a packet given its identifier
Sourcefn incentivized_packets_for_channel<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryIncentivizedPacketsForChannelRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryIncentivizedPacketsForChannelResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn incentivized_packets_for_channel<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryIncentivizedPacketsForChannelRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryIncentivizedPacketsForChannelResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Gets all incentivized packets for a specific channel
Sourcefn total_recv_fees<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryTotalRecvFeesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryTotalRecvFeesResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn total_recv_fees<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryTotalRecvFeesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryTotalRecvFeesResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
TotalRecvFees returns the total receive fees for a packet given its identifier
Sourcefn total_ack_fees<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryTotalAckFeesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryTotalAckFeesResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn total_ack_fees<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryTotalAckFeesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryTotalAckFeesResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
TotalAckFees returns the total acknowledgement fees for a packet given its identifier
Sourcefn total_timeout_fees<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryTotalTimeoutFeesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryTotalTimeoutFeesResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn total_timeout_fees<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryTotalTimeoutFeesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryTotalTimeoutFeesResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
TotalTimeoutFees returns the total timeout fees for a packet given its identifier
Sourcefn payee<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryPayeeRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryPayeeResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn payee<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryPayeeRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryPayeeResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Payee returns the registered payee address for a specific channel given the relayer address
Sourcefn counterparty_payee<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryCounterpartyPayeeRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryCounterpartyPayeeResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn counterparty_payee<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryCounterpartyPayeeRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryCounterpartyPayeeResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
CounterpartyPayee returns the registered counterparty payee for forward relaying
Sourcefn fee_enabled_channels<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryFeeEnabledChannelsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryFeeEnabledChannelsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fee_enabled_channels<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryFeeEnabledChannelsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryFeeEnabledChannelsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
FeeEnabledChannels returns a list of all fee enabled channels
Sourcefn fee_enabled_channel<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryFeeEnabledChannelRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryFeeEnabledChannelResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fee_enabled_channel<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryFeeEnabledChannelRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryFeeEnabledChannelResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
FeeEnabledChannel returns true if the provided port and channel identifiers belong to a fee enabled channel