Skip to content

Commit

Permalink
deps(network-controller): eth-block-tracker@^8.0.0 -> @metamask/eth-b…
Browse files Browse the repository at this point in the history
…lock-tracker@^9.0.2
  • Loading branch information
legobeat committed May 24, 2024
1 parent 04cbb47 commit 0694001
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"@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": "^3.0.2",
"@metamask/json-rpc-engine": "^8.0.2",
"@metamask/utils": "^8.3.0",
Expand All @@ -74,7 +75,6 @@
"eslint-plugin-n": "^15.7.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-promise": "^6.1.1",
"eth-block-tracker": "^8.0.0",
"execa": "^5.0.0",
"isomorphic-fetch": "^3.0.0",
"jest": "^27.5.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/network-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"dependencies": {
"@metamask/base-controller": "^5.0.2",
"@metamask/controller-utils": "^9.1.0",
"@metamask/eth-block-tracker": "^9.0.2",
"@metamask/eth-json-rpc-infura": "^9.1.0",
"@metamask/eth-json-rpc-middleware": "^12.1.0",
"@metamask/eth-json-rpc-provider": "^3.0.2",
Expand All @@ -52,7 +53,6 @@
"@metamask/swappable-obj-proxy": "^2.2.0",
"@metamask/utils": "^8.3.0",
"async-mutex": "^0.2.6",
"eth-block-tracker": "^8.0.0",
"immer": "^9.0.6",
"uuid": "^8.3.2"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/network-controller/src/create-network-client.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { InfuraNetworkType } from '@metamask/controller-utils';
import { ChainId } from '@metamask/controller-utils';
import { PollingBlockTracker } from '@metamask/eth-block-tracker';
import { createInfuraMiddleware } from '@metamask/eth-json-rpc-infura';
import {
createBlockCacheMiddleware,
Expand All @@ -23,7 +24,6 @@ import {
} from '@metamask/json-rpc-engine';
import type { JsonRpcMiddleware } from '@metamask/json-rpc-engine';
import type { Hex, Json, JsonRpcParams } from '@metamask/utils';
import { PollingBlockTracker } from 'eth-block-tracker';

import type {
BlockTracker,
Expand Down
2 changes: 1 addition & 1 deletion packages/network-controller/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { InfuraNetworkType } from '@metamask/controller-utils';
import type { BlockTracker as BaseBlockTracker } from '@metamask/eth-block-tracker';
import type { SafeEventEmitterProvider } from '@metamask/eth-json-rpc-provider';
import type { Hex } from '@metamask/utils';
import type { BlockTracker as BaseBlockTracker } from 'eth-block-tracker';

export type Provider = SafeEventEmitterProvider;

Expand Down
2 changes: 1 addition & 1 deletion tests/fake-block-tracker.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { PollingBlockTracker } from '@metamask/eth-block-tracker';
import { SafeEventEmitterProvider } from '@metamask/eth-json-rpc-provider';
import { JsonRpcEngine } from '@metamask/json-rpc-engine';
import { PollingBlockTracker } from 'eth-block-tracker';

/**
* Acts like a PollingBlockTracker, but doesn't start the polling loop or
Expand Down
19 changes: 16 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1935,6 +1935,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": ^3.0.2
"@metamask/json-rpc-engine": ^8.0.2
"@metamask/utils": ^8.3.0
Expand All @@ -1954,7 +1955,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
execa: ^5.0.0
isomorphic-fetch: ^3.0.0
jest: ^27.5.1
Expand Down Expand Up @@ -2065,6 +2065,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-hd-keyring@npm:^7.0.1":
version: 7.0.1
resolution: "@metamask/eth-hd-keyring@npm:7.0.1"
Expand Down Expand Up @@ -2126,7 +2139,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 Down Expand Up @@ -2514,6 +2527,7 @@ __metadata:
"@metamask/auto-changelog": ^3.4.4
"@metamask/base-controller": ^5.0.2
"@metamask/controller-utils": ^9.1.0
"@metamask/eth-block-tracker": ^9.0.2
"@metamask/eth-json-rpc-infura": ^9.1.0
"@metamask/eth-json-rpc-middleware": ^12.1.0
"@metamask/eth-json-rpc-provider": ^3.0.2
Expand All @@ -2527,7 +2541,6 @@ __metadata:
"@types/lodash": ^4.14.191
async-mutex: ^0.2.6
deepmerge: ^4.2.2
eth-block-tracker: ^8.0.0
immer: ^9.0.6
jest: ^27.5.1
jest-when: ^3.4.2
Expand Down

0 comments on commit 0694001

Please sign in to comment.