Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/npm_and_yarn/main/metamask/eth-js…
Browse files Browse the repository at this point in the history
…on-rpc-provider-2.3.2
  • Loading branch information
legobeat committed May 23, 2024
2 parents 722b416 + 1e1e6a0 commit 893fc7c
Show file tree
Hide file tree
Showing 12 changed files with 92 additions and 66 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Lines starting with '#' are comments.
# Each line is a file pattern followed by one or more owners.

* @MetaMask/devs
* @MetaMask/shared-libraries-engineers
43 changes: 43 additions & 0 deletions .github/workflows/security-code-scanner.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: 'MetaMask Security Code Scanner'

on:
push:
branches: ['main']
pull_request:
branches: ['main']

jobs:
run-security-scan:
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: MetaMask Security Code Scanner
uses: MetaMask/Security-Code-Scanner@main
with:
repo: ${{ github.repository }}
paths_ignored: |
.storybook/
'**/__snapshots__/'
'**/*.snap'
'**/*.stories.js'
'**/*.stories.tsx'
'**/*.test.browser.ts*'
'**/*.test.js*'
'**/*.test.ts*'
'**/fixtures/'
'**/jest.config.js'
'**/jest.environment.js'
'**/mocks/'
'**/test*/'
docs/
e2e/
merged-packages/
node_modules
storybook/
test*/
rules_excluded: example
project_metrics_token: ${{ secrets.SECURITY_SCAN_METRICS_TOKEN }}
slack_webhook: ${{ secrets.APPSEC_BOT_SLACK_WEBHOOK }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@
"test:watch": "jest --watch"
},
"dependencies": {
"@metamask/eth-block-tracker": "^9.0.2",
"@metamask/eth-json-rpc-provider": "^2.1.0",
"@metamask/eth-sig-util": "^7.0.0",
"@metamask/json-rpc-engine": "^7.1.1",
"@metamask/rpc-errors": "^6.0.0",
"@metamask/utils": "^8.1.0",
"eth-block-tracker": "^8.0.0",
"klona": "^2.0.6",
"pify": "^5.0.0",
"safe-stable-stringify": "^2.4.3"
Expand Down
2 changes: 1 addition & 1 deletion src/block-cache.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { PollingBlockTracker } from '@metamask/eth-block-tracker';
import { providerFromEngine } from '@metamask/eth-json-rpc-provider';
import { JsonRpcEngine } from '@metamask/json-rpc-engine';
import { PollingBlockTracker } from 'eth-block-tracker';
import pify from 'pify';

import { createBlockCacheMiddleware } from '.';
Expand Down
2 changes: 1 addition & 1 deletion src/block-cache.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { PollingBlockTracker } from '@metamask/eth-block-tracker';
import { createAsyncMiddleware } from '@metamask/json-rpc-engine';
import type { Json, JsonRpcParams, JsonRpcRequest } from '@metamask/utils';
import type { PollingBlockTracker } from 'eth-block-tracker';

import { projectLogger, createModuleLogger } from './logging-utils';
import type {
Expand Down
2 changes: 1 addition & 1 deletion src/block-ref-rewrite.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { PollingBlockTracker } from '@metamask/eth-block-tracker';
import type { JsonRpcMiddleware } from '@metamask/json-rpc-engine';
import { createAsyncMiddleware } from '@metamask/json-rpc-engine';
import type { Json, JsonRpcParams } from '@metamask/utils';
import type { PollingBlockTracker } from 'eth-block-tracker';

import { blockTagParamIndex } from './utils/cache';

Expand Down
2 changes: 1 addition & 1 deletion src/block-ref.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { PollingBlockTracker } from '@metamask/eth-block-tracker';
import { providerFromEngine } from '@metamask/eth-json-rpc-provider';
import type { SafeEventEmitterProvider } from '@metamask/eth-json-rpc-provider';
import type { JsonRpcMiddleware } from '@metamask/json-rpc-engine';
import { JsonRpcEngine } from '@metamask/json-rpc-engine';
import { PollingBlockTracker } from 'eth-block-tracker';

import { createBlockRefMiddleware } from '.';
import {
Expand Down
2 changes: 1 addition & 1 deletion src/block-ref.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { PollingBlockTracker } from '@metamask/eth-block-tracker';
import type { SafeEventEmitterProvider } from '@metamask/eth-json-rpc-provider';
import type { JsonRpcMiddleware } from '@metamask/json-rpc-engine';
import { createAsyncMiddleware } from '@metamask/json-rpc-engine';
Expand All @@ -6,7 +7,6 @@ import type {
JsonRpcParams,
PendingJsonRpcResponse,
} from '@metamask/utils';
import type { PollingBlockTracker } from 'eth-block-tracker';
import { klona } from 'klona/full';
import pify from 'pify';

Expand Down
2 changes: 1 addition & 1 deletion src/block-tracker-inspector.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import type { PollingBlockTracker } from '@metamask/eth-block-tracker';
import type { JsonRpcMiddleware } from '@metamask/json-rpc-engine';
import { createAsyncMiddleware } from '@metamask/json-rpc-engine';
import type {
Json,
JsonRpcParams,
PendingJsonRpcResponse,
} from '@metamask/utils';
import type { PollingBlockTracker } from 'eth-block-tracker';

import { projectLogger, createModuleLogger } from './logging-utils';

Expand Down
2 changes: 1 addition & 1 deletion src/retryOnEmpty.test.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { PollingBlockTracker } from '@metamask/eth-block-tracker';
import { providerFromEngine } from '@metamask/eth-json-rpc-provider';
import type { SafeEventEmitterProvider } from '@metamask/eth-json-rpc-provider';
import type { JsonRpcMiddleware } from '@metamask/json-rpc-engine';
import { JsonRpcEngine } from '@metamask/json-rpc-engine';
import { errorCodes, rpcErrors } from '@metamask/rpc-errors';
import type { Json, JsonRpcParams, JsonRpcRequest } from '@metamask/utils';
import { PollingBlockTracker } from 'eth-block-tracker';

import { createRetryOnEmptyMiddleware } from '.';
import type { ProviderRequestStub } from '../test/util/helpers';
Expand Down
2 changes: 1 addition & 1 deletion src/retryOnEmpty.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { PollingBlockTracker } from '@metamask/eth-block-tracker';
import type { SafeEventEmitterProvider } from '@metamask/eth-json-rpc-provider';
import type { JsonRpcMiddleware } from '@metamask/json-rpc-engine';
import { createAsyncMiddleware } from '@metamask/json-rpc-engine';
Expand All @@ -6,7 +7,6 @@ import type {
JsonRpcParams,
PendingJsonRpcResponse,
} from '@metamask/utils';
import type { PollingBlockTracker } from 'eth-block-tracker';
import { klona } from 'klona/full';
import pify from 'pify';

Expand Down
95 changes: 39 additions & 56 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -928,6 +928,19 @@ __metadata:
languageName: node
linkType: hard

"@metamask/eth-block-tracker@npm:^9.0.2":
version: 9.0.2
resolution: "@metamask/eth-block-tracker@npm:9.0.2"
dependencies:
"@metamask/eth-json-rpc-provider": ^2.3.1
"@metamask/safe-event-emitter": ^3.0.0
"@metamask/utils": ^8.1.0
json-rpc-random-id: ^1.0.1
pify: ^5.0.0
checksum: ec66cb100b011cafb2052bf0ab6935336ea4c8afd1f6c48326faf362a387d36112b5fffe296f3c75edfb09b29516182015c6f31ee6cb615c0ef4d2aa4ddb9c88
languageName: node
linkType: hard

"@metamask/eth-json-rpc-middleware@workspace:.":
version: 0.0.0-use.local
resolution: "@metamask/eth-json-rpc-middleware@workspace:."
Expand All @@ -939,6 +952,7 @@ __metadata:
"@metamask/eslint-config-jest": ^12.1.0
"@metamask/eslint-config-nodejs": ^12.1.0
"@metamask/eslint-config-typescript": ^12.1.0
"@metamask/eth-block-tracker": ^9.0.2
"@metamask/eth-json-rpc-provider": ^2.1.0
"@metamask/eth-sig-util": ^7.0.0
"@metamask/json-rpc-engine": ^7.1.1
Expand All @@ -958,7 +972,6 @@ __metadata:
eslint-plugin-n: ^15.7.0
eslint-plugin-prettier: ^4.2.1
eslint-plugin-promise: ^6.1.1
eth-block-tracker: ^8.0.0
jest: ^27.5.1
klona: ^2.0.6
pify: ^5.0.0
Expand All @@ -972,7 +985,7 @@ __metadata:
languageName: unknown
linkType: soft

"@metamask/eth-json-rpc-provider@npm:^2.1.0":
"@metamask/eth-json-rpc-provider@npm:^2.1.0, @metamask/eth-json-rpc-provider@npm:^2.3.1":
version: 2.3.2
resolution: "@metamask/eth-json-rpc-provider@npm:2.3.2"
dependencies:
Expand All @@ -997,35 +1010,24 @@ __metadata:
languageName: node
linkType: hard

"@metamask/json-rpc-engine@npm:^7.1.1":
version: 7.3.1
resolution: "@metamask/json-rpc-engine@npm:7.3.1"
dependencies:
"@metamask/rpc-errors": ^6.1.0
"@metamask/safe-event-emitter": ^3.0.0
"@metamask/utils": ^8.2.0
checksum: 4952eb4e70c0011d334fb4a9bf56aa2d68bef745c892dddd06f6ed7e6303fb95b3b60b4e32c88b6d77bfc5091acc8e71ad274f389419e4bdcc5741ef49cde87d
languageName: node
linkType: hard

"@metamask/json-rpc-engine@npm:^7.3.2":
version: 7.3.2
resolution: "@metamask/json-rpc-engine@npm:7.3.2"
"@metamask/json-rpc-engine@npm:^7.1.1, @metamask/json-rpc-engine@npm:^7.3.2":
version: 7.3.3
resolution: "@metamask/json-rpc-engine@npm:7.3.3"
dependencies:
"@metamask/rpc-errors": ^6.1.0
"@metamask/rpc-errors": ^6.2.1
"@metamask/safe-event-emitter": ^3.0.0
"@metamask/utils": ^8.3.0
checksum: 396861afc72944af410d5b06c81806db2fd9812206dbf799438f42d974edac6931f6814133adf52d6aa233d5ea3f3629663ef4f54a0cf9ccb948ce9b527137fd
checksum: 7bab8b4d2341a6243ba451bc58283f0a6905b09f7257857859848a51a795444ca6899b1a6908b15f8ed236fb574ab85a630c9cb28d127ab52c4630e496c16006
languageName: node
linkType: hard

"@metamask/rpc-errors@npm:^6.0.0, @metamask/rpc-errors@npm:^6.1.0":
version: 6.1.0
resolution: "@metamask/rpc-errors@npm:6.1.0"
"@metamask/rpc-errors@npm:^6.0.0, @metamask/rpc-errors@npm:^6.2.1":
version: 6.2.1
resolution: "@metamask/rpc-errors@npm:6.2.1"
dependencies:
"@metamask/utils": ^8.1.0
"@metamask/utils": ^8.3.0
fast-safe-stringify: ^2.0.6
checksum: 9f4821d804e2fcaa8987b0958d02c6d829b7c7db49740c811cb593f381d0c4b00dabb7f1802907f1b2f6126f7c0d83ec34219183d29650f5d24df014ac72906a
checksum: a9223c3cb9ab05734ea0dda990597f90a7cdb143efa0c026b1a970f2094fe5fa3c341ed39b1e7623be13a96b98fb2c697ef51a2e2b87d8f048114841d35ee0a9
languageName: node
linkType: hard

Expand All @@ -1036,25 +1038,9 @@ __metadata:
languageName: node
linkType: hard

"@metamask/utils@npm:^8.0.0, @metamask/utils@npm:^8.1.0, @metamask/utils@npm:^8.2.0":
version: 8.2.1
resolution: "@metamask/utils@npm:8.2.1"
dependencies:
"@ethereumjs/tx": ^4.2.0
"@noble/hashes": ^1.3.1
"@scure/base": ^1.1.3
"@types/debug": ^4.1.7
debug: ^4.3.4
pony-cause: ^2.1.10
semver: ^7.5.4
superstruct: ^1.0.3
checksum: 36a714a17e4949d2040bedb28d4373a22e7e86bb797aa2d59223f9799fd76e662443bcede113719c4e200f5e9d90a9d62feafad5028fff8b9a7a85fface097ca
languageName: node
linkType: hard

"@metamask/utils@npm:^8.3.0":
version: 8.3.0
resolution: "@metamask/utils@npm:8.3.0"
"@metamask/utils@npm:^8.0.0, @metamask/utils@npm:^8.1.0, @metamask/utils@npm:^8.3.0":
version: 8.4.0
resolution: "@metamask/utils@npm:8.4.0"
dependencies:
"@ethereumjs/tx": ^4.2.0
"@noble/hashes": ^1.3.1
Expand All @@ -1064,7 +1050,8 @@ __metadata:
pony-cause: ^2.1.10
semver: ^7.5.4
superstruct: ^1.0.3
checksum: cd60c49b4c0397fb31e6b38937a0d9346cbb8337cb8add59db8db0e0e2156fb063ff4df93a26410157f0cc02aa9a9b785fc1b53cfc4ab73204462893ed11cacb
uuid: ^9.0.1
checksum: b0397e97bac7192f6189a8625a2dfcb56d3c2cf4dd2cb3d4e012a7e9786f04f59f6917805544bc131a6dacd2c8344e237ae43ad47429bb5eb35c6cf1248440b4
languageName: node
linkType: hard

Expand Down Expand Up @@ -3073,19 +3060,6 @@ __metadata:
languageName: node
linkType: hard

"eth-block-tracker@npm:^8.0.0":
version: 8.0.0
resolution: "eth-block-tracker@npm:8.0.0"
dependencies:
"@metamask/eth-json-rpc-provider": ^2.1.0
"@metamask/safe-event-emitter": ^3.0.0
"@metamask/utils": ^8.1.0
json-rpc-random-id: ^1.0.1
pify: ^5.0.0
checksum: 3416c2ee653f81d1f71f3a9b80e04837fb516494f64ded45c053dfc24c6c6ce8dac7e5b8376cd57f52838f43a93d20a8e17d4d875e50d1e4c267543ffe0e6ad8
languageName: node
linkType: hard

"ethereum-cryptography@npm:^2.0.0, ethereum-cryptography@npm:^2.1.2":
version: 2.1.2
resolution: "ethereum-cryptography@npm:2.1.2"
Expand Down Expand Up @@ -6722,6 +6696,15 @@ __metadata:
languageName: node
linkType: hard

"uuid@npm:^9.0.1":
version: 9.0.1
resolution: "uuid@npm:9.0.1"
bin:
uuid: dist/bin/uuid
checksum: 39931f6da74e307f51c0fb463dc2462807531dc80760a9bff1e35af4316131b4fc3203d16da60ae33f07fdca5b56f3f1dd662da0c99fea9aaeab2004780cc5f4
languageName: node
linkType: hard

"v8-compile-cache-lib@npm:^3.0.1":
version: 3.0.1
resolution: "v8-compile-cache-lib@npm:3.0.1"
Expand Down

0 comments on commit 893fc7c

Please sign in to comment.