-
Notifications
You must be signed in to change notification settings - Fork 177
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
Rename and reorg types #462
Conversation
…rametrized to `SubscriptionPayload` Move `SubscriptionResponse` to the `response` module
How about |
GH threw away my reply to this, grr. I like The downside of going with :/ |
Sounds good to me |
We have used
|
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, some minor comments to address
In an followup PR, we could flatten the v2 mod
and remove the child modules request, response, params
.
|
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.
Aside form my initial bikeshed it looks good to me :)
Closes #457.
The changes here mostly removes the
JsonRpc
prefix from the types that come from the spec. I have kept a prefix for some types with a very common stdlib version such asResult
andError
. I also changed the serializable versions to consistently use the*Ser
postfix (not loving this convention but have no better suggestion).I'm tempted to make the
jsonrpsee-types
paths more shallow, i.e. re-export all the modules underv2
, so that instead of doingjsonrpsee-types::v2::error::RpcError
we'd havejsonrpsee-types::v2::RpcError
; instead ofjsonrpsee-types::v2::response::Response
we'd havejsonrpsee-types::v2::Response
etc. Thoughts?