diff --git a/packages/ens-referrals/src/v1/api/deserialize.ts b/packages/ens-referrals/src/v1/api/deserialize.ts index 8b79bce816..2a40d5ba88 100644 --- a/packages/ens-referrals/src/v1/api/deserialize.ts +++ b/packages/ens-referrals/src/v1/api/deserialize.ts @@ -1,6 +1,6 @@ import { prettifyError } from "zod/v4"; -import { deserializePriceEth, deserializePriceUsdc } from "@ensnode/ensnode-sdk/internal"; +import { deserializePriceEth, deserializePriceUsdc } from "@ensnode/ensnode-sdk"; import type { AggregatedReferrerMetrics } from "../aggregations"; import type { ReferrerLeaderboardPage } from "../leaderboard-page"; diff --git a/packages/ens-referrals/src/v1/api/serialize.ts b/packages/ens-referrals/src/v1/api/serialize.ts index ba425c3504..608d6328a0 100644 --- a/packages/ens-referrals/src/v1/api/serialize.ts +++ b/packages/ens-referrals/src/v1/api/serialize.ts @@ -1,4 +1,4 @@ -import { serializePriceEth, serializePriceUsdc } from "@ensnode/ensnode-sdk/internal"; +import { serializePriceEth, serializePriceUsdc } from "@ensnode/ensnode-sdk"; import type { AggregatedReferrerMetrics } from "../aggregations"; import type { ReferrerLeaderboardPage } from "../leaderboard-page"; diff --git a/packages/ensnode-sdk/src/api/name-tokens/response.ts b/packages/ensnode-sdk/src/api/name-tokens/response.ts index 1e3b6f8fec..0708de54dc 100644 --- a/packages/ensnode-sdk/src/api/name-tokens/response.ts +++ b/packages/ensnode-sdk/src/api/name-tokens/response.ts @@ -1,5 +1,5 @@ import type { InterpretedName, Node } from "../../ens"; -import type { UnixTimestamp } from "../../shared"; +import type { UnixTimestamp } from "../../shared/types"; import type { NameToken, NameTokenOwnershipTypes } from "../../tokenscope"; import type { ErrorResponse } from "../shared/errors"; diff --git a/packages/ensnode-sdk/src/api/registrar-actions/filters.ts b/packages/ensnode-sdk/src/api/registrar-actions/filters.ts index b9f646e664..825b1d0115 100644 --- a/packages/ensnode-sdk/src/api/registrar-actions/filters.ts +++ b/packages/ensnode-sdk/src/api/registrar-actions/filters.ts @@ -1,7 +1,7 @@ import type { Address } from "viem"; import type { Node } from "../../ens"; -import type { UnixTimestamp } from "../../shared"; +import type { UnixTimestamp } from "../../shared/types"; import { type RegistrarActionsFilter, type RegistrarActionsFilterBeginTimestamp, diff --git a/packages/ensnode-sdk/src/api/registrar-actions/request.ts b/packages/ensnode-sdk/src/api/registrar-actions/request.ts index a2ae981133..a03e206827 100644 --- a/packages/ensnode-sdk/src/api/registrar-actions/request.ts +++ b/packages/ensnode-sdk/src/api/registrar-actions/request.ts @@ -1,7 +1,7 @@ import type { Address } from "viem"; import type { Node } from "../../ens"; -import type { UnixTimestamp } from "../../shared"; +import type { UnixTimestamp } from "../../shared/types"; import type { RequestPageParams } from "../shared/pagination"; /** diff --git a/packages/ensnode-sdk/src/api/registrar-actions/response.ts b/packages/ensnode-sdk/src/api/registrar-actions/response.ts index 3c2eab094d..1b7f22211c 100644 --- a/packages/ensnode-sdk/src/api/registrar-actions/response.ts +++ b/packages/ensnode-sdk/src/api/registrar-actions/response.ts @@ -1,6 +1,6 @@ import type { InterpretedName } from "../../ens"; import type { RegistrarAction } from "../../registrars"; -import type { UnixTimestamp } from "../../shared"; +import type { UnixTimestamp } from "../../shared/types"; import type { IndexingStatusResponseCodes } from "../indexing-status"; import type { ErrorResponse } from "../shared/errors"; import type { ResponsePageContext } from "../shared/pagination"; diff --git a/packages/ensnode-sdk/src/ens/coin-type.ts b/packages/ensnode-sdk/src/ens/coin-type.ts index 03674014f8..c18ee9b0ce 100644 --- a/packages/ensnode-sdk/src/ens/coin-type.ts +++ b/packages/ensnode-sdk/src/ens/coin-type.ts @@ -4,7 +4,7 @@ import { evmChainIdToCoinType as _evmChainIdToCoinType, } from "@ensdomains/address-encoder/utils"; -import type { ChainId } from "../shared"; +import type { ChainId } from "../shared/types"; // re-export CoinType and EvmCoinType from @ensdomains/address-encoder // so consumers don't need it as a dependency diff --git a/packages/ensnode-sdk/src/ens/dns-encoded-name.test.ts b/packages/ensnode-sdk/src/ens/dns-encoded-name.test.ts index 1c219b498d..ed70a378cd 100644 --- a/packages/ensnode-sdk/src/ens/dns-encoded-name.test.ts +++ b/packages/ensnode-sdk/src/ens/dns-encoded-name.test.ts @@ -2,7 +2,7 @@ import { bytesToHex, stringToHex } from "viem"; import { packetToBytes } from "viem/ens"; import { describe, expect, it } from "vitest"; -import { labelhashLiteralLabel } from "../shared"; +import { labelhashLiteralLabel } from "../shared/labelhash"; import { decodeDNSEncodedName } from "./dns-encoded-name"; import { encodeLabelHash } from "./encode-labelhash"; import type { DNSEncodedName, LiteralLabel } from "./types"; diff --git a/packages/ensnode-sdk/src/ens/parse-reverse-name.ts b/packages/ensnode-sdk/src/ens/parse-reverse-name.ts index 44b753e101..f9e35bf614 100644 --- a/packages/ensnode-sdk/src/ens/parse-reverse-name.ts +++ b/packages/ensnode-sdk/src/ens/parse-reverse-name.ts @@ -1,6 +1,6 @@ import { type Address, hexToBigInt, isAddress } from "viem"; -import { asLowerCaseAddress } from "../shared"; +import { asLowerCaseAddress } from "../shared/address"; import { bigintToCoinType, type CoinType, DEFAULT_EVM_COIN_TYPE, ETH_COIN_TYPE } from "./coin-type"; import type { Label, Name } from "./types"; diff --git a/packages/ensnode-sdk/src/ensindexer/config/serialize.ts b/packages/ensnode-sdk/src/ensindexer/config/serialize.ts index a73cef4c94..3b137f7e41 100644 --- a/packages/ensnode-sdk/src/ensindexer/config/serialize.ts +++ b/packages/ensnode-sdk/src/ensindexer/config/serialize.ts @@ -1,4 +1,4 @@ -import type { ChainId } from "../../shared"; +import type { ChainId } from "../../shared/types"; import type { SerializedENSIndexerPublicConfig, SerializedIndexedChainIds, diff --git a/packages/ensnode-sdk/src/ensindexer/config/serialized-types.ts b/packages/ensnode-sdk/src/ensindexer/config/serialized-types.ts index 97a7869163..9ddc2181e8 100644 --- a/packages/ensnode-sdk/src/ensindexer/config/serialized-types.ts +++ b/packages/ensnode-sdk/src/ensindexer/config/serialized-types.ts @@ -1,4 +1,4 @@ -import type { ChainId } from "../../shared"; +import type { ChainId } from "../../shared/types"; import type { ENSIndexerPublicConfig, ENSIndexerVersionInfo } from "./types"; export type SerializedIndexedChainIds = Array; diff --git a/packages/ensnode-sdk/src/ensindexer/config/types.ts b/packages/ensnode-sdk/src/ensindexer/config/types.ts index 9923e00a49..9c43616400 100644 --- a/packages/ensnode-sdk/src/ensindexer/config/types.ts +++ b/packages/ensnode-sdk/src/ensindexer/config/types.ts @@ -1,7 +1,7 @@ import type { ENSNamespaceId } from "@ensnode/datasources"; import type { EnsRainbowClientLabelSet } from "../../ensrainbow"; -import type { ChainId } from "../../shared"; +import type { ChainId } from "../../shared/types"; /** * A PluginName is a unique id for a 'plugin': we use the notion of diff --git a/packages/ensnode-sdk/src/ensindexer/config/zod-schemas.ts b/packages/ensnode-sdk/src/ensindexer/config/zod-schemas.ts index 21625b91ff..5e4b5b972b 100644 --- a/packages/ensnode-sdk/src/ensindexer/config/zod-schemas.ts +++ b/packages/ensnode-sdk/src/ensindexer/config/zod-schemas.ts @@ -8,7 +8,7 @@ */ import { z } from "zod/v4"; -import { uniq } from "../../shared"; +import { uniq } from "../../shared/collections"; import { makeChainIdSchema, makeENSNamespaceIdSchema, diff --git a/packages/ensnode-sdk/src/ensindexer/indexing-status/helpers.test.ts b/packages/ensnode-sdk/src/ensindexer/indexing-status/helpers.test.ts index ce62a6aeed..88343d2c2d 100644 --- a/packages/ensnode-sdk/src/ensindexer/indexing-status/helpers.test.ts +++ b/packages/ensnode-sdk/src/ensindexer/indexing-status/helpers.test.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from "vitest"; -import type { BlockRef } from "../../shared"; +import type { BlockRef } from "../../shared/types"; import { createIndexingConfig, getOmnichainIndexingCursor, diff --git a/packages/ensnode-sdk/src/ensindexer/indexing-status/helpers.ts b/packages/ensnode-sdk/src/ensindexer/indexing-status/helpers.ts index 1eb58fa9de..085923944a 100644 --- a/packages/ensnode-sdk/src/ensindexer/indexing-status/helpers.ts +++ b/packages/ensnode-sdk/src/ensindexer/indexing-status/helpers.ts @@ -1,4 +1,4 @@ -import type { BlockRef, ChainId, UnixTimestamp } from "../../shared"; +import type { BlockRef, ChainId, UnixTimestamp } from "../../shared/types"; import { type ChainIndexingConfig, type ChainIndexingConfigDefinite, diff --git a/packages/ensnode-sdk/src/ensindexer/indexing-status/projection.ts b/packages/ensnode-sdk/src/ensindexer/indexing-status/projection.ts index 2567317058..5989d36310 100644 --- a/packages/ensnode-sdk/src/ensindexer/indexing-status/projection.ts +++ b/packages/ensnode-sdk/src/ensindexer/indexing-status/projection.ts @@ -1,4 +1,4 @@ -import type { UnixTimestamp } from "../../shared"; +import type { UnixTimestamp } from "../../shared/types"; import type { CrossChainIndexingStatusSnapshot, RealtimeIndexingStatusProjection } from "./types"; /** diff --git a/packages/ensnode-sdk/src/ensindexer/indexing-status/serialize.ts b/packages/ensnode-sdk/src/ensindexer/indexing-status/serialize.ts index c108bce107..d356585052 100644 --- a/packages/ensnode-sdk/src/ensindexer/indexing-status/serialize.ts +++ b/packages/ensnode-sdk/src/ensindexer/indexing-status/serialize.ts @@ -1,4 +1,6 @@ -import { type ChainId, type ChainIdString, serializeChainId } from "../../shared"; +import { serializeChainId } from "../../shared/serialize"; +import type { ChainIdString } from "../../shared/serialized-types"; +import type { ChainId } from "../../shared/types"; import type { SerializedCrossChainIndexingStatusSnapshot, SerializedOmnichainIndexingStatusSnapshot, diff --git a/packages/ensnode-sdk/src/ensindexer/indexing-status/serialized-types.ts b/packages/ensnode-sdk/src/ensindexer/indexing-status/serialized-types.ts index 1822470aa0..7ebacd7b76 100644 --- a/packages/ensnode-sdk/src/ensindexer/indexing-status/serialized-types.ts +++ b/packages/ensnode-sdk/src/ensindexer/indexing-status/serialized-types.ts @@ -1,4 +1,4 @@ -import type { ChainIdString } from "../../shared"; +import type { ChainIdString } from "../../shared/serialized-types"; import type { ChainIndexingStatusSnapshot, ChainIndexingStatusSnapshotBackfill, diff --git a/packages/ensnode-sdk/src/ensindexer/indexing-status/test-helpers.ts b/packages/ensnode-sdk/src/ensindexer/indexing-status/test-helpers.ts index fb9a61961d..6a286cfb2d 100644 --- a/packages/ensnode-sdk/src/ensindexer/indexing-status/test-helpers.ts +++ b/packages/ensnode-sdk/src/ensindexer/indexing-status/test-helpers.ts @@ -1,4 +1,4 @@ -import type { BlockRef } from "../../shared"; +import type { BlockRef } from "../../shared/types"; export const earliestBlockRef = { timestamp: 1667260799, diff --git a/packages/ensnode-sdk/src/ensindexer/indexing-status/types.ts b/packages/ensnode-sdk/src/ensindexer/indexing-status/types.ts index ce3f2dad35..dc6f9c44df 100644 --- a/packages/ensnode-sdk/src/ensindexer/indexing-status/types.ts +++ b/packages/ensnode-sdk/src/ensindexer/indexing-status/types.ts @@ -1,4 +1,4 @@ -import type { BlockRef, ChainId, Duration, UnixTimestamp } from "../../shared"; +import type { BlockRef, ChainId, Duration, UnixTimestamp } from "../../shared/types"; /** * The type of indexing configuration for a chain. diff --git a/packages/ensnode-sdk/src/ensindexer/indexing-status/validations.ts b/packages/ensnode-sdk/src/ensindexer/indexing-status/validations.ts index 9378f5c88e..843a1d530d 100644 --- a/packages/ensnode-sdk/src/ensindexer/indexing-status/validations.ts +++ b/packages/ensnode-sdk/src/ensindexer/indexing-status/validations.ts @@ -1,7 +1,7 @@ import type { ParsePayload } from "zod/v4/core"; -import type { ChainId } from "../../shared"; import * as blockRef from "../../shared/block-ref"; +import type { ChainId } from "../../shared/types"; import { checkChainIndexingStatusSnapshotsForOmnichainStatusSnapshotBackfill, checkChainIndexingStatusSnapshotsForOmnichainStatusSnapshotCompleted, diff --git a/packages/ensnode-sdk/src/ensindexer/indexing-status/zod-schemas.ts b/packages/ensnode-sdk/src/ensindexer/indexing-status/zod-schemas.ts index 46df65f117..3fb80ab5a4 100644 --- a/packages/ensnode-sdk/src/ensindexer/indexing-status/zod-schemas.ts +++ b/packages/ensnode-sdk/src/ensindexer/indexing-status/zod-schemas.ts @@ -8,7 +8,8 @@ */ import { z } from "zod/v4"; -import { type ChainId, deserializeChainId } from "../../shared"; +import { deserializeChainId } from "../../shared/deserialize"; +import type { ChainId } from "../../shared/types"; import { makeBlockRefSchema, makeChainIdStringSchema, diff --git a/packages/ensnode-sdk/src/identity/identity.ts b/packages/ensnode-sdk/src/identity/identity.ts index 3c0c973184..825d79c9e1 100644 --- a/packages/ensnode-sdk/src/identity/identity.ts +++ b/packages/ensnode-sdk/src/identity/identity.ts @@ -2,7 +2,7 @@ import type { Address } from "viem"; import { type ENSNamespaceId, getENSRootChainId } from "@ensnode/datasources"; -import type { DefaultableChainId } from "../shared"; +import type { DefaultableChainId } from "../shared/types"; import { type Identity, ResolutionStatusIds, diff --git a/packages/ensnode-sdk/src/identity/types.ts b/packages/ensnode-sdk/src/identity/types.ts index f805e72aca..fabfd9df83 100644 --- a/packages/ensnode-sdk/src/identity/types.ts +++ b/packages/ensnode-sdk/src/identity/types.ts @@ -1,7 +1,7 @@ import type { Address } from "viem"; import type { Name } from "../ens"; -import type { DefaultableChainId } from "../shared"; +import type { DefaultableChainId } from "../shared/types"; /** * The resolution status for an `Identity`. diff --git a/packages/ensnode-sdk/src/index.ts b/packages/ensnode-sdk/src/index.ts index abaca51bc8..b5a23ebd74 100644 --- a/packages/ensnode-sdk/src/index.ts +++ b/packages/ensnode-sdk/src/index.ts @@ -10,6 +10,22 @@ export * from "./ensv2"; export * from "./identity"; export * from "./registrars"; export * from "./resolution"; -export * from "./shared"; +export * from "./shared/account-id"; +export * from "./shared/address"; +export * from "./shared/cache"; +export * from "./shared/collections"; +export * from "./shared/currencies"; +export * from "./shared/datasource-contract"; +export * from "./shared/datetime"; +export * from "./shared/deserialize"; +export * from "./shared/interpretation"; +export * from "./shared/labelhash"; +export * from "./shared/null-bytes"; +export * from "./shared/numbers"; +export * from "./shared/root-registry"; +export * from "./shared/serialize"; +export * from "./shared/serialized-types"; +export * from "./shared/types"; +export * from "./shared/url"; export * from "./tokenscope"; export * from "./tracing"; diff --git a/packages/ensnode-sdk/src/internal.ts b/packages/ensnode-sdk/src/internal.ts index ef6cac3bec..7352f9a051 100644 --- a/packages/ensnode-sdk/src/internal.ts +++ b/packages/ensnode-sdk/src/internal.ts @@ -35,13 +35,11 @@ export * from "./shared/config/zod-schemas"; export * from "./shared/config-templates"; export * from "./shared/datasources-with-ensv2-contracts"; export * from "./shared/datasources-with-resolvers"; -export * from "./shared/deserialize"; export * from "./shared/interpretation/interpret-record-values"; export * from "./shared/log-level"; export * from "./shared/protocol-acceleration/is-bridged-resolver"; export * from "./shared/protocol-acceleration/is-ensip-19-reverse-resolver"; export * from "./shared/protocol-acceleration/is-static-resolver"; -export * from "./shared/serialize"; export * from "./shared/thegraph"; export * from "./shared/zod-schemas"; export * from "./shared/zod-types"; diff --git a/packages/ensnode-sdk/src/registrars/basenames-subregistry.ts b/packages/ensnode-sdk/src/registrars/basenames-subregistry.ts index 35da5f6d89..11375f05b1 100644 --- a/packages/ensnode-sdk/src/registrars/basenames-subregistry.ts +++ b/packages/ensnode-sdk/src/registrars/basenames-subregistry.ts @@ -6,7 +6,7 @@ import { } from "@ensnode/datasources"; import type { Name } from "../ens"; -import type { AccountId } from "../shared"; +import type { AccountId } from "../shared/types"; /** * Gets the SubregistryId (an AccountId) of the Basenames Subregistry contract (this is the diff --git a/packages/ensnode-sdk/src/registrars/ethnames-subregistry.ts b/packages/ensnode-sdk/src/registrars/ethnames-subregistry.ts index 70b1463a54..4a127b8f91 100644 --- a/packages/ensnode-sdk/src/registrars/ethnames-subregistry.ts +++ b/packages/ensnode-sdk/src/registrars/ethnames-subregistry.ts @@ -6,7 +6,7 @@ import { } from "@ensnode/datasources"; import type { Name } from "../ens"; -import type { AccountId } from "../shared"; +import type { AccountId } from "../shared/types"; /** * Gets the SubregistryId (an AccountId) of the Ethnames Subregistry contract (this is the diff --git a/packages/ensnode-sdk/src/registrars/lineanames-subregistry.ts b/packages/ensnode-sdk/src/registrars/lineanames-subregistry.ts index ef7f7626bd..b7ed4987c3 100644 --- a/packages/ensnode-sdk/src/registrars/lineanames-subregistry.ts +++ b/packages/ensnode-sdk/src/registrars/lineanames-subregistry.ts @@ -6,7 +6,7 @@ import { } from "@ensnode/datasources"; import type { Name } from "../ens"; -import type { AccountId } from "../shared"; +import type { AccountId } from "../shared/types"; /** * Gets the SubregistryId (an AccountId) of the Lineanames Subregistry contract (this is the diff --git a/packages/ensnode-sdk/src/registrars/registrar-action.ts b/packages/ensnode-sdk/src/registrars/registrar-action.ts index 488ce9431b..15ec3a0f06 100644 --- a/packages/ensnode-sdk/src/registrars/registrar-action.ts +++ b/packages/ensnode-sdk/src/registrars/registrar-action.ts @@ -5,13 +5,9 @@ import type { EncodedReferrer } from "./encoded-referrer"; export type { EncodedReferrer } from "./encoded-referrer"; export { decodeEncodedReferrer, ZERO_ENCODED_REFERRER } from "./encoded-referrer"; -import { - type BlockRef, - type Duration, - type PriceEth, - type SerializedPriceEth, - serializePriceEth, -} from "../shared"; +import type { PriceEth, SerializedPriceEth } from "../shared/currencies"; +import { serializePriceEth } from "../shared/serialize"; +import type { BlockRef, Duration } from "../shared/types"; import type { RegistrationLifecycle } from "./registration-lifecycle"; /** diff --git a/packages/ensnode-sdk/src/registrars/registration-lifecycle.ts b/packages/ensnode-sdk/src/registrars/registration-lifecycle.ts index de4ad765d6..40179600ab 100644 --- a/packages/ensnode-sdk/src/registrars/registration-lifecycle.ts +++ b/packages/ensnode-sdk/src/registrars/registration-lifecycle.ts @@ -1,5 +1,5 @@ import type { Node } from "../ens"; -import type { UnixTimestamp } from "../shared"; +import type { UnixTimestamp } from "../shared/types"; import type { Subregistry } from "./subregistry"; /** diff --git a/packages/ensnode-sdk/src/registrars/subregistry.ts b/packages/ensnode-sdk/src/registrars/subregistry.ts index f821d805b5..2f0856dde7 100644 --- a/packages/ensnode-sdk/src/registrars/subregistry.ts +++ b/packages/ensnode-sdk/src/registrars/subregistry.ts @@ -1,5 +1,5 @@ import type { Node } from "../ens"; -import type { AccountId } from "../shared"; +import type { AccountId } from "../shared/types"; /** * Subregistry diff --git a/packages/ensnode-sdk/src/registrars/zod-schemas.ts b/packages/ensnode-sdk/src/registrars/zod-schemas.ts index b83091f533..8bef60a73c 100644 --- a/packages/ensnode-sdk/src/registrars/zod-schemas.ts +++ b/packages/ensnode-sdk/src/registrars/zod-schemas.ts @@ -2,7 +2,7 @@ import type { Address } from "viem"; import { z } from "zod/v4"; import type { ParsePayload } from "zod/v4/core"; -import { addPrices, isPriceEqual } from "../shared"; +import { addPrices, isPriceEqual } from "../shared/currencies"; import { makeAccountIdSchema, makeBlockRefSchema, diff --git a/packages/ensnode-sdk/src/resolution/ensip19-chainid.ts b/packages/ensnode-sdk/src/resolution/ensip19-chainid.ts index ca972e0f03..654c5c48cd 100644 --- a/packages/ensnode-sdk/src/resolution/ensip19-chainid.ts +++ b/packages/ensnode-sdk/src/resolution/ensip19-chainid.ts @@ -3,7 +3,7 @@ import { mainnet } from "viem/chains"; import { type ENSNamespaceId, getENSRootChainId } from "@ensnode/datasources"; import { DEFAULT_EVM_CHAIN_ID } from "../ens"; -import type { ChainId, DefaultableChainId } from "../shared"; +import type { ChainId, DefaultableChainId } from "../shared/types"; /** * Gets the "chainId param" that should be used for a primary name resolution diff --git a/packages/ensnode-sdk/src/resolution/types.ts b/packages/ensnode-sdk/src/resolution/types.ts index 58c634d471..630d026e48 100644 --- a/packages/ensnode-sdk/src/resolution/types.ts +++ b/packages/ensnode-sdk/src/resolution/types.ts @@ -1,7 +1,7 @@ import type { Address } from "viem"; import type { Name } from "../ens"; -import type { ChainId } from "../shared"; +import type { ChainId } from "../shared/types"; import type { ResolverRecordsResponse } from "./resolver-records-response"; import type { ResolverRecordsSelection } from "./resolver-records-selection"; diff --git a/packages/ensnode-sdk/src/shared/index.ts b/packages/ensnode-sdk/src/shared/index.ts deleted file mode 100644 index e628311f5f..0000000000 --- a/packages/ensnode-sdk/src/shared/index.ts +++ /dev/null @@ -1,17 +0,0 @@ -export * from "./account-id"; -export * from "./address"; -export * from "./cache"; -export * from "./collections"; -export * from "./currencies"; -export * from "./datasource-contract"; -export * from "./datetime"; -export * from "./deserialize"; -export * from "./interpretation"; -export * from "./labelhash"; -export * from "./null-bytes"; -export * from "./numbers"; -export * from "./root-registry"; -export * from "./serialize"; -export * from "./serialized-types"; -export * from "./types"; -export * from "./url"; diff --git a/packages/ensnode-sdk/src/tokenscope/assets.ts b/packages/ensnode-sdk/src/tokenscope/assets.ts index 47786c91c8..ddd24b16a0 100644 --- a/packages/ensnode-sdk/src/tokenscope/assets.ts +++ b/packages/ensnode-sdk/src/tokenscope/assets.ts @@ -2,15 +2,9 @@ import { type Address, type Hex, isAddressEqual, zeroAddress } from "viem"; import { prettifyError } from "zod/v4"; import { type Node, uint256ToHex32 } from "../ens"; -import { - type AccountId, - type AssetId, - type AssetNamespace, - type ChainId, - formatAssetId, - type TokenId, -} from "../shared"; +import { formatAssetId } from "../shared/serialize"; import type { AssetIdString } from "../shared/serialized-types"; +import type { AccountId, AssetId, AssetNamespace, ChainId, TokenId } from "../shared/types"; import { makeAssetIdSchema, makeAssetIdStringSchema } from "./zod-schemas"; /** diff --git a/packages/ensnode-sdk/src/tokenscope/name-token.test.ts b/packages/ensnode-sdk/src/tokenscope/name-token.test.ts index 9d50c40d29..834adb4624 100644 --- a/packages/ensnode-sdk/src/tokenscope/name-token.test.ts +++ b/packages/ensnode-sdk/src/tokenscope/name-token.test.ts @@ -4,7 +4,7 @@ import { describe, expect, it } from "vitest"; import { ENSNamespaceIds } from "@ensnode/datasources"; import type { InterpretedName } from "../ens"; -import type { AccountId } from "../shared"; +import type { AccountId } from "../shared/types"; import { getNameTokenOwnership, type NameTokenOwnershipBurned, diff --git a/packages/ensnode-sdk/src/tokenscope/name-token.ts b/packages/ensnode-sdk/src/tokenscope/name-token.ts index 937e93e339..698073012c 100644 --- a/packages/ensnode-sdk/src/tokenscope/name-token.ts +++ b/packages/ensnode-sdk/src/tokenscope/name-token.ts @@ -3,9 +3,9 @@ import { isAddressEqual, zeroAddress } from "viem"; import { DatasourceNames, type ENSNamespaceId } from "@ensnode/datasources"; import { getParentNameFQDN, type InterpretedName } from "../ens"; -import { type AccountId, accountIdEqual } from "../shared"; +import { accountIdEqual } from "../shared/account-id"; import { getDatasourceContract, maybeGetDatasourceContract } from "../shared/datasource-contract"; -import type { AssetId } from "../shared/types"; +import type { AccountId, AssetId } from "../shared/types"; import { type NFTMintStatus, type SerializedAssetId, serializeAssetId } from "./assets"; /**