From 7ee7e75bed9b22cb03967d715403f94fbeb863d1 Mon Sep 17 00:00:00 2001 From: legobt <6wbvkn0j@anonaddy.me> Date: Thu, 23 May 2024 03:50:48 +0000 Subject: [PATCH] deps: eth-block-tracker@^8.0.0 -> @metamask/eth-block-tracker@9.0.0 --- package.json | 2 +- src/block-cache.test.ts | 2 +- src/block-cache.ts | 2 +- src/block-ref-rewrite.ts | 2 +- src/block-ref.test.ts | 2 +- src/block-ref.ts | 2 +- src/block-tracker-inspector.ts | 2 +- src/retryOnEmpty.test.ts | 2 +- src/retryOnEmpty.ts | 2 +- yarn.lock | 28 ++++++++++++++-------------- 10 files changed, 23 insertions(+), 23 deletions(-) diff --git a/package.json b/package.json index 827f3f4f..8c179ebf 100644 --- a/package.json +++ b/package.json @@ -28,12 +28,12 @@ "test:watch": "jest --watch" }, "dependencies": { + "@metamask/eth-block-tracker": "9.0.0", "@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" diff --git a/src/block-cache.test.ts b/src/block-cache.test.ts index 3073161f..34744593 100644 --- a/src/block-cache.test.ts +++ b/src/block-cache.test.ts @@ -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 '.'; diff --git a/src/block-cache.ts b/src/block-cache.ts index 5bfd7e47..cb4f48d7 100644 --- a/src/block-cache.ts +++ b/src/block-cache.ts @@ -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 { diff --git a/src/block-ref-rewrite.ts b/src/block-ref-rewrite.ts index cdc993c8..95ff342c 100644 --- a/src/block-ref-rewrite.ts +++ b/src/block-ref-rewrite.ts @@ -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'; diff --git a/src/block-ref.test.ts b/src/block-ref.test.ts index 89f8f7ce..2d5f8947 100644 --- a/src/block-ref.test.ts +++ b/src/block-ref.test.ts @@ -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 { diff --git a/src/block-ref.ts b/src/block-ref.ts index 0146ee12..949031c0 100644 --- a/src/block-ref.ts +++ b/src/block-ref.ts @@ -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'; @@ -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'; diff --git a/src/block-tracker-inspector.ts b/src/block-tracker-inspector.ts index eba414ec..6540cb28 100644 --- a/src/block-tracker-inspector.ts +++ b/src/block-tracker-inspector.ts @@ -1,3 +1,4 @@ +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 { @@ -5,7 +6,6 @@ import type { JsonRpcParams, PendingJsonRpcResponse, } from '@metamask/utils'; -import type { PollingBlockTracker } from 'eth-block-tracker'; import { projectLogger, createModuleLogger } from './logging-utils'; diff --git a/src/retryOnEmpty.test.ts b/src/retryOnEmpty.test.ts index b219b23c..27fefb3c 100644 --- a/src/retryOnEmpty.test.ts +++ b/src/retryOnEmpty.test.ts @@ -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'; diff --git a/src/retryOnEmpty.ts b/src/retryOnEmpty.ts index b777f8c2..79d34a71 100644 --- a/src/retryOnEmpty.ts +++ b/src/retryOnEmpty.ts @@ -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'; @@ -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'; diff --git a/yarn.lock b/yarn.lock index c866c685..5ec8e864 100644 --- a/yarn.lock +++ b/yarn.lock @@ -928,6 +928,19 @@ __metadata: languageName: node linkType: hard +"@metamask/eth-block-tracker@npm:9.0.0": + version: 9.0.0 + resolution: "@metamask/eth-block-tracker@npm:9.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: 1069ca945d04a485ca3b92cb6f2744793be9375876c4c995405ee2736e8ca68aba8ecb4a422d40341d5fa708044be4483cbd78ae87ae383c25f3214321322ad9 + languageName: node + linkType: hard + "@metamask/eth-json-rpc-middleware@workspace:.": version: 0.0.0-use.local resolution: "@metamask/eth-json-rpc-middleware@workspace:." @@ -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.0 "@metamask/eth-json-rpc-provider": ^2.1.0 "@metamask/eth-sig-util": ^7.0.0 "@metamask/json-rpc-engine": ^7.1.1 @@ -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 @@ -3046,19 +3059,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"