@ensnode/ensnode-sdk 0.0.0-next-20260313164145 → 0.0.0-next-20260316153207

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
@@ -4763,18 +4763,14 @@ var TtlCache = class {
4763
4763
 
4764
4764
  // src/shared/config/indexed-blockranges.ts
4765
4765
  var import_datasources12 = require("@ensnode/datasources");
4766
- function buildIndexedBlockranges(namespace, pluginsRequiredDatasourceNames) {
4766
+ function buildIndexedBlockranges(namespace, pluginsDatasourceNames) {
4767
4767
  const indexedBlockranges = /* @__PURE__ */ new Map();
4768
- for (const [pluginName, requiredDatasourceNames] of pluginsRequiredDatasourceNames) {
4769
- for (const requiredDatasourceName of requiredDatasourceNames) {
4770
- const requiredDatasource = (0, import_datasources12.maybeGetDatasource)(namespace, requiredDatasourceName);
4771
- if (!requiredDatasource) {
4772
- throw new Error(
4773
- `Datasource ${requiredDatasourceName} required by plugin ${pluginName} is not defined in namespace ${namespace}.`
4774
- );
4775
- }
4776
- const datasourceChainId = requiredDatasource.chain.id;
4777
- const datasourceContracts = Object.values(requiredDatasource.contracts);
4768
+ for (const [, datasourceNames] of pluginsDatasourceNames) {
4769
+ for (const datasourceName of datasourceNames) {
4770
+ const datasource = (0, import_datasources12.maybeGetDatasource)(namespace, datasourceName);
4771
+ if (!datasource) continue;
4772
+ const datasourceChainId = datasource.chain.id;
4773
+ const datasourceContracts = Object.values(datasource.contracts);
4778
4774
  for (const datasourceContract of datasourceContracts) {
4779
4775
  const currentChainIndexedBlockrange = indexedBlockranges.get(datasourceChainId);
4780
4776
  const contractIndexedBlockrange = buildBlockNumberRange(