Skip to content

Commit

Permalink
deps: json-rpc-engine@^6.1.0 -> @metamask/json-rpc-engine@^7.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
legobeat committed Apr 17, 2024
1 parent 57dc748 commit 0a3bf83
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion app/core/BackgroundBridge/BackgroundBridge.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable import/no-commonjs */
import URL from 'url-parse';
import { ChainId } from '@metamask/controller-utils';
import { JsonRpcEngine } from 'json-rpc-engine';
import { JsonRpcEngine } from '@metamask/json-rpc-engine';
import MobilePortStream from '../MobilePortStream';
import { setupMultiplex } from '../../util/streams';
import {
Expand Down
2 changes: 1 addition & 1 deletion app/core/RPCMethods/RPCMethodMiddleware.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
JsonRpcRequest,
JsonRpcResponse,
JsonRpcSuccess,
} from 'json-rpc-engine';
} from '@metamask/json-rpc-engine';
import type { Transaction } from '@metamask/transaction-controller';
import type { ProviderConfig } from '@metamask/network-controller';
import { providerErrors, rpcErrors } from '@metamask/rpc-errors';
Expand Down
2 changes: 1 addition & 1 deletion app/core/RPCMethods/RPCMethodMiddleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { getVersion } from 'react-native-device-info';
import {
createAsyncMiddleware,
JsonRpcEngineCallbackError,
} from 'json-rpc-engine';
} from '@metamask/json-rpc-engine';
import { providerErrors, rpcErrors } from '@metamask/rpc-errors';
import {
EndFlowOptions,
Expand Down
2 changes: 1 addition & 1 deletion app/core/RPCMethods/eth_sendTransaction.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// eslint-disable-next-line import/no-nodejs-modules
import { inspect } from 'util';
import type { JsonRpcRequest, PendingJsonRpcResponse } from 'json-rpc-engine';
import type { JsonRpcRequest, PendingJsonRpcResponse } from '@metamask/json-rpc-engine';
import type {
Transaction,
TransactionController,
Expand Down
2 changes: 1 addition & 1 deletion app/core/RPCMethods/eth_sendTransaction.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { JsonRpcRequest, PendingJsonRpcResponse } from 'json-rpc-engine';
import type { JsonRpcRequest, PendingJsonRpcResponse } from '@metamask/json-rpc-engine';
import {
TransactionController,
WalletDevice,
Expand Down
2 changes: 1 addition & 1 deletion app/core/RPCMethods/wallet_watchAsset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
} from '../../constants/error';
import { selectChainId } from '../../selectors/networkController';
import { isValidAddress } from 'ethereumjs-util';
import { JsonRpcRequest, PendingJsonRpcResponse } from 'json-rpc-engine';
import { JsonRpcRequest, PendingJsonRpcResponse } from '@metamask/json-rpc-engine';

const wallet_watchAsset = async ({
req,
Expand Down
2 changes: 1 addition & 1 deletion app/core/SanitizationMiddleware.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { JsonRpcMiddleware, JsonRpcRequest } from 'json-rpc-engine';
import { JsonRpcMiddleware, JsonRpcRequest } from '@metamask/json-rpc-engine';
import { addHexPrefix } from 'ethereumjs-util';

// We use this to clean any custom params from the txParams
Expand Down
2 changes: 1 addition & 1 deletion app/core/Snaps/SnapBridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
createSwappableProxy,
createEventEmitterProxy,
} from '@metamask/swappable-obj-proxy';
import { JsonRpcEngine } from 'json-rpc-engine';
import { JsonRpcEngine } from '@metamask/json-rpc-engine';
import { createEngineStream } from 'json-rpc-middleware-stream';
import { NetworksChainId } from '@metamask/controller-utils';

Expand Down
2 changes: 1 addition & 1 deletion app/core/WalletConnect/extractApprovedAccounts.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Caveat, ValidPermission } from '@metamask/permission-controller';
import { Json } from 'json-rpc-engine';
import { Json } from '@metamask/json-rpc-engine';

export const extractApprovedAccounts = (
accountPermission:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@
"@metamask/eth-sig-util": "^4.0.1",
"@metamask/etherscan-link": "^2.0.0",
"@metamask/gas-fee-controller": "^7.0.0",
"@metamask/json-rpc-engine": "^7.1.0",
"@metamask/key-tree": "^9.0.0",
"@metamask/keyring-api": "^4.0.0",
"@metamask/keyring-controller": "^8.1.0",
Expand Down Expand Up @@ -232,7 +233,6 @@
"human-standard-token-abi": "^2.0.0",
"humanize-duration": "^3.27.2",
"is-url": "^1.2.4",
"json-rpc-engine": "^6.1.0",
"json-rpc-middleware-stream": "3.0.0",
"lodash": "^4.17.21",
"lottie-ios": "3.4.1",
Expand Down

0 comments on commit 0a3bf83

Please sign in to comment.