mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
eth-rpc-errors@4.0.2 (#10226)
This commit is contained in:
parent
4fef2b7443
commit
30ff153103
@ -3,7 +3,7 @@ import { JsonRpcEngine } from 'json-rpc-engine'
|
|||||||
import { ObservableStore } from '@metamask/obs-store'
|
import { ObservableStore } from '@metamask/obs-store'
|
||||||
import log from 'loglevel'
|
import log from 'loglevel'
|
||||||
import { CapabilitiesController as RpcCap } from 'rpc-cap'
|
import { CapabilitiesController as RpcCap } from 'rpc-cap'
|
||||||
import { ethErrors } from 'eth-json-rpc-errors'
|
import { ethErrors } from 'eth-rpc-errors'
|
||||||
import { cloneDeep } from 'lodash'
|
import { cloneDeep } from 'lodash'
|
||||||
|
|
||||||
import { CAVEAT_NAMES } from '../../../../shared/constants/permissions'
|
import { CAVEAT_NAMES } from '../../../../shared/constants/permissions'
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { createAsyncMiddleware } from 'json-rpc-engine'
|
import { createAsyncMiddleware } from 'json-rpc-engine'
|
||||||
import { ethErrors } from 'eth-json-rpc-errors'
|
import { ethErrors } from 'eth-rpc-errors'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create middleware for handling certain methods and preprocessing permissions requests.
|
* Create middleware for handling certain methods and preprocessing permissions requests.
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { strict as assert } from 'assert'
|
import { strict as assert } from 'assert'
|
||||||
import { ObservableStore } from '@metamask/obs-store'
|
import { ObservableStore } from '@metamask/obs-store'
|
||||||
import { ethErrors } from 'eth-json-rpc-errors'
|
import { ethErrors } from 'eth-rpc-errors'
|
||||||
import { normalize as normalizeAddress } from 'eth-sig-util'
|
import { normalize as normalizeAddress } from 'eth-sig-util'
|
||||||
import { isValidAddress } from 'ethereumjs-util'
|
import { isValidAddress } from 'ethereumjs-util'
|
||||||
import ethers from 'ethers'
|
import ethers from 'ethers'
|
||||||
|
@ -3,7 +3,7 @@ import { ObservableStore } from '@metamask/obs-store'
|
|||||||
import ethUtil from 'ethereumjs-util'
|
import ethUtil from 'ethereumjs-util'
|
||||||
import Transaction from 'ethereumjs-tx'
|
import Transaction from 'ethereumjs-tx'
|
||||||
import EthQuery from 'ethjs-query'
|
import EthQuery from 'ethjs-query'
|
||||||
import { ethErrors } from 'eth-json-rpc-errors'
|
import { ethErrors } from 'eth-rpc-errors'
|
||||||
import abi from 'human-standard-token-abi'
|
import abi from 'human-standard-token-abi'
|
||||||
import { ethers } from 'ethers'
|
import { ethers } from 'ethers'
|
||||||
import NonceTracker from 'nonce-tracker'
|
import NonceTracker from 'nonce-tracker'
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { isValidAddress } from 'ethereumjs-util'
|
import { isValidAddress } from 'ethereumjs-util'
|
||||||
import { ethErrors } from 'eth-json-rpc-errors'
|
import { ethErrors } from 'eth-rpc-errors'
|
||||||
import { addHexPrefix } from '../../../lib/util'
|
import { addHexPrefix } from '../../../lib/util'
|
||||||
import { TRANSACTION_STATUSES } from '../../../../../shared/constants/transaction'
|
import { TRANSACTION_STATUSES } from '../../../../../shared/constants/transaction'
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import EventEmitter from 'events'
|
import EventEmitter from 'events'
|
||||||
import { ObservableStore } from '@metamask/obs-store'
|
import { ObservableStore } from '@metamask/obs-store'
|
||||||
import ethUtil from 'ethereumjs-util'
|
import ethUtil from 'ethereumjs-util'
|
||||||
import { ethErrors } from 'eth-json-rpc-errors'
|
import { ethErrors } from 'eth-rpc-errors'
|
||||||
import log from 'loglevel'
|
import log from 'loglevel'
|
||||||
import { MESSAGE_TYPE } from '../../../shared/constants/app'
|
import { MESSAGE_TYPE } from '../../../shared/constants/app'
|
||||||
import { addHexPrefix } from './util'
|
import { addHexPrefix } from './util'
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import EventEmitter from 'events'
|
import EventEmitter from 'events'
|
||||||
import { ObservableStore } from '@metamask/obs-store'
|
import { ObservableStore } from '@metamask/obs-store'
|
||||||
import { ethErrors } from 'eth-json-rpc-errors'
|
import { ethErrors } from 'eth-rpc-errors'
|
||||||
import log from 'loglevel'
|
import log from 'loglevel'
|
||||||
import { MESSAGE_TYPE } from '../../../shared/constants/app'
|
import { MESSAGE_TYPE } from '../../../shared/constants/app'
|
||||||
import createId from './random-id'
|
import createId from './random-id'
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import EventEmitter from 'events'
|
import EventEmitter from 'events'
|
||||||
import { ObservableStore } from '@metamask/obs-store'
|
import { ObservableStore } from '@metamask/obs-store'
|
||||||
import ethUtil from 'ethereumjs-util'
|
import ethUtil from 'ethereumjs-util'
|
||||||
import { ethErrors } from 'eth-json-rpc-errors'
|
import { ethErrors } from 'eth-rpc-errors'
|
||||||
import { MESSAGE_TYPE } from '../../../shared/constants/app'
|
import { MESSAGE_TYPE } from '../../../shared/constants/app'
|
||||||
import createId from './random-id'
|
import createId from './random-id'
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import EventEmitter from 'events'
|
import EventEmitter from 'events'
|
||||||
import { ObservableStore } from '@metamask/obs-store'
|
import { ObservableStore } from '@metamask/obs-store'
|
||||||
import ethUtil from 'ethereumjs-util'
|
import ethUtil from 'ethereumjs-util'
|
||||||
import { ethErrors } from 'eth-json-rpc-errors'
|
import { ethErrors } from 'eth-rpc-errors'
|
||||||
import log from 'loglevel'
|
import log from 'loglevel'
|
||||||
import { MESSAGE_TYPE } from '../../../shared/constants/app'
|
import { MESSAGE_TYPE } from '../../../shared/constants/app'
|
||||||
import { addHexPrefix } from './util'
|
import { addHexPrefix } from './util'
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import EventEmitter from 'events'
|
import EventEmitter from 'events'
|
||||||
import assert from 'assert'
|
import assert from 'assert'
|
||||||
import { ObservableStore } from '@metamask/obs-store'
|
import { ObservableStore } from '@metamask/obs-store'
|
||||||
import { ethErrors } from 'eth-json-rpc-errors'
|
import { ethErrors } from 'eth-rpc-errors'
|
||||||
import { typedSignatureHash, TYPED_MESSAGE_SCHEMA } from 'eth-sig-util'
|
import { typedSignatureHash, TYPED_MESSAGE_SCHEMA } from 'eth-sig-util'
|
||||||
import { isValidAddress } from 'ethereumjs-util'
|
import { isValidAddress } from 'ethereumjs-util'
|
||||||
import log from 'loglevel'
|
import log from 'loglevel'
|
||||||
|
@ -105,7 +105,6 @@
|
|||||||
"end-of-stream": "^1.4.4",
|
"end-of-stream": "^1.4.4",
|
||||||
"eth-block-tracker": "^4.4.2",
|
"eth-block-tracker": "^4.4.2",
|
||||||
"eth-ens-namehash": "^2.0.8",
|
"eth-ens-namehash": "^2.0.8",
|
||||||
"eth-json-rpc-errors": "^2.0.2",
|
|
||||||
"eth-json-rpc-filters": "^4.2.1",
|
"eth-json-rpc-filters": "^4.2.1",
|
||||||
"eth-json-rpc-infura": "^5.1.0",
|
"eth-json-rpc-infura": "^5.1.0",
|
||||||
"eth-json-rpc-middleware": "^6.0.0",
|
"eth-json-rpc-middleware": "^6.0.0",
|
||||||
@ -113,6 +112,7 @@
|
|||||||
"eth-method-registry": "^2.0.0",
|
"eth-method-registry": "^2.0.0",
|
||||||
"eth-phishing-detect": "^1.1.14",
|
"eth-phishing-detect": "^1.1.14",
|
||||||
"eth-query": "^2.1.2",
|
"eth-query": "^2.1.2",
|
||||||
|
"eth-rpc-errors": "^4.0.2",
|
||||||
"eth-sig-util": "^3.0.0",
|
"eth-sig-util": "^3.0.0",
|
||||||
"eth-trezor-keyring": "^0.4.0",
|
"eth-trezor-keyring": "^0.4.0",
|
||||||
"ethereum-ens-network-map": "^1.0.2",
|
"ethereum-ens-network-map": "^1.0.2",
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { ethErrors, ERROR_CODES } from 'eth-json-rpc-errors'
|
import { ethErrors, errorCodes } from 'eth-rpc-errors'
|
||||||
import deepFreeze from 'deep-freeze-strict'
|
import deepFreeze from 'deep-freeze-strict'
|
||||||
|
|
||||||
import { ApprovalController } from '@metamask/controllers'
|
import { ApprovalController } from '@metamask/controllers'
|
||||||
@ -336,7 +336,7 @@ export const getters = deepFreeze({
|
|||||||
return {
|
return {
|
||||||
// name: 'EthereumRpcError',
|
// name: 'EthereumRpcError',
|
||||||
message: `Failed to add 'eth_accounts' to '${origin}'.`,
|
message: `Failed to add 'eth_accounts' to '${origin}'.`,
|
||||||
code: ERROR_CODES.rpc.internal,
|
code: errorCodes.rpc.internal,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -9747,13 +9747,6 @@ eth-hd-keyring@^3.5.0:
|
|||||||
events "^1.1.1"
|
events "^1.1.1"
|
||||||
xtend "^4.0.1"
|
xtend "^4.0.1"
|
||||||
|
|
||||||
eth-json-rpc-errors@^2.0.2:
|
|
||||||
version "2.0.2"
|
|
||||||
resolved "https://registry.yarnpkg.com/eth-json-rpc-errors/-/eth-json-rpc-errors-2.0.2.tgz#c1965de0301fe941c058e928bebaba2e1285e3c4"
|
|
||||||
integrity sha512-uBCRM2w2ewusRHGxN8JhcuOb2RN3ueAOYH/0BhqdFmQkZx5lj5+fLKTz0mIVOzd4FG5/kUksCzCD7eTEim6gaA==
|
|
||||||
dependencies:
|
|
||||||
fast-safe-stringify "^2.0.6"
|
|
||||||
|
|
||||||
eth-json-rpc-filters@^4.2.1:
|
eth-json-rpc-filters@^4.2.1:
|
||||||
version "4.2.1"
|
version "4.2.1"
|
||||||
resolved "https://registry.yarnpkg.com/eth-json-rpc-filters/-/eth-json-rpc-filters-4.2.1.tgz#82204a13c99927dbf42cbb3962846650c6281f33"
|
resolved "https://registry.yarnpkg.com/eth-json-rpc-filters/-/eth-json-rpc-filters-4.2.1.tgz#82204a13c99927dbf42cbb3962846650c6281f33"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user