Skip to content

Commit 0d8a4b4

Browse files
authored
Extend stack info data model (#1988)
1 parent 0d64d9e commit 0d8a4b4

68 files changed

Lines changed: 1181 additions & 802 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/all-kids-smash.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
"@ensnode/ensrainbow-sdk": minor
3+
"@ensnode/ensnode-sdk": minor
4+
---
5+
6+
**Breaking**: Updated core ENSNode data models.
7+
8+
- `EnsIndexerPublicConfig`
9+
- Renamed `labelSet` field to `clientLabelSet`.
10+
- `EnsRainbowApiClientOptions`
11+
- Renamed `labelSet` field to `clientLabelSet`.
12+
- `EnsRainbowPublicConfig`
13+
- Replaced `version: string` field with `versionInfo: EnsRainbowVersionInfo`.
14+
- Renamed `labelSet` field to `serverLabelSet`.
15+
- Removed `recordsCount` field from `EnsRainbowPublicConfig`.

.changeset/calm-ravens-feel.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"ensadmin": minor
3+
---
4+
5+
Removed _Records Count_ info from the ENSRainbow card UI on the _Connection_ page.

.changeset/clear-rabbits-punch.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"ensadmin": minor
3+
---
4+
5+
Renamed `ENSNodeConfig*` components to follow the `EnsNodeStackInfo*` pattern.

.changeset/fifty-games-smash.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@ensnode/ensnode-sdk": minor
3+
---
4+
5+
Introduced a set of "stack info" data models: `EnsIndexerStackInfo`, `EnsNodeStackInfo`.

apps/ensadmin/src/app/@breadcrumbs/mock/config-info/page.tsx renamed to apps/ensadmin/src/app/@breadcrumbs/mock/stack-info/page.tsx

File renamed without changes.

apps/ensadmin/src/app/mock/config-info/data.json

Lines changed: 0 additions & 197 deletions
This file was deleted.

apps/ensadmin/src/app/mock/config-info/page.tsx

Lines changed: 0 additions & 95 deletions
This file was deleted.

apps/ensadmin/src/app/mock/indexing-status-api.mock.ts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,28 @@ import {
1616
type SerializedEnsDbPublicConfig,
1717
type SerializedEnsIndexerPublicConfig,
1818
type SerializedEnsNodeStackInfo,
19-
SerializedEnsRainbowPublicConfig,
19+
type SerializedEnsRainbowPublicConfig,
2020
type SerializedOmnichainIndexingStatusSnapshotBackfill,
2121
type SerializedOmnichainIndexingStatusSnapshotCompleted,
2222
type SerializedOmnichainIndexingStatusSnapshotFollowing,
2323
type SerializedOmnichainIndexingStatusSnapshotUnstarted,
2424
} from "@ensnode/ensnode-sdk";
2525

2626
const serializedEnsIndexerPublicConfig = {
27-
labelSet: {
27+
clientLabelSet: {
2828
labelSetId: "subgraph",
2929
labelSetVersion: 0,
3030
},
3131
indexedChainIds: [1, 8453, 59144, 10, 42161, 534352, 567],
32-
ensIndexerSchemaName: "alphaSchema0.34.0",
32+
ensIndexerSchemaName: "alphaSchema1.9.0",
3333
ensRainbowPublicConfig: {
34-
version: "0.34.0",
35-
labelSet: {
34+
serverLabelSet: {
3635
labelSetId: "subgraph",
3736
highestLabelSetVersion: 0,
3837
},
39-
recordsCount: 100,
38+
versionInfo: {
39+
ensRainbow: "1.9.0",
40+
},
4041
},
4142
isSubgraphCompatible: false,
4243
namespace: "mainnet",
@@ -51,8 +52,8 @@ const serializedEnsIndexerPublicConfig = {
5152
],
5253
versionInfo: {
5354
ponder: "0.11.43",
54-
ensIndexer: "0.35.0",
55-
ensDb: "0.35.0",
55+
ensIndexer: "1.9.0",
56+
ensDb: "1.9.0",
5657
ensNormalize: "1.11.1",
5758
},
5859
} satisfies SerializedEnsIndexerPublicConfig;
@@ -64,7 +65,7 @@ export const serializedEnsApiPublicConfig = {
6465
url: "https://api.thegraph.com/subgraphs/name/ensdomains/ens",
6566
},
6667
versionInfo: {
67-
ensApi: "0.35.0",
68+
ensApi: "1.9.0",
6869
ensNormalize: "1.11.1",
6970
},
7071
} satisfies SerializedEnsApiPublicConfig;

apps/ensadmin/src/app/mock/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ export default function MockList() {
1919
<CardContent>
2020
<div className="flex flex-wrap gap-2">
2121
<Button asChild variant="outline" size="sm">
22-
<Link href={retainCurrentRawConnectionUrlParam("/mock/config-info")}>
23-
ENSNodeConfigInfo
22+
<Link href={retainCurrentRawConnectionUrlParam("/mock/stack-info")}>
23+
EnsNodeStackInfo
2424
</Link>
2525
</Button>
2626
<Button asChild variant="outline" size="sm">

0 commit comments

Comments
 (0)