Skip to content

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

Merged
merged 5 commits into from
Nov 22, 2023
Merged

shim: initial work #32

merged 5 commits into from
Nov 22, 2023

Conversation

pepyakin
Copy link
Contributor

@pepyakin pepyakin commented Nov 21, 2023

Closes #24 #23

This changeset is reviewable on commit-by-commit basis.

@pepyakin pepyakin force-pushed the pep-shim branch 2 times, most recently from f14a4ca to ba7ba2c Compare November 21, 2023 18:38
@pepyakin pepyakin mentioned this pull request Nov 21, 2023
@pepyakin pepyakin changed the title sugondat-shim: initial work shim: initial work Nov 21, 2023

#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
pub struct Block {
// TODO: Hash should be a newtype that serializes to hex.
Copy link
Contributor

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?

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

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;
Copy link
Contributor

@rphmeier rphmeier Nov 21, 2023

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?

Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@pepyakin pepyakin merged commit 7572999 into main Nov 22, 2023
@pepyakin pepyakin deleted the pep-shim branch November 22, 2023 10:25
@pepyakin pepyakin mentioned this pull request Nov 22, 2023
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.

sugondat-shim
2 participants