@ensnode/ensnode-sdk 0.0.0-next-20260512160721 → 0.0.0-next-20260513141106

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
@@ -4776,7 +4776,7 @@ var TtlCache = class {
4776
4776
 
4777
4777
  // src/shared/config/indexed-blockranges.ts
4778
4778
  var import_datasources8 = require("@ensnode/datasources");
4779
- function buildIndexedBlockranges(namespace, pluginsDatasourceNames) {
4779
+ function buildIndexedBlockranges(namespace, globalBlockrangeEndBlock, pluginsDatasourceNames) {
4780
4780
  const indexedBlockranges = /* @__PURE__ */ new Map();
4781
4781
  for (const [, datasourceNames] of pluginsDatasourceNames) {
4782
4782
  for (const datasourceName of datasourceNames) {
@@ -4786,9 +4786,12 @@ function buildIndexedBlockranges(namespace, pluginsDatasourceNames) {
4786
4786
  const datasourceContracts = Object.values(datasource.contracts);
4787
4787
  for (const datasourceContract of datasourceContracts) {
4788
4788
  const currentChainIndexedBlockrange = indexedBlockranges.get(datasourceChainId);
4789
+ if (typeof globalBlockrangeEndBlock === "number" && datasourceContract.startBlock > globalBlockrangeEndBlock) {
4790
+ continue;
4791
+ }
4789
4792
  const contractIndexedBlockrange = buildBlockNumberRange(
4790
4793
  datasourceContract.startBlock,
4791
- datasourceContract.endBlock
4794
+ datasourceContract.endBlock ?? globalBlockrangeEndBlock
4792
4795
  );
4793
4796
  const indexedBlockrange = currentChainIndexedBlockrange ? mergeBlockNumberRanges(currentChainIndexedBlockrange, contractIndexedBlockrange) : contractIndexedBlockrange;
4794
4797
  if (indexedBlockrange.rangeType !== RangeTypeIds.LeftBounded && indexedBlockrange.rangeType !== RangeTypeIds.Bounded) {