@ensnode/ensnode-sdk 0.0.0-next-20260312212620 → 0.0.0-next-20260313163558
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 +8 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +21 -1
- package/dist/index.d.ts +21 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -241,6 +241,8 @@ __export(index_exports, {
|
|
|
241
241
|
makeSerializedEnsApiPublicConfigSchema: () => makeSerializedEnsApiPublicConfigSchema,
|
|
242
242
|
makeSubdomainNode: () => makeSubdomainNode,
|
|
243
243
|
maybeGetDatasourceContract: () => maybeGetDatasourceContract,
|
|
244
|
+
maybeGetENSv2RootRegistry: () => maybeGetENSv2RootRegistry,
|
|
245
|
+
maybeGetENSv2RootRegistryId: () => maybeGetENSv2RootRegistryId,
|
|
244
246
|
mergeBlockNumberRanges: () => mergeBlockNumberRanges,
|
|
245
247
|
nameTokensPrerequisites: () => nameTokensPrerequisites,
|
|
246
248
|
parseAccountId: () => parseAccountId,
|
|
@@ -4919,6 +4921,12 @@ var isENSv1Registry = (namespace, contract) => accountIdEqual(getENSv1Registry(n
|
|
|
4919
4921
|
var getENSv2RootRegistry = (namespace) => getDatasourceContract(namespace, import_datasources13.DatasourceNames.ENSv2Root, "RootRegistry");
|
|
4920
4922
|
var getENSv2RootRegistryId = (namespace) => makeRegistryId(getENSv2RootRegistry(namespace));
|
|
4921
4923
|
var isENSv2RootRegistry = (namespace, contract) => accountIdEqual(getENSv2RootRegistry(namespace), contract);
|
|
4924
|
+
var maybeGetENSv2RootRegistry = (namespace) => maybeGetDatasourceContract(namespace, import_datasources13.DatasourceNames.ENSv2Root, "RootRegistry");
|
|
4925
|
+
var maybeGetENSv2RootRegistryId = (namespace) => {
|
|
4926
|
+
const root = maybeGetENSv2RootRegistry(namespace);
|
|
4927
|
+
if (!root) return void 0;
|
|
4928
|
+
return makeRegistryId(root);
|
|
4929
|
+
};
|
|
4922
4930
|
|
|
4923
4931
|
// src/shared/url.ts
|
|
4924
4932
|
function isHttpProtocol(url) {
|