-
Notifications
You must be signed in to change notification settings - Fork 18
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
Remove Jsonrpc #88
Remove Jsonrpc #88
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haha 😅 so this was a fun exercise...
Turns out we don't need to migrate to jsonrpsee
, but remove the dependency entirely. We had a single test, testing code that was written inside the integration tests directory... so silly.
Anyway, I think my change requests are pretty clear. Let me know if you have any questions and thank you for the contribution!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gotta love the number of deletions here. If CI passes, we can merge!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, awesome
Fixes #39
This replaces bothjsonrpc-core
andjsonrpc-http-server
with the newerjsonrpsee-core
andjsonrpsee-types
crates. The new jsonrpsee crates have been moved intodev-dependencies
as jsonrpc was only used for its re-exportedfutures
module in theavalanche-types
library (which was able to be replaced).The majority of this PR has been modifying tests in
crates/avalanche-types/tests/rpc/
as that was the primary use of jsonrpc. With some uses of the re-exportedfutures
crate being replaced as well.This also removes additional tests which are no longer necessary but required the crate.