kepler
kepler copied to clipboard
Be able to monitor events from websocket subscription
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
)
@blinky3713 I think this can be closed, holding off until you greenlight