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

Issue-478: Rosetta Client talks directly to RPC nodes #171

Merged

Conversation

Lohann
Copy link
Collaborator

@Lohann Lohann commented Sep 7, 2023

Description

This PR allows the rosetta-client crate to connect to the RPC node directly, eliminating the need of a connector as a service.

Part of https://github.com/Analog-Labs/testnet/issues/478

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Code review prechecks:

  • Code follows the style guidelines of this project
  • Code has been self-reviewed
  • Inline comments have been added for each method
  • I have made corresponding changes to the documentation
  • Code changes introduces no new problems or warnings
  • Test cases have been added
  • Dependent changes have been merged and published in downstream modules

Copy link
Contributor

@dvc94ch dvc94ch left a comment

Choose a reason for hiding this comment

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

nice work! a lot of the "convolutions" are due to splitting responsibilities between the client (private key handling) and server (rpc handling). I think we can remove or aggregate most of the crates now. All that is needed is one crate per chain (combining config/tx/server) a core crate to define traits and types (for the chain crates), and the rosetta-client (main api), rosetta-wallet (cli tool), rosetta-docker (testing)

@@ -11,6 +10,7 @@ pub use crate::mnemonic::{generate_mnemonic, MnemonicStore};
pub use crate::signer::{RosettaAccount, RosettaPublicKey, Signer};
pub use crate::wallet::EthereumExt;
pub use crate::wallet::Wallet;
use rosetta_core::BlockchainClient;
pub use rosetta_core::{crypto, types, BlockchainConfig, TransactionBuilder};

mod client;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
mod client;

@dvc94ch
Copy link
Contributor

dvc94ch commented Sep 7, 2023

I'll merge so we can update timechain. Looking forward to having a radical reduction in complexity here soon!

@dvc94ch dvc94ch merged commit 75ee9a5 into master Sep 7, 2023
@dvc94ch dvc94ch deleted the feature/issue-478-rosetta-client-talks-directly-to-rpc branch September 7, 2023 08:10
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.

2 participants