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

providers: Add temporary bare Provider #14

Merged
merged 19 commits into from
Nov 1, 2023

Conversation

Evalir
Copy link
Contributor

@Evalir Evalir commented Nov 1, 2023

Adds a temporary bare Provider which we can use to integrate in Foundry while the NetworkRpcClient abstraction and trait settles, using RpcClient. The impl skeleton we have can be moved to the Provider trait as well.

This also fixes some bugs on the json-rpc crate as well, mainly to make requests work on Anvil which has much more strict JSON-RPC parsing. In more detail:

We're using Anvil for tests, albeit it seems it breaks the MSRV policy as some things on ethers need 1.66.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@Evalir Evalir changed the base branch from main to evalir/add-rpc-types November 1, 2023 14:52
@gakonst
Copy link
Member

gakonst commented Nov 1, 2023

Let's make the tests use Anvil before merging this :) https://github.com/gakonst/ethers-rs/blob/01242ec614e384c9de9aee9effa2f3934ef04b4f/ethers-middleware/src/signer.rs#L470-L472

@Evalir Evalir marked this pull request as ready for review November 1, 2023 20:34
@Evalir Evalir force-pushed the evalir/add-new-provider branch from c5deb1a to 2761995 Compare November 1, 2023 22:32
Unfortunately deserialized untagged unions with RawValue
does not work: serde-rs/json#497
@gakonst gakonst force-pushed the evalir/add-new-provider branch from 6c11fe7 to 0d92ed3 Compare November 1, 2023 23:38
@Evalir Evalir merged commit 2ee87e0 into evalir/add-rpc-types Nov 1, 2023
16 checks passed
@Evalir Evalir deleted the evalir/add-new-provider branch November 7, 2023 20:30
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