Skip to content
This repository was archived by the owner on Oct 16, 2025. It is now read-only.

refactor: fully extract middleware into EIP-5792 Middleware (monorepo) package#401

Merged
ffmcgee725 merged 2 commits intomainfrom
jc/WAPI-691
Sep 10, 2025
Merged

refactor: fully extract middleware into EIP-5792 Middleware (monorepo) package#401
ffmcgee725 merged 2 commits intomainfrom
jc/WAPI-691

Conversation

@ffmcgee725
Copy link
Copy Markdown
Member

@ffmcgee725 ffmcgee725 commented Sep 5, 2025

Explanation

The newly created EIP-5792 Middleware package (PR #6422) currently contains only the hooks required for the existing wallet middleware. To align with the intended abstraction and reduce the monolithic nature of wallet-middleware, we should fully extract the relevant middleware logic from eth-json-rpc-middleware (GitHub - MetaMask/eth-json-rpc-middleware: Ethereum middleware for composing an Ethereum provider using json-rpc-engine. Intended to replace provider-engine) into this new package.

This PR removes the identified middleware into @metamask/eip-5792-middleware.

PR #6477 from https://github.com/MetaMask/core moves this middleware to the specified package.

@ffmcgee725 ffmcgee725 marked this pull request as ready for review September 8, 2025 10:40
@ffmcgee725 ffmcgee725 requested review from a team as code owners September 8, 2025 10:40
Copy link
Copy Markdown
Member

@jiexi jiexi left a comment

Choose a reason for hiding this comment

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

Unsure what the convention is for this repo (or if it's the same for all repos), but maybe add a CHANGELOG entry?

@ffmcgee725
Copy link
Copy Markdown
Member Author

@jiexi digging into other PRs, it seems the pattern in this repo is to update CHANGELOG.md on the release PR itself, and not preemptively like we do on monorepo.

@ffmcgee725 ffmcgee725 merged commit 7f3ec47 into main Sep 10, 2025
20 checks passed
@ffmcgee725 ffmcgee725 deleted the jc/WAPI-691 branch September 10, 2025 13:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants