-
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
chore: replace web3-stream-provider
with StreamProvider
from @metamask/providers
#29650
base: main
Are you sure you want to change the base?
Conversation
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 update-policies |
Updated and removed dependencies detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages: npm/[email protected] |
Policies updated. 🧠 Learn how: https://lavamoat.github.io/guides/policy-diff/#what-to-look-for-when-reviewing-a-policy-diff |
@metamaskbot update-policies |
Policies updated. 🧠 Learn how: https://lavamoat.github.io/guides/policy-diff/#what-to-look-for-when-reviewing-a-policy-diff |
6f611fc
to
7066fe8
Compare
2bb3610
to
db8cbbf
Compare
@metamaskbot update-policies |
Policies updated. 🧠 Learn how: https://lavamoat.github.io/guides/policy-diff/#what-to-look-for-when-reviewing-a-policy-diff |
f544f7f
to
3ed696d
Compare
3acfcd6
to
0e2c767
Compare
3ed696d
to
52f8812
Compare
@metamaskbot update-policies |
Policies updated. 🧠 Learn how: https://lavamoat.github.io/guides/policy-diff/#what-to-look-for-when-reviewing-a-policy-diff |
e45f12d
to
f60316b
Compare
@metamaskbot update-policies |
Policies updated. 🧠 Learn how: https://lavamoat.github.io/guides/policy-diff/#what-to-look-for-when-reviewing-a-policy-diff |
Builds ready [b35e0c7]
Page Load Metrics (1660 ± 74 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
b35e0c7
to
c16a7bc
Compare
c16a7bc
to
c83882d
Compare
Builds ready [c83882d]
Page Load Metrics (1447 ± 36 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
Builds ready [a486419]
Page Load Metrics (1788 ± 74 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
@cryptodev-2s Can you explain the problem that this solves in the PR description? I know that this is explained in the original ticket, but putting it in the commit message would save a step if we need to look this up later. |
@metamaskbot update-policies |
5ba1eeb
to
84767fa
Compare
Policies updated. 🧠 Learn how: https://lavamoat.github.io/guides/policy-diff/#what-to-look-for-when-reviewing-a-policy-diff |
@metamaskbot update-policies |
No policy changes |
Builds ready [78283c9]
Page Load Metrics (1652 ± 81 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
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 admit I do not totally understand how we are using streams, so forgive my perhaps dumb questions.
Builds ready [1c55067]
Page Load Metrics (1806 ± 99 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎ This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. |
Builds ready [a75ce9e]
Page Load Metrics (1715 ± 77 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
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.
After reviewing the differences between StreamProvider from web3-stream-provider
and @metamask/providers
and the discussion in this PR, I have enough to wrap my head around this PR. Looks good to me, although it would be nice to have a second opinion.
Builds ready [fd71f0a]
Page Load Metrics (1812 ± 111 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
Description
We use global.ethereumProvider in various places in the UI as an Ethereum provider, but it doesn't support EIP-1193 (it is missing events and the request method). We should replace the existing legacy provider with one that is compatible with EIP-1193.
This PR replaces
web3-stream-provider
withStreamProvider
from@metamask/providers
which is EIP-1193 compatible (only).Related issues
Fixes: #28774
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist