f-o-a-m / kepler

A Haskell framework that facilitates writing ABCI applications
https://kepler.dev
Apache License 2.0
34 stars 9 forks source link

Be able to monitor events from websocket subscription #208

Open martyall opened 4 years ago

martyall commented 4 years ago

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)

charlescrain commented 4 years ago

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