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: Add EIP-6963 Provider #7541

Merged
merged 28 commits into from
Oct 19, 2023
Merged

feat: Add EIP-6963 Provider #7541

merged 28 commits into from
Oct 19, 2023

Conversation

jiexi
Copy link
Contributor

@jiexi jiexi commented Oct 18, 2023

Description

Bump @metamask/providers to v13.1.0 which includes EIP6963 support. Pass necessary provider info values to the inpage bridge script to properly initialize the provider.

Manual testing steps

  • Visit eip6963.org
  • MetaMask Mobile should show up in the list
  • Click Connect
  • Should show currently connected network

Screenshots/Recordings

Screenshot 2023-10-18 at 4 04 27 PM

Related issues

Fixes: https://github.com/MetaMask/MetaMask-planning/issues/869

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • I've clearly explained:
    • What problem this PR is solving.
    • How this problem was solved.
    • How reviewers can test my changes.
  • I’ve indicated what issue this PR is linked to: Fixes #???
  • I’ve included tests if applicable.
  • I’ve documented any added code.
  • I’ve applied the right labels on the PR (see labeling guidelines).
  • 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.

@github-actions
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.

@jiexi jiexi changed the title Jl/eip 6963 feat: Add EIP-6963 Provider Oct 18, 2023
@jiexi jiexi marked this pull request as ready for review October 18, 2023 23:09
@jiexi jiexi requested a review from a team as a code owner October 18, 2023 23:09
Cal-L
Cal-L previously approved these changes Oct 18, 2023
Copy link
Contributor

@Cal-L Cal-L left a comment

Choose a reason for hiding this comment

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

LGTM

@jiexi
Copy link
Contributor Author

jiexi commented Oct 18, 2023

The assumption here is that Mobile Flask is built off a different branch, thus no build time variables are needed to determine the EIP6963 provider name, icon, and rdns values

@codecov-commenter
Copy link

codecov-commenter commented Oct 18, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (bf25c3e) 34.61% compared to head (f7183f6) 34.61%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7541   +/-   ##
=======================================
  Coverage   34.61%   34.61%           
=======================================
  Files        1019     1019           
  Lines       27193    27193           
  Branches     2218     2218           
=======================================
  Hits         9413     9413           
  Misses      17289    17289           
  Partials      491      491           

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

Copy link
Contributor

@Cal-L Cal-L left a comment

Choose a reason for hiding this comment

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

LGTM

@sonarcloud
Copy link

sonarcloud bot commented Oct 19, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@jiexi jiexi merged commit de4e4d0 into main Oct 19, 2023
25 checks passed
@jiexi jiexi deleted the jl/eip-6963 branch October 19, 2023 00:29
@github-actions github-actions bot locked and limited conversation to collaborators Oct 19, 2023
@jiexi
Copy link
Contributor Author

jiexi commented Oct 31, 2023

Pulled down release/7.10.0 and tested locally

Simulator.Screen.Recording.-.iPhone.12.Pro.-.2023-10-31.at.12.42.38.mp4

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants