Skip to content

Commit 7f3ec47

Browse files
authored
refactor: fully extract middleware into EIP-5792 Middleware (monorepo) package (#401)
<!-- Thanks for your contribution! Take a moment to answer these questions so that reviewers have the information they need to properly understand your changes: * What is the current state of things and why does it need to change? * What is the solution your changes offer and how does it work? Are there any issues or other links reviewers should consult to understand this pull request better? For instance: * Fixes #12345 * See: #67890 --> ## Explanation The newly created EIP-5792 Middleware package ([PR #6422](MetaMask/core#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](https://github.com/MetaMask/eth-json-rpc-middleware)) into this new package. This PR removes the identified middleware into @metamask/eip-5792-middleware. PR [#6477](MetaMask/core#6477) from https://github.com/MetaMask/core moves this middleware to the specified package. * Fixes https://consensyssoftware.atlassian.net/browse/WAPI-691
1 parent 815f352 commit 7f3ec47

8 files changed

+0
-736
lines changed

src/index.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,6 @@ export * from './block-ref';
44
export * from './block-tracker-inspector';
55
export { createFetchMiddleware } from './fetch';
66
export * from './inflight-cache';
7-
export type {
8-
GetCallsStatusHook,
9-
GetCallsStatusParams,
10-
GetCallsStatusResult,
11-
} from './methods/wallet-get-calls-status';
12-
export { GetCallsStatusCode } from './methods/wallet-get-calls-status';
13-
export type {
14-
GetCapabilitiesHook,
15-
GetCapabilitiesParams,
16-
GetCapabilitiesResult,
17-
} from './methods/wallet-get-capabilities';
18-
export type {
19-
ProcessSendCallsHook,
20-
SendCalls,
21-
SendCallsParams,
22-
SendCallsResult,
23-
} from './methods/wallet-send-calls';
247
export type {
258
RequestExecutionPermissionsRequestParams,
269
RequestExecutionPermissionsResult,

src/methods/wallet-get-calls-status.test.ts

Lines changed: 0 additions & 122 deletions
This file was deleted.

src/methods/wallet-get-calls-status.ts

Lines changed: 0 additions & 70 deletions
This file was deleted.

src/methods/wallet-get-capabilities.test.ts

Lines changed: 0 additions & 134 deletions
This file was deleted.

0 commit comments

Comments
 (0)