Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Be able to monitor events from websocket subscription #208

Open
martyall opened this issue Feb 5, 2020 · 1 comment
Open

Be able to monitor events from websocket subscription #208

martyall opened this issue Feb 5, 2020 · 1 comment
Assignees

Comments

@martyall
Copy link
Collaborator

martyall commented Feb 5, 2020

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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants