From 6b18315a680a5aced179b8d0d2deb5d9a0106a93 Mon Sep 17 00:00:00 2001 From: officeyutong Date: Mon, 2 Dec 2024 16:31:29 +0800 Subject: [PATCH] fix @ckb-ccc/core imports --- light-client-js/src/index.ts | 6 ++---- light-client-js/src/types.ts | 3 +-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/light-client-js/src/index.ts b/light-client-js/src/index.ts index 91f7e8c..2278e2a 100644 --- a/light-client-js/src/index.ts +++ b/light-client-js/src/index.ts @@ -1,9 +1,7 @@ import { ClientFindCellsResponse, ClientFindTransactionsGroupedResponse, ClientFindTransactionsResponse, ClientIndexerSearchKeyLike, ClientIndexerSearchKeyTransactionLike, ClientTransactionResponse } from "@ckb-ccc/core/client"; import { FetchResponse, JsonRpcLocalNode, JsonRpcRemoteNode, JsonRpcScriptStatus, LocalNode, localNodeTo, RemoteNode, remoteNodeTo, ScriptStatus, scriptStatusFrom, scriptStatusTo, transformFetchResponse } from "./types"; -import { JsonRpcTransformers } from "@ckb-ccc/core/client/jsonRpc/transformers"; -import { Num, numFrom, NumLike, numToHex } from "@ckb-ccc/core/num"; -import { ClientBlock, ClientBlockHeader, Hex, hexFrom, HexLike, TransactionLike } from "@ckb-ccc/core/barrel"; -import { JsonRpcBlockHeader } from "@ckb-ccc/core/advancedBarrel"; +import { ClientBlock, ClientBlockHeader, Hex, hexFrom, HexLike, Num, numFrom, NumLike, numToHex, TransactionLike } from "@ckb-ccc/core/barrel"; +import { JsonRpcBlockHeader, JsonRpcTransformers } from "@ckb-ccc/core/advancedBarrel"; const DEFAULT_BUFFER_SIZE = 50 * (1 << 20); /** * A LightClient instance diff --git a/light-client-js/src/types.ts b/light-client-js/src/types.ts index 5e330d2..18a3888 100644 --- a/light-client-js/src/types.ts +++ b/light-client-js/src/types.ts @@ -1,6 +1,5 @@ import { JsonRpcScript, JsonRpcTransformers } from "@ckb-ccc/core/advancedBarrel"; -import { Script } from "@ckb-ccc/core/barrel"; -import { Num } from "@ckb-ccc/core/num"; +import { Num, Script } from "@ckb-ccc/core/barrel"; interface WorkerInitializeOptions { inputBuffer: SharedArrayBuffer;