kepler icon indicating copy to clipboard operation
kepler copied to clipboard

Be able to monitor events from websocket subscription

Open martyall opened this issue 5 years ago • 1 comments

For now, try to index on eventType == Transfer and see what comes back

For later

https://docs.tendermint.com/master/rpc/#/Websocket/subscribe

we want to make something like

event :: DecodeEvent i ni e
      => Filter e
      -> (e -> ReaderT Change Web3 EventAction)
      -> Web3 (Async ())
event fltr = forkWeb3 . event' fltr

so what is the Filter type that allows us to post the data to subscribe to.

The e parameter ^ is only to help with the parsing.

ToEvent / FromEvent class that has some of this data (like eventType)

martyall avatar Feb 05 '20 16:02 martyall

@blinky3713 I think this can be closed, holding off until you greenlight

charlescrain avatar Mar 04 '20 21:03 charlescrain