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: simplify EthRpcClient #278

Merged
merged 42 commits into from
Sep 18, 2024
Merged

Conversation

gregorydemay
Copy link
Collaborator

@gregorydemay gregorydemay commented Sep 17, 2024

Follow-up on #275 to simplify EthRpcClient:

  1. simplify instantiation by removing intermediate methods between CandidRpcClient::new (the caller) and EthRpcClient::new
  2. Change the field EthRpcClient::providers to be non-optional, since any instantiation of the client checks that the given providers are not empty.
  3. Remove the trait RpcTransport and the dependency on async-trait, since a single implementation was used

Base automatically changed from gdemay/243-cketh-client to main September 18, 2024 09:37
# Conflicts:
#	Cargo.toml
#	src/candid_rpc.rs
#	src/candid_rpc/cketh_conversion.rs
#	src/main.rs
#	src/rpc_client/checked_amount/mod.rs
#	src/rpc_client/eth_rpc/mod.rs
#	src/rpc_client/eth_rpc/tests.rs
#	src/rpc_client/eth_rpc_error/mod.rs
#	src/rpc_client/mod.rs
#	src/rpc_client/tests.rs
@gregorydemay gregorydemay merged commit 557cd56 into main Sep 18, 2024
3 checks passed
@gregorydemay gregorydemay deleted the gdemay/243-cketh-client-simplify branch September 18, 2024 14:04
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