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: move types related to providers to evm-rpc-types crate #271

Merged
merged 4 commits into from
Sep 13, 2024

Conversation

gregorydemay
Copy link
Member

Follow-up on #257 to move the following types to the evm_rpc_types crate:

  1. EthMainnetService
  2. EthSepoliaService
  3. HttpHeader
  4. L2MainnetService
  5. RpcApi
  6. RpcConfig
  7. RpcService
  8. RpcServices

so that the public API of all methods in main.rs only use types from that crate as arguments.

@@ -35,17 +30,23 @@ struct CanisterTransport;
#[cfg_attr(target_arch = "wasm32", async_trait(?Send))]
#[cfg_attr(not(target_arch = "wasm32"), async_trait)]
impl RpcTransport for CanisterTransport {
Copy link
Member Author

Choose a reason for hiding this comment

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

This trait is currently defined in cketh_common and that's why we need to still types from that crate here.

@gregorydemay gregorydemay linked an issue Sep 12, 2024 that may be closed by this pull request
@gregorydemay gregorydemay marked this pull request as ready for review September 12, 2024 14:29
# Conflicts:
#	src/types.rs
#	tests/tests.rs
@gregorydemay gregorydemay merged commit 27f43f0 into main Sep 13, 2024
3 checks passed
@gregorydemay gregorydemay deleted the gdemay/243-rpc-to-evm-rpc-types branch September 13, 2024 05:38
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.

Refactor to remove cketh-minter dependency
2 participants