diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index e703d75b6..1a51b5757 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,4 +1,4 @@ -docs/ @lucemans +docs/ @lucemans @gskril .github/ @lucemans app/ @lucemans @svemat01 diff --git a/app/src/components/mdx/Note.tsx b/app/src/components/mdx/Note.tsx index 3fa5defe3..03976ef0a 100644 --- a/app/src/components/mdx/Note.tsx +++ b/app/src/components/mdx/Note.tsx @@ -2,7 +2,7 @@ import { InfoIcon } from '../icons/InfoIcon'; export const Note = ({ children }) => { return ( -
+
{children} diff --git a/docs/bugs.mdx b/docs/bugs.mdx index d598a5d09..f3dc01432 100644 --- a/docs/bugs.mdx +++ b/docs/bugs.mdx @@ -19,7 +19,7 @@ The ENS bug bounty program rewards anyone who finds a bug in covered ENS smart c
diff --git a/docs/web/enumerate.mdx b/docs/web/enumerate.mdx index ff4e60880..b8372f24a 100644 --- a/docs/web/enumerate.mdx +++ b/docs/web/enumerate.mdx @@ -45,7 +45,7 @@ The [ENS subgraph](/web/subgraph) indexes all events from relevant smart contrac ENSjs makes it easy to run common queries on the subgraph with strong type safety. Docs can be found [here](https://github.com/ensdomains/ensjs-v3/tree/main/docs/subgraph). -```graphql {{ title: 'GraphQL', language: 'gql', variant: 'gql', link: "https://thegraph.com/hosted-service/subgraph/ensdomains/ens" }} +```graphql {{ title: 'GraphQL', language: 'gql', variant: 'gql', link: "https://thegraph.com/explorer/subgraphs/5XqPmWe6gjyrJtFn9cLy237i4cWw2j9HcUJEXsP5qGtH?chain=arbitrum-one" }} { domains(where: { owner: "0x225f137127d9067788314bc7fcc1f36746a3c3b5" }) { name diff --git a/docs/web/resolution.mdx b/docs/web/resolution.mdx index a1861ba8d..7034007ac 100644 --- a/docs/web/resolution.mdx +++ b/docs/web/resolution.mdx @@ -27,6 +27,8 @@ The simplest thing you can do is start with a name, and resolve it to an address We call this a "forward lookup". Think of places where users can enter names, such as sending transactions, chatting, etc. +Note that all dot-separated strings should be treated as potential ENS names, since ENS supports [many TLDs](/dns/tlds). A common mistake is to only treat strings that end in `.eth` as ENS names. + ```tsx {{ title: 'Wagmi (React)', language: 'tsx', meta: 'focus=4:9', variant: 'wagmi', link: 'https://wagmi.sh/react/hooks/useEnsAddress', stackblitz: 'https://stackblitz.com/edit/ens-wagmi-use-ens-address' }} diff --git a/docs/web/subgraph.mdx b/docs/web/subgraph.mdx index 40bb8299b..7e6d906f7 100644 --- a/docs/web/subgraph.mdx +++ b/docs/web/subgraph.mdx @@ -1,6 +1,7 @@ -import { WIP } from '@/components/wip/WIP'; +import { WIP } from '@/components/wip/WIP' +import { Note } from '@/components/mdx/Note' -{/** @type {import('@/lib/mdxPageProps').MdxMetaProps} */} +{/* * @type {import('@/lib/mdxPageProps').MdxMetaProps} */} export const meta = { description: '', emoji: '⚙️', @@ -16,7 +17,13 @@ This is a page covering the graph's ENS subgraph. ## The Graph The Graph is a protocol for indexing and querying data from blockchains. There are multiple subgraphs that you can use to query information about ENS names. -These subgraphs are available for [mainnet](https://api.thegraph.com/subgraphs/name/ensdomains/ens) and testnets like [goerli](https://api.studio.thegraph.com/query/49574/ensgoerli/version/latest), [sepolia](https://api.studio.thegraph.com/query/49574/enssepolia/version/latest) and [holesky](https://api.studio.thegraph.com/query/49574/ensholesky/version/latest). +These subgraphs are available for [mainnet](https://api.thegraph.com/subgraphs/name/ensdomains/ens), [sepolia](https://api.studio.thegraph.com/query/49574/enssepolia/version/latest) and [holesky](https://api.studio.thegraph.com/query/49574/ensholesky/version/latest). + + + Developers are welcome to use our rate limited API endpoints above for + testing, but it is highly encouraged to [sign up for a free account with + TheGraph](https://thegraph.com/studio/apikeys/) to get your own API key. + ## GraphQL Schema @@ -29,7 +36,7 @@ One of such use-cases is querying which NFT names are owned by a specific addres ## Example Queries -One can explore the following examples interactively via the [Graph Explorer Playground](https://thegraph.com/hosted-service/subgraph/ensdomains/ens) +One can explore the following examples interactively via the [Graph Explorer Playground](https://thegraph.com/explorer/subgraphs/5XqPmWe6gjyrJtFn9cLy237i4cWw2j9HcUJEXsP5qGtH?view=Playground&chain=arbitrum-one) ### Getting a list of names owned by an account