@ensnode/ensnode-sdk 1.14.0 → 1.15.1
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 +24 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +21 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +24 -0
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +173 -26
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +21 -1
- package/dist/internal.d.ts +21 -1
- package/dist/internal.js +173 -26
- package/dist/internal.js.map +1 -1
- package/package.json +4 -4
package/dist/internal.d.cts
CHANGED
|
@@ -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.d.ts
CHANGED
|
@@ -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,34 +1967,40 @@ 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 =
|
|
1970
|
+
var SEPOLIA_V2_V2_ETH_REGISTRY = getDatasourceContract(
|
|
1971
1971
|
ENSNamespaceIds3.SepoliaV2,
|
|
1972
1972
|
DatasourceNames2.ENSv2Root,
|
|
1973
1973
|
"ETHRegistry"
|
|
1974
1974
|
);
|
|
1975
|
-
var
|
|
1976
|
-
ENSNamespaceIds3.SepoliaV2,
|
|
1977
|
-
DatasourceNames2.ENSv2Root,
|
|
1978
|
-
"ETHRegistrar"
|
|
1979
|
-
);
|
|
1980
|
-
var ENS_TEST_ENV_V2_ETH_REGISTRY = maybeGetDatasourceContract(
|
|
1975
|
+
var ENS_TEST_ENV_V2_ETH_REGISTRY = getDatasourceContract(
|
|
1981
1976
|
ENSNamespaceIds3.EnsTestEnv,
|
|
1982
1977
|
DatasourceNames2.ENSv2Root,
|
|
1983
1978
|
"ETHRegistry"
|
|
1984
1979
|
);
|
|
1985
|
-
var ENS_TEST_ENV_V2_ETH_REGISTRAR =
|
|
1980
|
+
var ENS_TEST_ENV_V2_ETH_REGISTRAR = getDatasourceContract(
|
|
1986
1981
|
ENSNamespaceIds3.EnsTestEnv,
|
|
1987
1982
|
DatasourceNames2.ENSv2Root,
|
|
1988
1983
|
"ETHRegistrar"
|
|
1989
1984
|
);
|
|
1990
1985
|
var VITALIK_ADDRESS = toNormalizedAddress3("0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045");
|
|
1991
|
-
var _SEPOLIA_V2_USER_ADDRESS = toNormalizedAddress3("0x2f8e8b1126e75fde0b7f731e7cb5847eba2d2574");
|
|
1992
1986
|
var SEPOLIA_V2_ADDRESS_WITH_LOT_OF_NAMES = toNormalizedAddress3(
|
|
1993
|
-
"
|
|
1987
|
+
"0x69696969c3b3ca102eeb5c53a065a7c3ae4fb6dd"
|
|
1988
|
+
);
|
|
1989
|
+
var SEPOLIA_V2_ADDRESS_WITH_PERMISSIONS = toNormalizedAddress3(
|
|
1990
|
+
"0x4c65a1c8d330ce1c3f60e00cd55709ba5fe2e090"
|
|
1994
1991
|
);
|
|
1995
1992
|
var DEVNET_NAME_WITH_OWNED_RESOLVER = asInterpretedName("example.eth");
|
|
1996
|
-
var SEPOLIA_V2_NAME_WITH_OWNED_RESOLVER = asInterpretedName("sfmonicdebmig.eth");
|
|
1997
1993
|
var SEPOLIA_V2_TEST_NAME = asInterpretedName("test-name.eth");
|
|
1994
|
+
var MAINNET_PUBLIC_RESOLVER = getDatasourceContract(
|
|
1995
|
+
ENSNamespaceIds3.Mainnet,
|
|
1996
|
+
DatasourceNames2.ReverseResolverRoot,
|
|
1997
|
+
"DefaultPublicResolver5"
|
|
1998
|
+
);
|
|
1999
|
+
var SEPOLIA_V2_PUBLIC_RESOLVER = getDatasourceContract(
|
|
2000
|
+
ENSNamespaceIds3.SepoliaV2,
|
|
2001
|
+
DatasourceNames2.ReverseResolverRoot,
|
|
2002
|
+
"DefaultPublicResolver5"
|
|
2003
|
+
);
|
|
1998
2004
|
function getGraphqlApiExampleQueryById(id) {
|
|
1999
2005
|
const found = graphqlApiExampleQueryById.get(id);
|
|
2000
2006
|
if (!found) {
|
|
@@ -2017,7 +2023,7 @@ var GRAPHQL_API_EXAMPLE_QUERIES = [
|
|
|
2017
2023
|
#
|
|
2018
2024
|
# There are also example queries in the tabs above \u261D\uFE0F
|
|
2019
2025
|
query HelloWorld {
|
|
2020
|
-
domain(by: { name: "eth" }) { canonical { name { interpreted } } owner { address } }
|
|
2026
|
+
domain(by: { name: "eth" }) { canonical { name { interpreted beautified } } owner { address } }
|
|
2021
2027
|
}`,
|
|
2022
2028
|
variables: { default: {} }
|
|
2023
2029
|
},
|
|
@@ -2041,7 +2047,7 @@ query FindDomains(
|
|
|
2041
2047
|
__typename
|
|
2042
2048
|
id
|
|
2043
2049
|
label { interpreted hash }
|
|
2044
|
-
canonical { name { interpreted } }
|
|
2050
|
+
canonical { name { interpreted beautified } }
|
|
2045
2051
|
|
|
2046
2052
|
registration { expiry event { timestamp } }
|
|
2047
2053
|
}
|
|
@@ -2085,6 +2091,51 @@ query DomainByName($name: InterpretedName!) {
|
|
|
2085
2091
|
[ENSNamespaceIds3.SepoliaV2]: { name: SEPOLIA_V2_TEST_NAME }
|
|
2086
2092
|
}
|
|
2087
2093
|
},
|
|
2094
|
+
///////////////////////
|
|
2095
|
+
// Domain Registration
|
|
2096
|
+
///////////////////////
|
|
2097
|
+
{
|
|
2098
|
+
id: "domain-registration",
|
|
2099
|
+
query: `
|
|
2100
|
+
query DomainRegistration($name: InterpretedName!) {
|
|
2101
|
+
domain(by: { name: $name }) {
|
|
2102
|
+
canonical { name { interpreted } }
|
|
2103
|
+
|
|
2104
|
+
registration {
|
|
2105
|
+
__typename
|
|
2106
|
+
id
|
|
2107
|
+
start
|
|
2108
|
+
expiry
|
|
2109
|
+
expired
|
|
2110
|
+
referrer
|
|
2111
|
+
registrar { chainId address }
|
|
2112
|
+
registrant { address }
|
|
2113
|
+
renewals(first: 5) {
|
|
2114
|
+
totalCount
|
|
2115
|
+
edges { node { duration base premium referrer } }
|
|
2116
|
+
}
|
|
2117
|
+
|
|
2118
|
+
# ENSv1 .eth registrations (also Basenames & Lineanames)
|
|
2119
|
+
... on BaseRegistrarRegistration {
|
|
2120
|
+
baseCost
|
|
2121
|
+
premium
|
|
2122
|
+
isInGracePeriod
|
|
2123
|
+
# present when the .eth name is wrapped by the NameWrapper
|
|
2124
|
+
wrapped { fuses tokenId }
|
|
2125
|
+
}
|
|
2126
|
+
|
|
2127
|
+
# names held natively in the NameWrapper
|
|
2128
|
+
... on NameWrapperRegistration {
|
|
2129
|
+
fuses
|
|
2130
|
+
}
|
|
2131
|
+
}
|
|
2132
|
+
}
|
|
2133
|
+
}`,
|
|
2134
|
+
variables: {
|
|
2135
|
+
default: { name: "vitalik.eth" },
|
|
2136
|
+
[ENSNamespaceIds3.SepoliaV2]: { name: SEPOLIA_V2_TEST_NAME }
|
|
2137
|
+
}
|
|
2138
|
+
},
|
|
2088
2139
|
//////////////////////
|
|
2089
2140
|
// Domain Subdomains
|
|
2090
2141
|
//////////////////////
|
|
@@ -2093,11 +2144,11 @@ query DomainByName($name: InterpretedName!) {
|
|
|
2093
2144
|
query: `
|
|
2094
2145
|
query DomainSubdomains($name: InterpretedName!) {
|
|
2095
2146
|
domain(by: {name: $name}) {
|
|
2096
|
-
canonical { name { interpreted } }
|
|
2147
|
+
canonical { name { interpreted beautified } }
|
|
2097
2148
|
subdomains(first: 10) {
|
|
2098
2149
|
edges {
|
|
2099
2150
|
node {
|
|
2100
|
-
canonical { name { interpreted } }
|
|
2151
|
+
canonical { name { interpreted beautified } }
|
|
2101
2152
|
}
|
|
2102
2153
|
}
|
|
2103
2154
|
}
|
|
@@ -2105,6 +2156,31 @@ query DomainSubdomains($name: InterpretedName!) {
|
|
|
2105
2156
|
}`,
|
|
2106
2157
|
variables: { default: { name: "eth" } }
|
|
2107
2158
|
},
|
|
2159
|
+
////////////////////////
|
|
2160
|
+
// Subdomains Pagination
|
|
2161
|
+
////////////////////////
|
|
2162
|
+
{
|
|
2163
|
+
id: "subdomains-pagination",
|
|
2164
|
+
query: `
|
|
2165
|
+
query SubdomainsPagination($first: Int!, $after: String) {
|
|
2166
|
+
domain(by: { name: "eth" }) {
|
|
2167
|
+
canonical { name { interpreted } }
|
|
2168
|
+
|
|
2169
|
+
# paginate child names: pass pageInfo.endCursor back as $after for the next page
|
|
2170
|
+
subdomains(first: $first, after: $after) {
|
|
2171
|
+
totalCount
|
|
2172
|
+
pageInfo { hasNextPage endCursor }
|
|
2173
|
+
edges {
|
|
2174
|
+
cursor
|
|
2175
|
+
node {
|
|
2176
|
+
canonical { name { interpreted } }
|
|
2177
|
+
}
|
|
2178
|
+
}
|
|
2179
|
+
}
|
|
2180
|
+
}
|
|
2181
|
+
}`,
|
|
2182
|
+
variables: { default: { first: 10, after: null } }
|
|
2183
|
+
},
|
|
2108
2184
|
/////////////////
|
|
2109
2185
|
// Domain Events
|
|
2110
2186
|
/////////////////
|
|
@@ -2130,7 +2206,7 @@ query DomainEvents($name: InterpretedName!) {
|
|
|
2130
2206
|
}`,
|
|
2131
2207
|
variables: {
|
|
2132
2208
|
default: { name: "newowner.eth" },
|
|
2133
|
-
[ENSNamespaceIds3.SepoliaV2]: { name:
|
|
2209
|
+
[ENSNamespaceIds3.SepoliaV2]: { name: SEPOLIA_V2_TEST_NAME }
|
|
2134
2210
|
}
|
|
2135
2211
|
},
|
|
2136
2212
|
////////////////////
|
|
@@ -2147,7 +2223,7 @@ query AccountDomains(
|
|
|
2147
2223
|
edges {
|
|
2148
2224
|
node {
|
|
2149
2225
|
label { interpreted }
|
|
2150
|
-
canonical { name { interpreted } }
|
|
2226
|
+
canonical { name { interpreted beautified } }
|
|
2151
2227
|
}
|
|
2152
2228
|
}
|
|
2153
2229
|
}
|
|
@@ -2192,7 +2268,7 @@ query RegistryDomains(
|
|
|
2192
2268
|
edges {
|
|
2193
2269
|
node {
|
|
2194
2270
|
label { interpreted }
|
|
2195
|
-
canonical { name { interpreted } }
|
|
2271
|
+
canonical { name { interpreted beautified } }
|
|
2196
2272
|
}
|
|
2197
2273
|
}
|
|
2198
2274
|
}
|
|
@@ -2236,8 +2312,8 @@ query PermissionsByContract(
|
|
|
2236
2312
|
variables: {
|
|
2237
2313
|
// TODO: same as above
|
|
2238
2314
|
default: { contract: ENS_TEST_ENV_V2_ETH_REGISTRAR },
|
|
2239
|
-
//
|
|
2240
|
-
[ENSNamespaceIds3.SepoliaV2]: { contract:
|
|
2315
|
+
// the ETHRegistrar holds no EAC permissions on sepolia-v2; the ETHRegistry does
|
|
2316
|
+
[ENSNamespaceIds3.SepoliaV2]: { contract: SEPOLIA_V2_V2_ETH_REGISTRY }
|
|
2241
2317
|
}
|
|
2242
2318
|
},
|
|
2243
2319
|
////////////////////////
|
|
@@ -2260,8 +2336,7 @@ query PermissionsByUser($address: Address!) {
|
|
|
2260
2336
|
}`,
|
|
2261
2337
|
variables: {
|
|
2262
2338
|
default: { address: accounts.deployer.address },
|
|
2263
|
-
|
|
2264
|
-
[ENSNamespaceIds3.SepoliaV2]: { address: SEPOLIA_V2_ADDRESS_WITH_LOT_OF_NAMES }
|
|
2339
|
+
[ENSNamespaceIds3.SepoliaV2]: { address: SEPOLIA_V2_ADDRESS_WITH_PERMISSIONS }
|
|
2265
2340
|
}
|
|
2266
2341
|
},
|
|
2267
2342
|
//////////////////////////////////
|
|
@@ -2310,7 +2385,39 @@ query DomainResolver($name: InterpretedName!) {
|
|
|
2310
2385
|
variables: {
|
|
2311
2386
|
default: { name: "vitalik.eth" },
|
|
2312
2387
|
[ENSNamespaceIds3.EnsTestEnv]: { name: DEVNET_NAME_WITH_OWNED_RESOLVER },
|
|
2313
|
-
[ENSNamespaceIds3.SepoliaV2]: { name:
|
|
2388
|
+
[ENSNamespaceIds3.SepoliaV2]: { name: SEPOLIA_V2_TEST_NAME }
|
|
2389
|
+
}
|
|
2390
|
+
},
|
|
2391
|
+
////////////////////////
|
|
2392
|
+
// Resolver By Address
|
|
2393
|
+
////////////////////////
|
|
2394
|
+
{
|
|
2395
|
+
id: "resolver-by-address",
|
|
2396
|
+
query: `
|
|
2397
|
+
query ResolverByAddress($contract: AccountIdInput!) {
|
|
2398
|
+
resolver(by: { contract: $contract }) {
|
|
2399
|
+
id
|
|
2400
|
+
contract { chainId address }
|
|
2401
|
+
|
|
2402
|
+
# records this resolver stores, keyed by node
|
|
2403
|
+
records(first: 5) {
|
|
2404
|
+
totalCount
|
|
2405
|
+
edges {
|
|
2406
|
+
node {
|
|
2407
|
+
node
|
|
2408
|
+
name
|
|
2409
|
+
keys
|
|
2410
|
+
coinTypes
|
|
2411
|
+
}
|
|
2412
|
+
}
|
|
2413
|
+
}
|
|
2414
|
+
|
|
2415
|
+
events { totalCount edges { node { topics data timestamp } } }
|
|
2416
|
+
}
|
|
2417
|
+
}`,
|
|
2418
|
+
variables: {
|
|
2419
|
+
default: { contract: MAINNET_PUBLIC_RESOLVER },
|
|
2420
|
+
[ENSNamespaceIds3.SepoliaV2]: { contract: SEPOLIA_V2_PUBLIC_RESOLVER }
|
|
2314
2421
|
}
|
|
2315
2422
|
},
|
|
2316
2423
|
//////////////
|
|
@@ -2325,17 +2432,17 @@ query Namegraph {
|
|
|
2325
2432
|
domains {
|
|
2326
2433
|
edges {
|
|
2327
2434
|
node {
|
|
2328
|
-
canonical { name { interpreted } }
|
|
2435
|
+
canonical { name { interpreted beautified } }
|
|
2329
2436
|
|
|
2330
2437
|
subdomains {
|
|
2331
2438
|
edges {
|
|
2332
2439
|
node {
|
|
2333
|
-
canonical { name { interpreted } }
|
|
2440
|
+
canonical { name { interpreted beautified } }
|
|
2334
2441
|
|
|
2335
2442
|
subdomains {
|
|
2336
2443
|
edges {
|
|
2337
2444
|
node {
|
|
2338
|
-
canonical { name { interpreted } }
|
|
2445
|
+
canonical { name { interpreted beautified } }
|
|
2339
2446
|
}
|
|
2340
2447
|
}
|
|
2341
2448
|
}
|
|
@@ -2346,6 +2453,38 @@ query Namegraph {
|
|
|
2346
2453
|
}
|
|
2347
2454
|
}
|
|
2348
2455
|
}
|
|
2456
|
+
}`,
|
|
2457
|
+
variables: { default: {} }
|
|
2458
|
+
},
|
|
2459
|
+
/////////////////////////////
|
|
2460
|
+
// ENSv1 → ENSv2 Migration
|
|
2461
|
+
/////////////////////////////
|
|
2462
|
+
{
|
|
2463
|
+
id: "account-migrated-names",
|
|
2464
|
+
query: `
|
|
2465
|
+
query AccountMigratedNames($address: Address!) {
|
|
2466
|
+
account(by: { address: $address }) {
|
|
2467
|
+
v1DomainsCount: domains(where: { version: ENSv1 }) { totalCount }
|
|
2468
|
+
v2DomainsCount: domains(where: { version: ENSv2 }) { totalCount }
|
|
2469
|
+
}
|
|
2470
|
+
}`,
|
|
2471
|
+
variables: {
|
|
2472
|
+
default: { address: VITALIK_ADDRESS },
|
|
2473
|
+
[ENSNamespaceIds3.SepoliaV2]: { address: SEPOLIA_V2_ADDRESS_WITH_LOT_OF_NAMES }
|
|
2474
|
+
}
|
|
2475
|
+
},
|
|
2476
|
+
{
|
|
2477
|
+
id: "eth-by-version",
|
|
2478
|
+
query: `
|
|
2479
|
+
query GetEthDomains {
|
|
2480
|
+
domains(where: { name: { eq: "eth" } }) {
|
|
2481
|
+
edges {
|
|
2482
|
+
node {
|
|
2483
|
+
__typename
|
|
2484
|
+
id
|
|
2485
|
+
}
|
|
2486
|
+
}
|
|
2487
|
+
}
|
|
2349
2488
|
}`,
|
|
2350
2489
|
variables: { default: {} }
|
|
2351
2490
|
}
|
|
@@ -3055,6 +3194,12 @@ function isBridgedResolver(namespace, resolver) {
|
|
|
3055
3194
|
(config) => accountIdEqual(config.resolver, resolver)
|
|
3056
3195
|
) ?? null;
|
|
3057
3196
|
}
|
|
3197
|
+
function isBridgedOriginDomain(namespace, domainId) {
|
|
3198
|
+
return getBridgedResolverConfigs(namespace).find((config) => config.originDomainId === domainId) ?? null;
|
|
3199
|
+
}
|
|
3200
|
+
function isBridgedTargetRegistry(namespace, registryId) {
|
|
3201
|
+
return getBridgedResolverConfigs(namespace).find((config) => config.targetRegistryId === registryId) ?? null;
|
|
3202
|
+
}
|
|
3058
3203
|
|
|
3059
3204
|
// src/shared/protocol-acceleration/is-ensip-19-reverse-resolver.ts
|
|
3060
3205
|
import { DatasourceNames as DatasourceNames8 } from "@ensnode/datasources";
|
|
@@ -3174,7 +3319,9 @@ export {
|
|
|
3174
3319
|
invariant_rpcConfigsSpecifiedForRootChain,
|
|
3175
3320
|
invariant_rpcEndpointConfigIncludesAtLeastOneHTTPProtocolURL,
|
|
3176
3321
|
invariant_rpcEndpointConfigIncludesAtMostOneWebSocketsProtocolURL,
|
|
3322
|
+
isBridgedOriginDomain,
|
|
3177
3323
|
isBridgedResolver,
|
|
3324
|
+
isBridgedTargetRegistry,
|
|
3178
3325
|
isConfigTemplateSubgraphCompatible,
|
|
3179
3326
|
isExtendedResolver,
|
|
3180
3327
|
isKnownENSIP19ReverseResolver,
|