-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Implements all methods of the ENS registry #3325
Conversation
…d methods mmarked as deprecated
…updated in a backwards compatible way, and related types extended or updated and required deprecation message vor the 'resolver' method added
…roved for state changing methods of the ENS class
…and adding of the deprecation funcDoc
…d related type tests updated
…cumentation updated
…n warning doesn't get printend into the console as expected
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.
I have added some explanatory comments and a small note for a required improvement of the ENS "unit" tests.
I've kept the ENS e2e tests as they are and will implement them within a separate PR after all the improvements from #3225 are finished. |
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.
This looks great.
There's a bit of a test gap - coverage is dropping almost a point. Do you think it would be possible to use the fixtures you wrote for #3301 to write some simple tests for this?
I think if you put scripts/e2e.ens.sh
inside the unit_and_e2e block in ci.sh (maybe right after geth:auto?), it will get picked up by coveralls and we'd have a measurement for these files.
[EDIT - sorry I just saw this...]
I've kept the ENS e2e tests as they are and will implement them within a separate PR after all the improvements from #3225 are finished.
Is there a conflict with the other items? It seems normal to add the tests with the work.
Yep! I will improve the coverage report! Thanks:)
I've added the base e2e test initially to cover the custom registry case and only added here the unit tests and thought to create all the e2e tests as the last task of #3225. 🤔 |
…already hashed label
@cgewecke Ready for review ping 🎊 :) Edit: |
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.
This looks great, really nice. Thanks so much for taking the the time to write all those tests - that file is huge.
Left a few rewording suggestions in the docs but otherwise LGTM 💯
@cgewecke I will wait on your answers on the un-resolved comments and will merge it after. Thanks for your review Chris much appreciated! :) |
@nivida Sorry - yes this has my approval already :) I closed the open questions and approval X 2! |
Description
This PR does implement all the known methods of the ENS registry and brings more consistency to the ENS module. This as a good base clean up to forward the improvements listed in #3225.
Closed tasks from #3225:
Part of #3225
Things I've done
Registry
methodsResolver
methodsupportsInterface
ENS
module method names and deprecated the legacy onesFindings
eth_call
options can't get passed as expected and are required to for example display the history of owners of a name (You could define thedefaultBlock
property to achieve this but this is definitely not an intuitive way to interact with the API).Type of change
Checklist:
npm run dtslint
with success and extended the tests and types if necessary.npm run test:unit
with success and extended the tests if necessary.npm run build-all
and tested the resulting file/'s fromdist
folder in a browser.CHANGELOG.md
file in the root folder.