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

chore: remove @metamask/eth-query package #29649

Merged
merged 4 commits into from
Jan 15, 2025

Conversation

cryptodev-2s
Copy link
Contributor

@cryptodev-2s cryptodev-2s commented Jan 12, 2025

Description

This PR removes @metamask/eth-query package by using directly the provider without using any wrapper package.

The purpose of this PR is to simplify and break down the process of replacing web3-stream-provider (issue), which uses the legacy sendAsync method and is not EIP-1193 compliant, with StreamProvider from @metamask/providers, which fully adheres to the EIP-1193 Specs.

Open in GitHub Codespaces

Related issues

Fixes: partially completes #28774

Manual testing steps

Screenshots/Recordings

Before

After

Pre-merge author checklist

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 Jan 12, 2025
@cryptodev-2s cryptodev-2s requested a review from a team as a code owner January 12, 2025 13:20
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.

@cryptodev-2s cryptodev-2s marked this pull request as draft January 12, 2025 13:20
@cryptodev-2s cryptodev-2s changed the title chore: remove @metemask/eth-query package chore: remove @metamask/eth-query package Jan 12, 2025
@cryptodev-2s
Copy link
Contributor Author

@metamaskbot update-policies

@metamaskbot
Copy link
Collaborator

Policies updated.
👀 Please review the diff for suspicious new powers.

🧠 Learn how: https://lavamoat.github.io/guides/policy-diff/#what-to-look-for-when-reviewing-a-policy-diff

@metamaskbot
Copy link
Collaborator

Builds ready [6f611fc]
Page Load Metrics (1476 ± 40 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint1368166714888842
domContentLoaded1318165514578239
load1370166814768340
domInteractive205835136
backgroundConnect85520167
firstReactRender1599363015
getState480212211
initialActions01000
loadScripts967127810787436
setupStore69710
uiStartup15462016177415574

@cryptodev-2s cryptodev-2s marked this pull request as ready for review January 12, 2025 14:54
@cryptodev-2s cryptodev-2s requested review from a team as code owners January 12, 2025 14:54
@cryptodev-2s cryptodev-2s force-pushed the cryptodev2s/remove-ethsjs branch from f43efd9 to 6b3c256 Compare January 13, 2025 10:57
@cryptodev-2s cryptodev-2s force-pushed the cryptodev2s/remove-eth-query-package branch from 6f611fc to 7066fe8 Compare January 13, 2025 12:09
@cryptodev-2s
Copy link
Contributor Author

@metamaskbot update-policies

@metamaskbot
Copy link
Collaborator

Policies updated.
👀 Please review the diff for suspicious new powers.

🧠 Learn how: https://lavamoat.github.io/guides/policy-diff/#what-to-look-for-when-reviewing-a-policy-diff

@metamaskbot
Copy link
Collaborator

Builds ready [f4d3e00]
Page Load Metrics (1671 ± 65 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint14731933167413263
domContentLoaded14221907164813565
load14761943167113565
domInteractive24183594823
backgroundConnect95822147
firstReactRender1571362210
getState459242110
initialActions01000
loadScripts10371435122011455
setupStore6401184
uiStartup17062232189914469

@cryptodev-2s cryptodev-2s requested a review from a team as a code owner January 13, 2025 14:09
@metamaskbot
Copy link
Collaborator

Builds ready [3acfcd6]
Page Load Metrics (1579 ± 36 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint1455176615856933
domContentLoaded1440170815456833
load1450176815797536
domInteractive226434136
backgroundConnect999362612
firstReactRender16101413014
getState45617168
initialActions01000
loadScripts1045132111526632
setupStore678192512
uiStartup161322861922213102

Base automatically changed from cryptodev2s/remove-ethsjs to main January 14, 2025 17:46
@cryptodev-2s cryptodev-2s force-pushed the cryptodev2s/remove-eth-query-package branch from 3acfcd6 to 0e2c767 Compare January 14, 2025 18:51
@cryptodev-2s
Copy link
Contributor Author

@metamaskbot update-policies

@metamaskbot
Copy link
Collaborator

Policies updated.
👀 Please review the diff for suspicious new powers.

🧠 Learn how: https://lavamoat.github.io/guides/policy-diff/#what-to-look-for-when-reviewing-a-policy-diff

@metamaskbot
Copy link
Collaborator

Builds ready [6d7441d]
Page Load Metrics (1805 ± 92 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint33923471734379182
domContentLoaded15332280177319192
load15632302180519192
domInteractive24123472713
backgroundConnect12111272311
firstReactRender16101493316
getState590322814
initialActions01000
loadScripts11371752131915776
setupStore66416199
uiStartup170028292191297143
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -476 Bytes (-0.01%)
  • ui: -152 Bytes (-0.00%)
  • common: 197 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.

Just one thing I noticed.

ui/ducks/swaps/swaps.js Show resolved Hide resolved
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.

LGTM.

Copy link
Member

@OGPoyraz OGPoyraz left a comment

Choose a reason for hiding this comment

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

Confirmation changes LGTM

@cryptodev-2s cryptodev-2s added this pull request to the merge queue Jan 15, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 15, 2025
@cryptodev-2s cryptodev-2s added this pull request to the merge queue Jan 15, 2025
@cryptodev-2s cryptodev-2s removed this pull request from the merge queue due to a manual request Jan 15, 2025
@cryptodev-2s cryptodev-2s added this pull request to the merge queue Jan 15, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [658241b]
Page Load Metrics (1687 ± 72 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint14962124168115273
domContentLoaded14542048164914670
load14962137168715172
domInteractive247836157
backgroundConnect787302311
firstReactRender16108523316
getState495172311
initialActions01000
loadScripts10331583120812359
setupStore64711126
uiStartup169129392045296142
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -476 Bytes (-0.01%)
  • ui: -152 Bytes (-0.00%)
  • common: 197 Bytes (0.00%)

Merged via the queue into main with commit 3944d7e Jan 15, 2025
80 checks passed
@cryptodev-2s cryptodev-2s deleted the cryptodev2s/remove-eth-query-package branch January 15, 2025 13:23
@github-actions github-actions bot locked and limited conversation to collaborators Jan 15, 2025
@metamaskbot metamaskbot added the release-12.11.0 Issue or pull request that will be included in release 12.11.0 label Jan 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.11.0 Issue or pull request that will be included in release 12.11.0 team-wallet-framework
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

6 participants