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

Add Minimal Implementation of MEV-Share SSE Collector #8

Merged
merged 4 commits into from
May 9, 2023

Conversation

grayleonard
Copy link
Contributor

Thought I'd get the ball rolling on this. Currently only added a collector following https://docs.flashbots.net/flashbots-mev-share/searchers/event-stream.

I imagine eventually the MEV-Share implementation will have a complementary executor with shared types, so anyone reading feel free to steal this for yourself if doing that.

Added a test as well but wasn't sure what it should test against, any ideas? Also, because MEV-Share has to send out an event before test completes, the test takes an indeterminate amount of time, sometimes ~5s waiting for a streamed event.

Related #4

Copy link
Contributor

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fyi https://github.com/mattsse/mev-share-rs

this also handles reconnects etc

@FrankieIsLost
Copy link
Collaborator

thanks for your contribution! @mattsse's mev-share client looks good, let's please use that inside the collector instead of rolling our own 🙏

@grayleonard
Copy link
Contributor Author

thanks for your contribution! @mattsse's mev-share client looks good, let's please use that inside the collector instead of rolling our own 🙏

Just pushed commit to use @mattsse's mev-share-rs instead 🙂. It works well.

@FrankieIsLost FrankieIsLost merged commit 41fecab into paradigmxyz:main May 9, 2023
2 of 4 checks passed
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

Successfully merging this pull request may close these issues.

None yet

3 participants