@ensnode/ensnode-sdk 0.0.0-next-20260502010437 → 0.0.0-next-20260502233012

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 CHANGED
@@ -4760,6 +4760,7 @@ var TtlCache = class {
4760
4760
  };
4761
4761
 
4762
4762
  // src/shared/config/indexed-blockranges.ts
4763
+ var import_viem9 = require("viem");
4763
4764
  var import_datasources8 = require("@ensnode/datasources");
4764
4765
  function buildIndexedBlockranges(namespace, pluginsDatasourceNames) {
4765
4766
  const indexedBlockranges = /* @__PURE__ */ new Map();
@@ -4770,6 +4771,7 @@ function buildIndexedBlockranges(namespace, pluginsDatasourceNames) {
4770
4771
  const datasourceChainId = datasource.chain.id;
4771
4772
  const datasourceContracts = Object.values(datasource.contracts);
4772
4773
  for (const datasourceContract of datasourceContracts) {
4774
+ if (datasourceContract.address === import_viem9.zeroAddress) continue;
4773
4775
  const currentChainIndexedBlockrange = indexedBlockranges.get(datasourceChainId);
4774
4776
  const contractIndexedBlockrange = buildBlockNumberRange(
4775
4777
  datasourceContract.startBlock,
@@ -4789,12 +4791,12 @@ function buildIndexedBlockranges(namespace, pluginsDatasourceNames) {
4789
4791
  }
4790
4792
 
4791
4793
  // src/shared/interpretation/interpret-address.ts
4792
- var import_viem9 = require("viem");
4793
- var interpretAddress = (owner) => (0, import_viem9.isAddressEqual)(import_viem9.zeroAddress, owner) ? null : owner;
4794
+ var import_viem10 = require("viem");
4795
+ var interpretAddress = (owner) => (0, import_viem10.isAddressEqual)(import_viem10.zeroAddress, owner) ? null : owner;
4794
4796
 
4795
4797
  // src/shared/interpretation/interpret-record-values.ts
4796
4798
  var import_enssdk9 = require("enssdk");
4797
- var import_viem10 = require("viem");
4799
+ var import_viem11 = require("viem");
4798
4800
 
4799
4801
  // src/shared/null-bytes.ts
4800
4802
  var hasNullByte = (value) => value.indexOf("\0") !== -1;
@@ -4810,8 +4812,8 @@ function interpretAddressRecordValue(value) {
4810
4812
  if (hasNullByte(value)) return null;
4811
4813
  if (value === "") return null;
4812
4814
  if (value === "0x") return null;
4813
- if (!(0, import_viem10.isAddress)(value, { strict: false })) return value;
4814
- if ((0, import_viem10.isAddressEqual)(value, import_viem10.zeroAddress)) return null;
4815
+ if (!(0, import_viem11.isAddress)(value, { strict: false })) return value;
4816
+ if ((0, import_viem11.isAddressEqual)(value, import_viem11.zeroAddress)) return null;
4815
4817
  return (0, import_enssdk9.toNormalizedAddress)(value);
4816
4818
  }
4817
4819
  function interpretTextRecordKey(key) {
@@ -4826,17 +4828,17 @@ function interpretTextRecordValue(value) {
4826
4828
  }
4827
4829
 
4828
4830
  // src/shared/interpretation/interpret-resolver-values.ts
4829
- var import_viem11 = require("viem");
4831
+ var import_viem12 = require("viem");
4830
4832
  function interpretContenthashValue(value) {
4831
- if ((0, import_viem11.size)(value) === 0) return null;
4833
+ if ((0, import_viem12.size)(value) === 0) return null;
4832
4834
  return value;
4833
4835
  }
4834
4836
  function interpretPubkeyValue(x, y) {
4835
- if (x === import_viem11.zeroHash && y === import_viem11.zeroHash) return null;
4837
+ if (x === import_viem12.zeroHash && y === import_viem12.zeroHash) return null;
4836
4838
  return { x, y };
4837
4839
  }
4838
4840
  function interpretDnszonehashValue(value) {
4839
- if ((0, import_viem11.size)(value) === 0) return null;
4841
+ if ((0, import_viem12.size)(value) === 0) return null;
4840
4842
  return value;
4841
4843
  }
4842
4844