-
Notifications
You must be signed in to change notification settings - Fork 75
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
feat(fw): Remove _make_request
and replace using it to EthRPC
methods
#568
Conversation
_make_request
and replace using it to EthRPC.post_request
_make_request
and replace using it to EthRPC.post_request
_make_request
and replace using it to EthRPC.post_request
_make_request
and replace using it to EthRPC.post_request
_make_request
and replace using it to EthRPC
methods
092c223
to
b345f0f
Compare
Hello @danceratopz, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for getting on this!
Whilst reviewing your code, I realized that gentest
is currently broken, so you wouldn't have been able to execute your code. I've addressed this in #576.
It might be worth waiting for #576 to get merged before making heavier changes here, but in the meantime, you can try to get gentest (in the #576 branch) running, for this you'll need access to an archive node. If you don't have one personally, you can get it running using a free endpoint from https://www.portal.grove.city, for example. Check gentest module docstring in #576 for more help.
Otherwise, we use tox to lint and type-check our code in order to enforce our code standards. Some of these are rather pedantic, but are generally very useful. Tox is executed as part of Github but you can run tox locally first to ensure that Github Actions pass. You I fixed up import ordering in 43f5e3f, but we still have a few other issues, which I've noted below. Feel free to ping me for help (danceratopz on telegram/discord, if you get stuck). Here's some help to get started with:
@danceratopz |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some quick comments on my side! Nice one :D
This is required to allow use of 3rd party endpoints (infura, grove, etc).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @artemd24, thanks again for this! I'll be afk for a while and didn't want to leave this hanging while away, so I tried this out today and made a few fixes - I hope you don't mind. I tried to split the commits logically, so you can treat them as a review. I also asked @spencer-tb for some quick feedback 🙂.
Feel free to pick up on @spencer-tb's comments and work on any of them them in a new PR! But don't feel obliged!
@danceratopz @spencer-tb |
Co-authored-by: Art <art@MacBook-Pro-Art.local> Co-authored-by: danceratopz <danceratopz@gmail.com>
🗒️ Description
Remove
_make_request
fromRequestManager
incli.gentest.py
.Replace using
_make_request
to nextEthRPC
methods:get_block_by_number
,get_transaction_by_hash
,debug_trace_call
.Add 2 more new methods to
EthRPC
:get_transaction_by_hash
,debug_trace_call
.Extend
EthRPC
add new methods:get_transaction_by_hash(self, transaction_hash: str)
debug_trace_call(self, tr: RequestManager.RemoteTransaction)
🔗 Related Issues
Resolve #561
✅ Checklist