synapseweb3 / forcerelay

Apache License 2.0
10 stars 8 forks source link

feat: impl Axon ChainEndpoint query_txs #379

Closed jjyr closed 10 months ago

jjyr commented 10 months ago

Implement the query_txs for Axon ChainEndpoint.

The interface design is wired, according to the comments on cosmos:

/// This function queries transactions for events matching certain criteria.
    /// 1. Client Update request - returns a vector with at most one update client event
    /// 2. Transaction event request - returns all IBC events resulted from a Tx execution

The first query only return update events, but the argument also provided a event_id field: QueryClientEventRequest.event_id, which IMO is duplicated.