Feature/adr075 backport eventlog (#9470)

* rpc: implement the eventlog defined by ADR 075 (#7825)

Implement the basic cursor and eventlog types described in ADR 075.  Handle
encoding and decoding as strings for compatibility with JSON.

- Add unit tests for the required order and synchronization properties.
- Add hooks for metrics, with one value to be expanded later.
- Update ADR 075 to match the specifics of the implementation so far.

* fix event type

Co-authored-by: M. J. Fromberger <fromberger@interchain.io>
This commit is contained in:
mmsqe
2022-09-23 15:52:50 +02:00
committed by GitHub
co-authored by M. J. Fromberger
parent fe0aa4d30e
commit f1a57adee4
8 changed files with 910 additions and 2 deletions
@@ -348,8 +348,8 @@ limit.
The `wait_time` parameter is used to effect polling. If `before` is empty and
no items are available, the server will wait for up to `wait_time` for matching
items to arrive at the head of the log. If `wait_time` is zero or negative, the
server will wait for a default (positive) interval.
items to arrive at the head of the log. If `wait_time` is zero, the server will
return whatever eligible items are available immediately.
If `before` non-empty, `wait_time` is ignored: new results are only added to
the head of the log, so there is no need to wait. This allows the client to