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

feat: replace EnsController with core implementation #23224

Merged
merged 16 commits into from
Mar 1, 2024

Conversation

cryptodev-2s
Copy link
Contributor

@cryptodev-2s cryptodev-2s commented Feb 28, 2024

Description

Following the successful merge of EnsController from the extension to the core Existing EnsController as detailed in MetaMask/core#1129, we should now fully remove the EnsController logic from the extension and instead rely entirely on the core monorepo implementation.

Open in GitHub Codespaces

Related issues

Fixes: 23223

Changelog

  • I’ve followed MetaMask Coding Standards.
  • I've clearly explained what problem this PR is solving and how it is solved.
  • I've linked related issues
  • I've included manual testing steps
  • I've included screenshots/recordings if applicable
  • I’ve included tests if applicable
  • I’ve documented my code using JSDoc format if applicable
  • I’ve applied the right labels on the PR (see labeling guidelines). Not required for external contributors.
  • I’ve properly set the pull request status:
    • In case it's not yet "ready for review", I've set it to "draft".
    • In case it's "ready for review", I've changed it from "draft" to "non-draft".

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

@cryptodev-2s cryptodev-2s self-assigned this Feb 28, 2024
@cryptodev-2s cryptodev-2s requested a review from a team as a code owner February 28, 2024 14:01
@cryptodev-2s cryptodev-2s marked this pull request as draft February 28, 2024 14:01
Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@metamaskbot metamaskbot added the INVALID-PR-TEMPLATE PR's body doesn't match template label Feb 28, 2024
@cryptodev-2s cryptodev-2s changed the title Replace EnsController with core implementation feat: replace EnsController with core implementation Feb 28, 2024
@cryptodev-2s
Copy link
Contributor Author

@metamaskbot update-policies

Copy link

socket-security bot commented Feb 28, 2024

New dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@metamask/[email protected] Transitive: environment, filesystem, network +106 20.9 MB metamaskbot

View full report↗︎

@metamaskbot
Copy link
Collaborator

Policies updated

Copy link

codecov bot commented Feb 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.61%. Comparing base (61a79e0) to head (9a4a742).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #23224      +/-   ##
===========================================
- Coverage    68.65%   68.61%   -0.05%     
===========================================
  Files         1098     1096       -2     
  Lines        43185    43091      -94     
  Branches     11532    11513      -19     
===========================================
- Hits         29647    29563      -84     
+ Misses       13538    13528      -10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cryptodev-2s cryptodev-2s marked this pull request as ready for review February 28, 2024 17:09
@cryptodev-2s cryptodev-2s requested review from a team as code owners February 28, 2024 17:09
@metamaskbot
Copy link
Collaborator

Builds ready [28d5e6d]
Page Load Metrics (1149 ± 469 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint722311274421
domContentLoaded1179352110
load5726041149977469
domInteractive1178352110
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 2.53 KiB (0.07%)
  • ui: 0 Bytes (0.00%)
  • common: 14 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [f068975]
Page Load Metrics (1327 ± 397 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint662171264120
domContentLoaded107130178
load5320921327826397
domInteractive107130178
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 2.53 KiB (0.07%)
  • ui: 0 Bytes (0.00%)
  • common: 14 Bytes (0.00%)

@@ -1,29 +0,0 @@
import { Web3Provider } from '@ethersproject/providers';
import ensNetworkMap from 'ethereum-ens-network-map';
Copy link
Contributor

Choose a reason for hiding this comment

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

Since this package is now no longer imported directly, it can now be removed from dependencies in package.json.

Copy link
Contributor Author

@cryptodev-2s cryptodev-2s Feb 29, 2024

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm, interesting. I wonder if there's some duplicate code that we need to get rid or move into EnsController. We can revisit this in a future PR.

Copy link
Contributor

@legobeat legobeat Mar 1, 2024

Choose a reason for hiding this comment

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

Right. I'm thinking it could be inlined at this point, making it more obvious what's going on?

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh I see, yes, if we inline the ENS registry map then we can bring it in from ens-controller for that particular use case. That makes sense.

@metamaskbot
Copy link
Collaborator

Builds ready [61c5c74]
Page Load Metrics (1053 ± 302 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint791781252914
domContentLoaded1576332110
load7317151053629302
domInteractive1576332110
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 2.53 KiB (0.07%)
  • ui: 0 Bytes (0.00%)
  • common: 14 Bytes (0.00%)

Copy link
Contributor

@mcmire mcmire 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!

@metamaskbot
Copy link
Collaborator

Builds ready [9a4a742]
Page Load Metrics (1428 ± 333 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint702261294421
domContentLoaded87027199
load7922801428694333
domInteractive87027199
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 2.53 KiB (0.07%)
  • ui: 0 Bytes (0.00%)
  • common: 14 Bytes (0.00%)

@cryptodev-2s cryptodev-2s merged commit dc56083 into develop Mar 1, 2024
67 checks passed
@cryptodev-2s cryptodev-2s deleted the feature/23223-remove-ens-controller branch March 1, 2024 14:25
@github-actions github-actions bot locked and limited conversation to collaborators Mar 1, 2024
@metamaskbot metamaskbot added the release-11.13.0 Issue or pull request that will be included in release 11.13.0 label Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
INVALID-PR-TEMPLATE PR's body doesn't match template release-11.13.0 Issue or pull request that will be included in release 11.13.0 team-wallet-framework
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants