-
Notifications
You must be signed in to change notification settings - Fork 252
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
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
force-pushed
the
evalir/add-new-provider
branch
from
November 1, 2023 22:32
c5deb1a
to
2761995
Compare
Unfortunately deserialized untagged unions with RawValue does not work: serde-rs/json#497
gakonst
force-pushed
the
evalir/add-new-provider
branch
from
November 1, 2023 23:38
6c11fe7
to
0d92ed3
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds a temporary bare
Provider
which we can use to integrate in Foundry while theNetworkRpcClient
abstraction and trait settles, usingRpcClient
. Theimpl
skeleton we have can be moved to theProvider
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:RequestPacket
was only sending the request params without the other fields (id, method, jsonrpc: 2.0), which I filed here: [Bug] JSON-RPC:RequestPacket
serializes only the request portion, not the entire JSON-RPC request #15 and fixed with the payload typeResponsePacket
was unable to deserialize responses, as we need to manually implement the deserializer.We're using Anvil for tests, albeit it seems it breaks the MSRV policy as some things on ethers need 1.66.
PR Checklist