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

Add EnsController #151

Merged
merged 4 commits into from
Sep 10, 2019
Merged

Add EnsController #151

merged 4 commits into from
Sep 10, 2019

Conversation

rekmarks
Copy link
Member

@rekmarks rekmarks commented Aug 29, 2019

Adds an EnsController. It keeps track of ENS name and their resolved addresses for the purpose of taking some useful action (e.g. warning the user in the UI).

Addresses and ENS names (see util.ts:normalizeEnsName) are normalized before being added. ENS name normalization added to address book controller as well.

ENS name normalization and verification should be updated in the extension if this change is integrated. That should amount to importing normalizeEnsName from src/util.ts.

@rekmarks rekmarks self-assigned this Aug 29, 2019
@rekmarks rekmarks added the enhancement New feature or request label Aug 29, 2019
@codecov-io
Copy link

codecov-io commented Aug 29, 2019

Codecov Report

Merging #151 into develop will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff           @@
##           develop   #151   +/-   ##
======================================
  Coverage      100%   100%           
======================================
  Files           21     22    +1     
  Lines         1439   1484   +45     
  Branches       193    206   +13     
======================================
+ Hits          1439   1484   +45
Impacted Files Coverage Δ
src/third-party/EnsController.ts 100% <100%> (ø)
src/util.ts 100% <100%> (ø) ⬆️
src/user/AddressBookController.ts 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d680065...cc1bea1. Read the comment docs.

@rekmarks rekmarks marked this pull request as ready for review September 5, 2019 21:11
Copy link
Contributor

@jennypollack jennypollack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, just one question

@rekmarks rekmarks merged commit 2574d0b into MetaMask:develop Sep 10, 2019
@rekmarks rekmarks deleted the ens-controller branch September 10, 2019 02:59
kanthesha pushed a commit that referenced this pull request Oct 11, 2023
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
add EnsController and tests
use ENS name normalization in address book
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
add EnsController and tests
use ENS name normalization in address book
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants