-
Notifications
You must be signed in to change notification settings - Fork 10
shim: initial work #32
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
Conversation
f14a4ca
to
ba7ba2c
Compare
this removes all the subxt and substrate cruft from the sovereign adapter.
|
||
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)] | ||
pub struct Block { | ||
// TODO: Hash should be a newtype that serializes to hex. |
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.
does serde::with
work here without a newtype?
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.
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.
By default, I was just thinking maybe it's a good idea to have Hash
and AccountId
instead of [u8; 32]
and [u8; 32]
. But, yeah, using primitives also an option, it's definitely not a problem right now.
@@ -0,0 +1,9 @@ | |||
mod adapters; |
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.
I find the module naming very confusing in this section - adapters
are adapter servers and sugondat_rpc
are the clients communicating with the underlying node.
can we reorganize a bit? adapter_server
and adapter_query
or something?
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.
lots of bikeshedding to do here, but it's in particular around adapters
- the sugondat_rpc
module is pretty clear.
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.
Closes #24 #23
This changeset is reviewable on commit-by-commit basis.