Skip to content

Commit

Permalink
wipwip
Browse files Browse the repository at this point in the history
  • Loading branch information
legobeat committed Sep 18, 2023
1 parent bbede58 commit 6610f40
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import {
import type { SemVerRange, SemVerVersion } from '@metamask/utils';
import { AssertionError } from '@metamask/utils';
import fetchMock from 'jest-fetch-mock';
import { createAsyncMiddleware, JsonRpcEngine } from 'json-rpc-engine';
import { createAsyncMiddleware, JsonRpcEngine }from '@metamask/json-rpc-engine';
import { createEngineStream } from 'json-rpc-middleware-stream';
import pump from 'pump';
import type { Duplex } from 'stream';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { SnapRpcHookArgs } from '@metamask/snaps-utils';
import type { MockControllerMessenger } from '@metamask/snaps-utils/test-utils';
import { JsonRpcEngine } from 'json-rpc-engine';
import { JsonRpcEngine }from '@metamask/json-rpc-engine';
import { createEngineStream } from 'json-rpc-middleware-stream';
import pump from 'pump';

Expand Down
2 changes: 1 addition & 1 deletion packages/snaps-controllers/src/test-utils/service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ControllerMessenger } from '@metamask/base-controller';
import { JsonRpcEngine } from 'json-rpc-engine';
import { JsonRpcEngine }from '@metamask/json-rpc-engine';
import { createEngineStream } from 'json-rpc-middleware-stream';
import pump from 'pump';
import type { Duplex } from 'stream';
Expand Down
2 changes: 1 addition & 1 deletion packages/snaps-execution-environments/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@
"lint:dependencies": "depcheck"
},
"dependencies": {
"@metamask/json-rpc-engine": "^7.1.1",
"@metamask/object-multiplex": "^1.2.0",
"@metamask/post-message-stream": "^7.0.0",
"@metamask/providers": "^11.1.1",
"@metamask/rpc-errors": "^6.0.0",
"@metamask/rpc-methods": "workspace:^",
"@metamask/snaps-utils": "workspace:^",
"@metamask/utils": "^8.1.0",
"json-rpc-engine": "^6.1.0",
"nanoid": "^3.1.31",
"pump": "^3.0.0",
"superstruct": "^1.0.3"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {
hasProperty,
getSafeJson,
} from '@metamask/utils';
import { createIdRemapMiddleware } from 'json-rpc-engine';
import { createIdRemapMiddleware }from '@metamask/json-rpc-engine';
import type { Duplex } from 'stream';
import { validate } from 'superstruct';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import ObjectMultiplex from '@metamask/object-multiplex';
import { StreamProvider } from '@metamask/providers';
import type { RequestArguments } from '@metamask/providers/dist/BaseProvider';
import { SNAP_STREAM_NAMES } from '@metamask/snaps-utils';
import { createIdRemapMiddleware } from 'json-rpc-engine';
import { createIdRemapMiddleware }from '@metamask/json-rpc-engine';

import {
assertEthereumOutboundRequest,
Expand Down
2 changes: 1 addition & 1 deletion packages/snaps-simulator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"@metamask/base-controller": "^3.2.0",
"@metamask/browser-passworder": "^4.1.0",
"@metamask/eth-json-rpc-middleware": "^12.0.0",
"@metamask/json-rpc-engine": "^7.1.1",
"@metamask/key-tree": "^9.0.0",
"@metamask/permission-controller": "^4.1.0",
"@metamask/rpc-errors": "^6.0.0",
Expand All @@ -69,7 +70,6 @@
"date-fns": "^2.30.0",
"fast-deep-equal": "^3.1.3",
"framer-motion": "^10.12.8",
"json-rpc-engine": "^6.1.0",
"json-rpc-middleware-stream": "^4.2.0",
"monaco-editor": "^0.38.0",
"pump": "^3.0.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { mnemonicPhraseToBytes } from '@metamask/key-tree';
import { JsonRpcEngine } from 'json-rpc-engine';
import { JsonRpcEngine }from '@metamask/json-rpc-engine';

import { DEFAULT_SRP } from '../configuration';
import { createMiscMethodMiddleware } from './middleware';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type {
JsonRpcMiddleware,
JsonRpcRequest,
PendingJsonRpcResponse,
} from 'json-rpc-engine';
}from '@metamask/json-rpc-engine';

/* eslint-disable @typescript-eslint/naming-convention */
export const methodHandlers = {
Expand Down
4 changes: 2 additions & 2 deletions packages/snaps-simulator/src/features/simulation/sagas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import type {
import { logError } from '@metamask/snaps-utils';
import { getSafeJson } from '@metamask/utils';
import type { PayloadAction } from '@reduxjs/toolkit';
import { JsonRpcEngine } from 'json-rpc-engine';
import { JsonRpcEngine }from '@metamask/json-rpc-engine';
import { createEngineStream } from 'json-rpc-middleware-stream';
import pump from 'pump';
import type { SagaIterator } from 'redux-saga';
Expand Down Expand Up @@ -170,7 +170,7 @@ export function* initSaga({ payload }: PayloadAction<string>) {
const mux = setupMultiplex(rpcStream, 'snapStream');
const stream = mux.createStream(
'metamask-provider',
) as unknown as pump.Stream;
) as pump.Stream;
const providerStream = createEngineStream({ engine });
pump(stream, providerStream, stream);
},
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4842,6 +4842,7 @@ __metadata:
"@metamask/eslint-config-jest": ^12.1.0
"@metamask/eslint-config-nodejs": ^12.1.0
"@metamask/eslint-config-typescript": ^12.1.0
"@metamask/json-rpc-engine": ^7.1.1
"@metamask/key-tree": ^9.0.0
"@metamask/permission-controller": ^4.1.0
"@metamask/rpc-errors": ^6.0.0
Expand Down Expand Up @@ -4869,7 +4870,6 @@ __metadata:
expect-type: ^0.15.0
jest: ^29.0.2
jest-it-up: ^2.0.0
json-rpc-engine: ^6.1.0
prettier: ^2.7.1
prettier-plugin-packagejson: ^2.2.11
rimraf: ^4.1.2
Expand Down Expand Up @@ -5139,6 +5139,7 @@ __metadata:
"@metamask/eslint-config-jest": ^12.1.0
"@metamask/eslint-config-nodejs": ^12.1.0
"@metamask/eslint-config-typescript": ^12.1.0
"@metamask/json-rpc-engine": ^7.1.1
"@metamask/object-multiplex": ^1.2.0
"@metamask/post-message-stream": ^7.0.0
"@metamask/providers": ^11.1.1
Expand Down Expand Up @@ -5182,7 +5183,6 @@ __metadata:
jest: ^29.0.2
jest-environment-node: ^29.5.0
jest-fetch-mock: ^3.0.3
json-rpc-engine: ^6.1.0
lavamoat: ^7.0.0
lavamoat-browserify: ^15.7.1
nanoid: ^3.1.31
Expand Down Expand Up @@ -5325,6 +5325,7 @@ __metadata:
"@metamask/eslint-config-nodejs": ^12.1.0
"@metamask/eslint-config-typescript": ^12.1.0
"@metamask/eth-json-rpc-middleware": ^12.0.0
"@metamask/json-rpc-engine": ^7.1.1
"@metamask/key-tree": ^9.0.0
"@metamask/permission-controller": ^4.1.0
"@metamask/rpc-errors": ^6.0.0
Expand Down Expand Up @@ -5378,7 +5379,6 @@ __metadata:
jest-environment-jsdom: ^29.5.0
jest-fetch-mock: ^3.0.3
jest-it-up: ^2.0.0
json-rpc-engine: ^6.1.0
json-rpc-middleware-stream: ^4.2.0
monaco-editor: ^0.38.0
monaco-editor-webpack-plugin: ^7.0.1
Expand Down

0 comments on commit 6610f40

Please sign in to comment.