@ensnode/ensnode-sdk 1.14.0 → 1.15.0

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.
@@ -3782,6 +3782,26 @@ interface BridgedResolverConfig {
3782
3782
  * For a given `resolver`, if it is a known Bridged Resolver, return its Bridged Resolver Config.
3783
3783
  */
3784
3784
  declare function isBridgedResolver(namespace: ENSNamespaceId, resolver: AccountId): BridgedResolverConfig | null;
3785
+ /**
3786
+ * Returns the `BridgedResolverConfig` for `domainId` if it is the origin Domain of a known
3787
+ * Bridged Resolver, or `null` otherwise.
3788
+ *
3789
+ * `Domain.subregistryId` on a bridge origin (e.g. mainnet `base.eth`, `linea.eth`) is owned by
3790
+ * `handleBridgedResolverChange` — it must point at the bridged target Registry on the L2 chain
3791
+ * so the canonical edge to that target Registry can agree. Chain-local subname events on the
3792
+ * origin Domain must not overwrite that pointer.
3793
+ */
3794
+ declare function isBridgedOriginDomain(namespace: ENSNamespaceId, domainId: DomainId): BridgedResolverConfig | null;
3795
+ /**
3796
+ * Returns the `BridgedResolverConfig` for `registryId` if it is the target Registry of a known
3797
+ * Bridged Resolver, or `null` otherwise.
3798
+ *
3799
+ * `Registry.canonicalDomainId` on a bridged target (e.g. the Basenames/Lineanames L2 Registries)
3800
+ * is owned by the registry-creation path in `ENSv1Registry.ts` — it must point at the mainnet
3801
+ * origin Domain so the canonical edge can agree. Chain-local subname events on the target Registry
3802
+ * must not overwrite that pointer with the L2-side Domain ID.
3803
+ */
3804
+ declare function isBridgedTargetRegistry(namespace: ENSNamespaceId, registryId: RegistryId): BridgedResolverConfig | null;
3785
3805
 
3786
3806
  /**
3787
3807
  * ENSIP-19 Reverse Resolvers (i.e. DefaultReverseResolver or ChainReverseResolver) simply:
@@ -4175,4 +4195,4 @@ declare const makeNameTokenSchema: <const SerializableType extends boolean>(valu
4175
4195
  }>;
4176
4196
  }, z.core.$strip>;
4177
4197
 
4178
- export { type BridgedResolverConfig, type ChainIdSpecificRpcEnvironmentVariable, type ConfigTemplateId, ConfigTemplateIds, DATASOURCE_NAMES_WITH_ENSv2_CONTRACTS, DATASOURCE_NAMES_WITH_RESOLVERS, ENSNamespaceSchema, type EnsDbEnvironment, GRAPHQL_API_EXAMPLE_QUERIES, type GraphqlApiExampleQuery, type LogLevel, type LogLevelEnvironment, OptionalPortNumberSchema, type PortEnvironment, type PortNumber, PortNumberSchema, type ReferralProgramEditionsEnvironment, type RpcConfig, type RpcConfigs, RpcConfigsSchema, type RpcEnvironment, type TheGraphApiKey, TheGraphApiKeySchema, type TheGraphEnvironment, TheGraphFallback, type ZodCheckFnInput, alchemySupportsChain, buildAlchemyBaseUrl, buildDRPCUrl, buildQuickNodeURL, buildRpcAutoGenMode, buildRpcConfigsFromEnv, canFallbackToTheGraph, dRPCSupportsChain, errorResponseBadRequestExample, errorResponseInternalServerErrorExample, errorResponseInvalidAddressExample, errorResponseInvalidNameExample, getDatasourcesWithENSv2Contracts, getDatasourcesWithResolvers, getGraphqlApiExampleQueryById, getLogLevelFromEnv, invariant_ensRainbowSupportedLabelSetAndVersion, invariant_isSubgraphCompatibleRequirements, invariant_rpcConfigsSpecifiedForRootChain, invariant_rpcEndpointConfigIncludesAtLeastOneHTTPProtocolURL, invariant_rpcEndpointConfigIncludesAtMostOneWebSocketsProtocolURL, isBridgedResolver, isConfigTemplateSubgraphCompatible, isExtendedResolver, isKnownENSIP19ReverseResolver, isStaticResolver, makeAccountIdSchema, makeAccountIdStringSchema, makeAssetIdSchema, makeAssetIdStringSchema, makeBaseRegistrarActionSchema, makeBlockNumberSchema, makeBlockRefSchema, makeBooleanStringSchema, makeChainIdSchema, makeChainIdStringSchema, makeCoinTypeSchema, makeCoinTypeStringSchema, makeCommaSeparatedList, makeDatetimeSchema, makeDefaultableChainIdSchema, makeDefaultableChainIdStringSchema, makeDomainAssetSchema, makeDurationSchema, makeENSIndexerPublicConfigSchema, makeENSIndexerVersionInfoSchema, makeENSNamespaceIdSchema, makeEnsApiIndexingStatusResponseErrorSchema, makeEnsApiIndexingStatusResponseOkSchema, makeEnsApiIndexingStatusResponseSchema, makeEnsIndexerPublicConfigSchema, makeEnsIndexerSchemaNameSchema, makeEnsIndexerVersionInfoSchema, makeFiniteNonNegativeNumberSchema, makeFullyPinnedLabelSetSchema, makeHexStringSchema, makeIndexedChainIdsSchema, makeIndexingStatusResponseSchema, makeIntegerSchema, makeNameTokenOwnershipBurnedSchema, makeNameTokenOwnershipFullyOnchainSchema, makeNameTokenOwnershipNameWrapperSchema, makeNameTokenOwnershipSchema, makeNameTokenOwnershipUnknownSchema, makeNameTokenSchema, makeNameTokensResponseErrorEnsIndexerConfigUnsupported, makeNameTokensResponseErrorNameIndexingStatusUnsupported, makeNameTokensResponseErrorNameTokensNotIndexedSchema, makeNameTokensResponseErrorSchema, makeNameTokensResponseOkSchema, makeNameTokensResponseSchema, makeNamedRegistrarActionSchema, makeNodeSchema, makeNonNegativeIntegerSchema, makeNormalizedAddressSchema, makePluginsListSchema, makePositiveIntegerSchema, makePriceCurrencySchema, makePriceDaiSchema, makePriceEnsTokensSchema, makePriceEthSchema, makePriceSchema, makePriceUsdcSchema, makeRegisteredNameTokenSchema, makeRegistrarActionRegistrationSchema, makeRegistrarActionRenewalSchema, makeRegistrarActionSchema, makeRegistrarActionsResponseErrorSchema, makeRegistrarActionsResponseOkSchema, makeRegistrarActionsResponseSchema, makeRegistrationLifecycleSchema, makeReinterpretedNameSchema, makeRequestPageParamsSchema, makeResolvePrimaryNameResponseSchema, makeResolvePrimaryNamesResponseSchema, makeResolveRecordsResponseSchema, makeResponsePageContextSchema, makeResponsePageContextSchemaWithNoRecords, makeResponsePageContextSchemaWithRecords, makeSerializedEnsApiIndexingStatusResponseOkSchema, makeSerializedEnsApiIndexingStatusResponseSchema, makeSerializedEnsIndexerPublicConfigSchema, makeSerializedIndexedChainIdsSchema, makeSerializedPriceCurrencySchema, makeSerializedPriceEthSchema, makeSerializedRegistrarActionPricingSchema, makeSerializedRegistrarActionSchema, makeSerializedRegistrarActionsResponseOkSchema, makeSupportsInterfaceReader, makeTokenIdSchema, makeTransactionHashSchema, makeUnixTimestampSchema, makeUrlSchema, nameTokensNotIndexedExample, nameTokensResponseOkExample, nameTokensServiceUnavailableExample, namespaceForConfigTemplateId, quickNodeSupportsChain, realtimeResponseSchemaError, realtimeResponseSchemaOk, redactRpcConfigs, redactString, redactUrl, registrarActionsResponseOkExample, resolvePrimaryNameResponseExample, resolvePrimaryNamesResponseExample, resolveRecordsResponseExample, staticResolverImplementsAddressRecordDefaulting, stringifyConfig };
4198
+ export { type BridgedResolverConfig, type ChainIdSpecificRpcEnvironmentVariable, type ConfigTemplateId, ConfigTemplateIds, DATASOURCE_NAMES_WITH_ENSv2_CONTRACTS, DATASOURCE_NAMES_WITH_RESOLVERS, ENSNamespaceSchema, type EnsDbEnvironment, GRAPHQL_API_EXAMPLE_QUERIES, type GraphqlApiExampleQuery, type LogLevel, type LogLevelEnvironment, OptionalPortNumberSchema, type PortEnvironment, type PortNumber, PortNumberSchema, type ReferralProgramEditionsEnvironment, type RpcConfig, type RpcConfigs, RpcConfigsSchema, type RpcEnvironment, type TheGraphApiKey, TheGraphApiKeySchema, type TheGraphEnvironment, TheGraphFallback, type ZodCheckFnInput, alchemySupportsChain, buildAlchemyBaseUrl, buildDRPCUrl, buildQuickNodeURL, buildRpcAutoGenMode, buildRpcConfigsFromEnv, canFallbackToTheGraph, dRPCSupportsChain, errorResponseBadRequestExample, errorResponseInternalServerErrorExample, errorResponseInvalidAddressExample, errorResponseInvalidNameExample, getDatasourcesWithENSv2Contracts, getDatasourcesWithResolvers, getGraphqlApiExampleQueryById, getLogLevelFromEnv, invariant_ensRainbowSupportedLabelSetAndVersion, invariant_isSubgraphCompatibleRequirements, invariant_rpcConfigsSpecifiedForRootChain, invariant_rpcEndpointConfigIncludesAtLeastOneHTTPProtocolURL, invariant_rpcEndpointConfigIncludesAtMostOneWebSocketsProtocolURL, isBridgedOriginDomain, isBridgedResolver, isBridgedTargetRegistry, isConfigTemplateSubgraphCompatible, isExtendedResolver, isKnownENSIP19ReverseResolver, isStaticResolver, makeAccountIdSchema, makeAccountIdStringSchema, makeAssetIdSchema, makeAssetIdStringSchema, makeBaseRegistrarActionSchema, makeBlockNumberSchema, makeBlockRefSchema, makeBooleanStringSchema, makeChainIdSchema, makeChainIdStringSchema, makeCoinTypeSchema, makeCoinTypeStringSchema, makeCommaSeparatedList, makeDatetimeSchema, makeDefaultableChainIdSchema, makeDefaultableChainIdStringSchema, makeDomainAssetSchema, makeDurationSchema, makeENSIndexerPublicConfigSchema, makeENSIndexerVersionInfoSchema, makeENSNamespaceIdSchema, makeEnsApiIndexingStatusResponseErrorSchema, makeEnsApiIndexingStatusResponseOkSchema, makeEnsApiIndexingStatusResponseSchema, makeEnsIndexerPublicConfigSchema, makeEnsIndexerSchemaNameSchema, makeEnsIndexerVersionInfoSchema, makeFiniteNonNegativeNumberSchema, makeFullyPinnedLabelSetSchema, makeHexStringSchema, makeIndexedChainIdsSchema, makeIndexingStatusResponseSchema, makeIntegerSchema, makeNameTokenOwnershipBurnedSchema, makeNameTokenOwnershipFullyOnchainSchema, makeNameTokenOwnershipNameWrapperSchema, makeNameTokenOwnershipSchema, makeNameTokenOwnershipUnknownSchema, makeNameTokenSchema, makeNameTokensResponseErrorEnsIndexerConfigUnsupported, makeNameTokensResponseErrorNameIndexingStatusUnsupported, makeNameTokensResponseErrorNameTokensNotIndexedSchema, makeNameTokensResponseErrorSchema, makeNameTokensResponseOkSchema, makeNameTokensResponseSchema, makeNamedRegistrarActionSchema, makeNodeSchema, makeNonNegativeIntegerSchema, makeNormalizedAddressSchema, makePluginsListSchema, makePositiveIntegerSchema, makePriceCurrencySchema, makePriceDaiSchema, makePriceEnsTokensSchema, makePriceEthSchema, makePriceSchema, makePriceUsdcSchema, makeRegisteredNameTokenSchema, makeRegistrarActionRegistrationSchema, makeRegistrarActionRenewalSchema, makeRegistrarActionSchema, makeRegistrarActionsResponseErrorSchema, makeRegistrarActionsResponseOkSchema, makeRegistrarActionsResponseSchema, makeRegistrationLifecycleSchema, makeReinterpretedNameSchema, makeRequestPageParamsSchema, makeResolvePrimaryNameResponseSchema, makeResolvePrimaryNamesResponseSchema, makeResolveRecordsResponseSchema, makeResponsePageContextSchema, makeResponsePageContextSchemaWithNoRecords, makeResponsePageContextSchemaWithRecords, makeSerializedEnsApiIndexingStatusResponseOkSchema, makeSerializedEnsApiIndexingStatusResponseSchema, makeSerializedEnsIndexerPublicConfigSchema, makeSerializedIndexedChainIdsSchema, makeSerializedPriceCurrencySchema, makeSerializedPriceEthSchema, makeSerializedRegistrarActionPricingSchema, makeSerializedRegistrarActionSchema, makeSerializedRegistrarActionsResponseOkSchema, makeSupportsInterfaceReader, makeTokenIdSchema, makeTransactionHashSchema, makeUnixTimestampSchema, makeUrlSchema, nameTokensNotIndexedExample, nameTokensResponseOkExample, nameTokensServiceUnavailableExample, namespaceForConfigTemplateId, quickNodeSupportsChain, realtimeResponseSchemaError, realtimeResponseSchemaOk, redactRpcConfigs, redactString, redactUrl, registrarActionsResponseOkExample, resolvePrimaryNameResponseExample, resolvePrimaryNamesResponseExample, resolveRecordsResponseExample, staticResolverImplementsAddressRecordDefaulting, stringifyConfig };
@@ -3782,6 +3782,26 @@ interface BridgedResolverConfig {
3782
3782
  * For a given `resolver`, if it is a known Bridged Resolver, return its Bridged Resolver Config.
3783
3783
  */
3784
3784
  declare function isBridgedResolver(namespace: ENSNamespaceId, resolver: AccountId): BridgedResolverConfig | null;
3785
+ /**
3786
+ * Returns the `BridgedResolverConfig` for `domainId` if it is the origin Domain of a known
3787
+ * Bridged Resolver, or `null` otherwise.
3788
+ *
3789
+ * `Domain.subregistryId` on a bridge origin (e.g. mainnet `base.eth`, `linea.eth`) is owned by
3790
+ * `handleBridgedResolverChange` — it must point at the bridged target Registry on the L2 chain
3791
+ * so the canonical edge to that target Registry can agree. Chain-local subname events on the
3792
+ * origin Domain must not overwrite that pointer.
3793
+ */
3794
+ declare function isBridgedOriginDomain(namespace: ENSNamespaceId, domainId: DomainId): BridgedResolverConfig | null;
3795
+ /**
3796
+ * Returns the `BridgedResolverConfig` for `registryId` if it is the target Registry of a known
3797
+ * Bridged Resolver, or `null` otherwise.
3798
+ *
3799
+ * `Registry.canonicalDomainId` on a bridged target (e.g. the Basenames/Lineanames L2 Registries)
3800
+ * is owned by the registry-creation path in `ENSv1Registry.ts` — it must point at the mainnet
3801
+ * origin Domain so the canonical edge can agree. Chain-local subname events on the target Registry
3802
+ * must not overwrite that pointer with the L2-side Domain ID.
3803
+ */
3804
+ declare function isBridgedTargetRegistry(namespace: ENSNamespaceId, registryId: RegistryId): BridgedResolverConfig | null;
3785
3805
 
3786
3806
  /**
3787
3807
  * ENSIP-19 Reverse Resolvers (i.e. DefaultReverseResolver or ChainReverseResolver) simply:
@@ -4175,4 +4195,4 @@ declare const makeNameTokenSchema: <const SerializableType extends boolean>(valu
4175
4195
  }>;
4176
4196
  }, z.core.$strip>;
4177
4197
 
4178
- export { type BridgedResolverConfig, type ChainIdSpecificRpcEnvironmentVariable, type ConfigTemplateId, ConfigTemplateIds, DATASOURCE_NAMES_WITH_ENSv2_CONTRACTS, DATASOURCE_NAMES_WITH_RESOLVERS, ENSNamespaceSchema, type EnsDbEnvironment, GRAPHQL_API_EXAMPLE_QUERIES, type GraphqlApiExampleQuery, type LogLevel, type LogLevelEnvironment, OptionalPortNumberSchema, type PortEnvironment, type PortNumber, PortNumberSchema, type ReferralProgramEditionsEnvironment, type RpcConfig, type RpcConfigs, RpcConfigsSchema, type RpcEnvironment, type TheGraphApiKey, TheGraphApiKeySchema, type TheGraphEnvironment, TheGraphFallback, type ZodCheckFnInput, alchemySupportsChain, buildAlchemyBaseUrl, buildDRPCUrl, buildQuickNodeURL, buildRpcAutoGenMode, buildRpcConfigsFromEnv, canFallbackToTheGraph, dRPCSupportsChain, errorResponseBadRequestExample, errorResponseInternalServerErrorExample, errorResponseInvalidAddressExample, errorResponseInvalidNameExample, getDatasourcesWithENSv2Contracts, getDatasourcesWithResolvers, getGraphqlApiExampleQueryById, getLogLevelFromEnv, invariant_ensRainbowSupportedLabelSetAndVersion, invariant_isSubgraphCompatibleRequirements, invariant_rpcConfigsSpecifiedForRootChain, invariant_rpcEndpointConfigIncludesAtLeastOneHTTPProtocolURL, invariant_rpcEndpointConfigIncludesAtMostOneWebSocketsProtocolURL, isBridgedResolver, isConfigTemplateSubgraphCompatible, isExtendedResolver, isKnownENSIP19ReverseResolver, isStaticResolver, makeAccountIdSchema, makeAccountIdStringSchema, makeAssetIdSchema, makeAssetIdStringSchema, makeBaseRegistrarActionSchema, makeBlockNumberSchema, makeBlockRefSchema, makeBooleanStringSchema, makeChainIdSchema, makeChainIdStringSchema, makeCoinTypeSchema, makeCoinTypeStringSchema, makeCommaSeparatedList, makeDatetimeSchema, makeDefaultableChainIdSchema, makeDefaultableChainIdStringSchema, makeDomainAssetSchema, makeDurationSchema, makeENSIndexerPublicConfigSchema, makeENSIndexerVersionInfoSchema, makeENSNamespaceIdSchema, makeEnsApiIndexingStatusResponseErrorSchema, makeEnsApiIndexingStatusResponseOkSchema, makeEnsApiIndexingStatusResponseSchema, makeEnsIndexerPublicConfigSchema, makeEnsIndexerSchemaNameSchema, makeEnsIndexerVersionInfoSchema, makeFiniteNonNegativeNumberSchema, makeFullyPinnedLabelSetSchema, makeHexStringSchema, makeIndexedChainIdsSchema, makeIndexingStatusResponseSchema, makeIntegerSchema, makeNameTokenOwnershipBurnedSchema, makeNameTokenOwnershipFullyOnchainSchema, makeNameTokenOwnershipNameWrapperSchema, makeNameTokenOwnershipSchema, makeNameTokenOwnershipUnknownSchema, makeNameTokenSchema, makeNameTokensResponseErrorEnsIndexerConfigUnsupported, makeNameTokensResponseErrorNameIndexingStatusUnsupported, makeNameTokensResponseErrorNameTokensNotIndexedSchema, makeNameTokensResponseErrorSchema, makeNameTokensResponseOkSchema, makeNameTokensResponseSchema, makeNamedRegistrarActionSchema, makeNodeSchema, makeNonNegativeIntegerSchema, makeNormalizedAddressSchema, makePluginsListSchema, makePositiveIntegerSchema, makePriceCurrencySchema, makePriceDaiSchema, makePriceEnsTokensSchema, makePriceEthSchema, makePriceSchema, makePriceUsdcSchema, makeRegisteredNameTokenSchema, makeRegistrarActionRegistrationSchema, makeRegistrarActionRenewalSchema, makeRegistrarActionSchema, makeRegistrarActionsResponseErrorSchema, makeRegistrarActionsResponseOkSchema, makeRegistrarActionsResponseSchema, makeRegistrationLifecycleSchema, makeReinterpretedNameSchema, makeRequestPageParamsSchema, makeResolvePrimaryNameResponseSchema, makeResolvePrimaryNamesResponseSchema, makeResolveRecordsResponseSchema, makeResponsePageContextSchema, makeResponsePageContextSchemaWithNoRecords, makeResponsePageContextSchemaWithRecords, makeSerializedEnsApiIndexingStatusResponseOkSchema, makeSerializedEnsApiIndexingStatusResponseSchema, makeSerializedEnsIndexerPublicConfigSchema, makeSerializedIndexedChainIdsSchema, makeSerializedPriceCurrencySchema, makeSerializedPriceEthSchema, makeSerializedRegistrarActionPricingSchema, makeSerializedRegistrarActionSchema, makeSerializedRegistrarActionsResponseOkSchema, makeSupportsInterfaceReader, makeTokenIdSchema, makeTransactionHashSchema, makeUnixTimestampSchema, makeUrlSchema, nameTokensNotIndexedExample, nameTokensResponseOkExample, nameTokensServiceUnavailableExample, namespaceForConfigTemplateId, quickNodeSupportsChain, realtimeResponseSchemaError, realtimeResponseSchemaOk, redactRpcConfigs, redactString, redactUrl, registrarActionsResponseOkExample, resolvePrimaryNameResponseExample, resolvePrimaryNamesResponseExample, resolveRecordsResponseExample, staticResolverImplementsAddressRecordDefaulting, stringifyConfig };
4198
+ export { type BridgedResolverConfig, type ChainIdSpecificRpcEnvironmentVariable, type ConfigTemplateId, ConfigTemplateIds, DATASOURCE_NAMES_WITH_ENSv2_CONTRACTS, DATASOURCE_NAMES_WITH_RESOLVERS, ENSNamespaceSchema, type EnsDbEnvironment, GRAPHQL_API_EXAMPLE_QUERIES, type GraphqlApiExampleQuery, type LogLevel, type LogLevelEnvironment, OptionalPortNumberSchema, type PortEnvironment, type PortNumber, PortNumberSchema, type ReferralProgramEditionsEnvironment, type RpcConfig, type RpcConfigs, RpcConfigsSchema, type RpcEnvironment, type TheGraphApiKey, TheGraphApiKeySchema, type TheGraphEnvironment, TheGraphFallback, type ZodCheckFnInput, alchemySupportsChain, buildAlchemyBaseUrl, buildDRPCUrl, buildQuickNodeURL, buildRpcAutoGenMode, buildRpcConfigsFromEnv, canFallbackToTheGraph, dRPCSupportsChain, errorResponseBadRequestExample, errorResponseInternalServerErrorExample, errorResponseInvalidAddressExample, errorResponseInvalidNameExample, getDatasourcesWithENSv2Contracts, getDatasourcesWithResolvers, getGraphqlApiExampleQueryById, getLogLevelFromEnv, invariant_ensRainbowSupportedLabelSetAndVersion, invariant_isSubgraphCompatibleRequirements, invariant_rpcConfigsSpecifiedForRootChain, invariant_rpcEndpointConfigIncludesAtLeastOneHTTPProtocolURL, invariant_rpcEndpointConfigIncludesAtMostOneWebSocketsProtocolURL, isBridgedOriginDomain, isBridgedResolver, isBridgedTargetRegistry, isConfigTemplateSubgraphCompatible, isExtendedResolver, isKnownENSIP19ReverseResolver, isStaticResolver, makeAccountIdSchema, makeAccountIdStringSchema, makeAssetIdSchema, makeAssetIdStringSchema, makeBaseRegistrarActionSchema, makeBlockNumberSchema, makeBlockRefSchema, makeBooleanStringSchema, makeChainIdSchema, makeChainIdStringSchema, makeCoinTypeSchema, makeCoinTypeStringSchema, makeCommaSeparatedList, makeDatetimeSchema, makeDefaultableChainIdSchema, makeDefaultableChainIdStringSchema, makeDomainAssetSchema, makeDurationSchema, makeENSIndexerPublicConfigSchema, makeENSIndexerVersionInfoSchema, makeENSNamespaceIdSchema, makeEnsApiIndexingStatusResponseErrorSchema, makeEnsApiIndexingStatusResponseOkSchema, makeEnsApiIndexingStatusResponseSchema, makeEnsIndexerPublicConfigSchema, makeEnsIndexerSchemaNameSchema, makeEnsIndexerVersionInfoSchema, makeFiniteNonNegativeNumberSchema, makeFullyPinnedLabelSetSchema, makeHexStringSchema, makeIndexedChainIdsSchema, makeIndexingStatusResponseSchema, makeIntegerSchema, makeNameTokenOwnershipBurnedSchema, makeNameTokenOwnershipFullyOnchainSchema, makeNameTokenOwnershipNameWrapperSchema, makeNameTokenOwnershipSchema, makeNameTokenOwnershipUnknownSchema, makeNameTokenSchema, makeNameTokensResponseErrorEnsIndexerConfigUnsupported, makeNameTokensResponseErrorNameIndexingStatusUnsupported, makeNameTokensResponseErrorNameTokensNotIndexedSchema, makeNameTokensResponseErrorSchema, makeNameTokensResponseOkSchema, makeNameTokensResponseSchema, makeNamedRegistrarActionSchema, makeNodeSchema, makeNonNegativeIntegerSchema, makeNormalizedAddressSchema, makePluginsListSchema, makePositiveIntegerSchema, makePriceCurrencySchema, makePriceDaiSchema, makePriceEnsTokensSchema, makePriceEthSchema, makePriceSchema, makePriceUsdcSchema, makeRegisteredNameTokenSchema, makeRegistrarActionRegistrationSchema, makeRegistrarActionRenewalSchema, makeRegistrarActionSchema, makeRegistrarActionsResponseErrorSchema, makeRegistrarActionsResponseOkSchema, makeRegistrarActionsResponseSchema, makeRegistrationLifecycleSchema, makeReinterpretedNameSchema, makeRequestPageParamsSchema, makeResolvePrimaryNameResponseSchema, makeResolvePrimaryNamesResponseSchema, makeResolveRecordsResponseSchema, makeResponsePageContextSchema, makeResponsePageContextSchemaWithNoRecords, makeResponsePageContextSchemaWithRecords, makeSerializedEnsApiIndexingStatusResponseOkSchema, makeSerializedEnsApiIndexingStatusResponseSchema, makeSerializedEnsIndexerPublicConfigSchema, makeSerializedIndexedChainIdsSchema, makeSerializedPriceCurrencySchema, makeSerializedPriceEthSchema, makeSerializedRegistrarActionPricingSchema, makeSerializedRegistrarActionSchema, makeSerializedRegistrarActionsResponseOkSchema, makeSupportsInterfaceReader, makeTokenIdSchema, makeTransactionHashSchema, makeUnixTimestampSchema, makeUrlSchema, nameTokensNotIndexedExample, nameTokensResponseOkExample, nameTokensServiceUnavailableExample, namespaceForConfigTemplateId, quickNodeSupportsChain, realtimeResponseSchemaError, realtimeResponseSchemaOk, redactRpcConfigs, redactString, redactUrl, registrarActionsResponseOkExample, resolvePrimaryNameResponseExample, resolvePrimaryNamesResponseExample, resolveRecordsResponseExample, staticResolverImplementsAddressRecordDefaulting, stringifyConfig };
package/dist/internal.js CHANGED
@@ -1967,22 +1967,22 @@ var errorResponseInternalServerErrorExample = {
1967
1967
  import { asInterpretedName, toNormalizedAddress as toNormalizedAddress3 } from "enssdk";
1968
1968
  import { DatasourceNames as DatasourceNames2, ENSNamespaceIds as ENSNamespaceIds3 } from "@ensnode/datasources";
1969
1969
  import { accounts } from "@ensnode/datasources/devnet";
1970
- var SEPOLIA_V2_V2_ETH_REGISTRY = maybeGetDatasourceContract(
1970
+ var SEPOLIA_V2_V2_ETH_REGISTRY = getDatasourceContract(
1971
1971
  ENSNamespaceIds3.SepoliaV2,
1972
1972
  DatasourceNames2.ENSv2Root,
1973
1973
  "ETHRegistry"
1974
1974
  );
1975
- var SEPOLIA_V2_V2_ETH_REGISTRAR = maybeGetDatasourceContract(
1975
+ var SEPOLIA_V2_V2_ETH_REGISTRAR = getDatasourceContract(
1976
1976
  ENSNamespaceIds3.SepoliaV2,
1977
1977
  DatasourceNames2.ENSv2Root,
1978
1978
  "ETHRegistrar"
1979
1979
  );
1980
- var ENS_TEST_ENV_V2_ETH_REGISTRY = maybeGetDatasourceContract(
1980
+ var ENS_TEST_ENV_V2_ETH_REGISTRY = getDatasourceContract(
1981
1981
  ENSNamespaceIds3.EnsTestEnv,
1982
1982
  DatasourceNames2.ENSv2Root,
1983
1983
  "ETHRegistry"
1984
1984
  );
1985
- var ENS_TEST_ENV_V2_ETH_REGISTRAR = maybeGetDatasourceContract(
1985
+ var ENS_TEST_ENV_V2_ETH_REGISTRAR = getDatasourceContract(
1986
1986
  ENSNamespaceIds3.EnsTestEnv,
1987
1987
  DatasourceNames2.ENSv2Root,
1988
1988
  "ETHRegistrar"
@@ -1995,6 +1995,16 @@ var SEPOLIA_V2_ADDRESS_WITH_LOT_OF_NAMES = toNormalizedAddress3(
1995
1995
  var DEVNET_NAME_WITH_OWNED_RESOLVER = asInterpretedName("example.eth");
1996
1996
  var SEPOLIA_V2_NAME_WITH_OWNED_RESOLVER = asInterpretedName("sfmonicdebmig.eth");
1997
1997
  var SEPOLIA_V2_TEST_NAME = asInterpretedName("test-name.eth");
1998
+ var MAINNET_PUBLIC_RESOLVER = getDatasourceContract(
1999
+ ENSNamespaceIds3.Mainnet,
2000
+ DatasourceNames2.ReverseResolverRoot,
2001
+ "DefaultPublicResolver5"
2002
+ );
2003
+ var SEPOLIA_V2_PUBLIC_RESOLVER = getDatasourceContract(
2004
+ ENSNamespaceIds3.SepoliaV2,
2005
+ DatasourceNames2.ReverseResolverRoot,
2006
+ "DefaultPublicResolver5"
2007
+ );
1998
2008
  function getGraphqlApiExampleQueryById(id) {
1999
2009
  const found = graphqlApiExampleQueryById.get(id);
2000
2010
  if (!found) {
@@ -2017,7 +2027,7 @@ var GRAPHQL_API_EXAMPLE_QUERIES = [
2017
2027
  #
2018
2028
  # There are also example queries in the tabs above \u261D\uFE0F
2019
2029
  query HelloWorld {
2020
- domain(by: { name: "eth" }) { canonical { name { interpreted } } owner { address } }
2030
+ domain(by: { name: "eth" }) { canonical { name { interpreted beautified } } owner { address } }
2021
2031
  }`,
2022
2032
  variables: { default: {} }
2023
2033
  },
@@ -2041,7 +2051,7 @@ query FindDomains(
2041
2051
  __typename
2042
2052
  id
2043
2053
  label { interpreted hash }
2044
- canonical { name { interpreted } }
2054
+ canonical { name { interpreted beautified } }
2045
2055
 
2046
2056
  registration { expiry event { timestamp } }
2047
2057
  }
@@ -2085,6 +2095,51 @@ query DomainByName($name: InterpretedName!) {
2085
2095
  [ENSNamespaceIds3.SepoliaV2]: { name: SEPOLIA_V2_TEST_NAME }
2086
2096
  }
2087
2097
  },
2098
+ ///////////////////////
2099
+ // Domain Registration
2100
+ ///////////////////////
2101
+ {
2102
+ id: "domain-registration",
2103
+ query: `
2104
+ query DomainRegistration($name: InterpretedName!) {
2105
+ domain(by: { name: $name }) {
2106
+ canonical { name { interpreted } }
2107
+
2108
+ registration {
2109
+ __typename
2110
+ id
2111
+ start
2112
+ expiry
2113
+ expired
2114
+ referrer
2115
+ registrar { chainId address }
2116
+ registrant { address }
2117
+ renewals(first: 5) {
2118
+ totalCount
2119
+ edges { node { duration base premium referrer } }
2120
+ }
2121
+
2122
+ # ENSv1 .eth registrations (also Basenames & Lineanames)
2123
+ ... on BaseRegistrarRegistration {
2124
+ baseCost
2125
+ premium
2126
+ isInGracePeriod
2127
+ # present when the .eth name is wrapped by the NameWrapper
2128
+ wrapped { fuses tokenId }
2129
+ }
2130
+
2131
+ # names held natively in the NameWrapper
2132
+ ... on NameWrapperRegistration {
2133
+ fuses
2134
+ }
2135
+ }
2136
+ }
2137
+ }`,
2138
+ variables: {
2139
+ default: { name: "vitalik.eth" },
2140
+ [ENSNamespaceIds3.SepoliaV2]: { name: SEPOLIA_V2_NAME_WITH_OWNED_RESOLVER }
2141
+ }
2142
+ },
2088
2143
  //////////////////////
2089
2144
  // Domain Subdomains
2090
2145
  //////////////////////
@@ -2093,11 +2148,11 @@ query DomainByName($name: InterpretedName!) {
2093
2148
  query: `
2094
2149
  query DomainSubdomains($name: InterpretedName!) {
2095
2150
  domain(by: {name: $name}) {
2096
- canonical { name { interpreted } }
2151
+ canonical { name { interpreted beautified } }
2097
2152
  subdomains(first: 10) {
2098
2153
  edges {
2099
2154
  node {
2100
- canonical { name { interpreted } }
2155
+ canonical { name { interpreted beautified } }
2101
2156
  }
2102
2157
  }
2103
2158
  }
@@ -2105,6 +2160,31 @@ query DomainSubdomains($name: InterpretedName!) {
2105
2160
  }`,
2106
2161
  variables: { default: { name: "eth" } }
2107
2162
  },
2163
+ ////////////////////////
2164
+ // Subdomains Pagination
2165
+ ////////////////////////
2166
+ {
2167
+ id: "subdomains-pagination",
2168
+ query: `
2169
+ query SubdomainsPagination($first: Int!, $after: String) {
2170
+ domain(by: { name: "eth" }) {
2171
+ canonical { name { interpreted } }
2172
+
2173
+ # paginate child names: pass pageInfo.endCursor back as $after for the next page
2174
+ subdomains(first: $first, after: $after) {
2175
+ totalCount
2176
+ pageInfo { hasNextPage endCursor }
2177
+ edges {
2178
+ cursor
2179
+ node {
2180
+ canonical { name { interpreted } }
2181
+ }
2182
+ }
2183
+ }
2184
+ }
2185
+ }`,
2186
+ variables: { default: { first: 10, after: null } }
2187
+ },
2108
2188
  /////////////////
2109
2189
  // Domain Events
2110
2190
  /////////////////
@@ -2147,7 +2227,7 @@ query AccountDomains(
2147
2227
  edges {
2148
2228
  node {
2149
2229
  label { interpreted }
2150
- canonical { name { interpreted } }
2230
+ canonical { name { interpreted beautified } }
2151
2231
  }
2152
2232
  }
2153
2233
  }
@@ -2192,7 +2272,7 @@ query RegistryDomains(
2192
2272
  edges {
2193
2273
  node {
2194
2274
  label { interpreted }
2195
- canonical { name { interpreted } }
2275
+ canonical { name { interpreted beautified } }
2196
2276
  }
2197
2277
  }
2198
2278
  }
@@ -2313,6 +2393,38 @@ query DomainResolver($name: InterpretedName!) {
2313
2393
  [ENSNamespaceIds3.SepoliaV2]: { name: SEPOLIA_V2_NAME_WITH_OWNED_RESOLVER }
2314
2394
  }
2315
2395
  },
2396
+ ////////////////////////
2397
+ // Resolver By Address
2398
+ ////////////////////////
2399
+ {
2400
+ id: "resolver-by-address",
2401
+ query: `
2402
+ query ResolverByAddress($contract: AccountIdInput!) {
2403
+ resolver(by: { contract: $contract }) {
2404
+ id
2405
+ contract { chainId address }
2406
+
2407
+ # records this resolver stores, keyed by node
2408
+ records(first: 5) {
2409
+ totalCount
2410
+ edges {
2411
+ node {
2412
+ node
2413
+ name
2414
+ keys
2415
+ coinTypes
2416
+ }
2417
+ }
2418
+ }
2419
+
2420
+ events { totalCount edges { node { topics data timestamp } } }
2421
+ }
2422
+ }`,
2423
+ variables: {
2424
+ default: { contract: MAINNET_PUBLIC_RESOLVER },
2425
+ [ENSNamespaceIds3.SepoliaV2]: { contract: SEPOLIA_V2_PUBLIC_RESOLVER }
2426
+ }
2427
+ },
2316
2428
  //////////////
2317
2429
  // Namegraph
2318
2430
  //////////////
@@ -2325,17 +2437,17 @@ query Namegraph {
2325
2437
  domains {
2326
2438
  edges {
2327
2439
  node {
2328
- canonical { name { interpreted } }
2440
+ canonical { name { interpreted beautified } }
2329
2441
 
2330
2442
  subdomains {
2331
2443
  edges {
2332
2444
  node {
2333
- canonical { name { interpreted } }
2445
+ canonical { name { interpreted beautified } }
2334
2446
 
2335
2447
  subdomains {
2336
2448
  edges {
2337
2449
  node {
2338
- canonical { name { interpreted } }
2450
+ canonical { name { interpreted beautified } }
2339
2451
  }
2340
2452
  }
2341
2453
  }
@@ -3055,6 +3167,12 @@ function isBridgedResolver(namespace, resolver) {
3055
3167
  (config) => accountIdEqual(config.resolver, resolver)
3056
3168
  ) ?? null;
3057
3169
  }
3170
+ function isBridgedOriginDomain(namespace, domainId) {
3171
+ return getBridgedResolverConfigs(namespace).find((config) => config.originDomainId === domainId) ?? null;
3172
+ }
3173
+ function isBridgedTargetRegistry(namespace, registryId) {
3174
+ return getBridgedResolverConfigs(namespace).find((config) => config.targetRegistryId === registryId) ?? null;
3175
+ }
3058
3176
 
3059
3177
  // src/shared/protocol-acceleration/is-ensip-19-reverse-resolver.ts
3060
3178
  import { DatasourceNames as DatasourceNames8 } from "@ensnode/datasources";
@@ -3174,7 +3292,9 @@ export {
3174
3292
  invariant_rpcConfigsSpecifiedForRootChain,
3175
3293
  invariant_rpcEndpointConfigIncludesAtLeastOneHTTPProtocolURL,
3176
3294
  invariant_rpcEndpointConfigIncludesAtMostOneWebSocketsProtocolURL,
3295
+ isBridgedOriginDomain,
3177
3296
  isBridgedResolver,
3297
+ isBridgedTargetRegistry,
3178
3298
  isConfigTemplateSubgraphCompatible,
3179
3299
  isExtendedResolver,
3180
3300
  isKnownENSIP19ReverseResolver,