- {/*
- TODO: after upgrading v2-sepolia to have materialized canonical name, update this to:
-
{beautifyInterpretedName(domain.canonical?.name.interpreted ?? name)}
- */}
{beautifyInterpretedName(domain.name ?? name)}
Owner:{" "}
@@ -105,14 +92,6 @@ function RenderDomain({ name }: { name: InterpretedName }) {
Version: {domain.__typename}
- {/*
- TODO: after upgrading v2-sepolia to have materialized canonical name, update this to:
- {data.domain.parent?.canonical && (
-
- ← {beautifyInterpretedName(data.domain.parent.canonical.name.interpreted)}
-
- )}
- */}
{data.domain.parent?.name && (
← {beautifyInterpretedName(data.domain.parent.name)}
@@ -155,7 +134,6 @@ export function DomainView() {
const params = useParams();
// if a user accesses '/domain' directly, redirect to '/domain/eth'
- // TODO: render the set of tlds
if (params.name === undefined || params.name === "") return
;
// here we ensure that the provided /domain/:name parameter is an InterpretedName
diff --git a/examples/enskit-react-example/src/SearchView.tsx b/examples/enskit-react-example/src/SearchView.tsx
index a3b64219c7..8e6dbedd14 100644
--- a/examples/enskit-react-example/src/SearchView.tsx
+++ b/examples/enskit-react-example/src/SearchView.tsx
@@ -7,8 +7,6 @@ const DomainsByNameQuery = graphql(`
query DomainsByName($name: String!, $first: Int!, $after: String) {
domains(where: { name: $name }, first: $first, after: $after) {
edges {
- # # TODO: after upgrading v2-sepolia to have materialized canonical name, update this to:
- # node { __typename id canonical { name { interpreted } } }
node { __typename id name }
}
pageInfo {
@@ -96,11 +94,6 @@ export function SearchView() {
({edge.node.__typename === "ENSv1Domain" ? "v1" : "v2"}){" "}
{beautifyInterpretedName(edge.node.name)}
- {/*
- TODO: after upgrading v2-sepolia to have materialized canonical name, update this to:
-
- {beautifyInterpretedName(edge.node.canonical.name.interpreted)}
- */}
);
diff --git a/examples/enssdk-example/src/index.ts b/examples/enssdk-example/src/index.ts
index 57f078f4e7..85f46727b6 100644
--- a/examples/enssdk-example/src/index.ts
+++ b/examples/enssdk-example/src/index.ts
@@ -13,8 +13,6 @@ const client = createEnsNodeClient({ url: ENSNODE_URL }).extend(omnigraph);
const DomainFragment = graphql(`
fragment DomainFragment on Domain {
__typename
- # # TODO: after upgrading v2-sepolia to have materialized canonical name, update this to:
- # canonical { name { interpreted } }
name
owner { address }
}
@@ -38,10 +36,6 @@ const HelloWorldQuery = graphql(
function formatDomain(data: FragmentOf
): string {
// type-safe access to fragment data!
const domain = readFragment(DomainFragment, data);
- // TODO: after upgrading v2-sepolia to have materialized canonical name, update this to:
- // const name = domain.canonical
- // ? beautifyInterpretedName(domain.canonical.name.interpreted)
- // : "";
const name = domain.name ? beautifyInterpretedName(domain.name) : "";
const owner = domain.owner?.address ?? "0x0 (means reserved for ENSv2)";
return `${name} (${domain.__typename}) — Owner ${owner}`;
diff --git a/examples/omnigraph-graphql-example/src/index.ts b/examples/omnigraph-graphql-example/src/index.ts
index 071ac272aa..7905769879 100644
--- a/examples/omnigraph-graphql-example/src/index.ts
+++ b/examples/omnigraph-graphql-example/src/index.ts
@@ -9,14 +9,10 @@ const HELLO_WORLD_QUERY = /* GraphQL */ `
query HelloWorld($name: InterpretedName!) {
domain(by: { name: $name }) {
__typename
- # # TODO: after upgrading v2-sepolia to have materialized canonical name, update this to:
- # canonical { name { interpreted } }
name
owner { address }
subdomains(first: 20) {
totalCount
- # # TODO: after upgrading v2-sepolia to have materialized canonical name, update this to:
- # edges { node { __typename canonical { name { interpreted } } owner { address } } }
edges { node { __typename name owner { address } } }
}
}
@@ -25,8 +21,6 @@ const HELLO_WORLD_QUERY = /* GraphQL */ `
interface Domain {
__typename: "ENSv1Domain" | "ENSv2Domain";
- // TODO: after upgrading v2-sepolia to have materialized canonical name, update this to:
- // canonical: { name: { interpreted: string } } | null;
name: string;
owner: { address: string } | null;
}
@@ -46,8 +40,6 @@ interface QueryResult {
}
function formatDomain(domain: Domain): string {
- // TODO: after upgrading v2-sepolia to have materialized canonical name, update this to:
- // const name = domain.canonical?.name.interpreted ?? "";
const name = domain.name ?? "";
const owner = domain.owner?.address ?? "0x0";
return `${name} (${domain.__typename}) — Owner ${owner}`;