@ensnode/ensnode-sdk 0.0.0-next-20260315095810 → 0.0.0-next-20260316155921
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 +15 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -5
- package/dist/index.d.ts +11 -5
- package/dist/index.js +15 -11
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -3236,6 +3236,14 @@ var RegistrarActionsFilterTypes = {
|
|
|
3236
3236
|
EndTimestamp: "endTimestamp"
|
|
3237
3237
|
};
|
|
3238
3238
|
var RegistrarActionsOrders = {
|
|
3239
|
+
/**
|
|
3240
|
+
* Returns registrar actions newest-first.
|
|
3241
|
+
*
|
|
3242
|
+
* Sorts by block timestamp descending. Because each action's identifier encodes
|
|
3243
|
+
* all ordering-relevant onchain properties, this also correctly orders actions
|
|
3244
|
+
* that share the same block timestamp by the chronological order in which they
|
|
3245
|
+
* were executed within the block.
|
|
3246
|
+
*/
|
|
3239
3247
|
LatestRegistrarActions: "orderBy[timestamp]=desc"
|
|
3240
3248
|
};
|
|
3241
3249
|
|
|
@@ -4763,18 +4771,14 @@ var TtlCache = class {
|
|
|
4763
4771
|
|
|
4764
4772
|
// src/shared/config/indexed-blockranges.ts
|
|
4765
4773
|
var import_datasources12 = require("@ensnode/datasources");
|
|
4766
|
-
function buildIndexedBlockranges(namespace,
|
|
4774
|
+
function buildIndexedBlockranges(namespace, pluginsDatasourceNames) {
|
|
4767
4775
|
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);
|
|
4776
|
+
for (const [, datasourceNames] of pluginsDatasourceNames) {
|
|
4777
|
+
for (const datasourceName of datasourceNames) {
|
|
4778
|
+
const datasource = (0, import_datasources12.maybeGetDatasource)(namespace, datasourceName);
|
|
4779
|
+
if (!datasource) continue;
|
|
4780
|
+
const datasourceChainId = datasource.chain.id;
|
|
4781
|
+
const datasourceContracts = Object.values(datasource.contracts);
|
|
4778
4782
|
for (const datasourceContract of datasourceContracts) {
|
|
4779
4783
|
const currentChainIndexedBlockrange = indexedBlockranges.get(datasourceChainId);
|
|
4780
4784
|
const contractIndexedBlockrange = buildBlockNumberRange(
|