@ensnode/ensnode-sdk 0.0.0-next-20260601084304 → 0.0.0-next-20260601140021
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/dist/index.cjs +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -8
- package/dist/index.d.ts +7 -8
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +6 -5
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +2 -2
- package/dist/internal.d.ts +2 -2
- package/dist/internal.js +8 -7
- package/dist/internal.js.map +1 -1
- package/dist/{namespace-specific-value-CPvcFpGI.d.cts → namespace-specific-value-BGuLucNQ.d.cts} +5 -6
- package/dist/{namespace-specific-value-CPvcFpGI.d.ts → namespace-specific-value-BGuLucNQ.d.ts} +5 -6
- package/package.json +4 -4
package/dist/internal.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as EnsIndexerPublicConfig, r as CurrencyId, i as PriceEth, I as RegistrarActionPricingAvailable, J as RegistrarActionPricingUnknown, p as SerializedPriceEth, N as NamespaceSpecificValue, T as TheGraphFallback, g as PriceDai, h as PriceEnsTokens, j as PriceUsdc } from './namespace-specific-value-
|
|
2
|
-
export { a4 as TheGraphCannotFallbackReason, a5 as TheGraphCannotFallbackReasonSchema, a6 as TheGraphFallbackSchema, ad as interpretAddress, ae as interpretAddressRecordValue, af as interpretContenthashValue, ag as interpretDnszonehashValue, ah as interpretNameRecordValue, ai as interpretPubkeyValue, aj as interpretTextRecordKey, ak as interpretTextRecordValue, ap as makeENSApiPublicConfigSchema, aq as makeEnsApiPublicConfigSchema, m as makeErrorResponseSchema, ar as makeSerializedEnsApiPublicConfigSchema } from './namespace-specific-value-
|
|
1
|
+
import { a as EnsIndexerPublicConfig, r as CurrencyId, i as PriceEth, I as RegistrarActionPricingAvailable, J as RegistrarActionPricingUnknown, p as SerializedPriceEth, N as NamespaceSpecificValue, T as TheGraphFallback, g as PriceDai, h as PriceEnsTokens, j as PriceUsdc } from './namespace-specific-value-BGuLucNQ.cjs';
|
|
2
|
+
export { a4 as TheGraphCannotFallbackReason, a5 as TheGraphCannotFallbackReasonSchema, a6 as TheGraphFallbackSchema, ad as interpretAddress, ae as interpretAddressRecordValue, af as interpretContenthashValue, ag as interpretDnszonehashValue, ah as interpretNameRecordValue, ai as interpretPubkeyValue, aj as interpretTextRecordKey, ak as interpretTextRecordValue, ap as makeENSApiPublicConfigSchema, aq as makeEnsApiPublicConfigSchema, m as makeErrorResponseSchema, ar as makeSerializedEnsApiPublicConfigSchema } from './namespace-specific-value-BGuLucNQ.cjs';
|
|
3
3
|
import { z } from 'zod/v4';
|
|
4
4
|
import * as enssdk from 'enssdk';
|
|
5
5
|
import { InterpretedName, InterfaceId, Address, ChainId, ChainIdString, AccountId, DomainId, RegistryId } from 'enssdk';
|
package/dist/internal.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as EnsIndexerPublicConfig, r as CurrencyId, i as PriceEth, I as RegistrarActionPricingAvailable, J as RegistrarActionPricingUnknown, p as SerializedPriceEth, N as NamespaceSpecificValue, T as TheGraphFallback, g as PriceDai, h as PriceEnsTokens, j as PriceUsdc } from './namespace-specific-value-
|
|
2
|
-
export { a4 as TheGraphCannotFallbackReason, a5 as TheGraphCannotFallbackReasonSchema, a6 as TheGraphFallbackSchema, ad as interpretAddress, ae as interpretAddressRecordValue, af as interpretContenthashValue, ag as interpretDnszonehashValue, ah as interpretNameRecordValue, ai as interpretPubkeyValue, aj as interpretTextRecordKey, ak as interpretTextRecordValue, ap as makeENSApiPublicConfigSchema, aq as makeEnsApiPublicConfigSchema, m as makeErrorResponseSchema, ar as makeSerializedEnsApiPublicConfigSchema } from './namespace-specific-value-
|
|
1
|
+
import { a as EnsIndexerPublicConfig, r as CurrencyId, i as PriceEth, I as RegistrarActionPricingAvailable, J as RegistrarActionPricingUnknown, p as SerializedPriceEth, N as NamespaceSpecificValue, T as TheGraphFallback, g as PriceDai, h as PriceEnsTokens, j as PriceUsdc } from './namespace-specific-value-BGuLucNQ.js';
|
|
2
|
+
export { a4 as TheGraphCannotFallbackReason, a5 as TheGraphCannotFallbackReasonSchema, a6 as TheGraphFallbackSchema, ad as interpretAddress, ae as interpretAddressRecordValue, af as interpretContenthashValue, ag as interpretDnszonehashValue, ah as interpretNameRecordValue, ai as interpretPubkeyValue, aj as interpretTextRecordKey, ak as interpretTextRecordValue, ap as makeENSApiPublicConfigSchema, aq as makeEnsApiPublicConfigSchema, m as makeErrorResponseSchema, ar as makeSerializedEnsApiPublicConfigSchema } from './namespace-specific-value-BGuLucNQ.js';
|
|
3
3
|
import { z } from 'zod/v4';
|
|
4
4
|
import * as enssdk from 'enssdk';
|
|
5
5
|
import { InterpretedName, InterfaceId, Address, ChainId, ChainIdString, AccountId, DomainId, RegistryId } from 'enssdk';
|
package/dist/internal.js
CHANGED
|
@@ -2271,9 +2271,9 @@ query AccountPrimaryNames($address: Address!) {
|
|
|
2271
2271
|
account(by: { address: $address }) {
|
|
2272
2272
|
address
|
|
2273
2273
|
resolve {
|
|
2274
|
-
primaryNames(where: {
|
|
2274
|
+
primaryNames(where: { chainNames: [ETHEREUM, BASE] }) {
|
|
2275
2275
|
coinType
|
|
2276
|
-
|
|
2276
|
+
chainName
|
|
2277
2277
|
name { interpreted beautified }
|
|
2278
2278
|
resolve {
|
|
2279
2279
|
records {
|
|
@@ -2992,8 +2992,8 @@ import { isAddressEqual as isAddressEqual4, zeroAddress as zeroAddress5 } from "
|
|
|
2992
2992
|
var interpretAddress = (owner) => isAddressEqual4(zeroAddress5, owner) ? null : owner;
|
|
2993
2993
|
|
|
2994
2994
|
// src/shared/interpretation/interpret-record-values.ts
|
|
2995
|
-
import { isInterpretedName
|
|
2996
|
-
import { isAddress as isAddress2, isAddressEqual as isAddressEqual5, zeroAddress as zeroAddress6 } from "viem";
|
|
2995
|
+
import { isInterpretedName } from "enssdk";
|
|
2996
|
+
import { isAddress as isAddress2, isAddressEqual as isAddressEqual5, isHex as isHex2, zeroAddress as zeroAddress6 } from "viem";
|
|
2997
2997
|
|
|
2998
2998
|
// src/shared/null-bytes.ts
|
|
2999
2999
|
var hasNullByte = (value) => value.indexOf("\0") !== -1;
|
|
@@ -3008,9 +3008,10 @@ function interpretAddressRecordValue(value) {
|
|
|
3008
3008
|
if (hasNullByte(value)) return null;
|
|
3009
3009
|
if (value === "") return null;
|
|
3010
3010
|
if (value === "0x") return null;
|
|
3011
|
-
if (!
|
|
3012
|
-
|
|
3013
|
-
|
|
3011
|
+
if (!isHex2(value)) return null;
|
|
3012
|
+
const hex = value.toLowerCase();
|
|
3013
|
+
if (isAddress2(hex, { strict: false }) && isAddressEqual5(hex, zeroAddress6)) return null;
|
|
3014
|
+
return hex;
|
|
3014
3015
|
}
|
|
3015
3016
|
function interpretTextRecordKey(key) {
|
|
3016
3017
|
if (hasNullByte(key)) return null;
|