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

refactor: connection and functions #53

Closed
wants to merge 1 commit into from

Conversation

vladimirvolek
Copy link
Member

No description provided.

@vladimirvolek vladimirvolek changed the title refactor: refactor connection and functions refactor: connection and functions Nov 14, 2024
@@ -22,44 +17,9 @@ pub struct NodeConn {
}

impl NodeConn {
/// Submits a transaction to the connected Cardano node.
pub async fn submit_transaction(&mut self, tx: String) -> Result<String, BlockfrostError> {
Copy link
Member

@michalrus michalrus Nov 14, 2024

Choose a reason for hiding this comment

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

I don’t know if @ginnun didn't mean to keep the interface as it was, so we could still call NodeConn::submit_transaction, but move the implementations out?

So the pub fns in NodeConn would just be proxy methods?

There's definitely room for a discussion :)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Sorry I am late to the party. I think we can aim to have one interface to call whatever we need, but split the interface whenever we want.

Meaning;

  • Expose all the functionality via NodeCon::whatever (rename NodeConn to NodeClient?)
  • Split the functnianality implementation into multiple hidden modules. Similar to Pallas itself, but the interface is one big interface.

Copy link
Member

Choose a reason for hiding this comment

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

↑ agree

@michalrus michalrus deleted the refactor-node-more branch November 14, 2024 13:27
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.

3 participants