@ensnode/ensnode-sdk 0.0.0-next-20260510180307 → 0.0.0-next-20260512083558

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
@@ -162,9 +162,11 @@ __export(index_exports, {
162
162
  getTimestampForLowestOmnichainStartBlock: () => getTimestampForLowestOmnichainStartBlock,
163
163
  hasNullByte: () => hasNullByte,
164
164
  hasOmnigraphApiConfigSupport: () => hasOmnigraphApiConfigSupport,
165
+ hasOmnigraphApiIndexingStatusSupport: () => hasOmnigraphApiIndexingStatusSupport,
165
166
  hasRegistrarActionsConfigSupport: () => hasRegistrarActionsConfigSupport,
166
167
  hasRegistrarActionsIndexingStatusSupport: () => hasRegistrarActionsIndexingStatusSupport,
167
168
  hasSubgraphApiConfigSupport: () => hasSubgraphApiConfigSupport,
169
+ hasSubgraphApiIndexingStatusSupport: () => hasSubgraphApiIndexingStatusSupport,
168
170
  interpretAddress: () => interpretAddress,
169
171
  interpretAddressRecordValue: () => interpretAddressRecordValue,
170
172
  interpretContenthashValue: () => interpretContenthashValue,
@@ -4395,6 +4397,16 @@ function isResolvedIdentity(identity) {
4395
4397
  return identity.resolutionStatus !== ResolutionStatusIds.Unresolved;
4396
4398
  }
4397
4399
 
4400
+ // src/ensnode/api/prerequisites.ts
4401
+ function hasBackfillCompleted(indexingStatus) {
4402
+ const supported = indexingStatus === OmnichainIndexingStatusIds.Completed || indexingStatus === OmnichainIndexingStatusIds.Following;
4403
+ if (supported) return { supported };
4404
+ return {
4405
+ supported: false,
4406
+ reason: `The connected ENSNode's Indexing Status must be "${OmnichainIndexingStatusIds.Completed}" or "${OmnichainIndexingStatusIds.Following}". Currently, it is "${indexingStatus}".`
4407
+ };
4408
+ }
4409
+
4398
4410
  // src/omnigraph-api/prerequisites.ts
4399
4411
  function hasOmnigraphApiConfigSupport(config) {
4400
4412
  const supported = config.plugins.includes("ensv2" /* ENSv2 */);
@@ -4404,6 +4416,9 @@ function hasOmnigraphApiConfigSupport(config) {
4404
4416
  reason: `The connected ENSNode's Config must have the '${"ensv2" /* ENSv2 */}' plugin enabled.`
4405
4417
  };
4406
4418
  }
4419
+ function hasOmnigraphApiIndexingStatusSupport(indexingStatus) {
4420
+ return hasBackfillCompleted(indexingStatus);
4421
+ }
4407
4422
 
4408
4423
  // src/registrars/registration-expiration.ts
4409
4424
  function isRegistrationExpired(info, now) {
@@ -5044,6 +5059,9 @@ function hasSubgraphApiConfigSupport(config) {
5044
5059
  reason: `The connected ENSNode's Config must have the '${"subgraph" /* Subgraph */}' plugin enabled.`
5045
5060
  };
5046
5061
  }
5062
+ function hasSubgraphApiIndexingStatusSupport(indexingStatus) {
5063
+ return hasBackfillCompleted(indexingStatus);
5064
+ }
5047
5065
 
5048
5066
  // src/tracing/ens-protocol-tracing.ts
5049
5067
  var PROTOCOL_ATTRIBUTE_PREFIX = "ens";