-
-
Notifications
You must be signed in to change notification settings - Fork 187
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
Replace eth-query with ethjs-query? #731
Comments
I guess this is not relevant anymore? #852 |
I agree that this issue and #852 are mutually exclusive. I made them both because I wasn't sure what our long-term strategy was at the time. Now that some time has passed, it seems like this issue is definitely relevant: considering that you've recently forked all of the As for the issue you mentioned, however: is it irrelevant? Perhaps not everyone would agree with the conclusion I gave — there are arguments to be made for not using Ethers for everything — but I think everyone has admitted, or at least hinted, that we ought to use newer libraries, and it sounds like you agree. But perhaps that view has changed? |
Looks like this could be closed by https://app.zenhub.com/workspaces/shared-libraries-621e46b4d7103800171d1b02/issues/zh/244? |
Ah, yes. The new technical proposals answer this question by suggesting that we merge these two libraries together. Closing this since we can discuss this further within that proposal. |
These packages sound the same but they are different.
eth-query
is very simple: it makes a JSON-RPC call to the provider and calls the given callback with an error or the resulting data.ethjs-query
not only makes a JSON-RPC call to the provider, but it also formats the resulting data according to the spec for the RPC method in question. For instance, if the result is an integer, it converts it from hex format to aBN
object. Although, see counterpoint: https://consensys.slack.com/archives/GTQAGKY5V/p1634686296360000?thread_ts=1634676086.354900&cid=GTQAGKY5VRelated issue: #108
The text was updated successfully, but these errors were encountered: