@ensnode/ensnode-sdk 1.15.1 → 1.15.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +21 -9
- package/dist/index.cjs +11 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -9
- package/dist/index.d.ts +18 -9
- package/dist/index.js +18 -9
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +364 -90
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +11 -5
- package/dist/internal.d.ts +11 -5
- package/dist/internal.js +353 -75
- package/dist/internal.js.map +1 -1
- package/dist/{namespace-specific-value-CPvcFpGI.d.cts → namespace-specific-value-BBZET9O0.d.cts} +7 -10
- package/dist/{namespace-specific-value-CPvcFpGI.d.ts → namespace-specific-value-BBZET9O0.d.ts} +7 -10
- package/package.json +6 -5
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ENSNamespaceId, DatasourceName } from '@ensnode/datasources';
|
|
2
2
|
export { ENSNamespaceId, ENSNamespaceIds, getENSRootChainId } from '@ensnode/datasources';
|
|
3
|
-
import { E as EnsRainbowPublicConfig, a as EnsIndexerPublicConfig, b as EnsIndexerVersionInfo, T as TheGraphFallback, U as Unvalidated, B as BlockNumber, c as BlockRef, L as LabelSetId, d as LabelSetVersion, e as EnsRainbowClientLabelSet, f as EnsRainbowServerLabelSet, P as PluginName, m as makeErrorResponseSchema, R as RegistrarAction, S as SerializedRegistrarAction, D as Datetime, g as PriceDai, h as PriceEnsTokens, i as PriceEth, j as PriceUsdc, k as Price, l as SerializedPrice, n as SerializedPriceDai, o as SerializedPriceEnsTokens, p as SerializedPriceEth, q as SerializedPriceUsdc } from './namespace-specific-value-
|
|
4
|
-
export { C as CurrencyAmount, r as CurrencyId, s as CurrencyIds, t as CurrencyInfo, u as DeepPartial, v as ENCODED_REFERRER_BYTE_LENGTH, w as ENCODED_REFERRER_BYTE_OFFSET, x as ENSIndexerPublicConfig, y as ENSIndexerVersionInfo, z as EXPECTED_ENCODED_REFERRER_PADDING, A as EncodedReferrer, F as EnsRainbowVersionInfo, N as NamespaceSpecificValue, G as RegistrarActionEventId, H as RegistrarActionPricing, I as RegistrarActionPricingAvailable, J as RegistrarActionPricingUnknown, K as RegistrarActionReferral, M as RegistrarActionReferralAvailable, O as RegistrarActionReferralNotApplicable, Q as RegistrarActionType, V as RegistrarActionTypes, W as RegistrationLifecycle, X as RegistrationLifecycleStage, Y as RequiredAndNotNull, Z as RequiredAndNull, _ as RpcUrl, $ as SerializedCurrencyAmount, a0 as SerializedRegistrarActionPricing, a1 as SerializedRegistrarActionPricingAvailable, a2 as SerializedRegistrarActionPricingUnknown, a3 as Subregistry, a4 as TheGraphCannotFallbackReason, a5 as TheGraphCannotFallbackReasonSchema, a6 as TheGraphFallbackSchema, a7 as ZERO_ENCODED_REFERRER, a8 as addPrices, a9 as buildEncodedReferrer, aa as decodeEncodedReferrer, ab as getCurrencyInfo, ac as getNamespaceSpecificValue, ad as interpretAddress, ae as interpretAddressRecordValue, af as interpretContenthashValue, ag as interpretDnszonehashValue, ah as interpretNameRecordValue, ai as interpretPubkeyValue, aj as interpretTextRecordKey, ak as interpretTextRecordValue, al as isPriceCurrencyEqual, am as isPriceEqual, an as isRegistrarActionPricingAvailable, ao as isRegistrarActionReferralAvailable, ap as makeENSApiPublicConfigSchema, aq as makeEnsApiPublicConfigSchema, ar as makeSerializedEnsApiPublicConfigSchema, as as maxPrice, at as minPrice, au as parseDai, av as parseEnsTokens, aw as parseEth, ax as parseUsdc, ay as priceDai, az as priceEnsTokens, aA as priceEth, aB as priceUsdc, aC as scalePrice, aD as serializeRegistrarAction, aE as serializeRegistrarActionPricing, aF as subtractPrice } from './namespace-specific-value-
|
|
3
|
+
import { E as EnsRainbowPublicConfig, a as EnsIndexerPublicConfig, b as EnsIndexerVersionInfo, T as TheGraphFallback, U as Unvalidated, B as BlockNumber, c as BlockRef, L as LabelSetId, d as LabelSetVersion, e as EnsRainbowClientLabelSet, f as EnsRainbowServerLabelSet, P as PluginName, m as makeErrorResponseSchema, R as RegistrarAction, S as SerializedRegistrarAction, D as Datetime, g as PriceDai, h as PriceEnsTokens, i as PriceEth, j as PriceUsdc, k as Price, l as SerializedPrice, n as SerializedPriceDai, o as SerializedPriceEnsTokens, p as SerializedPriceEth, q as SerializedPriceUsdc } from './namespace-specific-value-BBZET9O0.cjs';
|
|
4
|
+
export { C as CurrencyAmount, r as CurrencyId, s as CurrencyIds, t as CurrencyInfo, u as DeepPartial, v as ENCODED_REFERRER_BYTE_LENGTH, w as ENCODED_REFERRER_BYTE_OFFSET, x as ENSIndexerPublicConfig, y as ENSIndexerVersionInfo, z as EXPECTED_ENCODED_REFERRER_PADDING, A as EncodedReferrer, F as EnsRainbowVersionInfo, N as NamespaceSpecificValue, G as RegistrarActionEventId, H as RegistrarActionPricing, I as RegistrarActionPricingAvailable, J as RegistrarActionPricingUnknown, K as RegistrarActionReferral, M as RegistrarActionReferralAvailable, O as RegistrarActionReferralNotApplicable, Q as RegistrarActionType, V as RegistrarActionTypes, W as RegistrationLifecycle, X as RegistrationLifecycleStage, Y as RequiredAndNotNull, Z as RequiredAndNull, _ as RpcUrl, $ as SerializedCurrencyAmount, a0 as SerializedRegistrarActionPricing, a1 as SerializedRegistrarActionPricingAvailable, a2 as SerializedRegistrarActionPricingUnknown, a3 as Subregistry, a4 as TheGraphCannotFallbackReason, a5 as TheGraphCannotFallbackReasonSchema, a6 as TheGraphFallbackSchema, a7 as ZERO_ENCODED_REFERRER, a8 as addPrices, a9 as buildEncodedReferrer, aa as decodeEncodedReferrer, ab as getCurrencyInfo, ac as getNamespaceSpecificValue, ad as interpretAddress, ae as interpretAddressRecordValue, af as interpretContenthashValue, ag as interpretDnszonehashValue, ah as interpretNameRecordValue, ai as interpretPubkeyValue, aj as interpretTextRecordKey, ak as interpretTextRecordValue, al as isPriceCurrencyEqual, am as isPriceEqual, an as isRegistrarActionPricingAvailable, ao as isRegistrarActionReferralAvailable, ap as makeENSApiPublicConfigSchema, aq as makeEnsApiPublicConfigSchema, ar as makeSerializedEnsApiPublicConfigSchema, as as maxPrice, at as minPrice, au as parseDai, av as parseEnsTokens, aw as parseEth, ax as parseUsdc, ay as priceDai, az as priceEnsTokens, aA as priceEth, aB as priceUsdc, aC as scalePrice, aD as serializeRegistrarAction, aE as serializeRegistrarActionPricing, aF as subtractPrice } from './namespace-specific-value-BBZET9O0.cjs';
|
|
5
5
|
import * as enssdk from 'enssdk';
|
|
6
6
|
import { ChainId, UnixTimestamp, Duration, ChainIdString, LabelHash, Node, Name, AssetId, Hex, AccountId, TokenId, AssetNamespace, Address, AssetIdString, InterpretedName, DefaultableChainId, CoinType, ContentType, InterfaceId, RecordVersion, UrlString, RegistryId, DatetimeISO8601 } from 'enssdk';
|
|
7
7
|
import { ByteArray } from 'viem';
|
|
@@ -2523,11 +2523,10 @@ type ResolverRecordsResponseBase = {
|
|
|
2523
2523
|
* Address records, keyed by CoinType.
|
|
2524
2524
|
* Value is null if no record for the specified CoinType is set.
|
|
2525
2525
|
*
|
|
2526
|
-
*
|
|
2527
|
-
*
|
|
2528
|
-
* the format your application expects.
|
|
2526
|
+
* Values are the "raw" resolved address record as hex. May be a hex value representing 0 or more bytes.
|
|
2527
|
+
* There is no guarantee that an EVM coinType returns an address value of any particular byte length.
|
|
2529
2528
|
*/
|
|
2530
|
-
addresses: Record<CoinType,
|
|
2529
|
+
addresses: Record<CoinType, Hex | null>;
|
|
2531
2530
|
/**
|
|
2532
2531
|
* Text records, keyed by key.
|
|
2533
2532
|
* Value is null if no record for the specified key is set.
|
|
@@ -2585,13 +2584,13 @@ type ResolverRecordsResponseBase = {
|
|
|
2585
2584
|
* // results in the following type
|
|
2586
2585
|
* type Response = {
|
|
2587
2586
|
* readonly name: Name | null;
|
|
2588
|
-
* readonly addresses: Record<"60",
|
|
2587
|
+
* readonly addresses: Record<"60", Hex | null>;
|
|
2589
2588
|
* readonly texts: Record<"avatar" | "com.twitter", string | null>;
|
|
2590
2589
|
* }
|
|
2591
2590
|
* ```
|
|
2592
2591
|
*/
|
|
2593
2592
|
type ResolverRecordsResponse<T extends ResolverRecordsSelection = ResolverRecordsSelection> = {
|
|
2594
|
-
[K in keyof T as T[K] extends true | readonly any[] | bigint ? K : never]: K extends "addresses" ? Record<`${T["addresses"] extends readonly CoinType[] ? T["addresses"][number] : never}`,
|
|
2593
|
+
[K in keyof T as T[K] extends true | readonly any[] | bigint ? K : never]: K extends "addresses" ? Record<`${T["addresses"] extends readonly CoinType[] ? T["addresses"][number] : never}`, Hex | null> : K extends "texts" ? Record<T["texts"] extends readonly string[] ? T["texts"][number] : never, string | null> : K extends "interfaces" ? Record<T["interfaces"] extends readonly InterfaceId[] ? T["interfaces"][number] : never, Address | null> : ResolverRecordsResponseBase[K & keyof ResolverRecordsResponseBase];
|
|
2595
2594
|
};
|
|
2596
2595
|
|
|
2597
2596
|
/**
|
|
@@ -3063,6 +3062,10 @@ declare const DEFAULT_ENSNODE_URL_MAINNET: "https://api.alpha.ensnode.io";
|
|
|
3063
3062
|
* Default ENSNode URL for Sepolia
|
|
3064
3063
|
*/
|
|
3065
3064
|
declare const DEFAULT_ENSNODE_URL_SEPOLIA: "https://api.alpha-sepolia.ensnode.io";
|
|
3065
|
+
/**
|
|
3066
|
+
* Default ENSNode URL for Sepolia-V2
|
|
3067
|
+
*/
|
|
3068
|
+
declare const DEFAULT_ENSNODE_URL_SEPOLIA_V2: "https://api.v2-sepolia.ensnode.io";
|
|
3066
3069
|
/**
|
|
3067
3070
|
* Gets the default ENSNode URL for the provided ENSNamespaceId.
|
|
3068
3071
|
*
|
|
@@ -3727,6 +3730,12 @@ declare const maybeGetENSv2RootRegistry: (namespace: ENSNamespaceId) => AccountI
|
|
|
3727
3730
|
* TODO: remove this function and its usage after all namespaces define ENSv2Root
|
|
3728
3731
|
*/
|
|
3729
3732
|
declare const maybeGetENSv2RootRegistryId: (namespace: ENSNamespaceId) => enssdk.ENSv2RegistryId | undefined;
|
|
3733
|
+
/**
|
|
3734
|
+
* Gets the AccountId representing the preferred Root Registry for the selected `namespace` —
|
|
3735
|
+
* the ENSv2 Root Registry when defined, otherwise the ENSv1 Root Registry. Used as the entry
|
|
3736
|
+
* point for resolution-time namegraph traversal.
|
|
3737
|
+
*/
|
|
3738
|
+
declare const getRootRegistry: (namespace: ENSNamespaceId) => AccountId;
|
|
3730
3739
|
/**
|
|
3731
3740
|
* Gets the RegistryId representing the preferred Root Registry for the selected `namespace` —
|
|
3732
3741
|
* the ENSv2 Root Registry when defined, otherwise the ENSv1 Root Registry. Used as the entry
|
|
@@ -3797,4 +3806,4 @@ declare function hasSubgraphApiConfigSupport(config: EnsIndexerPublicConfig): Pr
|
|
|
3797
3806
|
*/
|
|
3798
3807
|
declare function hasSubgraphApiIndexingStatusSupport(indexingStatus: OmnichainIndexingStatusId): PrerequisiteResult;
|
|
3799
3808
|
|
|
3800
|
-
export { ATTR_PROTOCOL_NAME, ATTR_PROTOCOL_STEP, ATTR_PROTOCOL_STEP_RESULT, type AcceleratableRequest, type AcceleratableResponse, BlockNumber, type BlockNumberRange, type BlockNumberRangeBounded, type BlockNumberRangeLeftBounded, type BlockNumberRangeRightBounded, type BlockNumberRangeUnbounded, type BlockNumberRangeWithStartBlock, BlockRef, type BlockRefRange, type BlockRefRangeBounded, type BlockRefRangeLeftBounded, type BlockRefRangeRightBounded, type BlockRefRangeUnbounded, type BlockRefRangeWithStartBlock, type Cache, type CachedResult, type ChainIndexingStatusId, ChainIndexingStatusIds, type ChainIndexingStatusSnapshot, type ChainIndexingStatusSnapshotBackfill, type ChainIndexingStatusSnapshotCompleted, type ChainIndexingStatusSnapshotFollowing, type ChainIndexingStatusSnapshotForOmnichainIndexingStatusSnapshotBackfill, type ChainIndexingStatusSnapshotQueued, ClientError, type CrossChainIndexingStatusSnapshot, type CrossChainIndexingStatusSnapshotOmnichain, type CrossChainIndexingStrategyId, CrossChainIndexingStrategyIds, DEFAULT_ENSNODE_URL_MAINNET, DEFAULT_ENSNODE_URL_SEPOLIA, Datetime, type DomainAssetId, type ENSApiPublicConfig, type EnsApiIndexingStatusRequest, type EnsApiIndexingStatusResponse, type EnsApiIndexingStatusResponseCode, EnsApiIndexingStatusResponseCodes, type EnsApiIndexingStatusResponseError, type EnsApiIndexingStatusResponseOk, type EnsApiPublicConfig, type EnsApiVersionInfo, type EnsDbPublicConfig, type EnsDbVersionInfo, EnsIndexerClient, type EnsIndexerClientOptions, type EnsIndexerConfigResponse, type EnsIndexerIndexingStatusRequest, type EnsIndexerIndexingStatusResponse, type EnsIndexerIndexingStatusResponseCode, EnsIndexerIndexingStatusResponseCodes, type EnsIndexerIndexingStatusResponseError, type EnsIndexerIndexingStatusResponseOk, EnsIndexerPublicConfig, type EnsIndexerPublicConfigCompatibilityCheck, type EnsIndexerStackInfo, EnsIndexerVersionInfo, EnsNodeClient, type EnsNodeClientOptions, type EnsNodeStackInfo, EnsRainbowClientLabelSet, EnsRainbowPublicConfig, EnsRainbowServerLabelSet, type ErrorResponse, type ForwardResolutionArgs, ForwardResolutionProtocolStep, type ForwardResolutionResult, type Identity, type IndexingMetadataContext, type IndexingMetadataContextInitialized, type IndexingMetadataContextStatusCode, IndexingMetadataContextStatusCodes, type IndexingMetadataContextUninitialized, type IndexingStatusRequest, type IndexingStatusResponse, type IndexingStatusResponseCode, IndexingStatusResponseCodes, type IndexingStatusResponseError, type IndexingStatusResponseOk, LabelSetId, LabelSetVersion, LruCache, type MultichainPrimaryNameResolutionArgs, type MultichainPrimaryNameResolutionResult, type NFTMintStatus, NFTMintStatuses, type NFTTransferEventMetadata, type NFTTransferType, NFTTransferTypes, type NameToken, type NameTokenOwnership, type NameTokenOwnershipBurned, type NameTokenOwnershipFullyOnchain, type NameTokenOwnershipNameWrapper, type NameTokenOwnershipType, NameTokenOwnershipTypes, type NameTokenOwnershipUnknown, type NameTokensRequest, type NameTokensResponse, type NameTokensResponseCode, NameTokensResponseCodes, type NameTokensResponseError, type NameTokensResponseErrorCode, NameTokensResponseErrorCodes, type NameTokensResponseErrorEnsIndexerConfigUnsupported, type NameTokensResponseErrorIndexingStatusUnsupported, type NameTokensResponseErrorNameTokensNotIndexed, type NameTokensResponseOk, type NamedIdentity, type NamedRegistrarAction, type OmnichainIndexingStatusId, OmnichainIndexingStatusIds, type OmnichainIndexingStatusSnapshot, type OmnichainIndexingStatusSnapshotBackfill, type OmnichainIndexingStatusSnapshotCompleted, type OmnichainIndexingStatusSnapshotFollowing, type OmnichainIndexingStatusSnapshotUnstarted, PROTOCOL_ATTRIBUTE_PREFIX, PluginName, type PrerequisiteResult, Price, PriceDai, PriceEnsTokens, PriceEth, PriceUsdc, RECORDS_PER_PAGE_DEFAULT, RECORDS_PER_PAGE_MAX, type RangeType, RangeTypeIds, type RealtimeIndexingStatusProjection, type RegisteredNameTokens, RegistrarAction, type RegistrarActionsFilter, type RegistrarActionsFilterBeginTimestamp, type RegistrarActionsFilterByDecodedReferrer, type RegistrarActionsFilterBySubregistryNode, type RegistrarActionsFilterEndTimestamp, type RegistrarActionsFilterType, RegistrarActionsFilterTypes, type RegistrarActionsFilterWithEncodedReferral, type RegistrarActionsOrder, RegistrarActionsOrders, type RegistrarActionsRequest, type RegistrarActionsResponse, type RegistrarActionsResponseCode, RegistrarActionsResponseCodes, type RegistrarActionsResponseError, type RegistrarActionsResponseOk, type RegistrationExpiryInfo, type ReplaceBigInts, type RequestPageParams, type ResolutionStatusId, ResolutionStatusIds, type ResolvePrimaryNameRequest, type ResolvePrimaryNameResponse, type ResolvePrimaryNamesRequest, type ResolvePrimaryNamesResponse, type ResolveRecordsRequest, type ResolveRecordsResponse, type ResolvedIdentity, type ResolverRecordsResponse, type ResolverRecordsResponseBase, type ResolverRecordsSelection, type ResponsePageContext, type ResponsePageContextWithNoRecords, type ResponsePageContextWithRecords, type ReverseResolutionArgs, ReverseResolutionProtocolStep, type ReverseResolutionResult, SWRCache, type SWRCacheOptions, type SerializedAssetId, type SerializedChainIndexingStatusSnapshot, type SerializedChainIndexingStatusSnapshotBackfill, type SerializedChainIndexingStatusSnapshotCompleted, type SerializedChainIndexingStatusSnapshotFollowing, type SerializedChainIndexingStatusSnapshotQueued, type SerializedCrossChainIndexingStatusSnapshot, type SerializedCrossChainIndexingStatusSnapshotOmnichain, type SerializedCurrentIndexingProjectionOmnichain, type SerializedDomainAssetId, type SerializedENSApiPublicConfig, type SerializedENSIndexerPublicConfig, type SerializedENSIndexerVersionInfo, type SerializedEnsApiIndexingStatusResponse, type SerializedEnsApiIndexingStatusResponseError, type SerializedEnsApiIndexingStatusResponseOk, type SerializedEnsApiPublicConfig, type SerializedEnsDbPublicConfig, type SerializedEnsIndexerConfigResponse, type SerializedEnsIndexerIndexingStatusResponse, type SerializedEnsIndexerIndexingStatusResponseError, type SerializedEnsIndexerIndexingStatusResponseOk, type SerializedEnsIndexerPublicConfig, type SerializedEnsIndexerStackInfo, type SerializedEnsIndexerVersionInfo, type SerializedEnsNodeStackInfo, type SerializedEnsRainbowPublicConfig, type SerializedIndexedChainIds, type SerializedIndexingMetadataContext, type SerializedIndexingMetadataContextInitialized, type SerializedIndexingMetadataContextUninitialized, type SerializedIndexingStatusResponse, type SerializedIndexingStatusResponseError, type SerializedIndexingStatusResponseOk, type SerializedNameToken, type SerializedNameTokensResponse, type SerializedNameTokensResponseError, type SerializedNameTokensResponseOk, type SerializedNamedRegistrarAction, type SerializedOmnichainIndexingStatusSnapshot, type SerializedOmnichainIndexingStatusSnapshotBackfill, type SerializedOmnichainIndexingStatusSnapshotCompleted, type SerializedOmnichainIndexingStatusSnapshotFollowing, type SerializedOmnichainIndexingStatusSnapshotUnstarted, SerializedPrice, SerializedPriceDai, SerializedPriceEnsTokens, SerializedPriceEth, SerializedPriceUsdc, type SerializedRealtimeIndexingStatusProjection, type SerializedRegisteredNameTokens, SerializedRegistrarAction, type SerializedRegistrarActionsResponse, type SerializedRegistrarActionsResponseError, type SerializedRegistrarActionsResponseOk, type SerializedTokenId, TheGraphFallback, TraceableENSProtocol, type TraceableRequest, type TraceableResponse, type TracingNode, type TracingSpan, type TracingTrace, TtlCache, type UnknownIdentity, type UnnamedIdentity, type UnresolvedIdentity, Unvalidated, accountIdEqual, addDuration, bigIntToNumber, buildAssetId, buildBlockNumberRange, buildBlockRefRange, buildCrossChainIndexingStatusSnapshotOmnichain, buildEnsIndexerStackInfo, buildEnsNodeStackInfo, buildEnsRainbowClientLabelSet, buildIndexedBlockranges, buildIndexingMetadataContextInitialized, buildIndexingMetadataContextUninitialized, buildLabelSetId, buildLabelSetVersion, buildOmnichainIndexingStatusSnapshot, buildPageContext, buildUnresolvedIdentity, buildUnvalidatedCrossChainIndexingStatusSnapshot, buildUnvalidatedEnsApiPublicConfig, buildUnvalidatedEnsIndexerPublicConfig, buildUnvalidatedEnsIndexerStackInfo, buildUnvalidatedEnsNodeStackInfo, buildUnvalidatedOmnichainIndexingStatusSnapshot, buildUnvalidatedRealtimeIndexingStatusProjection, checkChainIndexingStatusSnapshotsForOmnichainStatusSnapshotBackfill, checkChainIndexingStatusSnapshotsForOmnichainStatusSnapshotCompleted, checkChainIndexingStatusSnapshotsForOmnichainStatusSnapshotFollowing, checkChainIndexingStatusSnapshotsForOmnichainStatusSnapshotUnstarted, createRealtimeIndexingStatusProjection, deserializeAssetId, deserializeBlockNumber, deserializeBlockRef, deserializeChainId, deserializeChainIndexingStatusSnapshot, deserializeCrossChainIndexingStatusSnapshot, deserializeDatetime, deserializeDuration, deserializeENSApiPublicConfig, deserializeENSIndexerPublicConfig, deserializeEnsApiIndexingStatusResponse, deserializeEnsApiPublicConfig, deserializeEnsIndexerConfigResponse, deserializeEnsIndexerIndexingStatusResponse, deserializeEnsIndexerPublicConfig, deserializeEnsIndexerStackInfo, deserializeEnsNodeStackInfo, deserializeErrorResponse, deserializeIndexingMetadataContext, deserializeIndexingStatusResponse, deserializeOmnichainIndexingStatusSnapshot, deserializePriceDai, deserializePriceEnsTokens, deserializePriceEth, deserializePriceUsdc, deserializeRealtimeIndexingStatusProjection, deserializeRegistrarActionsResponse, deserializeUnixTimestamp, deserializeUrl, deserializedNameTokensResponse, durationBetween, formatNFTTransferEventMetadata, getDatasourceContract, getDefaultEnsNodeUrl, getENSv1RootRegistry, getENSv1RootRegistryId, getENSv2RootRegistry, getENSv2RootRegistryId, getHighestKnownBlockTimestamp, getLatestIndexedBlockRef, getManagedName, getNFTTransferType, getNameTokenOwnership, getNameWrapperAccounts, getOmnichainIndexingCursor, getOmnichainIndexingStatus, getResolvePrimaryNameChainIdParam, getRootRegistryId, getTimestampForHighestOmnichainKnownBlock, getTimestampForLowestOmnichainStartBlock, hasNullByte, hasOmnigraphApiConfigSupport, hasOmnigraphApiIndexingStatusSupport, hasRegistrarActionsConfigSupport, hasRegistrarActionsIndexingStatusSupport, hasSubgraphApiConfigSupport, hasSubgraphApiIndexingStatusSupport, isENSv1Registry, isENSv2RootRegistry, isHttpProtocol, isNameWrapper, isPccFuseSet, isRegistrationExpired, isRegistrationFullyExpired, isRegistrationInGracePeriod, isResolvedIdentity, isRootRegistryId, isSelectionEmpty, isSubgraphCompatible, isWebSocketProtocol, labelHashToBytes, makeContractMatcher, maybeGetDatasourceContract, maybeGetENSv2RootRegistry, maybeGetENSv2RootRegistryId, mergeBlockNumberRanges, nameTokensPrerequisites, parseAccountId, parseAssetId, parseNonNegativeInteger, parseTimestamp, registrarActionsFilter, replaceBigInts, scaleBigintByNumber, serializeAssetId, serializeChainId, serializeChainIndexingSnapshots, serializeCrossChainIndexingStatusSnapshot, serializeCrossChainIndexingStatusSnapshotOmnichain, serializeDatetime, serializeDomainAssetId, serializeENSApiPublicConfig, serializeENSIndexerPublicConfig, serializeEnsApiIndexingStatusResponse, serializeEnsApiPublicConfig, serializeEnsIndexerConfigResponse, serializeEnsIndexerIndexingStatusResponse, serializeEnsIndexerPublicConfig, serializeEnsIndexerStackInfo, serializeEnsNodeStackInfo, serializeIndexedChainIds, serializeIndexingMetadataContext, serializeIndexingMetadataContextInitialized, serializeIndexingStatusResponse, serializeNameToken, serializeNameTokensResponse, serializeNamedRegistrarAction, serializeOmnichainIndexingStatusSnapshot, serializePrice, serializePriceDai, serializePriceEnsTokens, serializePriceEth, serializePriceUsdc, serializeRealtimeIndexingStatusProjection, serializeRegisteredNameTokens, serializeRegistrarActionsResponse, serializeUrl, sortChainStatusesByStartBlockAsc, stripNullBytes, toJson, translateDefaultableChainIdToChainId, uniq, validateChainIndexingStatusSnapshot, validateCrossChainIndexingStatusSnapshot, validateEnsIndexerPublicConfig, validateEnsIndexerPublicConfigCompatibility, validateEnsIndexerStackInfo, validateEnsIndexerVersionInfo, validateEnsNodeStackInfo, validateIndexingMetadataContextInitialized, validateOmnichainIndexingStatusSnapshot, validateRealtimeIndexingStatusProjection, validateSupportedLabelSetAndVersion };
|
|
3809
|
+
export { ATTR_PROTOCOL_NAME, ATTR_PROTOCOL_STEP, ATTR_PROTOCOL_STEP_RESULT, type AcceleratableRequest, type AcceleratableResponse, BlockNumber, type BlockNumberRange, type BlockNumberRangeBounded, type BlockNumberRangeLeftBounded, type BlockNumberRangeRightBounded, type BlockNumberRangeUnbounded, type BlockNumberRangeWithStartBlock, BlockRef, type BlockRefRange, type BlockRefRangeBounded, type BlockRefRangeLeftBounded, type BlockRefRangeRightBounded, type BlockRefRangeUnbounded, type BlockRefRangeWithStartBlock, type Cache, type CachedResult, type ChainIndexingStatusId, ChainIndexingStatusIds, type ChainIndexingStatusSnapshot, type ChainIndexingStatusSnapshotBackfill, type ChainIndexingStatusSnapshotCompleted, type ChainIndexingStatusSnapshotFollowing, type ChainIndexingStatusSnapshotForOmnichainIndexingStatusSnapshotBackfill, type ChainIndexingStatusSnapshotQueued, ClientError, type CrossChainIndexingStatusSnapshot, type CrossChainIndexingStatusSnapshotOmnichain, type CrossChainIndexingStrategyId, CrossChainIndexingStrategyIds, DEFAULT_ENSNODE_URL_MAINNET, DEFAULT_ENSNODE_URL_SEPOLIA, DEFAULT_ENSNODE_URL_SEPOLIA_V2, Datetime, type DomainAssetId, type ENSApiPublicConfig, type EnsApiIndexingStatusRequest, type EnsApiIndexingStatusResponse, type EnsApiIndexingStatusResponseCode, EnsApiIndexingStatusResponseCodes, type EnsApiIndexingStatusResponseError, type EnsApiIndexingStatusResponseOk, type EnsApiPublicConfig, type EnsApiVersionInfo, type EnsDbPublicConfig, type EnsDbVersionInfo, EnsIndexerClient, type EnsIndexerClientOptions, type EnsIndexerConfigResponse, type EnsIndexerIndexingStatusRequest, type EnsIndexerIndexingStatusResponse, type EnsIndexerIndexingStatusResponseCode, EnsIndexerIndexingStatusResponseCodes, type EnsIndexerIndexingStatusResponseError, type EnsIndexerIndexingStatusResponseOk, EnsIndexerPublicConfig, type EnsIndexerPublicConfigCompatibilityCheck, type EnsIndexerStackInfo, EnsIndexerVersionInfo, EnsNodeClient, type EnsNodeClientOptions, type EnsNodeStackInfo, EnsRainbowClientLabelSet, EnsRainbowPublicConfig, EnsRainbowServerLabelSet, type ErrorResponse, type ForwardResolutionArgs, ForwardResolutionProtocolStep, type ForwardResolutionResult, type Identity, type IndexingMetadataContext, type IndexingMetadataContextInitialized, type IndexingMetadataContextStatusCode, IndexingMetadataContextStatusCodes, type IndexingMetadataContextUninitialized, type IndexingStatusRequest, type IndexingStatusResponse, type IndexingStatusResponseCode, IndexingStatusResponseCodes, type IndexingStatusResponseError, type IndexingStatusResponseOk, LabelSetId, LabelSetVersion, LruCache, type MultichainPrimaryNameResolutionArgs, type MultichainPrimaryNameResolutionResult, type NFTMintStatus, NFTMintStatuses, type NFTTransferEventMetadata, type NFTTransferType, NFTTransferTypes, type NameToken, type NameTokenOwnership, type NameTokenOwnershipBurned, type NameTokenOwnershipFullyOnchain, type NameTokenOwnershipNameWrapper, type NameTokenOwnershipType, NameTokenOwnershipTypes, type NameTokenOwnershipUnknown, type NameTokensRequest, type NameTokensResponse, type NameTokensResponseCode, NameTokensResponseCodes, type NameTokensResponseError, type NameTokensResponseErrorCode, NameTokensResponseErrorCodes, type NameTokensResponseErrorEnsIndexerConfigUnsupported, type NameTokensResponseErrorIndexingStatusUnsupported, type NameTokensResponseErrorNameTokensNotIndexed, type NameTokensResponseOk, type NamedIdentity, type NamedRegistrarAction, type OmnichainIndexingStatusId, OmnichainIndexingStatusIds, type OmnichainIndexingStatusSnapshot, type OmnichainIndexingStatusSnapshotBackfill, type OmnichainIndexingStatusSnapshotCompleted, type OmnichainIndexingStatusSnapshotFollowing, type OmnichainIndexingStatusSnapshotUnstarted, PROTOCOL_ATTRIBUTE_PREFIX, PluginName, type PrerequisiteResult, Price, PriceDai, PriceEnsTokens, PriceEth, PriceUsdc, RECORDS_PER_PAGE_DEFAULT, RECORDS_PER_PAGE_MAX, type RangeType, RangeTypeIds, type RealtimeIndexingStatusProjection, type RegisteredNameTokens, RegistrarAction, type RegistrarActionsFilter, type RegistrarActionsFilterBeginTimestamp, type RegistrarActionsFilterByDecodedReferrer, type RegistrarActionsFilterBySubregistryNode, type RegistrarActionsFilterEndTimestamp, type RegistrarActionsFilterType, RegistrarActionsFilterTypes, type RegistrarActionsFilterWithEncodedReferral, type RegistrarActionsOrder, RegistrarActionsOrders, type RegistrarActionsRequest, type RegistrarActionsResponse, type RegistrarActionsResponseCode, RegistrarActionsResponseCodes, type RegistrarActionsResponseError, type RegistrarActionsResponseOk, type RegistrationExpiryInfo, type ReplaceBigInts, type RequestPageParams, type ResolutionStatusId, ResolutionStatusIds, type ResolvePrimaryNameRequest, type ResolvePrimaryNameResponse, type ResolvePrimaryNamesRequest, type ResolvePrimaryNamesResponse, type ResolveRecordsRequest, type ResolveRecordsResponse, type ResolvedIdentity, type ResolverRecordsResponse, type ResolverRecordsResponseBase, type ResolverRecordsSelection, type ResponsePageContext, type ResponsePageContextWithNoRecords, type ResponsePageContextWithRecords, type ReverseResolutionArgs, ReverseResolutionProtocolStep, type ReverseResolutionResult, SWRCache, type SWRCacheOptions, type SerializedAssetId, type SerializedChainIndexingStatusSnapshot, type SerializedChainIndexingStatusSnapshotBackfill, type SerializedChainIndexingStatusSnapshotCompleted, type SerializedChainIndexingStatusSnapshotFollowing, type SerializedChainIndexingStatusSnapshotQueued, type SerializedCrossChainIndexingStatusSnapshot, type SerializedCrossChainIndexingStatusSnapshotOmnichain, type SerializedCurrentIndexingProjectionOmnichain, type SerializedDomainAssetId, type SerializedENSApiPublicConfig, type SerializedENSIndexerPublicConfig, type SerializedENSIndexerVersionInfo, type SerializedEnsApiIndexingStatusResponse, type SerializedEnsApiIndexingStatusResponseError, type SerializedEnsApiIndexingStatusResponseOk, type SerializedEnsApiPublicConfig, type SerializedEnsDbPublicConfig, type SerializedEnsIndexerConfigResponse, type SerializedEnsIndexerIndexingStatusResponse, type SerializedEnsIndexerIndexingStatusResponseError, type SerializedEnsIndexerIndexingStatusResponseOk, type SerializedEnsIndexerPublicConfig, type SerializedEnsIndexerStackInfo, type SerializedEnsIndexerVersionInfo, type SerializedEnsNodeStackInfo, type SerializedEnsRainbowPublicConfig, type SerializedIndexedChainIds, type SerializedIndexingMetadataContext, type SerializedIndexingMetadataContextInitialized, type SerializedIndexingMetadataContextUninitialized, type SerializedIndexingStatusResponse, type SerializedIndexingStatusResponseError, type SerializedIndexingStatusResponseOk, type SerializedNameToken, type SerializedNameTokensResponse, type SerializedNameTokensResponseError, type SerializedNameTokensResponseOk, type SerializedNamedRegistrarAction, type SerializedOmnichainIndexingStatusSnapshot, type SerializedOmnichainIndexingStatusSnapshotBackfill, type SerializedOmnichainIndexingStatusSnapshotCompleted, type SerializedOmnichainIndexingStatusSnapshotFollowing, type SerializedOmnichainIndexingStatusSnapshotUnstarted, SerializedPrice, SerializedPriceDai, SerializedPriceEnsTokens, SerializedPriceEth, SerializedPriceUsdc, type SerializedRealtimeIndexingStatusProjection, type SerializedRegisteredNameTokens, SerializedRegistrarAction, type SerializedRegistrarActionsResponse, type SerializedRegistrarActionsResponseError, type SerializedRegistrarActionsResponseOk, type SerializedTokenId, TheGraphFallback, TraceableENSProtocol, type TraceableRequest, type TraceableResponse, type TracingNode, type TracingSpan, type TracingTrace, TtlCache, type UnknownIdentity, type UnnamedIdentity, type UnresolvedIdentity, Unvalidated, accountIdEqual, addDuration, bigIntToNumber, buildAssetId, buildBlockNumberRange, buildBlockRefRange, buildCrossChainIndexingStatusSnapshotOmnichain, buildEnsIndexerStackInfo, buildEnsNodeStackInfo, buildEnsRainbowClientLabelSet, buildIndexedBlockranges, buildIndexingMetadataContextInitialized, buildIndexingMetadataContextUninitialized, buildLabelSetId, buildLabelSetVersion, buildOmnichainIndexingStatusSnapshot, buildPageContext, buildUnresolvedIdentity, buildUnvalidatedCrossChainIndexingStatusSnapshot, buildUnvalidatedEnsApiPublicConfig, buildUnvalidatedEnsIndexerPublicConfig, buildUnvalidatedEnsIndexerStackInfo, buildUnvalidatedEnsNodeStackInfo, buildUnvalidatedOmnichainIndexingStatusSnapshot, buildUnvalidatedRealtimeIndexingStatusProjection, checkChainIndexingStatusSnapshotsForOmnichainStatusSnapshotBackfill, checkChainIndexingStatusSnapshotsForOmnichainStatusSnapshotCompleted, checkChainIndexingStatusSnapshotsForOmnichainStatusSnapshotFollowing, checkChainIndexingStatusSnapshotsForOmnichainStatusSnapshotUnstarted, createRealtimeIndexingStatusProjection, deserializeAssetId, deserializeBlockNumber, deserializeBlockRef, deserializeChainId, deserializeChainIndexingStatusSnapshot, deserializeCrossChainIndexingStatusSnapshot, deserializeDatetime, deserializeDuration, deserializeENSApiPublicConfig, deserializeENSIndexerPublicConfig, deserializeEnsApiIndexingStatusResponse, deserializeEnsApiPublicConfig, deserializeEnsIndexerConfigResponse, deserializeEnsIndexerIndexingStatusResponse, deserializeEnsIndexerPublicConfig, deserializeEnsIndexerStackInfo, deserializeEnsNodeStackInfo, deserializeErrorResponse, deserializeIndexingMetadataContext, deserializeIndexingStatusResponse, deserializeOmnichainIndexingStatusSnapshot, deserializePriceDai, deserializePriceEnsTokens, deserializePriceEth, deserializePriceUsdc, deserializeRealtimeIndexingStatusProjection, deserializeRegistrarActionsResponse, deserializeUnixTimestamp, deserializeUrl, deserializedNameTokensResponse, durationBetween, formatNFTTransferEventMetadata, getDatasourceContract, getDefaultEnsNodeUrl, getENSv1RootRegistry, getENSv1RootRegistryId, getENSv2RootRegistry, getENSv2RootRegistryId, getHighestKnownBlockTimestamp, getLatestIndexedBlockRef, getManagedName, getNFTTransferType, getNameTokenOwnership, getNameWrapperAccounts, getOmnichainIndexingCursor, getOmnichainIndexingStatus, getResolvePrimaryNameChainIdParam, getRootRegistry, getRootRegistryId, getTimestampForHighestOmnichainKnownBlock, getTimestampForLowestOmnichainStartBlock, hasNullByte, hasOmnigraphApiConfigSupport, hasOmnigraphApiIndexingStatusSupport, hasRegistrarActionsConfigSupport, hasRegistrarActionsIndexingStatusSupport, hasSubgraphApiConfigSupport, hasSubgraphApiIndexingStatusSupport, isENSv1Registry, isENSv2RootRegistry, isHttpProtocol, isNameWrapper, isPccFuseSet, isRegistrationExpired, isRegistrationFullyExpired, isRegistrationInGracePeriod, isResolvedIdentity, isRootRegistryId, isSelectionEmpty, isSubgraphCompatible, isWebSocketProtocol, labelHashToBytes, makeContractMatcher, maybeGetDatasourceContract, maybeGetENSv2RootRegistry, maybeGetENSv2RootRegistryId, mergeBlockNumberRanges, nameTokensPrerequisites, parseAccountId, parseAssetId, parseNonNegativeInteger, parseTimestamp, registrarActionsFilter, replaceBigInts, scaleBigintByNumber, serializeAssetId, serializeChainId, serializeChainIndexingSnapshots, serializeCrossChainIndexingStatusSnapshot, serializeCrossChainIndexingStatusSnapshotOmnichain, serializeDatetime, serializeDomainAssetId, serializeENSApiPublicConfig, serializeENSIndexerPublicConfig, serializeEnsApiIndexingStatusResponse, serializeEnsApiPublicConfig, serializeEnsIndexerConfigResponse, serializeEnsIndexerIndexingStatusResponse, serializeEnsIndexerPublicConfig, serializeEnsIndexerStackInfo, serializeEnsNodeStackInfo, serializeIndexedChainIds, serializeIndexingMetadataContext, serializeIndexingMetadataContextInitialized, serializeIndexingStatusResponse, serializeNameToken, serializeNameTokensResponse, serializeNamedRegistrarAction, serializeOmnichainIndexingStatusSnapshot, serializePrice, serializePriceDai, serializePriceEnsTokens, serializePriceEth, serializePriceUsdc, serializeRealtimeIndexingStatusProjection, serializeRegisteredNameTokens, serializeRegistrarActionsResponse, serializeUrl, sortChainStatusesByStartBlockAsc, stripNullBytes, toJson, translateDefaultableChainIdToChainId, uniq, validateChainIndexingStatusSnapshot, validateCrossChainIndexingStatusSnapshot, validateEnsIndexerPublicConfig, validateEnsIndexerPublicConfigCompatibility, validateEnsIndexerStackInfo, validateEnsIndexerVersionInfo, validateEnsNodeStackInfo, validateIndexingMetadataContextInitialized, validateOmnichainIndexingStatusSnapshot, validateRealtimeIndexingStatusProjection, validateSupportedLabelSetAndVersion };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ENSNamespaceId, DatasourceName } from '@ensnode/datasources';
|
|
2
2
|
export { ENSNamespaceId, ENSNamespaceIds, getENSRootChainId } from '@ensnode/datasources';
|
|
3
|
-
import { E as EnsRainbowPublicConfig, a as EnsIndexerPublicConfig, b as EnsIndexerVersionInfo, T as TheGraphFallback, U as Unvalidated, B as BlockNumber, c as BlockRef, L as LabelSetId, d as LabelSetVersion, e as EnsRainbowClientLabelSet, f as EnsRainbowServerLabelSet, P as PluginName, m as makeErrorResponseSchema, R as RegistrarAction, S as SerializedRegistrarAction, D as Datetime, g as PriceDai, h as PriceEnsTokens, i as PriceEth, j as PriceUsdc, k as Price, l as SerializedPrice, n as SerializedPriceDai, o as SerializedPriceEnsTokens, p as SerializedPriceEth, q as SerializedPriceUsdc } from './namespace-specific-value-
|
|
4
|
-
export { C as CurrencyAmount, r as CurrencyId, s as CurrencyIds, t as CurrencyInfo, u as DeepPartial, v as ENCODED_REFERRER_BYTE_LENGTH, w as ENCODED_REFERRER_BYTE_OFFSET, x as ENSIndexerPublicConfig, y as ENSIndexerVersionInfo, z as EXPECTED_ENCODED_REFERRER_PADDING, A as EncodedReferrer, F as EnsRainbowVersionInfo, N as NamespaceSpecificValue, G as RegistrarActionEventId, H as RegistrarActionPricing, I as RegistrarActionPricingAvailable, J as RegistrarActionPricingUnknown, K as RegistrarActionReferral, M as RegistrarActionReferralAvailable, O as RegistrarActionReferralNotApplicable, Q as RegistrarActionType, V as RegistrarActionTypes, W as RegistrationLifecycle, X as RegistrationLifecycleStage, Y as RequiredAndNotNull, Z as RequiredAndNull, _ as RpcUrl, $ as SerializedCurrencyAmount, a0 as SerializedRegistrarActionPricing, a1 as SerializedRegistrarActionPricingAvailable, a2 as SerializedRegistrarActionPricingUnknown, a3 as Subregistry, a4 as TheGraphCannotFallbackReason, a5 as TheGraphCannotFallbackReasonSchema, a6 as TheGraphFallbackSchema, a7 as ZERO_ENCODED_REFERRER, a8 as addPrices, a9 as buildEncodedReferrer, aa as decodeEncodedReferrer, ab as getCurrencyInfo, ac as getNamespaceSpecificValue, ad as interpretAddress, ae as interpretAddressRecordValue, af as interpretContenthashValue, ag as interpretDnszonehashValue, ah as interpretNameRecordValue, ai as interpretPubkeyValue, aj as interpretTextRecordKey, ak as interpretTextRecordValue, al as isPriceCurrencyEqual, am as isPriceEqual, an as isRegistrarActionPricingAvailable, ao as isRegistrarActionReferralAvailable, ap as makeENSApiPublicConfigSchema, aq as makeEnsApiPublicConfigSchema, ar as makeSerializedEnsApiPublicConfigSchema, as as maxPrice, at as minPrice, au as parseDai, av as parseEnsTokens, aw as parseEth, ax as parseUsdc, ay as priceDai, az as priceEnsTokens, aA as priceEth, aB as priceUsdc, aC as scalePrice, aD as serializeRegistrarAction, aE as serializeRegistrarActionPricing, aF as subtractPrice } from './namespace-specific-value-
|
|
3
|
+
import { E as EnsRainbowPublicConfig, a as EnsIndexerPublicConfig, b as EnsIndexerVersionInfo, T as TheGraphFallback, U as Unvalidated, B as BlockNumber, c as BlockRef, L as LabelSetId, d as LabelSetVersion, e as EnsRainbowClientLabelSet, f as EnsRainbowServerLabelSet, P as PluginName, m as makeErrorResponseSchema, R as RegistrarAction, S as SerializedRegistrarAction, D as Datetime, g as PriceDai, h as PriceEnsTokens, i as PriceEth, j as PriceUsdc, k as Price, l as SerializedPrice, n as SerializedPriceDai, o as SerializedPriceEnsTokens, p as SerializedPriceEth, q as SerializedPriceUsdc } from './namespace-specific-value-BBZET9O0.js';
|
|
4
|
+
export { C as CurrencyAmount, r as CurrencyId, s as CurrencyIds, t as CurrencyInfo, u as DeepPartial, v as ENCODED_REFERRER_BYTE_LENGTH, w as ENCODED_REFERRER_BYTE_OFFSET, x as ENSIndexerPublicConfig, y as ENSIndexerVersionInfo, z as EXPECTED_ENCODED_REFERRER_PADDING, A as EncodedReferrer, F as EnsRainbowVersionInfo, N as NamespaceSpecificValue, G as RegistrarActionEventId, H as RegistrarActionPricing, I as RegistrarActionPricingAvailable, J as RegistrarActionPricingUnknown, K as RegistrarActionReferral, M as RegistrarActionReferralAvailable, O as RegistrarActionReferralNotApplicable, Q as RegistrarActionType, V as RegistrarActionTypes, W as RegistrationLifecycle, X as RegistrationLifecycleStage, Y as RequiredAndNotNull, Z as RequiredAndNull, _ as RpcUrl, $ as SerializedCurrencyAmount, a0 as SerializedRegistrarActionPricing, a1 as SerializedRegistrarActionPricingAvailable, a2 as SerializedRegistrarActionPricingUnknown, a3 as Subregistry, a4 as TheGraphCannotFallbackReason, a5 as TheGraphCannotFallbackReasonSchema, a6 as TheGraphFallbackSchema, a7 as ZERO_ENCODED_REFERRER, a8 as addPrices, a9 as buildEncodedReferrer, aa as decodeEncodedReferrer, ab as getCurrencyInfo, ac as getNamespaceSpecificValue, ad as interpretAddress, ae as interpretAddressRecordValue, af as interpretContenthashValue, ag as interpretDnszonehashValue, ah as interpretNameRecordValue, ai as interpretPubkeyValue, aj as interpretTextRecordKey, ak as interpretTextRecordValue, al as isPriceCurrencyEqual, am as isPriceEqual, an as isRegistrarActionPricingAvailable, ao as isRegistrarActionReferralAvailable, ap as makeENSApiPublicConfigSchema, aq as makeEnsApiPublicConfigSchema, ar as makeSerializedEnsApiPublicConfigSchema, as as maxPrice, at as minPrice, au as parseDai, av as parseEnsTokens, aw as parseEth, ax as parseUsdc, ay as priceDai, az as priceEnsTokens, aA as priceEth, aB as priceUsdc, aC as scalePrice, aD as serializeRegistrarAction, aE as serializeRegistrarActionPricing, aF as subtractPrice } from './namespace-specific-value-BBZET9O0.js';
|
|
5
5
|
import * as enssdk from 'enssdk';
|
|
6
6
|
import { ChainId, UnixTimestamp, Duration, ChainIdString, LabelHash, Node, Name, AssetId, Hex, AccountId, TokenId, AssetNamespace, Address, AssetIdString, InterpretedName, DefaultableChainId, CoinType, ContentType, InterfaceId, RecordVersion, UrlString, RegistryId, DatetimeISO8601 } from 'enssdk';
|
|
7
7
|
import { ByteArray } from 'viem';
|
|
@@ -2523,11 +2523,10 @@ type ResolverRecordsResponseBase = {
|
|
|
2523
2523
|
* Address records, keyed by CoinType.
|
|
2524
2524
|
* Value is null if no record for the specified CoinType is set.
|
|
2525
2525
|
*
|
|
2526
|
-
*
|
|
2527
|
-
*
|
|
2528
|
-
* the format your application expects.
|
|
2526
|
+
* Values are the "raw" resolved address record as hex. May be a hex value representing 0 or more bytes.
|
|
2527
|
+
* There is no guarantee that an EVM coinType returns an address value of any particular byte length.
|
|
2529
2528
|
*/
|
|
2530
|
-
addresses: Record<CoinType,
|
|
2529
|
+
addresses: Record<CoinType, Hex | null>;
|
|
2531
2530
|
/**
|
|
2532
2531
|
* Text records, keyed by key.
|
|
2533
2532
|
* Value is null if no record for the specified key is set.
|
|
@@ -2585,13 +2584,13 @@ type ResolverRecordsResponseBase = {
|
|
|
2585
2584
|
* // results in the following type
|
|
2586
2585
|
* type Response = {
|
|
2587
2586
|
* readonly name: Name | null;
|
|
2588
|
-
* readonly addresses: Record<"60",
|
|
2587
|
+
* readonly addresses: Record<"60", Hex | null>;
|
|
2589
2588
|
* readonly texts: Record<"avatar" | "com.twitter", string | null>;
|
|
2590
2589
|
* }
|
|
2591
2590
|
* ```
|
|
2592
2591
|
*/
|
|
2593
2592
|
type ResolverRecordsResponse<T extends ResolverRecordsSelection = ResolverRecordsSelection> = {
|
|
2594
|
-
[K in keyof T as T[K] extends true | readonly any[] | bigint ? K : never]: K extends "addresses" ? Record<`${T["addresses"] extends readonly CoinType[] ? T["addresses"][number] : never}`,
|
|
2593
|
+
[K in keyof T as T[K] extends true | readonly any[] | bigint ? K : never]: K extends "addresses" ? Record<`${T["addresses"] extends readonly CoinType[] ? T["addresses"][number] : never}`, Hex | null> : K extends "texts" ? Record<T["texts"] extends readonly string[] ? T["texts"][number] : never, string | null> : K extends "interfaces" ? Record<T["interfaces"] extends readonly InterfaceId[] ? T["interfaces"][number] : never, Address | null> : ResolverRecordsResponseBase[K & keyof ResolverRecordsResponseBase];
|
|
2595
2594
|
};
|
|
2596
2595
|
|
|
2597
2596
|
/**
|
|
@@ -3063,6 +3062,10 @@ declare const DEFAULT_ENSNODE_URL_MAINNET: "https://api.alpha.ensnode.io";
|
|
|
3063
3062
|
* Default ENSNode URL for Sepolia
|
|
3064
3063
|
*/
|
|
3065
3064
|
declare const DEFAULT_ENSNODE_URL_SEPOLIA: "https://api.alpha-sepolia.ensnode.io";
|
|
3065
|
+
/**
|
|
3066
|
+
* Default ENSNode URL for Sepolia-V2
|
|
3067
|
+
*/
|
|
3068
|
+
declare const DEFAULT_ENSNODE_URL_SEPOLIA_V2: "https://api.v2-sepolia.ensnode.io";
|
|
3066
3069
|
/**
|
|
3067
3070
|
* Gets the default ENSNode URL for the provided ENSNamespaceId.
|
|
3068
3071
|
*
|
|
@@ -3727,6 +3730,12 @@ declare const maybeGetENSv2RootRegistry: (namespace: ENSNamespaceId) => AccountI
|
|
|
3727
3730
|
* TODO: remove this function and its usage after all namespaces define ENSv2Root
|
|
3728
3731
|
*/
|
|
3729
3732
|
declare const maybeGetENSv2RootRegistryId: (namespace: ENSNamespaceId) => enssdk.ENSv2RegistryId | undefined;
|
|
3733
|
+
/**
|
|
3734
|
+
* Gets the AccountId representing the preferred Root Registry for the selected `namespace` —
|
|
3735
|
+
* the ENSv2 Root Registry when defined, otherwise the ENSv1 Root Registry. Used as the entry
|
|
3736
|
+
* point for resolution-time namegraph traversal.
|
|
3737
|
+
*/
|
|
3738
|
+
declare const getRootRegistry: (namespace: ENSNamespaceId) => AccountId;
|
|
3730
3739
|
/**
|
|
3731
3740
|
* Gets the RegistryId representing the preferred Root Registry for the selected `namespace` —
|
|
3732
3741
|
* the ENSv2 Root Registry when defined, otherwise the ENSv1 Root Registry. Used as the entry
|
|
@@ -3797,4 +3806,4 @@ declare function hasSubgraphApiConfigSupport(config: EnsIndexerPublicConfig): Pr
|
|
|
3797
3806
|
*/
|
|
3798
3807
|
declare function hasSubgraphApiIndexingStatusSupport(indexingStatus: OmnichainIndexingStatusId): PrerequisiteResult;
|
|
3799
3808
|
|
|
3800
|
-
export { ATTR_PROTOCOL_NAME, ATTR_PROTOCOL_STEP, ATTR_PROTOCOL_STEP_RESULT, type AcceleratableRequest, type AcceleratableResponse, BlockNumber, type BlockNumberRange, type BlockNumberRangeBounded, type BlockNumberRangeLeftBounded, type BlockNumberRangeRightBounded, type BlockNumberRangeUnbounded, type BlockNumberRangeWithStartBlock, BlockRef, type BlockRefRange, type BlockRefRangeBounded, type BlockRefRangeLeftBounded, type BlockRefRangeRightBounded, type BlockRefRangeUnbounded, type BlockRefRangeWithStartBlock, type Cache, type CachedResult, type ChainIndexingStatusId, ChainIndexingStatusIds, type ChainIndexingStatusSnapshot, type ChainIndexingStatusSnapshotBackfill, type ChainIndexingStatusSnapshotCompleted, type ChainIndexingStatusSnapshotFollowing, type ChainIndexingStatusSnapshotForOmnichainIndexingStatusSnapshotBackfill, type ChainIndexingStatusSnapshotQueued, ClientError, type CrossChainIndexingStatusSnapshot, type CrossChainIndexingStatusSnapshotOmnichain, type CrossChainIndexingStrategyId, CrossChainIndexingStrategyIds, DEFAULT_ENSNODE_URL_MAINNET, DEFAULT_ENSNODE_URL_SEPOLIA, Datetime, type DomainAssetId, type ENSApiPublicConfig, type EnsApiIndexingStatusRequest, type EnsApiIndexingStatusResponse, type EnsApiIndexingStatusResponseCode, EnsApiIndexingStatusResponseCodes, type EnsApiIndexingStatusResponseError, type EnsApiIndexingStatusResponseOk, type EnsApiPublicConfig, type EnsApiVersionInfo, type EnsDbPublicConfig, type EnsDbVersionInfo, EnsIndexerClient, type EnsIndexerClientOptions, type EnsIndexerConfigResponse, type EnsIndexerIndexingStatusRequest, type EnsIndexerIndexingStatusResponse, type EnsIndexerIndexingStatusResponseCode, EnsIndexerIndexingStatusResponseCodes, type EnsIndexerIndexingStatusResponseError, type EnsIndexerIndexingStatusResponseOk, EnsIndexerPublicConfig, type EnsIndexerPublicConfigCompatibilityCheck, type EnsIndexerStackInfo, EnsIndexerVersionInfo, EnsNodeClient, type EnsNodeClientOptions, type EnsNodeStackInfo, EnsRainbowClientLabelSet, EnsRainbowPublicConfig, EnsRainbowServerLabelSet, type ErrorResponse, type ForwardResolutionArgs, ForwardResolutionProtocolStep, type ForwardResolutionResult, type Identity, type IndexingMetadataContext, type IndexingMetadataContextInitialized, type IndexingMetadataContextStatusCode, IndexingMetadataContextStatusCodes, type IndexingMetadataContextUninitialized, type IndexingStatusRequest, type IndexingStatusResponse, type IndexingStatusResponseCode, IndexingStatusResponseCodes, type IndexingStatusResponseError, type IndexingStatusResponseOk, LabelSetId, LabelSetVersion, LruCache, type MultichainPrimaryNameResolutionArgs, type MultichainPrimaryNameResolutionResult, type NFTMintStatus, NFTMintStatuses, type NFTTransferEventMetadata, type NFTTransferType, NFTTransferTypes, type NameToken, type NameTokenOwnership, type NameTokenOwnershipBurned, type NameTokenOwnershipFullyOnchain, type NameTokenOwnershipNameWrapper, type NameTokenOwnershipType, NameTokenOwnershipTypes, type NameTokenOwnershipUnknown, type NameTokensRequest, type NameTokensResponse, type NameTokensResponseCode, NameTokensResponseCodes, type NameTokensResponseError, type NameTokensResponseErrorCode, NameTokensResponseErrorCodes, type NameTokensResponseErrorEnsIndexerConfigUnsupported, type NameTokensResponseErrorIndexingStatusUnsupported, type NameTokensResponseErrorNameTokensNotIndexed, type NameTokensResponseOk, type NamedIdentity, type NamedRegistrarAction, type OmnichainIndexingStatusId, OmnichainIndexingStatusIds, type OmnichainIndexingStatusSnapshot, type OmnichainIndexingStatusSnapshotBackfill, type OmnichainIndexingStatusSnapshotCompleted, type OmnichainIndexingStatusSnapshotFollowing, type OmnichainIndexingStatusSnapshotUnstarted, PROTOCOL_ATTRIBUTE_PREFIX, PluginName, type PrerequisiteResult, Price, PriceDai, PriceEnsTokens, PriceEth, PriceUsdc, RECORDS_PER_PAGE_DEFAULT, RECORDS_PER_PAGE_MAX, type RangeType, RangeTypeIds, type RealtimeIndexingStatusProjection, type RegisteredNameTokens, RegistrarAction, type RegistrarActionsFilter, type RegistrarActionsFilterBeginTimestamp, type RegistrarActionsFilterByDecodedReferrer, type RegistrarActionsFilterBySubregistryNode, type RegistrarActionsFilterEndTimestamp, type RegistrarActionsFilterType, RegistrarActionsFilterTypes, type RegistrarActionsFilterWithEncodedReferral, type RegistrarActionsOrder, RegistrarActionsOrders, type RegistrarActionsRequest, type RegistrarActionsResponse, type RegistrarActionsResponseCode, RegistrarActionsResponseCodes, type RegistrarActionsResponseError, type RegistrarActionsResponseOk, type RegistrationExpiryInfo, type ReplaceBigInts, type RequestPageParams, type ResolutionStatusId, ResolutionStatusIds, type ResolvePrimaryNameRequest, type ResolvePrimaryNameResponse, type ResolvePrimaryNamesRequest, type ResolvePrimaryNamesResponse, type ResolveRecordsRequest, type ResolveRecordsResponse, type ResolvedIdentity, type ResolverRecordsResponse, type ResolverRecordsResponseBase, type ResolverRecordsSelection, type ResponsePageContext, type ResponsePageContextWithNoRecords, type ResponsePageContextWithRecords, type ReverseResolutionArgs, ReverseResolutionProtocolStep, type ReverseResolutionResult, SWRCache, type SWRCacheOptions, type SerializedAssetId, type SerializedChainIndexingStatusSnapshot, type SerializedChainIndexingStatusSnapshotBackfill, type SerializedChainIndexingStatusSnapshotCompleted, type SerializedChainIndexingStatusSnapshotFollowing, type SerializedChainIndexingStatusSnapshotQueued, type SerializedCrossChainIndexingStatusSnapshot, type SerializedCrossChainIndexingStatusSnapshotOmnichain, type SerializedCurrentIndexingProjectionOmnichain, type SerializedDomainAssetId, type SerializedENSApiPublicConfig, type SerializedENSIndexerPublicConfig, type SerializedENSIndexerVersionInfo, type SerializedEnsApiIndexingStatusResponse, type SerializedEnsApiIndexingStatusResponseError, type SerializedEnsApiIndexingStatusResponseOk, type SerializedEnsApiPublicConfig, type SerializedEnsDbPublicConfig, type SerializedEnsIndexerConfigResponse, type SerializedEnsIndexerIndexingStatusResponse, type SerializedEnsIndexerIndexingStatusResponseError, type SerializedEnsIndexerIndexingStatusResponseOk, type SerializedEnsIndexerPublicConfig, type SerializedEnsIndexerStackInfo, type SerializedEnsIndexerVersionInfo, type SerializedEnsNodeStackInfo, type SerializedEnsRainbowPublicConfig, type SerializedIndexedChainIds, type SerializedIndexingMetadataContext, type SerializedIndexingMetadataContextInitialized, type SerializedIndexingMetadataContextUninitialized, type SerializedIndexingStatusResponse, type SerializedIndexingStatusResponseError, type SerializedIndexingStatusResponseOk, type SerializedNameToken, type SerializedNameTokensResponse, type SerializedNameTokensResponseError, type SerializedNameTokensResponseOk, type SerializedNamedRegistrarAction, type SerializedOmnichainIndexingStatusSnapshot, type SerializedOmnichainIndexingStatusSnapshotBackfill, type SerializedOmnichainIndexingStatusSnapshotCompleted, type SerializedOmnichainIndexingStatusSnapshotFollowing, type SerializedOmnichainIndexingStatusSnapshotUnstarted, SerializedPrice, SerializedPriceDai, SerializedPriceEnsTokens, SerializedPriceEth, SerializedPriceUsdc, type SerializedRealtimeIndexingStatusProjection, type SerializedRegisteredNameTokens, SerializedRegistrarAction, type SerializedRegistrarActionsResponse, type SerializedRegistrarActionsResponseError, type SerializedRegistrarActionsResponseOk, type SerializedTokenId, TheGraphFallback, TraceableENSProtocol, type TraceableRequest, type TraceableResponse, type TracingNode, type TracingSpan, type TracingTrace, TtlCache, type UnknownIdentity, type UnnamedIdentity, type UnresolvedIdentity, Unvalidated, accountIdEqual, addDuration, bigIntToNumber, buildAssetId, buildBlockNumberRange, buildBlockRefRange, buildCrossChainIndexingStatusSnapshotOmnichain, buildEnsIndexerStackInfo, buildEnsNodeStackInfo, buildEnsRainbowClientLabelSet, buildIndexedBlockranges, buildIndexingMetadataContextInitialized, buildIndexingMetadataContextUninitialized, buildLabelSetId, buildLabelSetVersion, buildOmnichainIndexingStatusSnapshot, buildPageContext, buildUnresolvedIdentity, buildUnvalidatedCrossChainIndexingStatusSnapshot, buildUnvalidatedEnsApiPublicConfig, buildUnvalidatedEnsIndexerPublicConfig, buildUnvalidatedEnsIndexerStackInfo, buildUnvalidatedEnsNodeStackInfo, buildUnvalidatedOmnichainIndexingStatusSnapshot, buildUnvalidatedRealtimeIndexingStatusProjection, checkChainIndexingStatusSnapshotsForOmnichainStatusSnapshotBackfill, checkChainIndexingStatusSnapshotsForOmnichainStatusSnapshotCompleted, checkChainIndexingStatusSnapshotsForOmnichainStatusSnapshotFollowing, checkChainIndexingStatusSnapshotsForOmnichainStatusSnapshotUnstarted, createRealtimeIndexingStatusProjection, deserializeAssetId, deserializeBlockNumber, deserializeBlockRef, deserializeChainId, deserializeChainIndexingStatusSnapshot, deserializeCrossChainIndexingStatusSnapshot, deserializeDatetime, deserializeDuration, deserializeENSApiPublicConfig, deserializeENSIndexerPublicConfig, deserializeEnsApiIndexingStatusResponse, deserializeEnsApiPublicConfig, deserializeEnsIndexerConfigResponse, deserializeEnsIndexerIndexingStatusResponse, deserializeEnsIndexerPublicConfig, deserializeEnsIndexerStackInfo, deserializeEnsNodeStackInfo, deserializeErrorResponse, deserializeIndexingMetadataContext, deserializeIndexingStatusResponse, deserializeOmnichainIndexingStatusSnapshot, deserializePriceDai, deserializePriceEnsTokens, deserializePriceEth, deserializePriceUsdc, deserializeRealtimeIndexingStatusProjection, deserializeRegistrarActionsResponse, deserializeUnixTimestamp, deserializeUrl, deserializedNameTokensResponse, durationBetween, formatNFTTransferEventMetadata, getDatasourceContract, getDefaultEnsNodeUrl, getENSv1RootRegistry, getENSv1RootRegistryId, getENSv2RootRegistry, getENSv2RootRegistryId, getHighestKnownBlockTimestamp, getLatestIndexedBlockRef, getManagedName, getNFTTransferType, getNameTokenOwnership, getNameWrapperAccounts, getOmnichainIndexingCursor, getOmnichainIndexingStatus, getResolvePrimaryNameChainIdParam, getRootRegistryId, getTimestampForHighestOmnichainKnownBlock, getTimestampForLowestOmnichainStartBlock, hasNullByte, hasOmnigraphApiConfigSupport, hasOmnigraphApiIndexingStatusSupport, hasRegistrarActionsConfigSupport, hasRegistrarActionsIndexingStatusSupport, hasSubgraphApiConfigSupport, hasSubgraphApiIndexingStatusSupport, isENSv1Registry, isENSv2RootRegistry, isHttpProtocol, isNameWrapper, isPccFuseSet, isRegistrationExpired, isRegistrationFullyExpired, isRegistrationInGracePeriod, isResolvedIdentity, isRootRegistryId, isSelectionEmpty, isSubgraphCompatible, isWebSocketProtocol, labelHashToBytes, makeContractMatcher, maybeGetDatasourceContract, maybeGetENSv2RootRegistry, maybeGetENSv2RootRegistryId, mergeBlockNumberRanges, nameTokensPrerequisites, parseAccountId, parseAssetId, parseNonNegativeInteger, parseTimestamp, registrarActionsFilter, replaceBigInts, scaleBigintByNumber, serializeAssetId, serializeChainId, serializeChainIndexingSnapshots, serializeCrossChainIndexingStatusSnapshot, serializeCrossChainIndexingStatusSnapshotOmnichain, serializeDatetime, serializeDomainAssetId, serializeENSApiPublicConfig, serializeENSIndexerPublicConfig, serializeEnsApiIndexingStatusResponse, serializeEnsApiPublicConfig, serializeEnsIndexerConfigResponse, serializeEnsIndexerIndexingStatusResponse, serializeEnsIndexerPublicConfig, serializeEnsIndexerStackInfo, serializeEnsNodeStackInfo, serializeIndexedChainIds, serializeIndexingMetadataContext, serializeIndexingMetadataContextInitialized, serializeIndexingStatusResponse, serializeNameToken, serializeNameTokensResponse, serializeNamedRegistrarAction, serializeOmnichainIndexingStatusSnapshot, serializePrice, serializePriceDai, serializePriceEnsTokens, serializePriceEth, serializePriceUsdc, serializeRealtimeIndexingStatusProjection, serializeRegisteredNameTokens, serializeRegistrarActionsResponse, serializeUrl, sortChainStatusesByStartBlockAsc, stripNullBytes, toJson, translateDefaultableChainIdToChainId, uniq, validateChainIndexingStatusSnapshot, validateCrossChainIndexingStatusSnapshot, validateEnsIndexerPublicConfig, validateEnsIndexerPublicConfigCompatibility, validateEnsIndexerStackInfo, validateEnsIndexerVersionInfo, validateEnsNodeStackInfo, validateIndexingMetadataContextInitialized, validateOmnichainIndexingStatusSnapshot, validateRealtimeIndexingStatusProjection, validateSupportedLabelSetAndVersion };
|
|
3809
|
+
export { ATTR_PROTOCOL_NAME, ATTR_PROTOCOL_STEP, ATTR_PROTOCOL_STEP_RESULT, type AcceleratableRequest, type AcceleratableResponse, BlockNumber, type BlockNumberRange, type BlockNumberRangeBounded, type BlockNumberRangeLeftBounded, type BlockNumberRangeRightBounded, type BlockNumberRangeUnbounded, type BlockNumberRangeWithStartBlock, BlockRef, type BlockRefRange, type BlockRefRangeBounded, type BlockRefRangeLeftBounded, type BlockRefRangeRightBounded, type BlockRefRangeUnbounded, type BlockRefRangeWithStartBlock, type Cache, type CachedResult, type ChainIndexingStatusId, ChainIndexingStatusIds, type ChainIndexingStatusSnapshot, type ChainIndexingStatusSnapshotBackfill, type ChainIndexingStatusSnapshotCompleted, type ChainIndexingStatusSnapshotFollowing, type ChainIndexingStatusSnapshotForOmnichainIndexingStatusSnapshotBackfill, type ChainIndexingStatusSnapshotQueued, ClientError, type CrossChainIndexingStatusSnapshot, type CrossChainIndexingStatusSnapshotOmnichain, type CrossChainIndexingStrategyId, CrossChainIndexingStrategyIds, DEFAULT_ENSNODE_URL_MAINNET, DEFAULT_ENSNODE_URL_SEPOLIA, DEFAULT_ENSNODE_URL_SEPOLIA_V2, Datetime, type DomainAssetId, type ENSApiPublicConfig, type EnsApiIndexingStatusRequest, type EnsApiIndexingStatusResponse, type EnsApiIndexingStatusResponseCode, EnsApiIndexingStatusResponseCodes, type EnsApiIndexingStatusResponseError, type EnsApiIndexingStatusResponseOk, type EnsApiPublicConfig, type EnsApiVersionInfo, type EnsDbPublicConfig, type EnsDbVersionInfo, EnsIndexerClient, type EnsIndexerClientOptions, type EnsIndexerConfigResponse, type EnsIndexerIndexingStatusRequest, type EnsIndexerIndexingStatusResponse, type EnsIndexerIndexingStatusResponseCode, EnsIndexerIndexingStatusResponseCodes, type EnsIndexerIndexingStatusResponseError, type EnsIndexerIndexingStatusResponseOk, EnsIndexerPublicConfig, type EnsIndexerPublicConfigCompatibilityCheck, type EnsIndexerStackInfo, EnsIndexerVersionInfo, EnsNodeClient, type EnsNodeClientOptions, type EnsNodeStackInfo, EnsRainbowClientLabelSet, EnsRainbowPublicConfig, EnsRainbowServerLabelSet, type ErrorResponse, type ForwardResolutionArgs, ForwardResolutionProtocolStep, type ForwardResolutionResult, type Identity, type IndexingMetadataContext, type IndexingMetadataContextInitialized, type IndexingMetadataContextStatusCode, IndexingMetadataContextStatusCodes, type IndexingMetadataContextUninitialized, type IndexingStatusRequest, type IndexingStatusResponse, type IndexingStatusResponseCode, IndexingStatusResponseCodes, type IndexingStatusResponseError, type IndexingStatusResponseOk, LabelSetId, LabelSetVersion, LruCache, type MultichainPrimaryNameResolutionArgs, type MultichainPrimaryNameResolutionResult, type NFTMintStatus, NFTMintStatuses, type NFTTransferEventMetadata, type NFTTransferType, NFTTransferTypes, type NameToken, type NameTokenOwnership, type NameTokenOwnershipBurned, type NameTokenOwnershipFullyOnchain, type NameTokenOwnershipNameWrapper, type NameTokenOwnershipType, NameTokenOwnershipTypes, type NameTokenOwnershipUnknown, type NameTokensRequest, type NameTokensResponse, type NameTokensResponseCode, NameTokensResponseCodes, type NameTokensResponseError, type NameTokensResponseErrorCode, NameTokensResponseErrorCodes, type NameTokensResponseErrorEnsIndexerConfigUnsupported, type NameTokensResponseErrorIndexingStatusUnsupported, type NameTokensResponseErrorNameTokensNotIndexed, type NameTokensResponseOk, type NamedIdentity, type NamedRegistrarAction, type OmnichainIndexingStatusId, OmnichainIndexingStatusIds, type OmnichainIndexingStatusSnapshot, type OmnichainIndexingStatusSnapshotBackfill, type OmnichainIndexingStatusSnapshotCompleted, type OmnichainIndexingStatusSnapshotFollowing, type OmnichainIndexingStatusSnapshotUnstarted, PROTOCOL_ATTRIBUTE_PREFIX, PluginName, type PrerequisiteResult, Price, PriceDai, PriceEnsTokens, PriceEth, PriceUsdc, RECORDS_PER_PAGE_DEFAULT, RECORDS_PER_PAGE_MAX, type RangeType, RangeTypeIds, type RealtimeIndexingStatusProjection, type RegisteredNameTokens, RegistrarAction, type RegistrarActionsFilter, type RegistrarActionsFilterBeginTimestamp, type RegistrarActionsFilterByDecodedReferrer, type RegistrarActionsFilterBySubregistryNode, type RegistrarActionsFilterEndTimestamp, type RegistrarActionsFilterType, RegistrarActionsFilterTypes, type RegistrarActionsFilterWithEncodedReferral, type RegistrarActionsOrder, RegistrarActionsOrders, type RegistrarActionsRequest, type RegistrarActionsResponse, type RegistrarActionsResponseCode, RegistrarActionsResponseCodes, type RegistrarActionsResponseError, type RegistrarActionsResponseOk, type RegistrationExpiryInfo, type ReplaceBigInts, type RequestPageParams, type ResolutionStatusId, ResolutionStatusIds, type ResolvePrimaryNameRequest, type ResolvePrimaryNameResponse, type ResolvePrimaryNamesRequest, type ResolvePrimaryNamesResponse, type ResolveRecordsRequest, type ResolveRecordsResponse, type ResolvedIdentity, type ResolverRecordsResponse, type ResolverRecordsResponseBase, type ResolverRecordsSelection, type ResponsePageContext, type ResponsePageContextWithNoRecords, type ResponsePageContextWithRecords, type ReverseResolutionArgs, ReverseResolutionProtocolStep, type ReverseResolutionResult, SWRCache, type SWRCacheOptions, type SerializedAssetId, type SerializedChainIndexingStatusSnapshot, type SerializedChainIndexingStatusSnapshotBackfill, type SerializedChainIndexingStatusSnapshotCompleted, type SerializedChainIndexingStatusSnapshotFollowing, type SerializedChainIndexingStatusSnapshotQueued, type SerializedCrossChainIndexingStatusSnapshot, type SerializedCrossChainIndexingStatusSnapshotOmnichain, type SerializedCurrentIndexingProjectionOmnichain, type SerializedDomainAssetId, type SerializedENSApiPublicConfig, type SerializedENSIndexerPublicConfig, type SerializedENSIndexerVersionInfo, type SerializedEnsApiIndexingStatusResponse, type SerializedEnsApiIndexingStatusResponseError, type SerializedEnsApiIndexingStatusResponseOk, type SerializedEnsApiPublicConfig, type SerializedEnsDbPublicConfig, type SerializedEnsIndexerConfigResponse, type SerializedEnsIndexerIndexingStatusResponse, type SerializedEnsIndexerIndexingStatusResponseError, type SerializedEnsIndexerIndexingStatusResponseOk, type SerializedEnsIndexerPublicConfig, type SerializedEnsIndexerStackInfo, type SerializedEnsIndexerVersionInfo, type SerializedEnsNodeStackInfo, type SerializedEnsRainbowPublicConfig, type SerializedIndexedChainIds, type SerializedIndexingMetadataContext, type SerializedIndexingMetadataContextInitialized, type SerializedIndexingMetadataContextUninitialized, type SerializedIndexingStatusResponse, type SerializedIndexingStatusResponseError, type SerializedIndexingStatusResponseOk, type SerializedNameToken, type SerializedNameTokensResponse, type SerializedNameTokensResponseError, type SerializedNameTokensResponseOk, type SerializedNamedRegistrarAction, type SerializedOmnichainIndexingStatusSnapshot, type SerializedOmnichainIndexingStatusSnapshotBackfill, type SerializedOmnichainIndexingStatusSnapshotCompleted, type SerializedOmnichainIndexingStatusSnapshotFollowing, type SerializedOmnichainIndexingStatusSnapshotUnstarted, SerializedPrice, SerializedPriceDai, SerializedPriceEnsTokens, SerializedPriceEth, SerializedPriceUsdc, type SerializedRealtimeIndexingStatusProjection, type SerializedRegisteredNameTokens, SerializedRegistrarAction, type SerializedRegistrarActionsResponse, type SerializedRegistrarActionsResponseError, type SerializedRegistrarActionsResponseOk, type SerializedTokenId, TheGraphFallback, TraceableENSProtocol, type TraceableRequest, type TraceableResponse, type TracingNode, type TracingSpan, type TracingTrace, TtlCache, type UnknownIdentity, type UnnamedIdentity, type UnresolvedIdentity, Unvalidated, accountIdEqual, addDuration, bigIntToNumber, buildAssetId, buildBlockNumberRange, buildBlockRefRange, buildCrossChainIndexingStatusSnapshotOmnichain, buildEnsIndexerStackInfo, buildEnsNodeStackInfo, buildEnsRainbowClientLabelSet, buildIndexedBlockranges, buildIndexingMetadataContextInitialized, buildIndexingMetadataContextUninitialized, buildLabelSetId, buildLabelSetVersion, buildOmnichainIndexingStatusSnapshot, buildPageContext, buildUnresolvedIdentity, buildUnvalidatedCrossChainIndexingStatusSnapshot, buildUnvalidatedEnsApiPublicConfig, buildUnvalidatedEnsIndexerPublicConfig, buildUnvalidatedEnsIndexerStackInfo, buildUnvalidatedEnsNodeStackInfo, buildUnvalidatedOmnichainIndexingStatusSnapshot, buildUnvalidatedRealtimeIndexingStatusProjection, checkChainIndexingStatusSnapshotsForOmnichainStatusSnapshotBackfill, checkChainIndexingStatusSnapshotsForOmnichainStatusSnapshotCompleted, checkChainIndexingStatusSnapshotsForOmnichainStatusSnapshotFollowing, checkChainIndexingStatusSnapshotsForOmnichainStatusSnapshotUnstarted, createRealtimeIndexingStatusProjection, deserializeAssetId, deserializeBlockNumber, deserializeBlockRef, deserializeChainId, deserializeChainIndexingStatusSnapshot, deserializeCrossChainIndexingStatusSnapshot, deserializeDatetime, deserializeDuration, deserializeENSApiPublicConfig, deserializeENSIndexerPublicConfig, deserializeEnsApiIndexingStatusResponse, deserializeEnsApiPublicConfig, deserializeEnsIndexerConfigResponse, deserializeEnsIndexerIndexingStatusResponse, deserializeEnsIndexerPublicConfig, deserializeEnsIndexerStackInfo, deserializeEnsNodeStackInfo, deserializeErrorResponse, deserializeIndexingMetadataContext, deserializeIndexingStatusResponse, deserializeOmnichainIndexingStatusSnapshot, deserializePriceDai, deserializePriceEnsTokens, deserializePriceEth, deserializePriceUsdc, deserializeRealtimeIndexingStatusProjection, deserializeRegistrarActionsResponse, deserializeUnixTimestamp, deserializeUrl, deserializedNameTokensResponse, durationBetween, formatNFTTransferEventMetadata, getDatasourceContract, getDefaultEnsNodeUrl, getENSv1RootRegistry, getENSv1RootRegistryId, getENSv2RootRegistry, getENSv2RootRegistryId, getHighestKnownBlockTimestamp, getLatestIndexedBlockRef, getManagedName, getNFTTransferType, getNameTokenOwnership, getNameWrapperAccounts, getOmnichainIndexingCursor, getOmnichainIndexingStatus, getResolvePrimaryNameChainIdParam, getRootRegistry, getRootRegistryId, getTimestampForHighestOmnichainKnownBlock, getTimestampForLowestOmnichainStartBlock, hasNullByte, hasOmnigraphApiConfigSupport, hasOmnigraphApiIndexingStatusSupport, hasRegistrarActionsConfigSupport, hasRegistrarActionsIndexingStatusSupport, hasSubgraphApiConfigSupport, hasSubgraphApiIndexingStatusSupport, isENSv1Registry, isENSv2RootRegistry, isHttpProtocol, isNameWrapper, isPccFuseSet, isRegistrationExpired, isRegistrationFullyExpired, isRegistrationInGracePeriod, isResolvedIdentity, isRootRegistryId, isSelectionEmpty, isSubgraphCompatible, isWebSocketProtocol, labelHashToBytes, makeContractMatcher, maybeGetDatasourceContract, maybeGetENSv2RootRegistry, maybeGetENSv2RootRegistryId, mergeBlockNumberRanges, nameTokensPrerequisites, parseAccountId, parseAssetId, parseNonNegativeInteger, parseTimestamp, registrarActionsFilter, replaceBigInts, scaleBigintByNumber, serializeAssetId, serializeChainId, serializeChainIndexingSnapshots, serializeCrossChainIndexingStatusSnapshot, serializeCrossChainIndexingStatusSnapshotOmnichain, serializeDatetime, serializeDomainAssetId, serializeENSApiPublicConfig, serializeENSIndexerPublicConfig, serializeEnsApiIndexingStatusResponse, serializeEnsApiPublicConfig, serializeEnsIndexerConfigResponse, serializeEnsIndexerIndexingStatusResponse, serializeEnsIndexerPublicConfig, serializeEnsIndexerStackInfo, serializeEnsNodeStackInfo, serializeIndexedChainIds, serializeIndexingMetadataContext, serializeIndexingMetadataContextInitialized, serializeIndexingStatusResponse, serializeNameToken, serializeNameTokensResponse, serializeNamedRegistrarAction, serializeOmnichainIndexingStatusSnapshot, serializePrice, serializePriceDai, serializePriceEnsTokens, serializePriceEth, serializePriceUsdc, serializeRealtimeIndexingStatusProjection, serializeRegisteredNameTokens, serializeRegistrarActionsResponse, serializeUrl, sortChainStatusesByStartBlockAsc, stripNullBytes, toJson, translateDefaultableChainIdToChainId, uniq, validateChainIndexingStatusSnapshot, validateCrossChainIndexingStatusSnapshot, validateEnsIndexerPublicConfig, validateEnsIndexerPublicConfigCompatibility, validateEnsIndexerStackInfo, validateEnsIndexerVersionInfo, validateEnsNodeStackInfo, validateIndexingMetadataContextInitialized, validateOmnichainIndexingStatusSnapshot, validateRealtimeIndexingStatusProjection, validateSupportedLabelSetAndVersion };
|
package/dist/index.js
CHANGED
|
@@ -3398,6 +3398,7 @@ var ClientError = class _ClientError extends Error {
|
|
|
3398
3398
|
import { ENSNamespaceIds as ENSNamespaceIds3 } from "@ensnode/datasources";
|
|
3399
3399
|
var DEFAULT_ENSNODE_URL_MAINNET = "https://api.alpha.ensnode.io";
|
|
3400
3400
|
var DEFAULT_ENSNODE_URL_SEPOLIA = "https://api.alpha-sepolia.ensnode.io";
|
|
3401
|
+
var DEFAULT_ENSNODE_URL_SEPOLIA_V2 = "https://api.v2-sepolia.ensnode.io";
|
|
3401
3402
|
var getDefaultEnsNodeUrl = (namespace) => {
|
|
3402
3403
|
const effectiveNamespace = namespace ?? ENSNamespaceIds3.Mainnet;
|
|
3403
3404
|
switch (effectiveNamespace) {
|
|
@@ -3405,6 +3406,8 @@ var getDefaultEnsNodeUrl = (namespace) => {
|
|
|
3405
3406
|
return new URL(DEFAULT_ENSNODE_URL_MAINNET);
|
|
3406
3407
|
case ENSNamespaceIds3.Sepolia:
|
|
3407
3408
|
return new URL(DEFAULT_ENSNODE_URL_SEPOLIA);
|
|
3409
|
+
case ENSNamespaceIds3.SepoliaV2:
|
|
3410
|
+
return new URL(DEFAULT_ENSNODE_URL_SEPOLIA_V2);
|
|
3408
3411
|
default:
|
|
3409
3412
|
throw new Error(
|
|
3410
3413
|
`ENSNamespaceId ${effectiveNamespace} does not have a default ENSNode URL defined`
|
|
@@ -4579,8 +4582,8 @@ import { isAddressEqual as isAddressEqual4, zeroAddress as zeroAddress5 } from "
|
|
|
4579
4582
|
var interpretAddress = (owner) => isAddressEqual4(zeroAddress5, owner) ? null : owner;
|
|
4580
4583
|
|
|
4581
4584
|
// src/shared/interpretation/interpret-record-values.ts
|
|
4582
|
-
import { isInterpretedName
|
|
4583
|
-
import {
|
|
4585
|
+
import { isInterpretedName } from "enssdk";
|
|
4586
|
+
import { isHex as isHex2, zeroAddress as zeroAddress6 } from "viem";
|
|
4584
4587
|
|
|
4585
4588
|
// src/shared/null-bytes.ts
|
|
4586
4589
|
var hasNullByte = (value) => value.indexOf("\0") !== -1;
|
|
@@ -4593,12 +4596,11 @@ function interpretNameRecordValue(value) {
|
|
|
4593
4596
|
return value;
|
|
4594
4597
|
}
|
|
4595
4598
|
function interpretAddressRecordValue(value) {
|
|
4596
|
-
if (hasNullByte(value)) return null;
|
|
4597
|
-
if (value === "") return null;
|
|
4598
4599
|
if (value === "0x") return null;
|
|
4599
|
-
if (!
|
|
4600
|
-
|
|
4601
|
-
|
|
4600
|
+
if (!isHex2(value, { strict: true })) return null;
|
|
4601
|
+
const normalized = value.toLowerCase();
|
|
4602
|
+
if (normalized === zeroAddress6) return null;
|
|
4603
|
+
return normalized;
|
|
4602
4604
|
}
|
|
4603
4605
|
function interpretTextRecordKey(key) {
|
|
4604
4606
|
if (hasNullByte(key)) return null;
|
|
@@ -4801,7 +4803,11 @@ var replaceBigInts = (obj, replacer) => {
|
|
|
4801
4803
|
};
|
|
4802
4804
|
|
|
4803
4805
|
// src/shared/root-registry.ts
|
|
4804
|
-
import {
|
|
4806
|
+
import {
|
|
4807
|
+
makeConcreteRegistryId,
|
|
4808
|
+
makeENSv1RegistryId,
|
|
4809
|
+
makeENSv2RegistryId
|
|
4810
|
+
} from "enssdk";
|
|
4805
4811
|
import { DatasourceNames as DatasourceNames3 } from "@ensnode/datasources";
|
|
4806
4812
|
var getENSv1RootRegistry = (namespace) => getDatasourceContract(namespace, DatasourceNames3.ENSRoot, "ENSv1Registry");
|
|
4807
4813
|
var getENSv1RootRegistryId = (namespace) => makeENSv1RegistryId(getENSv1RootRegistry(namespace));
|
|
@@ -4815,7 +4821,8 @@ var maybeGetENSv2RootRegistryId = (namespace) => {
|
|
|
4815
4821
|
if (!root) return void 0;
|
|
4816
4822
|
return makeENSv2RegistryId(root);
|
|
4817
4823
|
};
|
|
4818
|
-
var
|
|
4824
|
+
var getRootRegistry = (namespace) => maybeGetENSv2RootRegistry(namespace) ?? getENSv1RootRegistry(namespace);
|
|
4825
|
+
var getRootRegistryId = (namespace) => makeConcreteRegistryId(getRootRegistry(namespace));
|
|
4819
4826
|
var isRootRegistryId = (namespace, registryId) => registryId === getENSv1RootRegistryId(namespace) || registryId === maybeGetENSv2RootRegistryId(namespace);
|
|
4820
4827
|
|
|
4821
4828
|
// src/shared/url.ts
|
|
@@ -4878,6 +4885,7 @@ export {
|
|
|
4878
4885
|
CurrencyIds,
|
|
4879
4886
|
DEFAULT_ENSNODE_URL_MAINNET,
|
|
4880
4887
|
DEFAULT_ENSNODE_URL_SEPOLIA,
|
|
4888
|
+
DEFAULT_ENSNODE_URL_SEPOLIA_V2,
|
|
4881
4889
|
ENCODED_REFERRER_BYTE_LENGTH,
|
|
4882
4890
|
ENCODED_REFERRER_BYTE_OFFSET,
|
|
4883
4891
|
ENSNamespaceIds4 as ENSNamespaceIds,
|
|
@@ -4996,6 +5004,7 @@ export {
|
|
|
4996
5004
|
getOmnichainIndexingCursor,
|
|
4997
5005
|
getOmnichainIndexingStatus,
|
|
4998
5006
|
getResolvePrimaryNameChainIdParam,
|
|
5007
|
+
getRootRegistry,
|
|
4999
5008
|
getRootRegistryId,
|
|
5000
5009
|
getTimestampForHighestOmnichainKnownBlock,
|
|
5001
5010
|
getTimestampForLowestOmnichainStartBlock,
|