@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 +7 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -5
- package/dist/index.d.ts +3 -5
- package/dist/index.js +7 -11
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
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,
|
|
4766
|
+
function buildIndexedBlockranges(namespace, pluginsDatasourceNames) {
|
|
4767
4767
|
const indexedBlockranges = /* @__PURE__ */ new Map();
|
|
4768
|
-
for (const [
|
|
4769
|
-
for (const
|
|
4770
|
-
const
|
|
4771
|
-
if (!
|
|
4772
|
-
|
|
4773
|
-
|
|
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(
|