From b56a50b5a1c33ef2598da3bdcdfa72e5e0b90d80 Mon Sep 17 00:00:00 2001 From: Kevin Ingersoll Date: Thu, 31 Oct 2024 17:09:12 +0000 Subject: [PATCH] chore(block-logs-stream): remove unnecessary abitype dep (#3351) --- packages/block-logs-stream/package.json | 1 - packages/block-logs-stream/src/blockRangeToLogs.ts | 3 +-- packages/block-logs-stream/src/fetchLogs.ts | 3 +-- pnpm-lock.yaml | 3 --- 4 files changed, 2 insertions(+), 8 deletions(-) diff --git a/packages/block-logs-stream/package.json b/packages/block-logs-stream/package.json index b3c90282c9..fe13680686 100644 --- a/packages/block-logs-stream/package.json +++ b/packages/block-logs-stream/package.json @@ -34,7 +34,6 @@ }, "dependencies": { "@latticexyz/common": "workspace:*", - "abitype": "catalog:", "debug": "^4.3.4", "rxjs": "7.5.5", "viem": "catalog:" diff --git a/packages/block-logs-stream/src/blockRangeToLogs.ts b/packages/block-logs-stream/src/blockRangeToLogs.ts index 39c7866fb8..c4225aa8fc 100644 --- a/packages/block-logs-stream/src/blockRangeToLogs.ts +++ b/packages/block-logs-stream/src/blockRangeToLogs.ts @@ -1,7 +1,6 @@ import { EMPTY, OperatorFunction, concatMap, from, pipe, tap } from "rxjs"; import { FetchLogsOptions, FetchLogsResult, fetchLogs } from "./fetchLogs"; -import { AbiEvent } from "abitype"; -import { BlockNumber, UnionOmit } from "viem"; +import { AbiEvent, BlockNumber, UnionOmit } from "viem"; import { debug } from "./debug"; export type BlockRangeToLogsOptions = UnionOmit< diff --git a/packages/block-logs-stream/src/fetchLogs.ts b/packages/block-logs-stream/src/fetchLogs.ts index 19cdab05c7..b5497ab04f 100644 --- a/packages/block-logs-stream/src/fetchLogs.ts +++ b/packages/block-logs-stream/src/fetchLogs.ts @@ -1,5 +1,4 @@ -import { AbiEvent } from "abitype"; -import { Address, Client, BlockNumber, GetLogsReturnType, OneOf } from "viem"; +import { Address, Client, BlockNumber, GetLogsReturnType, OneOf, AbiEvent } from "viem"; import { bigIntMax, bigIntMin, wait } from "@latticexyz/common/utils"; import { debug } from "./debug"; import { getAction } from "viem/utils"; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d270ffe27d..190e56648c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -132,9 +132,6 @@ importers: '@latticexyz/common': specifier: workspace:* version: link:../common - abitype: - specifier: 'catalog:' - version: 1.0.6(typescript@5.4.2)(zod@3.23.8) debug: specifier: ^4.3.4 version: 4.3.4