@ensnode/ensnode-sdk 0.0.0-next-20260228175526 → 0.0.0-next-20260301131020

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
@@ -100,8 +100,10 @@ __export(index_exports, {
100
100
  buildBlockRefRange: () => buildBlockRefRange,
101
101
  buildEncodedReferrer: () => buildEncodedReferrer,
102
102
  buildEnsRainbowClientLabelSet: () => buildEnsRainbowClientLabelSet,
103
+ buildIndexedBlockranges: () => buildIndexedBlockranges,
103
104
  buildLabelSetId: () => buildLabelSetId,
104
105
  buildLabelSetVersion: () => buildLabelSetVersion,
106
+ buildOmnichainIndexingStatusSnapshot: () => buildOmnichainIndexingStatusSnapshot,
105
107
  buildPageContext: () => buildPageContext,
106
108
  buildUnresolvedIdentity: () => buildUnresolvedIdentity,
107
109
  buildUnvalidatedCrossChainIndexingStatusSnapshot: () => buildUnvalidatedCrossChainIndexingStatusSnapshot,
@@ -233,6 +235,7 @@ __export(index_exports, {
233
235
  makeSerializedEnsApiPublicConfigSchema: () => makeSerializedEnsApiPublicConfigSchema,
234
236
  makeSubdomainNode: () => makeSubdomainNode,
235
237
  maybeGetDatasourceContract: () => maybeGetDatasourceContract,
238
+ mergeBlockNumberRanges: () => mergeBlockNumberRanges,
236
239
  nameTokensPrerequisites: () => nameTokensPrerequisites,
237
240
  parseAccountId: () => parseAccountId,
238
241
  parseAssetId: () => parseAssetId,
@@ -1072,16 +1075,16 @@ function serializeEnsApiConfigResponse(response) {
1072
1075
  var serializeConfigResponse = serializeEnsApiConfigResponse;
1073
1076
 
1074
1077
  // src/ensapi/api/indexing-status/deserialize.ts
1075
- var import_v415 = require("zod/v4");
1078
+ var import_v416 = require("zod/v4");
1076
1079
 
1077
1080
  // src/indexing-status/deserialize/realtime-indexing-status-projection.ts
1078
- var import_v413 = require("zod/v4");
1081
+ var import_v414 = require("zod/v4");
1079
1082
 
1080
1083
  // src/indexing-status/zod-schema/realtime-indexing-status-projection.ts
1081
- var import_v410 = require("zod/v4");
1084
+ var import_v411 = require("zod/v4");
1082
1085
 
1083
1086
  // src/indexing-status/zod-schema/cross-chain-indexing-status-snapshot.ts
1084
- var import_v49 = require("zod/v4");
1087
+ var import_v410 = require("zod/v4");
1085
1088
 
1086
1089
  // src/shared/block-ref.ts
1087
1090
  function isBefore(blockA, blockB) {
@@ -1133,6 +1136,26 @@ function buildBlockNumberRange(startBlock, endBlock) {
1133
1136
  }
1134
1137
  throw new Error("Invalid block number range. This should be unreachable.");
1135
1138
  }
1139
+ function mergeBlockNumberRanges(...ranges) {
1140
+ if (ranges.length === 0) {
1141
+ return buildBlockNumberRange(void 0, void 0);
1142
+ }
1143
+ let minStartBlock;
1144
+ let maxEndBlock;
1145
+ for (const range of ranges) {
1146
+ if (range.startBlock !== void 0) {
1147
+ if (minStartBlock === void 0 || range.startBlock < minStartBlock) {
1148
+ minStartBlock = range.startBlock;
1149
+ }
1150
+ }
1151
+ if (range.endBlock !== void 0) {
1152
+ if (maxEndBlock === void 0 || range.endBlock > maxEndBlock) {
1153
+ maxEndBlock = range.endBlock;
1154
+ }
1155
+ }
1156
+ }
1157
+ return buildBlockNumberRange(minStartBlock, maxEndBlock);
1158
+ }
1136
1159
  function buildBlockRefRange(startBlock, endBlock) {
1137
1160
  if (startBlock === void 0 && endBlock === void 0) {
1138
1161
  return {
@@ -1270,7 +1293,20 @@ function getLatestIndexedBlockRef(indexingStatus, chainId) {
1270
1293
  }
1271
1294
 
1272
1295
  // src/indexing-status/zod-schema/omnichain-indexing-status-snapshot.ts
1273
- var import_v48 = require("zod/v4");
1296
+ var import_v49 = require("zod/v4");
1297
+
1298
+ // src/indexing-status/validate/omnichain-indexing-status-snapshot.ts
1299
+ var import_v47 = require("zod/v4");
1300
+ function validateOmnichainIndexingStatusSnapshot(unvalidatedSnapshot, valueLabel) {
1301
+ const schema = makeOmnichainIndexingStatusSnapshotSchema(valueLabel);
1302
+ const parsed = schema.safeParse(unvalidatedSnapshot);
1303
+ if (parsed.error) {
1304
+ throw new Error(`Invalid OmnichainIndexingStatusSnapshot:
1305
+ ${(0, import_v47.prettifyError)(parsed.error)}
1306
+ `);
1307
+ }
1308
+ return parsed.data;
1309
+ }
1274
1310
 
1275
1311
  // src/indexing-status/omnichain-indexing-status-snapshot.ts
1276
1312
  var OmnichainIndexingStatusIds = {
@@ -1352,9 +1388,51 @@ function getOmnichainIndexingCursor(chains) {
1352
1388
  }
1353
1389
  return Math.max(...latestIndexedBlockTimestamps);
1354
1390
  }
1391
+ function buildOmnichainIndexingStatusSnapshot(chainStatusSnapshots) {
1392
+ if (chainStatusSnapshots.size === 0) {
1393
+ throw new Error(
1394
+ "At least one chain indexing status snapshot is required to build an OmnichainIndexingStatusSnapshot"
1395
+ );
1396
+ }
1397
+ const chains = Array.from(chainStatusSnapshots.values());
1398
+ const omnichainStatus = getOmnichainIndexingStatus(chains);
1399
+ const omnichainIndexingCursor = getOmnichainIndexingCursor(chains);
1400
+ switch (omnichainStatus) {
1401
+ case OmnichainIndexingStatusIds.Unstarted: {
1402
+ return validateOmnichainIndexingStatusSnapshot({
1403
+ omnichainStatus: OmnichainIndexingStatusIds.Unstarted,
1404
+ chains: chainStatusSnapshots,
1405
+ // narrowing the type here, will be validated in the following 'check' step
1406
+ omnichainIndexingCursor
1407
+ });
1408
+ }
1409
+ case OmnichainIndexingStatusIds.Backfill: {
1410
+ return validateOmnichainIndexingStatusSnapshot({
1411
+ omnichainStatus: OmnichainIndexingStatusIds.Backfill,
1412
+ chains: chainStatusSnapshots,
1413
+ // narrowing the type here, will be validated in the following 'check' step
1414
+ omnichainIndexingCursor
1415
+ });
1416
+ }
1417
+ case OmnichainIndexingStatusIds.Completed: {
1418
+ return validateOmnichainIndexingStatusSnapshot({
1419
+ omnichainStatus: OmnichainIndexingStatusIds.Completed,
1420
+ chains: chainStatusSnapshots,
1421
+ // narrowing the type here, will be validated in the following 'check' step
1422
+ omnichainIndexingCursor
1423
+ });
1424
+ }
1425
+ case OmnichainIndexingStatusIds.Following:
1426
+ return validateOmnichainIndexingStatusSnapshot({
1427
+ omnichainStatus: OmnichainIndexingStatusIds.Following,
1428
+ chains: chainStatusSnapshots,
1429
+ omnichainIndexingCursor
1430
+ });
1431
+ }
1432
+ }
1355
1433
 
1356
1434
  // src/indexing-status/zod-schema/chain-indexing-status-snapshot.ts
1357
- var import_v47 = require("zod/v4");
1435
+ var import_v48 = require("zod/v4");
1358
1436
  function invariant_chainSnapshotQueuedBlocks(ctx) {
1359
1437
  const { config } = ctx.value;
1360
1438
  if (config.rangeType === RangeTypeIds.LeftBounded) {
@@ -1429,29 +1507,29 @@ function invariant_chainSnapshotFollowingBlocks(ctx) {
1429
1507
  });
1430
1508
  }
1431
1509
  }
1432
- var makeChainIndexingStatusSnapshotQueuedSchema = (valueLabel = "Value") => import_v47.z.object({
1433
- chainStatus: import_v47.z.literal(ChainIndexingStatusIds.Queued),
1434
- config: import_v47.z.discriminatedUnion("rangeType", [
1435
- import_v47.z.object({
1436
- rangeType: import_v47.z.literal(RangeTypeIds.LeftBounded),
1510
+ var makeChainIndexingStatusSnapshotQueuedSchema = (valueLabel = "Value") => import_v48.z.object({
1511
+ chainStatus: import_v48.z.literal(ChainIndexingStatusIds.Queued),
1512
+ config: import_v48.z.discriminatedUnion("rangeType", [
1513
+ import_v48.z.object({
1514
+ rangeType: import_v48.z.literal(RangeTypeIds.LeftBounded),
1437
1515
  startBlock: makeBlockRefSchema(valueLabel)
1438
1516
  }),
1439
- import_v47.z.object({
1440
- rangeType: import_v47.z.literal(RangeTypeIds.Bounded),
1517
+ import_v48.z.object({
1518
+ rangeType: import_v48.z.literal(RangeTypeIds.Bounded),
1441
1519
  startBlock: makeBlockRefSchema(valueLabel),
1442
1520
  endBlock: makeBlockRefSchema(valueLabel)
1443
1521
  })
1444
1522
  ])
1445
1523
  }).check(invariant_chainSnapshotQueuedBlocks);
1446
- var makeChainIndexingStatusSnapshotBackfillSchema = (valueLabel = "Value") => import_v47.z.object({
1447
- chainStatus: import_v47.z.literal(ChainIndexingStatusIds.Backfill),
1448
- config: import_v47.z.discriminatedUnion("rangeType", [
1449
- import_v47.z.object({
1450
- rangeType: import_v47.z.literal(RangeTypeIds.LeftBounded),
1524
+ var makeChainIndexingStatusSnapshotBackfillSchema = (valueLabel = "Value") => import_v48.z.object({
1525
+ chainStatus: import_v48.z.literal(ChainIndexingStatusIds.Backfill),
1526
+ config: import_v48.z.discriminatedUnion("rangeType", [
1527
+ import_v48.z.object({
1528
+ rangeType: import_v48.z.literal(RangeTypeIds.LeftBounded),
1451
1529
  startBlock: makeBlockRefSchema(valueLabel)
1452
1530
  }),
1453
- import_v47.z.object({
1454
- rangeType: import_v47.z.literal(RangeTypeIds.Bounded),
1531
+ import_v48.z.object({
1532
+ rangeType: import_v48.z.literal(RangeTypeIds.Bounded),
1455
1533
  startBlock: makeBlockRefSchema(valueLabel),
1456
1534
  endBlock: makeBlockRefSchema(valueLabel)
1457
1535
  })
@@ -1459,25 +1537,25 @@ var makeChainIndexingStatusSnapshotBackfillSchema = (valueLabel = "Value") => im
1459
1537
  latestIndexedBlock: makeBlockRefSchema(valueLabel),
1460
1538
  backfillEndBlock: makeBlockRefSchema(valueLabel)
1461
1539
  }).check(invariant_chainSnapshotBackfillBlocks);
1462
- var makeChainIndexingStatusSnapshotCompletedSchema = (valueLabel = "Value") => import_v47.z.object({
1463
- chainStatus: import_v47.z.literal(ChainIndexingStatusIds.Completed),
1464
- config: import_v47.z.object({
1465
- rangeType: import_v47.z.literal(RangeTypeIds.Bounded),
1540
+ var makeChainIndexingStatusSnapshotCompletedSchema = (valueLabel = "Value") => import_v48.z.object({
1541
+ chainStatus: import_v48.z.literal(ChainIndexingStatusIds.Completed),
1542
+ config: import_v48.z.object({
1543
+ rangeType: import_v48.z.literal(RangeTypeIds.Bounded),
1466
1544
  startBlock: makeBlockRefSchema(valueLabel),
1467
1545
  endBlock: makeBlockRefSchema(valueLabel)
1468
1546
  }),
1469
1547
  latestIndexedBlock: makeBlockRefSchema(valueLabel)
1470
1548
  }).check(invariant_chainSnapshotCompletedBlocks);
1471
- var makeChainIndexingStatusSnapshotFollowingSchema = (valueLabel = "Value") => import_v47.z.object({
1472
- chainStatus: import_v47.z.literal(ChainIndexingStatusIds.Following),
1473
- config: import_v47.z.object({
1474
- rangeType: import_v47.z.literal(RangeTypeIds.LeftBounded),
1549
+ var makeChainIndexingStatusSnapshotFollowingSchema = (valueLabel = "Value") => import_v48.z.object({
1550
+ chainStatus: import_v48.z.literal(ChainIndexingStatusIds.Following),
1551
+ config: import_v48.z.object({
1552
+ rangeType: import_v48.z.literal(RangeTypeIds.LeftBounded),
1475
1553
  startBlock: makeBlockRefSchema(valueLabel)
1476
1554
  }),
1477
1555
  latestIndexedBlock: makeBlockRefSchema(valueLabel),
1478
1556
  latestKnownBlock: makeBlockRefSchema(valueLabel)
1479
1557
  }).check(invariant_chainSnapshotFollowingBlocks);
1480
- var makeChainIndexingStatusSnapshotSchema = (valueLabel = "Value") => import_v47.z.discriminatedUnion("chainStatus", [
1558
+ var makeChainIndexingStatusSnapshotSchema = (valueLabel = "Value") => import_v48.z.discriminatedUnion("chainStatus", [
1481
1559
  makeChainIndexingStatusSnapshotQueuedSchema(valueLabel),
1482
1560
  makeChainIndexingStatusSnapshotBackfillSchema(valueLabel),
1483
1561
  makeChainIndexingStatusSnapshotCompletedSchema(valueLabel),
@@ -1606,11 +1684,11 @@ function invariant_omnichainStatusSnapshotFollowingHasValidChains(ctx) {
1606
1684
  });
1607
1685
  }
1608
1686
  }
1609
- var makeOmnichainIndexingStatusSnapshotUnstartedSchema = (valueLabel) => import_v48.z.object({
1610
- omnichainStatus: import_v48.z.literal(OmnichainIndexingStatusIds.Unstarted),
1611
- chains: import_v48.z.map(
1687
+ var makeOmnichainIndexingStatusSnapshotUnstartedSchema = (valueLabel) => import_v49.z.object({
1688
+ omnichainStatus: import_v49.z.literal(OmnichainIndexingStatusIds.Unstarted),
1689
+ chains: import_v49.z.map(
1612
1690
  makeChainIdSchema(),
1613
- import_v48.z.discriminatedUnion("chainStatus", [
1691
+ import_v49.z.discriminatedUnion("chainStatus", [
1614
1692
  makeChainIndexingStatusSnapshotQueuedSchema(valueLabel)
1615
1693
  ]),
1616
1694
  {
@@ -1619,11 +1697,11 @@ var makeOmnichainIndexingStatusSnapshotUnstartedSchema = (valueLabel) => import_
1619
1697
  ),
1620
1698
  omnichainIndexingCursor: makeUnixTimestampSchema(valueLabel)
1621
1699
  }).check(invariant_omnichainSnapshotUnstartedHasValidChains);
1622
- var makeOmnichainIndexingStatusSnapshotBackfillSchema = (valueLabel) => import_v48.z.object({
1623
- omnichainStatus: import_v48.z.literal(OmnichainIndexingStatusIds.Backfill),
1624
- chains: import_v48.z.map(
1700
+ var makeOmnichainIndexingStatusSnapshotBackfillSchema = (valueLabel) => import_v49.z.object({
1701
+ omnichainStatus: import_v49.z.literal(OmnichainIndexingStatusIds.Backfill),
1702
+ chains: import_v49.z.map(
1625
1703
  makeChainIdSchema(),
1626
- import_v48.z.discriminatedUnion("chainStatus", [
1704
+ import_v49.z.discriminatedUnion("chainStatus", [
1627
1705
  makeChainIndexingStatusSnapshotQueuedSchema(valueLabel),
1628
1706
  makeChainIndexingStatusSnapshotBackfillSchema(valueLabel),
1629
1707
  makeChainIndexingStatusSnapshotCompletedSchema(valueLabel)
@@ -1634,11 +1712,11 @@ var makeOmnichainIndexingStatusSnapshotBackfillSchema = (valueLabel) => import_v
1634
1712
  ),
1635
1713
  omnichainIndexingCursor: makeUnixTimestampSchema(valueLabel)
1636
1714
  }).check(invariant_omnichainStatusSnapshotBackfillHasValidChains);
1637
- var makeOmnichainIndexingStatusSnapshotCompletedSchema = (valueLabel) => import_v48.z.object({
1638
- omnichainStatus: import_v48.z.literal(OmnichainIndexingStatusIds.Completed),
1639
- chains: import_v48.z.map(
1715
+ var makeOmnichainIndexingStatusSnapshotCompletedSchema = (valueLabel) => import_v49.z.object({
1716
+ omnichainStatus: import_v49.z.literal(OmnichainIndexingStatusIds.Completed),
1717
+ chains: import_v49.z.map(
1640
1718
  makeChainIdSchema(),
1641
- import_v48.z.discriminatedUnion("chainStatus", [
1719
+ import_v49.z.discriminatedUnion("chainStatus", [
1642
1720
  makeChainIndexingStatusSnapshotCompletedSchema(valueLabel)
1643
1721
  ]),
1644
1722
  {
@@ -1647,11 +1725,11 @@ var makeOmnichainIndexingStatusSnapshotCompletedSchema = (valueLabel) => import_
1647
1725
  ),
1648
1726
  omnichainIndexingCursor: makeUnixTimestampSchema(valueLabel)
1649
1727
  }).check(invariant_omnichainStatusSnapshotCompletedHasValidChains);
1650
- var makeOmnichainIndexingStatusSnapshotFollowingSchema = (valueLabel) => import_v48.z.object({
1651
- omnichainStatus: import_v48.z.literal(OmnichainIndexingStatusIds.Following),
1652
- chains: import_v48.z.map(
1728
+ var makeOmnichainIndexingStatusSnapshotFollowingSchema = (valueLabel) => import_v49.z.object({
1729
+ omnichainStatus: import_v49.z.literal(OmnichainIndexingStatusIds.Following),
1730
+ chains: import_v49.z.map(
1653
1731
  makeChainIdSchema(),
1654
- import_v48.z.discriminatedUnion("chainStatus", [
1732
+ import_v49.z.discriminatedUnion("chainStatus", [
1655
1733
  makeChainIndexingStatusSnapshotQueuedSchema(valueLabel),
1656
1734
  makeChainIndexingStatusSnapshotBackfillSchema(valueLabel),
1657
1735
  makeChainIndexingStatusSnapshotFollowingSchema(valueLabel),
@@ -1663,7 +1741,7 @@ var makeOmnichainIndexingStatusSnapshotFollowingSchema = (valueLabel) => import_
1663
1741
  ),
1664
1742
  omnichainIndexingCursor: makeUnixTimestampSchema(valueLabel)
1665
1743
  }).check(invariant_omnichainStatusSnapshotFollowingHasValidChains);
1666
- var makeOmnichainIndexingStatusSnapshotSchema = (valueLabel = "Omnichain Indexing Snapshot") => import_v48.z.discriminatedUnion("omnichainStatus", [
1744
+ var makeOmnichainIndexingStatusSnapshotSchema = (valueLabel = "Omnichain Indexing Snapshot") => import_v49.z.discriminatedUnion("omnichainStatus", [
1667
1745
  makeOmnichainIndexingStatusSnapshotUnstartedSchema(valueLabel),
1668
1746
  makeOmnichainIndexingStatusSnapshotBackfillSchema(valueLabel),
1669
1747
  makeOmnichainIndexingStatusSnapshotCompletedSchema(valueLabel),
@@ -1671,21 +1749,21 @@ var makeOmnichainIndexingStatusSnapshotSchema = (valueLabel = "Omnichain Indexin
1671
1749
  ]).check(invariant_omnichainSnapshotStatusIsConsistentWithChainSnapshot).check(invariant_omnichainIndexingCursorLowerThanEarliestStartBlockAcrossQueuedChains).check(
1672
1750
  invariant_omnichainIndexingCursorLowerThanOrEqualToLatestBackfillEndBlockAcrossBackfillChains
1673
1751
  ).check(invariant_omnichainIndexingCursorIsEqualToHighestLatestIndexedBlockAcrossIndexedChain);
1674
- var makeSerializedOmnichainIndexingStatusSnapshotUnstartedSchema = (valueLabel) => import_v48.z.object({
1675
- omnichainStatus: import_v48.z.literal(OmnichainIndexingStatusIds.Unstarted),
1676
- chains: import_v48.z.record(
1752
+ var makeSerializedOmnichainIndexingStatusSnapshotUnstartedSchema = (valueLabel) => import_v49.z.object({
1753
+ omnichainStatus: import_v49.z.literal(OmnichainIndexingStatusIds.Unstarted),
1754
+ chains: import_v49.z.record(
1677
1755
  makeChainIdStringSchema(),
1678
- import_v48.z.discriminatedUnion("chainStatus", [
1756
+ import_v49.z.discriminatedUnion("chainStatus", [
1679
1757
  makeChainIndexingStatusSnapshotQueuedSchema(valueLabel)
1680
1758
  ])
1681
1759
  ),
1682
1760
  omnichainIndexingCursor: makeUnixTimestampSchema(valueLabel)
1683
1761
  });
1684
- var makeSerializedOmnichainIndexingStatusSnapshotBackfillSchema = (valueLabel) => import_v48.z.object({
1685
- omnichainStatus: import_v48.z.literal(OmnichainIndexingStatusIds.Backfill),
1686
- chains: import_v48.z.record(
1762
+ var makeSerializedOmnichainIndexingStatusSnapshotBackfillSchema = (valueLabel) => import_v49.z.object({
1763
+ omnichainStatus: import_v49.z.literal(OmnichainIndexingStatusIds.Backfill),
1764
+ chains: import_v49.z.record(
1687
1765
  makeChainIdStringSchema(),
1688
- import_v48.z.discriminatedUnion("chainStatus", [
1766
+ import_v49.z.discriminatedUnion("chainStatus", [
1689
1767
  makeChainIndexingStatusSnapshotQueuedSchema(valueLabel),
1690
1768
  makeChainIndexingStatusSnapshotBackfillSchema(valueLabel),
1691
1769
  makeChainIndexingStatusSnapshotCompletedSchema(valueLabel)
@@ -1693,21 +1771,21 @@ var makeSerializedOmnichainIndexingStatusSnapshotBackfillSchema = (valueLabel) =
1693
1771
  ),
1694
1772
  omnichainIndexingCursor: makeUnixTimestampSchema(valueLabel)
1695
1773
  });
1696
- var makeSerializedOmnichainIndexingStatusSnapshotCompletedSchema = (valueLabel) => import_v48.z.object({
1697
- omnichainStatus: import_v48.z.literal(OmnichainIndexingStatusIds.Completed),
1698
- chains: import_v48.z.record(
1774
+ var makeSerializedOmnichainIndexingStatusSnapshotCompletedSchema = (valueLabel) => import_v49.z.object({
1775
+ omnichainStatus: import_v49.z.literal(OmnichainIndexingStatusIds.Completed),
1776
+ chains: import_v49.z.record(
1699
1777
  makeChainIdStringSchema(),
1700
- import_v48.z.discriminatedUnion("chainStatus", [
1778
+ import_v49.z.discriminatedUnion("chainStatus", [
1701
1779
  makeChainIndexingStatusSnapshotCompletedSchema(valueLabel)
1702
1780
  ])
1703
1781
  ),
1704
1782
  omnichainIndexingCursor: makeUnixTimestampSchema(valueLabel)
1705
1783
  });
1706
- var makeSerializedOmnichainIndexingStatusSnapshotFollowingSchema = (valueLabel) => import_v48.z.object({
1707
- omnichainStatus: import_v48.z.literal(OmnichainIndexingStatusIds.Following),
1708
- chains: import_v48.z.record(
1784
+ var makeSerializedOmnichainIndexingStatusSnapshotFollowingSchema = (valueLabel) => import_v49.z.object({
1785
+ omnichainStatus: import_v49.z.literal(OmnichainIndexingStatusIds.Following),
1786
+ chains: import_v49.z.record(
1709
1787
  makeChainIdStringSchema(),
1710
- import_v48.z.discriminatedUnion("chainStatus", [
1788
+ import_v49.z.discriminatedUnion("chainStatus", [
1711
1789
  makeChainIndexingStatusSnapshotQueuedSchema(valueLabel),
1712
1790
  makeChainIndexingStatusSnapshotBackfillSchema(valueLabel),
1713
1791
  makeChainIndexingStatusSnapshotFollowingSchema(valueLabel),
@@ -1716,7 +1794,7 @@ var makeSerializedOmnichainIndexingStatusSnapshotFollowingSchema = (valueLabel)
1716
1794
  ),
1717
1795
  omnichainIndexingCursor: makeUnixTimestampSchema(valueLabel)
1718
1796
  });
1719
- var makeSerializedOmnichainIndexingStatusSnapshotSchema = (valueLabel = "Value") => import_v48.z.discriminatedUnion("omnichainStatus", [
1797
+ var makeSerializedOmnichainIndexingStatusSnapshotSchema = (valueLabel = "Value") => import_v49.z.discriminatedUnion("omnichainStatus", [
1720
1798
  makeSerializedOmnichainIndexingStatusSnapshotUnstartedSchema(valueLabel),
1721
1799
  makeSerializedOmnichainIndexingStatusSnapshotBackfillSchema(valueLabel),
1722
1800
  makeSerializedOmnichainIndexingStatusSnapshotCompletedSchema(valueLabel),
@@ -1756,17 +1834,17 @@ function invariant_snapshotTimeIsTheHighestKnownBlockTimestamp(ctx) {
1756
1834
  });
1757
1835
  }
1758
1836
  }
1759
- var makeCrossChainIndexingStatusSnapshotOmnichainSchema = (valueLabel = "Cross-chain Indexing Status Snapshot Omnichain") => import_v49.z.object({
1760
- strategy: import_v49.z.literal(CrossChainIndexingStrategyIds.Omnichain),
1837
+ var makeCrossChainIndexingStatusSnapshotOmnichainSchema = (valueLabel = "Cross-chain Indexing Status Snapshot Omnichain") => import_v410.z.object({
1838
+ strategy: import_v410.z.literal(CrossChainIndexingStrategyIds.Omnichain),
1761
1839
  slowestChainIndexingCursor: makeUnixTimestampSchema(valueLabel),
1762
1840
  snapshotTime: makeUnixTimestampSchema(valueLabel),
1763
1841
  omnichainSnapshot: makeOmnichainIndexingStatusSnapshotSchema(valueLabel)
1764
1842
  }).check(invariant_slowestChainEqualsToOmnichainSnapshotTime).check(invariant_snapshotTimeIsTheHighestKnownBlockTimestamp);
1765
- var makeCrossChainIndexingStatusSnapshotSchema = (valueLabel = "Cross-chain Indexing Status Snapshot") => import_v49.z.discriminatedUnion("strategy", [
1843
+ var makeCrossChainIndexingStatusSnapshotSchema = (valueLabel = "Cross-chain Indexing Status Snapshot") => import_v410.z.discriminatedUnion("strategy", [
1766
1844
  makeCrossChainIndexingStatusSnapshotOmnichainSchema(valueLabel)
1767
1845
  ]);
1768
- var makeSerializedCrossChainIndexingStatusSnapshotSchema = (valueLabel = "Serialized Cross-chain Indexing Status Snapshot") => import_v49.z.object({
1769
- strategy: import_v49.z.enum(CrossChainIndexingStrategyIds),
1846
+ var makeSerializedCrossChainIndexingStatusSnapshotSchema = (valueLabel = "Serialized Cross-chain Indexing Status Snapshot") => import_v410.z.object({
1847
+ strategy: import_v410.z.enum(CrossChainIndexingStrategyIds),
1770
1848
  slowestChainIndexingCursor: makeUnixTimestampSchema(valueLabel),
1771
1849
  snapshotTime: makeUnixTimestampSchema(valueLabel),
1772
1850
  omnichainSnapshot: makeSerializedOmnichainIndexingStatusSnapshotSchema(valueLabel)
@@ -1796,22 +1874,22 @@ function invariant_realtimeIndexingStatusProjectionWorstCaseDistanceIsCorrect(ct
1796
1874
  });
1797
1875
  }
1798
1876
  }
1799
- var makeRealtimeIndexingStatusProjectionSchema = (valueLabel = "Realtime Indexing Status Projection") => import_v410.z.object({
1877
+ var makeRealtimeIndexingStatusProjectionSchema = (valueLabel = "Realtime Indexing Status Projection") => import_v411.z.object({
1800
1878
  projectedAt: makeUnixTimestampSchema(valueLabel),
1801
1879
  worstCaseDistance: makeDurationSchema(valueLabel),
1802
1880
  snapshot: makeCrossChainIndexingStatusSnapshotSchema(valueLabel)
1803
1881
  }).check(invariant_realtimeIndexingStatusProjectionProjectedAtIsAfterOrEqualToSnapshotTime).check(invariant_realtimeIndexingStatusProjectionWorstCaseDistanceIsCorrect);
1804
- var makeSerializedRealtimeIndexingStatusProjectionSchema = (valueLabel = "Value") => import_v410.z.object({
1882
+ var makeSerializedRealtimeIndexingStatusProjectionSchema = (valueLabel = "Value") => import_v411.z.object({
1805
1883
  snapshot: makeSerializedCrossChainIndexingStatusSnapshotSchema(valueLabel),
1806
1884
  projectedAt: makeUnixTimestampSchema(valueLabel),
1807
1885
  worstCaseDistance: makeDurationSchema(valueLabel)
1808
1886
  });
1809
1887
 
1810
1888
  // src/indexing-status/deserialize/cross-chain-indexing-status-snapshot.ts
1811
- var import_v412 = require("zod/v4");
1889
+ var import_v413 = require("zod/v4");
1812
1890
 
1813
1891
  // src/indexing-status/deserialize/omnichain-indexing-status-snapshot.ts
1814
- var import_v411 = require("zod/v4");
1892
+ var import_v412 = require("zod/v4");
1815
1893
  function buildUnvalidatedOmnichainIndexingStatusSnapshot(serializedSnapshot) {
1816
1894
  const chains = /* @__PURE__ */ new Map();
1817
1895
  for (const [chainIdString, chainIndexingStatusSnapshot] of Object.entries(
@@ -1832,7 +1910,7 @@ function deserializeOmnichainIndexingStatusSnapshot(data, valueLabel) {
1832
1910
  if (parsed.error) {
1833
1911
  throw new Error(
1834
1912
  `Cannot deserialize into OmnichainIndexingStatusSnapshot:
1835
- ${(0, import_v411.prettifyError)(parsed.error)}
1913
+ ${(0, import_v412.prettifyError)(parsed.error)}
1836
1914
  `
1837
1915
  );
1838
1916
  }
@@ -1854,7 +1932,7 @@ function deserializeCrossChainIndexingStatusSnapshot(maybeSnapshot, valueLabel)
1854
1932
  if (parsed.error) {
1855
1933
  throw new Error(
1856
1934
  `Cannot deserialize into CrossChainIndexingStatusSnapshot:
1857
- ${(0, import_v412.prettifyError)(parsed.error)}
1935
+ ${(0, import_v413.prettifyError)(parsed.error)}
1858
1936
  `
1859
1937
  );
1860
1938
  }
@@ -1874,7 +1952,7 @@ function deserializeRealtimeIndexingStatusProjection(maybeProjection, valueLabel
1874
1952
  if (parsed.error) {
1875
1953
  throw new Error(
1876
1954
  `Cannot deserialize into RealtimeIndexingStatusProjection:
1877
- ${(0, import_v413.prettifyError)(parsed.error)}
1955
+ ${(0, import_v414.prettifyError)(parsed.error)}
1878
1956
  `
1879
1957
  );
1880
1958
  }
@@ -1895,23 +1973,23 @@ var EnsApiIndexingStatusResponseCodes = {
1895
1973
  var IndexingStatusResponseCodes = EnsApiIndexingStatusResponseCodes;
1896
1974
 
1897
1975
  // src/ensapi/api/indexing-status/zod-schemas.ts
1898
- var import_v414 = require("zod/v4");
1899
- var makeEnsApiIndexingStatusResponseOkSchema = (valueLabel = "Indexing Status Response OK") => import_v414.z.strictObject({
1900
- responseCode: import_v414.z.literal(EnsApiIndexingStatusResponseCodes.Ok),
1976
+ var import_v415 = require("zod/v4");
1977
+ var makeEnsApiIndexingStatusResponseOkSchema = (valueLabel = "Indexing Status Response OK") => import_v415.z.strictObject({
1978
+ responseCode: import_v415.z.literal(EnsApiIndexingStatusResponseCodes.Ok),
1901
1979
  realtimeProjection: makeRealtimeIndexingStatusProjectionSchema(valueLabel)
1902
1980
  });
1903
- var makeEnsApiIndexingStatusResponseErrorSchema = (_valueLabel = "Indexing Status Response Error") => import_v414.z.strictObject({
1904
- responseCode: import_v414.z.literal(EnsApiIndexingStatusResponseCodes.Error)
1981
+ var makeEnsApiIndexingStatusResponseErrorSchema = (_valueLabel = "Indexing Status Response Error") => import_v415.z.strictObject({
1982
+ responseCode: import_v415.z.literal(EnsApiIndexingStatusResponseCodes.Error)
1905
1983
  });
1906
- var makeEnsApiIndexingStatusResponseSchema = (valueLabel = "Indexing Status Response") => import_v414.z.discriminatedUnion("responseCode", [
1984
+ var makeEnsApiIndexingStatusResponseSchema = (valueLabel = "Indexing Status Response") => import_v415.z.discriminatedUnion("responseCode", [
1907
1985
  makeEnsApiIndexingStatusResponseOkSchema(valueLabel),
1908
1986
  makeEnsApiIndexingStatusResponseErrorSchema(valueLabel)
1909
1987
  ]);
1910
- var makeSerializedEnsApiIndexingStatusResponseOkSchema = (valueLabel = "Serialized Indexing Status Response OK") => import_v414.z.strictObject({
1911
- responseCode: import_v414.z.literal(EnsApiIndexingStatusResponseCodes.Ok),
1988
+ var makeSerializedEnsApiIndexingStatusResponseOkSchema = (valueLabel = "Serialized Indexing Status Response OK") => import_v415.z.strictObject({
1989
+ responseCode: import_v415.z.literal(EnsApiIndexingStatusResponseCodes.Ok),
1912
1990
  realtimeProjection: makeSerializedRealtimeIndexingStatusProjectionSchema(valueLabel)
1913
1991
  });
1914
- var makeSerializedEnsApiIndexingStatusResponseSchema = (valueLabel = "Serialized Indexing Status Response") => import_v414.z.discriminatedUnion("responseCode", [
1992
+ var makeSerializedEnsApiIndexingStatusResponseSchema = (valueLabel = "Serialized Indexing Status Response") => import_v415.z.discriminatedUnion("responseCode", [
1915
1993
  makeSerializedEnsApiIndexingStatusResponseOkSchema(valueLabel),
1916
1994
  makeEnsApiIndexingStatusResponseErrorSchema(valueLabel)
1917
1995
  ]);
@@ -1933,7 +2011,7 @@ function deserializeEnsApiIndexingStatusResponse(maybeResponse) {
1933
2011
  if (parsed.error) {
1934
2012
  throw new Error(
1935
2013
  `Cannot deserialize EnsApiIndexingStatusResponse:
1936
- ${(0, import_v415.prettifyError)(parsed.error)}
2014
+ ${(0, import_v416.prettifyError)(parsed.error)}
1937
2015
  `
1938
2016
  );
1939
2017
  }
@@ -2070,11 +2148,11 @@ function serializeEnsApiIndexingStatusResponse(response) {
2070
2148
  var serializeIndexingStatusResponse = serializeEnsApiIndexingStatusResponse;
2071
2149
 
2072
2150
  // src/ensapi/api/name-tokens/deserialize.ts
2073
- var import_v420 = require("zod/v4");
2151
+ var import_v421 = require("zod/v4");
2074
2152
 
2075
2153
  // src/ensapi/api/name-tokens/zod-schemas.ts
2076
2154
  var import_viem14 = require("viem");
2077
- var import_v419 = require("zod/v4");
2155
+ var import_v420 = require("zod/v4");
2078
2156
 
2079
2157
  // src/tokenscope/name-token.ts
2080
2158
  var import_viem13 = require("viem");
@@ -2114,12 +2192,12 @@ var makeContractMatcher = (namespace, b) => (datasourceName, contractName) => {
2114
2192
 
2115
2193
  // src/tokenscope/assets.ts
2116
2194
  var import_viem12 = require("viem");
2117
- var import_v417 = require("zod/v4");
2195
+ var import_v418 = require("zod/v4");
2118
2196
 
2119
2197
  // src/tokenscope/zod-schemas.ts
2120
2198
  var import_caip3 = require("caip");
2121
2199
  var import_viem11 = require("viem");
2122
- var import_v416 = require("zod/v4");
2200
+ var import_v417 = require("zod/v4");
2123
2201
 
2124
2202
  // src/shared/types.ts
2125
2203
  var AssetNamespaces = {
@@ -2128,10 +2206,10 @@ var AssetNamespaces = {
2128
2206
  };
2129
2207
 
2130
2208
  // src/tokenscope/zod-schemas.ts
2131
- var tokenIdSchemaSerializable = import_v416.z.string();
2132
- var tokenIdSchemaNative = import_v416.z.preprocess(
2209
+ var tokenIdSchemaSerializable = import_v417.z.string();
2210
+ var tokenIdSchemaNative = import_v417.z.preprocess(
2133
2211
  (v) => typeof v === "string" ? BigInt(v) : v,
2134
- import_v416.z.bigint().positive()
2212
+ import_v417.z.bigint().positive()
2135
2213
  );
2136
2214
  function makeTokenIdSchema(_valueLabel = "Token ID Schema", serializable = false) {
2137
2215
  if (serializable) {
@@ -2141,13 +2219,13 @@ function makeTokenIdSchema(_valueLabel = "Token ID Schema", serializable = false
2141
2219
  }
2142
2220
  }
2143
2221
  var makeAssetIdSchema = (valueLabel = "Asset ID Schema", serializable) => {
2144
- return import_v416.z.object({
2145
- assetNamespace: import_v416.z.enum(AssetNamespaces),
2222
+ return import_v417.z.object({
2223
+ assetNamespace: import_v417.z.enum(AssetNamespaces),
2146
2224
  contract: makeAccountIdSchema(valueLabel),
2147
2225
  tokenId: makeTokenIdSchema(valueLabel, serializable ?? false)
2148
2226
  });
2149
2227
  };
2150
- var makeAssetIdStringSchema = (valueLabel = "Asset ID String Schema") => import_v416.z.preprocess((v) => {
2228
+ var makeAssetIdStringSchema = (valueLabel = "Asset ID String Schema") => import_v417.z.preprocess((v) => {
2151
2229
  if (typeof v === "string") {
2152
2230
  const result = new import_caip3.AssetId(v);
2153
2231
  return {
@@ -2171,20 +2249,20 @@ function invariant_nameTokenOwnershipHasNonZeroAddressOwner(ctx) {
2171
2249
  });
2172
2250
  }
2173
2251
  }
2174
- var makeNameTokenOwnershipNameWrapperSchema = (valueLabel = "Name Token Ownership NameWrapper") => import_v416.z.object({
2175
- ownershipType: import_v416.z.literal(NameTokenOwnershipTypes.NameWrapper),
2252
+ var makeNameTokenOwnershipNameWrapperSchema = (valueLabel = "Name Token Ownership NameWrapper") => import_v417.z.object({
2253
+ ownershipType: import_v417.z.literal(NameTokenOwnershipTypes.NameWrapper),
2176
2254
  owner: makeAccountIdSchema(`${valueLabel}.owner`)
2177
2255
  }).check(invariant_nameTokenOwnershipHasNonZeroAddressOwner);
2178
- var makeNameTokenOwnershipFullyOnchainSchema = (valueLabel = "Name Token Ownership Fully Onchain") => import_v416.z.object({
2179
- ownershipType: import_v416.z.literal(NameTokenOwnershipTypes.FullyOnchain),
2256
+ var makeNameTokenOwnershipFullyOnchainSchema = (valueLabel = "Name Token Ownership Fully Onchain") => import_v417.z.object({
2257
+ ownershipType: import_v417.z.literal(NameTokenOwnershipTypes.FullyOnchain),
2180
2258
  owner: makeAccountIdSchema(`${valueLabel}.owner`)
2181
2259
  }).check(invariant_nameTokenOwnershipHasNonZeroAddressOwner);
2182
- var makeNameTokenOwnershipBurnedSchema = (valueLabel = "Name Token Ownership Burned") => import_v416.z.object({
2183
- ownershipType: import_v416.z.literal(NameTokenOwnershipTypes.Burned),
2260
+ var makeNameTokenOwnershipBurnedSchema = (valueLabel = "Name Token Ownership Burned") => import_v417.z.object({
2261
+ ownershipType: import_v417.z.literal(NameTokenOwnershipTypes.Burned),
2184
2262
  owner: makeAccountIdSchema(`${valueLabel}.owner`)
2185
2263
  }).check(invariant_nameTokenOwnershipHasZeroAddressOwner);
2186
- var makeNameTokenOwnershipUnknownSchema = (valueLabel = "Name Token Ownership Unknown") => import_v416.z.object({
2187
- ownershipType: import_v416.z.literal(NameTokenOwnershipTypes.Unknown),
2264
+ var makeNameTokenOwnershipUnknownSchema = (valueLabel = "Name Token Ownership Unknown") => import_v417.z.object({
2265
+ ownershipType: import_v417.z.literal(NameTokenOwnershipTypes.Unknown),
2188
2266
  owner: makeAccountIdSchema(`${valueLabel}.owner`)
2189
2267
  }).check(invariant_nameTokenOwnershipHasNonZeroAddressOwner);
2190
2268
  function invariant_nameTokenOwnershipHasZeroAddressOwner(ctx) {
@@ -2197,16 +2275,16 @@ function invariant_nameTokenOwnershipHasZeroAddressOwner(ctx) {
2197
2275
  });
2198
2276
  }
2199
2277
  }
2200
- var makeNameTokenOwnershipSchema = (valueLabel = "Name Token Ownership") => import_v416.z.discriminatedUnion("ownershipType", [
2278
+ var makeNameTokenOwnershipSchema = (valueLabel = "Name Token Ownership") => import_v417.z.discriminatedUnion("ownershipType", [
2201
2279
  makeNameTokenOwnershipNameWrapperSchema(valueLabel),
2202
2280
  makeNameTokenOwnershipFullyOnchainSchema(valueLabel),
2203
2281
  makeNameTokenOwnershipBurnedSchema(valueLabel),
2204
2282
  makeNameTokenOwnershipUnknownSchema(valueLabel)
2205
2283
  ]);
2206
- var makeNameTokenSchema = (valueLabel = "Name Token Schema", serializable) => import_v416.z.object({
2284
+ var makeNameTokenSchema = (valueLabel = "Name Token Schema", serializable) => import_v417.z.object({
2207
2285
  token: makeAssetIdSchema(`${valueLabel}.token`, serializable),
2208
2286
  ownership: makeNameTokenOwnershipSchema(`${valueLabel}.ownership`),
2209
- mintStatus: import_v416.z.enum(NFTMintStatuses)
2287
+ mintStatus: import_v417.z.enum(NFTMintStatuses)
2210
2288
  });
2211
2289
 
2212
2290
  // src/tokenscope/assets.ts
@@ -2222,7 +2300,7 @@ function deserializeAssetId(maybeAssetId, valueLabel) {
2222
2300
  const parsed = schema.safeParse(maybeAssetId);
2223
2301
  if (parsed.error) {
2224
2302
  throw new RangeError(`Cannot deserialize AssetId:
2225
- ${(0, import_v417.prettifyError)(parsed.error)}
2303
+ ${(0, import_v418.prettifyError)(parsed.error)}
2226
2304
  `);
2227
2305
  }
2228
2306
  return parsed.data;
@@ -2232,7 +2310,7 @@ function parseAssetId(maybeAssetId, valueLabel) {
2232
2310
  const parsed = schema.safeParse(maybeAssetId);
2233
2311
  if (parsed.error) {
2234
2312
  throw new RangeError(`Cannot parse AssetId:
2235
- ${(0, import_v417.prettifyError)(parsed.error)}
2313
+ ${(0, import_v418.prettifyError)(parsed.error)}
2236
2314
  `);
2237
2315
  }
2238
2316
  return parsed.data;
@@ -2532,10 +2610,10 @@ function getNameTokenOwnership(namespaceId, name, owner) {
2532
2610
  }
2533
2611
 
2534
2612
  // src/ensapi/api/shared/errors/zod-schemas.ts
2535
- var import_v418 = require("zod/v4");
2536
- var ErrorResponseSchema = import_v418.z.object({
2537
- message: import_v418.z.string(),
2538
- details: import_v418.z.optional(import_v418.z.unknown())
2613
+ var import_v419 = require("zod/v4");
2614
+ var ErrorResponseSchema = import_v419.z.object({
2615
+ message: import_v419.z.string(),
2616
+ details: import_v419.z.optional(import_v419.z.unknown())
2539
2617
  });
2540
2618
 
2541
2619
  // src/ensapi/api/name-tokens/response.ts
@@ -2574,10 +2652,10 @@ var NameTokensResponseErrorCodes = {
2574
2652
  };
2575
2653
 
2576
2654
  // src/ensapi/api/name-tokens/zod-schemas.ts
2577
- var makeRegisteredNameTokenSchema = (valueLabel = "Registered Name Token", serializable) => import_v419.z.object({
2655
+ var makeRegisteredNameTokenSchema = (valueLabel = "Registered Name Token", serializable) => import_v420.z.object({
2578
2656
  domainId: makeNodeSchema(`${valueLabel}.domainId`),
2579
2657
  name: makeReinterpretedNameSchema(valueLabel),
2580
- tokens: import_v419.z.array(makeNameTokenSchema(`${valueLabel}.tokens`, serializable)).nonempty(),
2658
+ tokens: import_v420.z.array(makeNameTokenSchema(`${valueLabel}.tokens`, serializable)).nonempty(),
2581
2659
  expiresAt: makeUnixTimestampSchema(`${valueLabel}.expiresAt`),
2582
2660
  accurateAsOf: makeUnixTimestampSchema(`${valueLabel}.accurateAsOf`)
2583
2661
  }).check(function invariant_nameIsAssociatedWithDomainId(ctx) {
@@ -2619,32 +2697,32 @@ var makeRegisteredNameTokenSchema = (valueLabel = "Registered Name Token", seria
2619
2697
  });
2620
2698
  }
2621
2699
  });
2622
- var makeNameTokensResponseOkSchema = (valueLabel = "Name Tokens Response OK", serializable) => import_v419.z.strictObject({
2623
- responseCode: import_v419.z.literal(NameTokensResponseCodes.Ok),
2700
+ var makeNameTokensResponseOkSchema = (valueLabel = "Name Tokens Response OK", serializable) => import_v420.z.strictObject({
2701
+ responseCode: import_v420.z.literal(NameTokensResponseCodes.Ok),
2624
2702
  registeredNameTokens: makeRegisteredNameTokenSchema(`${valueLabel}.nameTokens`, serializable)
2625
2703
  });
2626
- var makeNameTokensResponseErrorNameTokensNotIndexedSchema = (_valueLabel = "Name Tokens Response Error Name Not Indexed") => import_v419.z.strictObject({
2627
- responseCode: import_v419.z.literal(NameTokensResponseCodes.Error),
2628
- errorCode: import_v419.z.literal(NameTokensResponseErrorCodes.NameTokensNotIndexed),
2704
+ var makeNameTokensResponseErrorNameTokensNotIndexedSchema = (_valueLabel = "Name Tokens Response Error Name Not Indexed") => import_v420.z.strictObject({
2705
+ responseCode: import_v420.z.literal(NameTokensResponseCodes.Error),
2706
+ errorCode: import_v420.z.literal(NameTokensResponseErrorCodes.NameTokensNotIndexed),
2629
2707
  error: ErrorResponseSchema
2630
2708
  });
2631
- var makeNameTokensResponseErrorEnsIndexerConfigUnsupported = (_valueLabel = "Name Tokens Response Error ENSIndexer Config Unsupported") => import_v419.z.strictObject({
2632
- responseCode: import_v419.z.literal(NameTokensResponseCodes.Error),
2633
- errorCode: import_v419.z.literal(NameTokensResponseErrorCodes.EnsIndexerConfigUnsupported),
2709
+ var makeNameTokensResponseErrorEnsIndexerConfigUnsupported = (_valueLabel = "Name Tokens Response Error ENSIndexer Config Unsupported") => import_v420.z.strictObject({
2710
+ responseCode: import_v420.z.literal(NameTokensResponseCodes.Error),
2711
+ errorCode: import_v420.z.literal(NameTokensResponseErrorCodes.EnsIndexerConfigUnsupported),
2634
2712
  error: ErrorResponseSchema
2635
2713
  });
2636
- var makeNameTokensResponseErrorNameIndexingStatusUnsupported = (_valueLabel = "Name Tokens Response Error Indexing Status Unsupported") => import_v419.z.strictObject({
2637
- responseCode: import_v419.z.literal(NameTokensResponseCodes.Error),
2638
- errorCode: import_v419.z.literal(NameTokensResponseErrorCodes.IndexingStatusUnsupported),
2714
+ var makeNameTokensResponseErrorNameIndexingStatusUnsupported = (_valueLabel = "Name Tokens Response Error Indexing Status Unsupported") => import_v420.z.strictObject({
2715
+ responseCode: import_v420.z.literal(NameTokensResponseCodes.Error),
2716
+ errorCode: import_v420.z.literal(NameTokensResponseErrorCodes.IndexingStatusUnsupported),
2639
2717
  error: ErrorResponseSchema
2640
2718
  });
2641
- var makeNameTokensResponseErrorSchema = (valueLabel = "Name Tokens Response Error") => import_v419.z.discriminatedUnion("errorCode", [
2719
+ var makeNameTokensResponseErrorSchema = (valueLabel = "Name Tokens Response Error") => import_v420.z.discriminatedUnion("errorCode", [
2642
2720
  makeNameTokensResponseErrorNameTokensNotIndexedSchema(valueLabel),
2643
2721
  makeNameTokensResponseErrorEnsIndexerConfigUnsupported(valueLabel),
2644
2722
  makeNameTokensResponseErrorNameIndexingStatusUnsupported(valueLabel)
2645
2723
  ]);
2646
2724
  var makeNameTokensResponseSchema = (valueLabel = "Name Tokens Response", serializable) => {
2647
- return import_v419.z.discriminatedUnion("responseCode", [
2725
+ return import_v420.z.discriminatedUnion("responseCode", [
2648
2726
  makeNameTokensResponseOkSchema(valueLabel, serializable ?? false),
2649
2727
  makeNameTokensResponseErrorSchema(valueLabel)
2650
2728
  ]);
@@ -2657,7 +2735,7 @@ function deserializedNameTokensResponse(maybeResponse) {
2657
2735
  );
2658
2736
  if (parsed.error) {
2659
2737
  throw new Error(`Cannot deserialize NameTokensResponse:
2660
- ${(0, import_v420.prettifyError)(parsed.error)}
2738
+ ${(0, import_v421.prettifyError)(parsed.error)}
2661
2739
  `);
2662
2740
  }
2663
2741
  return parsed.data;
@@ -2731,14 +2809,14 @@ function serializeNameTokensResponse(response) {
2731
2809
  }
2732
2810
 
2733
2811
  // src/ensapi/api/registrar-actions/deserialize.ts
2734
- var import_v424 = require("zod/v4");
2812
+ var import_v425 = require("zod/v4");
2735
2813
 
2736
2814
  // src/ensapi/api/registrar-actions/zod-schemas.ts
2737
2815
  var import_ens7 = require("viem/ens");
2738
- var import_v423 = require("zod/v4");
2816
+ var import_v424 = require("zod/v4");
2739
2817
 
2740
2818
  // src/registrars/zod-schemas.ts
2741
- var import_v421 = require("zod/v4");
2819
+ var import_v422 = require("zod/v4");
2742
2820
 
2743
2821
  // src/registrars/encoded-referrer.ts
2744
2822
  var import_viem15 = require("viem");
@@ -2813,11 +2891,11 @@ function serializeRegistrarAction(registrarAction) {
2813
2891
  }
2814
2892
 
2815
2893
  // src/registrars/zod-schemas.ts
2816
- var makeSubregistrySchema = (valueLabel = "Subregistry") => import_v421.z.object({
2894
+ var makeSubregistrySchema = (valueLabel = "Subregistry") => import_v422.z.object({
2817
2895
  subregistryId: makeAccountIdSchema(`${valueLabel} Subregistry ID`),
2818
2896
  node: makeNodeSchema(`${valueLabel} Node`)
2819
2897
  });
2820
- var makeRegistrationLifecycleSchema = (valueLabel = "Registration Lifecycle") => import_v421.z.object({
2898
+ var makeRegistrationLifecycleSchema = (valueLabel = "Registration Lifecycle") => import_v422.z.object({
2821
2899
  subregistry: makeSubregistrySchema(`${valueLabel} Subregistry`),
2822
2900
  node: makeNodeSchema(`${valueLabel} Node`),
2823
2901
  expiresAt: makeUnixTimestampSchema(`${valueLabel} Expires at`)
@@ -2833,18 +2911,18 @@ function invariant_registrarActionPricingTotalIsSumOfBaseCostAndPremium(ctx) {
2833
2911
  });
2834
2912
  }
2835
2913
  }
2836
- var makeRegistrarActionPricingSchema = (valueLabel = "Registrar Action Pricing") => import_v421.z.union([
2914
+ var makeRegistrarActionPricingSchema = (valueLabel = "Registrar Action Pricing") => import_v422.z.union([
2837
2915
  // pricing available
2838
- import_v421.z.object({
2916
+ import_v422.z.object({
2839
2917
  baseCost: makePriceEthSchema(`${valueLabel} Base Cost`),
2840
2918
  premium: makePriceEthSchema(`${valueLabel} Premium`),
2841
2919
  total: makePriceEthSchema(`${valueLabel} Total`)
2842
2920
  }).check(invariant_registrarActionPricingTotalIsSumOfBaseCostAndPremium).transform((v) => v),
2843
2921
  // pricing unknown
2844
- import_v421.z.object({
2845
- baseCost: import_v421.z.null(),
2846
- premium: import_v421.z.null(),
2847
- total: import_v421.z.null()
2922
+ import_v422.z.object({
2923
+ baseCost: import_v422.z.null(),
2924
+ premium: import_v422.z.null(),
2925
+ total: import_v422.z.null()
2848
2926
  }).transform((v) => v)
2849
2927
  ]);
2850
2928
  function invariant_registrarActionDecodedReferrerBasedOnRawReferrer(ctx) {
@@ -2867,9 +2945,9 @@ function invariant_registrarActionDecodedReferrerBasedOnRawReferrer(ctx) {
2867
2945
  });
2868
2946
  }
2869
2947
  }
2870
- var makeRegistrarActionReferralSchema = (valueLabel = "Registrar Action Referral") => import_v421.z.union([
2948
+ var makeRegistrarActionReferralSchema = (valueLabel = "Registrar Action Referral") => import_v422.z.union([
2871
2949
  // referral available
2872
- import_v421.z.object({
2950
+ import_v422.z.object({
2873
2951
  encodedReferrer: makeHexStringSchema(
2874
2952
  { bytesCount: ENCODED_REFERRER_BYTE_LENGTH },
2875
2953
  `${valueLabel} Encoded Referrer`
@@ -2877,9 +2955,9 @@ var makeRegistrarActionReferralSchema = (valueLabel = "Registrar Action Referral
2877
2955
  decodedReferrer: makeLowercaseAddressSchema(`${valueLabel} Decoded Referrer`)
2878
2956
  }).check(invariant_registrarActionDecodedReferrerBasedOnRawReferrer),
2879
2957
  // referral not applicable
2880
- import_v421.z.object({
2881
- encodedReferrer: import_v421.z.null(),
2882
- decodedReferrer: import_v421.z.null()
2958
+ import_v422.z.object({
2959
+ encodedReferrer: import_v422.z.null(),
2960
+ decodedReferrer: import_v422.z.null()
2883
2961
  })
2884
2962
  ]);
2885
2963
  function invariant_eventIdsInitialElementIsTheActionId(ctx) {
@@ -2892,9 +2970,9 @@ function invariant_eventIdsInitialElementIsTheActionId(ctx) {
2892
2970
  });
2893
2971
  }
2894
2972
  }
2895
- var EventIdSchema = import_v421.z.string().nonempty();
2896
- var EventIdsSchema = import_v421.z.array(EventIdSchema).min(1).transform((v) => v);
2897
- var makeBaseRegistrarActionSchema = (valueLabel = "Base Registrar Action") => import_v421.z.object({
2973
+ var EventIdSchema = import_v422.z.string().nonempty();
2974
+ var EventIdsSchema = import_v422.z.array(EventIdSchema).min(1).transform((v) => v);
2975
+ var makeBaseRegistrarActionSchema = (valueLabel = "Base Registrar Action") => import_v422.z.object({
2898
2976
  id: EventIdSchema,
2899
2977
  incrementalDuration: makeDurationSchema(`${valueLabel} Incremental Duration`),
2900
2978
  registrant: makeLowercaseAddressSchema(`${valueLabel} Registrant`),
@@ -2908,38 +2986,38 @@ var makeBaseRegistrarActionSchema = (valueLabel = "Base Registrar Action") => im
2908
2986
  eventIds: EventIdsSchema
2909
2987
  }).check(invariant_eventIdsInitialElementIsTheActionId);
2910
2988
  var makeRegistrarActionRegistrationSchema = (valueLabel = "Registration ") => makeBaseRegistrarActionSchema(valueLabel).extend({
2911
- type: import_v421.z.literal(RegistrarActionTypes.Registration)
2989
+ type: import_v422.z.literal(RegistrarActionTypes.Registration)
2912
2990
  });
2913
2991
  var makeRegistrarActionRenewalSchema = (valueLabel = "Renewal") => makeBaseRegistrarActionSchema(valueLabel).extend({
2914
- type: import_v421.z.literal(RegistrarActionTypes.Renewal)
2992
+ type: import_v422.z.literal(RegistrarActionTypes.Renewal)
2915
2993
  });
2916
- var makeRegistrarActionSchema = (valueLabel = "Registrar Action") => import_v421.z.discriminatedUnion("type", [
2994
+ var makeRegistrarActionSchema = (valueLabel = "Registrar Action") => import_v422.z.discriminatedUnion("type", [
2917
2995
  makeRegistrarActionRegistrationSchema(`${valueLabel} Registration`),
2918
2996
  makeRegistrarActionRenewalSchema(`${valueLabel} Renewal`)
2919
2997
  ]);
2920
2998
 
2921
2999
  // src/ensapi/api/shared/pagination/zod-schemas.ts
2922
- var import_v422 = require("zod/v4");
3000
+ var import_v423 = require("zod/v4");
2923
3001
 
2924
3002
  // src/ensapi/api/shared/pagination/request.ts
2925
3003
  var RECORDS_PER_PAGE_DEFAULT = 10;
2926
3004
  var RECORDS_PER_PAGE_MAX = 100;
2927
3005
 
2928
3006
  // src/ensapi/api/shared/pagination/zod-schemas.ts
2929
- var makeRequestPageParamsSchema = (valueLabel = "RequestPageParams") => import_v422.z.object({
3007
+ var makeRequestPageParamsSchema = (valueLabel = "RequestPageParams") => import_v423.z.object({
2930
3008
  page: makePositiveIntegerSchema(`${valueLabel}.page`),
2931
3009
  recordsPerPage: makePositiveIntegerSchema(`${valueLabel}.recordsPerPage`).max(
2932
3010
  RECORDS_PER_PAGE_MAX,
2933
3011
  `${valueLabel}.recordsPerPage must not exceed ${RECORDS_PER_PAGE_MAX}`
2934
3012
  )
2935
3013
  });
2936
- var makeResponsePageContextSchemaWithNoRecords = (valueLabel = "ResponsePageContextWithNoRecords") => import_v422.z.object({
2937
- totalRecords: import_v422.z.literal(0),
2938
- totalPages: import_v422.z.literal(1),
2939
- hasNext: import_v422.z.literal(false),
2940
- hasPrev: import_v422.z.literal(false),
2941
- startIndex: import_v422.z.undefined(),
2942
- endIndex: import_v422.z.undefined()
3014
+ var makeResponsePageContextSchemaWithNoRecords = (valueLabel = "ResponsePageContextWithNoRecords") => import_v423.z.object({
3015
+ totalRecords: import_v423.z.literal(0),
3016
+ totalPages: import_v423.z.literal(1),
3017
+ hasNext: import_v423.z.literal(false),
3018
+ hasPrev: import_v423.z.literal(false),
3019
+ startIndex: import_v423.z.undefined(),
3020
+ endIndex: import_v423.z.undefined()
2943
3021
  }).extend(makeRequestPageParamsSchema(valueLabel).shape);
2944
3022
  function invariant_responsePageWithRecordsIsCorrect(ctx) {
2945
3023
  const { hasNext, hasPrev, recordsPerPage, page, totalRecords, startIndex, endIndex } = ctx.value;
@@ -2974,15 +3052,15 @@ function invariant_responsePageWithRecordsIsCorrect(ctx) {
2974
3052
  });
2975
3053
  }
2976
3054
  }
2977
- var makeResponsePageContextSchemaWithRecords = (valueLabel = "ResponsePageContextWithRecords") => import_v422.z.object({
3055
+ var makeResponsePageContextSchemaWithRecords = (valueLabel = "ResponsePageContextWithRecords") => import_v423.z.object({
2978
3056
  totalRecords: makePositiveIntegerSchema(`${valueLabel}.totalRecords`),
2979
3057
  totalPages: makePositiveIntegerSchema(`${valueLabel}.totalPages`),
2980
- hasNext: import_v422.z.boolean(),
2981
- hasPrev: import_v422.z.boolean(),
3058
+ hasNext: import_v423.z.boolean(),
3059
+ hasPrev: import_v423.z.boolean(),
2982
3060
  startIndex: makeNonNegativeIntegerSchema(`${valueLabel}.startIndex`),
2983
3061
  endIndex: makeNonNegativeIntegerSchema(`${valueLabel}.endIndex`)
2984
3062
  }).extend(makeRequestPageParamsSchema(valueLabel).shape).check(invariant_responsePageWithRecordsIsCorrect);
2985
- var makeResponsePageContextSchema = (valueLabel = "ResponsePageContext") => import_v422.z.union([
3063
+ var makeResponsePageContextSchema = (valueLabel = "ResponsePageContext") => import_v423.z.union([
2986
3064
  makeResponsePageContextSchemaWithNoRecords(valueLabel),
2987
3065
  makeResponsePageContextSchemaWithRecords(valueLabel)
2988
3066
  ]);
@@ -3012,21 +3090,21 @@ function invariant_registrationLifecycleNodeMatchesName(ctx) {
3012
3090
  });
3013
3091
  }
3014
3092
  }
3015
- var makeNamedRegistrarActionSchema = (valueLabel = "Named Registrar Action") => import_v423.z.object({
3093
+ var makeNamedRegistrarActionSchema = (valueLabel = "Named Registrar Action") => import_v424.z.object({
3016
3094
  action: makeRegistrarActionSchema(valueLabel),
3017
3095
  name: makeReinterpretedNameSchema(valueLabel)
3018
3096
  }).check(invariant_registrationLifecycleNodeMatchesName);
3019
- var makeRegistrarActionsResponseOkSchema = (valueLabel = "Registrar Actions Response OK") => import_v423.z.object({
3020
- responseCode: import_v423.z.literal(RegistrarActionsResponseCodes.Ok),
3021
- registrarActions: import_v423.z.array(makeNamedRegistrarActionSchema(valueLabel)),
3097
+ var makeRegistrarActionsResponseOkSchema = (valueLabel = "Registrar Actions Response OK") => import_v424.z.object({
3098
+ responseCode: import_v424.z.literal(RegistrarActionsResponseCodes.Ok),
3099
+ registrarActions: import_v424.z.array(makeNamedRegistrarActionSchema(valueLabel)),
3022
3100
  pageContext: makeResponsePageContextSchema(`${valueLabel}.pageContext`),
3023
3101
  accurateAsOf: makeUnixTimestampSchema(`${valueLabel}.accurateAsOf`).optional()
3024
3102
  });
3025
- var makeRegistrarActionsResponseErrorSchema = (_valueLabel = "Registrar Actions Response Error") => import_v423.z.strictObject({
3026
- responseCode: import_v423.z.literal(RegistrarActionsResponseCodes.Error),
3103
+ var makeRegistrarActionsResponseErrorSchema = (_valueLabel = "Registrar Actions Response Error") => import_v424.z.strictObject({
3104
+ responseCode: import_v424.z.literal(RegistrarActionsResponseCodes.Error),
3027
3105
  error: ErrorResponseSchema
3028
3106
  });
3029
- var makeRegistrarActionsResponseSchema = (valueLabel = "Registrar Actions Response") => import_v423.z.discriminatedUnion("responseCode", [
3107
+ var makeRegistrarActionsResponseSchema = (valueLabel = "Registrar Actions Response") => import_v424.z.discriminatedUnion("responseCode", [
3030
3108
  makeRegistrarActionsResponseOkSchema(valueLabel),
3031
3109
  makeRegistrarActionsResponseErrorSchema(valueLabel)
3032
3110
  ]);
@@ -3037,7 +3115,7 @@ function deserializeRegistrarActionsResponse(maybeResponse) {
3037
3115
  if (parsed.error) {
3038
3116
  throw new Error(
3039
3117
  `Cannot deserialize RegistrarActionsResponse:
3040
- ${(0, import_v424.prettifyError)(parsed.error)}
3118
+ ${(0, import_v425.prettifyError)(parsed.error)}
3041
3119
  `
3042
3120
  );
3043
3121
  }
@@ -3184,12 +3262,12 @@ function serializeRegistrarActionsResponse(response) {
3184
3262
  }
3185
3263
 
3186
3264
  // src/ensapi/api/shared/errors/deserialize.ts
3187
- var import_v425 = require("zod/v4");
3265
+ var import_v426 = require("zod/v4");
3188
3266
  function deserializeErrorResponse(maybeErrorResponse) {
3189
3267
  const parsed = ErrorResponseSchema.safeParse(maybeErrorResponse);
3190
3268
  if (parsed.error) {
3191
3269
  throw new Error(`Cannot deserialize ErrorResponse:
3192
- ${(0, import_v425.prettifyError)(parsed.error)}
3270
+ ${(0, import_v426.prettifyError)(parsed.error)}
3193
3271
  `);
3194
3272
  }
3195
3273
  return parsed.data;
@@ -3749,7 +3827,7 @@ function serializeEnsIndexerConfigResponse(response) {
3749
3827
  }
3750
3828
 
3751
3829
  // src/ensindexer/api/indexing-status/deserialize.ts
3752
- var import_v427 = require("zod/v4");
3830
+ var import_v428 = require("zod/v4");
3753
3831
 
3754
3832
  // src/ensindexer/api/indexing-status/response.ts
3755
3833
  var EnsIndexerIndexingStatusResponseCodes = {
@@ -3764,23 +3842,23 @@ var EnsIndexerIndexingStatusResponseCodes = {
3764
3842
  };
3765
3843
 
3766
3844
  // src/ensindexer/api/indexing-status/zod-schemas.ts
3767
- var import_v426 = require("zod/v4");
3768
- var makeEnsIndexerIndexingStatusResponseOkSchema = (valueLabel = "Indexing Status Response OK") => import_v426.z.strictObject({
3769
- responseCode: import_v426.z.literal(EnsIndexerIndexingStatusResponseCodes.Ok),
3845
+ var import_v427 = require("zod/v4");
3846
+ var makeEnsIndexerIndexingStatusResponseOkSchema = (valueLabel = "Indexing Status Response OK") => import_v427.z.strictObject({
3847
+ responseCode: import_v427.z.literal(EnsIndexerIndexingStatusResponseCodes.Ok),
3770
3848
  realtimeProjection: makeRealtimeIndexingStatusProjectionSchema(valueLabel)
3771
3849
  });
3772
- var makeEnsIndexerIndexingStatusResponseErrorSchema = (_valueLabel = "Indexing Status Response Error") => import_v426.z.strictObject({
3773
- responseCode: import_v426.z.literal(EnsIndexerIndexingStatusResponseCodes.Error)
3850
+ var makeEnsIndexerIndexingStatusResponseErrorSchema = (_valueLabel = "Indexing Status Response Error") => import_v427.z.strictObject({
3851
+ responseCode: import_v427.z.literal(EnsIndexerIndexingStatusResponseCodes.Error)
3774
3852
  });
3775
- var makeEnsIndexerIndexingStatusResponseSchema = (valueLabel = "Indexing Status Response") => import_v426.z.discriminatedUnion("responseCode", [
3853
+ var makeEnsIndexerIndexingStatusResponseSchema = (valueLabel = "Indexing Status Response") => import_v427.z.discriminatedUnion("responseCode", [
3776
3854
  makeEnsIndexerIndexingStatusResponseOkSchema(valueLabel),
3777
3855
  makeEnsIndexerIndexingStatusResponseErrorSchema(valueLabel)
3778
3856
  ]);
3779
- var makeSerializedEnsIndexerIndexingStatusResponseOkSchema = (valueLabel = "Serialized Indexing Status Response OK") => import_v426.z.strictObject({
3780
- responseCode: import_v426.z.literal(EnsIndexerIndexingStatusResponseCodes.Ok),
3857
+ var makeSerializedEnsIndexerIndexingStatusResponseOkSchema = (valueLabel = "Serialized Indexing Status Response OK") => import_v427.z.strictObject({
3858
+ responseCode: import_v427.z.literal(EnsIndexerIndexingStatusResponseCodes.Ok),
3781
3859
  realtimeProjection: makeSerializedRealtimeIndexingStatusProjectionSchema(valueLabel)
3782
3860
  });
3783
- var makeSerializedEnsIndexerIndexingStatusResponseSchema = (valueLabel = "Serialized Indexing Status Response") => import_v426.z.discriminatedUnion("responseCode", [
3861
+ var makeSerializedEnsIndexerIndexingStatusResponseSchema = (valueLabel = "Serialized Indexing Status Response") => import_v427.z.discriminatedUnion("responseCode", [
3784
3862
  makeSerializedEnsIndexerIndexingStatusResponseOkSchema(valueLabel),
3785
3863
  makeEnsIndexerIndexingStatusResponseErrorSchema(valueLabel)
3786
3864
  ]);
@@ -3802,7 +3880,7 @@ function deserializeEnsIndexerIndexingStatusResponse(maybeResponse) {
3802
3880
  if (parsed.error) {
3803
3881
  throw new Error(
3804
3882
  `Cannot deserialize EnsIndexerIndexingStatusResponse:
3805
- ${(0, import_v427.prettifyError)(parsed.error)}
3883
+ ${(0, import_v428.prettifyError)(parsed.error)}
3806
3884
  `
3807
3885
  );
3808
3886
  }
@@ -3823,13 +3901,13 @@ function serializeEnsIndexerIndexingStatusResponse(response) {
3823
3901
  }
3824
3902
 
3825
3903
  // src/ensindexer/api/shared/errors/deserialize.ts
3826
- var import_v429 = require("zod/v4");
3904
+ var import_v430 = require("zod/v4");
3827
3905
 
3828
3906
  // src/ensindexer/api/shared/errors/zod-schemas.ts
3829
- var import_v428 = require("zod/v4");
3830
- var ErrorResponseSchema2 = import_v428.z.object({
3831
- message: import_v428.z.string(),
3832
- details: import_v428.z.optional(import_v428.z.unknown())
3907
+ var import_v429 = require("zod/v4");
3908
+ var ErrorResponseSchema2 = import_v429.z.object({
3909
+ message: import_v429.z.string(),
3910
+ details: import_v429.z.optional(import_v429.z.unknown())
3833
3911
  });
3834
3912
 
3835
3913
  // src/ensindexer/api/shared/errors/deserialize.ts
@@ -3837,7 +3915,7 @@ function deserializeErrorResponse2(maybeErrorResponse) {
3837
3915
  const parsed = ErrorResponseSchema2.safeParse(maybeErrorResponse);
3838
3916
  if (parsed.error) {
3839
3917
  throw new Error(`Cannot deserialize ErrorResponse:
3840
- ${(0, import_v429.prettifyError)(parsed.error)}
3918
+ ${(0, import_v430.prettifyError)(parsed.error)}
3841
3919
  `);
3842
3920
  }
3843
3921
  return parsed.data;
@@ -4114,14 +4192,14 @@ function isResolvedIdentity(identity) {
4114
4192
  }
4115
4193
 
4116
4194
  // src/indexing-status/deserialize/chain-indexing-status-snapshot.ts
4117
- var import_v430 = require("zod/v4");
4195
+ var import_v431 = require("zod/v4");
4118
4196
  function deserializeChainIndexingStatusSnapshot(maybeSnapshot, valueLabel) {
4119
4197
  const schema = makeChainIndexingStatusSnapshotSchema(valueLabel);
4120
4198
  const parsed = schema.safeParse(maybeSnapshot);
4121
4199
  if (parsed.error) {
4122
4200
  throw new Error(
4123
4201
  `Cannot deserialize into ChainIndexingStatusSnapshot:
4124
- ${(0, import_v430.prettifyError)(parsed.error)}
4202
+ ${(0, import_v431.prettifyError)(parsed.error)}
4125
4203
  `
4126
4204
  );
4127
4205
  }
@@ -4139,38 +4217,25 @@ function createRealtimeIndexingStatusProjection(snapshot, now) {
4139
4217
  }
4140
4218
 
4141
4219
  // src/indexing-status/validate/chain-indexing-status-snapshot.ts
4142
- var import_v431 = require("zod/v4");
4220
+ var import_v432 = require("zod/v4");
4143
4221
  function validateChainIndexingStatusSnapshot(unvalidatedSnapshot, valueLabel) {
4144
4222
  const schema = makeChainIndexingStatusSnapshotSchema(valueLabel);
4145
4223
  const parsed = schema.safeParse(unvalidatedSnapshot);
4146
4224
  if (parsed.error) {
4147
4225
  throw new Error(`Invalid ChainIndexingStatusSnapshot:
4148
- ${(0, import_v431.prettifyError)(parsed.error)}
4226
+ ${(0, import_v432.prettifyError)(parsed.error)}
4149
4227
  `);
4150
4228
  }
4151
4229
  return parsed.data;
4152
4230
  }
4153
4231
 
4154
4232
  // src/indexing-status/validate/cross-chain-indexing-status-snapshot.ts
4155
- var import_v432 = require("zod/v4");
4233
+ var import_v433 = require("zod/v4");
4156
4234
  function validateCrossChainIndexingStatusSnapshot(unvalidatedSnapshot, valueLabel) {
4157
4235
  const schema = makeCrossChainIndexingStatusSnapshotSchema(valueLabel);
4158
4236
  const parsed = schema.safeParse(unvalidatedSnapshot);
4159
4237
  if (parsed.error) {
4160
4238
  throw new Error(`Invalid CrossChainIndexingStatusSnapshot:
4161
- ${(0, import_v432.prettifyError)(parsed.error)}
4162
- `);
4163
- }
4164
- return parsed.data;
4165
- }
4166
-
4167
- // src/indexing-status/validate/omnichain-indexing-status-snapshot.ts
4168
- var import_v433 = require("zod/v4");
4169
- function validateOmnichainIndexingStatusSnapshot(unvalidatedSnapshot, valueLabel) {
4170
- const schema = makeOmnichainIndexingStatusSnapshotSchema(valueLabel);
4171
- const parsed = schema.safeParse(unvalidatedSnapshot);
4172
- if (parsed.error) {
4173
- throw new Error(`Invalid OmnichainIndexingStatusSnapshot:
4174
4239
  ${(0, import_v433.prettifyError)(parsed.error)}
4175
4240
  `);
4176
4241
  }
@@ -4619,6 +4684,39 @@ var TtlCache = class {
4619
4684
  }
4620
4685
  };
4621
4686
 
4687
+ // src/shared/config/indexed-blockranges.ts
4688
+ var import_datasources12 = require("@ensnode/datasources");
4689
+ function buildIndexedBlockranges(namespace, pluginsRequiredDatasourceNames) {
4690
+ const indexedBlockranges = /* @__PURE__ */ new Map();
4691
+ for (const [pluginName, requiredDatasourceNames] of pluginsRequiredDatasourceNames) {
4692
+ for (const requiredDatasourceName of requiredDatasourceNames) {
4693
+ const requiredDatasource = (0, import_datasources12.maybeGetDatasource)(namespace, requiredDatasourceName);
4694
+ if (!requiredDatasource) {
4695
+ throw new Error(
4696
+ `Datasource ${requiredDatasourceName} required by plugin ${pluginName} is not defined in namespace ${namespace}.`
4697
+ );
4698
+ }
4699
+ const datasourceChainId = requiredDatasource.chain.id;
4700
+ const datasourceContracts = Object.values(requiredDatasource.contracts);
4701
+ for (const datasourceContract of datasourceContracts) {
4702
+ const currentChainIndexedBlockrange = indexedBlockranges.get(datasourceChainId);
4703
+ const contractIndexedBlockrange = buildBlockNumberRange(
4704
+ datasourceContract.startBlock,
4705
+ datasourceContract.endBlock
4706
+ );
4707
+ const indexedBlockrange = currentChainIndexedBlockrange ? mergeBlockNumberRanges(currentChainIndexedBlockrange, contractIndexedBlockrange) : contractIndexedBlockrange;
4708
+ if (indexedBlockrange.rangeType !== RangeTypeIds.LeftBounded && indexedBlockrange.rangeType !== RangeTypeIds.Bounded) {
4709
+ throw new Error(
4710
+ `Indexed blockrange for chain ${datasourceChainId} is expected to be left-bounded or bounded, but got ${indexedBlockrange.rangeType}.`
4711
+ );
4712
+ }
4713
+ indexedBlockranges.set(datasourceChainId, indexedBlockrange);
4714
+ }
4715
+ }
4716
+ }
4717
+ return indexedBlockranges;
4718
+ }
4719
+
4622
4720
  // src/shared/interpretation/interpret-address.ts
4623
4721
  var import_viem18 = require("viem");
4624
4722
  var interpretAddress = (owner) => (0, import_viem18.isAddressEqual)(import_viem18.zeroAddress, owner) ? null : owner;
@@ -4735,10 +4833,10 @@ ${JSON.stringify(concrete)}`
4735
4833
  }
4736
4834
 
4737
4835
  // src/shared/root-registry.ts
4738
- var import_datasources12 = require("@ensnode/datasources");
4739
- var getENSv1Registry = (namespace) => getDatasourceContract(namespace, import_datasources12.DatasourceNames.ENSRoot, "ENSv1Registry");
4836
+ var import_datasources13 = require("@ensnode/datasources");
4837
+ var getENSv1Registry = (namespace) => getDatasourceContract(namespace, import_datasources13.DatasourceNames.ENSRoot, "ENSv1Registry");
4740
4838
  var isENSv1Registry = (namespace, contract) => accountIdEqual(getENSv1Registry(namespace), contract);
4741
- var getENSv2RootRegistry = (namespace) => getDatasourceContract(namespace, import_datasources12.DatasourceNames.ENSv2Root, "RootRegistry");
4839
+ var getENSv2RootRegistry = (namespace) => getDatasourceContract(namespace, import_datasources13.DatasourceNames.ENSv2Root, "RootRegistry");
4742
4840
  var getENSv2RootRegistryId = (namespace) => makeRegistryId(getENSv2RootRegistry(namespace));
4743
4841
  var isENSv2RootRegistry = (namespace, contract) => accountIdEqual(getENSv2RootRegistry(namespace), contract);
4744
4842