-
-
Notifications
You must be signed in to change notification settings - Fork 252
refactor!(eth-json-rpc-provider): Migrate to JsonRpcEngineV2
#7001
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
Open
rekmarks
wants to merge
19
commits into
main
Choose a base branch
from
rekm/ejrpcp-v2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+454
−364
Open
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
6fa9296
refactor: Support JsonRpcEngineV2
rekmarks 7c06c59
test: Add missing test case
rekmarks 047f815
docs: Update changelog
rekmarks 5893198
fix: Ensure json-rpc-engine/v2 can be resolved without builds
rekmarks 560f6b2
refactor(provider): prefer v2 JsonRpcServer; wrap legacy engines; tig…
rekmarks 84d3ae2
docs: Update changelogs
rekmarks e41057a
fix: Handle errors properly in asV2Middleware
rekmarks 38b66a0
test: Remove `undefined` from NetworkController "empty values" test c…
rekmarks 3c58ca3
chore: Restore eslint directive
rekmarks fa7e3e8
refactor: Touch up internal types, docs
rekmarks 3156a14
refactor!: Remove providerFromEngine
rekmarks ea28c55
refactor: Remove undefined from empty values array
rekmarks 4c0a2f4
docs: Update changelogs
rekmarks 4685f4a
refactor: Use JsonRpcEngineV2 instead of JsonRpcServer
rekmarks 7aff105
test: Remove red herring from test matcher
rekmarks 35ecbdf
docs: Update changelogs per review feedback
rekmarks 4ebd3d4
refactor: Replace uuid with nanoid for internal provider ids
rekmarks 5280dc1
chore: Lint
rekmarks 3af776f
Merge branch 'main' into rekm/ejrpcp-v2
rekmarks File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -56,7 +56,7 @@ | |
| "@metamask/json-rpc-engine": "^10.1.1", | ||
| "@metamask/rpc-errors": "^7.0.2", | ||
| "@metamask/utils": "^11.8.1", | ||
| "uuid": "^8.3.2" | ||
| "nanoid": "^3.3.8" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Admittedly when I added |
||
| }, | ||
| "devDependencies": { | ||
| "@ethersproject/providers": "^5.7.0", | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.